From d1b74832aafc27d41edac6b0f971443526b4007a Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 27 Oct 2025 10:40:25 -0700 Subject: [PATCH 1/7] Update submodule, port new defaults, skip tests with deprecated options --- _submodules/TypeScript | 2 +- internal/core/compileroptions.go | 55 +- internal/testrunner/compiler_runner.go | 20 +- internal/tsoptions/enummaps.go | 6 +- .../compiler/allowSyntheticDefaultImports9.js | 5 +- .../settingsSimpleTest(strict=false).js | 13 - .../settingsSimpleTest(strict=false).symbols | 8 - .../settingsSimpleTest(strict=false).types | 8 - ...settingsSimpleTest(strict=true).errors.txt | 8 - .../settingsSimpleTest(strict=true).js | 13 - .../settingsSimpleTest(strict=true).symbols | 8 - .../settingsSimpleTest(strict=true).types | 8 - ...lightAtInheritedProperties1.baseline.jsonc | 15 - ...lightAtInheritedProperties2.baseline.jsonc | 15 - ...lightAtInheritedProperties3.baseline.jsonc | 49 - ...lightAtInheritedProperties4.baseline.jsonc | 49 - ...lightAtInheritedProperties5.baseline.jsonc | 82 - ...lightAtInheritedProperties6.baseline.jsonc | 63 - ...rameterPropertyDeclaration1.baseline.jsonc | 165 - ...rameterPropertyDeclaration2.baseline.jsonc | 109 - ...rameterPropertyDeclaration3.baseline.jsonc | 109 - ...ntHighlightDefaultInKeyword.baseline.jsonc | 11 - ...entHighlightDefaultInSwitch.baseline.jsonc | 21 - .../documentHighlightInExport1.baseline.jsonc | 32 - .../documentHighlightInKeyword.baseline.jsonc | 31 - ...cumentHighlightInTypeExport.baseline.jsonc | 98 - ...cumentHighlightJSDocTypedef.baseline.jsonc | 45 - ...ghtMultilineTemplateStrings.baseline.jsonc | 7 - ...entHighlightTemplateStrings.baseline.jsonc | 11 - ...tHighlightVarianceModifiers.baseline.jsonc | 11 - .../documentHighlights01.baseline.jsonc | 29 - ...HighlightsInvalidGlobalThis.baseline.jsonc | 5 - ...htsInvalidModifierLocations.baseline.jsonc | 44 - ...ParameterInHeritageClause01.baseline.jsonc | 18 - .../documentHighlights_33722.baseline.jsonc | 5 - .../documentHighlights_40082.baseline.jsonc | 6 - ...entHighlights_filesToSearch.baseline.jsonc | 9 - .../emptyExportFindReferences.baseline.jsonc | 5 - .../findReferencesJSXTagName3.baseline.jsonc | 124 - .../getOccurrencesAbstract01.baseline.jsonc | 67 - .../getOccurrencesAbstract02.baseline.jsonc | 48 - .../getOccurrencesAbstract03.baseline.jsonc | 69 - .../getOccurrencesAfterEdit.baseline.jsonc | 22 - .../getOccurrencesAsyncAwait.baseline.jsonc | 87 - .../getOccurrencesAsyncAwait2.baseline.jsonc | 57 - .../getOccurrencesAsyncAwait3.baseline.jsonc | 6 - ...sClassExpressionConstructor.baseline.jsonc | 53 - ...encesClassExpressionPrivate.baseline.jsonc | 82 - ...rencesClassExpressionPublic.baseline.jsonc | 82 - ...rencesClassExpressionStatic.baseline.jsonc | 69 - ...esClassExpressionStaticThis.baseline.jsonc | 92 - ...urrencesClassExpressionThis.baseline.jsonc | 303 -- .../getOccurrencesConst01.baseline.jsonc | 19 - .../getOccurrencesConst04.baseline.jsonc | 27 - .../getOccurrencesConstructor.baseline.jsonc | 53 - .../getOccurrencesConstructor2.baseline.jsonc | 9 - .../getOccurrencesDeclare1.baseline.jsonc | 66 - .../getOccurrencesDeclare2.baseline.jsonc | 11 - .../getOccurrencesDeclare3.baseline.jsonc | 73 - .../getOccurrencesExport1.baseline.jsonc | 182 - .../getOccurrencesExport2.baseline.jsonc | 11 - .../getOccurrencesExport3.baseline.jsonc | 54 - .../getOccurrencesIfElse.baseline.jsonc | 158 - .../getOccurrencesIfElse2.baseline.jsonc | 23 - .../getOccurrencesIfElse3.baseline.jsonc | 31 - ...ccurrencesLoopBreakContinue.baseline.jsonc | 130 - ...currencesLoopBreakContinue2.baseline.jsonc | 102 - ...currencesLoopBreakContinue3.baseline.jsonc | 200 - ...currencesLoopBreakContinue4.baseline.jsonc | 301 -- ...currencesLoopBreakContinue5.baseline.jsonc | 21 - ...urrencesModifiersNegatives1.baseline.jsonc | 813 ---- ...cesNonStringImportAssertion.baseline.jsonc | 4 - ...esNonStringImportAttributes.baseline.jsonc | 4 - ...urrencesOfAnonymousFunction.baseline.jsonc | 15 - ...rrencesOfAnonymousFunction2.baseline.jsonc | 25 - .../getOccurrencesOfDecorators.baseline.jsonc | 10 - ...ccurrencesOfUndefinedSymbol.baseline.jsonc | 9 - .../getOccurrencesPrivate1.baseline.jsonc | 195 - .../getOccurrencesPrivate2.baseline.jsonc | 31 - ...sPropertyInAliasedInterface.baseline.jsonc | 85 - .../getOccurrencesProtected1.baseline.jsonc | 183 - .../getOccurrencesProtected2.baseline.jsonc | 45 - .../getOccurrencesPublic1.baseline.jsonc | 285 -- .../getOccurrencesPublic2.baseline.jsonc | 33 - .../getOccurrencesReadonly1.baseline.jsonc | 5 - .../getOccurrencesReadonly2.baseline.jsonc | 5 - .../getOccurrencesReadonly3.baseline.jsonc | 34 - .../getOccurrencesReturn.baseline.jsonc | 57 - .../getOccurrencesReturn2.baseline.jsonc | 69 - .../getOccurrencesReturn3.baseline.jsonc | 11 - .../getOccurrencesSetAndGet.baseline.jsonc | 25 - .../getOccurrencesSetAndGet2.baseline.jsonc | 31 - .../getOccurrencesSetAndGet3.baseline.jsonc | 29 - .../getOccurrencesStatic1.baseline.jsonc | 45 - ...currencesStringLiteralTypes.baseline.jsonc | 11 - ...etOccurrencesStringLiterals.baseline.jsonc | 11 - .../getOccurrencesSuper.baseline.jsonc | 235 -- .../getOccurrencesSuper2.baseline.jsonc | 60 - .../getOccurrencesSuper3.baseline.jsonc | 51 - ...etOccurrencesSuperNegatives.baseline.jsonc | 61 - ...ccurrencesSwitchCaseDefault.baseline.jsonc | 195 - ...currencesSwitchCaseDefault2.baseline.jsonc | 117 - ...currencesSwitchCaseDefault3.baseline.jsonc | 157 - .../getOccurrencesThis.baseline.jsonc | 19 - .../getOccurrencesThis2.baseline.jsonc | 129 - .../getOccurrencesThis3.baseline.jsonc | 31 - .../getOccurrencesThis4.baseline.jsonc | 556 --- .../getOccurrencesThis5.baseline.jsonc | 556 --- .../getOccurrencesThrow.baseline.jsonc | 317 -- .../getOccurrencesThrow2.baseline.jsonc | 12 - .../getOccurrencesThrow3.baseline.jsonc | 39 - .../getOccurrencesThrow4.baseline.jsonc | 102 - .../getOccurrencesThrow5.baseline.jsonc | 12 - .../getOccurrencesThrow6.baseline.jsonc | 51 - .../getOccurrencesThrow7.baseline.jsonc | 112 - .../getOccurrencesThrow8.baseline.jsonc | 11 - .../getOccurrencesYield.baseline.jsonc | 33 - ...olsFromBaseTypesDoesntCrash.baseline.jsonc | 5 - .../occurrences01.baseline.jsonc | 81 - .../occurrences02.baseline.jsonc | 29 - ...eDefaultImportDifferentName.baseline.jsonc | 6 - ...ambientShorthandFindAllRefs.baseline.jsonc | 9 - ...ortProvider_referencesCrash.baseline.jsonc | 9 - ...nstructorFindAllReferences1.baseline.jsonc | 8 - ...nstructorFindAllReferences2.baseline.jsonc | 8 - ...nstructorFindAllReferences3.baseline.jsonc | 8 - ...nstructorFindAllReferences4.baseline.jsonc | 8 - ...uleInteropFindAllReferences.baseline.jsonc | 29 - ...leInteropFindAllReferences2.baseline.jsonc | 26 - ...sNodeNextWithTypesReference.baseline.jsonc | 5 - ...essExpressionHeritageClause.baseline.jsonc | 30 - ...AllReferencesDynamicImport1.baseline.jsonc | 29 - ...AllReferencesDynamicImport2.baseline.jsonc | 17 - ...AllReferencesDynamicImport3.baseline.jsonc | 11 - ...FilteringMappedTypeProperty.baseline.jsonc | 21 - ...rencesFromLinkTagReference1.baseline.jsonc | 6 - ...rencesFromLinkTagReference2.baseline.jsonc | 9 - ...rencesFromLinkTagReference3.baseline.jsonc | 11 - ...rencesFromLinkTagReference4.baseline.jsonc | 7 - ...rencesFromLinkTagReference5.baseline.jsonc | 6 - ...findAllReferencesImportMeta.baseline.jsonc | 5 - ...lReferencesJSDocFunctionNew.baseline.jsonc | 4 - ...ReferencesJSDocFunctionThis.baseline.jsonc | 4 - ...lReferencesJsDocTypeLiteral.baseline.jsonc | 21 - ...OverloadedFunctionParameter.baseline.jsonc | 17 - ...encesJsRequireDestructuring.baseline.jsonc | 3 - ...ncesJsRequireDestructuring1.baseline.jsonc | 3 - .../findAllReferencesLinkTag1.baseline.jsonc | 208 - .../findAllReferencesLinkTag2.baseline.jsonc | 138 - .../findAllReferencesLinkTag3.baseline.jsonc | 138 - ...cesNonExistentExportBinding.baseline.jsonc | 3 - ...dAllReferencesOfConstructor.baseline.jsonc | 105 - ...esOfConstructor_badOverload.baseline.jsonc | 15 - ...ndAllReferencesOfJsonModule.baseline.jsonc | 18 - ...indAllReferencesTripleSlash.baseline.jsonc | 11 - ...encesUmdModuleAsGlobalConst.baseline.jsonc | 39 - .../findAllReferencesUndefined.baseline.jsonc | 8 - .../findAllRefsBadImport.baseline.jsonc | 9 - .../findAllRefsCatchClause.baseline.jsonc | 15 - ...findAllRefsClassExpression0.baseline.jsonc | 45 - ...findAllRefsClassExpression1.baseline.jsonc | 17 - ...findAllRefsClassExpression2.baseline.jsonc | 27 - ...indAllRefsClassStaticBlocks.baseline.jsonc | 34 - ...fsClassWithStaticThisAccess.baseline.jsonc | 45 - .../findAllRefsCommonJsRequire.baseline.jsonc | 8 - ...findAllRefsCommonJsRequire2.baseline.jsonc | 8 - ...findAllRefsCommonJsRequire3.baseline.jsonc | 4 - ...AllRefsConstructorFunctions.baseline.jsonc | 55 - .../findAllRefsDeclareClass.baseline.jsonc | 13 - .../findAllRefsDefaultImport.baseline.jsonc | 15 - .../findAllRefsDefinition.baseline.jsonc | 11 - ...ndAllRefsDestructureGeneric.baseline.jsonc | 17 - ...indAllRefsDestructureGetter.baseline.jsonc | 69 - .../findAllRefsEnumAsNamespace.baseline.jsonc | 18 - .../findAllRefsEnumMember.baseline.jsonc | 18 - ...RefsExportConstEqualToClass.baseline.jsonc | 17 - ...portDefaultClassConstructor.baseline.jsonc | 5 - .../findAllRefsExportEquals.baseline.jsonc | 44 - ...dAllRefsExportNotAtTopLevel.baseline.jsonc | 24 - ...llRefsForComputedProperties.baseline.jsonc | 45 - ...lRefsForComputedProperties2.baseline.jsonc | 45 - ...findAllRefsForDefaultExport.baseline.jsonc | 14 - ...ndAllRefsForDefaultExport01.baseline.jsonc | 41 - ...ndAllRefsForDefaultExport02.baseline.jsonc | 94 - ...ndAllRefsForDefaultExport03.baseline.jsonc | 141 - ...ndAllRefsForDefaultExport04.baseline.jsonc | 40 - ...ndAllRefsForDefaultExport09.baseline.jsonc | 91 - ...sForDefaultExport_anonymous.baseline.jsonc | 3 - ...fsForDefaultExport_reExport.baseline.jsonc | 23 - ...indAllRefsForDefaultKeyword.baseline.jsonc | 58 - ...RefsForFunctionExpression01.baseline.jsonc | 53 - .../findAllRefsForImportCall.baseline.jsonc | 12 - ...indAllRefsForImportCallType.baseline.jsonc | 8 - .../findAllRefsForMappedType.baseline.jsonc | 7 - ...sForObjectLiteralProperties.baseline.jsonc | 43 - .../findAllRefsForObjectSpread.baseline.jsonc | 45 - .../findAllRefsForRest.baseline.jsonc | 23 - ...icInstanceMethodInheritance.baseline.jsonc | 91 - ...InstancePropertyInheritance.baseline.jsonc | 211 - ...findAllRefsForStringLiteral.baseline.jsonc | 8 - ...llRefsForStringLiteralTypes.baseline.jsonc | 11 - ...ndAllRefsForUMDModuleAlias1.baseline.jsonc | 29 - ...orVariableInExtendsClause01.baseline.jsonc | 18 - ...orVariableInExtendsClause02.baseline.jsonc | 27 - ...ariableInImplementsClause01.baseline.jsonc | 4 - ...fsGlobalThisKeywordInModule.baseline.jsonc | 4 - .../findAllRefsImportEquals.baseline.jsonc | 4 - .../findAllRefsImportType.baseline.jsonc | 23 - ...indAllRefsInClassExpression.baseline.jsonc | 15 - ...ndAllRefsIndexedAccessTypes.baseline.jsonc | 49 - ...AllRefsInheritedProperties1.baseline.jsonc | 49 - ...AllRefsInheritedProperties2.baseline.jsonc | 49 - ...AllRefsInheritedProperties3.baseline.jsonc | 163 - ...AllRefsInheritedProperties4.baseline.jsonc | 70 - ...AllRefsInheritedProperties5.baseline.jsonc | 60 - ...findAllRefsInsideTemplates1.baseline.jsonc | 25 - ...findAllRefsInsideTemplates2.baseline.jsonc | 32 - .../findAllRefsInsideWithBlock.baseline.jsonc | 49 - .../findAllRefsIsDefinition.baseline.jsonc | 103 - .../findAllRefsJsDocImportTag.baseline.jsonc | 13 - .../findAllRefsJsDocImportTag2.baseline.jsonc | 25 - .../findAllRefsJsDocImportTag3.baseline.jsonc | 25 - .../findAllRefsJsDocImportTag4.baseline.jsonc | 8 - .../findAllRefsJsDocImportTag5.baseline.jsonc | 15 - ...lRefsJsDocTemplateTag_class.baseline.jsonc | 11 - ...fsJsDocTemplateTag_function.baseline.jsonc | 11 - .../findAllRefsJsDocTypeDef.baseline.jsonc | 4 - ...efsJsThisPropertyAssignment.baseline.jsonc | 25 - ...fsJsThisPropertyAssignment2.baseline.jsonc | 53 - .../findAllRefsMappedType.baseline.jsonc | 30 - ...fsMappedType_nonHomomorphic.baseline.jsonc | 15 - ...odulesOverlappingSpecifiers.baseline.jsonc | 13 - .../findAllRefsNoImportClause.baseline.jsonc | 9 - ...tionTemplateLiteralNoCrash1.baseline.jsonc | 3 - .../findAllRefsNonModule.baseline.jsonc | 17 - ...NonexistentPropertyNoCrash1.baseline.jsonc | 11 - ...indingElementPropertyName01.baseline.jsonc | 31 - ...indingElementPropertyName02.baseline.jsonc | 31 - ...indingElementPropertyName03.baseline.jsonc | 21 - ...indingElementPropertyName04.baseline.jsonc | 59 - ...indingElementPropertyName05.baseline.jsonc | 10 - ...indingElementPropertyName06.baseline.jsonc | 97 - ...indingElementPropertyName07.baseline.jsonc | 5 - ...indingElementPropertyName10.baseline.jsonc | 45 - ...sOfConstructor_withModifier.baseline.jsonc | 6 - .../findAllRefsOnDecorators.baseline.jsonc | 93 - .../findAllRefsOnDefinition.baseline.jsonc | 60 - .../findAllRefsOnDefinition2.baseline.jsonc | 48 - .../findAllRefsOnImportAliases.baseline.jsonc | 33 - ...findAllRefsOnImportAliases2.baseline.jsonc | 56 - ...OnPrivateParameterProperty1.baseline.jsonc | 36 - ...rameterPropertyDeclaration1.baseline.jsonc | 8 - ...rameterPropertyDeclaration2.baseline.jsonc | 30 - ...rameterPropertyDeclaration3.baseline.jsonc | 30 - ...ertyDeclaration_inheritance.baseline.jsonc | 54 - .../findAllRefsPrimitiveJsDoc.baseline.jsonc | 37 - ...AllRefsPrivateNameAccessors.baseline.jsonc | 142 - ...ndAllRefsPrivateNameMethods.baseline.jsonc | 51 - ...llRefsPrivateNameProperties.baseline.jsonc | 67 - ...textuallyTypedByTypeParam01.baseline.jsonc | 18 - .../findAllRefsReExport_broken.baseline.jsonc | 9 - ...findAllRefsReExport_broken2.baseline.jsonc | 9 - ...dPropertyInDerivedInterface.baseline.jsonc | 49 - .../findAllRefsRootSymbols.baseline.jsonc | 33 - .../findAllRefsThisKeyword.baseline.jsonc | 149 - ...efsThisKeywordMultipleFiles.baseline.jsonc | 55 - ...eParameterInMergedInterface.baseline.jsonc | 25 - .../findAllRefsTypedef.baseline.jsonc | 36 - ...ndAllRefsTypedef_importType.baseline.jsonc | 24 - .../findAllRefsTypeofImport.baseline.jsonc | 21 - .../findAllRefsUnionProperty.baseline.jsonc | 150 - ...ndAllRefsUnresolvedSymbols1.baseline.jsonc | 107 - ...ndAllRefsUnresolvedSymbols2.baseline.jsonc | 134 - ...ndAllRefsUnresolvedSymbols3.baseline.jsonc | 134 - ...WithLeadingUnderscoreNames1.baseline.jsonc | 30 - ...WithLeadingUnderscoreNames2.baseline.jsonc | 30 - ...WithLeadingUnderscoreNames3.baseline.jsonc | 30 - ...WithLeadingUnderscoreNames4.baseline.jsonc | 30 - ...WithLeadingUnderscoreNames5.baseline.jsonc | 48 - ...WithLeadingUnderscoreNames6.baseline.jsonc | 48 - ...WithLeadingUnderscoreNames7.baseline.jsonc | 21 - ...WithLeadingUnderscoreNames8.baseline.jsonc | 21 - ...WithLeadingUnderscoreNames9.baseline.jsonc | 21 - ...ShorthandPropertyAssignment.baseline.jsonc | 47 - ...horthandPropertyAssignment2.baseline.jsonc | 46 - .../findAllRefsWriteAccess.baseline.jsonc | 19 - .../findAllRefs_importType_js4.baseline.jsonc | 11 - ...mportType_meaningAtLocation.baseline.jsonc | 59 - ...indAllRefs_importType_named.baseline.jsonc | 63 - ...efs_importType_typeofImport.baseline.jsonc | 25 - .../findAllRefs_jsEnum.baseline.jsonc | 47 - ...encesAcrossMultipleProjects.baseline.jsonc | 53 - .../findReferencesAfterEdit.baseline.jsonc | 59 - ...encesDefinitionDisplayParts.baseline.jsonc | 43 - .../findReferencesJSXTagName.baseline.jsonc | 25 - .../findReferencesJSXTagName2.baseline.jsonc | 18 - .../findReferencesJSXTagName3.baseline.jsonc | 156 - .../findReferencesSeeTagInTs.baseline.jsonc | 7 - ...IsDefinitionOfArrowFunction.baseline.jsonc | 18 - ...sDefinitionOfBindingPattern.baseline.jsonc | 18 - ...urrencesIsDefinitionOfClass.baseline.jsonc | 33 - ...efinitionOfComputedProperty.baseline.jsonc | 29 - ...currencesIsDefinitionOfEnum.baseline.jsonc | 27 - ...rrencesIsDefinitionOfExport.baseline.jsonc | 17 - ...encesIsDefinitionOfFunction.baseline.jsonc | 21 - ...ncesIsDefinitionOfInterface.baseline.jsonc | 24 - ...nitionOfInterfaceClassMerge.baseline.jsonc | 141 - ...ncesIsDefinitionOfNamespace.baseline.jsonc | 24 - ...nitionOfNumberNamedProperty.baseline.jsonc | 11 - ...ncesIsDefinitionOfParameter.baseline.jsonc | 13 - ...nitionOfStringNamedProperty.baseline.jsonc | 18 - ...ncesIsDefinitionOfTypeAlias.baseline.jsonc | 18 - ...encesIsDefinitionOfVariable.baseline.jsonc | 349 -- .../indirectJsRequireRename.baseline.jsonc | 6 - ...initionAcrossGlobalProjects.baseline.jsonc | 121 - ...initionAcrossModuleProjects.baseline.jsonc | 225 -- ...tionInterfaceImplementation.baseline.jsonc | 27 - .../isDefinitionOverloads.baseline.jsonc | 30 - ...DefinitionShorthandProperty.baseline.jsonc | 18 - .../isDefinitionSingleImport.baseline.jsonc | 15 - ...isDefinitionSingleReference.baseline.jsonc | 11 - ...sdocLink_findAllReferences1.baseline.jsonc | 7 - ...tisfiesTagFindAllReferences.baseline.jsonc | 9 - ...ThrowsTag_findAllReferences.baseline.jsonc | 7 - ...cTypedefTagSemanticMeaning0.baseline.jsonc | 51 - ...cTypedefTagSemanticMeaning1.baseline.jsonc | 33 - ...esOnRuntimeImportWithPaths1.baseline.jsonc | 3 - .../localGetReferences.baseline.jsonc | 2080 ---------- ...arameterPropertyDeclaration.baseline.jsonc | 53 - .../referenceToClass.baseline.jsonc | 123 - .../referenceToEmptyObject.baseline.jsonc | 3 - .../references01.baseline.jsonc | 9 - .../referencesBloomFilters.baseline.jsonc | 12 - .../referencesBloomFilters2.baseline.jsonc | 12 - .../referencesBloomFilters3.baseline.jsonc | 24 - .../referencesForAmbients.baseline.jsonc | 228 -- .../referencesForClassLocal.baseline.jsonc | 77 - .../referencesForClassMembers.baseline.jsonc | 99 - ...mbersExtendingAbstractClass.baseline.jsonc | 99 - ...embersExtendingGenericClass.baseline.jsonc | 99 - ...referencesForClassParameter.baseline.jsonc | 81 - ...ypedObjectLiteralProperties.baseline.jsonc | 26 - ...encesForDeclarationKeywords.baseline.jsonc | 229 -- .../referencesForEnums.baseline.jsonc | 132 - ...referencesForExportedValues.baseline.jsonc | 50 - ...rencesForExpressionKeywords.baseline.jsonc | 165 - ...encesForExternalModuleNames.baseline.jsonc | 36 - ...erencesForFunctionOverloads.baseline.jsonc | 42 - ...erencesForFunctionParameter.baseline.jsonc | 33 - .../referencesForGlobals.baseline.jsonc | 127 - .../referencesForGlobals2.baseline.jsonc | 30 - .../referencesForGlobals3.baseline.jsonc | 30 - .../referencesForGlobals4.baseline.jsonc | 30 - .../referencesForGlobals5.baseline.jsonc | 36 - ...sForGlobalsInExternalModule.baseline.jsonc | 162 - ...erencesForIllegalAssignment.baseline.jsonc | 21 - .../referencesForImports.baseline.jsonc | 53 - .../referencesForIndexProperty.baseline.jsonc | 49 - ...referencesForIndexProperty2.baseline.jsonc | 4 - ...referencesForIndexProperty3.baseline.jsonc | 39 - ...encesForInheritedProperties.baseline.jsonc | 97 - ...cesForInheritedProperties10.baseline.jsonc | 75 - ...ncesForInheritedProperties2.baseline.jsonc | 25 - ...ncesForInheritedProperties3.baseline.jsonc | 49 - ...ncesForInheritedProperties4.baseline.jsonc | 49 - ...ncesForInheritedProperties5.baseline.jsonc | 31 - ...ncesForInheritedProperties6.baseline.jsonc | 11 - ...ncesForInheritedProperties7.baseline.jsonc | 121 - ...ncesForInheritedProperties8.baseline.jsonc | 27 - ...ncesForInheritedProperties9.baseline.jsonc | 38 - .../referencesForLabel.baseline.jsonc | 69 - .../referencesForLabel2.baseline.jsonc | 7 - .../referencesForLabel3.baseline.jsonc | 5 - .../referencesForLabel4.baseline.jsonc | 27 - .../referencesForLabel5.baseline.jsonc | 103 - .../referencesForLabel6.baseline.jsonc | 33 - ...rencesForMergedDeclarations.baseline.jsonc | 147 - ...encesForMergedDeclarations2.baseline.jsonc | 49 - ...encesForMergedDeclarations3.baseline.jsonc | 40 - ...encesForMergedDeclarations4.baseline.jsonc | 261 -- ...encesForMergedDeclarations5.baseline.jsonc | 37 - ...encesForMergedDeclarations6.baseline.jsonc | 39 - ...encesForMergedDeclarations7.baseline.jsonc | 51 - ...encesForMergedDeclarations8.baseline.jsonc | 39 - .../referencesForModifiers.baseline.jsonc | 127 - .../referencesForNoContext.baseline.jsonc | 51 - ...NumericLiteralPropertyNames.baseline.jsonc | 10 - ...sForObjectLiteralProperties.baseline.jsonc | 37 - .../referencesForOverrides.baseline.jsonc | 160 - ...sForPropertiesOfGenericType.baseline.jsonc | 39 - .../referencesForStatic.baseline.jsonc | 276 -- ...ticsAndMembersWithSameNames.baseline.jsonc | 250 -- ...rStringLiteralPropertyNames.baseline.jsonc | 11 - ...StringLiteralPropertyNames2.baseline.jsonc | 30 - ...StringLiteralPropertyNames3.baseline.jsonc | 57 - ...StringLiteralPropertyNames4.baseline.jsonc | 13 - ...StringLiteralPropertyNames5.baseline.jsonc | 13 - ...StringLiteralPropertyNames6.baseline.jsonc | 13 - ...StringLiteralPropertyNames7.baseline.jsonc | 13 - .../referencesForTypeKeywords.baseline.jsonc | 67 - ...eferencesForUnionProperties.baseline.jsonc | 66 - .../referencesInComment.baseline.jsonc | 33 - ...ferencesInConfiguredProject.baseline.jsonc | 8 - ...ptyFileWithMultipleProjects.baseline.jsonc | 10 - ...alValueWithMultipleProjects.baseline.jsonc | 10 - ...ailableThroughGlobalNoCrash.baseline.jsonc | 13 - ...onPropertyNameStringLiteral.baseline.jsonc | 3 - ...erencesToStringLiteralValue.baseline.jsonc | 3 - .../remoteGetReferences.baseline.jsonc | 1920 --------- ...eDefaultImportDifferentName.baseline.jsonc | 19 - ...eImportAndExportInDiffFiles.baseline.jsonc | 27 - .../renameImportOfExportEquals.baseline.jsonc | 68 - ...esOnRuntimeImportWithPaths1.baseline.jsonc | 3 - .../tsxFindAllReferences1.baseline.jsonc | 39 - .../tsxFindAllReferences10.baseline.jsonc | 11 - .../tsxFindAllReferences11.baseline.jsonc | 7 - .../tsxFindAllReferences2.baseline.jsonc | 11 - .../tsxFindAllReferences3.baseline.jsonc | 12 - .../tsxFindAllReferences4.baseline.jsonc | 75 - .../tsxFindAllReferences5.baseline.jsonc | 162 - .../tsxFindAllReferences6.baseline.jsonc | 7 - .../tsxFindAllReferences7.baseline.jsonc | 11 - .../tsxFindAllReferences8.baseline.jsonc | 288 -- .../tsxFindAllReferences9.baseline.jsonc | 11 - ...ReferencesUnionElementType1.baseline.jsonc | 40 - ...ReferencesUnionElementType2.baseline.jsonc | 40 - ...eclarationMapGoToDefinition.baseline.jsonc | 14 - ...efinitionRelativeSourceRoot.baseline.jsonc | 14 - ...nSameNameDifferentDirectory.baseline.jsonc | 39 - ...arationMapsOutOfDateMapping.baseline.jsonc | 8 - .../goToDefinition/definition.baseline.jsonc | 7 - .../definition01.baseline.jsonc | 7 - .../definitionNameOnEnumMember.baseline.jsonc | 8 - ...findAllRefsForDefaultExport.baseline.jsonc | 7 - ...itionAcrossMultipleProjects.baseline.jsonc | 19 - .../goToDefinitionAlias.baseline.jsonc | 65 - .../goToDefinitionAmbiants.baseline.jsonc | 87 - ...itionApparentTypeProperties.baseline.jsonc | 21 - .../goToDefinitionAwait1.baseline.jsonc | 19 - .../goToDefinitionAwait2.baseline.jsonc | 3 - .../goToDefinitionAwait3.baseline.jsonc | 23 - .../goToDefinitionAwait4.baseline.jsonc | 7 - .../goToDefinitionBuiltInTypes.baseline.jsonc | 33 - ...goToDefinitionBuiltInValues.baseline.jsonc | 47 - ...tionCSSPatternAmbientModule.baseline.jsonc | 9 - ...DefinitionClassConstructors.baseline.jsonc | 63 - ...DefinitionClassStaticBlocks.baseline.jsonc | 34 - ...structorOfClassExpression01.baseline.jsonc | 138 - ...lassIsPrecededByNamespace01.baseline.jsonc | 12 - ...initionConstructorOverloads.baseline.jsonc | 81 - .../goToDefinitionDecorator.baseline.jsonc | 33 - ...efinitionDecoratorOverloads.baseline.jsonc | 29 - ...initionDestructuredRequire1.baseline.jsonc | 8 - ...initionDestructuredRequire2.baseline.jsonc | 8 - ...goToDefinitionDifferentFile.baseline.jsonc | 82 - ...tionDifferentFileIndirectly.baseline.jsonc | 82 - ...oToDefinitionDynamicImport1.baseline.jsonc | 13 - ...oToDefinitionDynamicImport2.baseline.jsonc | 7 - ...oToDefinitionDynamicImport3.baseline.jsonc | 4 - ...oToDefinitionDynamicImport4.baseline.jsonc | 4 - ...goToDefinitionExpandoClass1.baseline.jsonc | 9 - ...goToDefinitionExpandoClass2.baseline.jsonc | 11 - ...initionExpandoElementAccess.baseline.jsonc | 5 - ...efinitionExternalModuleName.baseline.jsonc | 7 - ...finitionExternalModuleName2.baseline.jsonc | 8 - ...finitionExternalModuleName3.baseline.jsonc | 9 - ...finitionExternalModuleName4.baseline.jsonc | 3 - ...finitionExternalModuleName5.baseline.jsonc | 5 - ...finitionExternalModuleName6.baseline.jsonc | 8 - ...finitionExternalModuleName7.baseline.jsonc | 8 - ...finitionExternalModuleName8.baseline.jsonc | 8 - ...finitionExternalModuleName9.baseline.jsonc | 8 - ...DefinitionFunctionOverloads.baseline.jsonc | 45 - ...ionFunctionOverloadsInClass.baseline.jsonc | 25 - .../goToDefinitionFunctionType.baseline.jsonc | 35 - ...finitionImplicitConstructor.baseline.jsonc | 5 - .../goToDefinitionImport1.baseline.jsonc | 6 - .../goToDefinitionImport2.baseline.jsonc | 3 - .../goToDefinitionImport3.baseline.jsonc | 3 - ...goToDefinitionImportedNames.baseline.jsonc | 13 - ...ToDefinitionImportedNames10.baseline.jsonc | 10 - ...ToDefinitionImportedNames11.baseline.jsonc | 10 - ...oToDefinitionImportedNames2.baseline.jsonc | 13 - ...oToDefinitionImportedNames3.baseline.jsonc | 31 - ...oToDefinitionImportedNames4.baseline.jsonc | 13 - ...oToDefinitionImportedNames5.baseline.jsonc | 13 - ...oToDefinitionImportedNames6.baseline.jsonc | 13 - ...oToDefinitionImportedNames7.baseline.jsonc | 9 - ...oToDefinitionImportedNames8.baseline.jsonc | 9 - ...oToDefinitionImportedNames9.baseline.jsonc | 10 - .../goToDefinitionImports.baseline.jsonc | 57 - ...finitionInMemberDeclaration.baseline.jsonc | 154 - ...oToDefinitionInTypeArgument.baseline.jsonc | 17 - ...oToDefinitionIndexSignature.baseline.jsonc | 100 - ...ToDefinitionIndexSignature2.baseline.jsonc | 4 - .../goToDefinitionInstanceof1.baseline.jsonc | 6 - .../goToDefinitionInstanceof2.baseline.jsonc | 7 - ...tionInterfaceAfterImplement.baseline.jsonc | 12 - ...ToDefinitionJsDocImportTag1.baseline.jsonc | 5 - ...ToDefinitionJsDocImportTag2.baseline.jsonc | 5 - ...ToDefinitionJsDocImportTag3.baseline.jsonc | 5 - ...ToDefinitionJsDocImportTag4.baseline.jsonc | 8 - ...ToDefinitionJsDocImportTag5.baseline.jsonc | 13 - ...ToDefinitionJsModuleExports.baseline.jsonc | 15 - .../goToDefinitionJsModuleName.baseline.jsonc | 6 - ...ionJsModuleNameAtImportName.baseline.jsonc | 53 - .../goToDefinitionJsxCall.baseline.jsonc | 8 - .../goToDefinitionJsxNotSet.baseline.jsonc | 10 - .../goToDefinitionLabels.baseline.jsonc | 49 - .../goToDefinitionMember.baseline.jsonc | 5 - .../goToDefinitionMetaProperty.baseline.jsonc | 46 - ...ToDefinitionMethodOverloads.baseline.jsonc | 106 - .../goToDefinitionModifiers.baseline.jsonc | 199 - ...finitionMultipleDefinitions.baseline.jsonc | 32 - ...NewExpressionTargetNotClass.baseline.jsonc | 23 - ...indingElementPropertyName01.baseline.jsonc | 9 - ...tionObjectLiteralProperties.baseline.jsonc | 87 - ...ionObjectLiteralProperties1.baseline.jsonc | 29 - .../goToDefinitionObjectSpread.baseline.jsonc | 8 - ...sInMultiplePropertyAccesses.baseline.jsonc | 10 - ...DefinitionOverriddenMember1.baseline.jsonc | 8 - ...efinitionOverriddenMember10.baseline.jsonc | 7 - ...efinitionOverriddenMember11.baseline.jsonc | 57 - ...efinitionOverriddenMember12.baseline.jsonc | 8 - ...efinitionOverriddenMember13.baseline.jsonc | 8 - ...efinitionOverriddenMember14.baseline.jsonc | 9 - ...efinitionOverriddenMember15.baseline.jsonc | 9 - ...efinitionOverriddenMember16.baseline.jsonc | 9 - ...efinitionOverriddenMember17.baseline.jsonc | 8 - ...efinitionOverriddenMember18.baseline.jsonc | 8 - ...efinitionOverriddenMember19.baseline.jsonc | 8 - ...DefinitionOverriddenMember2.baseline.jsonc | 9 - ...efinitionOverriddenMember20.baseline.jsonc | 8 - ...efinitionOverriddenMember21.baseline.jsonc | 9 - ...efinitionOverriddenMember22.baseline.jsonc | 9 - ...efinitionOverriddenMember23.baseline.jsonc | 8 - ...efinitionOverriddenMember24.baseline.jsonc | 8 - ...efinitionOverriddenMember25.baseline.jsonc | 9 - ...efinitionOverriddenMember26.baseline.jsonc | 9 - ...DefinitionOverriddenMember3.baseline.jsonc | 9 - ...DefinitionOverriddenMember4.baseline.jsonc | 10 - ...DefinitionOverriddenMember5.baseline.jsonc | 7 - ...DefinitionOverriddenMember6.baseline.jsonc | 8 - ...DefinitionOverriddenMember7.baseline.jsonc | 5 - ...DefinitionOverriddenMember8.baseline.jsonc | 11 - ...DefinitionOverriddenMember9.baseline.jsonc | 11 - ...nitionPartialImplementation.baseline.jsonc | 16 - .../goToDefinitionPrimitives.baseline.jsonc | 3 - .../goToDefinitionPrivateName.baseline.jsonc | 45 - ...efinitionPropertyAssignment.baseline.jsonc | 19 - .../goToDefinitionRest.baseline.jsonc | 10 - .../goToDefinitionReturn1.baseline.jsonc | 5 - .../goToDefinitionReturn2.baseline.jsonc | 7 - .../goToDefinitionReturn3.baseline.jsonc | 7 - .../goToDefinitionReturn4.baseline.jsonc | 3 - .../goToDefinitionReturn5.baseline.jsonc | 7 - .../goToDefinitionReturn6.baseline.jsonc | 7 - .../goToDefinitionReturn7.baseline.jsonc | 7 - .../goToDefinitionSameFile.baseline.jsonc | 82 - ...initionSatisfiesExpression1.baseline.jsonc | 19 - .../goToDefinitionScriptImport.baseline.jsonc | 11 - ...efinitionScriptImportServer.baseline.jsonc | 21 - ...oToDefinitionShadowVariable.baseline.jsonc | 7 - ...nShadowVariableInsideModule.baseline.jsonc | 6 - ...finitionShorthandProperty01.baseline.jsonc | 41 - ...finitionShorthandProperty02.baseline.jsonc | 5 - ...finitionShorthandProperty03.baseline.jsonc | 19 - ...finitionShorthandProperty04.baseline.jsonc | 9 - ...finitionShorthandProperty05.baseline.jsonc | 9 - ...finitionShorthandProperty06.baseline.jsonc | 9 - ...itionSignatureAlias_require.baseline.jsonc | 17 - .../goToDefinitionSimple.baseline.jsonc | 17 - .../goToDefinitionSourceUnit.baseline.jsonc | 22 - .../goToDefinitionSwitchCase1.baseline.jsonc | 5 - .../goToDefinitionSwitchCase2.baseline.jsonc | 5 - .../goToDefinitionSwitchCase3.baseline.jsonc | 21 - .../goToDefinitionSwitchCase4.baseline.jsonc | 9 - .../goToDefinitionSwitchCase5.baseline.jsonc | 3 - .../goToDefinitionSwitchCase6.baseline.jsonc | 21 - .../goToDefinitionSwitchCase7.baseline.jsonc | 5 - ...tionTaggedTemplateOverloads.baseline.jsonc | 19 - .../goToDefinitionThis.baseline.jsonc | 33 - ...oToDefinitionTypeOnlyImport.baseline.jsonc | 8 - ...goToDefinitionTypePredicate.baseline.jsonc | 15 - ...itionTypeReferenceDirective.baseline.jsonc | 4 - .../goToDefinitionTypeofThis.baseline.jsonc | 33 - ...oDefinitionUndefinedSymbols.baseline.jsonc | 33 - ...efinitionUnionTypeProperty1.baseline.jsonc | 16 - ...efinitionUnionTypeProperty2.baseline.jsonc | 18 - ...efinitionUnionTypeProperty3.baseline.jsonc | 10 - ...efinitionUnionTypeProperty4.baseline.jsonc | 19 - ...nTypeProperty_discriminated.baseline.jsonc | 95 - ...efinitionVariableAssignment.baseline.jsonc | 6 - ...finitionVariableAssignment1.baseline.jsonc | 5 - ...finitionVariableAssignment2.baseline.jsonc | 6 - ...finitionVariableAssignment3.baseline.jsonc | 5 - .../goToDefinitionYield1.baseline.jsonc | 21 - .../goToDefinitionYield2.baseline.jsonc | 8 - .../goToDefinitionYield3.baseline.jsonc | 23 - .../goToDefinitionYield4.baseline.jsonc | 5 - ..._filteringGenericMappedType.baseline.jsonc | 14 - ...inition_filteringMappedType.baseline.jsonc | 5 - .../goToDefinition_mappedType.baseline.jsonc | 5 - .../goToDefinition_super.baseline.jsonc | 46 - ...oToDefinition_untypedModule.baseline.jsonc | 4 - .../goToModuleAliasDefinition.baseline.jsonc | 4 - .../goToTypeDefinition4.baseline.jsonc | 8 - ...finitionConstructorFunction.baseline.jsonc | 10 - ...tionInObjectBindingPattern1.baseline.jsonc | 7 - ...tionInObjectBindingPattern2.baseline.jsonc | 18 - .../gotoDefinitionLinkTag1.baseline.jsonc | 125 - .../gotoDefinitionLinkTag2.baseline.jsonc | 6 - .../gotoDefinitionLinkTag3.baseline.jsonc | 9 - .../gotoDefinitionLinkTag4.baseline.jsonc | 6 - .../gotoDefinitionLinkTag5.baseline.jsonc | 7 - .../gotoDefinitionLinkTag6.baseline.jsonc | 6 - ...essExpressionHeritageClause.baseline.jsonc | 19 - .../gotoDefinitionSatisfiesTag.baseline.jsonc | 9 - .../gotoDefinitionThrowsTag.baseline.jsonc | 8 - ...mportTypeNodeGoToDefinition.baseline.jsonc | 95 - .../javaScriptClass3.baseline.jsonc | 27 - .../goToDefinition/jsDocSee1.baseline.jsonc | 91 - .../goToDefinition/jsDocSee2.baseline.jsonc | 87 - .../goToDefinition/jsDocSee3.baseline.jsonc | 9 - .../goToDefinition/jsDocSee4.baseline.jsonc | 52 - ...docTypedefTagGoToDefinition.baseline.jsonc | 34 - .../jsxSpreadReference.baseline.jsonc | 8 - ..._with_variable_entity_names.baseline.jsonc | 11 - .../reallyLargeFile.baseline.jsonc | 7 - .../tsxGoToDefinitionClasses.baseline.jsonc | 48 - ...tsxGoToDefinitionIntrinsics.baseline.jsonc | 48 - ...efinitionStatelessFunction1.baseline.jsonc | 87 - ...efinitionStatelessFunction2.baseline.jsonc | 104 - ...DefinitionUnionElementType1.baseline.jsonc | 14 - ...DefinitionUnionElementType2.baseline.jsonc | 8 - .../goToTypeDefinition.baseline.jsonc | 9 - .../goToTypeDefinition2.baseline.jsonc | 11 - .../goToTypeDefinition3.baseline.jsonc | 4 - .../goToTypeDefinition4.baseline.jsonc | 4 - .../goToTypeDefinition5.baseline.jsonc | 5 - .../goToTypeDefinitionAliases.baseline.jsonc | 23 - ...ToTypeDefinitionEnumMembers.baseline.jsonc | 9 - ...oToTypeDefinitionImportMeta.baseline.jsonc | 9 - ...goToTypeDefinitionModifiers.baseline.jsonc | 227 -- .../goToTypeDefinitionModule.baseline.jsonc | 23 - ...oToTypeDefinitionPrimitives.baseline.jsonc | 33 - ...goToTypeDefinitionUnionType.baseline.jsonc | 19 - .../goToTypeDefinition_Pick.baseline.jsonc | 19 - ...oToTypeDefinition_arrayType.baseline.jsonc | 37 - ...oTypeDefinition_promiseType.baseline.jsonc | 19 - ...ToTypeDefinition_returnType.baseline.jsonc | 179 - ...ypeDefinition_typeReference.baseline.jsonc | 6 - .../goToTypeDefinition_typedef.baseline.jsonc | 9 - .../goToType/typedefinition01.baseline.jsonc | 7 - ...fContextSensitiveParameterNoCrash.baseline | 124 - .../deprecatedInheritedJSDocOverload.baseline | 63 - .../quickInfo/jsDocAliasQuickInfo.baseline | 61 - .../quickInfo/jsDocTypeTagQuickInfo1.baseline | 472 --- .../quickInfo/jsDocTypeTagQuickInfo2.baseline | 436 --- .../quickInfo/jsDocTypedefQuickInfo1.baseline | 98 - .../fourslash/quickInfo/jsdocLink1.baseline | 58 - .../fourslash/quickInfo/jsdocLink4.baseline | 122 - .../fourslash/quickInfo/jsdocLink5.baseline | 47 - .../jsdocOnInheritedMembers1.baseline | 51 - .../jsdocOnInheritedMembers2.baseline | 51 - ...InfoDisplayPartsClassDefaultNamed.baseline | 104 - .../quickInfoDisplayPartsConst.baseline | 569 --- .../quickInfoDisplayPartsEnum1.baseline | 1042 ----- .../quickInfoDisplayPartsEnum2.baseline | 1042 ----- .../quickInfoDisplayPartsEnum3.baseline | 1042 ----- .../quickInfoDisplayPartsEnum4.baseline | 78 - ...foDisplayPartsExternalModuleAlias.baseline | 104 - ...ckInfoDisplayPartsExternalModules.baseline | 576 --- .../quickInfoDisplayPartsFunction.baseline | 510 --- ...nfoDisplayPartsFunctionExpression.baseline | 216 - ...nfoDisplayPartsFunctionIncomplete.baseline | 72 - .../quickInfoDisplayPartsInterface.baseline | 109 - ...kInfoDisplayPartsInterfaceMembers.baseline | 320 -- ...foDisplayPartsInternalModuleAlias.baseline | 290 -- .../quickInfoDisplayPartsLet.baseline | 569 --- ...nfoDisplayPartsLiteralLikeNames01.baseline | 357 -- ...uickInfoDisplayPartsLocalFunction.baseline | 581 --- .../quickInfoDisplayPartsModules.baseline | 576 --- .../quickInfoDisplayPartsParameters.baseline | 319 -- .../quickInfoDisplayPartsTypeAlias.baseline | 212 - ...oDisplayPartsTypeParameterInClass.baseline | 1418 ------- ...splayPartsTypeParameterInFunction.baseline | 420 -- ...arameterInFunctionLikeInTypeAlias.baseline | 108 - ...playPartsTypeParameterInInterface.baseline | 2232 ----------- ...playPartsTypeParameterInTypeAlias.baseline | 210 - .../quickInfoDisplayPartsUsing.baseline | 76 - .../quickInfoDisplayPartsVar.baseline | 495 --- ...oDisplayPartsVarWithStringTypes01.baseline | 109 - ...ForArgumentsPropertyNameInJsMode1.baseline | 81 - ...ForArgumentsPropertyNameInJsMode2.baseline | 77 - .../quickInfoForConstAssertions.baseline | 144 - .../quickInfoForJSDocCodefence.baseline | 101 - .../quickInfoForJSDocUnknownTag.baseline | 249 -- .../quickInfoForJSDocWithHttpLinks.baseline | 230 -- ...foForJSDocWithUnresolvedHttpLinks.baseline | 79 - ...InfoForObjectBindingElementName03.baseline | 48 - ...InfoForObjectBindingElementName04.baseline | 88 - ...InfoForObjectBindingElementName05.baseline | 51 - ...InfoForObjectBindingElementName06.baseline | 56 - .../quickInfo/quickInfoImportMeta.baseline | 57 - .../quickInfo/quickInfoInheritDoc.baseline | 179 - .../quickInfo/quickInfoInheritDoc2.baseline | 55 - .../quickInfo/quickInfoInheritDoc3.baseline | 56 - .../quickInfo/quickInfoInheritDoc4.baseline | 50 - .../quickInfo/quickInfoInheritDoc5.baseline | 50 - .../quickInfo/quickInfoInheritDoc6.baseline | 48 - .../quickInfoJSDocAtBeforeSpace.baseline | 129 - .../quickInfo/quickInfoJSDocTags.baseline | 486 --- .../quickInfo/quickInfoJsDoc.baseline | 473 --- .../quickInfo/quickInfoJsDocAlias.baseline | 22 - .../quickInfoJsDocGetterSetter.baseline | 381 -- .../quickInfoJsDocInheritage.baseline | 924 ----- .../quickInfo/quickInfoJsDocTags1.baseline | 51 - .../quickInfo/quickInfoJsDocTags10.baseline | 51 - .../quickInfo/quickInfoJsDocTags11.baseline | 55 - .../quickInfo/quickInfoJsDocTags12.baseline | 55 - .../quickInfo/quickInfoJsDocTags14.baseline | 56 - .../quickInfo/quickInfoJsDocTags15.baseline | 121 - .../quickInfo/quickInfoJsDocTags16.baseline | 88 - .../quickInfo/quickInfoJsDocTags3.baseline | 55 - .../quickInfo/quickInfoJsDocTags4.baseline | 58 - .../quickInfo/quickInfoJsDocTags5.baseline | 58 - .../quickInfo/quickInfoJsDocTags6.baseline | 61 - .../quickInfo/quickInfoJsDocTags7.baseline | 49 - .../quickInfo/quickInfoJsDocTags8.baseline | 49 - .../quickInfo/quickInfoJsDocTags9.baseline | 50 - .../quickInfoJsDocTagsCallback.baseline | 83 - ...ckInfoJsDocTagsFunctionOverload01.baseline | 84 - ...ckInfoJsDocTagsFunctionOverload05.baseline | 80 - .../quickInfoJsDocTagsTypedef.baseline | 87 - .../quickInfo/quickInfoJsDocThisTag.baseline | 44 - .../quickInfo/quickInfoLink10.baseline | 42 - .../quickInfo/quickInfoLink11.baseline | 50 - .../quickInfo/quickInfoLink5.baseline | 43 - .../quickInfo/quickInfoLink6.baseline | 43 - .../quickInfo/quickInfoLink7.baseline | 42 - .../quickInfo/quickInfoLink8.baseline | 43 - .../quickInfo/quickInfoLink9.baseline | 26 - ...nfoNestedExportEqualExportDefault.baseline | 58 - ...laredUsingCatchCallIndexSignature.baseline | 42 - ...singTemplateLiteralTypeSignatures.baseline | 80 - .../quickInfoOnJsxNamespacedName.baseline | 21 - .../quickInfoOnParameterProperties.baseline | 97 - .../quickInfo/quickInfoOnThis5.baseline | 210 - ...rtiesWithIdenticalJSDocComments01.baseline | 63 - ...hodsOnAssignedFunctionExpressions.baseline | 48 - .../quickInfo/quickInfoSatisfiesTag.baseline | 42 - .../quickInfo/quickInfoTypedefTag.baseline | 128 - .../quickInfoUniqueSymbolJsDoc.baseline | 41 - .../jsDocDontBreakWithNamespaces.baseline | 94 - .../jsDocFunctionSignatures5.baseline | 54 - .../jsDocFunctionSignatures6.baseline | 164 - .../jsDocSignature_43394.baseline | 25 - .../signatureHelp/jsdocReturnsTag.baseline | 46 - .../quickInfoJsDocTags13.baseline | 100 - .../trailingCommaSignatureHelp.baseline | 85 - .../submodule/compiler/APISample_jsdoc.js | 35 +- .../compiler/APISample_jsdoc.js.diff | 10 +- .../submodule/compiler/APISample_linter.js | 35 +- .../compiler/APISample_linter.js.diff | 8 +- .../submodule/compiler/APISample_transform.js | 35 +- .../compiler/APISample_transform.js.diff | 10 +- .../submodule/compiler/APISample_watcher.js | 35 +- .../compiler/APISample_watcher.js.diff | 10 +- .../allowImportClausesToMergeWithTypes.js | 12 +- ...allowImportClausesToMergeWithTypes.js.diff | 21 +- .../compiler/allowSyntheticDefaultImports1.js | 5 +- .../allowSyntheticDefaultImports1.js.diff | 8 +- .../compiler/allowSyntheticDefaultImports4.js | 5 +- .../allowSyntheticDefaultImports4.js.diff | 8 +- .../compiler/allowSyntheticDefaultImports9.js | 5 +- .../allowSyntheticDefaultImports9.js.diff | 10 +- .../compiler/alwaysStrictModule2.errors.txt | 23 - .../compiler/alwaysStrictModule2.symbols | 25 - .../compiler/alwaysStrictModule2.types | 27 - ...alModuleInAnotherExternalModule.errors.txt | 19 + ...ntExternalModuleInAnotherExternalModule.js | 22 + ...ernalModuleInAnotherExternalModule.js.diff | 10 + ...ernalModuleInAnotherExternalModule.symbols | 24 + ...xternalModuleInAnotherExternalModule.types | 24 + .../assertionFunctionWildcardImport1.js | 105 +- .../assertionFunctionWildcardImport1.js.diff | 25 +- .../assertionFunctionWildcardImport2.js | 35 +- .../assertionFunctionWildcardImport2.js.diff | 10 +- .../compiler/asyncImportNestedYield.js | 35 +- .../compiler/asyncImportNestedYield.js.diff | 12 +- .../compiler/augmentExportEquals1.errors.txt | 25 + .../compiler/augmentExportEquals1.js | 32 + .../compiler/augmentExportEquals1.symbols | 33 + .../compiler/augmentExportEquals1.types | 32 + .../augmentExportEquals2.errors.txt.diff | 28 + .../compiler/augmentExportEquals2.js | 22 + .../compiler/augmentExportEquals2.js.diff | 24 + .../compiler/augmentExportEquals2.symbols | 9 + .../augmentExportEquals2.symbols.diff | 36 + .../compiler/augmentExportEquals2.types | 9 + .../compiler/augmentExportEquals2.types.diff | 34 + .../compiler/augmentExportEquals3.js | 77 + .../compiler/augmentExportEquals3.js.diff | 20 + .../compiler/augmentExportEquals3.symbols | 52 + .../compiler/augmentExportEquals3.types | 53 + .../compiler/augmentExportEquals4.js | 78 + .../compiler/augmentExportEquals4.js.diff | 20 + .../compiler/augmentExportEquals4.symbols | 52 + .../compiler/augmentExportEquals4.types | 53 + .../compiler/augmentExportEquals5.js | 91 + .../compiler/augmentExportEquals5.symbols | 198 + .../compiler/augmentExportEquals5.types | 134 + .../compiler/augmentExportEquals6.js | 88 + .../compiler/augmentExportEquals6.js.diff | 20 + .../compiler/augmentExportEquals6.symbols | 70 + .../compiler/augmentExportEquals6.types | 70 + .../compiler/augmentExportEquals7.types | 2 +- .../badExternalModuleReference.errors.txt | 12 + .../compiler/badExternalModuleReference.js | 13 + .../badExternalModuleReference.symbols | 20 + .../compiler/badExternalModuleReference.types | 18 + ...opedClassDeclarationAcrossFiles.errors.txt | 9 - ...kScopedClassDeclarationAcrossFiles.symbols | 11 - ...ockScopedClassDeclarationAcrossFiles.types | 11 - ...nctionDeclarationInStrictModule.errors.txt | 12 + ...ScopedFunctionDeclarationInStrictModule.js | 17 + ...dFunctionDeclarationInStrictModule.symbols | 12 + ...pedFunctionDeclarationInStrictModule.types | 17 + .../bundledDtsLateExportRenaming.errors.txt | 30 - .../bundledDtsLateExportRenaming.symbols | 39 - .../bundledDtsLateExportRenaming.types | 41 - .../cachedModuleResolution3.errors.txt | 16 - .../cachedModuleResolution3.errors.txt.diff | 20 - .../compiler/cachedModuleResolution3.js | 17 - .../compiler/cachedModuleResolution3.symbols | 14 - .../cachedModuleResolution3.trace.json | 54 - .../compiler/cachedModuleResolution3.types | 14 - .../cachedModuleResolution3.types.diff | 13 - .../cachedModuleResolution4.errors.txt | 17 - .../cachedModuleResolution4.errors.txt.diff | 21 - .../compiler/cachedModuleResolution4.js | 18 - .../compiler/cachedModuleResolution4.symbols | 14 - .../cachedModuleResolution4.trace.json | 54 - .../compiler/cachedModuleResolution4.types | 14 - .../cachedModuleResolution4.types.diff | 13 - .../cachedModuleResolution8.errors.txt | 13 - .../cachedModuleResolution8.errors.txt.diff | 20 - .../compiler/cachedModuleResolution8.js | 14 - .../compiler/cachedModuleResolution8.symbols | 10 - .../cachedModuleResolution8.trace.json | 54 - .../compiler/cachedModuleResolution8.types | 10 - .../cachedModuleResolution9.errors.txt | 15 - .../cachedModuleResolution9.errors.txt.diff | 22 - .../compiler/cachedModuleResolution9.js | 16 - .../compiler/cachedModuleResolution9.symbols | 11 - .../cachedModuleResolution9.trace.json | 54 - .../compiler/cachedModuleResolution9.types | 11 - ...aintOfJavascriptClassExpression.errors.txt | 29 - ...straintOfJavascriptClassExpression.symbols | 33 - ...onstraintOfJavascriptClassExpression.types | 47 - .../checkJsdocTypeTagOnExportAssignment1.js | 5 +- ...eckJsdocTypeTagOnExportAssignment1.js.diff | 10 +- .../checkJsdocTypeTagOnExportAssignment2.js | 5 +- ...eckJsdocTypeTagOnExportAssignment2.js.diff | 10 +- .../checkJsdocTypeTagOnExportAssignment3.js | 5 +- ...eckJsdocTypeTagOnExportAssignment3.js.diff | 10 +- .../checkJsdocTypeTagOnExportAssignment5.js | 5 +- ...eckJsdocTypeTagOnExportAssignment5.js.diff | 10 +- .../checkJsdocTypeTagOnExportAssignment6.js | 5 +- ...eckJsdocTypeTagOnExportAssignment6.js.diff | 10 +- .../checkJsdocTypeTagOnExportAssignment7.js | 5 +- ...eckJsdocTypeTagOnExportAssignment7.js.diff | 10 +- .../submodule/compiler/checkJsxNotSetError.js | 5 +- .../compiler/checkJsxNotSetError.js.diff | 10 +- ...collisionExportsRequireAndAlias.errors.txt | 24 + .../collisionExportsRequireAndAlias.js | 44 + .../collisionExportsRequireAndAlias.js.diff | 13 + .../collisionExportsRequireAndAlias.symbols | 34 + .../collisionExportsRequireAndAlias.types | 36 + .../collisionExportsRequireAndAmbientClass.js | 50 + ...isionExportsRequireAndAmbientClass.symbols | 59 + ...llisionExportsRequireAndAmbientClass.types | 60 + .../collisionExportsRequireAndAmbientEnum.js | 72 + ...lisionExportsRequireAndAmbientEnum.symbols | 129 + ...ollisionExportsRequireAndAmbientEnum.types | 129 + ...llisionExportsRequireAndAmbientFunction.js | 24 + ...onExportsRequireAndAmbientFunction.symbols | 30 + ...sionExportsRequireAndAmbientFunction.types | 31 + ...collisionExportsRequireAndAmbientModule.js | 116 + ...sionExportsRequireAndAmbientModule.symbols | 161 + ...lisionExportsRequireAndAmbientModule.types | 149 + .../collisionExportsRequireAndAmbientVar.js | 40 + ...llisionExportsRequireAndAmbientVar.symbols | 59 + ...collisionExportsRequireAndAmbientVar.types | 61 + .../commentOnImportStatement1.errors.txt | 10 + .../compiler/commentOnImportStatement1.js | 12 + .../commentOnImportStatement1.symbols | 8 + .../compiler/commentOnImportStatement1.types | 8 + .../compilerOptionsOutAndNoEmit.errors.txt | 8 - .../compilerOptionsOutAndNoEmit.symbols | 7 - .../compilerOptionsOutAndNoEmit.types | 7 - ...compilerOptionsOutFileAndNoEmit.errors.txt | 8 - .../compilerOptionsOutFileAndNoEmit.symbols | 7 - .../compilerOptionsOutFileAndNoEmit.types | 7 - ...lictingDeclarationsImportFromNamespace1.js | 35 +- ...ngDeclarationsImportFromNamespace1.js.diff | 8 +- ...lictingDeclarationsImportFromNamespace2.js | 35 +- ...ngDeclarationsImportFromNamespace2.js.diff | 8 +- .../constDeclarations-access5.errors.txt | 50 + .../constDeclarations-access5.errors.txt.diff | 93 + .../compiler/constDeclarations-access5.js | 88 + .../constDeclarations-access5.symbols | 153 + .../compiler/constDeclarations-access5.types | 195 + .../constDeclarations-access5.types.diff | 167 + ...clarations-useBeforeDefinition2.errors.txt | 10 - ...tDeclarations-useBeforeDefinition2.symbols | 10 - ...nstDeclarations-useBeforeDefinition2.types | 11 - ...nceCausesNoImport(isolatedmodules=true).js | 35 +- ...usesNoImport(isolatedmodules=true).js.diff | 10 +- ...stEnumNamespaceReferenceCausesNoImport2.js | 35 +- ...mNamespaceReferenceCausesNoImport2.js.diff | 12 +- .../compiler/controlFlowJavascript.errors.txt | 113 - .../compiler/controlFlowJavascript.symbols | 217 - .../compiler/controlFlowJavascript.types | 251 -- .../compiler/copyrightWithNewLine1.errors.txt | 15 + .../compiler/copyrightWithNewLine1.js | 24 + .../compiler/copyrightWithNewLine1.js.diff | 11 + .../compiler/copyrightWithNewLine1.symbols | 25 + .../compiler/copyrightWithNewLine1.types | 33 + .../compiler/copyrightWithNewLine1.types.diff | 14 + .../copyrightWithoutNewLine1.errors.txt | 14 + .../compiler/copyrightWithoutNewLine1.js | 23 + .../compiler/copyrightWithoutNewLine1.js.diff | 11 + .../compiler/copyrightWithoutNewLine1.symbols | 24 + .../compiler/copyrightWithoutNewLine1.types | 32 + .../copyrightWithoutNewLine1.types.diff | 14 + ...IntypeCheckInvocationExpression.errors.txt | 27 + .../crashIntypeCheckInvocationExpression.js | 25 + ...ashIntypeCheckInvocationExpression.symbols | 39 + ...crashIntypeCheckInvocationExpression.types | 43 + ...rsInInputDeclarationFileWithOut.errors.txt | 30 - ...rrorsInInputDeclarationFileWithOut.symbols | 27 - ...hErrorsInInputDeclarationFileWithOut.types | 27 - ...clarationEmitAnyComputedPropertyInClass.js | 5 +- ...tionEmitAnyComputedPropertyInClass.js.diff | 8 +- ...eservesHasNoDefaultLibDirective.errors.txt | 19 - ...ePreservesHasNoDefaultLibDirective.symbols | 36 - ...ervesHasNoDefaultLibDirective.symbols.diff | 38 - ...dlePreservesHasNoDefaultLibDirective.types | 21 - ...DirectoryDoesNotContainAllFiles.errors.txt | 16 - ...rceDirectoryDoesNotContainAllFiles.symbols | 20 - ...ourceDirectoryDoesNotContainAllFiles.types | 21 - ...clarationEmitComputedNameConstEnumAlias.js | 5 +- ...tionEmitComputedNameConstEnumAlias.js.diff | 10 +- ...rationEmitExportAliasVisibiilityMarking.js | 35 +- ...nEmitExportAliasVisibiilityMarking.js.diff | 8 +- .../declarationEmitExpressionInExtends6.js | 35 +- ...eclarationEmitExpressionInExtends6.js.diff | 10 +- ...dTypeDistributivityPreservesConstraints.js | 5 +- ...DistributivityPreservesConstraints.js.diff | 10 +- ...ationEmitMappedTypeTemplateTypeofSymbol.js | 35 +- ...EmitMappedTypeTemplateTypeofSymbol.js.diff | 8 +- .../declarationEmitMonorepoBaseUrl.errors.txt | 59 - .../declarationEmitMonorepoBaseUrl.js | 62 - ...larationEmitObjectAssignedDefaultExport.js | 5 +- ...ionEmitObjectAssignedDefaultExport.js.diff | 2 +- .../declarationEmitOfTypeofAliasedExport.js | 35 +- ...clarationEmitOfTypeofAliasedExport.js.diff | 10 +- ...clarationEmitOutFileBundlePaths.errors.txt | 16 - .../declarationEmitOutFileBundlePaths.symbols | 21 - .../declarationEmitOutFileBundlePaths.types | 25 - ...larationEmitPathMappingMonorepo.errors.txt | 34 - .../declarationEmitPathMappingMonorepo.js | 29 - ...declarationEmitPathMappingMonorepo.js.diff | 11 - ...declarationEmitPathMappingMonorepo.symbols | 31 - .../declarationEmitPathMappingMonorepo.types | 31 - ...arationEmitPathMappingMonorepo2.errors.txt | 54 - .../declarationEmitPathMappingMonorepo2.js | 41 - ...eclarationEmitPathMappingMonorepo2.js.diff | 15 - ...eclarationEmitPathMappingMonorepo2.symbols | 9 - ...ationEmitPathMappingMonorepo2.symbols.diff | 51 - .../declarationEmitPathMappingMonorepo2.types | 12 - ...arationEmitPathMappingMonorepo2.types.diff | 50 - ...tPrefersPathKindBasedOnBundling.errors.txt | 22 - ...ationEmitPrefersPathKindBasedOnBundling.js | 50 - ...EmitPrefersPathKindBasedOnBundling.js.diff | 11 - ...EmitPrefersPathKindBasedOnBundling.symbols | 31 - ...onEmitPrefersPathKindBasedOnBundling.types | 33 - ...RetainedAnnotationRetainsImportInOutput.js | 35 +- ...nedAnnotationRetainsImportInOutput.js.diff | 8 +- .../declarationEmitTypeofDefaultExport.js | 35 +- ...declarationEmitTypeofDefaultExport.js.diff | 10 +- ...eclarationEmitWithDefaultAsComputedName.js | 5 +- ...ationEmitWithDefaultAsComputedName.js.diff | 8 +- ...clarationEmitWithDefaultAsComputedName2.js | 35 +- ...tionEmitWithDefaultAsComputedName2.js.diff | 8 +- ...rationFileOverwriteErrorWithOut.errors.txt | 12 - ...clarationFileOverwriteErrorWithOut.symbols | 12 - ...declarationFileOverwriteErrorWithOut.types | 12 - ...onFilesGeneratingTypeReferences.errors.txt | 15 - ...ationFilesGeneratingTypeReferences.symbols | 18 - ...arationFilesGeneratingTypeReferences.types | 17 - .../declarationMapsOutFile2.errors.txt | 19 - .../compiler/declarationMapsOutFile2.symbols | 42 - .../compiler/declarationMapsOutFile2.types | 51 - .../declarationMapsWithSourceMap.errors.txt | 19 - .../declarationMapsWithSourceMap.symbols | 42 - .../declarationMapsWithSourceMap.types | 51 - ...arationsIndirectGeneratedAliasReference.js | 38 +- ...onsIndirectGeneratedAliasReference.js.diff | 8 +- ...ithImportDeclarationNameCollision4.js.diff | 2 +- ...ithImportDeclarationNameCollision5.js.diff | 2 +- ...ithImportDeclarationNameCollision6.js.diff | 2 +- ...ithImportDeclarationNameCollision7.js.diff | 2 +- ...ltDeclarationEmitShadowedNamedCorrectly.js | 35 +- ...larationEmitShadowedNamedCorrectly.js.diff | 6 +- .../duplicateLocalVariable2.errors.txt | 48 + .../compiler/duplicateLocalVariable2.js | 76 + .../compiler/duplicateLocalVariable2.js.diff | 12 + .../compiler/duplicateLocalVariable2.symbols | 96 + .../compiler/duplicateLocalVariable2.types | 129 + ...cateObjectLiteralProperty_computedName3.js | 35 +- ...bjectLiteralProperty_computedName3.js.diff | 10 +- .../duplicatePackage_referenceTypes.js | 35 +- .../duplicatePackage_referenceTypes.js.diff | 10 +- .../compiler/duplicatePackage_subModule.js | 35 +- .../duplicatePackage_subModule.js.diff | 10 +- .../duplicateSymbolsExportMatching.errors.txt | 140 + .../duplicateSymbolsExportMatching.js | 110 + .../duplicateSymbolsExportMatching.symbols | 143 + .../duplicateSymbolsExportMatching.types | 104 + .../dynamicImportEvaluateSpecifier.js | 39 +- .../dynamicImportInDefaultExportExpression.js | 35 +- ...micImportInDefaultExportExpression.js.diff | 6 +- .../compiler/dynamicImportTrailingComma.js | 35 +- .../dynamicImportTrailingComma.js.diff | 10 +- ...a_isolatedModules(module=commonjs).js.diff | 35 +- ...hLocalCollisions(module=node16).errors.txt | 12 - ...WithLocalCollisions(module=node16).js.diff | 18 +- ...hLocalCollisions(module=node18).errors.txt | 12 - ...WithLocalCollisions(module=node18).js.diff | 18 +- ...hLocalCollisions(module=node20).errors.txt | 12 - ...lCollisions(module=node20).errors.txt.diff | 11 - ...WithLocalCollisions(module=node20).js.diff | 18 +- ...ocalCollisions(module=nodenext).errors.txt | 12 - ...ollisions(module=nodenext).errors.txt.diff | 11 - ...thLocalCollisions(module=nodenext).js.diff | 18 +- ...calCollisions(module=none).errors.txt.diff | 16 + .../submodule/compiler/emptyModuleName.js | 35 +- .../compiler/emptyModuleName.js.diff | 10 +- ...plicitModuleResolutionNone.errors.txt.diff | 16 - .../errorForConflictingExportEqualsValue.js | 35 +- ...rorForConflictingExportEqualsValue.js.diff | 10 +- .../es5-importHelpersAsyncFunctions.js | 2 +- .../es5-importHelpersAsyncFunctions.symbols | 50 +- ...5-importHelpersAsyncFunctions.symbols.diff | 75 - .../es5-importHelpersAsyncFunctions.types | 2 +- .../es5ModuleInternalNamedImports.errors.txt | 74 + .../compiler/es5ModuleInternalNamedImports.js | 77 + .../es5ModuleInternalNamedImports.js.diff | 21 + .../es5ModuleInternalNamedImports.symbols | 89 + .../es5ModuleInternalNamedImports.types | 86 + .../compiler/es6ExportAll.errors.txt.diff | 23 - .../compiler/es6ExportAssignment2.errors.txt | 7 +- .../es6ExportAssignment2.errors.txt.diff | 18 - .../compiler/es6ExportAssignment2.js | 2 +- .../compiler/es6ExportAssignment2.symbols | 2 +- .../compiler/es6ExportAssignment2.types | 4 +- .../compiler/es6ExportAssignment2.types.diff | 8 - .../es6ExportAssignment3.errors.txt.diff | 16 - .../compiler/es6ExportAssignment3.types.diff | 8 - ...ortClauseWithoutModuleSpecifier.errors.txt | 35 - ...auseWithoutModuleSpecifier.errors.txt.diff | 39 - .../es6ExportClauseWithoutModuleSpecifier.js | 29 +- ...ExportClauseWithoutModuleSpecifier.js.diff | 11 +- ...ExportClauseWithoutModuleSpecifier.symbols | 12 +- ...tClauseWithoutModuleSpecifier.symbols.diff | 15 - ...s6ExportClauseWithoutModuleSpecifier.types | 22 +- ...ortClauseWithoutModuleSpecifier.types.diff | 28 - .../compiler/es6ExportEqualsInterop.js | 40 +- .../compiler/es6ExportEqualsInterop.js.diff | 38 +- .../compiler/es6ExportEqualsInterop.types | 8 +- .../es6ImportDefaultBinding.errors.txt | 17 - .../es6ImportDefaultBinding.errors.txt.diff | 21 - .../compiler/es6ImportDefaultBinding.js | 6 +- .../compiler/es6ImportDefaultBinding.symbols | 4 +- .../compiler/es6ImportDefaultBinding.types | 12 +- .../es6ImportDefaultBinding.types.diff | 18 - .../compiler/es6ImportDefaultBindingDts.js | 5 +- .../es6ImportDefaultBindingDts.js.diff | 8 +- ...BindingFollowedWithNamedImport1.errors.txt | 48 +- ...ngFollowedWithNamedImport1.errors.txt.diff | 58 - ...tDefaultBindingFollowedWithNamedImport1.js | 24 +- ...ultBindingFollowedWithNamedImport1.symbols | 12 +- ...faultBindingFollowedWithNamedImport1.types | 36 +- ...BindingFollowedWithNamedImport1.types.diff | 67 - ...ultBindingFollowedWithNamedImport1InEs5.js | 15 +- ...ndingFollowedWithNamedImport1InEs5.js.diff | 30 +- ...ndingFollowedWithNamedImport1WithExport.js | 15 +- ...FollowedWithNamedImport1WithExport.js.diff | 28 +- ...faultBindingFollowedWithNamedImportDts1.js | 15 +- ...BindingFollowedWithNamedImportDts1.js.diff | 28 +- ...llowedWithNamedImportWithExport.errors.txt | 58 + ...indingFollowedWithNamedImportWithExport.js | 61 + ...gFollowedWithNamedImportWithExport.js.diff | 23 + ...gFollowedWithNamedImportWithExport.symbols | 68 + ...ingFollowedWithNamedImportWithExport.types | 70 + ...ingFollowedWithNamespaceBinding.errors.txt | 8 +- ...llowedWithNamespaceBinding.errors.txt.diff | 17 - ...aultBindingFollowedWithNamespaceBinding.js | 4 +- ...indingFollowedWithNamespaceBinding.symbols | 4 +- ...gFollowedWithNamespaceBinding.symbols.diff | 9 - ...tBindingFollowedWithNamespaceBinding.types | 10 +- ...ingFollowedWithNamespaceBinding.types.diff | 17 - ...ngFollowedWithNamespaceBinding1.errors.txt | 12 - ...lowedWithNamespaceBinding1.errors.txt.diff | 16 - ...ultBindingFollowedWithNamespaceBinding1.js | 4 +- ...ndingFollowedWithNamespaceBinding1.symbols | 2 +- ...BindingFollowedWithNamespaceBinding1.types | 8 +- ...ngFollowedWithNamespaceBinding1.types.diff | 15 - ...ndingFollowedWithNamespaceBinding1InEs5.js | 5 +- ...FollowedWithNamespaceBinding1InEs5.js.diff | 10 +- ...tBindingFollowedWithNamespaceBindingDts.js | 35 +- ...ingFollowedWithNamespaceBindingDts.js.diff | 8 +- ...indingFollowedWithNamespaceBindingInEs5.js | 35 +- ...gFollowedWithNamespaceBindingInEs5.js.diff | 10 +- ...gFollowedWithNamespaceBindingWithExport.js | 35 +- ...owedWithNamespaceBindingWithExport.js.diff | 8 +- .../es6ImportDefaultBindingMergeErrors.js | 5 +- ...es6ImportDefaultBindingMergeErrors.js.diff | 10 +- ...6ImportDefaultBindingWithExport.errors.txt | 16 + .../es6ImportDefaultBindingWithExport.js | 32 + .../es6ImportDefaultBindingWithExport.js.diff | 10 + .../es6ImportDefaultBindingWithExport.symbols | 20 + .../es6ImportDefaultBindingWithExport.types | 21 + .../es6ImportEqualsDeclaration.errors.txt | 14 +- ...es6ImportEqualsDeclaration.errors.txt.diff | 24 - .../compiler/es6ImportEqualsDeclaration.js | 5 +- .../es6ImportEqualsDeclaration.js.diff | 11 - .../es6ImportEqualsDeclaration.symbols | 9 +- .../es6ImportEqualsDeclaration.symbols.diff | 13 - .../compiler/es6ImportEqualsDeclaration.types | 12 +- .../es6ImportEqualsDeclaration.types.diff | 16 - ...s6ImportEqualsExportModuleCommonJsError.js | 35 +- ...ortEqualsExportModuleCommonJsError.js.diff | 10 +- .../compiler/es6ImportNameSpaceImport.js | 35 +- .../compiler/es6ImportNameSpaceImportDts.js | 35 +- .../es6ImportNameSpaceImportDts.js.diff | 8 +- .../compiler/es6ImportNameSpaceImportInEs5.js | 35 +- .../es6ImportNameSpaceImportInEs5.js.diff | 10 +- ...edImportIdentifiersParsing.errors.txt.diff | 60 - ...ImportNamedImportNoNamedExports.errors.txt | 8 +- ...s6ImportNamedImportParsingError.errors.txt | 16 +- ...ortNamedImportParsingError.errors.txt.diff | 25 - .../es6ImportNamedImportParsingError.js | 14 +- .../es6ImportNamedImportParsingError.symbols | 8 +- .../es6ImportNamedImportParsingError.types | 14 +- .../expandoFunctionContextualTypesNoValue.js | 5 +- ...andoFunctionContextualTypesNoValue.js.diff | 6 +- .../compiler/exportAsNamespace_augment.js | 35 +- .../exportAsNamespace_augment.js.diff | 10 +- .../exportAssignmentImportMergeNoCrash.js | 5 +- ...exportAssignmentImportMergeNoCrash.js.diff | 8 +- ...ntheticDefaultImportsError.errors.txt.diff | 18 - ...lowSyntheticDefaultImportsError.types.diff | 8 - .../compiler/exportDeclareClass1.errors.txt | 18 + .../submodule/compiler/exportDeclareClass1.js | 18 + .../compiler/exportDeclareClass1.symbols | 26 + .../compiler/exportDeclareClass1.types | 26 + .../compiler/exportDefaultAbstractClass.js | 5 +- .../exportDefaultAbstractClass.js.diff | 10 +- .../exportDefaultAsyncFunction2.errors.txt | 28 +- ...xportDefaultAsyncFunction2.errors.txt.diff | 60 - .../compiler/exportDefaultAsyncFunction2.js | 16 +- .../exportDefaultAsyncFunction2.js.diff | 4 +- .../exportDefaultAsyncFunction2.symbols | 8 +- .../exportDefaultAsyncFunction2.types | 34 +- .../exportDefaultAsyncFunction2.types.diff | 60 - .../compiler/exportDefaultDuplicateCrash.js | 5 +- .../exportDefaultDuplicateCrash.js.diff | 4 +- .../exportDefaultMarksIdentifierAsUsed.js | 5 +- .../compiler/exportDefaultProperty.js | 11 +- .../compiler/exportDefaultProperty.js.diff | 20 +- .../compiler/exportDefaultProperty2.js | 5 +- .../compiler/exportDefaultProperty2.js.diff | 8 +- .../exportDefaultQualifiedNameNoError.js | 5 +- .../exportDefaultQualifiedNameNoError.js.diff | 8 +- .../compiler/exportDefaultStripsFreshness.js | 35 +- .../exportDefaultStripsFreshness.js.diff | 10 +- .../compiler/exportEqualErrorType.errors.txt | 25 + .../compiler/exportEqualErrorType.js | 33 + .../compiler/exportEqualErrorType.js.diff | 9 + .../compiler/exportEqualErrorType.symbols | 50 + .../compiler/exportEqualErrorType.types | 46 + .../compiler/exportEqualErrorType.types.diff | 18 + .../compiler/exportEqualsDefaultProperty.js | 5 +- .../exportEqualsDefaultProperty.js.diff | 10 +- .../compiler/exportSameNameFuncVar.errors.txt | 12 + .../compiler/exportSameNameFuncVar.js | 15 + .../compiler/exportSameNameFuncVar.symbols | 9 + .../compiler/exportSameNameFuncVar.types | 10 + .../compiler/exportStarFromEmptyModule.js | 35 +- .../exportStarFromEmptyModule.js.diff | 8 +- .../submodule/compiler/exportStarNotElided.js | 24 +- .../compiler/exportStarNotElided.js.diff | 2 +- ...exportedBlockScopedDeclarations.errors.txt | 52 + .../exportedBlockScopedDeclarations.js | 40 + .../exportedBlockScopedDeclarations.symbols | 48 + .../exportedBlockScopedDeclarations.types | 48 + ...essionsForbiddenInParameterInitializers.js | 35 +- ...nsForbiddenInParameterInitializers.js.diff | 12 +- .../compiler/extendsUntypedModule.js | 5 +- .../compiler/extendsUntypedModule.js.diff | 8 +- .../externalModuleImmutableBindings.js | 35 +- .../externalModuleImmutableBindings.js.diff | 8 +- .../fieldAndGetterWithSameName.errors.txt | 13 + .../compiler/fieldAndGetterWithSameName.js | 17 + .../fieldAndGetterWithSameName.js.diff | 10 + .../fieldAndGetterWithSameName.symbols | 12 + .../compiler/fieldAndGetterWithSameName.types | 13 + .../compiler/genericMemberFunction.errors.txt | 34 + .../compiler/genericMemberFunction.js | 48 + .../compiler/genericMemberFunction.symbols | 97 + .../compiler/genericMemberFunction.types | 72 + .../compiler/genericMemberFunction.types.diff | 11 + .../genericReturnTypeFromGetter1.errors.txt | 14 + .../compiler/genericReturnTypeFromGetter1.js | 21 + .../genericReturnTypeFromGetter1.js.diff | 10 + .../genericReturnTypeFromGetter1.symbols | 28 + .../genericReturnTypeFromGetter1.types | 20 + .../submodule/compiler/giant.errors.txt | 1377 +++++++ .../reference/submodule/compiler/giant.js | 1216 ++++++ .../submodule/compiler/giant.js.diff | 152 + .../submodule/compiler/giant.symbols | 1789 +++++++++ .../reference/submodule/compiler/giant.types | 1710 ++++++++ .../compiler/ignoredJsxAttributes.js | 35 +- .../compiler/ignoredJsxAttributes.js.diff | 8 +- .../importDeclWithClassModifiers.errors.txt | 39 + .../compiler/importDeclWithClassModifiers.js | 17 + .../importDeclWithClassModifiers.js.diff | 11 + .../importDeclWithClassModifiers.symbols | 26 + .../importDeclWithClassModifiers.types | 25 + .../submodule/compiler/importHelpers.js | 2 +- .../submodule/compiler/importHelpers.symbols | 52 +- .../compiler/importHelpers.symbols.diff | 77 - .../submodule/compiler/importHelpers.types | 2 +- .../compiler/importHelpersES6.errors.txt.diff | 30 + .../importHelpersInIsolatedModules.js | 2 +- .../importHelpersInIsolatedModules.symbols | 46 +- ...mportHelpersInIsolatedModules.symbols.diff | 68 - .../importHelpersInIsolatedModules.types | 2 +- .../submodule/compiler/importHelpersInTsx.js | 2 +- .../compiler/importHelpersInTsx.symbols | 46 +- .../compiler/importHelpersInTsx.symbols.diff | 68 - .../compiler/importHelpersInTsx.types | 2 +- .../importHelpersNoHelpers.errors.txt.diff | 62 - .../compiler/importHelpersNoHelpers.js | 73 - .../compiler/importHelpersNoHelpers.js.diff | 77 - .../compiler/importHelpersNoHelpers.symbols | 71 - .../compiler/importHelpersNoHelpers.types | 75 - ...oHelpersForAsyncGenerators.errors.txt.diff | 31 - ...mportHelpersNoHelpersForAsyncGenerators.js | 22 - ...HelpersNoHelpersForAsyncGenerators.js.diff | 18 - ...HelpersNoHelpersForAsyncGenerators.symbols | 15 - ...rtHelpersNoHelpersForAsyncGenerators.types | 24 - ...sNoHelpersForPrivateFields.errors.txt.diff | 27 - .../importHelpersNoHelpersForPrivateFields.js | 27 - ...rtHelpersNoHelpersForPrivateFields.js.diff | 24 - ...rtHelpersNoHelpersForPrivateFields.symbols | 28 - ...portHelpersNoHelpersForPrivateFields.types | 31 - .../importHelpersNoModule.errors.txt.diff | 33 - .../compiler/importHelpersNoModule.js | 52 - .../compiler/importHelpersNoModule.js.diff | 72 - .../compiler/importHelpersNoModule.symbols | 50 - .../compiler/importHelpersNoModule.types | 50 - ...(esmoduleinterop=false,module=commonjs).js | 25 - ...duleinterop=false,module=commonjs).symbols | 18 - ...nterop=false,module=commonjs).symbols.diff | 15 - ...moduleinterop=false,module=commonjs).types | 18 - ...As(esmoduleinterop=false,module=es2015).js | 19 - ...moduleinterop=false,module=es2015).symbols | 18 - ...einterop=false,module=es2015).symbols.diff | 15 - ...esmoduleinterop=false,module=es2015).types | 18 - ...As(esmoduleinterop=false,module=es2020).js | 18 - ...moduleinterop=false,module=es2020).symbols | 18 - ...einterop=false,module=es2020).symbols.diff | 15 - ...esmoduleinterop=false,module=es2020).types | 18 - ...(esmoduleinterop=false,module=commonjs).js | 32 - ...duleinterop=false,module=commonjs).js.diff | 14 - ...duleinterop=false,module=commonjs).symbols | 29 - ...nterop=false,module=commonjs).symbols.diff | 15 - ...moduleinterop=false,module=commonjs).types | 30 - ...lt(esmoduleinterop=false,module=es2015).js | 24 - ...moduleinterop=false,module=es2015).symbols | 29 - ...einterop=false,module=es2015).symbols.diff | 15 - ...esmoduleinterop=false,module=es2015).types | 30 - ...lt(esmoduleinterop=false,module=es2020).js | 24 - ...moduleinterop=false,module=es2020).symbols | 29 - ...einterop=false,module=es2020).symbols.diff | 15 - ...esmoduleinterop=false,module=es2020).types | 30 - ...(esmoduleinterop=false,module=commonjs).js | 27 - ...duleinterop=false,module=commonjs).symbols | 21 - ...nterop=false,module=commonjs).symbols.diff | 15 - ...moduleinterop=false,module=commonjs).types | 21 - ...As(esmoduleinterop=false,module=es2015).js | 20 - ...moduleinterop=false,module=es2015).symbols | 21 - ...einterop=false,module=es2015).symbols.diff | 15 - ...esmoduleinterop=false,module=es2015).types | 21 - ...As(esmoduleinterop=false,module=es2020).js | 20 - ...moduleinterop=false,module=es2020).symbols | 21 - ...einterop=false,module=es2020).symbols.diff | 15 - ...esmoduleinterop=false,module=es2020).types | 21 - ...ersWithLocalCollisions(module=commonjs).js | 2 +- ...lpersWithLocalCollisions(module=es2015).js | 2 +- .../importNonExportedMember10.errors.txt | 17 - .../importNonExportedMember10.symbols | 13 - .../compiler/importNonExportedMember10.types | 13 - .../importNonExportedMember4.errors.txt | 14 - .../compiler/importNonExportedMember4.js | 17 - .../compiler/importNonExportedMember4.symbols | 13 - .../compiler/importNonExportedMember4.types | 13 - .../importNonExportedMember6.errors.txt | 17 - .../compiler/importNonExportedMember6.js | 15 - .../compiler/importNonExportedMember6.symbols | 13 - .../compiler/importNonExportedMember6.types | 13 - .../importNonExportedMember8.errors.txt | 15 - .../compiler/importNonExportedMember8.symbols | 13 - .../compiler/importNonExportedMember8.types | 13 - .../compiler/importNotElidedWhenNotFound.js | 11 +- .../importNotElidedWhenNotFound.js.diff | 22 +- .../compiler/importWithTrailingSlash.js | 14 +- .../compiler/importWithTrailingSlash.js.diff | 26 +- .../compiler/incrementalOut.errors.txt | 8 - .../submodule/compiler/incrementalOut.symbols | 7 - .../submodule/compiler/incrementalOut.types | 8 - .../inferredIndexerOnNamespaceImport.js | 35 +- .../inferredIndexerOnNamespaceImport.js.diff | 10 +- .../compiler/inlineSourceMap2.errors.txt | 14 - .../compiler/inlineSourceMap2.symbols | 14 - .../submodule/compiler/inlineSourceMap2.types | 16 - .../compiler/inlineSources.errors.txt | 12 - .../submodule/compiler/inlineSources.symbols | 22 - .../submodule/compiler/inlineSources.types | 26 - .../compiler/inlineSources2.errors.txt | 12 - .../submodule/compiler/inlineSources2.symbols | 22 - .../submodule/compiler/inlineSources2.types | 26 - .../compiler/interfaceDeclaration3.errors.txt | 75 + .../compiler/interfaceDeclaration3.js | 102 + .../compiler/interfaceDeclaration3.js.diff | 42 + .../compiler/interfaceDeclaration3.symbols | 139 + .../compiler/interfaceDeclaration3.types | 114 + .../interfaceImplementation6.errors.txt | 38 + .../compiler/interfaceImplementation6.js | 47 + .../compiler/interfaceImplementation6.js.diff | 23 + .../compiler/interfaceImplementation6.symbols | 47 + .../compiler/interfaceImplementation6.types | 43 + ...lModuleWithoutExportAccessError.errors.txt | 35 + ...sideLocalModuleWithoutExportAccessError.js | 30 + ...ocalModuleWithoutExportAccessError.js.diff | 9 + ...ocalModuleWithoutExportAccessError.symbols | 35 + ...eLocalModuleWithoutExportAccessError.types | 30 + ...lModuleWithoutExportAccessError.errors.txt | 42 + ...sideLocalModuleWithoutExportAccessError.js | 37 + ...ocalModuleWithoutExportAccessError.js.diff | 9 + ...ocalModuleWithoutExportAccessError.symbols | 52 + ...eLocalModuleWithoutExportAccessError.types | 45 + .../isolatedModulesExportDeclarationType.js | 5 +- ...olatedModulesExportDeclarationType.js.diff | 8 +- .../isolatedModulesImportExportElision.js | 35 +- ...isolatedModulesImportExportElision.js.diff | 8 +- .../compiler/isolatedModulesReExportType.js | 35 +- .../isolatedModulesReExportType.js.diff | 6 +- ...ssMethodContainingArrowFunction.errors.txt | 15 - ...ClassMethodContainingArrowFunction.symbols | 20 - ...onClassMethodContainingArrowFunction.types | 22 - ...DuplicateFunctionImplementation.errors.txt | 21 - ...ionDuplicateFunctionImplementation.symbols | 16 - ...ationDuplicateFunctionImplementation.types | 18 - ...ImplementationFileOrderReversed.errors.txt | 22 - ...ionImplementationFileOrderReversed.symbols | 17 - ...ctionImplementationFileOrderReversed.types | 19 - ...ileCompilationDuplicateVariable.errors.txt | 14 - ...jsFileCompilationDuplicateVariable.symbols | 10 - .../jsFileCompilationDuplicateVariable.types | 12 - ...nDuplicateVariableErrorReported.errors.txt | 18 - ...tionDuplicateVariableErrorReported.symbols | 10 - ...lationDuplicateVariableErrorReported.types | 12 - ...FileCompilationEmitDeclarations.errors.txt | 16 - .../jsFileCompilationEmitDeclarations.symbols | 12 - .../jsFileCompilationEmitDeclarations.types | 12 - ...lationEmitTrippleSlashReference.errors.txt | 25 - ...mpilationEmitTrippleSlashReference.symbols | 18 - ...CompilationEmitTrippleSlashReference.types | 18 - ...tionsWithJsFileReferenceWithOut.errors.txt | 21 - ...arationsWithJsFileReferenceWithOut.symbols | 18 - ...clarationsWithJsFileReferenceWithOut.types | 18 - ...sFileCompilationLetBeingRenamed.errors.txt | 15 - .../jsFileCompilationLetBeingRenamed.symbols | 16 - .../jsFileCompilationLetBeingRenamed.types | 20 - ...eCompilationLetDeclarationOrder.errors.txt | 16 - ...FileCompilationLetDeclarationOrder.symbols | 16 - ...jsFileCompilationLetDeclarationOrder.types | 22 - ...CompilationLetDeclarationOrder2.errors.txt | 15 - ...ileCompilationLetDeclarationOrder2.symbols | 16 - ...sFileCompilationLetDeclarationOrder2.types | 22 - ...tionsWithJsFileReferenceWithOut.errors.txt | 22 - ...arationsWithJsFileReferenceWithOut.symbols | 19 - ...clarationsWithJsFileReferenceWithOut.types | 19 - ...FileCompilationNonNullAssertion.errors.txt | 14 - .../jsFileCompilationNonNullAssertion.symbols | 6 - .../jsFileCompilationNonNullAssertion.types | 7 - .../jsFileCompilationRestParameter.errors.txt | 11 - .../jsFileCompilationRestParameter.symbols | 7 - .../jsFileCompilationRestParameter.types | 7 - ...ileCompilationShortHandProperty.errors.txt | 18 - ...jsFileCompilationShortHandProperty.symbols | 22 - .../jsFileCompilationShortHandProperty.types | 26 - ...jsFileCompilationTypeAssertions.errors.txt | 21 - .../jsFileCompilationTypeAssertions.symbols | 7 - .../jsFileCompilationTypeAssertions.types | 14 - ...ationWithEnabledCompositeOption.errors.txt | 16 - ...pilationWithEnabledCompositeOption.symbols | 12 - ...ompilationWithEnabledCompositeOption.types | 12 - .../jsFileCompilationWithOut.errors.txt | 16 - .../compiler/jsFileCompilationWithOut.symbols | 12 - .../compiler/jsFileCompilationWithOut.types | 12 - ...rationFileNameSameAsInputJsFile.errors.txt | 11 - ...clarationFileNameSameAsInputJsFile.symbols | 11 - ...DeclarationFileNameSameAsInputJsFile.types | 11 - ...ithOutFileNameSameAsInputJsFile.errors.txt | 16 - ...onWithOutFileNameSameAsInputJsFile.symbols | 12 - ...tionWithOutFileNameSameAsInputJsFile.types | 12 - .../submodule/compiler/jsdocInTypeScript.js | 35 +- .../compiler/jsdocInTypeScript.js.diff | 10 +- .../jsxCallElaborationCheckNoCrash1.js | 35 +- .../jsxCallElaborationCheckNoCrash1.js.diff | 8 +- .../jsxChildrenIndividualErrorElaborations.js | 35 +- ...hildrenIndividualErrorElaborations.js.diff | 6 +- ...ldConfusableWithMultipleChildrenNoError.js | 35 +- ...fusableWithMultipleChildrenNoError.js.diff | 8 +- ...sxComplexSignatureHasApplicabilityError.js | 35 +- ...plexSignatureHasApplicabilityError.js.diff | 8 +- .../submodule/compiler/jsxElementType.js | 35 +- .../submodule/compiler/jsxElementType.js.diff | 12 +- .../compiler/jsxElementTypeLiteral.js | 35 +- .../compiler/jsxElementTypeLiteral.js.diff | 8 +- .../jsxElementTypeLiteralWithGeneric.js | 35 +- .../jsxElementTypeLiteralWithGeneric.js.diff | 8 +- ...yExpressionNotCountedAsChild(jsx=react).js | 35 +- ...essionNotCountedAsChild(jsx=react).js.diff | 8 +- .../jsxExcessPropsAndAssignability.js | 35 +- .../jsxExcessPropsAndAssignability.js.diff | 10 +- ...ryReference(jsx=react-jsx).errors.txt.diff | 17 - ...eference(jsx=react-jsxdev).errors.txt.diff | 17 - .../submodule/compiler/jsxHasLiteralType.js | 35 +- .../compiler/jsxHasLiteralType.js.diff | 10 +- ...jsxImportForSideEffectsNonExtantNoError.js | 35 +- ...portForSideEffectsNonExtantNoError.js.diff | 8 +- .../compiler/jsxImportInAttribute.js | 5 +- .../compiler/jsxImportInAttribute.js.diff | 8 +- .../jsxIntrinsicElementsCompatability.js | 35 +- .../jsxIntrinsicElementsCompatability.js.diff | 8 +- .../jsxIntrinsicElementsTypeArgumentErrors.js | 35 +- ...ntrinsicElementsTypeArgumentErrors.js.diff | 8 +- .../submodule/compiler/jsxIntrinsicUnions.js | 35 +- .../compiler/jsxIntrinsicUnions.js.diff | 10 +- ...suesErrorWhenTagExpectsTooManyArguments.js | 35 +- ...rrorWhenTagExpectsTooManyArguments.js.diff | 10 +- .../compiler/jsxNamespaceReexports.js | 35 +- .../compiler/jsxNamespaceReexports.js.diff | 10 +- .../jsxRuntimePragma(jsx=preserve).js | 111 +- .../jsxRuntimePragma(jsx=preserve).js.diff | 12 +- .../compiler/jsxRuntimePragma(jsx=react).js | 111 +- .../jsxRuntimePragma(jsx=react).js.diff | 14 +- .../jsxRuntimePragma(jsx=react-jsx).js | 111 +- .../jsxRuntimePragma(jsx=react-jsx).js.diff | 14 +- .../jsxRuntimePragma(jsx=react-jsxdev).js | 111 +- ...jsxRuntimePragma(jsx=react-jsxdev).js.diff | 14 +- .../compiler/jsxSpreadFirstUnionNoErrors.js | 5 +- .../jsxSpreadFirstUnionNoErrors.js.diff | 8 +- .../submodule/compiler/jsxViaImport.2.js | 5 +- .../submodule/compiler/jsxViaImport.2.js.diff | 8 +- .../keyofModuleObjectHasCorrectKeys.js | 35 +- .../keyofModuleObjectHasCorrectKeys.js.diff | 10 +- ...clarations-useBeforeDefinition2.errors.txt | 10 - ...tDeclarations-useBeforeDefinition2.symbols | 10 - ...letDeclarations-useBeforeDefinition2.types | 11 - .../submodule/compiler/mergedDeclarations7.js | 35 +- .../compiler/mergedDeclarations7.js.diff | 10 +- ...ntationDoesNamespaceEnumMergeOfReexport.js | 35 +- ...onDoesNamespaceEnumMergeOfReexport.js.diff | 10 +- .../moduleAugmentationGlobal8.errors.txt | 13 + .../compiler/moduleAugmentationGlobal8.js | 13 + .../moduleAugmentationGlobal8.symbols | 17 + .../compiler/moduleAugmentationGlobal8.types | 13 + .../moduleAugmentationGlobal8_1.errors.txt | 16 + .../compiler/moduleAugmentationGlobal8_1.js | 13 + .../moduleAugmentationGlobal8_1.symbols | 17 + .../moduleAugmentationGlobal8_1.types | 13 + .../compiler/moduleExports1.errors.txt | 40 + .../submodule/compiler/moduleExports1.js | 45 + .../submodule/compiler/moduleExports1.js.diff | 17 + .../submodule/compiler/moduleExports1.symbols | 40 + .../submodule/compiler/moduleExports1.types | 55 + ...oneDynamicImport(target=es2015).errors.txt | 17 - ...leNoneDynamicImport(target=es2015).symbols | 11 - ...duleNoneDynamicImport(target=es2015).types | 12 - ...oneDynamicImport(target=es2020).errors.txt | 17 - ...leNoneDynamicImport(target=es2020).symbols | 11 - ...duleNoneDynamicImport(target=es2020).types | 12 - .../compiler/moduleNoneErrors.errors.txt.diff | 2 + .../compiler/moduleNoneOutFile.errors.txt | 8 - .../compiler/moduleNoneOutFile.symbols | 11 - .../compiler/moduleNoneOutFile.types | 11 - ...geIdWithRelativeAndAbsolutePath.errors.txt | 55 - ...ionPackageIdWithRelativeAndAbsolutePath.js | 44 - ...ckageIdWithRelativeAndAbsolutePath.symbols | 50 - ...geIdWithRelativeAndAbsolutePath.trace.json | 80 - ...PackageIdWithRelativeAndAbsolutePath.types | 48 - ...olutionWithExtensions_withPaths.errors.txt | 51 - ...oduleResolutionWithExtensions_withPaths.js | 30 - ...ResolutionWithExtensions_withPaths.symbols | 28 - ...olutionWithExtensions_withPaths.trace.json | 44 - ...leResolutionWithExtensions_withPaths.types | 28 - ...odule=commonjs,moduleresolution=node16).js | 35 +- ...=commonjs,moduleresolution=node16).js.diff | 10 +- ...ule=commonjs,moduleresolution=nodenext).js | 35 +- ...ommonjs,moduleresolution=nodenext).js.diff | 10 +- ...solutionWithSuffixes_empty.errors.txt.diff | 22 - .../moduleResolutionWithSuffixes_empty.js | 16 - ...moduleResolutionWithSuffixes_empty.symbols | 10 - ...uleResolutionWithSuffixes_empty.trace.json | 6 - .../moduleResolutionWithSuffixes_empty.types | 10 - ...nWithSuffixes_notSpecified.errors.txt.diff | 21 - ...duleResolutionWithSuffixes_notSpecified.js | 16 - ...esolutionWithSuffixes_notSpecified.symbols | 10 - ...lutionWithSuffixes_notSpecified.trace.json | 6 - ...eResolutionWithSuffixes_notSpecified.types | 10 - ...ResolutionWithSuffixes_one.errors.txt.diff | 25 - .../moduleResolutionWithSuffixes_one.js | 23 - .../moduleResolutionWithSuffixes_one.symbols | 14 - ...oduleResolutionWithSuffixes_one.trace.json | 6 - .../moduleResolutionWithSuffixes_one.types | 14 - ...utionWithSuffixes_oneBlank.errors.txt.diff | 23 - .../moduleResolutionWithSuffixes_oneBlank.js | 16 - ...uleResolutionWithSuffixes_oneBlank.symbols | 10 - ...ResolutionWithSuffixes_oneBlank.trace.json | 6 - ...oduleResolutionWithSuffixes_oneBlank.types | 10 - ...olutionWithSuffixes_oneNotFound.errors.txt | 19 - ...onWithSuffixes_oneNotFound.errors.txt.diff | 17 - ...oduleResolutionWithSuffixes_oneNotFound.js | 16 - ...ResolutionWithSuffixes_oneNotFound.symbols | 10 - ...olutionWithSuffixes_oneNotFound.trace.json | 11 - ...leResolutionWithSuffixes_oneNotFound.types | 10 - ...xes_one_dirModuleWithIndex.errors.txt.diff | 24 - ...tionWithSuffixes_one_dirModuleWithIndex.js | 22 - ...ithSuffixes_one_dirModuleWithIndex.symbols | 14 - ...Suffixes_one_dirModuleWithIndex.trace.json | 12 - ...nWithSuffixes_one_dirModuleWithIndex.types | 14 - ...uffixes_one_externalModule.errors.txt.diff | 39 - ...solutionWithSuffixes_one_externalModule.js | 24 - ...ionWithSuffixes_one_externalModule.symbols | 10 - ...WithSuffixes_one_externalModule.trace.json | 15 - ...utionWithSuffixes_one_externalModule.types | 10 - ...xes_one_externalModulePath.errors.txt.diff | 39 - ...tionWithSuffixes_one_externalModulePath.js | 24 - ...ithSuffixes_one_externalModulePath.symbols | 10 - ...Suffixes_one_externalModulePath.trace.json | 12 - ...nWithSuffixes_one_externalModulePath.types | 10 - ...es_one_externalModule_withPaths.errors.txt | 50 - ...thSuffixes_one_externalModule_withPaths.js | 26 - ...fixes_one_externalModule_withPaths.symbols | 18 - ...es_one_externalModule_withPaths.trace.json | 45 - ...uffixes_one_externalModule_withPaths.types | 18 - ...fixes_one_externalTSModule.errors.txt.diff | 26 - ...lutionWithSuffixes_one_externalTSModule.js | 13 - ...nWithSuffixes_one_externalTSModule.symbols | 10 - ...thSuffixes_one_externalTSModule.trace.json | 13 - ...ionWithSuffixes_one_externalTSModule.types | 10 - ...duleResolutionWithSuffixes_one_jsModule.js | 35 - ...esolutionWithSuffixes_one_jsModule.js.diff | 23 - ...esolutionWithSuffixes_one_jsModule.symbols | 38 - ...tionWithSuffixes_one_jsModule.symbols.diff | 37 - ...lutionWithSuffixes_one_jsModule.trace.json | 10 - ...eResolutionWithSuffixes_one_jsModule.types | 48 - ...ithSuffixes_one_jsonModule.errors.txt.diff | 33 - ...leResolutionWithSuffixes_one_jsonModule.js | 27 - ...olutionWithSuffixes_one_jsonModule.js.diff | 9 - ...olutionWithSuffixes_one_jsonModule.symbols | 19 - ...tionWithSuffixes_one_jsonModule.trace.json | 8 - ...esolutionWithSuffixes_one_jsonModule.types | 23 - ...Suffixes_threeLastIsBlank1.errors.txt.diff | 27 - ...esolutionWithSuffixes_threeLastIsBlank1.js | 30 - ...tionWithSuffixes_threeLastIsBlank1.symbols | 18 - ...nWithSuffixes_threeLastIsBlank1.trace.json | 6 - ...lutionWithSuffixes_threeLastIsBlank1.types | 18 - ...Suffixes_threeLastIsBlank2.errors.txt.diff | 25 - ...esolutionWithSuffixes_threeLastIsBlank2.js | 23 - ...tionWithSuffixes_threeLastIsBlank2.symbols | 14 - ...nWithSuffixes_threeLastIsBlank2.trace.json | 7 - ...lutionWithSuffixes_threeLastIsBlank2.types | 14 - ...Suffixes_threeLastIsBlank3.errors.txt.diff | 23 - ...esolutionWithSuffixes_threeLastIsBlank3.js | 16 - ...tionWithSuffixes_threeLastIsBlank3.symbols | 10 - ...nWithSuffixes_threeLastIsBlank3.trace.json | 8 - ...lutionWithSuffixes_threeLastIsBlank3.types | 10 - ...nWithSuffixes_threeLastIsBlank4.errors.txt | 17 - ...Suffixes_threeLastIsBlank4.errors.txt.diff | 17 - ...esolutionWithSuffixes_threeLastIsBlank4.js | 9 - ...tionWithSuffixes_threeLastIsBlank4.symbols | 6 - ...nWithSuffixes_threeLastIsBlank4.trace.json | 21 - ...lutionWithSuffixes_threeLastIsBlank4.types | 6 - ...duleResolution_classicPrefersTs.errors.txt | 14 - .../moduleResolution_classicPrefersTs.symbols | 14 - .../moduleResolution_classicPrefersTs.types | 14 - .../submodule/compiler/narrowedImports.js | 37 +- .../compiler/narrowedImports.js.diff | 14 +- .../compiler/newAbstractInstance2.js | 5 +- .../compiler/newAbstractInstance2.js.diff | 10 +- .../compiler/noCrashOnImportShadowing.js | 70 +- .../compiler/noCrashOnImportShadowing.js.diff | 17 +- ...entationInDeclarationFile1.errors.txt.diff | 11 + ...entationInDeclarationFile2.errors.txt.diff | 2 + ...entationInDeclarationFile3.errors.txt.diff | 2 + .../compiler/nodeColonModuleResolution.js | 35 +- .../nodeColonModuleResolution.js.diff | 10 +- .../compiler/nodeColonModuleResolution2.js | 35 +- .../nodeColonModuleResolution2.js.diff | 10 +- .../optionsOutAndNoModuleGen.errors.txt | 7 - .../compiler/optionsOutAndNoModuleGen.symbols | 6 - .../compiler/optionsOutAndNoModuleGen.types | 7 - .../submodule/compiler/out-flag2.errors.txt | 10 - .../submodule/compiler/out-flag2.symbols | 10 - .../submodule/compiler/out-flag2.types | 10 - .../submodule/compiler/out-flag3.errors.txt | 10 - .../submodule/compiler/out-flag3.symbols | 10 - .../submodule/compiler/out-flag3.types | 10 - .../outModuleConcatCommonjs.errors.txt | 11 - .../compiler/outModuleConcatCommonjs.symbols | 14 - .../compiler/outModuleConcatCommonjs.types | 14 - ...leConcatCommonjsDeclarationOnly.errors.txt | 11 - ...oduleConcatCommonjsDeclarationOnly.symbols | 14 - ...tModuleConcatCommonjsDeclarationOnly.types | 14 - .../compiler/outModuleConcatES6.errors.txt | 10 - .../compiler/outModuleConcatES6.symbols | 14 - .../compiler/outModuleConcatES6.types | 14 - ...duleConcatUnspecifiedModuleKind.errors.txt | 9 - ...tModuleConcatUnspecifiedModuleKind.symbols | 10 - ...outModuleConcatUnspecifiedModuleKind.types | 11 - ...cifiedModuleKindDeclarationOnly.errors.txt | 10 - ...specifiedModuleKindDeclarationOnly.symbols | 10 - ...UnspecifiedModuleKindDeclarationOnly.types | 11 - ...pingBasedModuleResolution2_node.errors.txt | 28 - .../pathMappingBasedModuleResolution2_node.js | 10 - ...MappingBasedModuleResolution2_node.symbols | 6 - ...thMappingBasedModuleResolution2_node.types | 7 - ...pingBasedModuleResolution3_node.errors.txt | 22 - .../pathMappingBasedModuleResolution3_node.js | 35 - ...MappingBasedModuleResolution3_node.js.diff | 28 - ...MappingBasedModuleResolution3_node.symbols | 36 - ...ngBasedModuleResolution3_node.symbols.diff | 12 - ...pingBasedModuleResolution3_node.trace.json | 44 - ...thMappingBasedModuleResolution3_node.types | 42 - ...pingBasedModuleResolution3_node.types.diff | 26 - ...pingBasedModuleResolution4_node.errors.txt | 32 - .../pathMappingBasedModuleResolution4_node.js | 35 - ...MappingBasedModuleResolution4_node.js.diff | 28 - ...MappingBasedModuleResolution4_node.symbols | 36 - ...ngBasedModuleResolution4_node.symbols.diff | 12 - ...pingBasedModuleResolution4_node.trace.json | 44 - ...thMappingBasedModuleResolution4_node.types | 42 - ...pingBasedModuleResolution4_node.types.diff | 26 - ...pingBasedModuleResolution5_node.errors.txt | 56 - .../pathMappingBasedModuleResolution5_node.js | 49 - ...MappingBasedModuleResolution5_node.js.diff | 17 - ...MappingBasedModuleResolution5_node.symbols | 59 - ...pingBasedModuleResolution5_node.trace.json | 70 - ...thMappingBasedModuleResolution5_node.types | 70 - ...pingBasedModuleResolution7_node.errors.txt | 63 - .../pathMappingBasedModuleResolution7_node.js | 45 - ...MappingBasedModuleResolution7_node.js.diff | 30 - ...MappingBasedModuleResolution7_node.symbols | 53 - ...ngBasedModuleResolution7_node.symbols.diff | 23 - ...pingBasedModuleResolution7_node.trace.json | 132 - ...thMappingBasedModuleResolution7_node.types | 61 - ...pingBasedModuleResolution7_node.types.diff | 59 - ...pingBasedModuleResolution8_node.errors.txt | 28 - .../pathMappingBasedModuleResolution8_node.js | 17 - ...MappingBasedModuleResolution8_node.symbols | 10 - ...pingBasedModuleResolution8_node.trace.json | 8 - ...thMappingBasedModuleResolution8_node.types | 13 - ...lution_rootImport_aliasWithRoot.errors.txt | 29 - ...duleResolution_rootImport_aliasWithRoot.js | 26 - ...esolution_rootImport_aliasWithRoot.symbols | 17 - ...lution_rootImport_aliasWithRoot.trace.json | 21 - ...eResolution_rootImport_aliasWithRoot.types | 17 - ...liasWithRoot_differentRootTypes.errors.txt | 53 - ...Import_aliasWithRoot_differentRootTypes.js | 42 - ...t_aliasWithRoot_differentRootTypes.symbols | 83 - ...liasWithRoot_differentRootTypes.trace.json | 189 - ...ort_aliasWithRoot_differentRootTypes.types | 83 - ...t_aliasWithRoot_multipleAliases.errors.txt | 30 - ...ootImport_aliasWithRoot_multipleAliases.js | 26 - ...port_aliasWithRoot_multipleAliases.symbols | 17 - ...t_aliasWithRoot_multipleAliases.trace.json | 21 - ...Import_aliasWithRoot_multipleAliases.types | 17 - ...port_aliasWithRoot_realRootFile.errors.txt | 29 - ...n_rootImport_aliasWithRoot_realRootFile.js | 26 - ...tImport_aliasWithRoot_realRootFile.symbols | 17 - ...port_aliasWithRoot_realRootFile.trace.json | 23 - ...ootImport_aliasWithRoot_realRootFile.types | 17 - ...tion_rootImport_noAliasWithRoot.errors.txt | 29 - ...leResolution_rootImport_noAliasWithRoot.js | 26 - ...olution_rootImport_noAliasWithRoot.symbols | 17 - ...tion_rootImport_noAliasWithRoot.trace.json | 21 - ...esolution_rootImport_noAliasWithRoot.types | 17 - ...rt_noAliasWithRoot_realRootFile.errors.txt | 29 - ...rootImport_noAliasWithRoot_realRootFile.js | 26 - ...mport_noAliasWithRoot_realRootFile.symbols | 17 - ...rt_noAliasWithRoot_realRootFile.trace.json | 23 - ...tImport_noAliasWithRoot_realRootFile.types | 17 - ...dModuleResolution_withExtension.errors.txt | 36 - ...pingBasedModuleResolution_withExtension.js | 26 - ...asedModuleResolution_withExtension.symbols | 17 - ...dModuleResolution_withExtension.trace.json | 16 - ...gBasedModuleResolution_withExtension.types | 17 - ...eResolution_withExtensionInName.errors.txt | 30 - ...sedModuleResolution_withExtensionInName.js | 16 - ...duleResolution_withExtensionInName.symbols | 17 - ...eResolution_withExtensionInName.trace.json | 46 - ...ModuleResolution_withExtensionInName.types | 17 - ...ithExtension_MapedToNodeModules.errors.txt | 31 - ...lution_withExtension_MapedToNodeModules.js | 12 - ...n_withExtension_MapedToNodeModules.symbols | 6 - ...ithExtension_MapedToNodeModules.trace.json | 15 - ...ion_withExtension_MapedToNodeModules.types | 6 - ...tion_withExtension_failedLookup.errors.txt | 26 - ...leResolution_withExtension_failedLookup.js | 9 - ...olution_withExtension_failedLookup.symbols | 6 - ...tion_withExtension_failedLookup.trace.json | 17 - ...esolution_withExtension_failedLookup.types | 6 - .../pathMappingInheritedBaseUrl.errors.txt | 34 - .../compiler/pathMappingInheritedBaseUrl.js | 19 - .../pathMappingInheritedBaseUrl.js.diff | 11 - .../compiler/pathsValidation1.errors.txt | 21 - .../submodule/compiler/pathsValidation1.js | 7 - .../compiler/pathsValidation1.symbols | 6 - .../submodule/compiler/pathsValidation1.types | 7 - .../compiler/pathsValidation2.errors.txt | 21 - .../submodule/compiler/pathsValidation2.js | 7 - .../compiler/pathsValidation2.symbols | 6 - .../submodule/compiler/pathsValidation2.types | 7 - .../compiler/pathsValidation3.errors.txt | 22 - .../submodule/compiler/pathsValidation3.js | 7 - .../compiler/pathsValidation3.symbols | 6 - .../submodule/compiler/pathsValidation3.types | 7 - .../compiler/pathsValidation4.errors.txt | 34 - .../submodule/compiler/pathsValidation4.js | 9 - .../compiler/pathsValidation4.trace.json | 20 - ...ternalModuleImportWithoutExport.errors.txt | 54 + ...mbientExternalModuleImportWithoutExport.js | 117 + ...tExternalModuleImportWithoutExport.js.diff | 31 + ...tExternalModuleImportWithoutExport.symbols | 110 + ...entExternalModuleImportWithoutExport.types | 118 + .../compiler/propTypeValidatorInference.js | 35 +- .../propTypeValidatorInference.js.diff | 10 +- ...ertyIdentityWithPrivacyMismatch.errors.txt | 36 + .../propertyIdentityWithPrivacyMismatch.js | 43 + ...ropertyIdentityWithPrivacyMismatch.js.diff | 13 + ...ropertyIdentityWithPrivacyMismatch.symbols | 62 + .../propertyIdentityWithPrivacyMismatch.types | 58 + .../reactNamespaceImportPresevation.js | 35 +- .../reactNamespaceImportPresevation.js.diff | 10 +- .../reactReadonlyHOCAssignabilityReal.js | 35 +- .../reactReadonlyHOCAssignabilityReal.js.diff | 8 +- .../compiler/reactSFCAndFunctionResolvable.js | 35 +- .../reactSFCAndFunctionResolvable.js.diff | 10 +- .../reactTagNameComponentWithPropsNoOOM.js | 35 +- ...eactTagNameComponentWithPropsNoOOM.js.diff | 10 +- .../reactTagNameComponentWithPropsNoOOM2.js | 35 +- ...actTagNameComponentWithPropsNoOOM2.js.diff | 10 +- ...eactTransitiveImportHasValidDeclaration.js | 5 +- ...ransitiveImportHasValidDeclaration.js.diff | 10 +- ...rtAssignmentAndFindAliasedType1.errors.txt | 23 + ...ignmentAndFindAliasedType1.errors.txt.diff | 24 + ...siveExportAssignmentAndFindAliasedType1.js | 27 + ...xportAssignmentAndFindAliasedType1.symbols | 32 + ...eExportAssignmentAndFindAliasedType1.types | 31 + ...rtAssignmentAndFindAliasedType2.errors.txt | 33 + ...ignmentAndFindAliasedType2.errors.txt.diff | 34 + ...siveExportAssignmentAndFindAliasedType2.js | 31 + ...xportAssignmentAndFindAliasedType2.symbols | 41 + ...eExportAssignmentAndFindAliasedType2.types | 40 + ...rtAssignmentAndFindAliasedType3.errors.txt | 43 + ...ignmentAndFindAliasedType3.errors.txt.diff | 44 + ...siveExportAssignmentAndFindAliasedType3.js | 35 + ...xportAssignmentAndFindAliasedType3.symbols | 50 + ...eExportAssignmentAndFindAliasedType3.types | 49 + ...rtAssignmentAndFindAliasedType4.errors.txt | 20 + ...ignmentAndFindAliasedType4.errors.txt.diff | 22 + ...siveExportAssignmentAndFindAliasedType4.js | 28 + ...xportAssignmentAndFindAliasedType4.js.diff | 11 + ...xportAssignmentAndFindAliasedType4.symbols | 27 + ...eExportAssignmentAndFindAliasedType4.types | 26 + ...rtAssignmentAndFindAliasedType5.errors.txt | 30 + ...ignmentAndFindAliasedType5.errors.txt.diff | 33 + ...siveExportAssignmentAndFindAliasedType5.js | 36 + ...xportAssignmentAndFindAliasedType5.js.diff | 16 + ...xportAssignmentAndFindAliasedType5.symbols | 34 + ...eExportAssignmentAndFindAliasedType5.types | 33 + ...rtAssignmentAndFindAliasedType6.errors.txt | 40 + ...ignmentAndFindAliasedType6.errors.txt.diff | 44 + ...siveExportAssignmentAndFindAliasedType6.js | 44 + ...xportAssignmentAndFindAliasedType6.js.diff | 21 + ...xportAssignmentAndFindAliasedType6.symbols | 41 + ...eExportAssignmentAndFindAliasedType6.types | 40 + ...siveExportAssignmentAndFindAliasedType7.js | 46 + ...xportAssignmentAndFindAliasedType7.js.diff | 21 + ...xportAssignmentAndFindAliasedType7.symbols | 45 + ...eExportAssignmentAndFindAliasedType7.types | 44 + .../compiler/reexportMissingDefault.js | 5 +- .../compiler/reexportMissingDefault.js.diff | 6 +- .../compiler/reexportMissingDefault2.js | 5 +- .../compiler/reexportMissingDefault2.js.diff | 6 +- .../compiler/reexportMissingDefault3.js | 5 +- .../compiler/reexportMissingDefault3.js.diff | 6 +- .../compiler/reexportMissingDefault4.js | 5 +- .../compiler/reexportMissingDefault4.js.diff | 6 +- .../compiler/reexportMissingDefault6.js | 5 +- .../compiler/reexportMissingDefault6.js.diff | 6 +- .../requireAsFunctionInExternalModule.js | 35 +- .../requireAsFunctionInExternalModule.js.diff | 8 +- ...JsonFileWithModuleEmitNone.errors.txt.diff | 2 + ...duleNodeResolutionEmitNone.errors.txt.diff | 2 + ...ResolveJsonModuleAndPathMapping.errors.txt | 34 - ...eWithoutResolveJsonModuleAndPathMapping.js | 12 - ...outResolveJsonModuleAndPathMapping.symbols | 6 - ...ResolveJsonModuleAndPathMapping.trace.json | 34 - ...thoutResolveJsonModuleAndPathMapping.types | 6 - .../requireOfJsonFile_PathMapping.errors.txt | 31 - .../compiler/requireOfJsonFile_PathMapping.js | 12 - .../requireOfJsonFile_PathMapping.symbols | 10 - .../requireOfJsonFile_PathMapping.trace.json | 13 - .../requireOfJsonFile_PathMapping.types | 12 - ...PredicateIsInstantiateInContextOfTarget.js | 35 +- ...cateIsInstantiateInContextOfTarget.js.diff | 8 +- .../selfReferentialDefaultNoStackOverflow.js | 5 +- ...fReferentialDefaultNoStackOverflow.js.diff | 10 +- ...shorthand-property-es5-es6.errors.txt.diff | 15 - ...shorthand-property-es6-es6.errors.txt.diff | 15 - ...esUseJSDocForOptionalParameters.errors.txt | 24 - ...turesUseJSDocForOptionalParameters.symbols | 34 - ...UseJSDocForOptionalParameters.symbols.diff | 43 - ...naturesUseJSDocForOptionalParameters.types | 53 - ...ceMapWithCaseSensitiveFileNames.errors.txt | 14 - ...ourceMapWithCaseSensitiveFileNames.symbols | 14 - .../sourceMapWithCaseSensitiveFileNames.types | 14 - ...pWithMultipleFilesWithCopyright.errors.txt | 22 - ...eMapWithMultipleFilesWithCopyright.symbols | 28 - ...rceMapWithMultipleFilesWithCopyright.types | 31 - ...ilesWithFileEndingWithInterface.errors.txt | 21 - ...leFilesWithFileEndingWithInterface.symbols | 38 - ...ipleFilesWithFileEndingWithInterface.types | 37 - ...ilesWithFileEndingWithInterface.types.diff | 11 - ...apWithNonCaseSensitiveFileNames.errors.txt | 14 - ...ceMapWithNonCaseSensitiveFileNames.symbols | 14 - ...urceMapWithNonCaseSensitiveFileNames.types | 14 - .../spellingSuggestionJSXAttribute.js | 35 +- .../spellingSuggestionJSXAttribute.js.diff | 8 +- ...adExpressionContextualTypeWithNamespace.js | 35 +- ...ressionContextualTypeWithNamespace.js.diff | 10 +- .../compiler/stackDepthLimitCastingType.js | 35 +- .../stackDepthLimitCastingType.js.diff | 10 +- .../staticInstanceResolution5.errors.txt | 26 + .../compiler/staticInstanceResolution5.js | 35 + .../staticInstanceResolution5.symbols | 35 + .../compiler/staticInstanceResolution5.types | 33 + ...odeWordInImportDeclaration.errors.txt.diff | 33 - ...iesNoDirectLinkGeneratesNonrelativeName.js | 35 +- ...DirectLinkGeneratesNonrelativeName.js.diff | 8 +- ...ectLinkOptionalGeneratesNonrelativeName.js | 35 +- ...nkOptionalGeneratesNonrelativeName.js.diff | 8 +- ...oDirectLinkPeerGeneratesNonrelativeName.js | 35 +- ...ctLinkPeerGeneratesNonrelativeName.js.diff | 8 +- .../compiler/topLevelLambda4.errors.txt | 7 + .../submodule/compiler/topLevelLambda4.js | 7 + .../compiler/topLevelLambda4.symbols | 6 + .../submodule/compiler/topLevelLambda4.types | 10 + ...ormNestedGeneratorsWithTry.errors.txt.diff | 39 + .../transformNestedGeneratorsWithTry.js | 35 +- .../transformNestedGeneratorsWithTry.js.diff | 16 +- .../transformNestedGeneratorsWithTry.types | 4 +- .../tsxDeepAttributeAssignabilityError.js | 70 +- ...tsxDeepAttributeAssignabilityError.js.diff | 16 +- .../submodule/compiler/tsxDefaultImports.js | 5 +- .../compiler/tsxDefaultImports.js.diff | 7 +- .../compiler/tsxFragmentChildrenCheck.js | 35 +- .../compiler/tsxFragmentChildrenCheck.js.diff | 10 +- .../compiler/tsxNoTypeAnnotatedSFC.js | 35 +- .../compiler/tsxNoTypeAnnotatedSFC.js.diff | 8 +- .../typeAliasDeclarationEmit.errors.txt | 9 + .../compiler/typeAliasDeclarationEmit.js | 15 + .../compiler/typeAliasDeclarationEmit.symbols | 14 + .../compiler/typeAliasDeclarationEmit.types | 9 + .../typeReferenceDirectives11.errors.txt | 14 - .../typeReferenceDirectives11.symbols | 21 - .../typeReferenceDirectives11.trace.json | 13 - .../compiler/typeReferenceDirectives11.types | 22 - .../typeReferenceDirectives12.errors.txt | 35 - .../typeReferenceDirectives12.symbols | 70 - .../typeReferenceDirectives12.trace.json | 38 - .../compiler/typeReferenceDirectives12.types | 70 - .../compiler/typeUsedAsValueError2.errors.txt | 28 + .../compiler/typeUsedAsValueError2.js | 34 + .../compiler/typeUsedAsValueError2.symbols | 33 + .../compiler/typeUsedAsValueError2.types | 37 + .../compiler/undeclaredModuleError.errors.txt | 29 + .../compiler/undeclaredModuleError.js | 35 + .../compiler/undeclaredModuleError.js.diff | 11 + .../compiler/undeclaredModuleError.symbols | 60 + .../compiler/undeclaredModuleError.types | 67 + .../submodule/compiler/unusedImports11.js | 37 +- .../compiler/unusedImports11.js.diff | 14 +- .../submodule/compiler/unusedImports11.types | 4 +- .../submodule/compiler/unusedImports12.types | 2 +- .../unusedImports_entireImportDeclaration.js | 42 +- ...sedImports_entireImportDeclaration.js.diff | 18 +- ...nusedImports_entireImportDeclaration.types | 6 +- .../compiler/useBeforeDeclaration.errors.txt | 23 - .../compiler/useBeforeDeclaration.symbols | 35 - .../compiler/useBeforeDeclaration.types | 40 - ...sions(moduleresolution=classic).errors.txt | 32 - ...(moduleresolution=classic).errors.txt.diff | 15 - .../ambientDeclarationsPatterns.js | 5 +- .../ambientDeclarationsPatterns.js.diff | 8 +- ...eInsideNonAmbientExternalModule.errors.txt | 10 + ...nalModuleInsideNonAmbientExternalModule.js | 8 + ...duleInsideNonAmbientExternalModule.symbols | 6 + ...ModuleInsideNonAmbientExternalModule.types | 6 + .../submodule/conformance/ambientShorthand.js | 37 +- .../conformance/ambientShorthand.js.diff | 12 +- .../conformance/ambientShorthand_reExport.js | 35 +- .../ambientShorthand_reExport.js.diff | 10 +- ...paceIdentifiers_module(module=commonjs).js | 35 +- ...dentifiers_module(module=commonjs).js.diff | 2 +- ...ifiers_module(module=none).errors.txt.diff | 2 + ...aceIdentifiers_module(module=none).js.diff | 35 +- ...waitIsolatedModules_es2017.errors.txt.diff | 15 - ...ncAwaitIsolatedModules_es6.errors.txt.diff | 15 - ...edModifiers(target=es2017).errors.txt.diff | 20 - ...edModifiers(target=esnext).errors.txt.diff | 20 - .../submodule/conformance/chained2.js | 40 +- .../submodule/conformance/chained2.js.diff | 15 +- .../checkJsdocOnEndOfFile.errors.txt | 16 - .../conformance/checkJsdocOnEndOfFile.symbols | 8 - .../conformance/checkJsdocOnEndOfFile.types | 8 - .../checkJsdocReturnTag1.errors.txt | 34 - .../conformance/checkJsdocReturnTag1.symbols | 31 - .../conformance/checkJsdocReturnTag1.types | 36 - .../checkJsdocReturnTag2.errors.txt | 35 - .../conformance/checkJsdocReturnTag2.symbols | 22 - .../conformance/checkJsdocReturnTag2.types | 26 - .../checkJsxGenericTagHasCorrectInferences.js | 35 +- ...kJsxGenericTagHasCorrectInferences.js.diff | 10 +- .../checkJsxSubtleSkipContextSensitiveBug.js | 35 +- ...ckJsxSubtleSkipContextSensitiveBug.js.diff | 12 +- ...dPropertyNames52(target=es2015).errors.txt | 17 - ...utedPropertyNames52(target=es2015).symbols | 29 - ...mputedPropertyNames52(target=es2015).types | 38 - ...utedPropertyNames52(target=es5).errors.txt | 17 - ...omputedPropertyNames52(target=es5).symbols | 29 - .../computedPropertyNames52(target=es5).types | 38 - ...StringLiteralsInJsxAttributes02.errors.txt | 90 + ...gLiteralsInJsxAttributes02.errors.txt.diff | 88 + ...llyTypedStringLiteralsInJsxAttributes02.js | 63 + ...pedStringLiteralsInJsxAttributes02.js.diff | 11 + ...pedStringLiteralsInJsxAttributes02.symbols | 140 + ...TypedStringLiteralsInJsxAttributes02.types | 147 + ...eForJsonImport(resolvejsonmodule=false).js | 5 +- ...sonImport(resolvejsonmodule=false).js.diff | 10 +- ...leForJsonImport(resolvejsonmodule=true).js | 5 +- ...JsonImport(resolvejsonmodule=true).js.diff | 10 +- ...tedClassFromExternalModule.errors.txt.diff | 17 - ...ecoratedClassFromExternalModule.types.diff | 8 - .../conformance/decoratorMetadata.js.diff | 5 +- .../defaultExportInAwaitExpression02.js | 5 +- .../defaultExportInAwaitExpression02.js.diff | 5 +- .../defaultExportsCannotMerge01.js | 5 +- .../defaultExportsCannotMerge01.js.diff | 10 +- .../defaultExportsCannotMerge02.js | 5 +- .../defaultExportsCannotMerge02.js.diff | 10 +- .../defaultExportsCannotMerge03.js | 5 +- .../defaultExportsCannotMerge03.js.diff | 10 +- .../emitModuleCommonJS(module=commonjs).js | 74 +- ...6modulekindWithES5Target10.errors.txt.diff | 18 - ...s6modulekindWithES5Target9.errors.txt.diff | 47 - ...itHelpers-classDecorator.1.errors.txt.diff | 23 - ...ion-missingEmitHelpers-classDecorator.1.js | 21 - ...issingEmitHelpers-classDecorator.1.js.diff | 28 - ...itHelpers-classDecorator.2.errors.txt.diff | 26 - ...ion-missingEmitHelpers-classDecorator.2.js | 22 - ...issingEmitHelpers-classDecorator.2.js.diff | 30 - ...itHelpers-classDecorator.3.errors.txt.diff | 28 - ...ion-missingEmitHelpers-classDecorator.3.js | 24 - ...issingEmitHelpers-classDecorator.3.js.diff | 32 - ...nStaticPrivateAutoAccessor.errors.txt.diff | 28 - ...mitHelpers-nonStaticPrivateAutoAccessor.js | 24 - ...lpers-nonStaticPrivateAutoAccessor.js.diff | 32 - ...pers-nonStaticPrivateField.errors.txt.diff | 25 - ...issingEmitHelpers-nonStaticPrivateField.js | 24 - ...gEmitHelpers-nonStaticPrivateField.js.diff | 29 - ...ers-nonStaticPrivateGetter.errors.txt.diff | 28 - ...ssingEmitHelpers-nonStaticPrivateGetter.js | 24 - ...EmitHelpers-nonStaticPrivateGetter.js.diff | 29 - ...ers-nonStaticPrivateMethod.errors.txt.diff | 28 - ...ssingEmitHelpers-nonStaticPrivateMethod.js | 24 - ...EmitHelpers-nonStaticPrivateMethod.js.diff | 29 - ...ers-nonStaticPrivateSetter.errors.txt.diff | 28 - ...ssingEmitHelpers-nonStaticPrivateSetter.js | 24 - ...EmitHelpers-nonStaticPrivateSetter.js.diff | 29 - ...staticComputedAutoAccessor.errors.txt.diff | 29 - ...gEmitHelpers-staticComputedAutoAccessor.js | 25 - ...Helpers-staticComputedAutoAccessor.js.diff | 31 - ...elpers-staticComputedField.errors.txt.diff | 29 - ...-missingEmitHelpers-staticComputedField.js | 25 - ...ingEmitHelpers-staticComputedField.js.diff | 29 - ...lpers-staticComputedGetter.errors.txt.diff | 29 - ...missingEmitHelpers-staticComputedGetter.js | 25 - ...ngEmitHelpers-staticComputedGetter.js.diff | 26 - ...lpers-staticComputedMethod.errors.txt.diff | 29 - ...missingEmitHelpers-staticComputedMethod.js | 25 - ...ngEmitHelpers-staticComputedMethod.js.diff | 26 - ...lpers-staticComputedSetter.errors.txt.diff | 29 - ...missingEmitHelpers-staticComputedSetter.js | 25 - ...ngEmitHelpers-staticComputedSetter.js.diff | 26 - ...-staticPrivateAutoAccessor.errors.txt.diff | 28 - ...ngEmitHelpers-staticPrivateAutoAccessor.js | 24 - ...tHelpers-staticPrivateAutoAccessor.js.diff | 32 - ...Helpers-staticPrivateField.errors.txt.diff | 25 - ...n-missingEmitHelpers-staticPrivateField.js | 24 - ...singEmitHelpers-staticPrivateField.js.diff | 29 - ...elpers-staticPrivateGetter.errors.txt.diff | 28 - ...-missingEmitHelpers-staticPrivateGetter.js | 24 - ...ingEmitHelpers-staticPrivateGetter.js.diff | 27 - ...elpers-staticPrivateMethod.errors.txt.diff | 28 - ...-missingEmitHelpers-staticPrivateMethod.js | 24 - ...ingEmitHelpers-staticPrivateMethod.js.diff | 27 - ...elpers-staticPrivateSetter.errors.txt.diff | 28 - ...-missingEmitHelpers-staticPrivateSetter.js | 24 - ...ingEmitHelpers-staticPrivateSetter.js.diff | 27 - ...itHelpers-classDecorator.1.errors.txt.diff | 24 - ...ion-missingEmitHelpers-classDecorator.1.js | 22 - ...issingEmitHelpers-classDecorator.1.js.diff | 31 - ...tHelpers-classDecorator.10.errors.txt.diff | 27 - ...on-missingEmitHelpers-classDecorator.10.js | 24 - ...ssingEmitHelpers-classDecorator.10.js.diff | 31 - ...tHelpers-classDecorator.11.errors.txt.diff | 27 - ...on-missingEmitHelpers-classDecorator.11.js | 24 - ...ssingEmitHelpers-classDecorator.11.js.diff | 31 - ...tHelpers-classDecorator.12.errors.txt.diff | 25 - ...on-missingEmitHelpers-classDecorator.12.js | 21 - ...ssingEmitHelpers-classDecorator.12.js.diff | 30 - ...tHelpers-classDecorator.13.errors.txt.diff | 24 - ...on-missingEmitHelpers-classDecorator.13.js | 21 - ...ssingEmitHelpers-classDecorator.13.js.diff | 30 - ...tHelpers-classDecorator.14.errors.txt.diff | 29 - ...on-missingEmitHelpers-classDecorator.14.js | 22 - ...ssingEmitHelpers-classDecorator.14.js.diff | 32 - ...tHelpers-classDecorator.15.errors.txt.diff | 25 - ...on-missingEmitHelpers-classDecorator.15.js | 23 - ...ssingEmitHelpers-classDecorator.15.js.diff | 32 - ...tHelpers-classDecorator.16.errors.txt.diff | 29 - ...on-missingEmitHelpers-classDecorator.16.js | 24 - ...ssingEmitHelpers-classDecorator.16.js.diff | 34 - ...tHelpers-classDecorator.17.errors.txt.diff | 28 - ...on-missingEmitHelpers-classDecorator.17.js | 25 - ...ssingEmitHelpers-classDecorator.17.js.diff | 31 - ...itHelpers-classDecorator.2.errors.txt.diff | 21 - ...ion-missingEmitHelpers-classDecorator.2.js | 21 - ...issingEmitHelpers-classDecorator.2.js.diff | 29 - ...itHelpers-classDecorator.3.errors.txt.diff | 24 - ...ion-missingEmitHelpers-classDecorator.3.js | 20 - ...issingEmitHelpers-classDecorator.3.js.diff | 30 - ...itHelpers-classDecorator.4.errors.txt.diff | 27 - ...ion-missingEmitHelpers-classDecorator.4.js | 24 - ...issingEmitHelpers-classDecorator.4.js.diff | 31 - ...itHelpers-classDecorator.5.errors.txt.diff | 27 - ...ion-missingEmitHelpers-classDecorator.5.js | 24 - ...issingEmitHelpers-classDecorator.5.js.diff | 31 - ...itHelpers-classDecorator.6.errors.txt.diff | 25 - ...ion-missingEmitHelpers-classDecorator.6.js | 21 - ...issingEmitHelpers-classDecorator.6.js.diff | 30 - ...itHelpers-classDecorator.7.errors.txt.diff | 27 - ...ion-missingEmitHelpers-classDecorator.7.js | 24 - ...issingEmitHelpers-classDecorator.7.js.diff | 31 - ...itHelpers-classDecorator.8.errors.txt.diff | 27 - ...ion-missingEmitHelpers-classDecorator.8.js | 24 - ...issingEmitHelpers-classDecorator.8.js.diff | 31 - ...itHelpers-classDecorator.9.errors.txt.diff | 27 - ...ion-missingEmitHelpers-classDecorator.9.js | 24 - ...issingEmitHelpers-classDecorator.9.js.diff | 31 - ...Exports2(esmoduleinterop=false).errors.txt | 43 - ...uleExports2(esmoduleinterop=false).symbols | 44 - ...oduleExports2(esmoduleinterop=false).types | 50 - ...tmodulekindWithES5Target10.errors.txt.diff | 18 - ...xtmodulekindWithES5Target9.errors.txt.diff | 47 - .../conformance/exportAndImport-es5.js | 5 +- .../conformance/exportAndImport-es5.js.diff | 8 +- .../exportAsNamespace1(module=commonjs).js | 70 +- ...xportAsNamespace1(module=commonjs).js.diff | 10 +- ...ortAsNamespace_nonExistent.errors.txt.diff | 13 - .../exportAssignmentAndDeclaration.errors.txt | 16 + .../exportAssignmentAndDeclaration.js | 26 + .../exportAssignmentAndDeclaration.symbols | 21 + .../exportAssignmentAndDeclaration.types | 21 + .../conformance/exportNamespace11.js | 35 +- .../conformance/exportNamespace11.js.diff | 10 +- .../conformance/exportNamespace12.js | 35 +- .../conformance/exportNamespace12.js.diff | 10 +- .../submodule/conformance/exportNamespace2.js | 35 +- .../submodule/conformance/exportNamespace3.js | 35 +- .../conformance/exportNamespace3.js.diff | 2 +- .../submodule/conformance/exportStar.js | 35 +- .../submodule/conformance/exportStar.js.diff | 10 +- ...portTypeMergedWithExportStarAsNamespace.js | 35 +- ...ypeMergedWithExportStarAsNamespace.js.diff | 2 +- .../conformance/exportsAndImports4-es6.js | 46 +- .../conformance/exportsAndImports4-es6.types | 12 +- .../conformance/exportsAndImports4.js | 46 +- .../conformance/exportsAndImports4.js.diff | 24 +- .../conformance/exportsAndImports4.types | 12 +- ...sAndImportsWithContextualKeywordNames02.js | 35 +- ...mportsWithContextualKeywordNames02.js.diff | 10 +- .../exportsAndImportsWithUnderscores1.js | 5 +- .../exportsAndImportsWithUnderscores1.js.diff | 10 +- .../exportsAndImportsWithUnderscores2.js | 5 +- .../exportsAndImportsWithUnderscores2.js.diff | 10 +- .../exportsAndImportsWithUnderscores3.js | 5 +- .../exportsAndImportsWithUnderscores3.js.diff | 10 +- ...Priority(moduleresolution=classic).symbols | 25 - ...ngPriority(moduleresolution=classic).types | 25 - .../genericSetterInClassTypeJsDoc.errors.txt | 32 - .../genericSetterInClassTypeJsDoc.symbols | 47 - .../genericSetterInClassTypeJsDoc.types | 53 - .../globalThisVarDeclaration.errors.txt | 51 - .../globalThisVarDeclaration.symbols | 105 - .../globalThisVarDeclaration.types | 115 - .../importAssertion1(module=commonjs).js | 86 +- .../importAssertion2(module=commonjs).js | 24 +- .../importAssertion2(module=commonjs).js.diff | 4 +- .../importAttributes1(module=commonjs).js | 86 +- .../importAttributes2(module=commonjs).js | 24 +- ...importAttributes2(module=commonjs).js.diff | 4 +- .../conformance/importAttributes9.symbols | 2 +- .../conformance/importAttributes9.types | 4 +- .../importCallExpressionAsyncES5CJS.js | 43 +- .../importCallExpressionAsyncES5CJS.js.diff | 28 +- .../importCallExpressionAsyncES6CJS.js | 43 +- .../importCallExpressionAsyncES6CJS.js.diff | 28 +- .../importCallExpressionCheckReturntype1.js | 39 +- .../importCallExpressionDeclarationEmit1.js | 43 +- .../conformance/importCallExpressionES5CJS.js | 45 +- .../importCallExpressionES5CJS.js.diff | 28 +- .../conformance/importCallExpressionES6CJS.js | 45 +- .../importCallExpressionGrammarError.js | 41 +- .../conformance/importCallExpressionInCJS1.js | 41 +- .../conformance/importCallExpressionInCJS2.js | 37 +- .../conformance/importCallExpressionInCJS3.js | 35 +- .../conformance/importCallExpressionInCJS4.js | 35 +- .../conformance/importCallExpressionInCJS5.js | 45 +- .../importCallExpressionInCJS5.js.diff | 18 +- .../importCallExpressionInExportEqualsCJS.js | 35 +- .../importCallExpressionInScriptContext1.js | 35 +- .../importCallExpressionInScriptContext2.js | 35 +- .../importCallExpressionNestedCJS.js | 35 +- .../importCallExpressionNestedCJS.js.diff | 12 +- .../importCallExpressionNestedCJS2.js | 35 +- .../importCallExpressionNestedCJS2.js.diff | 12 +- ...portCallExpressionNoModuleKindSpecified.js | 39 +- ...allExpressionNoModuleKindSpecified.js.diff | 20 +- .../importCallExpressionReturnPromiseOfAny.js | 49 +- ...llExpressionSpecifierNotStringTypeError.js | 43 +- .../importCallExpressionWithTypeArgument.js | 37 +- .../importDefaultBindingDefer.errors.txt.diff | 18 - .../importDefaultBindingDefer.types.diff | 14 - .../importDeferComments.errors.txt.diff | 15 - .../importDeferComments.types.diff | 8 - .../importDeferInvalidDefault.errors.txt | 7 +- .../importDeferInvalidDefault.errors.txt.diff | 21 - .../conformance/importDeferInvalidDefault.js | 4 +- .../importDeferInvalidDefault.symbols | 2 +- .../importDeferInvalidDefault.types | 8 +- .../importDeferInvalidDefault.types.diff | 14 - .../importDeferInvalidNamed.errors.txt | 7 +- .../importDeferInvalidNamed.errors.txt.diff | 21 - .../conformance/importDeferInvalidNamed.js | 4 +- .../importDeferInvalidNamed.symbols | 2 +- .../conformance/importDeferInvalidNamed.types | 8 +- .../importDeferInvalidNamed.types.diff | 14 - .../importDeferNamespace(module=commonjs).js | 35 +- .../importDeferTypeConflict1.errors.txt | 2 +- .../conformance/importDeferTypeConflict1.js | 4 +- .../importDeferTypeConflict1.symbols | 2 +- .../importDeferTypeConflict1.types | 4 +- .../importDeferTypeConflict2.errors.txt | 2 +- .../conformance/importDeferTypeConflict2.js | 4 +- .../importDeferTypeConflict2.symbols | 2 +- .../importDeferTypeConflict2.types | 4 +- .../submodule/conformance/importEquals3.js | 35 +- .../conformance/importEquals3.js.diff | 8 +- .../importNonExternalModule.errors.txt | 17 + .../conformance/importNonExternalModule.js | 27 + .../importNonExternalModule.js.diff | 11 + .../importNonExternalModule.symbols | 20 + .../conformance/importNonExternalModule.types | 25 + .../conformance/importsImplicitlyReadonly.js | 35 +- .../importsImplicitlyReadonly.js.diff | 10 +- ...ringClassMembersFromAssignments.errors.txt | 148 - ...ferringClassMembersFromAssignments.symbols | 369 -- ...inferringClassMembersFromAssignments.types | 441 --- .../inlineJsxFactoryDeclarations.js | 40 +- .../inlineJsxFactoryDeclarations.js.diff | 16 +- .../inlineJsxFactoryDeclarationsLocalTypes.js | 35 +- ...neJsxFactoryDeclarationsLocalTypes.js.diff | 8 +- ...inlineJsxFactoryLocalTypeGlobalFallback.js | 5 +- ...eJsxFactoryLocalTypeGlobalFallback.js.diff | 6 +- .../inlineJsxFactoryWithFragmentIsError.js | 35 +- ...nlineJsxFactoryWithFragmentIsError.js.diff | 8 +- ...nvalidSyntaxNamespaceImportWithCommonjs.js | 35 +- ...dSyntaxNamespaceImportWithCommonjs.js.diff | 10 +- .../conformance/jsDeclarationsDefault.js | 5 +- .../conformance/jsDeclarationsDefault.js.diff | 10 +- .../conformance/jsDeclarationsExportForms.js | 105 +- .../jsDeclarationsExportForms.js.diff | 21 +- .../jsDeclarationsExportFormsErr.js | 35 +- .../jsDeclarationsExportFormsErr.js.diff | 9 +- .../jsDeclarationsReexportAliases.js | 7 +- .../jsDeclarationsReexportAliases.js.diff | 10 +- .../jsObjectsMarkedAsOpenEnded.errors.txt | 54 - .../jsObjectsMarkedAsOpenEnded.symbols | 85 - .../jsObjectsMarkedAsOpenEnded.symbols.diff | 75 - .../jsObjectsMarkedAsOpenEnded.types | 129 - ...ocAccessibilityTagsDeclarations.errors.txt | 47 - ...jsdocAccessibilityTagsDeclarations.symbols | 94 - .../jsdocAccessibilityTagsDeclarations.types | 98 - .../conformance/jsdocLiteral.errors.txt | 20 - .../conformance/jsdocLiteral.symbols | 26 - .../submodule/conformance/jsdocLiteral.types | 32 - .../jsdocNeverUndefinedNull.errors.txt | 18 - .../jsdocNeverUndefinedNull.symbols | 16 - .../conformance/jsdocNeverUndefinedNull.types | 16 - .../jsdocReadonlyDeclarations.errors.txt | 38 - .../jsdocReadonlyDeclarations.symbols | 51 - .../jsdocReadonlyDeclarations.symbols.diff | 12 - .../jsdocReadonlyDeclarations.types | 60 - .../conformance/jsdocReturnTag1.errors.txt | 30 - .../conformance/jsdocReturnTag1.symbols | 30 - .../conformance/jsdocReturnTag1.types | 35 - .../jsxCheckJsxNoTypeArgumentsAllowed.js | 35 +- .../jsxCheckJsxNoTypeArgumentsAllowed.js.diff | 10 +- ...lesExportsSpecifierGenerationConditions.js | 35 +- ...portsSpecifierGenerationConditions.js.diff | 12 +- .../methodsReturningThis.errors.txt | 28 - .../conformance/methodsReturningThis.symbols | 83 - .../methodsReturningThis.symbols.diff | 106 - .../conformance/methodsReturningThis.types | 135 - .../submodule/conformance/multiline.js | 35 +- .../submodule/conformance/multiline.js.diff | 8 +- .../multipleDeclarations.errors.txt | 44 - .../conformance/multipleDeclarations.symbols | 111 - .../multipleDeclarations.symbols.diff | 116 - .../conformance/multipleDeclarations.types | 140 - .../conformance/multipleDefaultExports01.js | 5 +- .../multipleDefaultExports01.js.diff | 10 +- .../conformance/multipleDefaultExports02.js | 5 +- .../multipleDefaultExports02.js.diff | 10 +- .../conformance/namespaceMemberAccess.js | 35 +- .../conformance/namespaceMemberAccess.js.diff | 7 +- ...e10AlternateResult_noResolution.errors.txt | 20 - ...e10AlternateResult_noResolution.trace.json | 15 - .../node10Alternateresult_noTypes.errors.txt | 24 - .../node10Alternateresult_noTypes.trace.json | 15 - .../node10IsNode_node.errors.txt.diff | 28 - .../conformance/node10IsNode_node.symbols | 17 - .../conformance/node10IsNode_node.trace.json | 15 - .../conformance/node10IsNode_node.types | 17 - .../conformance/node10IsNode_node.types.diff | 12 - ...geJsonExportsOptionsCompat.errors.txt.diff | 28 - ...(moduleresolution=classic).errors.txt.diff | 12 - ...pat(moduleresolution=node).errors.txt.diff | 14 - .../privateNameEmitHelpers.errors.txt.diff | 2 +- .../conformance/privateNameEmitHelpers.js | 2 +- .../privateNameEmitHelpers.symbols | 34 +- .../privateNameEmitHelpers.symbols.diff | 40 - .../conformance/privateNameEmitHelpers.types | 2 +- ...ivateNameStaticEmitHelpers.errors.txt.diff | 2 +- .../privateNameStaticEmitHelpers.js | 2 +- .../privateNameStaticEmitHelpers.symbols | 34 +- .../privateNameStaticEmitHelpers.symbols.diff | 40 - .../privateNameStaticEmitHelpers.types | 2 +- .../conformance/reExportDefaultExport.js | 5 +- .../conformance/reExportDefaultExport.js.diff | 10 +- .../submodule/conformance/reExportJsFromTs.js | 35 +- .../conformance/reExportJsFromTs.js.diff | 8 +- .../relativePathToDeclarationFile.errors.txt | 30 - ...ativePathToDeclarationFile.errors.txt.diff | 34 - .../relativePathToDeclarationFile.js | 37 - .../relativePathToDeclarationFile.js.diff | 15 - .../relativePathToDeclarationFile.symbols | 45 - ...relativePathToDeclarationFile.symbols.diff | 29 - .../relativePathToDeclarationFile.types | 52 - .../relativePathToDeclarationFile.types.diff | 43 - ...(moduleresolution=classic).errors.txt.diff | 50 - ...ortType1(moduleresolution=classic).symbols | 36 - ...pe1(moduleresolution=classic).symbols.diff | 18 - ...mportType1(moduleresolution=classic).types | 37 - ...Type1(moduleresolution=classic).types.diff | 21 - .../resolutionModeTripleSlash4.errors.txt | 45 - ...resolutionModeTripleSlash4.errors.txt.diff | 33 - .../resolutionModeTripleSlash5.errors.txt | 45 - ...resolutionModeTripleSlash5.errors.txt.diff | 18 - ...(moduleresolution=classic).errors.txt.diff | 64 - ...peOnlyImport1(moduleresolution=classic).js | 62 - ...yImport1(moduleresolution=classic).symbols | 73 - ...rt1(moduleresolution=classic).symbols.diff | 18 - ...nlyImport1(moduleresolution=classic).types | 74 - ...port1(moduleresolution=classic).types.diff | 40 - .../conformance/scopedPackagesClassic.js | 12 - .../conformance/scopedPackagesClassic.symbols | 10 - .../scopedPackagesClassic.trace.json | 12 - .../conformance/scopedPackagesClassic.types | 11 - .../topLevelAwaitErrors.11.errors.txt | 14 + .../conformance/topLevelAwaitErrors.11.js | 19 + .../topLevelAwaitErrors.11.symbols | 18 + .../conformance/topLevelAwaitErrors.11.types | 18 + .../topLevelThisAssignment.errors.txt | 27 - .../topLevelThisAssignment.symbols | 17 - .../topLevelThisAssignment.symbols.diff | 26 - .../conformance/topLevelThisAssignment.types | 27 - .../tsxAttributeResolution10.errors.txt | 35 + .../conformance/tsxAttributeResolution10.js | 48 + .../tsxAttributeResolution10.js.diff | 10 + .../tsxAttributeResolution10.symbols | 51 + .../tsxAttributeResolution10.types | 48 + .../tsxAttributeResolution11.errors.txt | 34 + .../conformance/tsxAttributeResolution11.js | 38 + .../tsxAttributeResolution11.js.diff | 10 + .../tsxAttributeResolution11.symbols | 49 + .../tsxAttributeResolution11.types | 41 + .../tsxAttributeResolution14.errors.txt | 38 + .../conformance/tsxAttributeResolution14.js | 45 + .../tsxAttributeResolution14.symbols | 67 + .../tsxAttributeResolution14.types | 69 + .../tsxAttributeResolution9.errors.txt | 31 + .../conformance/tsxAttributeResolution9.js | 40 + .../tsxAttributeResolution9.js.diff | 10 + .../tsxAttributeResolution9.symbols | 48 + .../conformance/tsxAttributeResolution9.types | 42 + .../conformance/tsxDynamicTagName5.js | 35 +- .../conformance/tsxDynamicTagName5.js.diff | 8 +- .../conformance/tsxDynamicTagName7.js | 35 +- .../conformance/tsxDynamicTagName7.js.diff | 8 +- .../conformance/tsxDynamicTagName8.js | 35 +- .../conformance/tsxDynamicTagName8.js.diff | 8 +- .../conformance/tsxDynamicTagName9.js | 35 +- .../conformance/tsxDynamicTagName9.js.diff | 8 +- .../conformance/tsxElementResolution19.js | 68 + .../tsxElementResolution19.js.diff | 11 + .../tsxElementResolution19.symbols | 29 + .../conformance/tsxElementResolution19.types | 27 + .../tsxElementResolution19.types.diff | 9 + .../conformance/tsxExternalModuleEmit1.js | 70 +- .../tsxExternalModuleEmit1.js.diff | 16 +- .../conformance/tsxExternalModuleEmit2.js | 5 +- .../tsxExternalModuleEmit2.js.diff | 8 +- ...ReturnUndefinedStrictNullChecks.errors.txt | 23 + .../tsxSfcReturnUndefinedStrictNullChecks.js | 25 + ...SfcReturnUndefinedStrictNullChecks.js.diff | 11 + ...SfcReturnUndefinedStrictNullChecks.symbols | 29 + ...sxSfcReturnUndefinedStrictNullChecks.types | 32 + ...ReturnUndefinedStrictNullChecks.types.diff | 19 + ...x=react-jsx,target=es2015).errors.txt.diff | 17 - ...elessFunctionComponentOverload4.errors.txt | 144 + ...FunctionComponentOverload4.errors.txt.diff | 254 ++ .../tsxStatelessFunctionComponentOverload4.js | 67 + ...tatelessFunctionComponentOverload4.js.diff | 11 + ...tatelessFunctionComponentOverload4.symbols | 161 + ...xStatelessFunctionComponentOverload4.types | 181 + ...elessFunctionComponentOverload5.errors.txt | 100 + ...FunctionComponentOverload5.errors.txt.diff | 108 + .../tsxStatelessFunctionComponentOverload5.js | 93 + ...tatelessFunctionComponentOverload5.js.diff | 11 + ...tatelessFunctionComponentOverload5.symbols | 181 + ...xStatelessFunctionComponentOverload5.types | 195 + .../tsxStatelessFunctionComponentOverload6.js | 95 + ...tatelessFunctionComponentOverload6.js.diff | 11 + ...tatelessFunctionComponentOverload6.symbols | 193 + ...xStatelessFunctionComponentOverload6.types | 206 + ...ionComponentsWithTypeArguments4.errors.txt | 36 + ...mponentsWithTypeArguments4.errors.txt.diff | 60 + ...essFunctionComponentsWithTypeArguments4.js | 24 + ...nctionComponentsWithTypeArguments4.js.diff | 11 + ...nctionComponentsWithTypeArguments4.symbols | 62 + ...FunctionComponentsWithTypeArguments4.types | 50 + ...ionComponentsWithTypeArguments4.types.diff | 25 + .../typeAndNamespaceExportMerge.js | 35 +- .../typeAndNamespaceExportMerge.js.diff | 2 +- .../typeSatisfaction_js.errors.txt | 14 - .../conformance/typeSatisfaction_js.symbols | 7 - .../conformance/typeSatisfaction_js.types | 8 - .../typesVersions.emptyTypes.errors.txt | 21 - .../conformance/typesVersions.emptyTypes.js | 20 - .../typesVersions.emptyTypes.symbols | 10 - .../typesVersions.emptyTypes.trace.json | 15 - .../typesVersions.emptyTypes.types | 11 - .../typesVersions.emptyTypes.types.diff | 8 - .../typesVersions.justIndex.errors.txt | 20 - .../conformance/typesVersions.justIndex.js | 19 - .../typesVersions.justIndex.symbols | 10 - .../typesVersions.justIndex.trace.json | 15 - .../conformance/typesVersions.justIndex.types | 11 - .../typesVersions.justIndex.types.diff | 8 - .../conformance/umd-augmentation-1.js | 35 +- .../conformance/umd-augmentation-1.js.diff | 8 +- .../conformance/umd-augmentation-3.js | 35 +- .../conformance/umd-augmentation-3.js.diff | 8 +- .../reference/submodule/conformance/umd3.js | 35 +- .../submodule/conformance/umd3.js.diff | 10 +- .../reference/submodule/conformance/umd4.js | 35 +- .../submodule/conformance/umd4.js.diff | 10 +- .../reference/submodule/conformance/umd5.js | 35 +- .../submodule/conformance/umd5.js.diff | 10 +- .../submodule/conformance/umd8.symbols | 4 +- .../submodule/conformance/umd8.types | 6 +- .../uniqueSymbolsDeclarationsInJs.errors.txt | 37 - .../uniqueSymbolsDeclarationsInJs.symbols | 50 - .../uniqueSymbolsDeclarationsInJs.types | 56 - ...ueSymbolsDeclarationsInJsErrors.errors.txt | 31 - ...niqueSymbolsDeclarationsInJsErrors.symbols | 26 - .../uniqueSymbolsDeclarationsInJsErrors.types | 26 - .../conformance/untypedModuleImport.js | 70 +- .../conformance/untypedModuleImport.js.diff | 17 +- .../untypedModuleImport_allowJs.js | 5 +- .../untypedModuleImport_allowJs.js.diff | 10 +- ...tionsESM(esmoduleinterop=false).errors.txt | 31 - ...xRestrictionsESM(esmoduleinterop=false).js | 43 - ...rictionsESM(esmoduleinterop=false).js.diff | 12 - ...rictionsESM(esmoduleinterop=false).symbols | 51 - ...strictionsESM(esmoduleinterop=false).types | 49 - .../doubleUnderscoreRenames.baseline.jsonc | 23 - ...AllReferencesDynamicImport2.baseline.jsonc | 17 - ...AllReferencesDynamicImport3.baseline.jsonc | 11 - ...fsClassWithStaticThisAccess.baseline.jsonc | 7 - ...ssWithStaticThisAccess.baseline.jsonc.diff | 14 - ...findAllRefsOnImportAliases2.baseline.jsonc | 56 - ...llRefsOnImportAliases2.baseline.jsonc.diff | 8 - ...sForExportFromUnfoundModule.baseline.jsonc | 5 - ...xportFromUnfoundModule.baseline.jsonc.diff | 9 - .../javaScriptClass2.baseline.jsonc | 53 - .../jsDocSee_rename1.baseline.jsonc | 27 - .../jsDocSee_rename1.baseline.jsonc.diff | 24 - .../jsdocCallbackTagRename01.baseline.jsonc | 9 - ...docCallbackTagRename01.baseline.jsonc.diff | 10 - .../jsdocLink_rename1.baseline.jsonc | 7 - .../jsdocSatisfiesTagRename.baseline.jsonc | 9 - .../jsdocThrowsTag_rename.baseline.jsonc | 7 - .../jsdocThrowsTag_rename.baseline.jsonc.diff | 10 - .../jsdocTypedefTagRename01.baseline.jsonc | 33 - ...sdocTypedefTagRename01.baseline.jsonc.diff | 46 - .../jsdocTypedefTagRename02.baseline.jsonc | 15 - ...sdocTypedefTagRename02.baseline.jsonc.diff | 20 - .../jsdocTypedefTagRename03.baseline.jsonc | 25 - ...sdocTypedefTagRename03.baseline.jsonc.diff | 20 - .../jsxSpreadReference.baseline.jsonc | 19 - .../jsxSpreadReference.baseline.jsonc.diff | 8 - .../processInvalidSyntax1.baseline.jsonc | 14 - .../processInvalidSyntax1.baseline.jsonc.diff | 25 - .../rename01.baseline.jsonc | 7 - .../rename01.baseline.jsonc.diff | 13 - ...enameAcrossMultipleProjects.baseline.jsonc | 39 - .../renameAlias.baseline.jsonc | 13 - .../renameAlias2.baseline.jsonc | 13 - .../renameAlias3.baseline.jsonc | 13 - .../renameAliasExternalModule.baseline.jsonc | 11 - .../renameAliasExternalModule2.baseline.jsonc | 25 - .../renameAliasExternalModule3.baseline.jsonc | 19 - ...gElementInitializerExternal.baseline.jsonc | 115 - ...entInitializerExternal.baseline.jsonc.diff | 73 - ...gElementInitializerProperty.baseline.jsonc | 52 - .../renameCommentsAndStrings1.baseline.jsonc | 7 - .../renameCommentsAndStrings2.baseline.jsonc | 7 - ...ameCommentsAndStrings2.baseline.jsonc.diff | 12 - .../renameCommentsAndStrings3.baseline.jsonc | 7 - ...ameCommentsAndStrings3.baseline.jsonc.diff | 12 - .../renameCommentsAndStrings4.baseline.jsonc | 8 - ...ameCommentsAndStrings4.baseline.jsonc.diff | 20 - ...ContextuallyTypedProperties.baseline.jsonc | 374 -- ...xtuallyTypedProperties.baseline.jsonc.diff | 430 -- ...ontextuallyTypedProperties2.baseline.jsonc | 373 -- ...tuallyTypedProperties2.baseline.jsonc.diff | 430 -- .../renameCrossJsTs01.baseline.jsonc | 21 - .../renameDeclarationKeywords.baseline.jsonc | 191 - ...ameDeclarationKeywords.baseline.jsonc.diff | 266 -- ...eDefaultImportDifferentName.baseline.jsonc | 22 - ...ultImportDifferentName.baseline.jsonc.diff | 8 - .../renameDefaultLibDontWork.baseline.jsonc | 4 - ...nameDefaultLibDontWork.baseline.jsonc.diff | 8 - ...nameDestructuringAssignment.baseline.jsonc | 19 - ...ignmentNestedInArrayLiteral.baseline.jsonc | 45 - ...ingAssignmentNestedInForOf2.baseline.jsonc | 83 - ...eDestructuringClassProperty.baseline.jsonc | 78 - ...ructuringClassProperty.baseline.jsonc.diff | 10 - ...structuringDeclarationInFor.baseline.jsonc | 55 - ...ructuringDeclarationInForOf.baseline.jsonc | 57 - ...tructuringFunctionParameter.baseline.jsonc | 21 - ...cturingNestedBindingElement.baseline.jsonc | 59 - .../renameExportCrash.baseline.jsonc | 5 - .../renameExportSpecifier.baseline.jsonc | 6 - .../renameExportSpecifier.baseline.jsonc.diff | 12 - .../renameExportSpecifier2.baseline.jsonc | 6 - ...renameExportSpecifier2.baseline.jsonc.diff | 12 - .../renameForStringLiteral.baseline.jsonc | 8 - ...renameForStringLiteral.baseline.jsonc.diff | 16 - .../renameFunctionParameter1.baseline.jsonc | 10 - ...nameFunctionParameter1.baseline.jsonc.diff | 11 - .../renameFunctionParameter2.baseline.jsonc | 8 - ...nameFunctionParameter2.baseline.jsonc.diff | 11 - .../renameImportAndExport.baseline.jsonc | 11 - .../renameImportAndExport.baseline.jsonc.diff | 17 - ...eImportAndExportInDiffFiles.baseline.jsonc | 21 - ...rtAndExportInDiffFiles.baseline.jsonc.diff | 25 - .../renameImportAndShorthand.baseline.jsonc | 11 - ...ImportNamespaceAndShorthand.baseline.jsonc | 11 - .../renameImportOfExportEquals.baseline.jsonc | 121 - ...meImportOfExportEquals.baseline.jsonc.diff | 85 - .../renameImportRequire.baseline.jsonc | 47 - .../renameImportRequire.baseline.jsonc.diff | 60 - ...ImportSpecifierPropertyName.baseline.jsonc | 6 - .../renameInConfiguredProject.baseline.jsonc | 15 - ...ameInConfiguredProject.baseline.jsonc.diff | 15 - .../tsxRename1.baseline.jsonc | 29 - .../tsxRename2.baseline.jsonc | 21 - .../tsxRename2.baseline.jsonc.diff | 26 - .../tsxRename3.baseline.jsonc | 22 - .../tsxRename3.baseline.jsonc.diff | 23 - .../tsxRename5.baseline.jsonc | 19 - .../tsxRename6.baseline.jsonc | 87 - .../tsxRename7.baseline.jsonc | 34 - .../tsxRename7.baseline.jsonc.diff | 52 - .../tsxRename9.baseline.jsonc | 245 -- .../tsxRename9.baseline.jsonc.diff | 98 - .../smartSelection_comment2.baseline | 6 - .../smartSelection_complex.baseline | 12 - .../smartSelection_complex.baseline.diff | 11 - .../smartSelection_emptyRanges.baseline | 95 - .../smartSelection_emptyRanges.baseline.diff | 128 - .../smartSelection_function1.baseline | 17 - .../smartSelection_function2.baseline | 13 - .../smartSelection_function3.baseline | 17 - .../smartSelection_functionParams1.baseline | 24 - ...artSelection_functionParams1.baseline.diff | 11 - .../smartSelection_functionParams2.baseline | 15 - ...artSelection_functionParams2.baseline.diff | 21 - .../smartSelection_imports.baseline | 15 - .../smartSelection_imports.baseline.diff | 38 - .../smartSelection_lastBlankLine.baseline | 5 - ...smartSelection_lastBlankLine.baseline.diff | 8 - ...Selection_loneVariableDeclaration.baseline | 5 - .../smartSelection_mappedTypes.baseline | 44 - .../smartSelection_mappedTypes.baseline.diff | 67 - .../smartSelection_objectTypes.baseline | 134 - .../smartSelection_objectTypes.baseline.diff | 128 - ...martSelection_punctuationPriority.baseline | 6 - ...election_punctuationPriority.baseline.diff | 10 - .../smartSelection_simple1.baseline | 90 - .../smartSelection_simple1.baseline.diff | 124 - .../smartSelection_simple2.baseline | 38 - .../smartSelection_simple2.baseline.diff | 61 - .../smartSelection_stringLiteral.baseline | 9 - ...smartSelection_stringLiteral.baseline.diff | 12 - .../smartSelection_templateStrings.baseline | 24 - ...artSelection_templateStrings.baseline.diff | 38 - .../smartSelection_templateStrings2.baseline | 5 - ...rtSelection_templateStrings2.baseline.diff | 9 - .../alwaysStrictModule2.errors.txt.diff | 12 - ...lassDeclarationAcrossFiles.errors.txt.diff | 13 - ...ndledDtsLateExportRenaming.errors.txt.diff | 34 - ...fJavascriptClassExpression.errors.txt.diff | 13 - ...ompilerOptionsOutAndNoEmit.errors.txt.diff | 12 - ...lerOptionsOutFileAndNoEmit.errors.txt.diff | 12 - ...tions-useBeforeDefinition2.errors.txt.diff | 19 - .../controlFlowJavascript.errors.txt.diff | 117 - .../compiler/controlFlowJavascript.types.diff | 90 - ...nputDeclarationFileWithOut.errors.txt.diff | 14 - ...esHasNoDefaultLibDirective.errors.txt.diff | 23 - ...toryDoesNotContainAllFiles.errors.txt.diff | 20 - ...arationEmitMonorepoBaseUrl.errors.txt.diff | 63 - ...tionEmitOutFileBundlePaths.errors.txt.diff | 20 - ...ionEmitPathMappingMonorepo.errors.txt.diff | 38 - ...onEmitPathMappingMonorepo2.errors.txt.diff | 58 - ...ersPathKindBasedOnBundling.errors.txt.diff | 26 - ...nFileOverwriteErrorWithOut.errors.txt.diff | 16 - ...esGeneratingTypeReferences.errors.txt.diff | 19 - .../declarationMapsOutFile2.errors.txt.diff | 23 - ...clarationMapsWithSourceMap.errors.txt.diff | 23 - .../importNonExportedMember8.errors.txt.diff | 17 - .../compiler/incrementalOut.errors.txt.diff | 12 - .../compiler/inlineSourceMap2.errors.txt.diff | 14 - .../compiler/inlineSources.errors.txt.diff | 16 - .../compiler/inlineSources2.errors.txt.diff | 16 - ...hodContainingArrowFunction.errors.txt.diff | 19 - ...cateFunctionImplementation.errors.txt.diff | 15 - ...mentationFileOrderReversed.errors.txt.diff | 15 - ...mpilationDuplicateVariable.errors.txt.diff | 18 - ...icateVariableErrorReported.errors.txt.diff | 15 - ...ompilationEmitDeclarations.errors.txt.diff | 20 - ...nEmitTrippleSlashReference.errors.txt.diff | 29 - ...WithJsFileReferenceWithOut.errors.txt.diff | 25 - ...CompilationLetBeingRenamed.errors.txt.diff | 19 - ...ilationLetDeclarationOrder.errors.txt.diff | 20 - ...lationLetDeclarationOrder2.errors.txt.diff | 24 - ...WithJsFileReferenceWithOut.errors.txt.diff | 26 - ...ompilationNonNullAssertion.errors.txt.diff | 15 - ...leCompilationRestParameter.errors.txt.diff | 15 - ...mpilationShortHandProperty.errors.txt.diff | 22 - ...eCompilationTypeAssertions.errors.txt.diff | 17 - ...WithEnabledCompositeOption.errors.txt.diff | 20 - .../jsFileCompilationWithOut.errors.txt.diff | 20 - ...nFileNameSameAsInputJsFile.errors.txt.diff | 16 - ...tFileNameSameAsInputJsFile.errors.txt.diff | 14 - ...tions-useBeforeDefinition2.errors.txt.diff | 19 - ...namicImport(target=es2015).errors.txt.diff | 21 - ...namicImport(target=es2020).errors.txt.diff | 21 - .../moduleNoneOutFile.errors.txt.diff | 12 - ...ithRelativeAndAbsolutePath.errors.txt.diff | 59 - ...onWithExtensions_withPaths.errors.txt.diff | 34 - ...e_externalModule_withPaths.errors.txt.diff | 38 - ...nWithSuffixes_one_jsModule.errors.txt.diff | 34 - ...esolution_classicPrefersTs.errors.txt.diff | 18 - ...duleResolution_classicPrefersTs.types.diff | 8 - .../optionsOutAndNoModuleGen.errors.txt.diff | 16 - .../compiler/out-flag2.errors.txt.diff | 14 - .../compiler/out-flag3.errors.txt.diff | 14 - .../outModuleConcatCommonjs.errors.txt.diff | 14 - ...catCommonjsDeclarationOnly.errors.txt.diff | 15 - .../outModuleConcatES6.errors.txt.diff | 14 - ...oncatUnspecifiedModuleKind.errors.txt.diff | 18 - ...dModuleKindDeclarationOnly.errors.txt.diff | 14 - ...asedModuleResolution2_node.errors.txt.diff | 31 - ...asedModuleResolution3_node.errors.txt.diff | 26 - ...asedModuleResolution4_node.errors.txt.diff | 36 - ...asedModuleResolution5_node.errors.txt.diff | 60 - ...asedModuleResolution7_node.errors.txt.diff | 67 - ...asedModuleResolution8_node.errors.txt.diff | 32 - ...n_rootImport_aliasWithRoot.errors.txt.diff | 33 - ...ithRoot_differentRootTypes.errors.txt.diff | 57 - ...asWithRoot_multipleAliases.errors.txt.diff | 34 - ...aliasWithRoot_realRootFile.errors.txt.diff | 33 - ...rootImport_noAliasWithRoot.errors.txt.diff | 33 - ...AliasWithRoot_realRootFile.errors.txt.diff | 33 - ...leResolution_withExtension.errors.txt.diff | 40 - ...lution_withExtensionInName.errors.txt.diff | 34 - ...tension_MapedToNodeModules.errors.txt.diff | 35 - ...withExtension_failedLookup.errors.txt.diff | 26 - ...athMappingInheritedBaseUrl.errors.txt.diff | 38 - .../compiler/pathsValidation1.errors.txt.diff | 19 - .../compiler/pathsValidation2.errors.txt.diff | 28 - .../compiler/pathsValidation3.errors.txt.diff | 19 - .../compiler/pathsValidation4.errors.txt.diff | 34 - ...veJsonModuleAndPathMapping.errors.txt.diff | 29 - ...uireOfJsonFile_PathMapping.errors.txt.diff | 35 - ...JSDocForOptionalParameters.errors.txt.diff | 28 - ...esUseJSDocForOptionalParameters.types.diff | 74 - ...WithCaseSensitiveFileNames.errors.txt.diff | 18 - ...MultipleFilesWithCopyright.errors.txt.diff | 26 - ...ithFileEndingWithInterface.errors.txt.diff | 25 - ...hNonCaseSensitiveFileNames.errors.txt.diff | 18 - .../typeReferenceDirectives11.errors.txt.diff | 23 - .../typeReferenceDirectives12.errors.txt.diff | 25 - .../useBeforeDeclaration.errors.txt.diff | 27 - .../checkJsdocOnEndOfFile.errors.txt.diff | 15 - .../checkJsdocReturnTag1.errors.txt.diff | 15 - .../checkJsdocReturnTag1.types.diff | 11 - .../checkJsdocReturnTag2.errors.txt.diff | 18 - ...ertyNames52(target=es2015).errors.txt.diff | 21 - ...ropertyNames52(target=es5).errors.txt.diff | 21 - ...ericSetterInClassTypeJsDoc.errors.txt.diff | 36 - .../genericSetterInClassTypeJsDoc.types.diff | 59 - .../globalThisVarDeclaration.errors.txt.diff | 18 - ...lassMembersFromAssignments.errors.txt.diff | 17 - ...jsObjectsMarkedAsOpenEnded.errors.txt.diff | 58 - .../jsObjectsMarkedAsOpenEnded.types.diff | 79 - ...essibilityTagsDeclarations.errors.txt.diff | 51 - .../conformance/jsdocLiteral.errors.txt.diff | 24 - .../conformance/jsdocLiteral.types.diff | 11 - .../jsdocNeverUndefinedNull.errors.txt.diff | 22 - .../jsdocReadonlyDeclarations.errors.txt.diff | 42 - .../jsdocReadonlyDeclarations.types.diff | 18 - .../jsdocReturnTag1.errors.txt.diff | 34 - .../conformance/jsdocReturnTag1.types.diff | 11 - .../methodsReturningThis.errors.txt.diff | 32 - .../methodsReturningThis.types.diff | 173 - .../moduleExportAliasImported.types.diff | 2 +- .../multipleDeclarations.errors.txt.diff | 48 - .../multipleDeclarations.types.diff | 36 - ...ternateResult_noResolution.errors.txt.diff | 25 - ...e10Alternateresult_noTypes.errors.txt.diff | 31 - .../topLevelThisAssignment.errors.txt.diff | 31 - .../topLevelThisAssignment.types.diff | 35 - .../typeSatisfaction_js.errors.txt.diff | 15 - .../typesVersions.emptyTypes.errors.txt.diff | 25 - .../typesVersions.justIndex.errors.txt.diff | 24 - ...queSymbolsDeclarationsInJs.errors.txt.diff | 41 - ...bolsDeclarationsInJsErrors.errors.txt.diff | 16 - .../different-options-with-incremental.js | 1609 -------- .../tsbuild/commandLine/different-options.js | 1316 ------- ...ndline-with-declaration-and-incremental.js | 1085 ----- ...y-false-on-commandline-with-declaration.js | 535 --- ...mitDeclarationOnly-false-on-commandline.js | 958 ----- ...ndline-with-declaration-and-incremental.js | 2068 ---------- ...ionOnly-on-commandline-with-declaration.js | 756 ---- .../emitDeclarationOnly-on-commandline.js | 1880 --------- .../reference/tsbuild/commandLine/help.js | 144 - .../when-build-not-first-argument.js | 10 - .../configFileErrors/missing-config-file.js | 12 - .../reports-syntax-errors-in-config-file.js | 400 -- .../when-tsconfig-extends-the-missing-file.js | 70 - ...-dts-generation-errors-with-incremental.js | 224 -- .../reports-dts-generation-errors.js | 163 - ...ugh-triple-slash-but-uses-no-references.js | 257 -- ...file-is-referenced-through-triple-slash.js | 427 -- ...d-inferred-type-from-referenced-project.js | 229 -- ...s-not-in-rootDir-at-the-import-location.js | 705 ---- ...ts-the-error-about-it-by-stopping-build.js | 133 - .../in-circular-is-set-in-the-reference.js | 735 ---- ...ng-setup-correctly-and-reports-no-error.js | 560 --- ...-emitDeclarationOnly-and-declarationMap.js | 431 -- ...import-project-with-emitDeclarationOnly.js | 418 -- ...mports-project-with-emitDeclarationOnly.js | 495 --- .../tsbuild/extends/configDir-template.js | 130 - .../extends/resolves-the-symlink-path.js | 114 - ...nce-and-both-extend-config-with-include.js | 255 -- ...th-projects-extends-config-with-include.js | 256 -- ...-transitive-module-with-isolatedModules.js | 623 --- .../inferred-type-from-transitive-module.js | 625 --- ...hange-in-signature-with-isolatedModules.js | 998 ----- ...based-projects-and-emits-them-correctly.js | 467 --- ...ved-json-files-and-emits-them-correctly.js | 412 -- ...s-merged-and-contains-late-bound-member.js | 397 -- ...iffers-between-projects-for-shared-file.js | 214 - ...olution-from-d.ts-of-referenced-project.js | 290 -- ...project-correctly-with-preserveSymlinks.js | 251 -- ...-file-from-referenced-project-correctly.js | 252 -- ...ared-resolution-should-not-report-error.js | 262 -- ...t-resolution-options-referenced-project.js | 236 -- .../when-resolution-is-not-shared.js | 274 -- ...fiers-across-projects-resolve-correctly.js | 457 --- ...zed-module-specifiers-resolve-correctly.js | 387 -- .../noCheck/dts-errors-with-incremental.js | 1485 ------- .../reference/tsbuild/noCheck/dts-errors.js | 909 ----- .../semantic-errors-with-incremental.js | 1283 ------ .../tsbuild/noCheck/semantic-errors.js | 722 ---- .../noCheck/syntax-errors-with-incremental.js | 1345 ------- .../tsbuild/noCheck/syntax-errors.js | 854 ---- .../tsbuild/noEmit/changes-composite.js | 1661 -------- .../noEmit/changes-incremental-declaration.js | 1613 -------- .../tsbuild/noEmit/changes-incremental.js | 1444 ------- .../changes-with-initial-noEmit-composite.js | 1127 ------ ...-initial-noEmit-incremental-declaration.js | 1077 ----- ...changes-with-initial-noEmit-incremental.js | 923 ----- ...ble-changes-with-incremental-as-modules.js | 735 ---- ...aration-enable-changes-with-incremental.js | 633 --- ...tion-enable-changes-with-multiple-files.js | 1646 -------- ...-errors-with-declaration-enable-changes.js | 346 -- .../dts-errors-with-incremental-as-modules.js | 708 ---- .../noEmit/dts-errors-with-incremental.js | 617 --- ...dts-enabled-with-incremental-as-modules.js | 525 --- ...rs-without-dts-enabled-with-incremental.js | 459 --- .../noEmit/dts-errors-without-dts-enabled.js | 237 -- .../reference/tsbuild/noEmit/dts-errors.js | 344 -- ...ntic-errors-with-incremental-as-modules.js | 615 --- .../semantic-errors-with-incremental.js | 547 --- .../tsbuild/noEmit/semantic-errors.js | 310 -- ...ntax-errors-with-incremental-as-modules.js | 589 --- .../noEmit/syntax-errors-with-incremental.js | 516 --- .../reference/tsbuild/noEmit/syntax-errors.js | 312 -- ...rrors-with-declaration-with-incremental.js | 387 -- .../dts-errors-with-declaration.js | 238 -- .../dts-errors-with-incremental.js | 283 -- .../tsbuild/noEmitOnError/dts-errors.js | 165 - ...rrors-with-declaration-with-incremental.js | 353 -- .../semantic-errors-with-declaration.js | 222 -- .../semantic-errors-with-incremental.js | 330 -- .../tsbuild/noEmitOnError/semantic-errors.js | 211 - ...rrors-with-declaration-with-incremental.js | 359 -- .../syntax-errors-with-declaration.js | 228 -- .../syntax-errors-with-incremental.js | 336 -- .../tsbuild/noEmitOnError/syntax-errors.js | 217 - ...otDir-is-not-specified-and-is-composite.js | 135 - .../when-rootDir-is-not-specified.js | 94 - ...iles-belong-to-rootDir-and-is-composite.js | 164 - ...ied-but-not-all-files-belong-to-rootDir.js | 109 - .../outputPaths/when-rootDir-is-specified.js | 95 - ...e-from-project-reference-with-composite.js | 276 -- ...n-root-is-source-from-project-reference.js | 248 -- ...hen-there-are-23-projects-in-a-solution.js | 3254 --------------- ...when-there-are-3-projects-in-a-solution.js | 694 ---- ...when-there-are-5-projects-in-a-solution.js | 950 ----- ...when-there-are-8-projects-in-a-solution.js | 1334 ------- ...iles-containing-json-file-non-composite.js | 111 - .../files-containing-json-file.js | 173 - ...ting-json-module-from-project-reference.js | 256 -- .../include-and-files-non-composite.js | 111 - .../resolveJsonModule/include-and-files.js | 173 - ...file-name-matches-ts-file-non-composite.js | 111 - ...r-include-and-file-name-matches-ts-file.js | 173 - ...-along-with-other-include-non-composite.js | 111 - ...nclude-of-json-along-with-other-include.js | 173 - .../include-only-non-composite.js | 104 - ...-with-json-not-in-rootDir-non-composite.js | 98 - .../include-only-with-json-not-in-rootDir.js | 163 - ...t-outside-configDirectory-non-composite.js | 106 - ...out-rootDir-but-outside-configDirectory.js | 162 - ...clude-only-without-outDir-non-composite.js | 98 - .../include-only-without-outDir.js | 161 - .../tsbuild/resolveJsonModule/include-only.js | 177 - .../sourcemap-non-composite.js | 127 - .../tsbuild/resolveJsonModule/sourcemap.js | 190 - .../without-outDir-non-composite.js | 118 - .../resolveJsonModule/without-outDir.js | 179 - ...nsecutive-and-non-consecutive-are-mixed.js | 535 --- .../roots/when-files-are-not-consecutive.js | 246 -- ...hen-multiple-root-files-are-consecutive.js | 287 -- ...-referenced-project-and-shared-is-first.js | 887 ----- ...en-root-file-is-from-referenced-project.js | 887 ----- .../when-two-root-files-are-consecutive.js | 206 - .../always-builds-under-with-force-option.js | 481 --- ...t-in-not-build-order-doesnt-throw-error.js | 75 - ...rectly-when-declarationDir-is-specified.js | 428 -- ...ilds-correctly-when-outDir-is-specified.js | 428 -- ...composite-or-doesnt-have-any-references.js | 158 - ...s-even-if-upstream-projects-have-errors.js | 502 --- .../can-detect-when-and-what-to-rebuild.js | 797 ---- ...t-in-not-build-order-doesnt-throw-error.js | 70 - ...does-not-write-any-files-in-a-dry-build.js | 72 - .../reference/tsbuild/sample/explainFiles.js | 996 ----- ...it-would-skip-builds-during-a-dry-build.js | 442 --- .../tsbuild/sample/listEmittedFiles.js | 888 ----- .../reference/tsbuild/sample/listFiles.js | 892 ----- ...-in-tsbuildinfo-doesnt-match-ts-version.js | 524 --- ...uilds-from-start-if-force-option-is-set.js | 498 --- ...uilds-when-extended-config-file-changes.js | 572 --- .../sample/removes-all-files-it-built.js | 458 --- ...ror-if-input-file-is-missing-with-force.js | 425 -- .../reports-error-if-input-file-is-missing.js | 425 -- .../reference/tsbuild/sample/sample.js | 1167 ------ ...rrors-when-test-does-not-reference-core.js | 646 --- ...ects-have-errors-with-stopBuildOnErrors.js | 647 --- .../tsbuild/sample/tsbuildinfo-has-error.js | 120 - .../sample/when-declaration-option-changes.js | 297 -- .../sample/when-declarationMap-changes.js | 703 ---- .../when-esModuleInterop-option-changes.js | 626 --- ...ot-change-but-its-modified-time-changes.js | 474 --- .../when-logic-specifies-tsBuildInfoFile.js | 447 --- .../sample/when-module-option-changes.js | 319 -- .../sample/when-target-option-changes.js | 327 -- .../reports-syntax-errors-in-config-file.js | 405 -- .../demo/updates-with-bad-reference.js | 908 ----- .../demo/updates-with-circular-reference.js | 578 --- .../extends/configDir-template.js | 188 - ...for-changes-to-package-json-main-fields.js | 307 -- ...se-different-module-resolution-settings.js | 404 -- ...t-correctly-with-cts-and-mts-extensions.js | 501 --- ...n-no-files-are-emitted-with-incremental.js | 242 -- ...when-watching-when-no-files-are-emitted.js | 135 - .../dts-errors-with-incremental-as-modules.js | 711 ---- .../noEmit/dts-errors-with-incremental.js | 620 --- ...dts-enabled-with-incremental-as-modules.js | 565 --- ...rs-without-dts-enabled-with-incremental.js | 499 --- .../noEmit/dts-errors-without-dts-enabled.js | 261 -- .../tsbuildWatch/noEmit/dts-errors.js | 335 -- ...ntic-errors-with-incremental-as-modules.js | 622 --- .../semantic-errors-with-incremental.js | 554 --- .../tsbuildWatch/noEmit/semantic-errors.js | 305 -- ...ntax-errors-with-incremental-as-modules.js | 593 --- .../noEmit/syntax-errors-with-incremental.js | 521 --- .../tsbuildWatch/noEmit/syntax-errors.js | 307 -- ...Error-with-declaration-with-incremental.js | 1015 ----- .../noEmitOnError-with-declaration.js | 658 ---- .../noEmitOnError-with-incremental.js | 892 ----- .../noEmitOnError/noEmitOnError.js | 563 --- ...ceError-when-file-with-no-error-changes.js | 429 -- ...ing-errors-only-changed-file-is-emitted.js | 394 -- ...tErrors-when-file-with-no-error-changes.js | 328 -- ...ixing-error-files-all-files-are-emitted.js | 293 -- .../programUpdates/tsbuildinfo-has-error.js | 91 - ...e-down-stream-project-and-then-fixes-it.js | 401 -- ...project-with-extended-config-is-removed.js | 271 -- ...hen-noUnusedParameters-changes-to-false.js | 110 - .../works-with-extended-source-files.js | 804 ---- ...hen-there-are-23-projects-in-a-solution.js | 3114 --------------- ...when-there-are-3-projects-in-a-solution.js | 674 ---- ...when-there-are-5-projects-in-a-solution.js | 918 ----- ...when-there-are-8-projects-in-a-solution.js | 1284 ------ .../reexport/Reports-errors-correctly.js | 528 --- ...-referenced-project-and-shared-is-first.js | 870 ----- ...en-root-file-is-from-referenced-project.js | 870 ----- ...equent-updates-with-circular-references.js | 689 ---- ...le-is-added,-and-its-subsequent-updates.js | 702 ---- ...errors-message-with-circular-references.js | 1348 ------- ...hanges-and-reports-found-errors-message.js | 1365 ------- .../incremental-updates-in-verbose-mode.js | 815 ---- ...ncing-projects-with-circular-references.js | 540 --- ...not-start-build-of-referencing-projects.js | 548 --- ...rs-when-preserveWatchOutput-is-not-used.js | 832 ---- ...veWatchOutput-is-passed-on-command-line.js | 832 ---- ...BuildOnErrors-is-passed-on-command-line.js | 742 ---- ...e-of-program-emit-with-outDir-specified.js | 350 -- ...r-recompilation-because-of-program-emit.js | 362 -- ...rrors-when-test-does-not-reference-core.js | 610 --- ...ects-have-errors-with-stopBuildOnErrors.js | 611 --- ...tches-config-files-that-are-not-present.js | 580 --- .../Parse--p-with-path-to-tsconfig-file.js | 40 - .../Parse--p-with-path-to-tsconfig-folder.js | 40 - .../commandLine/Parse-enum-type-options.js | 31 - .../tsc/composite/converting-to-modules.js | 172 - ...le-from-CJS-module-error-on-jsx-element.js | 162 - ...from-CJS-module-no-crash-no-jsx-element.js | 129 - ...and-line-but-has-tsbuild-info-in-config.js | 51 - ...and-line-but-has-tsbuild-info-in-config.js | 51 - ...setting-composite-false-on-command-line.js | 50 - ...-setting-composite-null-on-command-line.js | 109 - ...-dts-generation-errors-with-incremental.js | 255 -- .../reports-dts-generation-errors.js | 175 - ...ibling-package-through-indirect-symlink.js | 132 - ...er-symlinked-package-with-indirect-link.js | 216 - ...gh-source-and-another-symlinked-package.js | 212 - ...ing-Windows-paths-and-uppercase-letters.js | 129 - .../extends/configDir-template-showConfig.js | 64 - .../configDir-template-with-commandline.js | 102 - .../tsc/extends/configDir-template.js | 102 - .../tsc/extends/resolves-the-symlink-path.js | 114 - ...ion-field-with-declaration-emit-enabled.js | 479 --- ...e-to-modifier-of-class-expression-field.js | 398 -- ...in-another-file-through-indirect-import.js | 340 -- ...s-global-through-export-in-another-file.js | 288 -- .../const-enums-aliased-in-different-file.js | 604 --- .../tsc/incremental/const-enums-aliased.js | 556 --- .../reference/tsc/incremental/const-enums.js | 551 --- .../generates-typerefs-correctly.js | 367 -- .../option-changes-with-composite.js | 1569 -------- .../option-changes-with-incremental.js | 1526 -------- ...types-found-doesnt-crash-under---strict.js | 150 - ...ith-no-backing-types-found-doesnt-crash.js | 127 - .../serializing-composite-project.js | 129 - .../incremental/serializing-error-chain.js | 216 - .../tsc/incremental/tsbuildinfo-has-error.js | 106 - .../tsc/incremental/when-file-is-deleted.js | 200 - ...le-is-added,-the-signatures-are-updated.js | 921 ----- ...g-filename-for-buildinfo-on-commandline.js | 117 - .../when-passing-rootDir-from-commandline.js | 105 - ...when-passing-rootDir-is-in-the-tsconfig.js | 106 - ...there-is-bind-diagnostics-thats-ignored.js | 141 - .../tsc/incremental/with-only-dts-files.js | 169 - .../combined-with-incremental.js | 124 - .../reference/tsc/listFilesOnly/loose-file.js | 35 - .../tsc/moduleResolution/alternateResult.js | 3477 ----------------- .../moduleResolution/package-json-scope.js | 281 -- .../tsc/moduleResolution/pnpm-style-layout.js | 308 -- .../noCheck/dts-errors-with-incremental.js | 1382 ------- .../reference/tsc/noCheck/dts-errors.js | 447 --- .../semantic-errors-with-incremental.js | 1194 ------ .../reference/tsc/noCheck/semantic-errors.js | 337 -- .../noCheck/syntax-errors-with-incremental.js | 1242 ------ .../reference/tsc/noCheck/syntax-errors.js | 392 -- .../reference/tsc/noEmit/changes-composite.js | 1573 -------- .../noEmit/changes-incremental-declaration.js | 1525 -------- .../tsc/noEmit/changes-incremental.js | 1356 ------- .../changes-with-initial-noEmit-composite.js | 1092 ------ ...-initial-noEmit-incremental-declaration.js | 1042 ----- ...changes-with-initial-noEmit-incremental.js | 888 ----- ...tion-enable-changes-with-multiple-files.js | 1586 -------- .../dts-errors-with-incremental-as-modules.js | 655 ---- .../tsc/noEmit/dts-errors-with-incremental.js | 564 --- ...dts-enabled-with-incremental-as-modules.js | 482 --- ...rs-without-dts-enabled-with-incremental.js | 416 -- .../noEmit/dts-errors-without-dts-enabled.js | 116 - .../reference/tsc/noEmit/dts-errors.js | 186 - ...ntic-errors-with-incremental-as-modules.js | 562 --- .../semantic-errors-with-incremental.js | 494 --- .../reference/tsc/noEmit/semantic-errors.js | 152 - ...ntax-errors-with-incremental-as-modules.js | 536 --- .../noEmit/syntax-errors-with-incremental.js | 463 --- .../reference/tsc/noEmit/syntax-errors.js | 154 - .../noEmit/when-project-has-strict-true.js | 105 - ...rrors-with-declaration-with-incremental.js | 364 -- .../dts-errors-with-declaration.js | 140 - .../dts-errors-with-incremental.js | 265 -- .../reference/tsc/noEmitOnError/dts-errors.js | 104 - ...-before-fixing-error-with-noEmitOnError.js | 220 -- ...rrors-with-declaration-with-incremental.js | 330 -- .../semantic-errors-with-declaration.js | 124 - .../semantic-errors-with-incremental.js | 307 -- .../tsc/noEmitOnError/semantic-errors.js | 110 - ...rrors-with-declaration-with-incremental.js | 336 -- .../syntax-errors-with-declaration.js | 130 - .../syntax-errors-with-incremental.js | 313 -- .../tsc/noEmitOnError/syntax-errors.js | 116 - .../when-declarationMap-changes.js | 376 -- ...nterop-uses-referenced-project-settings.js | 89 - .../default-setup-was-created-correctly.js | 114 - ...ve-composite-if-its-a-container-project.js | 45 - ...snt-infer-the-rootDir-from-source-paths.js | 105 - ...rors-when-a-file-is-outside-the-rootdir.js | 145 - .../errors-when-declaration-=-false.js | 117 - ...rs-when-the-file-list-is-not-exhaustive.js | 145 - ...hen-the-referenced-project-doesnt-exist.js | 122 - ...eferenced-project-doesnt-have-composite.js | 126 - ...erveConstEnums-and-verbatimModuleSyntax.js | 78 - ...g-when-module-reference-is-not-relative.js | 137 - ...ce-error-when-the-input-file-is-missing.js | 135 - .../redirects-to-the-output-dts-file.js | 161 - ...erenced-project-with-preserveConstEnums.js | 60 - ...ativeImportExtensionsProjectReferences1.js | 78 - ...ativeImportExtensionsProjectReferences2.js | 143 - ...ativeImportExtensionsProjectReferences3.js | 147 - ...ject-contains-invalid-project-reference.js | 53 - .../when-project-reference-is-not-built.js | 59 - ...eferences-composite-project-with-noEmit.js | 60 - .../when-project-references-composite.js | 53 - .../parse-tsconfig-with-typeAcquisition.js | 40 - ...h-interval-option-without-tsconfig.json.js | 149 - .../Parse-watch-interval-option.js | 47 - 3034 files changed, 29237 insertions(+), 241271 deletions(-) delete mode 100644 testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).js delete mode 100644 testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).symbols delete mode 100644 testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).types delete mode 100644 testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).errors.txt delete mode 100644 testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).js delete mode 100644 testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).symbols delete mode 100644 testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).types delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInKeyword.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInSwitch.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInExport1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInKeyword.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInTypeExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightJSDocTypedef.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightMultilineTemplateStrings.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightTemplateStrings.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightVarianceModifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlights01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidGlobalThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidModifierLocations.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsTypeParameterInHeritageClause01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_33722.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_40082.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_filesToSearch.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/emptyExportFindReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/findReferencesJSXTagName3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAfterEdit.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPrivate.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPublic.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStatic.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStaticThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst04.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesModifiersNegatives1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAssertion.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAttributes.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfDecorators.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfUndefinedSymbol.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPropertyInAliasedInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStatic1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiteralTypes.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiterals.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuperNegatives.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesYield.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getPropertySymbolsFromBaseTypesDoesntCrash.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/renameDefaultImportDifferentName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesTripleSlash.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUmdModuleAsGlobalConst.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportEquals.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_typeofImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesAfterEdit.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocLink_findAllReferences1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsxFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/localGetReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForExportedValues.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesInComment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesIsAvailableThroughGlobalNoCrash.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/renameDefaultImportDifferentName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tslibFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember17.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember18.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember19.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember20.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember21.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember22.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember23.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember24.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember25.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember26.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToTypeDefinition4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/qualifiedName_import_declaration_with_variable_entity_names.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionAliases.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionEnumMembers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionImportMeta.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionPrimitives.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionUnionType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_Pick.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_arrayType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_promiseType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_returnType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typeReference.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typedef.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToType/typedefinition01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/deprecatedInheritedJSDocOverload.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsDocAliasQuickInfo.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo1.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo2.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsDocTypedefQuickInfo1.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocLink1.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocLink4.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocLink5.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers1.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers2.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsConst.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum1.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum2.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum3.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum4.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModules.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunction.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionExpression.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterface.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterfaceMembers.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLet.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLocalFunction.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsModules.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsParameters.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeAlias.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVar.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForConstAssertions.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocCodefence.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocUnknownTag.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName03.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName05.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName06.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoImportMeta.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc2.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc3.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc4.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc5.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc6.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocAtBeforeSpace.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocTags.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDoc.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocAlias.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocGetterSetter.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocInheritage.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags1.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags10.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags11.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags12.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags14.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags15.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags16.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags3.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags6.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags7.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags8.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags9.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsCallback.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload01.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload05.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsTypedef.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocThisTag.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink10.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink11.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink5.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink6.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink7.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink8.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink9.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoNestedExportEqualExportDefault.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxNamespacedName.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnParameterProperties.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnThis5.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoSatisfiesTag.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoTypedefTag.baseline delete mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoUniqueSymbolJsDoc.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline delete mode 100644 testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.types create mode 100644 testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.js create mode 100644 testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.types create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals1.js create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals1.types create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals2.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals2.js create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals2.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals2.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals2.symbols.diff create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals2.types create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals2.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals3.js create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals3.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals3.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals3.types create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals4.js create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals4.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals4.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals4.types create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals5.js create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals5.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals5.types create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals6.js create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals6.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals6.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/augmentExportEquals6.types create mode 100644 testdata/baselines/reference/submodule/compiler/badExternalModuleReference.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/badExternalModuleReference.js create mode 100644 testdata/baselines/reference/submodule/compiler/badExternalModuleReference.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/badExternalModuleReference.types delete mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.types create mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.js create mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.types delete mode 100644 testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.types delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.js delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.types delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.js delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.types delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.js delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.types delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.js delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.types delete mode 100644 testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.types create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.js create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.types create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.js create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.types create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.js create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.types create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.js create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.types create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.js create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.types create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.js create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.types create mode 100644 testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.js create mode 100644 testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.types delete mode 100644 testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.types delete mode 100644 testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.types create mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-access5.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-access5.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-access5.js create mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-access5.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-access5.types create mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-access5.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.types delete mode 100644 testdata/baselines/reference/submodule/compiler/controlFlowJavascript.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/controlFlowJavascript.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/controlFlowJavascript.types create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.js create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.types create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.js create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.types create mode 100644 testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.js create mode 100644 testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.js delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.js delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.js delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.js delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.types delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.types create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.js create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.types create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.js create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.types delete mode 100644 testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.symbols.diff create mode 100644 testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.js create mode 100644 testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.types delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportAll.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportAssignment3.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportAssignment3.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.js create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.types delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportNamedImportIdentifiersParsing.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutAllowSyntheticDefaultImportsError.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/exportDeclareClass1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/exportDeclareClass1.js create mode 100644 testdata/baselines/reference/submodule/compiler/exportDeclareClass1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/exportDeclareClass1.types delete mode 100644 testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/exportEqualErrorType.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/exportEqualErrorType.js create mode 100644 testdata/baselines/reference/submodule/compiler/exportEqualErrorType.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/exportEqualErrorType.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/exportEqualErrorType.types create mode 100644 testdata/baselines/reference/submodule/compiler/exportEqualErrorType.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.js create mode 100644 testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.types create mode 100644 testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.js create mode 100644 testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.types create mode 100644 testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.js create mode 100644 testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.types create mode 100644 testdata/baselines/reference/submodule/compiler/genericMemberFunction.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/genericMemberFunction.js create mode 100644 testdata/baselines/reference/submodule/compiler/genericMemberFunction.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/genericMemberFunction.types create mode 100644 testdata/baselines/reference/submodule/compiler/genericMemberFunction.types.diff create mode 100644 testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.js create mode 100644 testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.types create mode 100644 testdata/baselines/reference/submodule/compiler/giant.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/giant.js create mode 100644 testdata/baselines/reference/submodule/compiler/giant.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/giant.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/giant.types create mode 100644 testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.js create mode 100644 testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpers.symbols.diff create mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersES6.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersInTsx.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoModule.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoModule.js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoModule.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoModule.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersNoModule.types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).js delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).types delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember10.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember10.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember10.types delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember4.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember4.js delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember4.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember4.types delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember6.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember6.js delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember6.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember6.types delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember8.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember8.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/importNonExportedMember8.types delete mode 100644 testdata/baselines/reference/submodule/compiler/incrementalOut.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/incrementalOut.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/incrementalOut.types delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSourceMap2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSourceMap2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSourceMap2.types delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSources.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSources.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSources.types delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSources2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSources2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/inlineSources2.types create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.js create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.types create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceImplementation6.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceImplementation6.js create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceImplementation6.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceImplementation6.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/interfaceImplementation6.types create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.types create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.types delete mode 100644 testdata/baselines/reference/submodule/compiler/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.types create mode 100644 testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.js create mode 100644 testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.types create mode 100644 testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.js create mode 100644 testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.types create mode 100644 testdata/baselines/reference/submodule/compiler/moduleExports1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/moduleExports1.js create mode 100644 testdata/baselines/reference/submodule/compiler/moduleExports1.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleExports1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/moduleExports1.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.js delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.types delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.types create mode 100644 testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.types delete mode 100644 testdata/baselines/reference/submodule/compiler/out-flag2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/out-flag2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/out-flag2.types delete mode 100644 testdata/baselines/reference/submodule/compiler/out-flag3.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/out-flag3.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/out-flag3.types delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.types delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.types delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatES6.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatES6.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatES6.types delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.types delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation1.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation1.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation1.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation1.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation2.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation2.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation2.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation3.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation3.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation3.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation3.types delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation4.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation4.js delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.js create mode 100644 testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.types create mode 100644 testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.js create mode 100644 testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.types create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.js create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.types create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.js create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.types create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.js create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.types create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.js create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.types create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.js create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.types create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.js create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.types create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.js create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.types delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.js delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.types delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.js delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.types delete mode 100644 testdata/baselines/reference/submodule/compiler/shorthand-property-es5-es6.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/shorthand-property-es6-es6.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.types delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.types delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.types delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.types delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.types.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.types create mode 100644 testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.js create mode 100644 testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.types delete mode 100644 testdata/baselines/reference/submodule/compiler/strictModeWordInImportDeclaration.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/topLevelLambda4.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/topLevelLambda4.js create mode 100644 testdata/baselines/reference/submodule/compiler/topLevelLambda4.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/topLevelLambda4.types create mode 100644 testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.js create mode 100644 testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.types delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.types delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.types create mode 100644 testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.js create mode 100644 testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.types create mode 100644 testdata/baselines/reference/submodule/compiler/undeclaredModuleError.errors.txt create mode 100644 testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js create mode 100644 testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/undeclaredModuleError.symbols create mode 100644 testdata/baselines/reference/submodule/compiler/undeclaredModuleError.types delete mode 100644 testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.errors.txt delete mode 100644 testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.symbols delete mode 100644 testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.types delete mode 100644 testdata/baselines/reference/submodule/conformance/allowImportingTsExtensions(moduleresolution=classic).errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/allowImportingTsExtensions(moduleresolution=classic).errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.js create mode 100644 testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.types delete mode 100644 testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es2017.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es6.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/autoAccessorDisallowedModifiers(target=es2017).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/autoAccessorDisallowedModifiers(target=esnext).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.types delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.types delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.types delete mode 100644 testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).types delete mode 100644 testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).types create mode 100644 testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js create mode 100644 testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.types delete mode 100644 testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target10.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target9.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js delete mode 100644 testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).types delete mode 100644 testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target10.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target9.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/exportAsNamespace_nonExistent.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.js create mode 100644 testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.types delete mode 100644 testdata/baselines/reference/submodule/conformance/extensionLoadingPriority(moduleresolution=classic).symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/extensionLoadingPriority(moduleresolution=classic).types delete mode 100644 testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.types delete mode 100644 testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.types delete mode 100644 testdata/baselines/reference/submodule/conformance/importDefaultBindingDefer.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importDefaultBindingDefer.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importDeferComments.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importDeferComments.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.types.diff create mode 100644 testdata/baselines/reference/submodule/conformance/importNonExternalModule.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/importNonExternalModule.js create mode 100644 testdata/baselines/reference/submodule/conformance/importNonExternalModule.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/importNonExternalModule.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/importNonExternalModule.types delete mode 100644 testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.types delete mode 100644 testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.types delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.types delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocLiteral.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocLiteral.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocLiteral.types delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.types delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.types delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.types delete mode 100644 testdata/baselines/reference/submodule/conformance/methodsReturningThis.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/methodsReturningThis.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/methodsReturningThis.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/methodsReturningThis.types delete mode 100644 testdata/baselines/reference/submodule/conformance/multipleDeclarations.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/multipleDeclarations.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/multipleDeclarations.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/multipleDeclarations.types delete mode 100644 testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json delete mode 100644 testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json delete mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json delete mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node.types delete mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonExportsOptionsCompat.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.js delete mode 100644 testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.types delete mode 100644 testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).types delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash4.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash4.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash5.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash5.errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).js delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).types delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.js delete mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json delete mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.types create mode 100644 testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.js create mode 100644 testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.types delete mode 100644 testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxElementResolution19.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxElementResolution19.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxElementResolution19.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxElementResolution19.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxElementResolution19.types.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.js create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.js.diff create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.symbols create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.types create mode 100644 testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.types delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.js delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.types delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.js delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.types delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.types.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.types delete mode 100644 testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.types delete mode 100644 testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).errors.txt delete mode 100644 testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js delete mode 100644 testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).symbols delete mode 100644 testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).types delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocLink_rename1.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCrossJsTs01.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_comment2.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function1.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function2.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function3.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_loneVariableDeclaration.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline delete mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/alwaysStrictModule2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/blockScopedClassDeclarationAcrossFiles.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/bundledDtsLateExportRenaming.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/compilerOptionsOutAndNoEmit.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/compilerOptionsOutFileAndNoEmit.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/constDeclarations-useBeforeDefinition2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/controlFlowJavascript.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/controlFlowJavascript.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitMonorepoBaseUrl.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitOutFileBundlePaths.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPathMappingMonorepo.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPathMappingMonorepo2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPrefersPathKindBasedOnBundling.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationFileOverwriteErrorWithOut.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationFilesGeneratingTypeReferences.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationMapsOutFile2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/declarationMapsWithSourceMap.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/importNonExportedMember8.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/incrementalOut.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/inlineSourceMap2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/inlineSources.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/inlineSources2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationClassMethodContainingArrowFunction.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateFunctionImplementation.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateVariable.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateVariableErrorReported.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationEmitDeclarations.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationEmitTrippleSlashReference.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetBeingRenamed.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetDeclarationOrder.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetDeclarationOrder2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationNonNullAssertion.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationRestParameter.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationShortHandProperty.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationTypeAssertions.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithEnabledCompositeOption.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOut.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/letDeclarations-useBeforeDefinition2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneDynamicImport(target=es2015).errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneDynamicImport(target=es2020).errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneOutFile.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithExtensions_withPaths.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithSuffixes_one_jsModule.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleResolution_classicPrefersTs.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/moduleResolution_classicPrefersTs.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/optionsOutAndNoModuleGen.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/out-flag2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/out-flag3.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatCommonjs.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatCommonjsDeclarationOnly.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatES6.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatUnspecifiedModuleKind.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution2_node.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution3_node.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution4_node.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution5_node.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution7_node.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution8_node.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtensionInName.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathMappingInheritedBaseUrl.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation3.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation4.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/requireOfJsonFile_PathMapping.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/signaturesUseJSDocForOptionalParameters.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/signaturesUseJSDocForOptionalParameters.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithCaseSensitiveFileNames.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithMultipleFilesWithCopyright.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithNonCaseSensitiveFileNames.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/typeReferenceDirectives11.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/typeReferenceDirectives12.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/compiler/useBeforeDeclaration.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocOnEndOfFile.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag1.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag2.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/computedPropertyNames52(target=es2015).errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/computedPropertyNames52(target=es5).errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/genericSetterInClassTypeJsDoc.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/genericSetterInClassTypeJsDoc.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/globalThisVarDeclaration.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/inferringClassMembersFromAssignments.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsObjectsMarkedAsOpenEnded.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsObjectsMarkedAsOpenEnded.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsdocAccessibilityTagsDeclarations.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsdocLiteral.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsdocLiteral.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsdocNeverUndefinedNull.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsdocReadonlyDeclarations.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsdocReadonlyDeclarations.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsdocReturnTag1.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/jsdocReturnTag1.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/methodsReturningThis.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/methodsReturningThis.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/multipleDeclarations.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/multipleDeclarations.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/node10AlternateResult_noResolution.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/node10Alternateresult_noTypes.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/topLevelThisAssignment.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/topLevelThisAssignment.types.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/typeSatisfaction_js.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/typesVersions.emptyTypes.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/typesVersions.justIndex.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/uniqueSymbolsDeclarationsInJs.errors.txt.diff delete mode 100644 testdata/baselines/reference/submoduleAccepted/conformance/uniqueSymbolsDeclarationsInJsErrors.errors.txt.diff delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/different-options.js delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js delete mode 100644 testdata/baselines/reference/tsbuild/commandLine/help.js delete mode 100644 testdata/baselines/reference/tsbuild/configFileErrors/missing-config-file.js delete mode 100644 testdata/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js delete mode 100644 testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js delete mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js delete mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js delete mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js delete mode 100644 testdata/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js delete mode 100644 testdata/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js delete mode 100644 testdata/baselines/reference/tsbuild/demo/in-circular-is-set-in-the-reference.js delete mode 100644 testdata/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js delete mode 100644 testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js delete mode 100644 testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js delete mode 100644 testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js delete mode 100644 testdata/baselines/reference/tsbuild/extends/configDir-template.js delete mode 100644 testdata/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js delete mode 100644 testdata/baselines/reference/tsbuild/extends/when-building-project-uses-reference-and-both-extend-config-with-include.js delete mode 100644 testdata/baselines/reference/tsbuild/extends/when-building-solution-with-projects-extends-config-with-include.js delete mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js delete mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js delete mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js delete mode 100644 testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js delete mode 100644 testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js delete mode 100644 testdata/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/resolution-from-d.ts-of-referenced-project.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/shared-resolution-should-not-report-error.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/when-resolution-is-not-shared.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js delete mode 100644 testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js delete mode 100644 testdata/baselines/reference/tsbuild/noCheck/dts-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noCheck/dts-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/noCheck/semantic-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noCheck/semantic-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/noCheck/syntax-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noCheck/syntax-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-incremental-declaration.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental-declaration.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/semantic-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmit/syntax-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js delete mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js delete mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js delete mode 100644 testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference-with-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference.js delete mode 100644 testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-23-projects-in-a-solution.js delete mode 100644 testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-3-projects-in-a-solution.js delete mode 100644 testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-5-projects-in-a-solution.js delete mode 100644 testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-8-projects-in-a-solution.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js delete mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js delete mode 100644 testdata/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js delete mode 100644 testdata/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js delete mode 100644 testdata/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js delete mode 100644 testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js delete mode 100644 testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project.js delete mode 100644 testdata/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/always-builds-under-with-force-option.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/building-project-in-not-build-order-doesnt-throw-error.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/builds-correctly-when-declarationDir-is-specified.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/builds-correctly-when-outDir-is-specified.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/builds-downstream-projects-even-if-upstream-projects-have-errors.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/can-detect-when-and-what-to-rebuild.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/cleaning-project-in-not-build-order-doesnt-throw-error.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/does-not-write-any-files-in-a-dry-build.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/explainFiles.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/indicates-that-it-would-skip-builds-during-a-dry-build.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/listEmittedFiles.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/listFiles.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/rebuilds-from-start-if-force-option-is-set.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/rebuilds-when-extended-config-file-changes.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/removes-all-files-it-built.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing-with-force.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/sample.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/tsbuildinfo-has-error.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/when-declaration-option-changes.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/when-declarationMap-changes.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/when-esModuleInterop-option-changes.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/when-input-file-text-does-not-change-but-its-modified-time-changes.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/when-logic-specifies-tsBuildInfoFile.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/when-module-option-changes.js delete mode 100644 testdata/baselines/reference/tsbuild/sample/when-target-option-changes.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/extends/configDir-template.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/moduleResolution/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-incremental.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-file-with-no-error-changes.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-fixing-errors-only-changed-file-is-emitted.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-fixing-error-files-all-files-are-emitted.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates-with-circular-references.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message-with-circular-references.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/incremental-updates-in-verbose-mode.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects-with-circular-references.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-not-used.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-passed-on-command-line.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-stopBuildOnErrors-is-passed-on-command-line.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js delete mode 100644 testdata/baselines/reference/tsbuildWatch/sample/watches-config-files-that-are-not-present.js delete mode 100644 testdata/baselines/reference/tsc/composite/converting-to-modules.js delete mode 100644 testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-error-on-jsx-element.js delete mode 100644 testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-no-crash-no-jsx-element.js delete mode 100644 testdata/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js delete mode 100644 testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js delete mode 100644 testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js delete mode 100644 testdata/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js delete mode 100644 testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors.js delete mode 100644 testdata/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js delete mode 100644 testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js delete mode 100644 testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js delete mode 100644 testdata/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js delete mode 100644 testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js delete mode 100644 testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js delete mode 100644 testdata/baselines/reference/tsc/extends/configDir-template.js delete mode 100644 testdata/baselines/reference/tsc/extends/resolves-the-symlink-path.js delete mode 100644 testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js delete mode 100644 testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js delete mode 100644 testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js delete mode 100644 testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js delete mode 100644 testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js delete mode 100644 testdata/baselines/reference/tsc/incremental/const-enums-aliased.js delete mode 100644 testdata/baselines/reference/tsc/incremental/const-enums.js delete mode 100644 testdata/baselines/reference/tsc/incremental/generates-typerefs-correctly.js delete mode 100644 testdata/baselines/reference/tsc/incremental/option-changes-with-composite.js delete mode 100644 testdata/baselines/reference/tsc/incremental/option-changes-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash-under---strict.js delete mode 100644 testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash.js delete mode 100644 testdata/baselines/reference/tsc/incremental/serializing-composite-project.js delete mode 100644 testdata/baselines/reference/tsc/incremental/serializing-error-chain.js delete mode 100644 testdata/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js delete mode 100644 testdata/baselines/reference/tsc/incremental/when-file-is-deleted.js delete mode 100644 testdata/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js delete mode 100644 testdata/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js delete mode 100644 testdata/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js delete mode 100644 testdata/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js delete mode 100644 testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js delete mode 100644 testdata/baselines/reference/tsc/incremental/with-only-dts-files.js delete mode 100644 testdata/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/listFilesOnly/loose-file.js delete mode 100644 testdata/baselines/reference/tsc/moduleResolution/alternateResult.js delete mode 100644 testdata/baselines/reference/tsc/moduleResolution/package-json-scope.js delete mode 100644 testdata/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js delete mode 100644 testdata/baselines/reference/tsc/noCheck/dts-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noCheck/dts-errors.js delete mode 100644 testdata/baselines/reference/tsc/noCheck/semantic-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noCheck/semantic-errors.js delete mode 100644 testdata/baselines/reference/tsc/noCheck/syntax-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noCheck/syntax-errors.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/changes-composite.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/changes-incremental-declaration.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/changes-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-composite.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental-declaration.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/semantic-errors.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental-as-modules.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/syntax-errors.js delete mode 100644 testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/dts-errors.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/file-deleted-before-fixing-error-with-noEmitOnError.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/semantic-errors.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-incremental.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/syntax-errors.js delete mode 100644 testdata/baselines/reference/tsc/noEmitOnError/when-declarationMap-changes.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/default-setup-was-created-correctly.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/doesnt-infer-the-rootDir-from-source-paths.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-a-file-is-outside-the-rootdir.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-declaration-=-false.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-the-file-list-is-not-exhaustive.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-exist.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-have-composite.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/redirects-to-the-output-dts-file.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/referencing-ambient-const-enum-from-referenced-project-with-preserveConstEnums.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences1.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences2.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences3.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/when-project-reference-is-not-built.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js delete mode 100644 testdata/baselines/reference/tsc/projectReferences/when-project-references-composite.js delete mode 100644 testdata/baselines/reference/tsc/typeAcquisition/parse-tsconfig-with-typeAcquisition.js delete mode 100644 testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js delete mode 100644 testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option.js diff --git a/_submodules/TypeScript b/_submodules/TypeScript index 050a6f8127..bf40cd8606 160000 --- a/_submodules/TypeScript +++ b/_submodules/TypeScript @@ -1 +1 @@ -Subproject commit 050a6f8127f54ce64c79ee992b9f0e27d0d712a2 +Subproject commit bf40cd86065cde495ec5333d61411668756bb159 diff --git a/internal/core/compileroptions.go b/internal/core/compileroptions.go index aae6fed160..6452d32c0b 100644 --- a/internal/core/compileroptions.go +++ b/internal/core/compileroptions.go @@ -200,26 +200,30 @@ func (options *CompilerOptions) GetEmitScriptTarget() ScriptTarget { } func (options *CompilerOptions) GetEmitModuleKind() ModuleKind { - if options.Module != ModuleKindNone { + switch options.Module { + case ModuleKindNone, ModuleKindAMD, ModuleKindUMD, ModuleKindSystem: + if options.Target >= ScriptTargetES2015 { + return ModuleKindES2015 + } + return ModuleKindCommonJS + default: return options.Module } - if options.Target >= ScriptTargetES2015 { - return ModuleKindES2015 - } - return ModuleKindCommonJS } func (options *CompilerOptions) GetModuleResolutionKind() ModuleResolutionKind { - if options.ModuleResolution != ModuleResolutionKindUnknown { - return options.ModuleResolution - } - switch options.GetEmitModuleKind() { - case ModuleKindNode16, ModuleKindNode18, ModuleKindNode20: - return ModuleResolutionKindNode16 - case ModuleKindNodeNext: - return ModuleResolutionKindNodeNext + switch options.ModuleResolution { + case ModuleResolutionKindUnknown, ModuleResolutionKindClassic, ModuleResolutionKindNode10: + switch options.GetEmitModuleKind() { + case ModuleKindNode16, ModuleKindNode18, ModuleKindNode20: + return ModuleResolutionKindNode16 + case ModuleKindNodeNext: + return ModuleResolutionKindNodeNext + default: + return ModuleResolutionKindBundler + } default: - return ModuleResolutionKindBundler + return options.ModuleResolution } } @@ -251,24 +255,14 @@ func (options *CompilerOptions) AllowImportingTsExtensionsFrom(fileName string) return options.GetAllowImportingTsExtensions() || tspath.IsDeclarationFileName(fileName) } +// Deprecated: always returns truej func (options *CompilerOptions) GetESModuleInterop() bool { - if options.ESModuleInterop != TSUnknown { - return options.ESModuleInterop == TSTrue - } - switch options.GetEmitModuleKind() { - case ModuleKindNode16, ModuleKindNode18, ModuleKindNode20, ModuleKindNodeNext, ModuleKindPreserve: - return true - } - return false + return true } +// Deprecated: always returns true func (options *CompilerOptions) GetAllowSyntheticDefaultImports() bool { - if options.AllowSyntheticDefaultImports != TSUnknown { - return options.AllowSyntheticDefaultImports == TSTrue - } - return options.GetESModuleInterop() || - options.GetEmitModuleKind() == ModuleKindSystem || - options.GetModuleResolutionKind() == ModuleResolutionKindBundler + return true } func (options *CompilerOptions) GetResolveJsonModule() bool { @@ -401,6 +395,7 @@ const ( type ModuleKind int32 const ( + // Deprecated: Do not use outside of options parsing and validation. ModuleKindNone ModuleKind = 0 ModuleKindCommonJS ModuleKind = 1 // Deprecated: Do not use outside of options parsing and validation. @@ -447,6 +442,10 @@ type ModuleResolutionKind int32 const ( ModuleResolutionKindUnknown ModuleResolutionKind = 0 + // Deprecated: Do not use outside of options parsing and validation. + ModuleResolutionKindClassic ModuleResolutionKind = 1 + // Deprecated: Do not use outside of options parsing and validation. + ModuleResolutionKindNode10 ModuleResolutionKind = 2 // Starting with node16, node's module resolver has significant departures from traditional cjs resolution // to better support ECMAScript modules and their use within node - however more features are still being added. // TypeScript's Node ESM support was introduced after Node 12 went end-of-life, and Node 14 is the earliest stable diff --git a/internal/testrunner/compiler_runner.go b/internal/testrunner/compiler_runner.go index 35eac30102..06f9f10038 100644 --- a/internal/testrunner/compiler_runner.go +++ b/internal/testrunner/compiler_runner.go @@ -182,9 +182,25 @@ func (r *CompilerBaselineRunner) runSingleConfigTest(t *testing.T, testName stri payload := makeUnitsFromTest(test.content, test.filename) compilerTest := newCompilerTest(t, testName, test.filename, &payload, config) - switch compilerTest.options.GetEmitModuleKind() { + switch compilerTest.options.Module { case core.ModuleKindAMD, core.ModuleKindUMD, core.ModuleKindSystem: - t.Skipf("Skipping test %s with unsupported module kind %s", testName, compilerTest.options.GetEmitModuleKind()) + t.Skipf("Skipping test %s with unsupported module kind %s", testName, compilerTest.options.Module) + } + switch compilerTest.options.ModuleResolution { + case core.ModuleResolutionKindNode10, core.ModuleResolutionKindClassic: + t.Skipf("Skipping test %s with unsupported module resolution kind %d", testName, compilerTest.options.ModuleResolution) + } + if compilerTest.options.ESModuleInterop.IsFalse() { + t.Skipf("Skipping test %s with esModuleInterop=false", testName) + } + if compilerTest.options.AllowSyntheticDefaultImports.IsFalse() { + t.Skipf("Skipping test %s with allowSyntheticDefaultImports=false", testName) + } + if compilerTest.options.BaseUrl != "" { + t.Skipf("Skipping test %s with baseUrl set", testName) + } + if compilerTest.options.OutFile != "" { + t.Skipf("Skipping test %s with outFile set", testName) } compilerTest.verifyDiagnostics(t, r.testSuitName, r.isSubmodule) diff --git a/internal/tsoptions/enummaps.go b/internal/tsoptions/enummaps.go index 92fcb428e3..e57fe6a337 100644 --- a/internal/tsoptions/enummaps.go +++ b/internal/tsoptions/enummaps.go @@ -136,9 +136,9 @@ var moduleResolutionOptionMap = collections.NewOrderedMapFromList([]collections. {Key: "node16", Value: core.ModuleResolutionKindNode16}, {Key: "nodenext", Value: core.ModuleResolutionKindNodeNext}, {Key: "bundler", Value: core.ModuleResolutionKindBundler}, - {Key: "node", Value: core.ModuleResolutionKindBundler}, // TODO: remove when node is fully deprecated -- this is helpful for testing porting - {Key: "classic", Value: core.ModuleResolutionKindBundler}, // TODO: remove when fully deprecated - {Key: "node10", Value: core.ModuleResolutionKindBundler}, // TODO: remove when fully deprecated + {Key: "classic", Value: core.ModuleResolutionKindClassic}, + {Key: "node", Value: core.ModuleResolutionKindNode10}, + {Key: "node10", Value: core.ModuleResolutionKindNode10}, }) var targetOptionMap = collections.NewOrderedMapFromList([]collections.MapEntry[string, any]{ diff --git a/testdata/baselines/reference/compiler/allowSyntheticDefaultImports9.js b/testdata/baselines/reference/compiler/allowSyntheticDefaultImports9.js index 14cdb26657..cc99033f91 100644 --- a/testdata/baselines/reference/compiler/allowSyntheticDefaultImports9.js +++ b/testdata/baselines/reference/compiler/allowSyntheticDefaultImports9.js @@ -12,7 +12,10 @@ Foo.foo(); //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const b_1 = require("./b"); +const b_1 = __importDefault(require("./b")); b_1.default.bar(); b_1.default.foo(); diff --git a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).js b/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).js deleted file mode 100644 index da264d8e4c..0000000000 --- a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).js +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/settingsSimpleTest.ts] //// - -//// [settingsSimpleTest.ts] -export {}; -const x: string = undefined; - -//// [settingsSimpleTest.js] -const x = undefined; -export {}; - - -//// [settingsSimpleTest.d.ts] -export {}; diff --git a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).symbols b/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).symbols deleted file mode 100644 index fb50091854..0000000000 --- a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).symbols +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/compiler/settingsSimpleTest.ts] //// - -=== settingsSimpleTest.ts === -export {}; -const x: string = undefined; ->x : Symbol(x, Decl(settingsSimpleTest.ts, 1, 5)) ->undefined : Symbol(undefined) - diff --git a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).types b/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).types deleted file mode 100644 index 2c05c492b6..0000000000 --- a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=false).types +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/compiler/settingsSimpleTest.ts] //// - -=== settingsSimpleTest.ts === -export {}; -const x: string = undefined; ->x : string ->undefined : undefined - diff --git a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).errors.txt b/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).errors.txt deleted file mode 100644 index 1c2471e7a6..0000000000 --- a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -settingsSimpleTest.ts(2,7): error TS2322: Type 'undefined' is not assignable to type 'string'. - - -==== settingsSimpleTest.ts (1 errors) ==== - export {}; - const x: string = undefined; - ~ -!!! error TS2322: Type 'undefined' is not assignable to type 'string'. \ No newline at end of file diff --git a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).js b/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).js deleted file mode 100644 index da264d8e4c..0000000000 --- a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).js +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/settingsSimpleTest.ts] //// - -//// [settingsSimpleTest.ts] -export {}; -const x: string = undefined; - -//// [settingsSimpleTest.js] -const x = undefined; -export {}; - - -//// [settingsSimpleTest.d.ts] -export {}; diff --git a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).symbols b/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).symbols deleted file mode 100644 index fb50091854..0000000000 --- a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).symbols +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/compiler/settingsSimpleTest.ts] //// - -=== settingsSimpleTest.ts === -export {}; -const x: string = undefined; ->x : Symbol(x, Decl(settingsSimpleTest.ts, 1, 5)) ->undefined : Symbol(undefined) - diff --git a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).types b/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).types deleted file mode 100644 index 2c05c492b6..0000000000 --- a/testdata/baselines/reference/compiler/settingsSimpleTest(strict=true).types +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/compiler/settingsSimpleTest.ts] //// - -=== settingsSimpleTest.ts === -export {}; -const x: string = undefined; ->x : string ->undefined : undefined - diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties1.baseline.jsonc deleted file mode 100644 index 1878204506..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties1.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// interface interface1 extends interface1 { -// /*HIGHLIGHTS*/[|doStuff|](): void; -// propName: string; -// } - - - -// === documentHighlights === -// === /file1.ts === -// interface interface1 extends interface1 { -// doStuff(): void; -// /*HIGHLIGHTS*/[|propName|]: string; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties2.baseline.jsonc deleted file mode 100644 index 85ba0dee42..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties2.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// class class1 extends class1 { -// /*HIGHLIGHTS*/[|doStuff|]() { } -// propName: string; -// } - - - -// === documentHighlights === -// === /file1.ts === -// class class1 extends class1 { -// doStuff() { } -// /*HIGHLIGHTS*/[|propName|]: string; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties3.baseline.jsonc deleted file mode 100644 index c6cf1d5d22..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties3.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// interface interface1 extends interface1 { -// /*HIGHLIGHTS*/[|doStuff|](): void; -// propName: string; -// } -// -// var v: interface1; -// v.propName; -// v.[|doStuff|](); - - - -// === documentHighlights === -// === /file1.ts === -// interface interface1 extends interface1 { -// doStuff(): void; -// /*HIGHLIGHTS*/[|propName|]: string; -// } -// -// var v: interface1; -// v.[|propName|]; -// v.doStuff(); - - - -// === documentHighlights === -// === /file1.ts === -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// -// var v: interface1; -// v./*HIGHLIGHTS*/[|propName|]; -// v.doStuff(); - - - -// === documentHighlights === -// === /file1.ts === -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// -// var v: interface1; -// v.propName; -// v./*HIGHLIGHTS*/[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties4.baseline.jsonc deleted file mode 100644 index d716513d69..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties4.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// class class1 extends class1 { -// /*HIGHLIGHTS*/[|doStuff|]() { } -// propName: string; -// } -// -// var c: class1; -// c.[|doStuff|](); -// c.propName; - - - -// === documentHighlights === -// === /file1.ts === -// class class1 extends class1 { -// doStuff() { } -// /*HIGHLIGHTS*/[|propName|]: string; -// } -// -// var c: class1; -// c.doStuff(); -// c.[|propName|]; - - - -// === documentHighlights === -// === /file1.ts === -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var c: class1; -// c./*HIGHLIGHTS*/[|doStuff|](); -// c.propName; - - - -// === documentHighlights === -// === /file1.ts === -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var c: class1; -// c.doStuff(); -// c./*HIGHLIGHTS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties5.baseline.jsonc deleted file mode 100644 index 430b6bd370..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties5.baseline.jsonc +++ /dev/null @@ -1,82 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// interface C extends D { -// /*HIGHLIGHTS*/[|prop0|]: string; -// prop1: number; -// } -// -// interface D extends C { -// [|prop0|]: string; -// prop1: number; -// } -// -// var d: D; -// d.prop1; - - - -// === documentHighlights === -// === /file1.ts === -// interface C extends D { -// prop0: string; -// /*HIGHLIGHTS*/[|prop1|]: number; -// } -// -// interface D extends C { -// prop0: string; -// [|prop1|]: number; -// } -// -// var d: D; -// d.[|prop1|]; - - - -// === documentHighlights === -// === /file1.ts === -// interface C extends D { -// [|prop0|]: string; -// prop1: number; -// } -// -// interface D extends C { -// /*HIGHLIGHTS*/[|prop0|]: string; -// prop1: number; -// } -// -// var d: D; -// d.prop1; - - - -// === documentHighlights === -// === /file1.ts === -// interface C extends D { -// prop0: string; -// [|prop1|]: number; -// } -// -// interface D extends C { -// prop0: string; -// /*HIGHLIGHTS*/[|prop1|]: number; -// } -// -// var d: D; -// d.[|prop1|]; - - - -// === documentHighlights === -// === /file1.ts === -// interface C extends D { -// prop0: string; -// [|prop1|]: number; -// } -// -// interface D extends C { -// prop0: string; -// [|prop1|]: number; -// } -// -// var d: D; -// d./*HIGHLIGHTS*/[|prop1|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties6.baseline.jsonc deleted file mode 100644 index e819cd0446..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties6.baseline.jsonc +++ /dev/null @@ -1,63 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// class C extends D { -// /*HIGHLIGHTS*/[|prop0|]: string; -// prop1: string; -// } -// -// // --- (line: 6) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class C extends D { -// prop0: string; -// /*HIGHLIGHTS*/[|prop1|]: string; -// } -// -// class D extends C { -// // --- (line: 7) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// --- (line: 3) skipped --- -// } -// -// class D extends C { -// /*HIGHLIGHTS*/[|prop0|]: string; -// prop1: string; -// } -// -// var d: D; -// d.prop1; - - - -// === documentHighlights === -// === /file1.ts === -// --- (line: 4) skipped --- -// -// class D extends C { -// prop0: string; -// /*HIGHLIGHTS*/[|prop1|]: string; -// } -// -// var d: D; -// d.[|prop1|]; - - - -// === documentHighlights === -// === /file1.ts === -// --- (line: 4) skipped --- -// -// class D extends C { -// prop0: string; -// [|prop1|]: string; -// } -// -// var d: D; -// d./*HIGHLIGHTS*/[|prop1|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc deleted file mode 100644 index 5176a15ed5..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc +++ /dev/null @@ -1,165 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private /*HIGHLIGHTS*/[|privateParam|]: number, -// public publicParam: string, -// protected protectedParam: boolean) { -// -// let localPrivate = [|privateParam|]; -// this.[|privateParam|] += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// // --- (line: 11) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private privateParam: number, -// public /*HIGHLIGHTS*/[|publicParam|]: string, -// protected protectedParam: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = [|publicParam|]; -// this.[|publicParam|] += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private privateParam: number, -// public publicParam: string, -// protected /*HIGHLIGHTS*/[|protectedParam|]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = [|protectedParam|]; -// this.[|protectedParam|] = false; -// } -// } - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private [|privateParam|]: number, -// public publicParam: string, -// protected protectedParam: boolean) { -// -// let localPrivate = /*HIGHLIGHTS*/[|privateParam|]; -// this.[|privateParam|] += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// // --- (line: 11) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private [|privateParam|]: number, -// public publicParam: string, -// protected protectedParam: boolean) { -// -// let localPrivate = [|privateParam|]; -// this./*HIGHLIGHTS*/[|privateParam|] += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// // --- (line: 11) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private privateParam: number, -// public [|publicParam|]: string, -// protected protectedParam: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = /*HIGHLIGHTS*/[|publicParam|]; -// this.[|publicParam|] += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private privateParam: number, -// public [|publicParam|]: string, -// protected protectedParam: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = [|publicParam|]; -// this./*HIGHLIGHTS*/[|publicParam|] += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private privateParam: number, -// public publicParam: string, -// protected [|protectedParam|]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = /*HIGHLIGHTS*/[|protectedParam|]; -// this.[|protectedParam|] = false; -// } -// } - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// constructor(private privateParam: number, -// public publicParam: string, -// protected [|protectedParam|]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = [|protectedParam|]; -// this./*HIGHLIGHTS*/[|protectedParam|] = false; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc deleted file mode 100644 index 69914c5798..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc +++ /dev/null @@ -1,109 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private {/*HIGHLIGHTS*/[|privateParam|]}: number, -// public {publicParam}: string, -// protected {protectedParam}: boolean) { -// -// let localPrivate = [|privateParam|]; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// // --- (line: 11) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private {privateParam}: number, -// public {/*HIGHLIGHTS*/[|publicParam|]}: string, -// protected {protectedParam}: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = [|publicParam|]; -// this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private {privateParam}: number, -// public {publicParam}: string, -// protected {/*HIGHLIGHTS*/[|protectedParam|]}: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = [|protectedParam|]; -// this.protectedParam = false; -// } -// } - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private {[|privateParam|]}: number, -// public {publicParam}: string, -// protected {protectedParam}: boolean) { -// -// let localPrivate = /*HIGHLIGHTS*/[|privateParam|]; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// // --- (line: 11) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private {privateParam}: number, -// public {[|publicParam|]}: string, -// protected {protectedParam}: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = /*HIGHLIGHTS*/[|publicParam|]; -// this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private {privateParam}: number, -// public {publicParam}: string, -// protected {[|protectedParam|]}: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = /*HIGHLIGHTS*/[|protectedParam|]; -// this.protectedParam = false; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc deleted file mode 100644 index c5e2753dbe..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc +++ /dev/null @@ -1,109 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private [/*HIGHLIGHTS*/[|privateParam|]]: number, -// public [publicParam]: string, -// protected [protectedParam]: boolean) { -// -// let localPrivate = [|privateParam|]; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// // --- (line: 11) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private [privateParam]: number, -// public [/*HIGHLIGHTS*/[|publicParam|]]: string, -// protected [protectedParam]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = [|publicParam|]; -// this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private [privateParam]: number, -// public [publicParam]: string, -// protected [/*HIGHLIGHTS*/[|protectedParam|]]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = [|protectedParam|]; -// this.protectedParam = false; -// } -// } - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private [[|privateParam|]]: number, -// public [publicParam]: string, -// protected [protectedParam]: boolean) { -// -// let localPrivate = /*HIGHLIGHTS*/[|privateParam|]; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// // --- (line: 11) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private [privateParam]: number, -// public [[|publicParam|]]: string, -// protected [protectedParam]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = /*HIGHLIGHTS*/[|publicParam|]; -// this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /file1.ts === -// class Foo { -// // This is not valid syntax: parameter property can't be binding pattern -// constructor(private [privateParam]: number, -// public [publicParam]: string, -// protected [[|protectedParam|]]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = /*HIGHLIGHTS*/[|protectedParam|]; -// this.protectedParam = false; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInKeyword.baseline.jsonc deleted file mode 100644 index 4d164587b5..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInKeyword.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /documentHighlightDefaultInKeyword.ts === -// /*HIGHLIGHTS*/case -// default - - - -// === documentHighlights === -// === /documentHighlightDefaultInKeyword.ts === -// case -// /*HIGHLIGHTS*/default \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInSwitch.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInSwitch.baseline.jsonc deleted file mode 100644 index 0e160b3e4c..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInSwitch.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === documentHighlights === -// === /documentHighlightDefaultInSwitch.ts === -// const foo = 'foo'; -// [|switch|] (foo) { -// /*HIGHLIGHTS*/[|case|] 'foo': -// [|break|]; -// [|default|]: -// [|break|]; -// } - - - -// === documentHighlights === -// === /documentHighlightDefaultInSwitch.ts === -// const foo = 'foo'; -// [|switch|] (foo) { -// [|case|] 'foo': -// [|break|]; -// [|default|]: -// /*HIGHLIGHTS*/[|break|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInExport1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInExport1.baseline.jsonc deleted file mode 100644 index 22a8f5e37a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInExport1.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === documentHighlights === -// === /documentHighlightInExport1.ts === -// class /*HIGHLIGHTS*/[|C|] {} -// export { C as D }; - - - -// === documentHighlights === -// === /documentHighlightInExport1.ts === -// class C {} -// /*HIGHLIGHTS*/export { C as D }; - - - -// === documentHighlights === -// === /documentHighlightInExport1.ts === -// class [|C|] {} -// export { /*HIGHLIGHTS*/C as D }; - - - -// === documentHighlights === -// === /documentHighlightInExport1.ts === -// class C {} -// export { C /*HIGHLIGHTS*/as D }; - - - -// === documentHighlights === -// === /documentHighlightInExport1.ts === -// class C {} -// export { C as /*HIGHLIGHTS*/D }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInKeyword.baseline.jsonc deleted file mode 100644 index 1b627f9ea7..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInKeyword.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === documentHighlights === -// === /documentHighlightInKeyword.ts === -// export type Foo = { -// [K /*HIGHLIGHTS*/in keyof T]: any; -// } -// -// "a" in {}; -// -// for (let a in {}) {} - - - -// === documentHighlights === -// === /documentHighlightInKeyword.ts === -// export type Foo = { -// [K in keyof T]: any; -// } -// -// "a" /*HIGHLIGHTS*/in {}; -// -// for (let a in {}) {} - - - -// === documentHighlights === -// === /documentHighlightInKeyword.ts === -// --- (line: 3) skipped --- -// -// "a" in {}; -// -// for (let a /*HIGHLIGHTS*/in {}) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInTypeExport.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInTypeExport.baseline.jsonc deleted file mode 100644 index 2eaebb3867..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInTypeExport.baseline.jsonc +++ /dev/null @@ -1,98 +0,0 @@ -// === documentHighlights === -// === /1.ts === -// type /*HIGHLIGHTS*/[|A|] = 1; -// export { A as B }; - - - -// === documentHighlights === -// === /1.ts === -// type A = 1; -// export { /*HIGHLIGHTS*/A as B }; - - - -// === documentHighlights === -// === /1.ts === -// type A = 1; -// export { A as /*HIGHLIGHTS*/B }; - - - -// === documentHighlights === -// === /2.ts === -// type /*HIGHLIGHTS*/[|A|] = 1; -// let A: [|A|] = 1; -// export { A as B }; - - - -// === documentHighlights === -// === /2.ts === -// type A = 1; -// let /*HIGHLIGHTS*/[|A|]: A = 1; -// export { A as B }; - - - -// === documentHighlights === -// === /2.ts === -// type [|A|] = 1; -// let A: /*HIGHLIGHTS*/[|A|] = 1; -// export { A as B }; - - - -// === documentHighlights === -// === /2.ts === -// type A = 1; -// let [|A|]: A = 1; -// export { /*HIGHLIGHTS*/A as B }; - - - -// === documentHighlights === -// === /2.ts === -// type A = 1; -// let A: A = 1; -// export { A as /*HIGHLIGHTS*/B }; - - - -// === documentHighlights === -// === /3.ts === -// type /*HIGHLIGHTS*/[|A|] = 1; -// let A: [|A|] = 1; -// export type { A as B }; - - - -// === documentHighlights === -// === /3.ts === -// type A = 1; -// let /*HIGHLIGHTS*/[|A|]: A = 1; -// export type { A as B }; - - - -// === documentHighlights === -// === /3.ts === -// type [|A|] = 1; -// let A: /*HIGHLIGHTS*/[|A|] = 1; -// export type { A as B }; - - - -// === documentHighlights === -// === /3.ts === -// type A = 1; -// let [|A|]: A = 1; -// export type { /*HIGHLIGHTS*/A as B }; - - - -// === documentHighlights === -// === /3.ts === -// type A = 1; -// let A: A = 1; -// export type { A as /*HIGHLIGHTS*/B }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightJSDocTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightJSDocTypedef.baseline.jsonc deleted file mode 100644 index 8e19a1b263..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightJSDocTypedef.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === documentHighlights === -// === /index.js === -// /** -// * @typedef {{ -// * /*HIGHLIGHTS*/foo: string; -// * bar: number; -// * }} Foo -// */ -// // --- (line: 7) skipped --- - - - -// === documentHighlights === -// === /index.js === -// /** -// * @typedef {{ -// * foo: string; -// * /*HIGHLIGHTS*/bar: number; -// * }} Foo -// */ -// -// // --- (line: 8) skipped --- - - - -// === documentHighlights === -// === /index.js === -// --- (line: 6) skipped --- -// -// /** @type {Foo} */ -// const x = { -// /*HIGHLIGHTS*/[|foo|]: "", -// bar: 42, -// }; - - - -// === documentHighlights === -// === /index.js === -// --- (line: 7) skipped --- -// /** @type {Foo} */ -// const x = { -// foo: "", -// /*HIGHLIGHTS*/[|bar|]: 42, -// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightMultilineTemplateStrings.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightMultilineTemplateStrings.baseline.jsonc deleted file mode 100644 index c8e706c822..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightMultilineTemplateStrings.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === documentHighlights === -// === /documentHighlightMultilineTemplateStrings.ts === -// const foo = ` -// a -// /*HIGHLIGHTS*/b -// c -// ` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightTemplateStrings.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightTemplateStrings.baseline.jsonc deleted file mode 100644 index e7504bc218..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightTemplateStrings.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /documentHighlightTemplateStrings.ts === -// --- (line: 3) skipped --- -// p: Foo = `a`; -// m() { -// switch (this.p) { -// case `/*HIGHLIGHTS*/a`: -// return 1; -// case "b": -// return 2; -// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightVarianceModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightVarianceModifiers.baseline.jsonc deleted file mode 100644 index 3eef4f868a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightVarianceModifiers.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /documentHighlightVarianceModifiers.ts === -// type TFoo = { value: Value }; -// type TBar = TFoo; - - - -// === documentHighlights === -// === /documentHighlightVarianceModifiers.ts === -// type TFoo = { value: Value }; -// type TBar = TFoo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights01.baseline.jsonc deleted file mode 100644 index 5fbec7f68f..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights01.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === documentHighlights === -// === /a.ts === -// function /*HIGHLIGHTS*/[|f|](x: typeof [|f|]) { -// [|f|]([|f|]); -// } - - - -// === documentHighlights === -// === /a.ts === -// function [|f|](x: typeof /*HIGHLIGHTS*/[|f|]) { -// [|f|]([|f|]); -// } - - - -// === documentHighlights === -// === /a.ts === -// function [|f|](x: typeof [|f|]) { -// /*HIGHLIGHTS*/[|f|]([|f|]); -// } - - - -// === documentHighlights === -// === /a.ts === -// function [|f|](x: typeof [|f|]) { -// [|f|](/*HIGHLIGHTS*/[|f|]); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidGlobalThis.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidGlobalThis.baseline.jsonc deleted file mode 100644 index b4ca954745..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidGlobalThis.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === documentHighlights === -// === /documentHighlightsInvalidGlobalThis.ts === -// declare global { -// export { globalThis as /*HIGHLIGHTS*/global } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidModifierLocations.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidModifierLocations.baseline.jsonc deleted file mode 100644 index 694ac0952d..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidModifierLocations.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === documentHighlights === -// === /documentHighlightsInvalidModifierLocations.ts === -// class C { -// m(/*HIGHLIGHTS*/[|readonly|] p) {} -// } -// function f(readonly p) {} -// -// // --- (line: 6) skipped --- - - - -// === documentHighlights === -// === /documentHighlightsInvalidModifierLocations.ts === -// class C { -// m(readonly p) {} -// } -// function f(/*HIGHLIGHTS*/[|readonly|] p) {} -// -// class D { -// m(public p) {} -// } -// function g(public p) {} - - - -// === documentHighlights === -// === /documentHighlightsInvalidModifierLocations.ts === -// --- (line: 3) skipped --- -// function f(readonly p) {} -// -// class D { -// m(/*HIGHLIGHTS*/[|public|] p) {} -// } -// function g(public p) {} - - - -// === documentHighlights === -// === /documentHighlightsInvalidModifierLocations.ts === -// --- (line: 5) skipped --- -// class D { -// m(public p) {} -// } -// function g(/*HIGHLIGHTS*/[|public|] p) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsTypeParameterInHeritageClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsTypeParameterInHeritageClause01.baseline.jsonc deleted file mode 100644 index d930af83ea..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsTypeParameterInHeritageClause01.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === documentHighlights === -// === /documentHighlightsTypeParameterInHeritageClause01.ts === -// interface I extends I<[|T|]>, [|T|] { -// } - - - -// === documentHighlights === -// === /documentHighlightsTypeParameterInHeritageClause01.ts === -// interface I<[|T|]> extends I, [|T|] { -// } - - - -// === documentHighlights === -// === /documentHighlightsTypeParameterInHeritageClause01.ts === -// interface I<[|T|]> extends I<[|T|]>, /*HIGHLIGHTS*/[|T|] { -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_33722.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_33722.baseline.jsonc deleted file mode 100644 index a789840493..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_33722.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === documentHighlights === -// === /x.ts === -// import y from "./y"; -// -// y()./*HIGHLIGHTS*/foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_40082.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_40082.baseline.jsonc deleted file mode 100644 index 9a74597f6d..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_40082.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === documentHighlights === -// === /documentHighlights_40082.ts === -// export = (state, messages) => { -// export /*HIGHLIGHTS*/default { -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_filesToSearch.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_filesToSearch.baseline.jsonc deleted file mode 100644 index e8e985a42a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_filesToSearch.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === documentHighlights === -// === /a.ts === -// export const /*HIGHLIGHTS*/[|x|] = 0; - - - -// === documentHighlights === -// === /b.ts === -// import { /*HIGHLIGHTS*/[|x|] } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/emptyExportFindReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/emptyExportFindReferences.baseline.jsonc deleted file mode 100644 index d013f7427a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/emptyExportFindReferences.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === documentHighlights === -// === /Foo.js === -// /*HIGHLIGHTS*/module.exports = { -// -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/findReferencesJSXTagName3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/findReferencesJSXTagName3.baseline.jsonc deleted file mode 100644 index e2ffbc30f3..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/findReferencesJSXTagName3.baseline.jsonc +++ /dev/null @@ -1,124 +0,0 @@ -// === documentHighlights === -// === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// /*HIGHLIGHTS*/[|div|]: any; -// } -// } -// -// const Comp = () => -// <[|div|]> -// Some content -// <[|div|]>More content -// ; -// -// const x = -// Content -// ; - - - -// === documentHighlights === -// === /a.tsx === -// --- (line: 5) skipped --- -// } -// -// const Comp = () => -// [||] -// Some content -//
More content
-// [||]; -// -// const x = -// Content -// ; - - - -// === documentHighlights === -// === /a.tsx === -// --- (line: 7) skipped --- -// const Comp = () => -//
-// Some content -// [||]More content[|
|] -// ; -// -// const x = -// Content -// ; - - - -// === documentHighlights === -// === /a.tsx === -// --- (line: 7) skipped --- -// const Comp = () => -//
-// Some content -// [|
|]More content[||] -//
; -// -// const x = -// Content -// ; - - - -// === documentHighlights === -// === /a.tsx === -// --- (line: 5) skipped --- -// } -// -// const Comp = () => -// [|
|] -// Some content -//
More content
-// [||]; -// -// const x = -// Content -// ; - - - -// === documentHighlights === -// === /a.tsx === -// --- (line: 4) skipped --- -// } -// } -// -// const /*HIGHLIGHTS*/[|Comp|] = () => -//
-// Some content -//
More content
-//
; -// -// const x = <[|Comp|]> -// Content -// ; - - - -// === documentHighlights === -// === /a.tsx === -// --- (line: 10) skipped --- -//
More content
-//
; -// -// const x = [||] -// Content -// [||]; - - - -// === documentHighlights === -// === /a.tsx === -// --- (line: 10) skipped --- -//
More content
-//
; -// -// const x = [||] -// Content -// [||]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract01.baseline.jsonc deleted file mode 100644 index 3d811b7b7a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract01.baseline.jsonc +++ /dev/null @@ -1,67 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesAbstract01.ts === -// /*HIGHLIGHTS*/[|abstract|] class Animal { -// [|abstract|] prop1; // Does not compile -// [|abstract|] abstract(); -// [|abstract|] walk(): void; -// [|abstract|] makeSound(): void; -// } -// // Abstract class below should not get highlighted -// abstract class Foo { -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAbstract01.ts === -// [|abstract|] class Animal { -// /*HIGHLIGHTS*/[|abstract|] prop1; // Does not compile -// [|abstract|] abstract(); -// [|abstract|] walk(): void; -// [|abstract|] makeSound(): void; -// } -// // Abstract class below should not get highlighted -// abstract class Foo { -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAbstract01.ts === -// [|abstract|] class Animal { -// [|abstract|] prop1; // Does not compile -// /*HIGHLIGHTS*/[|abstract|] abstract(); -// [|abstract|] walk(): void; -// [|abstract|] makeSound(): void; -// } -// // Abstract class below should not get highlighted -// abstract class Foo { -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAbstract01.ts === -// [|abstract|] class Animal { -// [|abstract|] prop1; // Does not compile -// [|abstract|] abstract(); -// /*HIGHLIGHTS*/[|abstract|] walk(): void; -// [|abstract|] makeSound(): void; -// } -// // Abstract class below should not get highlighted -// abstract class Foo { -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAbstract01.ts === -// [|abstract|] class Animal { -// [|abstract|] prop1; // Does not compile -// [|abstract|] abstract(); -// [|abstract|] walk(): void; -// /*HIGHLIGHTS*/[|abstract|] makeSound(): void; -// } -// // Abstract class below should not get highlighted -// abstract class Foo { -// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract02.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract02.baseline.jsonc deleted file mode 100644 index 08faaf8825..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract02.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesAbstract02.ts === -// --- (line: 3) skipped --- -// abstract makeSound(): void; -// } -// // abstract cannot appear here, won't get highlighted -// let c = /*HIGHLIGHTS*/abstract class Foo { -// abstract foo(): void; -// abstract bar(): void; -// } - - - -// === documentHighlights === -// === /getOccurrencesAbstract02.ts === -// --- (line: 4) skipped --- -// } -// // abstract cannot appear here, won't get highlighted -// let c = abstract class Foo { -// /*HIGHLIGHTS*/[|abstract|] foo(): void; -// [|abstract|] bar(): void; -// } - - - -// === documentHighlights === -// === /getOccurrencesAbstract02.ts === -// // Not valid TS (abstract methods can only appear in abstract classes) -// class Animal { -// /*HIGHLIGHTS*/[|abstract|] walk(): void; -// [|abstract|] makeSound(): void; -// } -// // abstract cannot appear here, won't get highlighted -// let c = abstract class Foo { -// // --- (line: 8) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAbstract02.ts === -// // Not valid TS (abstract methods can only appear in abstract classes) -// class Animal { -// [|abstract|] walk(): void; -// /*HIGHLIGHTS*/[|abstract|] makeSound(): void; -// } -// // abstract cannot appear here, won't get highlighted -// let c = abstract class Foo { -// // --- (line: 8) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract03.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract03.baseline.jsonc deleted file mode 100644 index 10c2925c08..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract03.baseline.jsonc +++ /dev/null @@ -1,69 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesAbstract03.ts === -// function f() { -// /*HIGHLIGHTS*/[|abstract|] class A { -// [|abstract|] m(): void; -// } -// abstract class B {} -// } -// // --- (line: 7) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAbstract03.ts === -// function f() { -// [|abstract|] class A { -// /*HIGHLIGHTS*/[|abstract|] m(): void; -// } -// abstract class B {} -// } -// // --- (line: 7) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAbstract03.ts === -// --- (line: 5) skipped --- -// } -// switch (0) { -// case 0: -// /*HIGHLIGHTS*/[|abstract|] class A { [|abstract|] m(): void; } -// default: -// abstract class B { abstract m(): void; } -// } - - - -// === documentHighlights === -// === /getOccurrencesAbstract03.ts === -// --- (line: 5) skipped --- -// } -// switch (0) { -// case 0: -// [|abstract|] class A { /*HIGHLIGHTS*/[|abstract|] m(): void; } -// default: -// abstract class B { abstract m(): void; } -// } - - - -// === documentHighlights === -// === /getOccurrencesAbstract03.ts === -// --- (line: 7) skipped --- -// case 0: -// abstract class A { abstract m(): void; } -// default: -// /*HIGHLIGHTS*/[|abstract|] class B { [|abstract|] m(): void; } -// } - - - -// === documentHighlights === -// === /getOccurrencesAbstract03.ts === -// --- (line: 7) skipped --- -// case 0: -// abstract class A { abstract m(): void; } -// default: -// [|abstract|] class B { /*HIGHLIGHTS*/[|abstract|] m(): void; } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAfterEdit.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAfterEdit.baseline.jsonc deleted file mode 100644 index c056b68775..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAfterEdit.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesAfterEdit.ts === -// -// interface A { -// [|foo|]: string; -// } -// function foo(x: A) { -// x.[|f/*HIGHLIGHTS*/oo|] -// } - - - -// === documentHighlights === -// === /getOccurrencesAfterEdit.ts === -// -// -// interface A { -// [|foo|]: string; -// } -// function foo(x: A) { -// x.[|f/*HIGHLIGHTS*/oo|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait.baseline.jsonc deleted file mode 100644 index 4934e838b1..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait.baseline.jsonc +++ /dev/null @@ -1,87 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesAsyncAwait.ts === -// /*HIGHLIGHTS*/[|async|] function f() { -// [|await|] 100; -// [|await|] [|await|] 200; -// class Foo { -// async memberFunction() { -// await 1; -// } -// } -// return [|await|] async function () { -// await 300; -// } -// } -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAsyncAwait.ts === -// [|async|] function f() { -// /*HIGHLIGHTS*/[|await|] 100; -// [|await|] [|await|] 200; -// class Foo { -// async memberFunction() { -// await 1; -// } -// } -// return [|await|] async function () { -// await 300; -// } -// } -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAsyncAwait.ts === -// [|async|] function f() { -// [|await|] 100; -// /*HIGHLIGHTS*/[|await|] [|await|] 200; -// class Foo { -// async memberFunction() { -// await 1; -// } -// } -// return [|await|] async function () { -// await 300; -// } -// } -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAsyncAwait.ts === -// [|async|] function f() { -// [|await|] 100; -// [|await|] /*HIGHLIGHTS*/[|await|] 200; -// class Foo { -// async memberFunction() { -// await 1; -// } -// } -// return [|await|] async function () { -// await 300; -// } -// } -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesAsyncAwait.ts === -// [|async|] function f() { -// [|await|] 100; -// [|await|] [|await|] 200; -// class Foo { -// async memberFunction() { -// await 1; -// } -// } -// return /*HIGHLIGHTS*/[|await|] async function () { -// await 300; -// } -// } -// // --- (line: 13) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait2.baseline.jsonc deleted file mode 100644 index 308b71fb35..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait2.baseline.jsonc +++ /dev/null @@ -1,57 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesAsyncAwait2.ts === -// /*HIGHLIGHTS*/[|async|] function f() { -// [|await|] 100; -// [|await|] [|await|] 200; -// return [|await|] async function () { -// await 300; -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesAsyncAwait2.ts === -// [|async|] function f() { -// /*HIGHLIGHTS*/[|await|] 100; -// [|await|] [|await|] 200; -// return [|await|] async function () { -// await 300; -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesAsyncAwait2.ts === -// [|async|] function f() { -// [|await|] 100; -// /*HIGHLIGHTS*/[|await|] [|await|] 200; -// return [|await|] async function () { -// await 300; -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesAsyncAwait2.ts === -// [|async|] function f() { -// [|await|] 100; -// [|await|] /*HIGHLIGHTS*/[|await|] 200; -// return [|await|] async function () { -// await 300; -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesAsyncAwait2.ts === -// [|async|] function f() { -// [|await|] 100; -// [|await|] [|await|] 200; -// return /*HIGHLIGHTS*/[|await|] async function () { -// await 300; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait3.baseline.jsonc deleted file mode 100644 index f8ae89bc84..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait3.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesAsyncAwait3.ts === -// a/*HIGHLIGHTS*/wait 100; -// async function f() { -// await 300; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionConstructor.baseline.jsonc deleted file mode 100644 index 7b5c4730a1..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionConstructor.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesClassExpressionConstructor.ts === -// let A = class Foo { -// /*HIGHLIGHTS*/[|constructor|](); -// [|constructor|](x: number); -// [|constructor|](y: string); -// [|constructor|](a?: any) { -// } -// } -// -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionConstructor.ts === -// let A = class Foo { -// [|constructor|](); -// /*HIGHLIGHTS*/[|constructor|](x: number); -// [|constructor|](y: string); -// [|constructor|](a?: any) { -// } -// } -// -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionConstructor.ts === -// let A = class Foo { -// [|constructor|](); -// [|constructor|](x: number); -// /*HIGHLIGHTS*/[|constructor|](y: string); -// [|constructor|](a?: any) { -// } -// } -// -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionConstructor.ts === -// let A = class Foo { -// [|constructor|](); -// [|constructor|](x: number); -// [|constructor|](y: string); -// /*HIGHLIGHTS*/[|constructor|](a?: any) { -// } -// } -// -// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPrivate.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPrivate.baseline.jsonc deleted file mode 100644 index 923a851a0c..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPrivate.baseline.jsonc +++ /dev/null @@ -1,82 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesClassExpressionPrivate.ts === -// let A = class Foo { -// /*HIGHLIGHTS*/[|private|] foo; -// [|private|] private; -// constructor([|private|] y: string, public x: string) { -// } -// [|private|] method() { } -// public method2() { } -// [|private|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionPrivate.ts === -// let A = class Foo { -// [|private|] foo; -// /*HIGHLIGHTS*/[|private|] private; -// constructor([|private|] y: string, public x: string) { -// } -// [|private|] method() { } -// public method2() { } -// [|private|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionPrivate.ts === -// let A = class Foo { -// [|private|] foo; -// [|private|] private; -// constructor(/*HIGHLIGHTS*/[|private|] y: string, public x: string) { -// } -// [|private|] method() { } -// public method2() { } -// [|private|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionPrivate.ts === -// let A = class Foo { -// [|private|] foo; -// [|private|] private; -// constructor([|private|] y: string, public x: string) { -// } -// /*HIGHLIGHTS*/[|private|] method() { } -// public method2() { } -// [|private|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionPrivate.ts === -// let A = class Foo { -// [|private|] foo; -// [|private|] private; -// constructor([|private|] y: string, public x: string) { -// } -// [|private|] method() { } -// public method2() { } -// /*HIGHLIGHTS*/[|private|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPublic.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPublic.baseline.jsonc deleted file mode 100644 index 44ea7bf572..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPublic.baseline.jsonc +++ /dev/null @@ -1,82 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesClassExpressionPublic.ts === -// let A = class Foo { -// /*HIGHLIGHTS*/[|public|] foo; -// [|public|] public; -// constructor([|public|] y: string, private x: string) { -// } -// [|public|] method() { } -// private method2() {} -// [|public|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionPublic.ts === -// let A = class Foo { -// [|public|] foo; -// /*HIGHLIGHTS*/[|public|] public; -// constructor([|public|] y: string, private x: string) { -// } -// [|public|] method() { } -// private method2() {} -// [|public|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionPublic.ts === -// let A = class Foo { -// [|public|] foo; -// [|public|] public; -// constructor(/*HIGHLIGHTS*/[|public|] y: string, private x: string) { -// } -// [|public|] method() { } -// private method2() {} -// [|public|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionPublic.ts === -// let A = class Foo { -// [|public|] foo; -// [|public|] public; -// constructor([|public|] y: string, private x: string) { -// } -// /*HIGHLIGHTS*/[|public|] method() { } -// private method2() {} -// [|public|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionPublic.ts === -// let A = class Foo { -// [|public|] foo; -// [|public|] public; -// constructor([|public|] y: string, private x: string) { -// } -// [|public|] method() { } -// private method2() {} -// /*HIGHLIGHTS*/[|public|] static static() { } -// } -// -// let B = class D { -// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStatic.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStatic.baseline.jsonc deleted file mode 100644 index 6e552e9a49..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStatic.baseline.jsonc +++ /dev/null @@ -1,69 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesClassExpressionStatic.ts === -// let A = class Foo { -// public /*HIGHLIGHTS*/[|static|] foo; -// [|static|] a; -// constructor(public y: string, private x: string) { -// } -// public method() { } -// private method2() {} -// public [|static|] static() { } -// private [|static|] static2() { } -// } -// -// let B = class D { -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionStatic.ts === -// let A = class Foo { -// public [|static|] foo; -// /*HIGHLIGHTS*/[|static|] a; -// constructor(public y: string, private x: string) { -// } -// public method() { } -// private method2() {} -// public [|static|] static() { } -// private [|static|] static2() { } -// } -// -// let B = class D { -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionStatic.ts === -// let A = class Foo { -// public [|static|] foo; -// [|static|] a; -// constructor(public y: string, private x: string) { -// } -// public method() { } -// private method2() {} -// public /*HIGHLIGHTS*/[|static|] static() { } -// private [|static|] static2() { } -// } -// -// let B = class D { -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionStatic.ts === -// let A = class Foo { -// public [|static|] foo; -// [|static|] a; -// constructor(public y: string, private x: string) { -// } -// public method() { } -// private method2() {} -// public [|static|] static() { } -// private /*HIGHLIGHTS*/[|static|] static2() { } -// } -// -// let B = class D { -// // --- (line: 13) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStaticThis.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStaticThis.baseline.jsonc deleted file mode 100644 index d5d4cce282..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStaticThis.baseline.jsonc +++ /dev/null @@ -1,92 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesClassExpressionStaticThis.ts === -// --- (line: 26) skipped --- -// } -// -// static bar() { -// /*HIGHLIGHTS*/[|this|]; -// [|this|].staticX; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// // --- (line: 39) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionStaticThis.ts === -// --- (line: 26) skipped --- -// } -// -// static bar() { -// [|this|]; -// /*HIGHLIGHTS*/[|this|].staticX; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// // --- (line: 39) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionStaticThis.ts === -// --- (line: 26) skipped --- -// } -// -// static bar() { -// [|this|]; -// [|this|].staticX; -// () => /*HIGHLIGHTS*/[|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// // --- (line: 39) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionStaticThis.ts === -// --- (line: 26) skipped --- -// } -// -// static bar() { -// [|this|]; -// [|this|].staticX; -// () => [|this|]; -// () => { -// if (/*HIGHLIGHTS*/[|this|]) { -// [|this|]; -// } -// } -// function inside() { -// // --- (line: 39) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionStaticThis.ts === -// --- (line: 26) skipped --- -// } -// -// static bar() { -// [|this|]; -// [|this|].staticX; -// () => [|this|]; -// () => { -// if ([|this|]) { -// /*HIGHLIGHTS*/[|this|]; -// } -// } -// function inside() { -// // --- (line: 39) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionThis.baseline.jsonc deleted file mode 100644 index 0b18513ac4..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionThis.baseline.jsonc +++ /dev/null @@ -1,303 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// /*HIGHLIGHTS*/[|this|]; -// [|this|].x; -// [|this|].y; -// [|this|].z; -// } -// foo() { -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return [|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// [|this|]; -// /*HIGHLIGHTS*/[|this|].x; -// [|this|].y; -// [|this|].z; -// } -// foo() { -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return [|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// [|this|]; -// [|this|].x; -// /*HIGHLIGHTS*/[|this|].y; -// [|this|].z; -// } -// foo() { -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return [|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// [|this|]; -// [|this|].x; -// [|this|].y; -// /*HIGHLIGHTS*/[|this|].z; -// } -// foo() { -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return [|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// [|this|]; -// [|this|].x; -// [|this|].y; -// [|this|].z; -// } -// foo() { -// /*HIGHLIGHTS*/[|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return [|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// [|this|]; -// [|this|].x; -// [|this|].y; -// [|this|].z; -// } -// foo() { -// [|this|]; -// () => /*HIGHLIGHTS*/[|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return [|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// [|this|]; -// [|this|].x; -// [|this|].y; -// [|this|].z; -// } -// foo() { -// [|this|]; -// () => [|this|]; -// () => { -// if (/*HIGHLIGHTS*/[|this|]) { -// [|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return [|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// [|this|]; -// [|this|].x; -// [|this|].y; -// [|this|].z; -// } -// foo() { -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// /*HIGHLIGHTS*/[|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return [|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesClassExpressionThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// constructor() { -// [|this|]; -// [|this|].x; -// [|this|].y; -// [|this|].z; -// } -// foo() { -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return /*HIGHLIGHTS*/[|this|].x; -// } -// -// static bar() { -// // --- (line: 29) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst01.baseline.jsonc deleted file mode 100644 index 57f75d7218..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst01.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesConst01.ts === -// /*HIGHLIGHTS*/[|const|] enum E1 { -// v1, -// v2 -// } -// -// const c = 0; - - - -// === documentHighlights === -// === /getOccurrencesConst01.ts === -// const enum E1 { -// v1, -// v2 -// } -// -// /*HIGHLIGHTS*/const c = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst04.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst04.baseline.jsonc deleted file mode 100644 index ef739ce89e..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst04.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesConst04.ts === -// export const class C { -// private static [|c/*HIGHLIGHTS*/onst|] foo; -// constructor(public const foo) { -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesConst04.ts === -// export const class C { -// private static const [|f/*HIGHLIGHTS*/oo|]; -// constructor(public const foo) { -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesConst04.ts === -// export const class C { -// private static [|const|] foo; -// constructor(public con/*HIGHLIGHTS*/st foo) { -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor.baseline.jsonc deleted file mode 100644 index 9a0d835004..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesConstructor.ts === -// class C { -// /*HIGHLIGHTS*/[|constructor|](); -// [|constructor|](x: number); -// [|constructor|](y: string, x: number); -// [|constructor|](a?: any, ...r: any[]) { -// if (a === undefined && r.length === 0) { -// return; -// } -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesConstructor.ts === -// class C { -// [|constructor|](); -// /*HIGHLIGHTS*/[|constructor|](x: number); -// [|constructor|](y: string, x: number); -// [|constructor|](a?: any, ...r: any[]) { -// if (a === undefined && r.length === 0) { -// return; -// } -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesConstructor.ts === -// class C { -// [|constructor|](); -// [|constructor|](x: number); -// /*HIGHLIGHTS*/[|constructor|](y: string, x: number); -// [|constructor|](a?: any, ...r: any[]) { -// if (a === undefined && r.length === 0) { -// return; -// } -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesConstructor.ts === -// class C { -// [|constructor|](); -// [|constructor|](x: number); -// [|constructor|](y: string, x: number); -// /*HIGHLIGHTS*/[|constructor|](a?: any, ...r: any[]) { -// if (a === undefined && r.length === 0) { -// return; -// } -// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor2.baseline.jsonc deleted file mode 100644 index 786cff277a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor2.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesConstructor2.ts === -// --- (line: 11) skipped --- -// } -// -// class D { -// /*HIGHLIGHTS*/[|constructor|](public x: number, public y: number) { -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare1.baseline.jsonc deleted file mode 100644 index dcb84d6fb3..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare1.baseline.jsonc +++ /dev/null @@ -1,66 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesDeclare1.ts === -// --- (line: 27) skipped --- -// export interface I1 { -// } -// -// export /*HIGHLIGHTS*/[|declare|] module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// // --- (line: 35) skipped --- - -// --- (line: 45) skipped --- -// } -// } -// -// [|declare|] var ambientThing: number; -// export var exportedThing = 10; -// [|declare|] function foo(): string; -// } - - - -// === documentHighlights === -// === /getOccurrencesDeclare1.ts === -// --- (line: 27) skipped --- -// export interface I1 { -// } -// -// export [|declare|] module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// // --- (line: 35) skipped --- - -// --- (line: 45) skipped --- -// } -// } -// -// /*HIGHLIGHTS*/[|declare|] var ambientThing: number; -// export var exportedThing = 10; -// [|declare|] function foo(): string; -// } - - - -// === documentHighlights === -// === /getOccurrencesDeclare1.ts === -// --- (line: 27) skipped --- -// export interface I1 { -// } -// -// export [|declare|] module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// // --- (line: 35) skipped --- - -// --- (line: 45) skipped --- -// } -// } -// -// [|declare|] var ambientThing: number; -// export var exportedThing = 10; -// /*HIGHLIGHTS*/[|declare|] function foo(): string; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare2.baseline.jsonc deleted file mode 100644 index e8aad750bf..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare2.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesDeclare2.ts === -// --- (line: 33) skipped --- -// } -// -// export module mb.m1.m2.m3 { -// /*HIGHLIGHTS*/[|declare|] var foo; -// -// export class C2 { -// public pub1; -// // --- (line: 41) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare3.baseline.jsonc deleted file mode 100644 index fe4b8851c5..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare3.baseline.jsonc +++ /dev/null @@ -1,73 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesDeclare3.ts === -// /*HIGHLIGHTS*/[|declare|] var x; -// export [|declare|] var y, z; -// -// module m { -// export class C1 { -// // --- (line: 6) skipped --- - -// --- (line: 53) skipped --- -// declare function foo(): string; -// } -// -// [|declare|] export var v1, v2; -// [|declare|] module dm { } -// export class EC { } - - - -// === documentHighlights === -// === /getOccurrencesDeclare3.ts === -// [|declare|] var x; -// export /*HIGHLIGHTS*/[|declare|] var y, z; -// -// module m { -// export class C1 { -// // --- (line: 6) skipped --- - -// --- (line: 53) skipped --- -// declare function foo(): string; -// } -// -// [|declare|] export var v1, v2; -// [|declare|] module dm { } -// export class EC { } - - - -// === documentHighlights === -// === /getOccurrencesDeclare3.ts === -// [|declare|] var x; -// export [|declare|] var y, z; -// -// module m { -// export class C1 { -// // --- (line: 6) skipped --- - -// --- (line: 53) skipped --- -// declare function foo(): string; -// } -// -// /*HIGHLIGHTS*/[|declare|] export var v1, v2; -// [|declare|] module dm { } -// export class EC { } - - - -// === documentHighlights === -// === /getOccurrencesDeclare3.ts === -// [|declare|] var x; -// export [|declare|] var y, z; -// -// module m { -// export class C1 { -// // --- (line: 6) skipped --- - -// --- (line: 53) skipped --- -// declare function foo(): string; -// } -// -// [|declare|] export var v1, v2; -// /*HIGHLIGHTS*/[|declare|] module dm { } -// export class EC { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport1.baseline.jsonc deleted file mode 100644 index bc27b75743..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport1.baseline.jsonc +++ /dev/null @@ -1,182 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesExport1.ts === -// module m { -// /*HIGHLIGHTS*/[|export|] class C1 { -// public pub1; -// public pub2; -// private priv1; -// // --- (line: 6) skipped --- - -// --- (line: 24) skipped --- -// protected static statProt; -// } -// -// [|export|] interface I1 { -// } -// -// [|export|] declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// [|export|] module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// // --- (line: 40) skipped --- - -// --- (line: 46) skipped --- -// } -// -// declare var ambientThing: number; -// [|export|] var exportedThing = 10; -// declare function foo(): string; -// } - - - -// === documentHighlights === -// === /getOccurrencesExport1.ts === -// module m { -// [|export|] class C1 { -// public pub1; -// public pub2; -// private priv1; -// // --- (line: 6) skipped --- - -// --- (line: 24) skipped --- -// protected static statProt; -// } -// -// /*HIGHLIGHTS*/[|export|] interface I1 { -// } -// -// [|export|] declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// [|export|] module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// // --- (line: 40) skipped --- - -// --- (line: 46) skipped --- -// } -// -// declare var ambientThing: number; -// [|export|] var exportedThing = 10; -// declare function foo(): string; -// } - - - -// === documentHighlights === -// === /getOccurrencesExport1.ts === -// module m { -// [|export|] class C1 { -// public pub1; -// public pub2; -// private priv1; -// // --- (line: 6) skipped --- - -// --- (line: 24) skipped --- -// protected static statProt; -// } -// -// [|export|] interface I1 { -// } -// -// /*HIGHLIGHTS*/[|export|] declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// [|export|] module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// // --- (line: 40) skipped --- - -// --- (line: 46) skipped --- -// } -// -// declare var ambientThing: number; -// [|export|] var exportedThing = 10; -// declare function foo(): string; -// } - - - -// === documentHighlights === -// === /getOccurrencesExport1.ts === -// module m { -// [|export|] class C1 { -// public pub1; -// public pub2; -// private priv1; -// // --- (line: 6) skipped --- - -// --- (line: 24) skipped --- -// protected static statProt; -// } -// -// [|export|] interface I1 { -// } -// -// [|export|] declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// /*HIGHLIGHTS*/[|export|] module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// // --- (line: 40) skipped --- - -// --- (line: 46) skipped --- -// } -// -// declare var ambientThing: number; -// [|export|] var exportedThing = 10; -// declare function foo(): string; -// } - - - -// === documentHighlights === -// === /getOccurrencesExport1.ts === -// module m { -// [|export|] class C1 { -// public pub1; -// public pub2; -// private priv1; -// // --- (line: 6) skipped --- - -// --- (line: 24) skipped --- -// protected static statProt; -// } -// -// [|export|] interface I1 { -// } -// -// [|export|] declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// [|export|] module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// // --- (line: 40) skipped --- - -// --- (line: 46) skipped --- -// } -// -// declare var ambientThing: number; -// /*HIGHLIGHTS*/[|export|] var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport2.baseline.jsonc deleted file mode 100644 index a870127ec7..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport2.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesExport2.ts === -// --- (line: 35) skipped --- -// export module mb.m1.m2.m3 { -// declare var foo; -// -// /*HIGHLIGHTS*/[|export|] class C2 { -// public pub1; -// private priv1; -// protected prot1; -// // --- (line: 43) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport3.baseline.jsonc deleted file mode 100644 index f403d6f737..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport3.baseline.jsonc +++ /dev/null @@ -1,54 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesExport3.ts === -// declare var x; -// /*HIGHLIGHTS*/[|export|] declare var y, z; -// -// module m { -// export class C1 { -// // --- (line: 6) skipped --- - -// --- (line: 53) skipped --- -// declare function foo(): string; -// } -// -// declare [|export|] var v1, v2; -// declare module dm { } -// [|export|] class EC { } - - - -// === documentHighlights === -// === /getOccurrencesExport3.ts === -// declare var x; -// [|export|] declare var y, z; -// -// module m { -// export class C1 { -// // --- (line: 6) skipped --- - -// --- (line: 53) skipped --- -// declare function foo(): string; -// } -// -// declare /*HIGHLIGHTS*/[|export|] var v1, v2; -// declare module dm { } -// [|export|] class EC { } - - - -// === documentHighlights === -// === /getOccurrencesExport3.ts === -// declare var x; -// [|export|] declare var y, z; -// -// module m { -// export class C1 { -// // --- (line: 6) skipped --- - -// --- (line: 53) skipped --- -// declare function foo(): string; -// } -// -// declare [|export|] var v1, v2; -// declare module dm { } -// /*HIGHLIGHTS*/[|export|] class EC { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse.baseline.jsonc deleted file mode 100644 index f8dcb8e4ee..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse.baseline.jsonc +++ /dev/null @@ -1,158 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesIfElse.ts === -// /*HIGHLIGHTS*/[|if|] (true) { -// if (false) { -// } -// else { -// // --- (line: 5) skipped --- - -// --- (line: 10) skipped --- -// var x = undefined; -// } -// } -// [|else if|] (null) { -// } -// [|else|] /* whar garbl */ [|if|] (undefined) { -// } -// [|else|] -// [|if|] (false) { -// } -// [|else|] { } - - - -// === documentHighlights === -// === /getOccurrencesIfElse.ts === -// [|if|] (true) { -// if (false) { -// } -// else { -// // --- (line: 5) skipped --- - -// --- (line: 10) skipped --- -// var x = undefined; -// } -// } -// /*HIGHLIGHTS*/[|else if|] (null) { -// } -// [|else|] /* whar garbl */ [|if|] (undefined) { -// } -// [|else|] -// [|if|] (false) { -// } -// [|else|] { } - - - -// === documentHighlights === -// === /getOccurrencesIfElse.ts === -// [|if|] (true) { -// if (false) { -// } -// else { -// // --- (line: 5) skipped --- - -// --- (line: 10) skipped --- -// var x = undefined; -// } -// } -// [|else if|] (null) { -// } -// /*HIGHLIGHTS*/[|else|] /* whar garbl */ [|if|] (undefined) { -// } -// [|else|] -// [|if|] (false) { -// } -// [|else|] { } - - - -// === documentHighlights === -// === /getOccurrencesIfElse.ts === -// [|if|] (true) { -// if (false) { -// } -// else { -// // --- (line: 5) skipped --- - -// --- (line: 10) skipped --- -// var x = undefined; -// } -// } -// [|else if|] (null) { -// } -// [|else|] /* whar garbl */ /*HIGHLIGHTS*/[|if|] (undefined) { -// } -// [|else|] -// [|if|] (false) { -// } -// [|else|] { } - - - -// === documentHighlights === -// === /getOccurrencesIfElse.ts === -// [|if|] (true) { -// if (false) { -// } -// else { -// // --- (line: 5) skipped --- - -// --- (line: 10) skipped --- -// var x = undefined; -// } -// } -// [|else if|] (null) { -// } -// [|else|] /* whar garbl */ [|if|] (undefined) { -// } -// /*HIGHLIGHTS*/[|else|] -// [|if|] (false) { -// } -// [|else|] { } - - - -// === documentHighlights === -// === /getOccurrencesIfElse.ts === -// [|if|] (true) { -// if (false) { -// } -// else { -// // --- (line: 5) skipped --- - -// --- (line: 10) skipped --- -// var x = undefined; -// } -// } -// [|else if|] (null) { -// } -// [|else|] /* whar garbl */ [|if|] (undefined) { -// } -// [|else|] -// /*HIGHLIGHTS*/[|if|] (false) { -// } -// [|else|] { } - - - -// === documentHighlights === -// === /getOccurrencesIfElse.ts === -// [|if|] (true) { -// if (false) { -// } -// else { -// // --- (line: 5) skipped --- - -// --- (line: 10) skipped --- -// var x = undefined; -// } -// } -// [|else if|] (null) { -// } -// [|else|] /* whar garbl */ [|if|] (undefined) { -// } -// [|else|] -// [|if|] (false) { -// } -// /*HIGHLIGHTS*/[|else|] { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse2.baseline.jsonc deleted file mode 100644 index 1bfc0a9616..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse2.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesIfElse2.ts === -// if (true) { -// /*HIGHLIGHTS*/[|if|] (false) { -// } -// [|else|]{ -// } -// if (true) { -// } -// // --- (line: 8) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesIfElse2.ts === -// if (true) { -// [|if|] (false) { -// } -// /*HIGHLIGHTS*/[|else|]{ -// } -// if (true) { -// } -// // --- (line: 8) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse3.baseline.jsonc deleted file mode 100644 index b519b05023..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse3.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesIfElse3.ts === -// if (true) { -// if (false) { -// } -// else { -// } -// /*HIGHLIGHTS*/[|if|] (true) { -// } -// [|else|] { -// if (false) -// if (true) -// var x = undefined; -// // --- (line: 12) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesIfElse3.ts === -// if (true) { -// if (false) { -// } -// else { -// } -// [|if|] (true) { -// } -// /*HIGHLIGHTS*/[|else|] { -// if (false) -// if (true) -// var x = undefined; -// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue.baseline.jsonc deleted file mode 100644 index 18d8c97660..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue.baseline.jsonc +++ /dev/null @@ -1,130 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue.ts === -// var arr = [1, 2, 3, 4]; -// label1: /*HIGHLIGHTS*/[|for|] (var n in arr) { -// [|break|]; -// [|continue|]; -// [|break|] label1; -// [|continue|] label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// [|break|] label1; -// [|continue|] label1; -// -// break; -// continue; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue.ts === -// var arr = [1, 2, 3, 4]; -// label1: [|for|] (var n in arr) { -// /*HIGHLIGHTS*/[|break|]; -// [|continue|]; -// [|break|] label1; -// [|continue|] label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// [|break|] label1; -// [|continue|] label1; -// -// break; -// continue; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue.ts === -// var arr = [1, 2, 3, 4]; -// label1: [|for|] (var n in arr) { -// [|break|]; -// /*HIGHLIGHTS*/[|continue|]; -// [|break|] label1; -// [|continue|] label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// [|break|] label1; -// [|continue|] label1; -// -// break; -// continue; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue.ts === -// var arr = [1, 2, 3, 4]; -// label1: [|for|] (var n in arr) { -// [|break|]; -// [|continue|]; -// /*HIGHLIGHTS*/[|break|] label1; -// [|continue|] label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// [|break|] label1; -// [|continue|] label1; -// -// break; -// continue; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue.ts === -// var arr = [1, 2, 3, 4]; -// label1: [|for|] (var n in arr) { -// [|break|]; -// [|continue|]; -// [|break|] label1; -// /*HIGHLIGHTS*/[|continue|] label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// [|break|] label1; -// [|continue|] label1; -// -// break; -// continue; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue.ts === -// var arr = [1, 2, 3, 4]; -// label1: [|for|] (var n in arr) { -// [|break|]; -// [|continue|]; -// [|break|] label1; -// [|continue|] label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// /*HIGHLIGHTS*/[|break|] label1; -// [|continue|] label1; -// -// break; -// continue; -// // --- (line: 14) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue.ts === -// var arr = [1, 2, 3, 4]; -// label1: [|for|] (var n in arr) { -// [|break|]; -// [|continue|]; -// [|break|] label1; -// [|continue|] label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// [|break|] label1; -// /*HIGHLIGHTS*/[|continue|] label1; -// -// break; -// continue; -// // --- (line: 14) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue2.baseline.jsonc deleted file mode 100644 index 2449c57254..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue2.baseline.jsonc +++ /dev/null @@ -1,102 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue2.ts === -// --- (line: 4) skipped --- -// break label1; -// continue label1; -// -// label2: /*HIGHLIGHTS*/[|for|] (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// [|break|]; -// [|continue|]; -// [|break|] label2; -// [|continue|] label2; -// -// function foo() { -// label3: while (true) { -// // --- (line: 19) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue2.ts === -// --- (line: 4) skipped --- -// break label1; -// continue label1; -// -// label2: [|for|] (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// /*HIGHLIGHTS*/[|break|]; -// [|continue|]; -// [|break|] label2; -// [|continue|] label2; -// -// function foo() { -// label3: while (true) { -// // --- (line: 19) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue2.ts === -// --- (line: 4) skipped --- -// break label1; -// continue label1; -// -// label2: [|for|] (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// [|break|]; -// /*HIGHLIGHTS*/[|continue|]; -// [|break|] label2; -// [|continue|] label2; -// -// function foo() { -// label3: while (true) { -// // --- (line: 19) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue2.ts === -// --- (line: 4) skipped --- -// break label1; -// continue label1; -// -// label2: [|for|] (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// [|break|]; -// [|continue|]; -// /*HIGHLIGHTS*/[|break|] label2; -// [|continue|] label2; -// -// function foo() { -// label3: while (true) { -// // --- (line: 19) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue2.ts === -// --- (line: 4) skipped --- -// break label1; -// continue label1; -// -// label2: [|for|] (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// [|break|]; -// [|continue|]; -// [|break|] label2; -// /*HIGHLIGHTS*/[|continue|] label2; -// -// function foo() { -// label3: while (true) { -// // --- (line: 19) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue3.baseline.jsonc deleted file mode 100644 index dda8ff0265..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue3.baseline.jsonc +++ /dev/null @@ -1,200 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue3.ts === -// --- (line: 14) skipped --- -// continue label2; -// -// function foo() { -// label3: /*HIGHLIGHTS*/[|while|] (true) { -// [|break|]; -// [|continue|]; -// [|break|] label3; -// [|continue|] label3; -// -// // these cross function boundaries -// break label1; -// // --- (line: 26) skipped --- - -// --- (line: 32) skipped --- -// break label4; -// continue label4; -// -// [|break|] label3; -// [|continue|] label3; -// -// switch (10) { -// case 1: -// // --- (line: 41) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue3.ts === -// --- (line: 14) skipped --- -// continue label2; -// -// function foo() { -// label3: [|while|] (true) { -// /*HIGHLIGHTS*/[|break|]; -// [|continue|]; -// [|break|] label3; -// [|continue|] label3; -// -// // these cross function boundaries -// break label1; -// // --- (line: 26) skipped --- - -// --- (line: 32) skipped --- -// break label4; -// continue label4; -// -// [|break|] label3; -// [|continue|] label3; -// -// switch (10) { -// case 1: -// // --- (line: 41) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue3.ts === -// --- (line: 14) skipped --- -// continue label2; -// -// function foo() { -// label3: [|while|] (true) { -// [|break|]; -// /*HIGHLIGHTS*/[|continue|]; -// [|break|] label3; -// [|continue|] label3; -// -// // these cross function boundaries -// break label1; -// // --- (line: 26) skipped --- - -// --- (line: 32) skipped --- -// break label4; -// continue label4; -// -// [|break|] label3; -// [|continue|] label3; -// -// switch (10) { -// case 1: -// // --- (line: 41) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue3.ts === -// --- (line: 14) skipped --- -// continue label2; -// -// function foo() { -// label3: [|while|] (true) { -// [|break|]; -// [|continue|]; -// /*HIGHLIGHTS*/[|break|] label3; -// [|continue|] label3; -// -// // these cross function boundaries -// break label1; -// // --- (line: 26) skipped --- - -// --- (line: 32) skipped --- -// break label4; -// continue label4; -// -// [|break|] label3; -// [|continue|] label3; -// -// switch (10) { -// case 1: -// // --- (line: 41) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue3.ts === -// --- (line: 14) skipped --- -// continue label2; -// -// function foo() { -// label3: [|while|] (true) { -// [|break|]; -// [|continue|]; -// [|break|] label3; -// /*HIGHLIGHTS*/[|continue|] label3; -// -// // these cross function boundaries -// break label1; -// // --- (line: 26) skipped --- - -// --- (line: 32) skipped --- -// break label4; -// continue label4; -// -// [|break|] label3; -// [|continue|] label3; -// -// switch (10) { -// case 1: -// // --- (line: 41) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue3.ts === -// --- (line: 14) skipped --- -// continue label2; -// -// function foo() { -// label3: [|while|] (true) { -// [|break|]; -// [|continue|]; -// [|break|] label3; -// [|continue|] label3; -// -// // these cross function boundaries -// break label1; -// // --- (line: 26) skipped --- - -// --- (line: 32) skipped --- -// break label4; -// continue label4; -// -// /*HIGHLIGHTS*/[|break|] label3; -// [|continue|] label3; -// -// switch (10) { -// case 1: -// // --- (line: 41) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue3.ts === -// --- (line: 14) skipped --- -// continue label2; -// -// function foo() { -// label3: [|while|] (true) { -// [|break|]; -// [|continue|]; -// [|break|] label3; -// [|continue|] label3; -// -// // these cross function boundaries -// break label1; -// // --- (line: 26) skipped --- - -// --- (line: 32) skipped --- -// break label4; -// continue label4; -// -// [|break|] label3; -// /*HIGHLIGHTS*/[|continue|] label3; -// -// switch (10) { -// case 1: -// // --- (line: 41) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue4.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue4.baseline.jsonc deleted file mode 100644 index 36319f7756..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue4.baseline.jsonc +++ /dev/null @@ -1,301 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue4.ts === -// --- (line: 26) skipped --- -// break label2; -// continue label2; -// -// label4: /*HIGHLIGHTS*/[|do|] { -// [|break|]; -// [|continue|]; -// [|break|] label4; -// [|continue|] label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// [|break|] label4; -// default: -// [|continue|]; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } [|while|] (true) -// } -// } -// } -// // --- (line: 58) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue4.ts === -// --- (line: 26) skipped --- -// break label2; -// continue label2; -// -// label4: [|do|] { -// /*HIGHLIGHTS*/[|break|]; -// [|continue|]; -// [|break|] label4; -// [|continue|] label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// [|break|] label4; -// default: -// [|continue|]; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } [|while|] (true) -// } -// } -// } -// // --- (line: 58) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue4.ts === -// --- (line: 26) skipped --- -// break label2; -// continue label2; -// -// label4: [|do|] { -// [|break|]; -// /*HIGHLIGHTS*/[|continue|]; -// [|break|] label4; -// [|continue|] label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// [|break|] label4; -// default: -// [|continue|]; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } [|while|] (true) -// } -// } -// } -// // --- (line: 58) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue4.ts === -// --- (line: 26) skipped --- -// break label2; -// continue label2; -// -// label4: [|do|] { -// [|break|]; -// [|continue|]; -// /*HIGHLIGHTS*/[|break|] label4; -// [|continue|] label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// [|break|] label4; -// default: -// [|continue|]; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } [|while|] (true) -// } -// } -// } -// // --- (line: 58) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue4.ts === -// --- (line: 26) skipped --- -// break label2; -// continue label2; -// -// label4: [|do|] { -// [|break|]; -// [|continue|]; -// [|break|] label4; -// /*HIGHLIGHTS*/[|continue|] label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// [|break|] label4; -// default: -// [|continue|]; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } [|while|] (true) -// } -// } -// } -// // --- (line: 58) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue4.ts === -// --- (line: 26) skipped --- -// break label2; -// continue label2; -// -// label4: [|do|] { -// [|break|]; -// [|continue|]; -// [|break|] label4; -// [|continue|] label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// /*HIGHLIGHTS*/[|break|] label4; -// default: -// [|continue|]; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } [|while|] (true) -// } -// } -// } -// // --- (line: 58) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue4.ts === -// --- (line: 26) skipped --- -// break label2; -// continue label2; -// -// label4: [|do|] { -// [|break|]; -// [|continue|]; -// [|break|] label4; -// [|continue|] label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// [|break|] label4; -// default: -// /*HIGHLIGHTS*/[|continue|]; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } [|while|] (true) -// } -// } -// } -// // --- (line: 58) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue4.ts === -// --- (line: 26) skipped --- -// break label2; -// continue label2; -// -// label4: [|do|] { -// [|break|]; -// [|continue|]; -// [|break|] label4; -// [|continue|] label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// [|break|] label4; -// default: -// [|continue|]; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } /*HIGHLIGHTS*/[|while|] (true) -// } -// } -// } -// // --- (line: 58) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue5.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue5.baseline.jsonc deleted file mode 100644 index 41073f8721..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue5.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue5.ts === -// --- (line: 56) skipped --- -// } -// } -// -// label5: /*HIGHLIGHTS*/[|while|] (true) [|break|] label5; -// -// label7: while (true) continue label5; - - - -// === documentHighlights === -// === /getOccurrencesLoopBreakContinue5.ts === -// --- (line: 56) skipped --- -// } -// } -// -// label5: [|while|] (true) /*HIGHLIGHTS*/[|break|] label5; -// -// label7: while (true) continue label5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesModifiersNegatives1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesModifiersNegatives1.baseline.jsonc deleted file mode 100644 index 6bdbd543a4..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesModifiersNegatives1.baseline.jsonc +++ /dev/null @@ -1,813 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// /*HIGHLIGHTS*/[|export|] foo; -// declare bar; -// [|export|] declare foobar; -// declare [|export|] barfoo; -// -// constructor(export conFoo, -// declare conBar, -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// /*HIGHLIGHTS*/[|declare|] bar; -// export [|declare|] foobar; -// [|declare|] export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// [|export|] foo; -// declare bar; -// /*HIGHLIGHTS*/[|export|] declare foobar; -// declare [|export|] barfoo; -// -// constructor(export conFoo, -// declare conBar, -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// [|declare|] bar; -// export /*HIGHLIGHTS*/[|declare|] foobar; -// [|declare|] export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// [|declare|] bar; -// export [|declare|] foobar; -// /*HIGHLIGHTS*/[|declare|] export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// [|export|] foo; -// declare bar; -// [|export|] declare foobar; -// declare /*HIGHLIGHTS*/[|export|] barfoo; -// -// constructor(export conFoo, -// declare conBar, -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// [|export|] foo; -// declare bar; -// [|export|] declare foobar; -// declare [|export|] barfoo; -// -// constructor(/*HIGHLIGHTS*/[|export|] conFoo, -// declare conBar, -// [|export|] declare conFooBar, -// declare [|export|] conBarFoo, -// static sue, -// static [|export|] declare sueFooBar, -// static declare [|export|] sueBarFoo, -// declare static [|export|] barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// [|declare|] bar; -// export [|declare|] foobar; -// [|declare|] export barfoo; -// -// constructor(export conFoo, -// /*HIGHLIGHTS*/[|declare|] conBar, -// export [|declare|] conFooBar, -// [|declare|] export conBarFoo, -// static sue, -// static export [|declare|] sueFooBar, -// static [|declare|] export sueBarFoo, -// [|declare|] static export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// [|export|] foo; -// declare bar; -// [|export|] declare foobar; -// declare [|export|] barfoo; -// -// constructor([|export|] conFoo, -// declare conBar, -// /*HIGHLIGHTS*/[|export|] declare conFooBar, -// declare [|export|] conBarFoo, -// static sue, -// static [|export|] declare sueFooBar, -// static declare [|export|] sueBarFoo, -// declare static [|export|] barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// [|declare|] bar; -// export [|declare|] foobar; -// [|declare|] export barfoo; -// -// constructor(export conFoo, -// [|declare|] conBar, -// export /*HIGHLIGHTS*/[|declare|] conFooBar, -// [|declare|] export conBarFoo, -// static sue, -// static export [|declare|] sueFooBar, -// static [|declare|] export sueBarFoo, -// [|declare|] static export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// [|declare|] bar; -// export [|declare|] foobar; -// [|declare|] export barfoo; -// -// constructor(export conFoo, -// [|declare|] conBar, -// export [|declare|] conFooBar, -// /*HIGHLIGHTS*/[|declare|] export conBarFoo, -// static sue, -// static export [|declare|] sueFooBar, -// static [|declare|] export sueBarFoo, -// [|declare|] static export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// [|export|] foo; -// declare bar; -// [|export|] declare foobar; -// declare [|export|] barfoo; -// -// constructor([|export|] conFoo, -// declare conBar, -// [|export|] declare conFooBar, -// declare /*HIGHLIGHTS*/[|export|] conBarFoo, -// static sue, -// static [|export|] declare sueFooBar, -// static declare [|export|] sueBarFoo, -// declare static [|export|] barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 7) skipped --- -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// /*HIGHLIGHTS*/[|static|] sue, -// [|static|] export declare sueFooBar, -// [|static|] declare export sueBarFoo, -// declare [|static|] export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 7) skipped --- -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// [|static|] sue, -// /*HIGHLIGHTS*/[|static|] export declare sueFooBar, -// [|static|] declare export sueBarFoo, -// declare [|static|] export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// [|export|] foo; -// declare bar; -// [|export|] declare foobar; -// declare [|export|] barfoo; -// -// constructor([|export|] conFoo, -// declare conBar, -// [|export|] declare conFooBar, -// declare [|export|] conBarFoo, -// static sue, -// static /*HIGHLIGHTS*/[|export|] declare sueFooBar, -// static declare [|export|] sueBarFoo, -// declare static [|export|] barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// [|declare|] bar; -// export [|declare|] foobar; -// [|declare|] export barfoo; -// -// constructor(export conFoo, -// [|declare|] conBar, -// export [|declare|] conFooBar, -// [|declare|] export conBarFoo, -// static sue, -// static export /*HIGHLIGHTS*/[|declare|] sueFooBar, -// static [|declare|] export sueBarFoo, -// [|declare|] static export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 7) skipped --- -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// [|static|] sue, -// [|static|] export declare sueFooBar, -// /*HIGHLIGHTS*/[|static|] declare export sueBarFoo, -// declare [|static|] export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// [|declare|] bar; -// export [|declare|] foobar; -// [|declare|] export barfoo; -// -// constructor(export conFoo, -// [|declare|] conBar, -// export [|declare|] conFooBar, -// [|declare|] export conBarFoo, -// static sue, -// static export [|declare|] sueFooBar, -// static /*HIGHLIGHTS*/[|declare|] export sueBarFoo, -// [|declare|] static export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// [|export|] foo; -// declare bar; -// [|export|] declare foobar; -// declare [|export|] barfoo; -// -// constructor([|export|] conFoo, -// declare conBar, -// [|export|] declare conFooBar, -// declare [|export|] conBarFoo, -// static sue, -// static [|export|] declare sueFooBar, -// static declare /*HIGHLIGHTS*/[|export|] sueBarFoo, -// declare static [|export|] barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// [|declare|] bar; -// export [|declare|] foobar; -// [|declare|] export barfoo; -// -// constructor(export conFoo, -// [|declare|] conBar, -// export [|declare|] conFooBar, -// [|declare|] export conBarFoo, -// static sue, -// static export [|declare|] sueFooBar, -// static [|declare|] export sueBarFoo, -// /*HIGHLIGHTS*/[|declare|] static export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 7) skipped --- -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// [|static|] sue, -// [|static|] export declare sueFooBar, -// [|static|] declare export sueBarFoo, -// declare /*HIGHLIGHTS*/[|static|] export barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// class C { -// [|export|] foo; -// declare bar; -// [|export|] declare foobar; -// declare [|export|] barfoo; -// -// constructor([|export|] conFoo, -// declare conBar, -// [|export|] declare conFooBar, -// declare [|export|] conBarFoo, -// static sue, -// static [|export|] declare sueFooBar, -// static declare [|export|] sueBarFoo, -// declare static /*HIGHLIGHTS*/[|export|] barSueFoo) { -// } -// } -// -// // --- (line: 18) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 15) skipped --- -// } -// -// module m { -// /*HIGHLIGHTS*/static a; -// public b; -// private c; -// protected d; -// // --- (line: 23) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 16) skipped --- -// -// module m { -// static a; -// /*HIGHLIGHTS*/public b; -// private c; -// protected d; -// static public private protected e; -// // --- (line: 24) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 17) skipped --- -// module m { -// static a; -// public b; -// /*HIGHLIGHTS*/private c; -// protected d; -// static public private protected e; -// public static protected private f; -// // --- (line: 25) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 18) skipped --- -// static a; -// public b; -// private c; -// /*HIGHLIGHTS*/protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// // --- (line: 26) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 19) skipped --- -// public b; -// private c; -// protected d; -// /*HIGHLIGHTS*/static public private protected e; -// public static protected private f; -// protected static public g; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 19) skipped --- -// public b; -// private c; -// protected d; -// static /*HIGHLIGHTS*/public private protected e; -// public static protected private f; -// protected static public g; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 19) skipped --- -// public b; -// private c; -// protected d; -// static public /*HIGHLIGHTS*/private protected e; -// public static protected private f; -// protected static public g; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 19) skipped --- -// public b; -// private c; -// protected d; -// static public private /*HIGHLIGHTS*/protected e; -// public static protected private f; -// protected static public g; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 20) skipped --- -// private c; -// protected d; -// static public private protected e; -// /*HIGHLIGHTS*/public static protected private f; -// protected static public g; -// } -// static a; -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 20) skipped --- -// private c; -// protected d; -// static public private protected e; -// public /*HIGHLIGHTS*/static protected private f; -// protected static public g; -// } -// static a; -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 20) skipped --- -// private c; -// protected d; -// static public private protected e; -// public static /*HIGHLIGHTS*/protected private f; -// protected static public g; -// } -// static a; -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 20) skipped --- -// private c; -// protected d; -// static public private protected e; -// public static protected /*HIGHLIGHTS*/private f; -// protected static public g; -// } -// static a; -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 21) skipped --- -// protected d; -// static public private protected e; -// public static protected private f; -// /*HIGHLIGHTS*/protected static public g; -// } -// static a; -// public b; -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 21) skipped --- -// protected d; -// static public private protected e; -// public static protected private f; -// protected /*HIGHLIGHTS*/static public g; -// } -// static a; -// public b; -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 21) skipped --- -// protected d; -// static public private protected e; -// public static protected private f; -// protected static /*HIGHLIGHTS*/public g; -// } -// static a; -// public b; -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 23) skipped --- -// public static protected private f; -// protected static public g; -// } -// /*HIGHLIGHTS*/static a; -// public b; -// private c; -// protected d; -// // --- (line: 31) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 24) skipped --- -// protected static public g; -// } -// static a; -// /*HIGHLIGHTS*/public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 25) skipped --- -// } -// static a; -// public b; -// /*HIGHLIGHTS*/private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 26) skipped --- -// static a; -// public b; -// private c; -// /*HIGHLIGHTS*/protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 27) skipped --- -// public b; -// private c; -// protected d; -// /*HIGHLIGHTS*/static public private protected e; -// public static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 27) skipped --- -// public b; -// private c; -// protected d; -// static /*HIGHLIGHTS*/public private protected e; -// public static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 27) skipped --- -// public b; -// private c; -// protected d; -// static public /*HIGHLIGHTS*/private protected e; -// public static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 27) skipped --- -// public b; -// private c; -// protected d; -// static public private /*HIGHLIGHTS*/protected e; -// public static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 28) skipped --- -// private c; -// protected d; -// static public private protected e; -// /*HIGHLIGHTS*/public static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 28) skipped --- -// private c; -// protected d; -// static public private protected e; -// public /*HIGHLIGHTS*/static protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 28) skipped --- -// private c; -// protected d; -// static public private protected e; -// public static /*HIGHLIGHTS*/protected private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 28) skipped --- -// private c; -// protected d; -// static public private protected e; -// public static protected /*HIGHLIGHTS*/private f; -// protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 29) skipped --- -// protected d; -// static public private protected e; -// public static protected private f; -// /*HIGHLIGHTS*/protected static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 29) skipped --- -// protected d; -// static public private protected e; -// public static protected private f; -// protected /*HIGHLIGHTS*/static public g; - - - -// === documentHighlights === -// === /getOccurrencesModifiersNegatives1.ts === -// --- (line: 29) skipped --- -// protected d; -// static public private protected e; -// public static protected private f; -// protected static /*HIGHLIGHTS*/public g; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAssertion.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAssertion.baseline.jsonc deleted file mode 100644 index 8f74025002..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAssertion.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesNonStringImportAssertion.ts === -// import * as react from "react" assert { cache: /*HIGHLIGHTS*/0 }; -// react.Children; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAttributes.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAttributes.baseline.jsonc deleted file mode 100644 index 495cc04088..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAttributes.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesNonStringImportAttributes.ts === -// import * as react from "react" with { cache: /*HIGHLIGHTS*/0 }; -// react.Children; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction.baseline.jsonc deleted file mode 100644 index 3b02bd09b6..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesOfAnonymousFunction.ts === -// (function /*HIGHLIGHTS*/foo(): number { -// var x = [|foo|]; -// return 0; -// }) - - - -// === documentHighlights === -// === /getOccurrencesOfAnonymousFunction.ts === -// (function foo(): number { -// var x = /*HIGHLIGHTS*/[|foo|]; -// return 0; -// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction2.baseline.jsonc deleted file mode 100644 index 9a267b1549..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction2.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesOfAnonymousFunction2.ts === -// //global foo definition -// function foo() {} -// -// (function [|f/*HIGHLIGHTS*/oo|](): number { -// return [|foo|](); // local foo reference -// }) -// //global foo references -// foo(); -// var f = foo; - - - -// === documentHighlights === -// === /getOccurrencesOfAnonymousFunction2.ts === -// //global foo definition -// function [|foo|]() {} -// -// (function foo(): number { -// return foo(); // local foo reference -// }) -// //global foo references -// [|fo/*HIGHLIGHTS*/o|](); -// var f = [|foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfDecorators.baseline.jsonc deleted file mode 100644 index 39f4a722e1..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfDecorators.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === documentHighlights === -// === /b.ts === -// @/*HIGHLIGHTS*/[|decorator|] -// class C { -// @[|decorator|] -// method() {} -// } -// function [|decorator|](target) { -// return target; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfUndefinedSymbol.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfUndefinedSymbol.baseline.jsonc deleted file mode 100644 index 046ff4e22a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfUndefinedSymbol.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesOfUndefinedSymbol.ts === -// --- (line: 7) skipped --- -// -// class cls3 { -// property zeFunc() { -// super.ceFun/*HIGHLIGHTS*/c(); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate1.baseline.jsonc deleted file mode 100644 index 3617a1c9ba..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate1.baseline.jsonc +++ /dev/null @@ -1,195 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesPrivate1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// /*HIGHLIGHTS*/[|private|] priv1; -// [|private|] priv2; -// protected prot1; -// protected prot2; -// -// public public; -// [|private|] private; -// protected protected; -// -// public constructor(public a, [|private|] b, protected c, public d, [|private|] e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// [|private|] static statPriv; -// protected static statProt; -// } -// -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPrivate1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// [|private|] priv1; -// /*HIGHLIGHTS*/[|private|] priv2; -// protected prot1; -// protected prot2; -// -// public public; -// [|private|] private; -// protected protected; -// -// public constructor(public a, [|private|] b, protected c, public d, [|private|] e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// [|private|] static statPriv; -// protected static statProt; -// } -// -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPrivate1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// [|private|] priv1; -// [|private|] priv2; -// protected prot1; -// protected prot2; -// -// public public; -// /*HIGHLIGHTS*/[|private|] private; -// protected protected; -// -// public constructor(public a, [|private|] b, protected c, public d, [|private|] e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// [|private|] static statPriv; -// protected static statProt; -// } -// -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPrivate1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// [|private|] priv1; -// [|private|] priv2; -// protected prot1; -// protected prot2; -// -// public public; -// [|private|] private; -// protected protected; -// -// public constructor(public a, /*HIGHLIGHTS*/[|private|] b, protected c, public d, [|private|] e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// [|private|] static statPriv; -// protected static statProt; -// } -// -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPrivate1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// [|private|] priv1; -// [|private|] priv2; -// protected prot1; -// protected prot2; -// -// public public; -// [|private|] private; -// protected protected; -// -// public constructor(public a, [|private|] b, protected c, public d, /*HIGHLIGHTS*/[|private|] e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// [|private|] static statPriv; -// protected static statProt; -// } -// -// // --- (line: 28) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPrivate1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// [|private|] priv1; -// [|private|] priv2; -// protected prot1; -// protected prot2; -// -// public public; -// [|private|] private; -// protected protected; -// -// public constructor(public a, [|private|] b, protected c, public d, [|private|] e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// /*HIGHLIGHTS*/[|private|] static statPriv; -// protected static statProt; -// } -// -// // --- (line: 28) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate2.baseline.jsonc deleted file mode 100644 index f60965a862..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate2.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesPrivate2.ts === -// --- (line: 37) skipped --- -// -// export class C2 { -// public pub1; -// /*HIGHLIGHTS*/[|private|] priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, [|private|] private) { -// public = private = protected; -// } -// } -// // --- (line: 48) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPrivate2.ts === -// --- (line: 37) skipped --- -// -// export class C2 { -// public pub1; -// [|private|] priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, /*HIGHLIGHTS*/[|private|] private) { -// public = private = protected; -// } -// } -// // --- (line: 48) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPropertyInAliasedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPropertyInAliasedInterface.baseline.jsonc deleted file mode 100644 index d0cba623f7..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPropertyInAliasedInterface.baseline.jsonc +++ /dev/null @@ -1,85 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesPropertyInAliasedInterface.ts === -// module m { -// export interface Foo { -// /*HIGHLIGHTS*/[|abc|] -// } -// } -// -// import Bar = m.Foo; -// -// export interface I extends Bar { -// [|abc|] -// } -// -// class C implements Bar { -// [|abc|] -// } -// -// (new C()).[|abc|]; - - - -// === documentHighlights === -// === /getOccurrencesPropertyInAliasedInterface.ts === -// module m { -// export interface Foo { -// [|abc|] -// } -// } -// -// import Bar = m.Foo; -// -// export interface I extends Bar { -// /*HIGHLIGHTS*/[|abc|] -// } -// -// class C implements Bar { -// [|abc|] -// } -// -// (new C()).[|abc|]; - - - -// === documentHighlights === -// === /getOccurrencesPropertyInAliasedInterface.ts === -// module m { -// export interface Foo { -// [|abc|] -// } -// } -// -// import Bar = m.Foo; -// -// export interface I extends Bar { -// [|abc|] -// } -// -// class C implements Bar { -// /*HIGHLIGHTS*/[|abc|] -// } -// -// (new C()).[|abc|]; - - - -// === documentHighlights === -// === /getOccurrencesPropertyInAliasedInterface.ts === -// module m { -// export interface Foo { -// [|abc|] -// } -// } -// -// import Bar = m.Foo; -// -// export interface I extends Bar { -// [|abc|] -// } -// -// class C implements Bar { -// [|abc|] -// } -// -// (new C())./*HIGHLIGHTS*/[|abc|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected1.baseline.jsonc deleted file mode 100644 index 8490faf1d0..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected1.baseline.jsonc +++ /dev/null @@ -1,183 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesProtected1.ts === -// --- (line: 3) skipped --- -// public pub2; -// private priv1; -// private priv2; -// /*HIGHLIGHTS*/[|protected|] prot1; -// [|protected|] prot2; -// -// public public; -// private private; -// [|protected|] protected; -// -// public constructor(public a, private b, [|protected|] c, public d, private e, [|protected|] f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// // --- (line: 18) skipped --- - -// --- (line: 21) skipped --- -// -// public static statPub; -// private static statPriv; -// [|protected|] static statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesProtected1.ts === -// --- (line: 3) skipped --- -// public pub2; -// private priv1; -// private priv2; -// [|protected|] prot1; -// /*HIGHLIGHTS*/[|protected|] prot2; -// -// public public; -// private private; -// [|protected|] protected; -// -// public constructor(public a, private b, [|protected|] c, public d, private e, [|protected|] f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// // --- (line: 18) skipped --- - -// --- (line: 21) skipped --- -// -// public static statPub; -// private static statPriv; -// [|protected|] static statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesProtected1.ts === -// --- (line: 3) skipped --- -// public pub2; -// private priv1; -// private priv2; -// [|protected|] prot1; -// [|protected|] prot2; -// -// public public; -// private private; -// /*HIGHLIGHTS*/[|protected|] protected; -// -// public constructor(public a, private b, [|protected|] c, public d, private e, [|protected|] f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// // --- (line: 18) skipped --- - -// --- (line: 21) skipped --- -// -// public static statPub; -// private static statPriv; -// [|protected|] static statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesProtected1.ts === -// --- (line: 3) skipped --- -// public pub2; -// private priv1; -// private priv2; -// [|protected|] prot1; -// [|protected|] prot2; -// -// public public; -// private private; -// [|protected|] protected; -// -// public constructor(public a, private b, /*HIGHLIGHTS*/[|protected|] c, public d, private e, [|protected|] f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// // --- (line: 18) skipped --- - -// --- (line: 21) skipped --- -// -// public static statPub; -// private static statPriv; -// [|protected|] static statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesProtected1.ts === -// --- (line: 3) skipped --- -// public pub2; -// private priv1; -// private priv2; -// [|protected|] prot1; -// [|protected|] prot2; -// -// public public; -// private private; -// [|protected|] protected; -// -// public constructor(public a, private b, [|protected|] c, public d, private e, /*HIGHLIGHTS*/[|protected|] f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// // --- (line: 18) skipped --- - -// --- (line: 21) skipped --- -// -// public static statPub; -// private static statPriv; -// [|protected|] static statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesProtected1.ts === -// --- (line: 3) skipped --- -// public pub2; -// private priv1; -// private priv2; -// [|protected|] prot1; -// [|protected|] prot2; -// -// public public; -// private private; -// [|protected|] protected; -// -// public constructor(public a, private b, [|protected|] c, public d, private e, [|protected|] f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// // --- (line: 18) skipped --- - -// --- (line: 21) skipped --- -// -// public static statPub; -// private static statPriv; -// /*HIGHLIGHTS*/[|protected|] static statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected2.baseline.jsonc deleted file mode 100644 index 70dd56fa8a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected2.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesProtected2.ts === -// --- (line: 38) skipped --- -// export class C2 { -// public pub1; -// private priv1; -// /*HIGHLIGHTS*/[|protected|] prot1; -// -// [|protected|] constructor(public public, [|protected|] protected, private private) { -// public = private = protected; -// } -// } -// // --- (line: 48) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesProtected2.ts === -// --- (line: 38) skipped --- -// export class C2 { -// public pub1; -// private priv1; -// [|protected|] prot1; -// -// /*HIGHLIGHTS*/[|protected|] constructor(public public, [|protected|] protected, private private) { -// public = private = protected; -// } -// } -// // --- (line: 48) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesProtected2.ts === -// --- (line: 38) skipped --- -// export class C2 { -// public pub1; -// private priv1; -// [|protected|] prot1; -// -// [|protected|] constructor(public public, /*HIGHLIGHTS*/[|protected|] protected, private private) { -// public = private = protected; -// } -// } -// // --- (line: 48) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic1.baseline.jsonc deleted file mode 100644 index f0245158d1..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic1.baseline.jsonc +++ /dev/null @@ -1,285 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// /*HIGHLIGHTS*/[|public|] pub1; -// [|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// [|public|] public; -// private private; -// protected protected; -// -// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// [|public|] get x() { return 10; } -// [|public|] set x(value) { } -// -// [|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// [|public|] pub1; -// /*HIGHLIGHTS*/[|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// [|public|] public; -// private private; -// protected protected; -// -// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// [|public|] get x() { return 10; } -// [|public|] set x(value) { } -// -// [|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// [|public|] pub1; -// [|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// /*HIGHLIGHTS*/[|public|] public; -// private private; -// protected protected; -// -// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// [|public|] get x() { return 10; } -// [|public|] set x(value) { } -// -// [|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// [|public|] pub1; -// [|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// [|public|] public; -// private private; -// protected protected; -// -// /*HIGHLIGHTS*/[|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// [|public|] get x() { return 10; } -// [|public|] set x(value) { } -// -// [|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// [|public|] pub1; -// [|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// [|public|] public; -// private private; -// protected protected; -// -// [|public|] constructor(/*HIGHLIGHTS*/[|public|] a, private b, protected c, [|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// [|public|] get x() { return 10; } -// [|public|] set x(value) { } -// -// [|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// [|public|] pub1; -// [|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// [|public|] public; -// private private; -// protected protected; -// -// [|public|] constructor([|public|] a, private b, protected c, /*HIGHLIGHTS*/[|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// [|public|] get x() { return 10; } -// [|public|] set x(value) { } -// -// [|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// [|public|] pub1; -// [|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// [|public|] public; -// private private; -// protected protected; -// -// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// /*HIGHLIGHTS*/[|public|] get x() { return 10; } -// [|public|] set x(value) { } -// -// [|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// [|public|] pub1; -// [|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// [|public|] public; -// private private; -// protected protected; -// -// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// [|public|] get x() { return 10; } -// /*HIGHLIGHTS*/[|public|] set x(value) { } -// -// [|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic1.ts === -// module m { -// export class C1 { -// [|public|] pub1; -// [|public|] pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// [|public|] public; -// private private; -// protected protected; -// -// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// [|public|] get x() { return 10; } -// [|public|] set x(value) { } -// -// /*HIGHLIGHTS*/[|public|] static statPub; -// private static statPriv; -// protected static statProt; -// } -// // --- (line: 27) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic2.baseline.jsonc deleted file mode 100644 index 368425ff54..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic2.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesPublic2.ts === -// --- (line: 36) skipped --- -// declare var foo; -// -// export class C2 { -// /*HIGHLIGHTS*/[|public|] pub1; -// private priv1; -// protected prot1; -// -// protected constructor([|public|] public, protected protected, private private) { -// public = private = protected; -// } -// } -// // --- (line: 48) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesPublic2.ts === -// --- (line: 36) skipped --- -// declare var foo; -// -// export class C2 { -// [|public|] pub1; -// private priv1; -// protected prot1; -// -// protected constructor(/*HIGHLIGHTS*/[|public|] public, protected protected, private private) { -// public = private = protected; -// } -// } -// // --- (line: 48) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly1.baseline.jsonc deleted file mode 100644 index 55af9fc7a9..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly1.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesReadonly1.ts === -// interface I { -// /*HIGHLIGHTS*/[|readonly|] prop: string; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly2.baseline.jsonc deleted file mode 100644 index e627f6211b..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly2.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesReadonly2.ts === -// type T = { -// /*HIGHLIGHTS*/[|readonly|] prop: string; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly3.baseline.jsonc deleted file mode 100644 index aa353f0e86..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly3.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesReadonly3.ts === -// class C { -// /*HIGHLIGHTS*/[|readonly|] prop: readonly string[] = []; -// constructor([|readonly|] prop2: string) { -// class D { -// readonly prop: string = ""; -// } -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesReadonly3.ts === -// class C { -// [|readonly|] prop: readonly string[] = []; -// constructor(/*HIGHLIGHTS*/[|readonly|] prop2: string) { -// class D { -// readonly prop: string = ""; -// } -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesReadonly3.ts === -// class C { -// readonly prop: /*HIGHLIGHTS*/[|readonly|] string[] = []; -// constructor(readonly prop2: string) { -// class D { -// readonly prop: string = ""; -// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn.baseline.jsonc deleted file mode 100644 index e1e04ea209..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn.baseline.jsonc +++ /dev/null @@ -1,57 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesReturn.ts === -// function f(a: number) { -// if (a > 0) { -// /*HIGHLIGHTS*/[|return|] (function () { -// return; -// return; -// return; -// // --- (line: 7) skipped --- - -// --- (line: 12) skipped --- -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// [|return|]; -// [|return|] true; -// } - - - -// === documentHighlights === -// === /getOccurrencesReturn.ts === -// function f(a: number) { -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 7) skipped --- - -// --- (line: 12) skipped --- -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// /*HIGHLIGHTS*/[|return|]; -// [|return|] true; -// } - - - -// === documentHighlights === -// === /getOccurrencesReturn.ts === -// function f(a: number) { -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 7) skipped --- - -// --- (line: 12) skipped --- -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// [|return|]; -// /*HIGHLIGHTS*/[|return|] true; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn2.baseline.jsonc deleted file mode 100644 index 6a7fa7bfdd..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn2.baseline.jsonc +++ /dev/null @@ -1,69 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesReturn2.ts === -// function f(a: number) { -// if (a > 0) { -// return (function () { -// /*HIGHLIGHTS*/[|return|]; -// [|return|]; -// [|return|]; -// -// while (false) { -// [|return|] true; -// } -// })() || true; -// } -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesReturn2.ts === -// function f(a: number) { -// if (a > 0) { -// return (function () { -// [|return|]; -// /*HIGHLIGHTS*/[|return|]; -// [|return|]; -// -// while (false) { -// [|return|] true; -// } -// })() || true; -// } -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesReturn2.ts === -// function f(a: number) { -// if (a > 0) { -// return (function () { -// [|return|]; -// [|return|]; -// /*HIGHLIGHTS*/[|return|]; -// -// while (false) { -// [|return|] true; -// } -// })() || true; -// } -// // --- (line: 13) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesReturn2.ts === -// function f(a: number) { -// if (a > 0) { -// return (function () { -// [|return|]; -// [|return|]; -// [|return|]; -// -// while (false) { -// /*HIGHLIGHTS*/[|return|] true; -// } -// })() || true; -// } -// // --- (line: 13) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn3.baseline.jsonc deleted file mode 100644 index c7c2ed6336..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn3.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesReturn3.ts === -// --- (line: 10) skipped --- -// })() || true; -// } -// -// var unusued = [1, 2, 3, 4].map(x => { /*HIGHLIGHTS*/[|return|] 4 }) -// -// return; -// return true; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet.baseline.jsonc deleted file mode 100644 index f8e611291b..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSetAndGet.ts === -// class Foo { -// /*HIGHLIGHTS*/[|set|] bar(b: any) { -// } -// -// public [|get|] bar(): any { -// return undefined; -// } -// -// // --- (line: 9) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSetAndGet.ts === -// class Foo { -// [|set|] bar(b: any) { -// } -// -// public /*HIGHLIGHTS*/[|get|] bar(): any { -// return undefined; -// } -// -// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet2.baseline.jsonc deleted file mode 100644 index 99684a437f..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet2.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSetAndGet2.ts === -// --- (line: 5) skipped --- -// return undefined; -// } -// -// public /*HIGHLIGHTS*/[|set|] set(s: any) { -// } -// -// public [|get|] set(): any { -// return undefined; -// } -// -// // --- (line: 16) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSetAndGet2.ts === -// --- (line: 5) skipped --- -// return undefined; -// } -// -// public [|set|] set(s: any) { -// } -// -// public /*HIGHLIGHTS*/[|get|] set(): any { -// return undefined; -// } -// -// // --- (line: 16) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet3.baseline.jsonc deleted file mode 100644 index c6fd4fe2b8..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet3.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSetAndGet3.ts === -// --- (line: 12) skipped --- -// return undefined; -// } -// -// public /*HIGHLIGHTS*/[|set|] get(g: any) { -// } -// -// public [|get|] get(): any { -// return undefined; -// } -// } - - - -// === documentHighlights === -// === /getOccurrencesSetAndGet3.ts === -// --- (line: 12) skipped --- -// return undefined; -// } -// -// public [|set|] get(g: any) { -// } -// -// public /*HIGHLIGHTS*/[|get|] get(): any { -// return undefined; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStatic1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStatic1.baseline.jsonc deleted file mode 100644 index 669bccd3c2..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStatic1.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesStatic1.ts === -// --- (line: 19) skipped --- -// public get x() { return 10; } -// public set x(value) { } -// -// public /*HIGHLIGHTS*/[|static|] statPub; -// private [|static|] statPriv; -// protected [|static|] statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesStatic1.ts === -// --- (line: 19) skipped --- -// public get x() { return 10; } -// public set x(value) { } -// -// public [|static|] statPub; -// private /*HIGHLIGHTS*/[|static|] statPriv; -// protected [|static|] statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesStatic1.ts === -// --- (line: 19) skipped --- -// public get x() { return 10; } -// public set x(value) { } -// -// public [|static|] statPub; -// private [|static|] statPriv; -// protected /*HIGHLIGHTS*/[|static|] statProt; -// } -// -// export interface I1 { -// // --- (line: 29) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiteralTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiteralTypes.baseline.jsonc deleted file mode 100644 index 8596a66052..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiteralTypes.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesStringLiteralTypes.ts === -// function foo(a: "/*HIGHLIGHTS*/option 1") { } -// foo("option 1"); - - - -// === documentHighlights === -// === /getOccurrencesStringLiteralTypes.ts === -// function foo(a: "option 1") { } -// foo("/*HIGHLIGHTS*/option 1"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiterals.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiterals.baseline.jsonc deleted file mode 100644 index e50c26727d..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiterals.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesStringLiterals.ts === -// var x = "/*HIGHLIGHTS*/string"; -// function f(a = "initial value") { } - - - -// === documentHighlights === -// === /getOccurrencesStringLiterals.ts === -// var x = "string"; -// function f(a = "/*HIGHLIGHTS*/initial value") { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper.baseline.jsonc deleted file mode 100644 index a89f8f9810..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper.baseline.jsonc +++ /dev/null @@ -1,235 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSuper.ts === -// --- (line: 7) skipped --- -// } -// -// class SubType extends SuperType { -// public prop1 = /*HIGHLIGHTS*/[|super|].superMethod; -// private prop2 = [|super|].superMethod; -// -// constructor() { -// [|super|](); -// } -// -// public method1() { -// return [|super|].superMethod(); -// } -// -// private method2() { -// return [|super|].superMethod(); -// } -// -// public method3() { -// var x = () => [|super|].superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// [|super|].superMethod(); -// } -// } -// -// // --- (line: 35) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper.ts === -// --- (line: 7) skipped --- -// } -// -// class SubType extends SuperType { -// public prop1 = [|super|].superMethod; -// private prop2 = /*HIGHLIGHTS*/[|super|].superMethod; -// -// constructor() { -// [|super|](); -// } -// -// public method1() { -// return [|super|].superMethod(); -// } -// -// private method2() { -// return [|super|].superMethod(); -// } -// -// public method3() { -// var x = () => [|super|].superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// [|super|].superMethod(); -// } -// } -// -// // --- (line: 35) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper.ts === -// --- (line: 7) skipped --- -// } -// -// class SubType extends SuperType { -// public prop1 = [|super|].superMethod; -// private prop2 = [|super|].superMethod; -// -// constructor() { -// /*HIGHLIGHTS*/[|super|](); -// } -// -// public method1() { -// return [|super|].superMethod(); -// } -// -// private method2() { -// return [|super|].superMethod(); -// } -// -// public method3() { -// var x = () => [|super|].superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// [|super|].superMethod(); -// } -// } -// -// // --- (line: 35) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper.ts === -// --- (line: 7) skipped --- -// } -// -// class SubType extends SuperType { -// public prop1 = [|super|].superMethod; -// private prop2 = [|super|].superMethod; -// -// constructor() { -// [|super|](); -// } -// -// public method1() { -// return /*HIGHLIGHTS*/[|super|].superMethod(); -// } -// -// private method2() { -// return [|super|].superMethod(); -// } -// -// public method3() { -// var x = () => [|super|].superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// [|super|].superMethod(); -// } -// } -// -// // --- (line: 35) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper.ts === -// --- (line: 7) skipped --- -// } -// -// class SubType extends SuperType { -// public prop1 = [|super|].superMethod; -// private prop2 = [|super|].superMethod; -// -// constructor() { -// [|super|](); -// } -// -// public method1() { -// return [|super|].superMethod(); -// } -// -// private method2() { -// return /*HIGHLIGHTS*/[|super|].superMethod(); -// } -// -// public method3() { -// var x = () => [|super|].superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// [|super|].superMethod(); -// } -// } -// -// // --- (line: 35) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper.ts === -// --- (line: 7) skipped --- -// } -// -// class SubType extends SuperType { -// public prop1 = [|super|].superMethod; -// private prop2 = [|super|].superMethod; -// -// constructor() { -// [|super|](); -// } -// -// public method1() { -// return [|super|].superMethod(); -// } -// -// private method2() { -// return [|super|].superMethod(); -// } -// -// public method3() { -// var x = () => /*HIGHLIGHTS*/[|super|].superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// [|super|].superMethod(); -// } -// } -// -// // --- (line: 35) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper.ts === -// --- (line: 7) skipped --- -// } -// -// class SubType extends SuperType { -// public prop1 = [|super|].superMethod; -// private prop2 = [|super|].superMethod; -// -// constructor() { -// [|super|](); -// } -// -// public method1() { -// return [|super|].superMethod(); -// } -// -// private method2() { -// return [|super|].superMethod(); -// } -// -// public method3() { -// var x = () => [|super|].superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// /*HIGHLIGHTS*/[|super|].superMethod(); -// } -// } -// -// // --- (line: 35) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper2.baseline.jsonc deleted file mode 100644 index 199a3e90e5..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper2.baseline.jsonc +++ /dev/null @@ -1,60 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSuper2.ts === -// --- (line: 32) skipped --- -// } -// -// // Bad but still gets highlighted. -// public static statProp1 = /*HIGHLIGHTS*/[|super|].superStaticMethod; -// -// public static staticMethod1() { -// return [|super|].superStaticMethod(); -// } -// -// private static staticMethod2() { -// return [|super|].superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// // --- (line: 47) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper2.ts === -// --- (line: 32) skipped --- -// } -// -// // Bad but still gets highlighted. -// public static statProp1 = [|super|].superStaticMethod; -// -// public static staticMethod1() { -// return /*HIGHLIGHTS*/[|super|].superStaticMethod(); -// } -// -// private static staticMethod2() { -// return [|super|].superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// // --- (line: 47) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper2.ts === -// --- (line: 32) skipped --- -// } -// -// // Bad but still gets highlighted. -// public static statProp1 = [|super|].superStaticMethod; -// -// public static staticMethod1() { -// return [|super|].superStaticMethod(); -// } -// -// private static staticMethod2() { -// return /*HIGHLIGHTS*/[|super|].superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// // --- (line: 47) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper3.baseline.jsonc deleted file mode 100644 index 527a1d8087..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper3.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSuper3.ts === -// let x = { -// a() { -// return /*HIGHLIGHTS*/[|super|].b(); -// }, -// b() { -// return [|super|].a(); -// }, -// c: function () { -// return super.a(); -// // --- (line: 10) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper3.ts === -// let x = { -// a() { -// return [|super|].b(); -// }, -// b() { -// return /*HIGHLIGHTS*/[|super|].a(); -// }, -// c: function () { -// return super.a(); -// // --- (line: 10) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuper3.ts === -// --- (line: 5) skipped --- -// return super.a(); -// }, -// c: function () { -// return /*HIGHLIGHTS*/super.a(); -// } -// d: () => super.b(); -// } - - - -// === documentHighlights === -// === /getOccurrencesSuper3.ts === -// --- (line: 7) skipped --- -// c: function () { -// return super.a(); -// } -// d: () => /*HIGHLIGHTS*/super.b(); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuperNegatives.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuperNegatives.baseline.jsonc deleted file mode 100644 index c1812ce56f..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuperNegatives.baseline.jsonc +++ /dev/null @@ -1,61 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSuperNegatives.ts === -// function f(x = /*HIGHLIGHTS*/super) { -// super; -// } -// -// // --- (line: 5) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuperNegatives.ts === -// function f(x = super) { -// /*HIGHLIGHTS*/super; -// } -// -// module M { -// // --- (line: 6) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuperNegatives.ts === -// function f(x = super) { -// super; -// } -// -// module M { -// /*HIGHLIGHTS*/super; -// function f(x = super) { -// super; -// } -// // --- (line: 10) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuperNegatives.ts === -// --- (line: 3) skipped --- -// -// module M { -// super; -// function f(x = /*HIGHLIGHTS*/super) { -// super; -// } -// -// // --- (line: 11) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSuperNegatives.ts === -// --- (line: 4) skipped --- -// module M { -// super; -// function f(x = super) { -// /*HIGHLIGHTS*/super; -// } -// -// class A { -// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault.baseline.jsonc deleted file mode 100644 index d71e3b477f..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault.baseline.jsonc +++ /dev/null @@ -1,195 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// /*HIGHLIGHTS*/[|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 4: -// [|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// [|case|] 0xBEEF: -// [|default|]: -// [|break|]; -// [|case|] 16: -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// [|switch|] (10) { -// /*HIGHLIGHTS*/[|case|] 1: -// [|case|] 2: -// [|case|] 4: -// [|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// [|case|] 0xBEEF: -// [|default|]: -// [|break|]; -// [|case|] 16: -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// [|switch|] (10) { -// [|case|] 1: -// /*HIGHLIGHTS*/[|case|] 2: -// [|case|] 4: -// [|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// [|case|] 0xBEEF: -// [|default|]: -// [|break|]; -// [|case|] 16: -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// /*HIGHLIGHTS*/[|case|] 4: -// [|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// [|case|] 0xBEEF: -// [|default|]: -// [|break|]; -// [|case|] 16: -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 4: -// /*HIGHLIGHTS*/[|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// [|case|] 0xBEEF: -// [|default|]: -// [|break|]; -// [|case|] 16: -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 4: -// [|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// /*HIGHLIGHTS*/[|case|] 0xBEEF: -// [|default|]: -// [|break|]; -// [|case|] 16: -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 4: -// [|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// [|case|] 0xBEEF: -// /*HIGHLIGHTS*/[|default|]: -// [|break|]; -// [|case|] 16: -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 4: -// [|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// [|case|] 0xBEEF: -// [|default|]: -// /*HIGHLIGHTS*/[|break|]; -// [|case|] 16: -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault.ts === -// [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 4: -// [|case|] 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } -// [|case|] 0xBEEF: -// [|default|]: -// [|break|]; -// /*HIGHLIGHTS*/[|case|] 16: -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault2.baseline.jsonc deleted file mode 100644 index 2f45fd199e..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault2.baseline.jsonc +++ /dev/null @@ -1,117 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault2.ts === -// switch (10) { -// case 1: -// case 2: -// case 4: -// case 8: -// foo: /*HIGHLIGHTS*/[|switch|] (20) { -// [|case|] 1: -// [|case|] 2: -// [|break|]; -// [|default|]: -// [|break|] foo; -// } -// case 0xBEEF: -// default: -// // --- (line: 15) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault2.ts === -// switch (10) { -// case 1: -// case 2: -// case 4: -// case 8: -// foo: [|switch|] (20) { -// /*HIGHLIGHTS*/[|case|] 1: -// [|case|] 2: -// [|break|]; -// [|default|]: -// [|break|] foo; -// } -// case 0xBEEF: -// default: -// // --- (line: 15) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault2.ts === -// switch (10) { -// case 1: -// case 2: -// case 4: -// case 8: -// foo: [|switch|] (20) { -// [|case|] 1: -// /*HIGHLIGHTS*/[|case|] 2: -// [|break|]; -// [|default|]: -// [|break|] foo; -// } -// case 0xBEEF: -// default: -// // --- (line: 15) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault2.ts === -// switch (10) { -// case 1: -// case 2: -// case 4: -// case 8: -// foo: [|switch|] (20) { -// [|case|] 1: -// [|case|] 2: -// /*HIGHLIGHTS*/[|break|]; -// [|default|]: -// [|break|] foo; -// } -// case 0xBEEF: -// default: -// // --- (line: 15) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault2.ts === -// switch (10) { -// case 1: -// case 2: -// case 4: -// case 8: -// foo: [|switch|] (20) { -// [|case|] 1: -// [|case|] 2: -// [|break|]; -// /*HIGHLIGHTS*/[|default|]: -// [|break|] foo; -// } -// case 0xBEEF: -// default: -// // --- (line: 15) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault2.ts === -// switch (10) { -// case 1: -// case 2: -// case 4: -// case 8: -// foo: [|switch|] (20) { -// [|case|] 1: -// [|case|] 2: -// [|break|]; -// [|default|]: -// /*HIGHLIGHTS*/[|break|] foo; -// } -// case 0xBEEF: -// default: -// // --- (line: 15) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault3.baseline.jsonc deleted file mode 100644 index 43f829ea61..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault3.baseline.jsonc +++ /dev/null @@ -1,157 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault3.ts === -// foo: /*HIGHLIGHTS*/[|switch|] (1) { -// [|case|] 1: -// [|case|] 2: -// [|break|]; -// [|case|] 3: -// switch (2) { -// case 1: -// [|break|] foo; -// continue; // invalid -// default: -// break; -// } -// [|default|]: -// [|break|]; -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault3.ts === -// foo: [|switch|] (1) { -// /*HIGHLIGHTS*/[|case|] 1: -// [|case|] 2: -// [|break|]; -// [|case|] 3: -// switch (2) { -// case 1: -// [|break|] foo; -// continue; // invalid -// default: -// break; -// } -// [|default|]: -// [|break|]; -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault3.ts === -// foo: [|switch|] (1) { -// [|case|] 1: -// /*HIGHLIGHTS*/[|case|] 2: -// [|break|]; -// [|case|] 3: -// switch (2) { -// case 1: -// [|break|] foo; -// continue; // invalid -// default: -// break; -// } -// [|default|]: -// [|break|]; -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault3.ts === -// foo: [|switch|] (1) { -// [|case|] 1: -// [|case|] 2: -// /*HIGHLIGHTS*/[|break|]; -// [|case|] 3: -// switch (2) { -// case 1: -// [|break|] foo; -// continue; // invalid -// default: -// break; -// } -// [|default|]: -// [|break|]; -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault3.ts === -// foo: [|switch|] (1) { -// [|case|] 1: -// [|case|] 2: -// [|break|]; -// /*HIGHLIGHTS*/[|case|] 3: -// switch (2) { -// case 1: -// [|break|] foo; -// continue; // invalid -// default: -// break; -// } -// [|default|]: -// [|break|]; -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault3.ts === -// foo: [|switch|] (1) { -// [|case|] 1: -// [|case|] 2: -// [|break|]; -// [|case|] 3: -// switch (2) { -// case 1: -// /*HIGHLIGHTS*/[|break|] foo; -// continue; // invalid -// default: -// break; -// } -// [|default|]: -// [|break|]; -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault3.ts === -// foo: [|switch|] (1) { -// [|case|] 1: -// [|case|] 2: -// [|break|]; -// [|case|] 3: -// switch (2) { -// case 1: -// [|break|] foo; -// continue; // invalid -// default: -// break; -// } -// /*HIGHLIGHTS*/[|default|]: -// [|break|]; -// } - - - -// === documentHighlights === -// === /getOccurrencesSwitchCaseDefault3.ts === -// foo: [|switch|] (1) { -// [|case|] 1: -// [|case|] 2: -// [|break|]; -// [|case|] 3: -// switch (2) { -// case 1: -// [|break|] foo; -// continue; // invalid -// default: -// break; -// } -// [|default|]: -// /*HIGHLIGHTS*/[|break|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis.baseline.jsonc deleted file mode 100644 index 2418ead776..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThis.ts === -// /*HIGHLIGHTS*/[|this|]; -// [|this|]; -// -// function f() { -// this; -// // --- (line: 6) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis.ts === -// [|this|]; -// /*HIGHLIGHTS*/[|this|]; -// -// function f() { -// this; -// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis2.baseline.jsonc deleted file mode 100644 index 76d9c05eb4..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis2.baseline.jsonc +++ /dev/null @@ -1,129 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThis2.ts === -// this; -// this; -// -// function f() { -// /*HIGHLIGHTS*/[|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 17) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis2.ts === -// this; -// this; -// -// function f() { -// [|this|]; -// /*HIGHLIGHTS*/[|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 17) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis2.ts === -// this; -// this; -// -// function f() { -// [|this|]; -// [|this|]; -// () => /*HIGHLIGHTS*/[|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 17) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis2.ts === -// this; -// this; -// -// function f() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if (/*HIGHLIGHTS*/[|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 17) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis2.ts === -// this; -// this; -// -// function f() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// /*HIGHLIGHTS*/[|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 17) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis2.ts === -// this; -// this; -// -// function f() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// /*HIGHLIGHTS*/[|this|].this; -// } -// } -// function inside() { -// // --- (line: 17) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis3.baseline.jsonc deleted file mode 100644 index 8beeaf0051..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis3.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThis3.ts === -// --- (line: 13) skipped --- -// } -// } -// function inside() { -// /*HIGHLIGHTS*/[|this|]; -// (function (_) { -// this; -// })([|this|]); -// } -// } -// -// // --- (line: 24) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis3.ts === -// --- (line: 13) skipped --- -// } -// } -// function inside() { -// [|this|]; -// (function (_) { -// this; -// })(/*HIGHLIGHTS*/[|this|]); -// } -// } -// -// // --- (line: 24) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis4.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis4.baseline.jsonc deleted file mode 100644 index 71a4333334..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis4.baseline.jsonc +++ /dev/null @@ -1,556 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = /*HIGHLIGHTS*/[|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// /*HIGHLIGHTS*/[|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// /*HIGHLIGHTS*/[|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => /*HIGHLIGHTS*/[|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if (/*HIGHLIGHTS*/[|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// /*HIGHLIGHTS*/[|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// /*HIGHLIGHTS*/[|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// /*HIGHLIGHTS*/[|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// /*HIGHLIGHTS*/[|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => /*HIGHLIGHTS*/[|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if (/*HIGHLIGHTS*/[|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// /*HIGHLIGHTS*/[|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis4.ts === -// --- (line: 43) skipped --- -// } -// -// class A { -// public b = [|this|].method1; -// -// public method1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 62) skipped --- - -// --- (line: 66) skipped --- -// } -// -// private method2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// /*HIGHLIGHTS*/[|this|].this; -// } -// } -// function inside() { -// // --- (line: 82) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis5.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis5.baseline.jsonc deleted file mode 100644 index 12d80173a7..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis5.baseline.jsonc +++ /dev/null @@ -1,556 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = /*HIGHLIGHTS*/[|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// /*HIGHLIGHTS*/[|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// /*HIGHLIGHTS*/[|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => /*HIGHLIGHTS*/[|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if (/*HIGHLIGHTS*/[|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// /*HIGHLIGHTS*/[|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// /*HIGHLIGHTS*/[|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// /*HIGHLIGHTS*/[|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// /*HIGHLIGHTS*/[|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => /*HIGHLIGHTS*/[|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if (/*HIGHLIGHTS*/[|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// /*HIGHLIGHTS*/[|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThis5.ts === -// --- (line: 85) skipped --- -// } -// } -// -// public static staticB = [|this|].staticMethod1; -// -// public static staticMethod1() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// [|this|].this; -// } -// } -// function inside() { -// // --- (line: 104) skipped --- - -// --- (line: 108) skipped --- -// } -// -// private static staticMethod2() { -// [|this|]; -// [|this|]; -// () => [|this|]; -// () => { -// if ([|this|]) { -// [|this|]; -// } -// else { -// /*HIGHLIGHTS*/[|this|].this; -// } -// } -// function inside() { -// // --- (line: 124) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow.baseline.jsonc deleted file mode 100644 index b554a64c91..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow.baseline.jsonc +++ /dev/null @@ -1,317 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThrow.ts === -// --- (line: 5) skipped --- -// throw 10; -// } -// catch (x) { -// /*HIGHLIGHTS*/[|return|] 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// [|throw|] "Something"; -// } -// finally { -// [|throw|] "Also something"; -// } -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 26) skipped --- - -// --- (line: 30) skipped --- -// })() || true; -// } -// -// [|throw|] 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// [|return|]; -// [|return|] true; -// [|throw|] false; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow.ts === -// --- (line: 5) skipped --- -// throw 10; -// } -// catch (x) { -// [|return|] 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// /*HIGHLIGHTS*/[|throw|] "Something"; -// } -// finally { -// [|throw|] "Also something"; -// } -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 26) skipped --- - -// --- (line: 30) skipped --- -// })() || true; -// } -// -// [|throw|] 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// [|return|]; -// [|return|] true; -// [|throw|] false; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow.ts === -// --- (line: 5) skipped --- -// throw 10; -// } -// catch (x) { -// [|return|] 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// [|throw|] "Something"; -// } -// finally { -// /*HIGHLIGHTS*/[|throw|] "Also something"; -// } -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 26) skipped --- - -// --- (line: 30) skipped --- -// })() || true; -// } -// -// [|throw|] 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// [|return|]; -// [|return|] true; -// [|throw|] false; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow.ts === -// --- (line: 5) skipped --- -// throw 10; -// } -// catch (x) { -// [|return|] 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// [|throw|] "Something"; -// } -// finally { -// [|throw|] "Also something"; -// } -// if (a > 0) { -// /*HIGHLIGHTS*/[|return|] (function () { -// return; -// return; -// return; -// // --- (line: 26) skipped --- - -// --- (line: 30) skipped --- -// })() || true; -// } -// -// [|throw|] 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// [|return|]; -// [|return|] true; -// [|throw|] false; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow.ts === -// --- (line: 5) skipped --- -// throw 10; -// } -// catch (x) { -// [|return|] 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// [|throw|] "Something"; -// } -// finally { -// [|throw|] "Also something"; -// } -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 26) skipped --- - -// --- (line: 30) skipped --- -// })() || true; -// } -// -// /*HIGHLIGHTS*/[|throw|] 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// [|return|]; -// [|return|] true; -// [|throw|] false; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow.ts === -// --- (line: 5) skipped --- -// throw 10; -// } -// catch (x) { -// [|return|] 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// [|throw|] "Something"; -// } -// finally { -// [|throw|] "Also something"; -// } -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 26) skipped --- - -// --- (line: 30) skipped --- -// })() || true; -// } -// -// [|throw|] 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// /*HIGHLIGHTS*/[|return|]; -// [|return|] true; -// [|throw|] false; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow.ts === -// --- (line: 5) skipped --- -// throw 10; -// } -// catch (x) { -// [|return|] 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// [|throw|] "Something"; -// } -// finally { -// [|throw|] "Also something"; -// } -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 26) skipped --- - -// --- (line: 30) skipped --- -// })() || true; -// } -// -// [|throw|] 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// [|return|]; -// /*HIGHLIGHTS*/[|return|] true; -// [|throw|] false; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow.ts === -// --- (line: 5) skipped --- -// throw 10; -// } -// catch (x) { -// [|return|] 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// [|throw|] "Something"; -// } -// finally { -// [|throw|] "Also something"; -// } -// if (a > 0) { -// [|return|] (function () { -// return; -// return; -// return; -// // --- (line: 26) skipped --- - -// --- (line: 30) skipped --- -// })() || true; -// } -// -// [|throw|] 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// [|return|]; -// [|return|] true; -// /*HIGHLIGHTS*/[|throw|] false; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow2.baseline.jsonc deleted file mode 100644 index db010fa874..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow2.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThrow2.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { -// /*HIGHLIGHTS*/[|throw|] 10; -// } -// catch (x) { -// return 100; -// // --- (line: 10) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow3.baseline.jsonc deleted file mode 100644 index 86ca2055fc..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow3.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThrow3.ts === -// function f(a: number) { -// try { -// /*HIGHLIGHTS*/[|throw|] "Hello"; -// -// try { -// throw 10; -// } -// catch (x) { -// return 100; -// } -// finally { -// [|throw|] 10; -// } -// } -// catch (x) { -// // --- (line: 16) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThrow3.ts === -// function f(a: number) { -// try { -// [|throw|] "Hello"; -// -// try { -// throw 10; -// } -// catch (x) { -// return 100; -// } -// finally { -// /*HIGHLIGHTS*/[|throw|] 10; -// } -// } -// catch (x) { -// // --- (line: 16) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow4.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow4.baseline.jsonc deleted file mode 100644 index ffe619c700..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow4.baseline.jsonc +++ /dev/null @@ -1,102 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThrow4.ts === -// --- (line: 19) skipped --- -// } -// if (a > 0) { -// return (function () { -// /*HIGHLIGHTS*/[|return|]; -// [|return|]; -// [|return|]; -// -// if (false) { -// [|return|] true; -// } -// [|throw|] "Hello!"; -// })() || true; -// } -// -// // --- (line: 34) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThrow4.ts === -// --- (line: 19) skipped --- -// } -// if (a > 0) { -// return (function () { -// [|return|]; -// /*HIGHLIGHTS*/[|return|]; -// [|return|]; -// -// if (false) { -// [|return|] true; -// } -// [|throw|] "Hello!"; -// })() || true; -// } -// -// // --- (line: 34) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThrow4.ts === -// --- (line: 19) skipped --- -// } -// if (a > 0) { -// return (function () { -// [|return|]; -// [|return|]; -// /*HIGHLIGHTS*/[|return|]; -// -// if (false) { -// [|return|] true; -// } -// [|throw|] "Hello!"; -// })() || true; -// } -// -// // --- (line: 34) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThrow4.ts === -// --- (line: 19) skipped --- -// } -// if (a > 0) { -// return (function () { -// [|return|]; -// [|return|]; -// [|return|]; -// -// if (false) { -// /*HIGHLIGHTS*/[|return|] true; -// } -// [|throw|] "Hello!"; -// })() || true; -// } -// -// // --- (line: 34) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesThrow4.ts === -// --- (line: 19) skipped --- -// } -// if (a > 0) { -// return (function () { -// [|return|]; -// [|return|]; -// [|return|]; -// -// if (false) { -// [|return|] true; -// } -// /*HIGHLIGHTS*/[|throw|] "Hello!"; -// })() || true; -// } -// -// // --- (line: 34) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow5.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow5.baseline.jsonc deleted file mode 100644 index 99dc8e9e67..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow5.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThrow5.ts === -// --- (line: 32) skipped --- -// -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { /*HIGHLIGHTS*/[|throw|] 4 }) -// -// return; -// return true; -// throw false; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow6.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow6.baseline.jsonc deleted file mode 100644 index 9ffa80d02c..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow6.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThrow6.ts === -// /*HIGHLIGHTS*/[|throw|] 100; -// -// try { -// throw 0; -// var x = () => { throw 0; }; -// } -// catch (y) { -// var x = () => { throw 0; }; -// [|throw|] 200; -// } -// finally { -// [|throw|] 300; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow6.ts === -// [|throw|] 100; -// -// try { -// throw 0; -// var x = () => { throw 0; }; -// } -// catch (y) { -// var x = () => { throw 0; }; -// /*HIGHLIGHTS*/[|throw|] 200; -// } -// finally { -// [|throw|] 300; -// } - - - -// === documentHighlights === -// === /getOccurrencesThrow6.ts === -// [|throw|] 100; -// -// try { -// throw 0; -// var x = () => { throw 0; }; -// } -// catch (y) { -// var x = () => { throw 0; }; -// [|throw|] 200; -// } -// finally { -// /*HIGHLIGHTS*/[|throw|] 300; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow7.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow7.baseline.jsonc deleted file mode 100644 index ac78ae0dd3..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow7.baseline.jsonc +++ /dev/null @@ -1,112 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThrow7.ts === -// try { -// /*HIGHLIGHTS*/[|throw|] 10; -// -// try { -// throw 10; -// } -// catch (x) { -// [|throw|] 10; -// } -// finally { -// [|throw|] 10; -// } -// } -// finally { -// [|throw|] 10; -// } -// -// [|throw|] 10; - - - -// === documentHighlights === -// === /getOccurrencesThrow7.ts === -// try { -// [|throw|] 10; -// -// try { -// throw 10; -// } -// catch (x) { -// /*HIGHLIGHTS*/[|throw|] 10; -// } -// finally { -// [|throw|] 10; -// } -// } -// finally { -// [|throw|] 10; -// } -// -// [|throw|] 10; - - - -// === documentHighlights === -// === /getOccurrencesThrow7.ts === -// try { -// [|throw|] 10; -// -// try { -// throw 10; -// } -// catch (x) { -// [|throw|] 10; -// } -// finally { -// /*HIGHLIGHTS*/[|throw|] 10; -// } -// } -// finally { -// [|throw|] 10; -// } -// -// [|throw|] 10; - - - -// === documentHighlights === -// === /getOccurrencesThrow7.ts === -// try { -// [|throw|] 10; -// -// try { -// throw 10; -// } -// catch (x) { -// [|throw|] 10; -// } -// finally { -// [|throw|] 10; -// } -// } -// finally { -// /*HIGHLIGHTS*/[|throw|] 10; -// } -// -// [|throw|] 10; - - - -// === documentHighlights === -// === /getOccurrencesThrow7.ts === -// try { -// [|throw|] 10; -// -// try { -// throw 10; -// } -// catch (x) { -// [|throw|] 10; -// } -// finally { -// [|throw|] 10; -// } -// } -// finally { -// [|throw|] 10; -// } -// -// /*HIGHLIGHTS*/[|throw|] 10; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow8.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow8.baseline.jsonc deleted file mode 100644 index 64af032ca9..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow8.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesThrow8.ts === -// try { -// throw 10; -// -// try { -// /*HIGHLIGHTS*/[|throw|] 10; -// } -// catch (x) { -// throw 10; -// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesYield.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesYield.baseline.jsonc deleted file mode 100644 index 721e41c40c..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesYield.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesYield.ts === -// function* f() { -// /*HIGHLIGHTS*/[|yield|] 100; -// [|yield|] [|yield|] 200; -// class Foo { -// *memberFunction() { -// return yield 1; -// // --- (line: 7) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesYield.ts === -// function* f() { -// [|yield|] 100; -// /*HIGHLIGHTS*/[|yield|] [|yield|] 200; -// class Foo { -// *memberFunction() { -// return yield 1; -// // --- (line: 7) skipped --- - - - -// === documentHighlights === -// === /getOccurrencesYield.ts === -// function* f() { -// [|yield|] 100; -// [|yield|] /*HIGHLIGHTS*/[|yield|] 200; -// class Foo { -// *memberFunction() { -// return yield 1; -// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getPropertySymbolsFromBaseTypesDoesntCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getPropertySymbolsFromBaseTypesDoesntCrash.baseline.jsonc deleted file mode 100644 index 8a4bdb1ec2..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getPropertySymbolsFromBaseTypesDoesntCrash.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === documentHighlights === -// === /file1.ts === -// class ClassA implements IInterface { -// private /*HIGHLIGHTS*/[|value|]: number; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/occurrences01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/occurrences01.baseline.jsonc index 55b9ef31ff..e69de29bb2 100644 --- a/testdata/baselines/reference/fourslash/documentHighlights/occurrences01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/documentHighlights/occurrences01.baseline.jsonc @@ -1,81 +0,0 @@ -// === documentHighlights === -// === /occurrences01.ts === -// foo: /*HIGHLIGHTS*/[|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 3: -// [|break|]; -// [|break|] foo; -// continue; -// continue foo; -// } - - - -// === documentHighlights === -// === /occurrences01.ts === -// foo: [|switch|] (10) { -// /*HIGHLIGHTS*/[|case|] 1: -// [|case|] 2: -// [|case|] 3: -// [|break|]; -// [|break|] foo; -// continue; -// continue foo; -// } - - - -// === documentHighlights === -// === /occurrences01.ts === -// foo: [|switch|] (10) { -// [|case|] 1: -// /*HIGHLIGHTS*/[|case|] 2: -// [|case|] 3: -// [|break|]; -// [|break|] foo; -// continue; -// continue foo; -// } - - - -// === documentHighlights === -// === /occurrences01.ts === -// foo: [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// /*HIGHLIGHTS*/[|case|] 3: -// [|break|]; -// [|break|] foo; -// continue; -// continue foo; -// } - - - -// === documentHighlights === -// === /occurrences01.ts === -// foo: [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 3: -// /*HIGHLIGHTS*/[|break|]; -// [|break|] foo; -// continue; -// continue foo; -// } - - - -// === documentHighlights === -// === /occurrences01.ts === -// foo: [|switch|] (10) { -// [|case|] 1: -// [|case|] 2: -// [|case|] 3: -// [|break|]; -// /*HIGHLIGHTS*/[|break|] foo; -// continue; -// continue foo; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/occurrences02.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/occurrences02.baseline.jsonc index 642adeaae6..e69de29bb2 100644 --- a/testdata/baselines/reference/fourslash/documentHighlights/occurrences02.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/documentHighlights/occurrences02.baseline.jsonc @@ -1,29 +0,0 @@ -// === documentHighlights === -// === /occurrences02.ts === -// function /*HIGHLIGHTS*/[|f|](x: typeof [|f|]) { -// [|f|]([|f|]); -// } - - - -// === documentHighlights === -// === /occurrences02.ts === -// function [|f|](x: typeof /*HIGHLIGHTS*/[|f|]) { -// [|f|]([|f|]); -// } - - - -// === documentHighlights === -// === /occurrences02.ts === -// function [|f|](x: typeof [|f|]) { -// /*HIGHLIGHTS*/[|f|]([|f|]); -// } - - - -// === documentHighlights === -// === /occurrences02.ts === -// function [|f|](x: typeof [|f|]) { -// [|f|](/*HIGHLIGHTS*/[|f|]); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/renameDefaultImportDifferentName.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/renameDefaultImportDifferentName.baseline.jsonc deleted file mode 100644 index 6d4f8ba8f7..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/renameDefaultImportDifferentName.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === documentHighlights === -// === /B.ts === -// export default class /*HIGHLIGHTS*/[|C|] { -// test() { -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc deleted file mode 100644 index 41dd664993..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /user.ts === -// import {/*FIND ALL REFS*/[|x|]} from "jquery"; - - - -// === findAllReferences === -// === /user2.ts === -// import {/*FIND ALL REFS*/[|x|]} from "jquery"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc deleted file mode 100644 index a1f16deccb..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/index.d.ts === -// declare class [|A|] { -// } -// //# sourceMappingURL=index.d.ts.map - -// === /home/src/workspaces/project/b/b.ts === -// /// -// new [|A|]/*FIND ALL REFS*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc deleted file mode 100644 index ee50558949..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /constructorFindAllReferences1.ts === -// export class C { -// /*FIND ALL REFS*/public [|constructor|]() { } -// public foo() { } -// } -// -// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc deleted file mode 100644 index a6c3c02e0f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /constructorFindAllReferences2.ts === -// export class C { -// /*FIND ALL REFS*/private [|constructor|]() { } -// public foo() { } -// } -// -// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc deleted file mode 100644 index 79b101605b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /constructorFindAllReferences3.ts === -// export class C { -// /*FIND ALL REFS*/[|constructor|]() { } -// public foo() { } -// } -// -// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc deleted file mode 100644 index cf4ebb836b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /constructorFindAllReferences4.ts === -// export class C { -// /*FIND ALL REFS*/protected [|constructor|]() { } -// public foo() { } -// } -// -// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc deleted file mode 100644 index 4d5f38434d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === findAllReferences === -// === /abc.d.ts === -// declare module "a" { -// /*FIND ALL REFS*/export const x: number; -// } - - - -// === findAllReferences === -// === /abc.d.ts === -// declare module "a" { -// export const /*FIND ALL REFS*/[|x|]: number; -// } - -// === /b.ts === -// import a from "a"; -// a.[|x|]; - - - -// === findAllReferences === -// === /abc.d.ts === -// declare module "a" { -// export const [|x|]: number; -// } - -// === /b.ts === -// import a from "a"; -// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc deleted file mode 100644 index 59537e30fd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /a.d.ts === -// export as namespace abc; -// /*FIND ALL REFS*/export const x: number; - - - -// === findAllReferences === -// === /a.d.ts === -// export as namespace abc; -// export const /*FIND ALL REFS*/[|x|]: number; - -// === /b.ts === -// import a from "./a"; -// a.[|x|]; - - - -// === findAllReferences === -// === /a.d.ts === -// export as namespace abc; -// export const [|x|]: number; - -// === /b.ts === -// import a from "./a"; -// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc deleted file mode 100644 index dbb948be89..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /node_modules/react-hook-form/dist/index.d.ts === -// /// -// export type Foo = React.Whatever; -// export function useForm(): any; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc deleted file mode 100644 index 33a4389032..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /findAllReferPropertyAccessExpressionHeritageClause.ts === -// class B {} -// function foo() { -// return {/*FIND ALL REFS*/[|B|]: B}; -// } -// class C extends (foo()).[|B|] {} -// class C1 extends foo().[|B|] {} - - - -// === findAllReferences === -// === /findAllReferPropertyAccessExpressionHeritageClause.ts === -// class B {} -// function foo() { -// return {[|B|]: B}; -// } -// class C extends (foo())./*FIND ALL REFS*/[|B|] {} -// class C1 extends foo().[|B|] {} - - - -// === findAllReferences === -// === /findAllReferPropertyAccessExpressionHeritageClause.ts === -// class B {} -// function foo() { -// return {[|B|]: B}; -// } -// class C extends (foo()).[|B|] {} -// class C1 extends foo()./*FIND ALL REFS*/[|B|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport1.baseline.jsonc deleted file mode 100644 index af501fac1d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport1.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === findAllReferences === -// === /foo.ts === -// export function foo() { return "foo"; } -// /*FIND ALL REFS*/import("./foo") -// var x = import("./foo") - - - -// === findAllReferences === -// === /foo.ts === -// export function foo() { return "foo"; } -// import("/*FIND ALL REFS*/[|./foo|]") -// var x = import("[|./foo|]") - - - -// === findAllReferences === -// === /foo.ts === -// export function foo() { return "foo"; } -// import("./foo") -// /*FIND ALL REFS*/var [|x|] = import("./foo") - - - -// === findAllReferences === -// === /foo.ts === -// export function foo() { return "foo"; } -// import("[|./foo|]") -// var x = import("/*FIND ALL REFS*/[|./foo|]") \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc deleted file mode 100644 index eeeb1aa1ac..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findAllReferences === -// === /foo.ts === -// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo.[|bar|](); -// }) - - - -// === findAllReferences === -// === /foo.ts === -// export function [|bar|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo./*FIND ALL REFS*/[|bar|](); -// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc deleted file mode 100644 index 456169201b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /foo.ts === -// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } -// import('./foo').then(({ [|bar|] }) => undefined); - - - -// === findAllReferences === -// === /foo.ts === -// export function [|bar|]() { return "bar"; } -// import('./foo').then(({ /*FIND ALL REFS*/[|bar|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc deleted file mode 100644 index 43a226d585..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesFilteringMappedTypeProperty.ts === -// const obj = { /*FIND ALL REFS*/[|a|]: 1, b: 2 }; -// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; -// filtered.[|a|]; - - - -// === findAllReferences === -// === /findAllReferencesFilteringMappedTypeProperty.ts === -// const obj = { [|a|]: 1, b: 2 }; -// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { /*FIND ALL REFS*/[|a|]: 0 }; -// filtered.[|a|]; - - - -// === findAllReferences === -// === /findAllReferencesFilteringMappedTypeProperty.ts === -// const obj = { [|a|]: 1, b: 2 }; -// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; -// filtered./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc deleted file mode 100644 index 408f4e9f88..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesFromLinkTagReference1.ts === -// enum E { -// /** {@link /*FIND ALL REFS*/[|A|]} */ -// [|A|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc deleted file mode 100644 index d13a60bfb3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// enum E { -// /** {@link /*FIND ALL REFS*/[|Foo|]} */ -// [|Foo|] -// } -// interface Foo { -// foo: E.[|Foo|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc deleted file mode 100644 index a47fd93b30..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// interface Foo { -// foo: E.[|Foo|]; -// } - -// === /b.ts === -// enum E { -// /** {@link /*FIND ALL REFS*/[|Foo|]} */ -// [|Foo|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc deleted file mode 100644 index 910ac924e3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesFromLinkTagReference4.ts === -// enum E { -// /** {@link /*FIND ALL REFS*/[|B|]} */ -// A, -// [|B|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc deleted file mode 100644 index 03866a1e00..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesFromLinkTagReference5.ts === -// enum E { -// /** {@link E./*FIND ALL REFS*/[|A|]} */ -// [|A|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc deleted file mode 100644 index f0113af254..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesImportMeta.ts === -// // Haha that's so meta! -// -// let x = import.[|meta|]/*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc deleted file mode 100644 index 31ac7af7f7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /Foo.js === -// /** @type {function (/*FIND ALL REFS*/new: string, string): string} */ -// var f; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc deleted file mode 100644 index 7746e07493..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /Foo.js === -// /** @type {function (this: string, string): string} */ -// var f = function (s) { return /*FIND ALL REFS*/[|this|] + s; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc deleted file mode 100644 index 5d43200755..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /foo.js === -// /** -// * @param {object} o - very important! -// * @param {string} o.x - a thing, its ok -// * @param {number} o.y - another thing -// * @param {Object} o.nested - very nested -// * @param {boolean} o.nested./*FIND ALL REFS*/great - much greatness -// * @param {number} o.nested.times - twice? probably!?? -// */ -// function f(o) { return o.nested.great; } - - - -// === findAllReferences === -// === /foo.js === -// --- (line: 5) skipped --- -// * @param {boolean} o.nested.great - much greatness -// * @param {number} o.nested.times - twice? probably!?? -// */ -// function f(o) { return o.nested./*FIND ALL REFS*/[|great|]; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc deleted file mode 100644 index 75ac5ac896..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findAllReferences === -// === /foo.js === -// /** -// * @overload -// * @param {number} [|x|] -// * @returns {number} -// * -// * @overload -// * @param {string} [|x|] -// * @returns {string} -// * -// * @param {unknown} [|x|] -// * @returns {unknown} -// */ -// function foo([|x|]/*FIND ALL REFS*/) { -// return [|x|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc deleted file mode 100644 index bf269035c5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /bar.js === -// const { /*FIND ALL REFS*/[|foo|]: bar } = require('./foo'); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc deleted file mode 100644 index cb07e32a56..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /Y.js === -// const { /*FIND ALL REFS*/[|x|]: { y } } = require("./X"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc deleted file mode 100644 index 8db971a964..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc +++ /dev/null @@ -1,208 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === -// class C { -// [|m|]/*FIND ALL REFS*/() { } -// n = 1 -// static s() { } -// /** -// * {@link [|m|]} -// * @see {[|m|]} -// * {@link C.[|m|]} -// * @see {C.[|m|]} -// * {@link C#[|m|]} -// * @see {C#[|m|]} -// * {@link C.prototype.[|m|]} -// * @see {C.prototype.[|m|]} -// */ -// p() { } -// /** -// // --- (line: 17) skipped --- - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === -// class C { -// m() { } -// [|n|]/*FIND ALL REFS*/ = 1 -// static s() { } -// /** -// * {@link m} -// // --- (line: 7) skipped --- - -// --- (line: 13) skipped --- -// */ -// p() { } -// /** -// * {@link [|n|]} -// * @see {[|n|]} -// * {@link C.[|n|]} -// * @see {C.[|n|]} -// * {@link C#[|n|]} -// * @see {C#[|n|]} -// * {@link C.prototype.[|n|]} -// * @see {C.prototype.[|n|]} -// */ -// q() { } -// /** -// // --- (line: 28) skipped --- - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === -// class C { -// m() { } -// n = 1 -// static [|s|]/*FIND ALL REFS*/() { } -// /** -// * {@link m} -// * @see {m} -// // --- (line: 8) skipped --- - -// --- (line: 24) skipped --- -// */ -// q() { } -// /** -// * {@link [|s|]} -// * @see {[|s|]} -// * {@link C.[|s|]} -// * @see {C.[|s|]} -// */ -// r() { } -// } -// // --- (line: 35) skipped --- - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === -// --- (line: 33) skipped --- -// } -// -// interface I { -// [|a|]/*FIND ALL REFS*/() -// b: 1 -// /** -// * {@link [|a|]} -// * @see {[|a|]} -// * {@link I.[|a|]} -// * @see {I.[|a|]} -// * {@link I#[|a|]} -// * @see {I#[|a|]} -// */ -// c() -// /** -// // --- (line: 49) skipped --- - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === -// --- (line: 34) skipped --- -// -// interface I { -// a() -// [|b|]/*FIND ALL REFS*/: 1 -// /** -// * {@link a} -// * @see {a} -// // --- (line: 42) skipped --- - -// --- (line: 45) skipped --- -// */ -// c() -// /** -// * {@link [|b|]} -// * @see {[|b|]} -// * {@link I.[|b|]} -// * @see {I.[|b|]} -// */ -// d() -// } -// // --- (line: 56) skipped --- - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === -// --- (line: 54) skipped --- -// } -// -// function nestor() { -// /** {@link [|r2|]} */ -// function ref() { } -// /** @see {[|r2|]} */ -// function d3() { } -// function [|r2|]/*FIND ALL REFS*/() { } -// } - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === -// class [|C|]/*FIND ALL REFS*/ { -// m() { } -// n = 1 -// static s() { } -// /** -// * {@link m} -// * @see {m} -// * {@link [|C|].m} -// * @see {[|C|].m} -// * {@link [|C|]#m} -// * @see {[|C|]#m} -// * {@link [|C|].prototype.m} -// * @see {[|C|].prototype.m} -// */ -// p() { } -// /** -// * {@link n} -// * @see {n} -// * {@link [|C|].n} -// * @see {[|C|].n} -// * {@link [|C|]#n} -// * @see {[|C|]#n} -// * {@link [|C|].prototype.n} -// * @see {[|C|].prototype.n} -// */ -// q() { } -// /** -// * {@link s} -// * @see {s} -// * {@link [|C|].s} -// * @see {[|C|].s} -// */ -// r() { } -// } -// // --- (line: 35) skipped --- - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === -// --- (line: 32) skipped --- -// r() { } -// } -// -// interface [|I|]/*FIND ALL REFS*/ { -// a() -// b: 1 -// /** -// * {@link a} -// * @see {a} -// * {@link [|I|].a} -// * @see {[|I|].a} -// * {@link [|I|]#a} -// * @see {[|I|]#a} -// */ -// c() -// /** -// * {@link b} -// * @see {b} -// * {@link [|I|].b} -// * @see {[|I|].b} -// */ -// d() -// } -// // --- (line: 56) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc deleted file mode 100644 index 164c894c14..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc +++ /dev/null @@ -1,138 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === -// namespace NPR { -// export class Consider { -// This = class { -// show() { } -// } -// [|m|]/*FIND ALL REFS*/() { } -// } -// /** -// * @see {Consider.prototype.[|m|]} -// * {@link Consider#[|m|]} -// * @see {Consider#This#show} -// * {@link Consider.This.show} -// * @see {NPR.Consider#This#show} -// // --- (line: 14) skipped --- - - - -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === -// namespace NPR { -// export class Consider { -// This = class { -// [|show|]/*FIND ALL REFS*/() { } -// } -// m() { } -// } -// /** -// * @see {Consider.prototype.m} -// * {@link Consider#m} -// * @see {Consider#This#[|show|]} -// * {@link Consider.This.[|show|]} -// * @see {NPR.Consider#This#[|show|]} -// * {@link NPR.Consider.This#[|show|]} -// * @see {NPR.Consider#This.show} # doesn't parse trailing . -// * @see {NPR.Consider.This.[|show|]} -// */ -// export function ref() { } -// } -// /** -// * {@link NPR.Consider#This#[|show|] hello hello} -// * {@link NPR.Consider.This#[|show|]} -// * @see {NPR.Consider#This.show} # doesn't parse trailing . -// * @see {NPR.Consider.This.[|show|]} -// */ -// export function outerref() { } - - - -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === -// namespace NPR { -// export class Consider { -// [|This|]/*FIND ALL REFS*/ = class { -// show() { } -// } -// m() { } -// } -// /** -// * @see {Consider.prototype.m} -// * {@link Consider#m} -// * @see {Consider#[|This|]#show} -// * {@link Consider.[|This|].show} -// * @see {NPR.Consider#[|This|]#show} -// * {@link NPR.Consider.[|This|]#show} -// * @see {NPR.Consider#[|This|].show} # doesn't parse trailing . -// * @see {NPR.Consider.[|This|].show} -// */ -// export function ref() { } -// } -// /** -// * {@link NPR.Consider#[|This|]#show hello hello} -// * {@link NPR.Consider.[|This|]#show} -// * @see {NPR.Consider#[|This|].show} # doesn't parse trailing . -// * @see {NPR.Consider.[|This|].show} -// */ -// export function outerref() { } - - - -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === -// namespace NPR { -// export class [|Consider|]/*FIND ALL REFS*/ { -// This = class { -// show() { } -// } -// m() { } -// } -// /** -// * @see {[|Consider|].prototype.m} -// * {@link [|Consider|]#m} -// * @see {[|Consider|]#This#show} -// * {@link [|Consider|].This.show} -// * @see {NPR.[|Consider|]#This#show} -// * {@link NPR.[|Consider|].This#show} -// * @see {NPR.[|Consider|]#This.show} # doesn't parse trailing . -// * @see {NPR.[|Consider|].This.show} -// */ -// export function ref() { } -// } -// /** -// * {@link NPR.[|Consider|]#This#show hello hello} -// * {@link NPR.[|Consider|].This#show} -// * @see {NPR.[|Consider|]#This.show} # doesn't parse trailing . -// * @see {NPR.[|Consider|].This.show} -// */ -// export function outerref() { } - - - -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === -// namespace [|NPR|]/*FIND ALL REFS*/ { -// export class Consider { -// This = class { -// show() { } -// // --- (line: 5) skipped --- - -// --- (line: 9) skipped --- -// * {@link Consider#m} -// * @see {Consider#This#show} -// * {@link Consider.This.show} -// * @see {[|NPR|].Consider#This#show} -// * {@link [|NPR|].Consider.This#show} -// * @see {[|NPR|].Consider#This.show} # doesn't parse trailing . -// * @see {[|NPR|].Consider.This.show} -// */ -// export function ref() { } -// } -// /** -// * {@link [|NPR|].Consider#This#show hello hello} -// * {@link [|NPR|].Consider.This#show} -// * @see {[|NPR|].Consider#This.show} # doesn't parse trailing . -// * @see {[|NPR|].Consider.This.show} -// */ -// export function outerref() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc deleted file mode 100644 index 37e0a9e126..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc +++ /dev/null @@ -1,138 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === -// namespace NPR { -// export class Consider { -// This = class { -// show() { } -// } -// [|m|]/*FIND ALL REFS*/() { } -// } -// /** -// * {@linkcode Consider.prototype.[|m|]} -// * {@linkplain Consider#[|m|]} -// * {@linkcode Consider#This#show} -// * {@linkplain Consider.This.show} -// * {@linkcode NPR.Consider#This#show} -// // --- (line: 14) skipped --- - - - -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === -// namespace NPR { -// export class Consider { -// This = class { -// [|show|]/*FIND ALL REFS*/() { } -// } -// m() { } -// } -// /** -// * {@linkcode Consider.prototype.m} -// * {@linkplain Consider#m} -// * {@linkcode Consider#This#[|show|]} -// * {@linkplain Consider.This.[|show|]} -// * {@linkcode NPR.Consider#This#[|show|]} -// * {@linkplain NPR.Consider.This#[|show|]} -// * {@linkcode NPR.Consider#This.show} # doesn't parse trailing . -// * {@linkcode NPR.Consider.This.[|show|]} -// */ -// export function ref() { } -// } -// /** -// * {@linkplain NPR.Consider#This#[|show|] hello hello} -// * {@linkplain NPR.Consider.This#[|show|]} -// * {@linkcode NPR.Consider#This.show} # doesn't parse trailing . -// * {@linkcode NPR.Consider.This.[|show|]} -// */ -// export function outerref() { } - - - -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === -// namespace NPR { -// export class Consider { -// [|This|]/*FIND ALL REFS*/ = class { -// show() { } -// } -// m() { } -// } -// /** -// * {@linkcode Consider.prototype.m} -// * {@linkplain Consider#m} -// * {@linkcode Consider#[|This|]#show} -// * {@linkplain Consider.[|This|].show} -// * {@linkcode NPR.Consider#[|This|]#show} -// * {@linkplain NPR.Consider.[|This|]#show} -// * {@linkcode NPR.Consider#[|This|].show} # doesn't parse trailing . -// * {@linkcode NPR.Consider.[|This|].show} -// */ -// export function ref() { } -// } -// /** -// * {@linkplain NPR.Consider#[|This|]#show hello hello} -// * {@linkplain NPR.Consider.[|This|]#show} -// * {@linkcode NPR.Consider#[|This|].show} # doesn't parse trailing . -// * {@linkcode NPR.Consider.[|This|].show} -// */ -// export function outerref() { } - - - -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === -// namespace NPR { -// export class [|Consider|]/*FIND ALL REFS*/ { -// This = class { -// show() { } -// } -// m() { } -// } -// /** -// * {@linkcode [|Consider|].prototype.m} -// * {@linkplain [|Consider|]#m} -// * {@linkcode [|Consider|]#This#show} -// * {@linkplain [|Consider|].This.show} -// * {@linkcode NPR.[|Consider|]#This#show} -// * {@linkplain NPR.[|Consider|].This#show} -// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing . -// * {@linkcode NPR.[|Consider|].This.show} -// */ -// export function ref() { } -// } -// /** -// * {@linkplain NPR.[|Consider|]#This#show hello hello} -// * {@linkplain NPR.[|Consider|].This#show} -// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing . -// * {@linkcode NPR.[|Consider|].This.show} -// */ -// export function outerref() { } - - - -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === -// namespace [|NPR|]/*FIND ALL REFS*/ { -// export class Consider { -// This = class { -// show() { } -// // --- (line: 5) skipped --- - -// --- (line: 9) skipped --- -// * {@linkplain Consider#m} -// * {@linkcode Consider#This#show} -// * {@linkplain Consider.This.show} -// * {@linkcode [|NPR|].Consider#This#show} -// * {@linkplain [|NPR|].Consider.This#show} -// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . -// * {@linkcode [|NPR|].Consider.This.show} -// */ -// export function ref() { } -// } -// /** -// * {@linkplain [|NPR|].Consider#This#show hello hello} -// * {@linkplain [|NPR|].Consider.This#show} -// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . -// * {@linkcode [|NPR|].Consider.This.show} -// */ -// export function outerref() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc deleted file mode 100644 index e3ba1d5b6a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /bar.ts === -// import { [|Foo|]/*FIND ALL REFS*/ } from "./foo"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc deleted file mode 100644 index fc41d645a1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc +++ /dev/null @@ -1,105 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export class C { -// /*FIND ALL REFS*/[|constructor|](n: number); -// [|constructor|](); -// [|constructor|](n?: number){} -// static f() { -// this.f(); -// new [|this|](); -// } -// } -// new [|C|](); -// const D = C; -// new D(); - -// === /b.ts === -// import { C } from "./a"; -// new [|C|](); - -// === /c.ts === -// import { C } from "./a"; -// class D extends C { -// constructor() { -// [|super|](); -// super.method(); -// } -// method() { super(); } -// // --- (line: 8) skipped --- - -// === /d.ts === -// import * as a from "./a"; -// new a.C(); -// class d extends a.C { constructor() { [|super|](); } - - - -// === findAllReferences === -// === /a.ts === -// export class C { -// [|constructor|](n: number); -// /*FIND ALL REFS*/[|constructor|](); -// [|constructor|](n?: number){} -// static f() { -// this.f(); -// new [|this|](); -// } -// } -// new [|C|](); -// const D = C; -// new D(); - -// === /b.ts === -// import { C } from "./a"; -// new [|C|](); - -// === /c.ts === -// import { C } from "./a"; -// class D extends C { -// constructor() { -// [|super|](); -// super.method(); -// } -// method() { super(); } -// // --- (line: 8) skipped --- - -// === /d.ts === -// import * as a from "./a"; -// new a.C(); -// class d extends a.C { constructor() { [|super|](); } - - - -// === findAllReferences === -// === /a.ts === -// export class C { -// [|constructor|](n: number); -// [|constructor|](); -// /*FIND ALL REFS*/[|constructor|](n?: number){} -// static f() { -// this.f(); -// new [|this|](); -// } -// } -// new [|C|](); -// const D = C; -// new D(); - -// === /b.ts === -// import { C } from "./a"; -// new [|C|](); - -// === /c.ts === -// import { C } from "./a"; -// class D extends C { -// constructor() { -// [|super|](); -// super.method(); -// } -// method() { super(); } -// // --- (line: 8) skipped --- - -// === /d.ts === -// import * as a from "./a"; -// new a.C(); -// class d extends a.C { constructor() { [|super|](); } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc deleted file mode 100644 index 9947e3cb5d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesOfConstructor_badOverload.ts === -// class C { -// /*FIND ALL REFS*/[|constructor|](n: number); -// [|constructor|](){} -// } - - - -// === findAllReferences === -// === /findAllReferencesOfConstructor_badOverload.ts === -// class C { -// [|constructor|](n: number); -// /*FIND ALL REFS*/[|constructor|](){} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc deleted file mode 100644 index 2560521003..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /foo.ts === -// /*FIND ALL REFS*/import [|settings|] from "./settings.json"; -// [|settings|]; - - - -// === findAllReferences === -// === /foo.ts === -// import /*FIND ALL REFS*/[|settings|] from "./settings.json"; -// [|settings|]; - - - -// === findAllReferences === -// === /foo.ts === -// import [|settings|] from "./settings.json"; -// /*FIND ALL REFS*/[|settings|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesTripleSlash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesTripleSlash.baseline.jsonc deleted file mode 100644 index 952ecb8e3b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesTripleSlash.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /// -// /// - - - -// === findAllReferences === -// === /a.ts === -// /// -// /// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUmdModuleAsGlobalConst.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUmdModuleAsGlobalConst.baseline.jsonc deleted file mode 100644 index 63169a81fa..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUmdModuleAsGlobalConst.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findAllReferences === -// === /node_modules/@types/three/index.d.ts === -// export * from "./three-core"; -// export as namespace /*FIND ALL REFS*/[|THREE|]; - - - -// === findAllReferences === -// === /typings/global.d.ts === -// import * as _THREE from '/*FIND ALL REFS*/[|three|]'; -// declare global { -// const THREE: typeof _THREE; -// } - - - -// === findAllReferences === -// === /src/index.ts === -// export const a = {}; -// let v = new [|THREE|].Vector2(); - -// === /typings/global.d.ts === -// import * as _THREE from 'three'; -// declare global { -// const /*FIND ALL REFS*/[|THREE|]: typeof _THREE; -// } - - - -// === findAllReferences === -// === /src/index.ts === -// export const a = {}; -// let v = new /*FIND ALL REFS*/[|THREE|].Vector2(); - -// === /typings/global.d.ts === -// import * as _THREE from 'three'; -// declare global { -// const [|THREE|]: typeof _THREE; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc deleted file mode 100644 index da1581a151..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/[|undefined|]; -// -// void [|undefined|]; - -// === /b.ts === -// [|undefined|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc deleted file mode 100644 index 4282a2d249..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /findAllRefsBadImport.ts === -// import { /*FIND ALL REFS*/ab as cd } from "doesNotExist"; - - - -// === findAllReferences === -// === /findAllRefsBadImport.ts === -// import { ab as /*FIND ALL REFS*/[|cd|] } from "doesNotExist"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc deleted file mode 100644 index c9c57b48c4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findAllReferences === -// === /findAllRefsCatchClause.ts === -// try { } -// catch (/*FIND ALL REFS*/[|err|]) { -// [|err|]; -// } - - - -// === findAllReferences === -// === /findAllRefsCatchClause.ts === -// try { } -// catch ([|err|]) { -// /*FIND ALL REFS*/[|err|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc deleted file mode 100644 index 29550fa58b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export = class /*FIND ALL REFS*/[|A|] { -// m() { [|A|]; } -// }; - -// === /b.ts === -// import [|A|] = require("./a"); -// [|A|]; - - - -// === findAllReferences === -// === /a.ts === -// export = class [|A|] { -// m() { /*FIND ALL REFS*/[|A|]; } -// }; - -// === /b.ts === -// import [|A|] = require("./a"); -// [|A|]; - - - -// === findAllReferences === -// === /a.ts === -// export = class [|A|] { -// m() { [|A|]; } -// }; - -// === /b.ts === -// import /*FIND ALL REFS*/[|A|] = require("./a"); -// [|A|]; - - - -// === findAllReferences === -// === /a.ts === -// export = class [|A|] { -// m() { [|A|]; } -// }; - -// === /b.ts === -// import [|A|] = require("./a"); -// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc deleted file mode 100644 index 28ff6fba96..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findAllReferences === -// === /a.js === -// module.exports = class /*FIND ALL REFS*/[|A|] {}; - - - -// === findAllReferences === -// === /b.js === -// import /*FIND ALL REFS*/[|A|] = require("./a"); -// [|A|]; - - - -// === findAllReferences === -// === /b.js === -// import [|A|] = require("./a"); -// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc deleted file mode 100644 index f5cf4ae9a5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /a.js === -// exports./*FIND ALL REFS*/[|A|] = class {}; - -// === /b.js === -// import { [|A|] } from "./a"; -// [|A|]; - - - -// === findAllReferences === -// === /a.js === -// exports.[|A|] = class {}; - -// === /b.js === -// import { /*FIND ALL REFS*/[|A|] } from "./a"; -// [|A|]; - - - -// === findAllReferences === -// === /a.js === -// exports.[|A|] = class {}; - -// === /b.js === -// import { [|A|] } from "./a"; -// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc deleted file mode 100644 index d2862f3610..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === findAllReferences === -// === /findAllRefsClassStaticBlocks.ts === -// class ClassStaticBocks { -// static x; -// /*FIND ALL REFS*/[|static|] {} -// static y; -// static {} -// static y; -// static {} -// } - - - -// === findAllReferences === -// === /findAllRefsClassStaticBlocks.ts === -// class ClassStaticBocks { -// static x; -// static {} -// static y; -// /*FIND ALL REFS*/[|static|] {} -// static y; -// static {} -// } - - - -// === findAllReferences === -// === /findAllRefsClassStaticBlocks.ts === -// --- (line: 3) skipped --- -// static y; -// static {} -// static y; -// /*FIND ALL REFS*/[|static|] {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc deleted file mode 100644 index 62eab0f718..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === findAllReferences === -// === /findAllRefsClassWithStaticThisAccess.ts === -// class /*FIND ALL REFS*/[|C|] { -// static s() { -// [|this|]; -// } -// static get f() { -// return [|this|]; -// -// function inner() { this; } -// class Inner { x = this; } -// } -// } - - - -// === findAllReferences === -// === /findAllRefsClassWithStaticThisAccess.ts === -// class C { -// static s() { -// /*FIND ALL REFS*/[|this|]; -// } -// static get f() { -// return [|this|]; -// -// function inner() { this; } -// class Inner { x = this; } -// } -// } - - - -// === findAllReferences === -// === /findAllRefsClassWithStaticThisAccess.ts === -// class C { -// static s() { -// [|this|]; -// } -// static get f() { -// return /*FIND ALL REFS*/[|this|]; -// -// function inner() { this; } -// class Inner { x = this; } -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire.baseline.jsonc deleted file mode 100644 index 9cefb6e7a4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /a.js === -// function [|f|]() { } -// export { f } - -// === /b.js === -// const { [|f|] } = require('./a') -// /*FIND ALL REFS*/[|f|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire2.baseline.jsonc deleted file mode 100644 index 7e46109e4b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /a.js === -// function f() { } -// module.exports.[|f|] = f - -// === /b.js === -// const { [|f|] } = require('./a') -// /*FIND ALL REFS*/[|f|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire3.baseline.jsonc deleted file mode 100644 index 16838bc5b6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire3.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /b.js === -// const { [|f|] } = require('./a') -// /*FIND ALL REFS*/[|f|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc deleted file mode 100644 index 49d198d629..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc +++ /dev/null @@ -1,55 +0,0 @@ -// === findAllReferences === -// === /a.js === -// function f() { -// /*FIND ALL REFS*/[|this|].x = 0; -// } -// f.prototype.setX = function() { -// this.x = 1; -// } -// f.prototype.useX = function() { this.x; } - - - -// === findAllReferences === -// === /a.js === -// function f() { -// this./*FIND ALL REFS*/x = 0; -// } -// f.prototype.setX = function() { -// this.x = 1; -// } -// f.prototype.useX = function() { this.x; } - - - -// === findAllReferences === -// === /a.js === -// function f() { -// this.x = 0; -// } -// f.prototype.setX = function() { -// /*FIND ALL REFS*/[|this|].x = 1; -// } -// f.prototype.useX = function() { this.x; } - - - -// === findAllReferences === -// === /a.js === -// function f() { -// this.x = 0; -// } -// f.prototype.setX = function() { -// this./*FIND ALL REFS*/x = 1; -// } -// f.prototype.useX = function() { this.x; } - - - -// === findAllReferences === -// === /a.js === -// --- (line: 3) skipped --- -// f.prototype.setX = function() { -// this.x = 1; -// } -// f.prototype.useX = function() { this./*FIND ALL REFS*/x; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc deleted file mode 100644 index 4b37e613d9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /findAllRefsDeclareClass.ts === -// /*FIND ALL REFS*/declare class [|C|] { -// static m(): void; -// } - - - -// === findAllReferences === -// === /findAllRefsDeclareClass.ts === -// declare class /*FIND ALL REFS*/[|C|] { -// static m(): void; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc deleted file mode 100644 index bbefa6332d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export default function /*FIND ALL REFS*/[|a|]() {} - -// === /b.ts === -// import [|a|], * as ns from "./a"; - - - -// === findAllReferences === -// === /a.ts === -// export default function [|a|]() {} - -// === /b.ts === -// import /*FIND ALL REFS*/[|a|], * as ns from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc deleted file mode 100644 index 14c7bebeaf..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /findAllRefsDefinition.ts === -// const /*FIND ALL REFS*/[|x|] = 0; -// [|x|]; - - - -// === findAllReferences === -// === /findAllRefsDefinition.ts === -// const [|x|] = 0; -// /*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc deleted file mode 100644 index 271c0e841d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findAllReferences === -// === /findAllRefsDestructureGeneric.ts === -// interface I { -// /*FIND ALL REFS*/[|x|]: boolean; -// } -// declare const i: I; -// const { [|x|] } = i; - - - -// === findAllReferences === -// === /findAllRefsDestructureGeneric.ts === -// interface I { -// [|x|]: boolean; -// } -// declare const i: I; -// const { /*FIND ALL REFS*/[|x|] } = i; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc deleted file mode 100644 index ba0f7fb3b3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc +++ /dev/null @@ -1,69 +0,0 @@ -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === -// class Test { -// get /*FIND ALL REFS*/[|x|]() { return 0; } -// -// set y(a: number) {} -// } -// const { [|x|], y } = new Test(); -// x; y; - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === -// class Test { -// get [|x|]() { return 0; } -// -// set y(a: number) {} -// } -// const { /*FIND ALL REFS*/[|x|], y } = new Test(); -// [|x|]; y; - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === -// class Test { -// get x() { return 0; } -// -// set y(a: number) {} -// } -// const { [|x|], y } = new Test(); -// /*FIND ALL REFS*/[|x|]; y; - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === -// class Test { -// get x() { return 0; } -// -// set /*FIND ALL REFS*/[|y|](a: number) {} -// } -// const { x, [|y|] } = new Test(); -// x; y; - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === -// class Test { -// get x() { return 0; } -// -// set [|y|](a: number) {} -// } -// const { x, /*FIND ALL REFS*/[|y|] } = new Test(); -// x; [|y|]; - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === -// class Test { -// get x() { return 0; } -// -// set y(a: number) {} -// } -// const { x, [|y|] } = new Test(); -// x; /*FIND ALL REFS*/[|y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc deleted file mode 100644 index 4bd7d96f89..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /findAllRefsEnumAsNamespace.ts === -// /*FIND ALL REFS*/enum [|E|] { A } -// let e: [|E|].A; - - - -// === findAllReferences === -// === /findAllRefsEnumAsNamespace.ts === -// enum /*FIND ALL REFS*/[|E|] { A } -// let e: [|E|].A; - - - -// === findAllReferences === -// === /findAllRefsEnumAsNamespace.ts === -// enum [|E|] { A } -// let e: /*FIND ALL REFS*/[|E|].A; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc deleted file mode 100644 index caca53e1d7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /findAllRefsEnumMember.ts === -// enum E { /*FIND ALL REFS*/[|A|], B } -// const e: E.[|A|] = E.[|A|]; - - - -// === findAllReferences === -// === /findAllRefsEnumMember.ts === -// enum E { [|A|], B } -// const e: E./*FIND ALL REFS*/[|A|] = E.[|A|]; - - - -// === findAllReferences === -// === /findAllRefsEnumMember.ts === -// enum E { [|A|], B } -// const e: E.[|A|] = E./*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc deleted file mode 100644 index e745202e15..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// class C {} -// export const /*FIND ALL REFS*/[|D|] = C; - -// === /b.ts === -// import { [|D|] } from "./a"; - - - -// === findAllReferences === -// === /a.ts === -// class C {} -// export const [|D|] = C; - -// === /b.ts === -// import { /*FIND ALL REFS*/[|D|] } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc deleted file mode 100644 index af95e7e1a7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /findAllRefsExportDefaultClassConstructor.ts === -// export default class { -// /*FIND ALL REFS*/constructor() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportEquals.baseline.jsonc deleted file mode 100644 index bc114597e4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportEquals.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// type /*FIND ALL REFS*/[|T|] = number; -// export = T; - - - -// === findAllReferences === -// === /a.ts === -// type T = number; -// /*FIND ALL REFS*/export = [|T|]; - -// === /b.ts === -// import [|T|] = require("./a"); - - - -// === findAllReferences === -// === /a.ts === -// type T = number; -// export = /*FIND ALL REFS*/[|T|]; - -// === /b.ts === -// import [|T|] = require("./a"); - - - -// === findAllReferences === -// === /a.ts === -// type [|T|] = number; -// export = [|T|]; - -// === /b.ts === -// import /*FIND ALL REFS*/[|T|] = require("./a"); - - - -// === findAllReferences === -// === /a.ts === -// type [|T|] = number; -// [|export|] = [|T|]; - -// === /b.ts === -// import [|T|] = require("/*FIND ALL REFS*/[|./a|]"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc deleted file mode 100644 index 3341d80afa..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /findAllRefsExportNotAtTopLevel.ts === -// { -// /*FIND ALL REFS*/export const x = 0; -// x; -// } - - - -// === findAllReferences === -// === /findAllRefsExportNotAtTopLevel.ts === -// { -// export const /*FIND ALL REFS*/[|x|] = 0; -// [|x|]; -// } - - - -// === findAllReferences === -// === /findAllRefsExportNotAtTopLevel.ts === -// { -// export const [|x|] = 0; -// /*FIND ALL REFS*/[|x|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc deleted file mode 100644 index 11fe2e4161..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForComputedProperties.ts === -// interface I { -// ["/*FIND ALL REFS*/[|prop1|]"]: () => void; -// } -// -// class C implements I { -// ["[|prop1|]"]: any; -// } -// -// var x: I = { -// ["[|prop1|]"]: function () { }, -// } - - - -// === findAllReferences === -// === /findAllRefsForComputedProperties.ts === -// interface I { -// ["[|prop1|]"]: () => void; -// } -// -// class C implements I { -// ["/*FIND ALL REFS*/[|prop1|]"]: any; -// } -// -// var x: I = { -// ["[|prop1|]"]: function () { }, -// } - - - -// === findAllReferences === -// === /findAllRefsForComputedProperties.ts === -// interface I { -// ["[|prop1|]"]: () => void; -// } -// -// class C implements I { -// ["[|prop1|]"]: any; -// } -// -// var x: I = { -// ["/*FIND ALL REFS*/[|prop1|]"]: function () { }, -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc deleted file mode 100644 index 4f276e9251..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForComputedProperties2.ts === -// interface I { -// [/*FIND ALL REFS*/[|42|]](): void; -// } -// -// class C implements I { -// [[|42|]]: any; -// } -// -// var x: I = { -// ["[|42|]"]: function () { } -// } - - - -// === findAllReferences === -// === /findAllRefsForComputedProperties2.ts === -// interface I { -// [[|42|]](): void; -// } -// -// class C implements I { -// [/*FIND ALL REFS*/[|42|]]: any; -// } -// -// var x: I = { -// ["[|42|]"]: function () { } -// } - - - -// === findAllReferences === -// === /findAllRefsForComputedProperties2.ts === -// interface I { -// [[|42|]](): void; -// } -// -// class C implements I { -// [[|42|]]: any; -// } -// -// var x: I = { -// ["/*FIND ALL REFS*/[|42|]"]: function () { } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc deleted file mode 100644 index 0c7e30155f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export default function /*FIND ALL REFS*/[|f|]() {} - -// === /b.ts === -// import [|g|] from "./a"; -// [|g|](); - - - -// === findAllReferences === -// === /b.ts === -// import /*FIND ALL REFS*/[|g|] from "./a"; -// [|g|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc deleted file mode 100644 index f936ce1ea0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForDefaultExport01.ts === -// /*FIND ALL REFS*/export default class [|DefaultExportedClass|] { -// } -// -// var x: [|DefaultExportedClass|]; -// -// var y = new [|DefaultExportedClass|]; - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport01.ts === -// export default class /*FIND ALL REFS*/[|DefaultExportedClass|] { -// } -// -// var x: [|DefaultExportedClass|]; -// -// var y = new [|DefaultExportedClass|]; - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport01.ts === -// export default class [|DefaultExportedClass|] { -// } -// -// var x: /*FIND ALL REFS*/[|DefaultExportedClass|]; -// -// var y = new [|DefaultExportedClass|]; - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport01.ts === -// export default class [|DefaultExportedClass|] { -// } -// -// var x: [|DefaultExportedClass|]; -// -// var y = new /*FIND ALL REFS*/[|DefaultExportedClass|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc deleted file mode 100644 index 6f553cd654..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc +++ /dev/null @@ -1,94 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === -// /*FIND ALL REFS*/export default function [|DefaultExportedFunction|]() { -// return [|DefaultExportedFunction|]; -// } -// -// var x: typeof [|DefaultExportedFunction|]; -// -// var y = [|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === -// export default function /*FIND ALL REFS*/[|DefaultExportedFunction|]() { -// return [|DefaultExportedFunction|]; -// } -// -// var x: typeof [|DefaultExportedFunction|]; -// -// var y = [|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === -// export default function [|DefaultExportedFunction|]() { -// return /*FIND ALL REFS*/[|DefaultExportedFunction|]; -// } -// -// var x: typeof [|DefaultExportedFunction|]; -// -// var y = [|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === -// export default function [|DefaultExportedFunction|]() { -// return [|DefaultExportedFunction|]; -// } -// -// var x: typeof /*FIND ALL REFS*/[|DefaultExportedFunction|]; -// -// var y = [|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === -// export default function [|DefaultExportedFunction|]() { -// return [|DefaultExportedFunction|]; -// } -// -// var x: typeof [|DefaultExportedFunction|]; -// -// var y = /*FIND ALL REFS*/[|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === -// --- (line: 5) skipped --- -// -// var y = DefaultExportedFunction(); -// -// /*FIND ALL REFS*/namespace [|DefaultExportedFunction|] { -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === -// --- (line: 5) skipped --- -// -// var y = DefaultExportedFunction(); -// -// namespace /*FIND ALL REFS*/[|DefaultExportedFunction|] { -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport03.baseline.jsonc deleted file mode 100644 index 137945bf4a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport03.baseline.jsonc +++ /dev/null @@ -1,141 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForDefaultExport03.ts === -// /*FIND ALL REFS*/function [|f|]() { -// return 100; -// } -// -// export default [|f|]; -// -// var x: typeof [|f|]; -// -// var y = [|f|](); -// -// namespace [|f|] { -// var local = 100; -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport03.ts === -// function /*FIND ALL REFS*/[|f|]() { -// return 100; -// } -// -// export default [|f|]; -// -// var x: typeof [|f|]; -// -// var y = [|f|](); -// -// namespace [|f|] { -// var local = 100; -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport03.ts === -// function [|f|]() { -// return 100; -// } -// -// /*FIND ALL REFS*/export default [|f|]; -// -// var x: typeof [|f|]; -// -// var y = [|f|](); -// -// namespace [|f|] { -// var local = 100; -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport03.ts === -// function [|f|]() { -// return 100; -// } -// -// export default /*FIND ALL REFS*/[|f|]; -// -// var x: typeof [|f|]; -// -// var y = [|f|](); -// -// namespace [|f|] { -// var local = 100; -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport03.ts === -// function [|f|]() { -// return 100; -// } -// -// export default [|f|]; -// -// var x: typeof /*FIND ALL REFS*/[|f|]; -// -// var y = [|f|](); -// -// namespace [|f|] { -// var local = 100; -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport03.ts === -// function [|f|]() { -// return 100; -// } -// -// export default [|f|]; -// -// var x: typeof [|f|]; -// -// var y = /*FIND ALL REFS*/[|f|](); -// -// namespace [|f|] { -// var local = 100; -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport03.ts === -// function [|f|]() { -// return 100; -// } -// -// export default [|f|]; -// -// var x: typeof [|f|]; -// -// var y = [|f|](); -// -// /*FIND ALL REFS*/namespace [|f|] { -// var local = 100; -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport03.ts === -// function [|f|]() { -// return 100; -// } -// -// export default [|f|]; -// -// var x: typeof [|f|]; -// -// var y = [|f|](); -// -// namespace /*FIND ALL REFS*/[|f|] { -// var local = 100; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc deleted file mode 100644 index a5fd072cef..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// const /*FIND ALL REFS*/[|a|] = 0; -// export default [|a|]; - -// === /b.ts === -// import [|a|] from "./a"; -// [|a|]; - - - -// === findAllReferences === -// === /a.ts === -// const [|a|] = 0; -// export default /*FIND ALL REFS*/[|a|]; - -// === /b.ts === -// import [|a|] from "./a"; -// [|a|]; - - - -// === findAllReferences === -// === /a.ts === -// const a = 0; -// export /*FIND ALL REFS*/default a; - - - -// === findAllReferences === -// === /b.ts === -// import /*FIND ALL REFS*/[|a|] from "./a"; -// [|a|]; - - - -// === findAllReferences === -// === /b.ts === -// import [|a|] from "./a"; -// /*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc deleted file mode 100644 index 5a1931dc42..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc +++ /dev/null @@ -1,91 +0,0 @@ -// === findAllReferences === -// === /foo.ts === -// import * as /*FIND ALL REFS*/[|a|] from "./a.js" -// import aDefault from "./a.js" -// import * as b from "./b.js" -// import bDefault from "./b.js" -// // --- (line: 5) skipped --- - - - -// === findAllReferences === -// === /foo.ts === -// import * as a from "./a.js" -// import /*FIND ALL REFS*/[|aDefault|] from "./a.js" -// import * as b from "./b.js" -// import bDefault from "./b.js" -// -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /foo.ts === -// import * as a from "./a.js" -// import aDefault from "./a.js" -// import * as /*FIND ALL REFS*/[|b|] from "./b.js" -// import bDefault from "./b.js" -// -// import * as c from "./c" -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /foo.ts === -// import * as a from "./a.js" -// import aDefault from "./a.js" -// import * as b from "./b.js" -// import /*FIND ALL REFS*/[|bDefault|] from "./b.js" -// -// import * as c from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import dDefault from "./d" - - - -// === findAllReferences === -// === /foo.ts === -// import * as a from "./a.js" -// import aDefault from "./a.js" -// import * as b from "./b.js" -// import bDefault from "./b.js" -// -// import * as /*FIND ALL REFS*/[|c|] from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import dDefault from "./d" - - - -// === findAllReferences === -// === /foo.ts === -// --- (line: 3) skipped --- -// import bDefault from "./b.js" -// -// import * as c from "./c" -// import /*FIND ALL REFS*/[|cDefault|] from "./c" -// import * as d from "./d" -// import dDefault from "./d" - - - -// === findAllReferences === -// === /foo.ts === -// --- (line: 4) skipped --- -// -// import * as c from "./c" -// import cDefault from "./c" -// import * as /*FIND ALL REFS*/[|d|] from "./d" -// import dDefault from "./d" - - - -// === findAllReferences === -// === /foo.ts === -// --- (line: 5) skipped --- -// import * as c from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import /*FIND ALL REFS*/[|dDefault|] from "./d" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc deleted file mode 100644 index 5f0ee63378..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export /*FIND ALL REFS*/default 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc deleted file mode 100644 index c6e337ef4b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /export.ts === -// const /*FIND ALL REFS*/[|foo|] = 1; -// export default [|foo|]; - - - -// === findAllReferences === -// === /export.ts === -// const [|foo|] = 1; -// export default /*FIND ALL REFS*/[|foo|]; - - - -// === findAllReferences === -// === /re-export.ts === -// export { /*FIND ALL REFS*/default } from "./export"; - - - -// === findAllReferences === -// === /re-export-dep.ts === -// import /*FIND ALL REFS*/[|fooDefault|] from "./re-export"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc deleted file mode 100644 index c4f30551ac..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc +++ /dev/null @@ -1,58 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === -// function f(value: string, /*FIND ALL REFS*/default: string) {} -// -// const default = 1; -// -// // --- (line: 5) skipped --- - - - -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === -// function f(value: string, default: string) {} -// -// const /*FIND ALL REFS*/default = 1; -// -// function default() {} -// -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === -// function f(value: string, default: string) {} -// -// const default = 1; -// -// function /*FIND ALL REFS*/default() {} -// -// class default {} -// -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === -// --- (line: 3) skipped --- -// -// function default() {} -// -// class /*FIND ALL REFS*/default {} -// -// const foo = { -// default: 1 -// } - - - -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === -// --- (line: 6) skipped --- -// class default {} -// -// const foo = { -// /*FIND ALL REFS*/[|default|]: 1 -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc deleted file mode 100644 index f02db6604a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findAllReferences === -// === /file1.ts === -// var foo = /*FIND ALL REFS*/function foo(a = foo(), b = () => foo) { -// foo(foo, foo); -// } - - - -// === findAllReferences === -// === /file1.ts === -// var foo = function /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { -// [|foo|]([|foo|], [|foo|]); -// } - - - -// === findAllReferences === -// === /file1.ts === -// var foo = function [|foo|](a = /*FIND ALL REFS*/[|foo|](), b = () => [|foo|]) { -// [|foo|]([|foo|], [|foo|]); -// } - - - -// === findAllReferences === -// === /file1.ts === -// var foo = function [|foo|](a = [|foo|](), b = () => /*FIND ALL REFS*/[|foo|]) { -// [|foo|]([|foo|], [|foo|]); -// } - - - -// === findAllReferences === -// === /file1.ts === -// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { -// /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); -// } - - - -// === findAllReferences === -// === /file1.ts === -// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { -// [|foo|](/*FIND ALL REFS*/[|foo|], [|foo|]); -// } - - - -// === findAllReferences === -// === /file1.ts === -// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { -// [|foo|]([|foo|], /*FIND ALL REFS*/[|foo|]); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc deleted file mode 100644 index 571d62441b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /app.ts === -// export function [|he/*FIND ALL REFS*/llo|]() {}; - -// === /direct-use.ts === -// async function main() { -// const mod = await import("./app") -// mod.[|hello|](); -// } - -// === /indirect-use.ts === -// import("./re-export").then(mod => mod.services.app.[|hello|]()); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc deleted file mode 100644 index 7addf059ff..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /app.ts === -// export function [|he/*FIND ALL REFS*/llo|]() {}; - -// === /indirect-use.ts === -// import type { app } from "./re-export"; -// declare const app: app -// app.[|hello|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc deleted file mode 100644 index 3004bf50f2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForMappedType.ts === -// interface T { /*FIND ALL REFS*/[|a|]: number }; -// type U = { [K in keyof T]: string }; -// type V = { [K in keyof U]: boolean }; -// const u: U = { [|a|]: "" } -// const v: V = { [|a|]: true } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc deleted file mode 100644 index 0ee98f9be7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc +++ /dev/null @@ -1,43 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForObjectLiteralProperties.ts === -// var x = { -// /*FIND ALL REFS*/[|property|]: {} -// }; -// -// x.[|property|]; -// -// let {[|property|]: pVar} = x; - - - -// === findAllReferences === -// === /findAllRefsForObjectLiteralProperties.ts === -// var x = { -// [|property|]: {} -// }; -// -// x./*FIND ALL REFS*/[|property|]; -// -// let {[|property|]: pVar} = x; - - - -// === findAllReferences === -// === /findAllRefsForObjectLiteralProperties.ts === -// --- (line: 3) skipped --- -// -// x.property; -// -// /*FIND ALL REFS*/let {property: pVar} = x; - - - -// === findAllReferences === -// === /findAllRefsForObjectLiteralProperties.ts === -// var x = { -// [|property|]: {} -// }; -// -// x.[|property|]; -// -// let {/*FIND ALL REFS*/[|property|]: pVar} = x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc deleted file mode 100644 index 89ba3ee24a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForObjectSpread.ts === -// interface A1 { readonly /*FIND ALL REFS*/[|a|]: string }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.[|a|]; -// a1.[|a|]; - - - -// === findAllReferences === -// === /findAllRefsForObjectSpread.ts === -// interface A1 { readonly a: string }; -// interface A2 { /*FIND ALL REFS*/[|a|]?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.[|a|]; -// a1.a; - - - -// === findAllReferences === -// === /findAllRefsForObjectSpread.ts === -// interface A1 { readonly [|a|]: string }; -// interface A2 { [|a|]?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12./*FIND ALL REFS*/[|a|]; -// a1.[|a|]; - - - -// === findAllReferences === -// === /findAllRefsForObjectSpread.ts === -// interface A1 { readonly [|a|]: string }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.[|a|]; -// a1./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc deleted file mode 100644 index fa428c7a86..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForRest.ts === -// interface Gen { -// x: number -// /*FIND ALL REFS*/[|parent|]: Gen; -// millenial: string; -// } -// let t: Gen; -// var { x, ...rest } = t; -// rest.[|parent|]; - - - -// === findAllReferences === -// === /findAllRefsForRest.ts === -// interface Gen { -// x: number -// [|parent|]: Gen; -// millenial: string; -// } -// let t: Gen; -// var { x, ...rest } = t; -// rest./*FIND ALL REFS*/[|parent|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc deleted file mode 100644 index 872fa19d94..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc +++ /dev/null @@ -1,91 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForStaticInstanceMethodInheritance.ts === -// class X{ -// /*FIND ALL REFS*/[|foo|](): void{} -// } -// -// class Y extends X{ -// static foo(): void{} -// } -// -// class Z extends Y{ -// static foo(): void{} -// [|foo|](): void{} -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|](); -// y.[|foo|](); -// z.[|foo|](); -// Y.foo(); -// Z.foo(); - - - -// === findAllReferences === -// === /findAllRefsForStaticInstanceMethodInheritance.ts === -// class X{ -// foo(): void{} -// } -// -// class Y extends X{ -// static /*FIND ALL REFS*/[|foo|](): void{} -// } -// -// class Z extends Y{ -// // --- (line: 10) skipped --- - -// --- (line: 16) skipped --- -// x.foo(); -// y.foo(); -// z.foo(); -// Y.[|foo|](); -// Z.foo(); - - - -// === findAllReferences === -// === /findAllRefsForStaticInstanceMethodInheritance.ts === -// --- (line: 6) skipped --- -// } -// -// class Z extends Y{ -// static /*FIND ALL REFS*/[|foo|](): void{} -// foo(): void{} -// } -// -// // --- (line: 14) skipped --- - -// --- (line: 17) skipped --- -// y.foo(); -// z.foo(); -// Y.foo(); -// Z.[|foo|](); - - - -// === findAllReferences === -// === /findAllRefsForStaticInstanceMethodInheritance.ts === -// class X{ -// [|foo|](): void{} -// } -// -// class Y extends X{ -// static foo(): void{} -// } -// -// class Z extends Y{ -// static foo(): void{} -// /*FIND ALL REFS*/[|foo|](): void{} -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|](); -// y.[|foo|](); -// z.[|foo|](); -// Y.foo(); -// Z.foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc deleted file mode 100644 index ef28551cd5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc +++ /dev/null @@ -1,211 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// /*FIND ALL REFS*/[|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// [|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|]; -// y.[|foo|]; -// z.[|foo|]; -// Y.foo; -// Z.foo; - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// foo:any -// } -// -// class Y extends X{ -// static /*FIND ALL REFS*/[|foo|]:any -// } -// -// class Z extends Y{ -// // --- (line: 10) skipped --- - -// --- (line: 16) skipped --- -// x.foo; -// y.foo; -// z.foo; -// Y.[|foo|]; -// Z.foo; - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// --- (line: 6) skipped --- -// } -// -// class Z extends Y{ -// static /*FIND ALL REFS*/[|foo|]:any -// foo:any -// } -// -// // --- (line: 14) skipped --- - -// --- (line: 17) skipped --- -// y.foo; -// z.foo; -// Y.foo; -// Z.[|foo|]; - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// [|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// /*FIND ALL REFS*/[|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|]; -// y.[|foo|]; -// z.[|foo|]; -// Y.foo; -// Z.foo; - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// [|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// [|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x./*FIND ALL REFS*/[|foo|]; -// y.[|foo|]; -// z.[|foo|]; -// Y.foo; -// Z.foo; - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// [|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// [|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|]; -// y./*FIND ALL REFS*/[|foo|]; -// z.[|foo|]; -// Y.foo; -// Z.foo; - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// [|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// [|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|]; -// y.[|foo|]; -// z./*FIND ALL REFS*/[|foo|]; -// Y.foo; -// Z.foo; - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// foo:any -// } -// -// class Y extends X{ -// static [|foo|]:any -// } -// -// class Z extends Y{ -// // --- (line: 10) skipped --- - -// --- (line: 16) skipped --- -// x.foo; -// y.foo; -// z.foo; -// Y./*FIND ALL REFS*/[|foo|]; -// Z.foo; - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === -// --- (line: 6) skipped --- -// } -// -// class Z extends Y{ -// static [|foo|]:any -// foo:any -// } -// -// // --- (line: 14) skipped --- - -// --- (line: 17) skipped --- -// y.foo; -// z.foo; -// Y.foo; -// Z./*FIND ALL REFS*/[|foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc deleted file mode 100644 index 25e25f788a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// interface Foo { -// property: /*FIND ALL REFS*/"foo"; -// } -// /** -// * @type {{ property: "foo"}} -// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc deleted file mode 100644 index 761c82bd75..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForStringLiteralTypes.ts === -// type Options = "/*FIND ALL REFS*/option 1" | "option 2"; -// let myOption: Options = "option 1"; - - - -// === findAllReferences === -// === /findAllRefsForStringLiteralTypes.ts === -// type Options = "option 1" | "option 2"; -// let myOption: Options = "/*FIND ALL REFS*/option 1"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc deleted file mode 100644 index 544b2dd589..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === findAllReferences === -// === /0.d.ts === -// export function doThing(): string; -// export function doTheOtherThing(): void; -// /*FIND ALL REFS*/export as namespace myLib; - - - -// === findAllReferences === -// === /0.d.ts === -// export function doThing(): string; -// export function doTheOtherThing(): void; -// export as namespace /*FIND ALL REFS*/[|myLib|]; - -// === /1.ts === -// /// -// [|myLib|].doThing(); - - - -// === findAllReferences === -// === /0.d.ts === -// export function doThing(): string; -// export function doTheOtherThing(): void; -// export as namespace [|myLib|]; - -// === /1.ts === -// /// -// /*FIND ALL REFS*/[|myLib|].doThing(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc deleted file mode 100644 index 4064c53b01..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause01.ts === -// /*FIND ALL REFS*/var [|Base|] = class { }; -// class C extends [|Base|] { } - - - -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause01.ts === -// var /*FIND ALL REFS*/[|Base|] = class { }; -// class C extends [|Base|] { } - - - -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause01.ts === -// var [|Base|] = class { }; -// class C extends /*FIND ALL REFS*/[|Base|] { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc deleted file mode 100644 index 692886f089..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause02.ts === -// /*FIND ALL REFS*/interface [|Base|] { } -// namespace n { -// var Base = class { }; -// interface I extends [|Base|] { } -// } - - - -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause02.ts === -// interface /*FIND ALL REFS*/[|Base|] { } -// namespace n { -// var Base = class { }; -// interface I extends [|Base|] { } -// } - - - -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause02.ts === -// interface [|Base|] { } -// namespace n { -// var Base = class { }; -// interface I extends /*FIND ALL REFS*/[|Base|] { } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc deleted file mode 100644 index 87c2ca3367..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForVariableInImplementsClause01.ts === -// var Base = class { }; -// class C extends Base implements /*FIND ALL REFS*/Base { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc deleted file mode 100644 index 6cdbc9c1bc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /findAllRefsGlobalThisKeywordInModule.ts === -// /*FIND ALL REFS*/this; -// export const c = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc deleted file mode 100644 index d1ae3b9984..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /findAllRefsImportEquals.ts === -// import j = N./*FIND ALL REFS*/[|q|]; -// namespace N { export const q = 0; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc deleted file mode 100644 index 479db50506..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /a.js === -// module.exports = 0; -// /*FIND ALL REFS*/export type [|N|] = number; - -// === /b.js === -// type T = import("./a").[|N|]; - - - -// === findAllReferences === -// === /a.js === -// module.exports = 0; -// export type /*FIND ALL REFS*/[|N|] = number; - -// === /b.js === -// type T = import("./a").[|N|]; - - - -// === findAllReferences === -// === /b.js === -// type T = import("./a")./*FIND ALL REFS*/N; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc deleted file mode 100644 index 1b7957d5e9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInClassExpression.ts === -// interface I { /*FIND ALL REFS*/[|boom|](): void; } -// new class C implements I { -// [|boom|](){} -// } - - - -// === findAllReferences === -// === /findAllRefsInClassExpression.ts === -// interface I { [|boom|](): void; } -// new class C implements I { -// /*FIND ALL REFS*/[|boom|](){} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc deleted file mode 100644 index d725fe036e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /findAllRefsIndexedAccessTypes.ts === -// interface I { -// /*FIND ALL REFS*/[|0|]: number; -// s: string; -// } -// interface J { -// a: I[[|0|]], -// b: I["s"], -// } - - - -// === findAllReferences === -// === /findAllRefsIndexedAccessTypes.ts === -// interface I { -// 0: number; -// /*FIND ALL REFS*/[|s|]: string; -// } -// interface J { -// a: I[0], -// b: I["[|s|]"], -// } - - - -// === findAllReferences === -// === /findAllRefsIndexedAccessTypes.ts === -// interface I { -// [|0|]: number; -// s: string; -// } -// interface J { -// a: I[/*FIND ALL REFS*/[|0|]], -// b: I["s"], -// } - - - -// === findAllReferences === -// === /findAllRefsIndexedAccessTypes.ts === -// interface I { -// 0: number; -// [|s|]: string; -// } -// interface J { -// a: I[0], -// b: I["/*FIND ALL REFS*/[|s|]"], -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc deleted file mode 100644 index 785fffc0b1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties1.ts === -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// -// var v: class1; -// v.[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties1.ts === -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var v: class1; -// v.doStuff(); -// v.[|propName|]; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties1.ts === -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class1; -// v./*FIND ALL REFS*/[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties1.ts === -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class1; -// v.doStuff(); -// v./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc deleted file mode 100644 index e97abb0aa8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties2.ts === -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; // r0 -// propName: string; // r1 -// } -// -// var v: interface1; -// v.[|doStuff|](); // r2 -// v.propName; // r3 - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties2.ts === -// interface interface1 extends interface1 { -// doStuff(): void; // r0 -// /*FIND ALL REFS*/[|propName|]: string; // r1 -// } -// -// var v: interface1; -// v.doStuff(); // r2 -// v.[|propName|]; // r3 - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties2.ts === -// interface interface1 extends interface1 { -// [|doStuff|](): void; // r0 -// propName: string; // r1 -// } -// -// var v: interface1; -// v./*FIND ALL REFS*/[|doStuff|](); // r2 -// v.propName; // r3 - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties2.ts === -// interface interface1 extends interface1 { -// doStuff(): void; // r0 -// [|propName|]: string; // r1 -// } -// -// var v: interface1; -// v.doStuff(); // r2 -// v./*FIND ALL REFS*/[|propName|]; // r3 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc deleted file mode 100644 index 5ea694ce25..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc +++ /dev/null @@ -1,163 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === -// class class1 extends class1 { -// doStuff() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === -// --- (line: 3) skipped --- -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v./*FIND ALL REFS*/[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc deleted file mode 100644 index 7574b69cc6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc +++ /dev/null @@ -1,70 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === -// interface C extends D { -// /*FIND ALL REFS*/[|prop0|]: string; -// prop1: number; -// } -// -// interface D extends C { -// [|prop0|]: string; -// } -// -// var d: D; -// d.[|prop0|]; -// d.prop1; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === -// interface C extends D { -// [|prop0|]: string; -// prop1: number; -// } -// -// interface D extends C { -// /*FIND ALL REFS*/[|prop0|]: string; -// } -// -// var d: D; -// d.[|prop0|]; -// d.prop1; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === -// interface C extends D { -// [|prop0|]: string; -// prop1: number; -// } -// -// interface D extends C { -// [|prop0|]: string; -// } -// -// var d: D; -// d./*FIND ALL REFS*/[|prop0|]; -// d.prop1; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === -// interface C extends D { -// prop0: string; -// /*FIND ALL REFS*/[|prop1|]: number; -// } -// -// interface D extends C { -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === -// --- (line: 8) skipped --- -// -// var d: D; -// d.prop0; -// d./*FIND ALL REFS*/prop1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc deleted file mode 100644 index 0e213dc93d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc +++ /dev/null @@ -1,60 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === -// class C extends D { -// /*FIND ALL REFS*/[|prop0|]: string; -// prop1: number; -// } -// -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === -// class C extends D { -// prop0: string; -// /*FIND ALL REFS*/[|prop1|]: number; -// } -// -// class D extends C { -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === -// --- (line: 3) skipped --- -// } -// -// class D extends C { -// /*FIND ALL REFS*/[|prop0|]: string; -// } -// -// var d: D; -// d.[|prop0|]; -// d.prop1; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === -// --- (line: 3) skipped --- -// } -// -// class D extends C { -// [|prop0|]: string; -// } -// -// var d: D; -// d./*FIND ALL REFS*/[|prop0|]; -// d.prop1; - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === -// --- (line: 8) skipped --- -// -// var d: D; -// d.prop0; -// d./*FIND ALL REFS*/prop1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc deleted file mode 100644 index b433189590..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInsideTemplates1.ts === -// /*FIND ALL REFS*/var [|x|] = 10; -// var y = `${ [|x|] } ${ [|x|] }` - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates1.ts === -// var /*FIND ALL REFS*/[|x|] = 10; -// var y = `${ [|x|] } ${ [|x|] }` - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates1.ts === -// var [|x|] = 10; -// var y = `${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates1.ts === -// var [|x|] = 10; -// var y = `${ [|x|] } ${ /*FIND ALL REFS*/[|x|] }` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc deleted file mode 100644 index 8ca4acea24..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === -// /*FIND ALL REFS*/function [|f|](...rest: any[]) { } -// [|f|] `${ [|f|] } ${ [|f|] }` - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === -// function /*FIND ALL REFS*/[|f|](...rest: any[]) { } -// [|f|] `${ [|f|] } ${ [|f|] }` - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === -// function [|f|](...rest: any[]) { } -// /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === -// function [|f|](...rest: any[]) { } -// [|f|] `${ /*FIND ALL REFS*/[|f|] } ${ [|f|] }` - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === -// function [|f|](...rest: any[]) { } -// [|f|] `${ [|f|] } ${ /*FIND ALL REFS*/[|f|] }` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc deleted file mode 100644 index 19b1d2ba3d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInsideWithBlock.ts === -// /*FIND ALL REFS*/var [|x|] = 0; -// -// with ({}) { -// var y = x; // Reference of x here should not be picked -// y++; // also reference for y should be ignored -// } -// -// [|x|] = [|x|] + 1; - - - -// === findAllReferences === -// === /findAllRefsInsideWithBlock.ts === -// var /*FIND ALL REFS*/[|x|] = 0; -// -// with ({}) { -// var y = x; // Reference of x here should not be picked -// y++; // also reference for y should be ignored -// } -// -// [|x|] = [|x|] + 1; - - - -// === findAllReferences === -// === /findAllRefsInsideWithBlock.ts === -// var [|x|] = 0; -// -// with ({}) { -// var y = x; // Reference of x here should not be picked -// y++; // also reference for y should be ignored -// } -// -// /*FIND ALL REFS*/[|x|] = [|x|] + 1; - - - -// === findAllReferences === -// === /findAllRefsInsideWithBlock.ts === -// var [|x|] = 0; -// -// with ({}) { -// var y = x; // Reference of x here should not be picked -// y++; // also reference for y should be ignored -// } -// -// [|x|] = /*FIND ALL REFS*/[|x|] + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc deleted file mode 100644 index b1d0fc3619..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc +++ /dev/null @@ -1,103 +0,0 @@ -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === -// declare function [|foo|](a: number): number; -// declare function [|foo|](a: string): string; -// declare function [|foo|]/*FIND ALL REFS*/(a: string | number): string | number; -// -// function foon(a: number): number; -// function foon(a: string): string; -// function foon(a: string | number): string | number { -// return a -// } -// -// [|foo|]; foon; -// -// export const bar = 123; -// console.log({ bar }); -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === -// declare function foo(a: number): number; -// declare function foo(a: string): string; -// declare function foo(a: string | number): string | number; -// -// function [|foon|](a: number): number; -// function [|foon|](a: string): string; -// function [|foon|]/*FIND ALL REFS*/(a: string | number): string | number { -// return a -// } -// -// foo; [|foon|]; -// -// export const bar = 123; -// console.log({ bar }); -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === -// --- (line: 9) skipped --- -// -// foo; foon; -// -// export const [|bar|]/*FIND ALL REFS*/ = 123; -// console.log({ [|bar|] }); -// -// interface IFoo { -// foo(): void; -// // --- (line: 18) skipped --- - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === -// --- (line: 13) skipped --- -// console.log({ bar }); -// -// interface IFoo { -// [|foo|]/*FIND ALL REFS*/(): void; -// } -// class Foo implements IFoo { -// constructor(n: number) -// constructor() -// constructor(n: number?) { } -// [|foo|](): void { } -// static init() { return new this() } -// } - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === -// --- (line: 16) skipped --- -// foo(): void; -// } -// class Foo implements IFoo { -// [|constructor|](n: number) -// [|constructor|]() -// /*FIND ALL REFS*/[|constructor|](n: number?) { } -// foo(): void { } -// static init() { return new [|this|]() } -// } - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === -// --- (line: 13) skipped --- -// console.log({ bar }); -// -// interface IFoo { -// [|foo|](): void; -// } -// class Foo implements IFoo { -// constructor(n: number) -// constructor() -// constructor(n: number?) { } -// [|foo|]/*FIND ALL REFS*/(): void { } -// static init() { return new this() } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc deleted file mode 100644 index 8d4374f0f1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /a.js === -// /** -// * @import { [|A|] } from "./b"; -// */ -// -// /** -// * @param { [|A|]/*FIND ALL REFS*/ } a -// */ -// function f(a) {} - -// === /b.ts === -// export interface [|A|] { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc deleted file mode 100644 index 44d151af3a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /component.js === -// export default class [|Component|] { -// constructor() { -// this.id_ = Math.random(); -// } -// // --- (line: 5) skipped --- - -// === /player.js === -// import [|Component|] from './component.js'; -// -// /** -// * @extends [|Component|]/*FIND ALL REFS*/ -// */ -// export class Player extends [|Component|] {} - -// === /spatial-navigation.js === -// /** @import [|Component|] from './component.js' */ -// -// export class SpatialNavigation { -// /** -// * @param {[|Component|]} component -// */ -// add(component) {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc deleted file mode 100644 index fe331dd151..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /component.js === -// export class [|Component|] { -// constructor() { -// this.id_ = Math.random(); -// } -// // --- (line: 5) skipped --- - -// === /player.js === -// import { [|Component|] } from './component.js'; -// -// /** -// * @extends [|Component|]/*FIND ALL REFS*/ -// */ -// export class Player extends [|Component|] {} - -// === /spatial-navigation.js === -// /** @import { [|Component|] } from './component.js' */ -// -// export class SpatialNavigation { -// /** -// * @param {[|Component|]} component -// */ -// add(component) {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc deleted file mode 100644 index c3af1c6944..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /player.js === -// import * as [|C|] from './component.js'; -// -// /** -// * @extends [|C|]/*FIND ALL REFS*/.Component -// */ -// export class Player extends Component {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc deleted file mode 100644 index 9d98322358..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findAllReferences === -// === /a.js === -// export default function /*FIND ALL REFS*/[|a|]() {} - -// === /b.js === -// /** @import [|a|], * as ns from "./a" */ - - - -// === findAllReferences === -// === /a.js === -// export default function [|a|]() {} - -// === /b.js === -// /** @import /*FIND ALL REFS*/[|a|], * as ns from "./a" */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc deleted file mode 100644 index 587b5c0e14..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /findAllRefsJsDocTemplateTag_class.ts === -// /** @template /*FIND ALL REFS*/T */ -// class C {} - - - -// === findAllReferences === -// === /findAllRefsJsDocTemplateTag_class.ts === -// /** @template T */ -// class C {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc deleted file mode 100644 index 132af93f79..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /findAllRefsJsDocTemplateTag_function.ts === -// /** @template /*FIND ALL REFS*/T */ -// function f() {} - - - -// === findAllReferences === -// === /findAllRefsJsDocTemplateTag_function.ts === -// /** @template T */ -// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc deleted file mode 100644 index 7abed0e240..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /findAllRefsJsDocTypeDef.ts === -// /** @typedef {Object} /*FIND ALL REFS*/T */ -// function foo() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc deleted file mode 100644 index 10c5f56ae9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /a.js === -// import { infer } from "./infer"; -// infer({ -// m() { -// this.[|x|] = 1; -// this./*FIND ALL REFS*/[|x|]; -// }, -// }); - -// === /infer.d.ts === -// export declare function infer(o: { m(): void } & ThisType<{ [|x|]: number }>): void; - - - -// === findAllReferences === -// === /b.js === -// --- (line: 4) skipped --- -// function infer(o) {} -// infer({ -// m() { -// this.[|x|] = 2; -// this./*FIND ALL REFS*/[|x|]; -// }, -// }); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc deleted file mode 100644 index 031de898a8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findAllReferences === -// === /a.js === -// import { infer } from "./infer"; -// infer({ -// m: { -// initData() { -// this.[|x|] = 1; -// this./*FIND ALL REFS*/[|x|]; -// }, -// } -// }); - -// === /b.ts === -// import { infer } from "./infer"; -// infer({ -// m: { -// initData() { -// this.[|x|] = 1; -// this.[|x|]; -// }, -// } -// }); - -// === /infer.d.ts === -// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; - - - -// === findAllReferences === -// === /a.js === -// import { infer } from "./infer"; -// infer({ -// m: { -// initData() { -// this.[|x|] = 1; -// this.[|x|]; -// }, -// } -// }); - -// === /b.ts === -// import { infer } from "./infer"; -// infer({ -// m: { -// initData() { -// this.[|x|] = 1; -// this./*FIND ALL REFS*/[|x|]; -// }, -// } -// }); - -// === /infer.d.ts === -// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc deleted file mode 100644 index 87daf167b0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /findAllRefsMappedType.ts === -// interface T { /*FIND ALL REFS*/[|a|]: number; } -// type U = { readonly [K in keyof T]?: string }; -// declare const t: T; -// t.[|a|]; -// declare const u: U; -// u.[|a|]; - - - -// === findAllReferences === -// === /findAllRefsMappedType.ts === -// interface T { [|a|]: number; } -// type U = { readonly [K in keyof T]?: string }; -// declare const t: T; -// t./*FIND ALL REFS*/[|a|]; -// declare const u: U; -// u.[|a|]; - - - -// === findAllReferences === -// === /findAllRefsMappedType.ts === -// interface T { [|a|]: number; } -// type U = { readonly [K in keyof T]?: string }; -// declare const t: T; -// t.[|a|]; -// declare const u: U; -// u./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc deleted file mode 100644 index fbc0d6c2b1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findAllReferences === -// === /findAllRefsMappedType_nonHomomorphic.ts === -// function f(x: { [K in "m"]: number; }) { -// x./*FIND ALL REFS*/[|m|]; -// x.[|m|] -// } - - - -// === findAllReferences === -// === /findAllRefsMappedType_nonHomomorphic.ts === -// function f(x: { [K in "m"]: number; }) { -// x.[|m|]; -// x./*FIND ALL REFS*/[|m|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc deleted file mode 100644 index 6aaee5897e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /findAllRefsMissingModulesOverlappingSpecifiers.ts === -// // https://github.com/microsoft/TypeScript/issues/5551 -// import { resolve/*FIND ALL REFS*/ as resolveUrl } from "idontcare"; -// import { resolve } from "whatever"; - - - -// === findAllReferences === -// === /findAllRefsMissingModulesOverlappingSpecifiers.ts === -// // https://github.com/microsoft/TypeScript/issues/5551 -// import { resolve as resolveUrl } from "idontcare"; -// import { [|resolve|]/*FIND ALL REFS*/ } from "whatever"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc deleted file mode 100644 index 7538271b44..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/export const x = 0; - - - -// === findAllReferences === -// === /a.ts === -// export const /*FIND ALL REFS*/[|x|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc deleted file mode 100644 index f475c56be3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /findAllRefsNoSubstitutionTemplateLiteralNoCrash1.ts === -// type Test = `T/*FIND ALL REFS*/`; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc deleted file mode 100644 index 851c5ebc14..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findAllReferences === -// === /import.ts === -// import "./script/*FIND ALL REFS*/"; - - - -// === findAllReferences === -// === /require.js === -// require("./script/*FIND ALL REFS*/"); -// console.log("./script"); - - - -// === findAllReferences === -// === /require.js === -// require("./script"); -// console.log("./script/*FIND ALL REFS*/"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc deleted file mode 100644 index effe8abd26..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /src/parser.js === -// --- (line: 10) skipped --- -// variable: function () { -// let name; -// -// if (parserInput.currentChar() === "/*FIND ALL REFS*/@") { -// return name[1]; -// } -// }, -// // --- (line: 18) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc deleted file mode 100644 index 88473b4793..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName01.ts === -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { [|property1|]: prop1 } = foo; - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName01.ts === -// --- (line: 3) skipped --- -// } -// -// var foo: I; -// /*FIND ALL REFS*/var { property1: prop1 } = foo; - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName01.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { /*FIND ALL REFS*/[|property1|]: prop1 } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc deleted file mode 100644 index a20ffda8ca..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName02.ts === -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { [|property1|]: {} } = foo; - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName02.ts === -// --- (line: 3) skipped --- -// } -// -// var foo: I; -// /*FIND ALL REFS*/var { property1: {} } = foo; - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName02.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { /*FIND ALL REFS*/[|property1|]: {} } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc deleted file mode 100644 index 4a97e32610..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName03.ts === -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var [ { [|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName03.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var [ { [|property1|]: prop1 }, { /*FIND ALL REFS*/[|property1|], property2 } ] = [foo, foo]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc deleted file mode 100644 index 8a01daa2da..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc +++ /dev/null @@ -1,59 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName04.ts === -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// function f({ [|property1|]: p1 }: I, -// { [|property1|] }: I, -// { property1: p2 }) { -// -// return property1 + 1; -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName04.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// function f({ /*FIND ALL REFS*/[|property1|]: p1 }: I, -// { [|property1|] }: I, -// { property1: p2 }) { -// -// return property1 + 1; -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName04.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// function f({ [|property1|]: p1 }: I, -// { /*FIND ALL REFS*/[|property1|] }: I, -// { property1: p2 }) { -// -// return [|property1|] + 1; -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName04.ts === -// --- (line: 3) skipped --- -// } -// -// function f({ property1: p1 }: I, -// { [|property1|] }: I, -// { property1: p2 }) { -// -// return /*FIND ALL REFS*/[|property1|] + 1; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc deleted file mode 100644 index fc60af735d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName05.ts === -// interface I { -// property1: number; -// property2: string; -// } -// -// function f({ /*FIND ALL REFS*/property1: p }, { property1 }) { -// let x = property1; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc deleted file mode 100644 index bb0311f6e4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc +++ /dev/null @@ -1,97 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { [|property1|]: p } of elems) { -// } -// for (let { [|property1|] } of elems) { -// } -// for (var { [|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ [|property1|] : p2 } of elems) { -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { /*FIND ALL REFS*/[|property1|]: p } of elems) { -// } -// for (let { [|property1|] } of elems) { -// } -// for (var { [|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ [|property1|] : p2 } of elems) { -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { [|property1|]: p } of elems) { -// } -// for (let { [|property1|] } of elems) { -// } -// for (var { /*FIND ALL REFS*/[|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ [|property1|] : p2 } of elems) { -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { [|property1|]: p } of elems) { -// } -// for (let { [|property1|] } of elems) { -// } -// for (var { [|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ /*FIND ALL REFS*/[|property1|] : p2 } of elems) { -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { [|property1|]: p } of elems) { -// } -// for (let { /*FIND ALL REFS*/[|property1|] } of elems) { -// } -// for (var { [|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ [|property1|] : p2 } of elems) { -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc deleted file mode 100644 index 46279d6946..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName07.ts === -// let p, b; -// -// p, [{ /*FIND ALL REFS*/[|a|]: p, b }] = [{ [|a|]: 10, b: true }]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc deleted file mode 100644 index 369cf2fa1d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName10.ts === -// interface Recursive { -// /*FIND ALL REFS*/[|next|]?: Recursive; -// value: any; -// } -// -// function f ({ [|next|]: { [|next|]: x} }: Recursive) { -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName10.ts === -// interface Recursive { -// next?: Recursive; -// value: any; -// } -// -// function f (/*FIND ALL REFS*/{ next: { next: x} }: Recursive) { -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName10.ts === -// interface Recursive { -// [|next|]?: Recursive; -// value: any; -// } -// -// function f ({ /*FIND ALL REFS*/[|next|]: { [|next|]: x} }: Recursive) { -// } - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName10.ts === -// interface Recursive { -// [|next|]?: Recursive; -// value: any; -// } -// -// function f ({ [|next|]: { /*FIND ALL REFS*/[|next|]: x} }: Recursive) { -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc deleted file mode 100644 index 1843c960f8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /findAllRefsOfConstructor_withModifier.ts === -// class X { -// public /*FIND ALL REFS*/[|constructor|]() {} -// } -// var x = new [|X|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc deleted file mode 100644 index a362eb779e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc +++ /dev/null @@ -1,93 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/function [|decorator|](target) { -// return target; -// } -// [|decorator|](); - -// === /b.ts === -// @[|decorator|] @[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - -// === findAllReferences === -// === /a.ts === -// function /*FIND ALL REFS*/[|decorator|](target) { -// return target; -// } -// [|decorator|](); - -// === /b.ts === -// @[|decorator|] @[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - -// === findAllReferences === -// === /a.ts === -// function [|decorator|](target) { -// return target; -// } -// /*FIND ALL REFS*/[|decorator|](); - -// === /b.ts === -// @[|decorator|] @[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - -// === findAllReferences === -// === /a.ts === -// function [|decorator|](target) { -// return target; -// } -// [|decorator|](); - -// === /b.ts === -// @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - -// === findAllReferences === -// === /a.ts === -// function [|decorator|](target) { -// return target; -// } -// [|decorator|](); - -// === /b.ts === -// @[|decorator|] @/*FIND ALL REFS*/[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - -// === findAllReferences === -// === /a.ts === -// function [|decorator|](target) { -// return target; -// } -// [|decorator|](); - -// === /b.ts === -// @[|decorator|] @[|decorator|]("again") -// class C { -// @/*FIND ALL REFS*/[|decorator|] -// method() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc deleted file mode 100644 index 1ce9c15254..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc +++ /dev/null @@ -1,60 +0,0 @@ -// === findAllReferences === -// === /findAllRefsOnDefinition-import.ts === -// --- (line: 3) skipped --- -// -// } -// -// /*FIND ALL REFS*/public [|start|](){ -// return this; -// } -// -// // --- (line: 11) skipped --- - -// === /findAllRefsOnDefinition.ts === -// import Second = require("./findAllRefsOnDefinition-import"); -// -// var second = new Second.Test() -// second.[|start|](); -// second.stop(); - - - -// === findAllReferences === -// === /findAllRefsOnDefinition-import.ts === -// --- (line: 3) skipped --- -// -// } -// -// public /*FIND ALL REFS*/[|start|](){ -// return this; -// } -// -// // --- (line: 11) skipped --- - -// === /findAllRefsOnDefinition.ts === -// import Second = require("./findAllRefsOnDefinition-import"); -// -// var second = new Second.Test() -// second.[|start|](); -// second.stop(); - - - -// === findAllReferences === -// === /findAllRefsOnDefinition-import.ts === -// --- (line: 3) skipped --- -// -// } -// -// public [|start|](){ -// return this; -// } -// -// // --- (line: 11) skipped --- - -// === /findAllRefsOnDefinition.ts === -// import Second = require("./findAllRefsOnDefinition-import"); -// -// var second = new Second.Test() -// second./*FIND ALL REFS*/[|start|](); -// second.stop(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc deleted file mode 100644 index 948c4ea942..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === findAllReferences === -// === /findAllRefsOnDefinition2-import.ts === -// export module Test{ -// -// /*FIND ALL REFS*/export interface [|start|] { } -// -// export interface stop { } -// } - -// === /findAllRefsOnDefinition2.ts === -// import Second = require("./findAllRefsOnDefinition2-import"); -// -// var start: Second.Test.[|start|]; -// var stop: Second.Test.stop; - - - -// === findAllReferences === -// === /findAllRefsOnDefinition2-import.ts === -// export module Test{ -// -// export interface /*FIND ALL REFS*/[|start|] { } -// -// export interface stop { } -// } - -// === /findAllRefsOnDefinition2.ts === -// import Second = require("./findAllRefsOnDefinition2-import"); -// -// var start: Second.Test.[|start|]; -// var stop: Second.Test.stop; - - - -// === findAllReferences === -// === /findAllRefsOnDefinition2-import.ts === -// export module Test{ -// -// export interface [|start|] { } -// -// export interface stop { } -// } - -// === /findAllRefsOnDefinition2.ts === -// import Second = require("./findAllRefsOnDefinition2-import"); -// -// var start: Second.Test./*FIND ALL REFS*/[|start|]; -// var stop: Second.Test.stop; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc deleted file mode 100644 index 0074e398ae..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export class /*FIND ALL REFS*/[|Class|] { -// } - -// === /b.ts === -// import { [|Class|] } from "./a"; -// -// var c = new [|Class|](); - - - -// === findAllReferences === -// === /a.ts === -// export class [|Class|] { -// } - -// === /b.ts === -// import { /*FIND ALL REFS*/[|Class|] } from "./a"; -// -// var c = new [|Class|](); - - - -// === findAllReferences === -// === /a.ts === -// export class [|Class|] { -// } - -// === /b.ts === -// import { [|Class|] } from "./a"; -// -// var c = new /*FIND ALL REFS*/[|Class|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc deleted file mode 100644 index 78284dcace..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export class /*FIND ALL REFS*/[|Class|] {} - -// === /b.ts === -// import { [|Class|] as [|C2|] } from "./a"; -// var c = new [|C2|](); - -// === /c.ts === -// export { [|Class|] as C3 } from "./a"; - - - -// === findAllReferences === -// === /a.ts === -// export class [|Class|] {} - -// === /b.ts === -// import { /*FIND ALL REFS*/[|Class|] as [|C2|] } from "./a"; -// var c = new [|C2|](); - -// === /c.ts === -// export { [|Class|] as C3 } from "./a"; - - - -// === findAllReferences === -// === /a.ts === -// export class [|Class|] {} - -// === /b.ts === -// import { [|Class|] as [|C2|] } from "./a"; -// var c = new [|C2|](); - -// === /c.ts === -// export { /*FIND ALL REFS*/[|Class|] as C3 } from "./a"; - - - -// === findAllReferences === -// === /b.ts === -// import { Class as /*FIND ALL REFS*/[|C2|] } from "./a"; -// var c = new [|C2|](); - - - -// === findAllReferences === -// === /b.ts === -// import { Class as [|C2|] } from "./a"; -// var c = new /*FIND ALL REFS*/[|C2|](); - - - -// === findAllReferences === -// === /c.ts === -// export { Class as /*FIND ALL REFS*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc deleted file mode 100644 index ff228b6549..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /findAllRefsOnPrivateParameterProperty1.ts === -// class ABCD { -// constructor(private x: number, public y: number, /*FIND ALL REFS*/private [|z|]: number) { -// } -// -// func() { -// return this.[|z|]; -// } -// } - - - -// === findAllReferences === -// === /findAllRefsOnPrivateParameterProperty1.ts === -// class ABCD { -// constructor(private x: number, public y: number, private /*FIND ALL REFS*/[|z|]: number) { -// } -// -// func() { -// return this.[|z|]; -// } -// } - - - -// === findAllReferences === -// === /findAllRefsOnPrivateParameterProperty1.ts === -// class ABCD { -// constructor(private x: number, public y: number, private [|z|]: number) { -// } -// -// func() { -// return this./*FIND ALL REFS*/[|z|]; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc deleted file mode 100644 index 86c9802651..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration1.ts === -// class Foo { -// constructor(private /*FIND ALL REFS*/[|privateParam|]: number) { -// let localPrivate = [|privateParam|]; -// this.[|privateParam|] += 10; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc deleted file mode 100644 index 9a12ebdbb9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration2.ts === -// class Foo { -// constructor(public /*FIND ALL REFS*/[|publicParam|]: number) { -// let localPublic = [|publicParam|]; -// this.[|publicParam|] += 10; -// } -// } - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration2.ts === -// class Foo { -// constructor(public [|publicParam|]: number) { -// let localPublic = /*FIND ALL REFS*/[|publicParam|]; -// this.[|publicParam|] += 10; -// } -// } - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration2.ts === -// class Foo { -// constructor(public [|publicParam|]: number) { -// let localPublic = [|publicParam|]; -// this./*FIND ALL REFS*/[|publicParam|] += 10; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc deleted file mode 100644 index 3c60be1d26..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration3.ts === -// class Foo { -// constructor(protected /*FIND ALL REFS*/[|protectedParam|]: number) { -// let localProtected = [|protectedParam|]; -// this.[|protectedParam|] += 10; -// } -// } - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration3.ts === -// class Foo { -// constructor(protected [|protectedParam|]: number) { -// let localProtected = /*FIND ALL REFS*/[|protectedParam|]; -// this.[|protectedParam|] += 10; -// } -// } - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration3.ts === -// class Foo { -// constructor(protected [|protectedParam|]: number) { -// let localProtected = [|protectedParam|]; -// this./*FIND ALL REFS*/[|protectedParam|] += 10; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc deleted file mode 100644 index 035894ef83..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc +++ /dev/null @@ -1,54 +0,0 @@ -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === -// class C { -// constructor(public /*FIND ALL REFS*/[|x|]: string) { -// [|x|]; -// } -// } -// class D extends C { -// constructor(public [|x|]: string) { -// super([|x|]); -// } -// } - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === -// class C { -// constructor(public [|x|]: string) { -// /*FIND ALL REFS*/[|x|]; -// } -// } -// class D extends C { -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === -// class C { -// constructor(public [|x|]: string) { -// [|x|]; -// } -// } -// class D extends C { -// constructor(public /*FIND ALL REFS*/[|x|]: string) { -// super([|x|]); -// } -// } - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === -// class C { -// constructor(public [|x|]: string) { -// [|x|]; -// } -// } -// class D extends C { -// constructor(public [|x|]: string) { -// super(/*FIND ALL REFS*/[|x|]); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc deleted file mode 100644 index 0b90e046e7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc +++ /dev/null @@ -1,37 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPrimitiveJsDoc.ts === -// /** -// * @param {/*FIND ALL REFS*/[|number|]} n -// * @returns {[|number|]} -// */ -// function f(n: [|number|]): [|number|] {} - - - -// === findAllReferences === -// === /findAllRefsPrimitiveJsDoc.ts === -// /** -// * @param {[|number|]} n -// * @returns {/*FIND ALL REFS*/[|number|]} -// */ -// function f(n: [|number|]): [|number|] {} - - - -// === findAllReferences === -// === /findAllRefsPrimitiveJsDoc.ts === -// /** -// * @param {[|number|]} n -// * @returns {[|number|]} -// */ -// function f(n: /*FIND ALL REFS*/[|number|]): [|number|] {} - - - -// === findAllReferences === -// === /findAllRefsPrimitiveJsDoc.ts === -// /** -// * @param {[|number|]} n -// * @returns {[|number|]} -// */ -// function f(n: [|number|]): /*FIND ALL REFS*/[|number|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc deleted file mode 100644 index 590bc48285..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc +++ /dev/null @@ -1,142 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// class C { -// /*FIND ALL REFS*/get [|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// class C { -// get /*FIND ALL REFS*/[|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// class C { -// get [|#foo|](){ return 1; } -// /*FIND ALL REFS*/set [|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// class C { -// get [|#foo|](){ return 1; } -// set /*FIND ALL REFS*/[|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// class C { -// get [|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this./*FIND ALL REFS*/[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// --- (line: 11) skipped --- -// } -// } -// class E { -// /*FIND ALL REFS*/get [|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// --- (line: 11) skipped --- -// } -// } -// class E { -// get /*FIND ALL REFS*/[|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// --- (line: 11) skipped --- -// } -// } -// class E { -// get [|#foo|](){ return 1; } -// /*FIND ALL REFS*/set [|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// --- (line: 11) skipped --- -// } -// } -// class E { -// get [|#foo|](){ return 1; } -// set /*FIND ALL REFS*/[|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === -// --- (line: 11) skipped --- -// } -// } -// class E { -// get [|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this./*FIND ALL REFS*/[|#foo|](); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc deleted file mode 100644 index b115a88835..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPrivateNameMethods.ts === -// class C { -// /*FIND ALL REFS*/[|#foo|](){ } -// constructor() { -// this.[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 8) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameMethods.ts === -// class C { -// [|#foo|](){ } -// constructor() { -// this./*FIND ALL REFS*/[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 8) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameMethods.ts === -// --- (line: 10) skipped --- -// } -// } -// class E { -// /*FIND ALL REFS*/[|#foo|](){ } -// constructor() { -// this.[|#foo|](); -// } -// } - - - -// === findAllReferences === -// === /findAllRefsPrivateNameMethods.ts === -// --- (line: 10) skipped --- -// } -// } -// class E { -// [|#foo|](){ } -// constructor() { -// this./*FIND ALL REFS*/[|#foo|](); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc deleted file mode 100644 index cbc205cc2d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc +++ /dev/null @@ -1,67 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === -// class C { -// /*FIND ALL REFS*/[|#foo|] = 10; -// constructor() { -// this.[|#foo|] = 20; -// [|#foo|] in this; -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === -// class C { -// [|#foo|] = 10; -// constructor() { -// this./*FIND ALL REFS*/[|#foo|] = 20; -// [|#foo|] in this; -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === -// class C { -// [|#foo|] = 10; -// constructor() { -// this.[|#foo|] = 20; -// /*FIND ALL REFS*/[|#foo|] in this; -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === -// --- (line: 11) skipped --- -// } -// } -// class E { -// /*FIND ALL REFS*/[|#foo|]: number; -// constructor() { -// this.[|#foo|] = 20; -// } -// } - - - -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === -// --- (line: 11) skipped --- -// } -// } -// class E { -// [|#foo|]: number; -// constructor() { -// this./*FIND ALL REFS*/[|#foo|] = 20; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc deleted file mode 100644 index 8700a8fdc9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPropertyContextuallyTypedByTypeParam01.ts === -// interface IFoo { -// /*FIND ALL REFS*/[|a|]: string; -// } -// class C { -// method() { -// var x: T = { -// [|a|]: "" -// }; -// x.[|a|]; -// } -// } -// -// -// var x: IFoo = { -// [|a|]: "ss" -// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken.baseline.jsonc deleted file mode 100644 index 68ba7882f2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/export { x }; - - - -// === findAllReferences === -// === /a.ts === -// export { /*FIND ALL REFS*/x }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc deleted file mode 100644 index 6dc48c5a33..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/export { x } from "nonsense"; - - - -// === findAllReferences === -// === /a.ts === -// export { /*FIND ALL REFS*/x } from "nonsense"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc deleted file mode 100644 index 443196f6f9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === -// interface A { -// readonly /*FIND ALL REFS*/[|x|]: number | string; -// } -// interface B extends A { -// readonly [|x|]: number; -// } -// const a: A = { [|x|]: 0 }; -// const b: B = { [|x|]: 0 }; - - - -// === findAllReferences === -// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === -// interface A { -// readonly [|x|]: number | string; -// } -// interface B extends A { -// readonly /*FIND ALL REFS*/[|x|]: number; -// } -// const a: A = { [|x|]: 0 }; -// const b: B = { [|x|]: 0 }; - - - -// === findAllReferences === -// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === -// interface A { -// readonly [|x|]: number | string; -// } -// interface B extends A { -// readonly [|x|]: number; -// } -// const a: A = { /*FIND ALL REFS*/[|x|]: 0 }; -// const b: B = { [|x|]: 0 }; - - - -// === findAllReferences === -// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === -// interface A { -// readonly [|x|]: number | string; -// } -// interface B extends A { -// readonly [|x|]: number; -// } -// const a: A = { [|x|]: 0 }; -// const b: B = { /*FIND ALL REFS*/[|x|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc deleted file mode 100644 index 68ecb662d8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /findAllRefsRootSymbols.ts === -// interface I { /*FIND ALL REFS*/[|x|]: {}; } -// interface J { x: {}; } -// declare const o: (I | J) & { x: string }; -// o.[|x|]; - - - -// === findAllReferences === -// === /findAllRefsRootSymbols.ts === -// interface I { x: {}; } -// interface J { /*FIND ALL REFS*/[|x|]: {}; } -// declare const o: (I | J) & { x: string }; -// o.[|x|]; - - - -// === findAllReferences === -// === /findAllRefsRootSymbols.ts === -// interface I { x: {}; } -// interface J { x: {}; } -// declare const o: (I | J) & { /*FIND ALL REFS*/[|x|]: string }; -// o.[|x|]; - - - -// === findAllReferences === -// === /findAllRefsRootSymbols.ts === -// interface I { [|x|]: {}; } -// interface J { [|x|]: {}; } -// declare const o: (I | J) & { [|x|]: string }; -// o./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc deleted file mode 100644 index f8e13748e3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc +++ /dev/null @@ -1,149 +0,0 @@ -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// /*FIND ALL REFS*/[|this|]; -// function f(this) { -// return this; -// function g(this) { return this; } -// // --- (line: 5) skipped --- - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// this; -// function f(/*FIND ALL REFS*/[|this|]) { -// return [|this|]; -// function g(this) { return this; } -// } -// class C { -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// this; -// function f([|this|]) { -// return /*FIND ALL REFS*/[|this|]; -// function g(this) { return this; } -// } -// class C { -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// this; -// function f(this) { -// return this; -// function g(/*FIND ALL REFS*/[|this|]) { return [|this|]; } -// } -// class C { -// static x() { -// // --- (line: 8) skipped --- - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// this; -// function f(this) { -// return this; -// function g([|this|]) { return /*FIND ALL REFS*/[|this|]; } -// } -// class C { -// static x() { -// // --- (line: 8) skipped --- - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// --- (line: 4) skipped --- -// } -// class C { -// static x() { -// /*FIND ALL REFS*/[|this|]; -// } -// static y() { -// () => [|this|]; -// } -// constructor() { -// this; -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// --- (line: 4) skipped --- -// } -// class C { -// static x() { -// [|this|]; -// } -// static y() { -// () => /*FIND ALL REFS*/[|this|]; -// } -// constructor() { -// this; -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// --- (line: 10) skipped --- -// () => this; -// } -// constructor() { -// /*FIND ALL REFS*/[|this|]; -// } -// method() { -// () => [|this|]; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// --- (line: 10) skipped --- -// () => this; -// } -// constructor() { -// [|this|]; -// } -// method() { -// () => /*FIND ALL REFS*/[|this|]; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// --- (line: 17) skipped --- -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { /*FIND ALL REFS*/[|this|]: 0 } -// x.[|this|]; - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === -// --- (line: 17) skipped --- -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { [|this|]: 0 } -// x./*FIND ALL REFS*/[|this|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc deleted file mode 100644 index 1864e0a2c2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc +++ /dev/null @@ -1,55 +0,0 @@ -// === findAllReferences === -// === /file1.ts === -// /*FIND ALL REFS*/[|this|]; [|this|]; - - - -// === findAllReferences === -// === /file1.ts === -// [|this|]; /*FIND ALL REFS*/[|this|]; - - - -// === findAllReferences === -// === /file2.ts === -// /*FIND ALL REFS*/[|this|]; -// [|this|]; - - - -// === findAllReferences === -// === /file2.ts === -// [|this|]; -// /*FIND ALL REFS*/[|this|]; - - - -// === findAllReferences === -// === /file3.ts === -// ((x = /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); -// // different 'this' -// function f(this) { return this; } - - - -// === findAllReferences === -// === /file3.ts === -// ((x = [|this|], y) => /*FIND ALL REFS*/[|this|])([|this|], [|this|]); -// // different 'this' -// function f(this) { return this; } - - - -// === findAllReferences === -// === /file3.ts === -// ((x = [|this|], y) => [|this|])(/*FIND ALL REFS*/[|this|], [|this|]); -// // different 'this' -// function f(this) { return this; } - - - -// === findAllReferences === -// === /file3.ts === -// ((x = [|this|], y) => [|this|])([|this|], /*FIND ALL REFS*/[|this|]); -// // different 'this' -// function f(this) { return this; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc deleted file mode 100644 index 2573cb4e41..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /findAllRefsTypeParameterInMergedInterface.ts === -// interface I { a: [|T|] } -// interface I<[|T|]> { b: [|T|] } - - - -// === findAllReferences === -// === /findAllRefsTypeParameterInMergedInterface.ts === -// interface I<[|T|]> { a: /*FIND ALL REFS*/[|T|] } -// interface I<[|T|]> { b: [|T|] } - - - -// === findAllReferences === -// === /findAllRefsTypeParameterInMergedInterface.ts === -// interface I<[|T|]> { a: [|T|] } -// interface I { b: [|T|] } - - - -// === findAllReferences === -// === /findAllRefsTypeParameterInMergedInterface.ts === -// interface I<[|T|]> { a: [|T|] } -// interface I<[|T|]> { b: /*FIND ALL REFS*/[|T|] } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc deleted file mode 100644 index 1065a70060..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /a.js === -// /** -// * @typedef I {Object} -// * /*FIND ALL REFS*/@prop p {number} -// */ -// -// /** @type {I} */ -// let x; -// x.p; - - - -// === findAllReferences === -// === /a.js === -// /** -// * @typedef I {Object} -// * @prop /*FIND ALL REFS*/[|p|] {number} -// */ -// -// /** @type {I} */ -// let x; -// x.[|p|]; - - - -// === findAllReferences === -// === /a.js === -// /** -// * @typedef I {Object} -// * @prop [|p|] {number} -// */ -// -// /** @type {I} */ -// let x; -// x./*FIND ALL REFS*/[|p|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc deleted file mode 100644 index d58e4feb85..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /a.js === -// module.exports = 0; -// /** /*FIND ALL REFS*/@typedef {number} Foo */ -// const dummy = 0; - - - -// === findAllReferences === -// === /a.js === -// module.exports = 0; -// /** @typedef {number} /*FIND ALL REFS*/[|Foo|] */ -// const dummy = 0; - -// === /b.js === -// /** @type {import('./a').[|Foo|]} */ -// const x = 0; - - - -// === findAllReferences === -// === /b.js === -// /** @type {import('./a')./*FIND ALL REFS*/Foo} */ -// const x = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc deleted file mode 100644 index 96b25fccdf..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/export const x = 0; -// declare const a: typeof import("./a"); -// a.x; - - - -// === findAllReferences === -// === /a.ts === -// export const /*FIND ALL REFS*/[|x|] = 0; -// declare const a: typeof import("./a"); -// a.[|x|]; - - - -// === findAllReferences === -// === /a.ts === -// export const [|x|] = 0; -// declare const a: typeof import("./a"); -// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc deleted file mode 100644 index 7eb77a494a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc +++ /dev/null @@ -1,150 +0,0 @@ -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { /*FIND ALL REFS*/[|type|]: "a", prop: number } -// | { [|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t.[|type|]; -// } else { -// t.[|type|]; -// } - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { [|type|]: "a", prop: number } -// | { /*FIND ALL REFS*/[|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t.[|type|]; -// } else { -// t.[|type|]; -// } - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { [|type|]: "a", prop: number } -// | { [|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t./*FIND ALL REFS*/[|type|] === "a") { -// t.[|type|]; -// } else { -// t.[|type|]; -// } - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { [|type|]: "a", prop: number } -// | { [|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t./*FIND ALL REFS*/[|type|]; -// } else { -// t.[|type|]; -// } - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { [|type|]: "a", prop: number } -// | { [|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t.[|type|]; -// } else { -// t./*FIND ALL REFS*/[|type|]; -// } - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { [|type|]: "a", prop: number } -// | { type: "b", prop: string }; -// const tt: T = { -// /*FIND ALL REFS*/[|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t.[|type|]; -// } else { -// t.type; -// } - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { type: "a", /*FIND ALL REFS*/[|prop|]: number } -// | { type: "b", [|prop|]: string }; -// const tt: T = { -// type: "a", -// [|prop|]: 0, -// }; -// declare const t: T; -// if (t.type === "a") { -// // --- (line: 10) skipped --- - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { type: "a", [|prop|]: number } -// | { type: "b", /*FIND ALL REFS*/[|prop|]: string }; -// const tt: T = { -// type: "a", -// [|prop|]: 0, -// }; -// declare const t: T; -// if (t.type === "a") { -// // --- (line: 10) skipped --- - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === -// type T = -// | { type: "a", [|prop|]: number } -// | { type: "b", prop: string }; -// const tt: T = { -// type: "a", -// /*FIND ALL REFS*/[|prop|]: 0, -// }; -// declare const t: T; -// if (t.type === "a") { -// // --- (line: 10) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc deleted file mode 100644 index c65b6a9fb7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc +++ /dev/null @@ -1,107 +0,0 @@ -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: /*FIND ALL REFS*/[|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: [|Bar|]; -// let b: /*FIND ALL REFS*/[|Bar|]; -// let c: [|Bar|]; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: /*FIND ALL REFS*/[|Bar|]; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: /*FIND ALL REFS*/[|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: [|Bar|].X; -// let e: /*FIND ALL REFS*/[|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: /*FIND ALL REFS*/[|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar./*FIND ALL REFS*/[|X|]; -// let e: Bar.[|X|]; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.[|X|]; -// let e: Bar./*FIND ALL REFS*/[|X|]; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar./*FIND ALL REFS*/[|X|].Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc deleted file mode 100644 index d542f719cd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc +++ /dev/null @@ -1,134 +0,0 @@ -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { /*FIND ALL REFS*/[|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { [|Bar|] } from "does-not-exist"; -// -// let a: /*FIND ALL REFS*/[|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: /*FIND ALL REFS*/[|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: /*FIND ALL REFS*/[|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: /*FIND ALL REFS*/[|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: /*FIND ALL REFS*/[|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: /*FIND ALL REFS*/[|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { Bar } from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar./*FIND ALL REFS*/[|X|]; -// let e: Bar.[|X|]; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// import { Bar } from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.[|X|]; -// let e: Bar./*FIND ALL REFS*/[|X|]; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// --- (line: 4) skipped --- -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar./*FIND ALL REFS*/[|X|].Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === -// --- (line: 4) skipped --- -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc deleted file mode 100644 index 890fd6f9b0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc +++ /dev/null @@ -1,134 +0,0 @@ -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as /*FIND ALL REFS*/[|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as [|Bar|] from "does-not-exist"; -// -// let a: /*FIND ALL REFS*/[|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: /*FIND ALL REFS*/[|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: /*FIND ALL REFS*/[|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: /*FIND ALL REFS*/[|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: /*FIND ALL REFS*/[|Bar|].X; -// let f: [|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: /*FIND ALL REFS*/[|Bar|].X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as Bar from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar./*FIND ALL REFS*/[|X|]; -// let e: Bar.[|X|]; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// import * as Bar from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.[|X|]; -// let e: Bar./*FIND ALL REFS*/[|X|]; -// let f: Bar.X.Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// --- (line: 4) skipped --- -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar./*FIND ALL REFS*/[|X|].Y; - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === -// --- (line: 4) skipped --- -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc deleted file mode 100644 index 38bc2fe401..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames1.ts === -// class Foo { -// /*FIND ALL REFS*/public [|_bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|_bar|]; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames1.ts === -// class Foo { -// public /*FIND ALL REFS*/[|_bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|_bar|]; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames1.ts === -// class Foo { -// public [|_bar|]() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|_bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc deleted file mode 100644 index def74d86dd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames2.ts === -// class Foo { -// /*FIND ALL REFS*/public [|__bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|__bar|]; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames2.ts === -// class Foo { -// public /*FIND ALL REFS*/[|__bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|__bar|]; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames2.ts === -// class Foo { -// public [|__bar|]() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|__bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc deleted file mode 100644 index b1c169241e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames3.ts === -// class Foo { -// /*FIND ALL REFS*/public [|___bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|___bar|]; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames3.ts === -// class Foo { -// public /*FIND ALL REFS*/[|___bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|___bar|]; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames3.ts === -// class Foo { -// public [|___bar|]() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|___bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc deleted file mode 100644 index ba04ab6467..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames4.ts === -// class Foo { -// /*FIND ALL REFS*/public [|____bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|____bar|]; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames4.ts === -// class Foo { -// public /*FIND ALL REFS*/[|____bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|____bar|]; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames4.ts === -// class Foo { -// public [|____bar|]() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|____bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc deleted file mode 100644 index 18e8118cfb..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames5.ts === -// class Foo { -// public _bar; -// public __bar; -// /*FIND ALL REFS*/public [|___bar|]; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x.__bar; -// x.[|___bar|]; -// x.____bar; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames5.ts === -// class Foo { -// public _bar; -// public __bar; -// public /*FIND ALL REFS*/[|___bar|]; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x.__bar; -// x.[|___bar|]; -// x.____bar; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames5.ts === -// class Foo { -// public _bar; -// public __bar; -// public [|___bar|]; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x.__bar; -// x./*FIND ALL REFS*/[|___bar|]; -// x.____bar; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc deleted file mode 100644 index 371052938b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames6.ts === -// class Foo { -// public _bar; -// /*FIND ALL REFS*/public [|__bar|]; -// public ___bar; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x.[|__bar|]; -// x.___bar; -// x.____bar; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames6.ts === -// class Foo { -// public _bar; -// public /*FIND ALL REFS*/[|__bar|]; -// public ___bar; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x.[|__bar|]; -// x.___bar; -// x.____bar; - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames6.ts === -// class Foo { -// public _bar; -// public [|__bar|]; -// public ___bar; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x./*FIND ALL REFS*/[|__bar|]; -// x.___bar; -// x.____bar; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc deleted file mode 100644 index 46abb67ad4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames7.ts === -// /*FIND ALL REFS*/function [|__foo|]() { -// [|__foo|](); -// } - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames7.ts === -// function /*FIND ALL REFS*/[|__foo|]() { -// [|__foo|](); -// } - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames7.ts === -// function [|__foo|]() { -// /*FIND ALL REFS*/[|__foo|](); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc deleted file mode 100644 index 16510e0f5b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames8.ts === -// (/*FIND ALL REFS*/function __foo() { -// __foo(); -// }) - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames8.ts === -// (function /*FIND ALL REFS*/__foo() { -// [|__foo|](); -// }) - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames8.ts === -// (function __foo() { -// /*FIND ALL REFS*/[|__foo|](); -// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc deleted file mode 100644 index 099cdfee54..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames9.ts === -// (/*FIND ALL REFS*/function ___foo() { -// ___foo(); -// }) - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames9.ts === -// (function /*FIND ALL REFS*/___foo() { -// [|___foo|](); -// }) - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames9.ts === -// (function ___foo() { -// /*FIND ALL REFS*/[|___foo|](); -// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc deleted file mode 100644 index 1666c1f148..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc +++ /dev/null @@ -1,47 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === -// var /*FIND ALL REFS*/[|name|] = "Foo"; -// -// var obj = { name }; -// var obj1 = { name: name }; -// obj.name; - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === -// var name = "Foo"; -// -// var obj = { [|name|] }; -// var obj1 = { name: /*FIND ALL REFS*/[|name|] }; -// obj.name; - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === -// var name = "Foo"; -// -// var obj = { /*FIND ALL REFS*/[|name|] }; -// var obj1 = { name: [|name|] }; -// obj.[|name|]; - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === -// var name = "Foo"; -// -// var obj = { name }; -// var obj1 = { /*FIND ALL REFS*/[|name|]: name }; -// obj.name; - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === -// var name = "Foo"; -// -// var obj = { [|name|] }; -// var obj1 = { name: name }; -// obj./*FIND ALL REFS*/[|name|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc deleted file mode 100644 index 4aa27d262c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc +++ /dev/null @@ -1,46 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment2.ts === -// var /*FIND ALL REFS*/[|dx|] = "Foo"; -// -// module M { export var dx; } -// module M { -// // --- (line: 5) skipped --- - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment2.ts === -// var dx = "Foo"; -// -// module M { export var /*FIND ALL REFS*/[|dx|]; } -// module M { -// var z = 100; -// export var y = { [|dx|], z }; -// } -// M.y.dx; - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment2.ts === -// var dx = "Foo"; -// -// module M { export var [|dx|]; } -// module M { -// var z = 100; -// export var y = { /*FIND ALL REFS*/[|dx|], z }; -// } -// M.y.[|dx|]; - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment2.ts === -// var dx = "Foo"; -// -// module M { export var dx; } -// module M { -// var z = 100; -// export var y = { [|dx|], z }; -// } -// M.y./*FIND ALL REFS*/[|dx|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc deleted file mode 100644 index 23ff101c44..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWriteAccess.ts === -// interface Obj { -// [`/*FIND ALL REFS*/[|num|]`]: number; -// } -// -// let o: Obj = { -// [`[|num|]`]: 0 -// }; -// -// o = { -// ['[|num|]']: 1 -// }; -// -// o['[|num|]'] = 2; -// o[`[|num|]`] = 3; -// -// o['[|num|]']; -// o[`[|num|]`]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc deleted file mode 100644 index a59140e4ff..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /a.js === -// /** -// * @callback /*FIND ALL REFS*/[|A|] -// * @param {unknown} response -// */ -// -// module.exports = {}; - -// === /b.js === -// /** @typedef {import("./a").[|A|]} A */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc deleted file mode 100644 index a39cb0e4e4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc +++ /dev/null @@ -1,59 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/export type [|T|] = 0; -// export const T = 0; - -// === /b.ts === -// const x: import("./a").[|T|] = 0; -// const x: typeof import("./a").T = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type /*FIND ALL REFS*/[|T|] = 0; -// export const T = 0; - -// === /b.ts === -// const x: import("./a").[|T|] = 0; -// const x: typeof import("./a").T = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type T = 0; -// /*FIND ALL REFS*/export const T = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type T = 0; -// export const /*FIND ALL REFS*/[|T|] = 0; - -// === /b.ts === -// const x: import("./a").T = 0; -// const x: typeof import("./a").[|T|] = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type [|T|] = 0; -// export const T = 0; - -// === /b.ts === -// const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; -// const x: typeof import("./a").T = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type T = 0; -// export const [|T|] = 0; - -// === /b.ts === -// const x: import("./a").T = 0; -// const x: typeof import("./a")./*FIND ALL REFS*/[|T|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc deleted file mode 100644 index 2d8b8e38a2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc +++ /dev/null @@ -1,63 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/export type [|T|] = number; -// export type U = string; - -// === /b.ts === -// const x: import("./a").[|T|] = 0; -// const x: import("./a").U = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type /*FIND ALL REFS*/[|T|] = number; -// export type U = string; - -// === /b.ts === -// const x: import("./a").[|T|] = 0; -// const x: import("./a").U = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type T = number; -// /*FIND ALL REFS*/export type [|U|] = string; - -// === /b.ts === -// const x: import("./a").T = 0; -// const x: import("./a").[|U|] = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type T = number; -// export type /*FIND ALL REFS*/[|U|] = string; - -// === /b.ts === -// const x: import("./a").T = 0; -// const x: import("./a").[|U|] = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type [|T|] = number; -// export type U = string; - -// === /b.ts === -// const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; -// const x: import("./a").U = 0; - - - -// === findAllReferences === -// === /a.ts === -// export type T = number; -// export type [|U|] = string; - -// === /b.ts === -// const x: import("./a").T = 0; -// const x: import("./a")./*FIND ALL REFS*/[|U|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_typeofImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_typeofImport.baseline.jsonc deleted file mode 100644 index b1dc44da2b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_typeofImport.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /b.ts === -// /*FIND ALL REFS*/const [|x|]: typeof import("./a") = { x: 0 }; -// const y: typeof import("./a") = { x: 0 }; - - - -// === findAllReferences === -// === /b.ts === -// const x: typeof import("/*FIND ALL REFS*/[|./a|]") = { x: 0 }; -// const y: typeof import("[|./a|]") = { x: 0 }; - - - -// === findAllReferences === -// === /b.ts === -// const x: typeof import("./a") = { x: 0 }; -// /*FIND ALL REFS*/const [|y|]: typeof import("./a") = { x: 0 }; - - - -// === findAllReferences === -// === /b.ts === -// const x: typeof import("[|./a|]") = { x: 0 }; -// const y: typeof import("/*FIND ALL REFS*/[|./a|]") = { x: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc deleted file mode 100644 index 77cd5d46e7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc +++ /dev/null @@ -1,47 +0,0 @@ -// === findAllReferences === -// === /a.js === -// /** @enum {string} */ -// /*FIND ALL REFS*/const [|E|] = { A: "" }; -// [|E|]["A"]; -// /** @type {E} */ -// const e = [|E|].A; - - - -// === findAllReferences === -// === /a.js === -// /** @enum {string} */ -// const /*FIND ALL REFS*/[|E|] = { A: "" }; -// [|E|]["A"]; -// /** @type {E} */ -// const e = [|E|].A; - - - -// === findAllReferences === -// === /a.js === -// /** @enum {string} */ -// const [|E|] = { A: "" }; -// /*FIND ALL REFS*/[|E|]["A"]; -// /** @type {E} */ -// const e = [|E|].A; - - - -// === findAllReferences === -// === /a.js === -// /** @enum {string} */ -// const E = { A: "" }; -// E["A"]; -// /** @type {/*FIND ALL REFS*/[|E|]} */ -// const e = E.A; - - - -// === findAllReferences === -// === /a.js === -// /** @enum {string} */ -// const [|E|] = { A: "" }; -// [|E|]["A"]; -// /** @type {E} */ -// const e = /*FIND ALL REFS*/[|E|].A; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc deleted file mode 100644 index 2b80f1d44d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// /*FIND ALL REFS*/var [|x|]: number; - -// === /b.ts === -// /// -// [|x|]++; - -// === /c.ts === -// /// -// [|x|]++; - - - -// === findAllReferences === -// === /a.ts === -// var /*FIND ALL REFS*/[|x|]: number; - -// === /b.ts === -// /// -// [|x|]++; - -// === /c.ts === -// /// -// [|x|]++; - - - -// === findAllReferences === -// === /a.ts === -// var [|x|]: number; - -// === /b.ts === -// /// -// /*FIND ALL REFS*/[|x|]++; - -// === /c.ts === -// /// -// [|x|]++; - - - -// === findAllReferences === -// === /a.ts === -// var [|x|]: number; - -// === /b.ts === -// /// -// [|x|]++; - -// === /c.ts === -// /// -// /*FIND ALL REFS*/[|x|]++; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAfterEdit.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAfterEdit.baseline.jsonc deleted file mode 100644 index 6564e1d11a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAfterEdit.baseline.jsonc +++ /dev/null @@ -1,59 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// interface A { -// /*FIND ALL REFS*/[|foo|]: string; -// } - -// === /b.ts === -// /// -// -// function foo(x: A) { -// x.[|foo|] -// } - - - -// === findAllReferences === -// === /a.ts === -// interface A { -// [|foo|]: string; -// } - -// === /b.ts === -// /// -// -// function foo(x: A) { -// x./*FIND ALL REFS*/[|foo|] -// } - - - -// === findAllReferences === -// === /a.ts === -// interface A { -// /*FIND ALL REFS*/[|foo|]: string; -// } - -// === /b.ts === -// /// -// -// -// function foo(x: A) { -// x.[|foo|] -// } - - - -// === findAllReferences === -// === /a.ts === -// interface A { -// [|foo|]: string; -// } - -// === /b.ts === -// /// -// -// -// function foo(x: A) { -// x./*FIND ALL REFS*/[|foo|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc deleted file mode 100644 index 01bbfdfb3a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc +++ /dev/null @@ -1,43 +0,0 @@ -// === findAllReferences === -// === /findReferencesDefinitionDisplayParts.ts === -// class [|Gre/*FIND ALL REFS*/eter|] { -// someFunction() { this; } -// } -// -// // --- (line: 5) skipped --- - - - -// === findAllReferences === -// === /findReferencesDefinitionDisplayParts.ts === -// class Greeter { -// someFunction() { [|th/*FIND ALL REFS*/is|]; } -// } -// -// type Options = "option 1" | "option 2"; -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /findReferencesDefinitionDisplayParts.ts === -// class Greeter { -// someFunction() { this; } -// } -// -// type Options = "opt/*FIND ALL REFS*/ion 1" | "option 2"; -// let myOption: Options = "option 1"; -// -// someLabel: -// break someLabel; - - - -// === findAllReferences === -// === /findReferencesDefinitionDisplayParts.ts === -// --- (line: 4) skipped --- -// type Options = "option 1" | "option 2"; -// let myOption: Options = "option 1"; -// -// [|some/*FIND ALL REFS*/Label|]: -// break [|someLabel|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc deleted file mode 100644 index b0d90630ef..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /RedditSubmission.ts === -// export const [|SubmissionComp|] = (submission: SubmissionProps) => -//
; - -// === /index.tsx === -// import { /*FIND ALL REFS*/[|SubmissionComp|] } from "./RedditSubmission" -// function displaySubreddit(subreddit: string) { -// let components = submissions -// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); -// } - - - -// === findAllReferences === -// === /RedditSubmission.ts === -// export const /*FIND ALL REFS*/[|SubmissionComp|] = (submission: SubmissionProps) => -//
; - -// === /index.tsx === -// import { [|SubmissionComp|] } from "./RedditSubmission" -// function displaySubreddit(subreddit: string) { -// let components = submissions -// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc deleted file mode 100644 index aac6454a10..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /index.tsx === -// /*FIND ALL REFS*/const [|obj|] = {Component: () =>
}; -// const element = <[|obj|].Component/>; - - - -// === findAllReferences === -// === /index.tsx === -// const /*FIND ALL REFS*/[|obj|] = {Component: () =>
}; -// const element = <[|obj|].Component/>; - - - -// === findAllReferences === -// === /index.tsx === -// const [|obj|] = {Component: () =>
}; -// const element = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName3.baseline.jsonc deleted file mode 100644 index 253af58c2a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName3.baseline.jsonc +++ /dev/null @@ -1,156 +0,0 @@ -// === findAllReferences === -// === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// /*FIND ALL REFS*/[|div|]: any; -// } -// } -// -// const Comp = () => -// <[|div|]> -// Some content -// <[|div|]>More content -// ; -// -// const x = -// Content -// ; - - - -// === findAllReferences === -// === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// [|div|]: any; -// } -// } -// -// const Comp = () => -// -// Some content -// <[|div|]>More content -// ; -// -// const x = -// Content -// ; - - - -// === findAllReferences === -// === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// [|div|]: any; -// } -// } -// -// const Comp = () => -// <[|div|]> -// Some content -// More content -// ; -// -// const x = -// Content -// ; - - - -// === findAllReferences === -// === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// [|div|]: any; -// } -// } -// -// const Comp = () => -// <[|div|]> -// Some content -// <[|div|]>More content -// ; -// -// const x = -// Content -// ; - - - -// === findAllReferences === -// === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// [|div|]: any; -// } -// } -// -// const Comp = () => -// <[|div|]> -// Some content -// <[|div|]>More content -// ; -// -// const x = -// Content -// ; - - - -// === findAllReferences === -// === /a.tsx === -// --- (line: 4) skipped --- -// } -// } -// -// const /*FIND ALL REFS*/[|Comp|] = () => -//
-// Some content -//
More content
-//
; -// -// const x = <[|Comp|]> -// Content -// ; - - - -// === findAllReferences === -// === /a.tsx === -// --- (line: 4) skipped --- -// } -// } -// -// const [|Comp|] = () => -//
-// Some content -//
More content
-//
; -// -// const x = -// Content -// ; - - - -// === findAllReferences === -// === /a.tsx === -// --- (line: 4) skipped --- -// } -// } -// -// const [|Comp|] = () => -//
-// Some content -//
More content
-//
; -// -// const x = <[|Comp|]> -// Content -// ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc deleted file mode 100644 index 1c1a1e53e5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /findReferencesSeeTagInTs.ts === -// function [|doStuffWithStuff|]/*FIND ALL REFS*/(stuff: { quantity: number }) {} -// -// declare const stuff: { quantity: number }; -// /** @see {[|doStuffWithStuff|]} */ -// if (stuff.quantity) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc deleted file mode 100644 index 45d4e9154c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfArrowFunction.ts === -// /*FIND ALL REFS*/var [|f|] = x => x + 1; -// [|f|](12); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfArrowFunction.ts === -// var /*FIND ALL REFS*/[|f|] = x => x + 1; -// [|f|](12); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfArrowFunction.ts === -// var [|f|] = x => x + 1; -// /*FIND ALL REFS*/[|f|](12); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc deleted file mode 100644 index 7b39ee9210..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfBindingPattern.ts === -// const { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; -// const z = [|x|]; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfBindingPattern.ts === -// const { [|x|], y } = { /*FIND ALL REFS*/[|x|]: 1, y: 2 }; -// const z = x; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfBindingPattern.ts === -// const { [|x|], y } = { x: 1, y: 2 }; -// const z = /*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc deleted file mode 100644 index 250b824282..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfClass.ts === -// /*FIND ALL REFS*/class [|C|] { -// n: number; -// constructor() { -// this.n = 12; -// } -// } -// let c = new [|C|](); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfClass.ts === -// class /*FIND ALL REFS*/[|C|] { -// n: number; -// constructor() { -// this.n = 12; -// } -// } -// let c = new [|C|](); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfClass.ts === -// class [|C|] { -// n: number; -// constructor() { -// this.n = 12; -// } -// } -// let c = new /*FIND ALL REFS*/[|C|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc deleted file mode 100644 index 01ccd7b8dc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfComputedProperty.ts === -// let o = { /*FIND ALL REFS*/["foo"]: 12 }; -// let y = o.foo; -// let z = o['foo']; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfComputedProperty.ts === -// let o = { ["/*FIND ALL REFS*/[|foo|]"]: 12 }; -// let y = o.[|foo|]; -// let z = o['[|foo|]']; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfComputedProperty.ts === -// let o = { ["[|foo|]"]: 12 }; -// let y = o./*FIND ALL REFS*/[|foo|]; -// let z = o['[|foo|]']; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfComputedProperty.ts === -// let o = { ["[|foo|]"]: 12 }; -// let y = o.[|foo|]; -// let z = o['/*FIND ALL REFS*/[|foo|]']; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc deleted file mode 100644 index fc51da704e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfEnum.ts === -// /*FIND ALL REFS*/enum [|E|] { -// First, -// Second -// } -// let first = [|E|].First; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfEnum.ts === -// enum /*FIND ALL REFS*/[|E|] { -// First, -// Second -// } -// let first = [|E|].First; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfEnum.ts === -// enum [|E|] { -// First, -// Second -// } -// let first = /*FIND ALL REFS*/[|E|].First; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc deleted file mode 100644 index 75f7ea71d1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findAllReferences === -// === /m.ts === -// export var /*FIND ALL REFS*/[|x|] = 12; - -// === /main.ts === -// import { [|x|] } from "./m"; -// const y = [|x|]; - - - -// === findAllReferences === -// === /m.ts === -// export var [|x|] = 12; - -// === /main.ts === -// import { /*FIND ALL REFS*/[|x|] } from "./m"; -// const y = [|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc deleted file mode 100644 index fb25553e8f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfFunction.ts === -// /*FIND ALL REFS*/function [|func|](x: number) { -// } -// [|func|](x) - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfFunction.ts === -// function /*FIND ALL REFS*/[|func|](x: number) { -// } -// [|func|](x) - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfFunction.ts === -// function [|func|](x: number) { -// } -// /*FIND ALL REFS*/[|func|](x) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc deleted file mode 100644 index 3465e29156..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterface.ts === -// /*FIND ALL REFS*/interface [|I|] { -// p: number; -// } -// let i: [|I|] = { p: 12 }; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterface.ts === -// interface /*FIND ALL REFS*/[|I|] { -// p: number; -// } -// let i: [|I|] = { p: 12 }; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterface.ts === -// interface [|I|] { -// p: number; -// } -// let i: /*FIND ALL REFS*/[|I|] = { p: 12 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc deleted file mode 100644 index 06b881e54c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc +++ /dev/null @@ -1,141 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === -// /*FIND ALL REFS*/interface [|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === -// interface /*FIND ALL REFS*/[|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === -// interface [|Numbers|] { -// p: number; -// } -// /*FIND ALL REFS*/interface [|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === -// interface [|Numbers|] { -// p: number; -// } -// interface /*FIND ALL REFS*/[|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === -// interface [|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// /*FIND ALL REFS*/class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === -// interface [|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class /*FIND ALL REFS*/[|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === -// interface [|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: /*FIND ALL REFS*/[|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === -// interface [|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new /*FIND ALL REFS*/[|Numbers|](); -// let x = i.f(i.p + i.m); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc deleted file mode 100644 index 1ea8914044..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNamespace.ts === -// /*FIND ALL REFS*/namespace [|Numbers|] { -// export var n = 12; -// } -// let x = [|Numbers|].n + 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNamespace.ts === -// namespace /*FIND ALL REFS*/[|Numbers|] { -// export var n = 12; -// } -// let x = [|Numbers|].n + 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNamespace.ts === -// namespace [|Numbers|] { -// export var n = 12; -// } -// let x = /*FIND ALL REFS*/[|Numbers|].n + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc deleted file mode 100644 index 4c7d71532e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === -// let o = { /*FIND ALL REFS*/[|1|]: 12 }; -// let y = o[[|1|]]; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === -// let o = { [|1|]: 12 }; -// let y = o[/*FIND ALL REFS*/[|1|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc deleted file mode 100644 index 311de56bc8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfParameter.ts === -// function f(/*FIND ALL REFS*/[|x|]: number) { -// return [|x|] + 1 -// } - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfParameter.ts === -// function f([|x|]: number) { -// return /*FIND ALL REFS*/[|x|] + 1 -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc deleted file mode 100644 index 76d23e15de..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === -// let o = { /*FIND ALL REFS*/"[|x|]": 12 }; -// let y = o.[|x|]; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === -// let o = { "/*FIND ALL REFS*/[|x|]": 12 }; -// let y = o.[|x|]; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === -// let o = { "[|x|]": 12 }; -// let y = o./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc deleted file mode 100644 index 7dfa3f7a3b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfTypeAlias.ts === -// /*FIND ALL REFS*/type [|Alias|]= number; -// let n: [|Alias|] = 12; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfTypeAlias.ts === -// type /*FIND ALL REFS*/[|Alias|]= number; -// let n: [|Alias|] = 12; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfTypeAlias.ts === -// type [|Alias|]= number; -// let n: /*FIND ALL REFS*/[|Alias|] = 12; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc deleted file mode 100644 index 9ee407ef13..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc +++ /dev/null @@ -1,349 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// /*FIND ALL REFS*/var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var /*FIND ALL REFS*/[|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = /*FIND ALL REFS*/[|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + /*FIND ALL REFS*/[|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// /*FIND ALL REFS*/[|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = /*FIND ALL REFS*/[|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + /*FIND ALL REFS*/[|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// /*FIND ALL REFS*/[|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// /*FIND ALL REFS*/[|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++/*FIND ALL REFS*/[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = /*FIND ALL REFS*/[|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --/*FIND ALL REFS*/[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = /*FIND ALL REFS*/[|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// /*FIND ALL REFS*/[|x|] += 1; -// [|x|] <<= 1; - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// /*FIND ALL REFS*/[|x|] <<= 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc deleted file mode 100644 index fc53c36f09..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /lib/classes/Error.js === -// module.exports.[|logWarning|] = message => { }; - -// === /bin/serverless.js === -// require('../lib/classes/Error').log/*FIND ALL REFS*/Warning(`CLI triage crashed with: ${error.stack}`); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc deleted file mode 100644 index d97e39c38f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc +++ /dev/null @@ -1,121 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === -// namespace NS { -// export function /*FIND ALL REFS*/[|FA|]() { -// FB(); -// } -// } -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === -// --- (line: 3) skipped --- -// } -// } -// -// interface /*FIND ALL REFS*/[|I|] { -// FA(); -// } -// -// const ia: [|I|] = { -// FA() { }, -// FB() { }, -// FC() { }, -// }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === -// --- (line: 4) skipped --- -// } -// -// interface I { -// /*FIND ALL REFS*/[|FA|](); -// } -// -// const ia: I = { -// [|FA|]() { }, -// FB() { }, -// FC() { }, -// }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === -// namespace NS { -// export function /*FIND ALL REFS*/[|FB|]() {} -// } -// -// interface I { -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === -// namespace NS { -// export function FB() {} -// } -// -// interface /*FIND ALL REFS*/[|I|] { -// FB(); -// } -// -// const ib: [|I|] = { FB() {} }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === -// namespace NS { -// export function FB() {} -// } -// -// interface I { -// /*FIND ALL REFS*/[|FB|](); -// } -// -// const ib: I = { [|FB|]() {} }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === -// namespace NS { -// export function /*FIND ALL REFS*/[|FC|]() {} -// } -// -// interface I { -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === -// namespace NS { -// export function FC() {} -// } -// -// interface /*FIND ALL REFS*/[|I|] { -// FC(); -// } -// -// const ic: [|I|] = { FC() {} }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === -// namespace NS { -// export function FC() {} -// } -// -// interface I { -// /*FIND ALL REFS*/[|FC|](); -// } -// -// const ic: I = { [|FC|]() {} }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc deleted file mode 100644 index bab15b51fa..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc +++ /dev/null @@ -1,225 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === -// import { NS } from "../b"; -// import { I } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function /*FIND ALL REFS*/[|FA|](); -// } -// } -// -// // --- (line: 10) skipped --- - -// --- (line: 13) skipped --- -// } -// -// const ia: I = { -// FA: NS.[|FA|], -// FC() { }, -// }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === -// import { NS } from "../b"; -// import { [|I|] } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function FA(); -// } -// } -// -// declare module "../c" { -// export interface /*FIND ALL REFS*/[|I|] { -// FA(); -// } -// } -// -// const ia: [|I|] = { -// FA: NS.FA, -// FC() { }, -// }; - -// === /home/src/workspaces/project/c/index.ts === -// export namespace NS { -// export function FC() {} -// } -// -// export interface [|I|] { -// FC(); -// } -// -// const ic: [|I|] = { FC() {} }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === -// --- (line: 8) skipped --- -// -// declare module "../c" { -// export interface I { -// /*FIND ALL REFS*/[|FA|](); -// } -// } -// -// const ia: I = { -// [|FA|]: NS.FA, -// FC() { }, -// }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/a2/index.ts === -// import { NS } from "../b"; -// import { I } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function /*FIND ALL REFS*/[|FA|](); -// } -// } -// -// // --- (line: 10) skipped --- - -// --- (line: 13) skipped --- -// } -// -// const ia: I = { -// FA: NS.[|FA|], -// FC() { }, -// }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/a2/index.ts === -// import { NS } from "../b"; -// import { [|I|] } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function FA(); -// } -// } -// -// declare module "../c" { -// export interface /*FIND ALL REFS*/[|I|] { -// FA(); -// } -// } -// -// const ia: [|I|] = { -// FA: NS.FA, -// FC() { }, -// }; - -// === /home/src/workspaces/project/c/index.ts === -// export namespace NS { -// export function FC() {} -// } -// -// export interface [|I|] { -// FC(); -// } -// -// const ic: [|I|] = { FC() {} }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/a2/index.ts === -// --- (line: 8) skipped --- -// -// declare module "../c" { -// export interface I { -// /*FIND ALL REFS*/[|FA|](); -// } -// } -// -// const ia: I = { -// [|FA|]: NS.FA, -// FC() { }, -// }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === -// export namespace NS { -// export function /*FIND ALL REFS*/[|FB|]() {} -// } -// -// export interface I { -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === -// export namespace NS { -// export function FB() {} -// } -// -// export interface /*FIND ALL REFS*/[|I|] { -// FB(); -// } -// -// const ib: [|I|] = { FB() {} }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === -// export namespace NS { -// export function FB() {} -// } -// -// export interface I { -// /*FIND ALL REFS*/[|FB|](); -// } -// -// const ib: I = { [|FB|]() {} }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === -// export namespace NS { -// export function /*FIND ALL REFS*/[|FC|]() {} -// } -// -// export interface I { -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === -// export namespace NS { -// export function FC() {} -// } -// -// export interface /*FIND ALL REFS*/[|I|] { -// FC(); -// } -// -// const ic: [|I|] = { FC() {} }; - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === -// export namespace NS { -// export function FC() {} -// } -// -// export interface I { -// /*FIND ALL REFS*/[|FC|](); -// } -// -// const ic: I = { [|FC|]() {} }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc deleted file mode 100644 index e51b9e8cad..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /isDefinitionInterfaceImplementation.ts === -// interface I { -// /*FIND ALL REFS*/[|M|](): void; -// } -// -// class C implements I { -// [|M|]() { } -// } -// -// ({} as I).[|M|](); -// ({} as C).[|M|](); - - - -// === findAllReferences === -// === /isDefinitionInterfaceImplementation.ts === -// interface I { -// [|M|](): void; -// } -// -// class C implements I { -// /*FIND ALL REFS*/[|M|]() { } -// } -// -// ({} as I).[|M|](); -// ({} as C).[|M|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc deleted file mode 100644 index 29eeb6d11a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /isDefinitionOverloads.ts === -// function /*FIND ALL REFS*/[|f|](x: number): void; -// function [|f|](x: string): void; -// function [|f|](x: number | string) { } -// -// [|f|](1); -// [|f|]("a"); - - - -// === findAllReferences === -// === /isDefinitionOverloads.ts === -// function [|f|](x: number): void; -// function /*FIND ALL REFS*/[|f|](x: string): void; -// function [|f|](x: number | string) { } -// -// [|f|](1); -// [|f|]("a"); - - - -// === findAllReferences === -// === /isDefinitionOverloads.ts === -// function [|f|](x: number): void; -// function [|f|](x: string): void; -// function /*FIND ALL REFS*/[|f|](x: number | string) { } -// -// [|f|](1); -// [|f|]("a"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc deleted file mode 100644 index 837a87c67a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /isDefinitionShorthandProperty.ts === -// const /*FIND ALL REFS*/[|x|] = 1; -// const y: { x: number } = { [|x|] }; - - - -// === findAllReferences === -// === /isDefinitionShorthandProperty.ts === -// const x = 1; -// const y: { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; - - - -// === findAllReferences === -// === /isDefinitionShorthandProperty.ts === -// const [|x|] = 1; -// const y: { [|x|]: number } = { /*FIND ALL REFS*/[|x|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc deleted file mode 100644 index 52a7e63c1b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export function /*FIND ALL REFS*/[|f|]() {} - -// === /b.ts === -// import { [|f|] } from "./a"; - - - -// === findAllReferences === -// === /a.ts === -// export function [|f|]() {} - -// === /b.ts === -// import { /*FIND ALL REFS*/[|f|] } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc deleted file mode 100644 index 9b9178931c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /isDefinitionSingleReference.ts === -// function /*FIND ALL REFS*/[|f|]() {} -// [|f|](); - - - -// === findAllReferences === -// === /isDefinitionSingleReference.ts === -// function [|f|]() {} -// /*FIND ALL REFS*/[|f|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocLink_findAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocLink_findAllReferences1.baseline.jsonc deleted file mode 100644 index 6013c35191..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocLink_findAllReferences1.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /jsdocLink_findAllReferences1.ts === -// interface [|A|]/*FIND ALL REFS*/ {} -// /** -// * {@link [|A|]()} is ok -// */ -// declare const a: [|A|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc deleted file mode 100644 index b7690faa79..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /a.js === -// /** -// * @typedef {Object} [|T|] -// * @property {number} a -// */ -// -// /** @satisfies {/*FIND ALL REFS*/[|T|]} comment */ -// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc deleted file mode 100644 index d399b6dc09..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /jsdocThrowsTag_findAllReferences.ts === -// class /*FIND ALL REFS*/[|E|] extends Error {} -// /** -// * @throws {E} -// */ -// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc deleted file mode 100644 index db5fd49cb4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === findAllReferences === -// === /a.js === -// /** /*FIND ALL REFS*/@typedef {number} T */ -// const T = 1; -// /** @type {T} */ -// const n = T; - - - -// === findAllReferences === -// === /a.js === -// /** @typedef {number} /*FIND ALL REFS*/[|T|] */ -// const T = 1; -// /** @type {[|T|]} */ -// const n = T; - - - -// === findAllReferences === -// === /a.js === -// /** @typedef {number} T */ -// /*FIND ALL REFS*/const [|T|] = 1; -// /** @type {T} */ -// const n = [|T|]; - - - -// === findAllReferences === -// === /a.js === -// /** @typedef {number} T */ -// const /*FIND ALL REFS*/[|T|] = 1; -// /** @type {T} */ -// const n = [|T|]; - - - -// === findAllReferences === -// === /a.js === -// /** @typedef {number} [|T|] */ -// const T = 1; -// /** @type {/*FIND ALL REFS*/[|T|]} */ -// const n = T; - - - -// === findAllReferences === -// === /a.js === -// /** @typedef {number} T */ -// const [|T|] = 1; -// /** @type {T} */ -// const n = /*FIND ALL REFS*/[|T|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc deleted file mode 100644 index f67cbe6091..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /a.js === -// /** @typedef {number} */ -// /*FIND ALL REFS*/const [|T|] = 1; -// /** @type {T} */ -// const n = [|T|]; - - - -// === findAllReferences === -// === /a.js === -// /** @typedef {number} */ -// const /*FIND ALL REFS*/[|T|] = 1; -// /** @type {T} */ -// const n = [|T|]; - - - -// === findAllReferences === -// === /a.js === -// /** @typedef {number} */ -// const T = 1; -// /** @type {/*FIND ALL REFS*/[|T|]} */ -// const n = T; - - - -// === findAllReferences === -// === /a.js === -// /** @typedef {number} */ -// const [|T|] = 1; -// /** @type {T} */ -// const n = /*FIND ALL REFS*/[|T|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsxFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsxFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc deleted file mode 100644 index 392e16b4b2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsxFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /project/src/foo.ts === -// import * as x from /*FIND ALL REFS*/"[|@foo/dir/jsx-runtime|]"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/localGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/localGetReferences.baseline.jsonc deleted file mode 100644 index 11a750c0a7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/localGetReferences.baseline.jsonc +++ /dev/null @@ -1,2080 +0,0 @@ -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// /*FIND ALL REFS*/var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var /*FIND ALL REFS*/[|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 3) skipped --- -// -// class fooCls { -// // References to static variable declared in a class. -// /*FIND ALL REFS*/static [|clsSVar|] = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.[|clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// // --- (line: 19) skipped --- - -// --- (line: 24) skipped --- -// var fnVar = 1; -// -// //Increments -// fooCls.[|clsSVar|]++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// // --- (line: 32) skipped --- - -// --- (line: 39) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// -// class testCls { -// // --- (line: 47) skipped --- - -// --- (line: 51) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// } -// -// // --- (line: 59) skipped --- - -// --- (line: 70) skipped --- -// foo(globalVar); -// -// //Increments -// fooCls.[|clsSVar|]++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// // --- (line: 78) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 3) skipped --- -// -// class fooCls { -// // References to static variable declared in a class. -// static /*FIND ALL REFS*/[|clsSVar|] = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.[|clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// // --- (line: 19) skipped --- - -// --- (line: 24) skipped --- -// var fnVar = 1; -// -// //Increments -// fooCls.[|clsSVar|]++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// // --- (line: 32) skipped --- - -// --- (line: 39) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// -// class testCls { -// // --- (line: 47) skipped --- - -// --- (line: 51) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// } -// -// // --- (line: 59) skipped --- - -// --- (line: 70) skipped --- -// foo(globalVar); -// -// //Increments -// fooCls.[|clsSVar|]++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// // --- (line: 78) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 5) skipped --- -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// /*FIND ALL REFS*/[|clsVar|] = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.[|clsVar|]++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// // --- (line: 18) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 7) skipped --- -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (/*FIND ALL REFS*/public [|clsParam|]: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.[|clsParam|]++; -// modTest.modVar++; -// } -// } -// // --- (line: 21) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 7) skipped --- -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public /*FIND ALL REFS*/[|clsParam|]: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.[|clsParam|]++; -// modTest.modVar++; -// } -// } -// // --- (line: 21) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// /*FIND ALL REFS*/[|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 5) skipped --- -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// [|clsVar|] = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this./*FIND ALL REFS*/[|clsVar|]++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// // --- (line: 18) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 3) skipped --- -// -// class fooCls { -// // References to static variable declared in a class. -// static [|clsSVar|] = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls./*FIND ALL REFS*/[|clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// // --- (line: 19) skipped --- - -// --- (line: 24) skipped --- -// var fnVar = 1; -// -// //Increments -// fooCls.[|clsSVar|]++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// // --- (line: 32) skipped --- - -// --- (line: 39) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// -// class testCls { -// // --- (line: 47) skipped --- - -// --- (line: 51) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// } -// -// // --- (line: 59) skipped --- - -// --- (line: 70) skipped --- -// foo(globalVar); -// -// //Increments -// fooCls.[|clsSVar|]++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// // --- (line: 78) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 7) skipped --- -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public [|clsParam|]: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this./*FIND ALL REFS*/[|clsParam|]++; -// modTest.modVar++; -// } -// } -// // --- (line: 21) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// /*FIND ALL REFS*/function [|foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 43) skipped --- -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// // --- (line: 64) skipped --- - -// --- (line: 67) skipped --- -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// // --- (line: 85) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function /*FIND ALL REFS*/[|foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 43) skipped --- -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// // --- (line: 64) skipped --- - -// --- (line: 67) skipped --- -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// // --- (line: 85) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function foo(/*FIND ALL REFS*/[|x|]: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 30) skipped --- -// fnVar++; -// -// //Return -// return [|x|]++; -// } -// -// module modTest { -// // --- (line: 38) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 21) skipped --- -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// /*FIND ALL REFS*/var [|fnVar|] = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// [|fnVar|]++; -// -// //Return -// return x++; -// // --- (line: 35) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 21) skipped --- -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var /*FIND ALL REFS*/[|fnVar|] = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// [|fnVar|]++; -// -// //Return -// return x++; -// // --- (line: 35) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 3) skipped --- -// -// class fooCls { -// // References to static variable declared in a class. -// static [|clsSVar|] = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.[|clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// // --- (line: 19) skipped --- - -// --- (line: 24) skipped --- -// var fnVar = 1; -// -// //Increments -// fooCls./*FIND ALL REFS*/[|clsSVar|]++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// // --- (line: 32) skipped --- - -// --- (line: 39) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// -// class testCls { -// // --- (line: 47) skipped --- - -// --- (line: 51) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// } -// -// // --- (line: 59) skipped --- - -// --- (line: 70) skipped --- -// foo(globalVar); -// -// //Increments -// fooCls.[|clsSVar|]++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// // --- (line: 78) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// /*FIND ALL REFS*/[|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 21) skipped --- -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var [|fnVar|] = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// /*FIND ALL REFS*/[|fnVar|]++; -// -// //Return -// return x++; -// // --- (line: 35) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function foo([|x|]: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 30) skipped --- -// fnVar++; -// -// //Return -// return /*FIND ALL REFS*/[|x|]++; -// } -// -// module modTest { -// // --- (line: 38) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// /*FIND ALL REFS*/[|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 3) skipped --- -// -// class fooCls { -// // References to static variable declared in a class. -// static [|clsSVar|] = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.[|clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// // --- (line: 19) skipped --- - -// --- (line: 24) skipped --- -// var fnVar = 1; -// -// //Increments -// fooCls.[|clsSVar|]++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// // --- (line: 32) skipped --- - -// --- (line: 39) skipped --- -// -// //Increments -// globalVar++; -// fooCls./*FIND ALL REFS*/[|clsSVar|]++; -// modVar++; -// -// class testCls { -// // --- (line: 47) skipped --- - -// --- (line: 51) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// } -// -// // --- (line: 59) skipped --- - -// --- (line: 70) skipped --- -// foo(globalVar); -// -// //Increments -// fooCls.[|clsSVar|]++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// // --- (line: 78) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function [|foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 43) skipped --- -// modVar++; -// -// class testCls { -// static boo = /*FIND ALL REFS*/[|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// // --- (line: 64) skipped --- - -// --- (line: 67) skipped --- -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// // --- (line: 85) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function [|foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 43) skipped --- -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = /*FIND ALL REFS*/[|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// // --- (line: 64) skipped --- - -// --- (line: 67) skipped --- -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// // --- (line: 85) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// /*FIND ALL REFS*/[|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 3) skipped --- -// -// class fooCls { -// // References to static variable declared in a class. -// static [|clsSVar|] = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.[|clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// // --- (line: 19) skipped --- - -// --- (line: 24) skipped --- -// var fnVar = 1; -// -// //Increments -// fooCls.[|clsSVar|]++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// // --- (line: 32) skipped --- - -// --- (line: 39) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// -// class testCls { -// // --- (line: 47) skipped --- - -// --- (line: 51) skipped --- -// -// //Increments -// globalVar++; -// fooCls./*FIND ALL REFS*/[|clsSVar|]++; -// modVar++; -// } -// -// // --- (line: 59) skipped --- - -// --- (line: 70) skipped --- -// foo(globalVar); -// -// //Increments -// fooCls.[|clsSVar|]++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// // --- (line: 78) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function [|foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 43) skipped --- -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = /*FIND ALL REFS*/[|foo|]; -// } -// } -// -// // --- (line: 64) skipped --- - -// --- (line: 67) skipped --- -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// // --- (line: 85) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(/*FIND ALL REFS*/[|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function [|foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 43) skipped --- -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// // --- (line: 64) skipped --- - -// --- (line: 67) skipped --- -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// /*FIND ALL REFS*/[|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// // --- (line: 85) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo(/*FIND ALL REFS*/[|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 3) skipped --- -// -// class fooCls { -// // References to static variable declared in a class. -// static [|clsSVar|] = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.[|clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// // --- (line: 19) skipped --- - -// --- (line: 24) skipped --- -// var fnVar = 1; -// -// //Increments -// fooCls.[|clsSVar|]++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// // --- (line: 32) skipped --- - -// --- (line: 39) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// -// class testCls { -// // --- (line: 47) skipped --- - -// --- (line: 51) skipped --- -// -// //Increments -// globalVar++; -// fooCls.[|clsSVar|]++; -// modVar++; -// } -// -// // --- (line: 59) skipped --- - -// --- (line: 70) skipped --- -// foo(globalVar); -// -// //Increments -// fooCls./*FIND ALL REFS*/[|clsSVar|]++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// // --- (line: 78) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// /*FIND ALL REFS*/[|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = /*FIND ALL REFS*/[|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + /*FIND ALL REFS*/[|globalVar|]; -// -// //ETC - Other cases -// [|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var [|globalVar|]: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// // --- (line: 17) skipped --- - -// --- (line: 25) skipped --- -// -// //Increments -// fooCls.clsSVar++; -// [|globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// // --- (line: 33) skipped --- - -// --- (line: 38) skipped --- -// export var modVar:number; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// // --- (line: 46) skipped --- - -// --- (line: 50) skipped --- -// static boo = foo; -// -// //Increments -// [|globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// // --- (line: 58) skipped --- - -// --- (line: 65) skipped --- -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// /*FIND ALL REFS*/[|globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// // --- (line: 83) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function [|foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 43) skipped --- -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// // --- (line: 64) skipped --- - -// --- (line: 67) skipped --- -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// /*FIND ALL REFS*/[|foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// // --- (line: 85) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 19) skipped --- -// } -// -// // References to a function parameter. -// function [|foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// // --- (line: 27) skipped --- - -// --- (line: 43) skipped --- -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// // --- (line: 64) skipped --- - -// --- (line: 67) skipped --- -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|foo|] = /*FIND ALL REFS*/[|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// // --- (line: 85) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 81) skipped --- -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(/*FIND ALL REFS*/[|globalVar|]: number) { -// //Increments -// [|globalVar|]++; -// return [|globalVar|]; -// } -// -// //Remotes -// // --- (line: 92) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 81) skipped --- -// err = err++; -// -// //Shadowed fn Parameter -// function shdw([|globalVar|]: number) { -// //Increments -// /*FIND ALL REFS*/[|globalVar|]++; -// return [|globalVar|]; -// } -// -// //Remotes -// // --- (line: 92) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 81) skipped --- -// err = err++; -// -// //Shadowed fn Parameter -// function shdw([|globalVar|]: number) { -// //Increments -// [|globalVar|]++; -// return /*FIND ALL REFS*/[|globalVar|]; -// } -// -// //Remotes -// // --- (line: 92) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 113) skipped --- -// array.forEach( -// -// -// function(/*FIND ALL REFS*/[|str|]) { -// -// -// -// // Reference misses function parameter. -// return [|str|] + " "; -// -// }); - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 113) skipped --- -// array.forEach( -// -// -// function([|str|]) { -// -// -// -// // Reference misses function parameter. -// return /*FIND ALL REFS*/[|str|] + " "; -// -// }); - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// // Comment Refence Test: g/*FIND ALL REFS*/lobalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// // --- (line: 5) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 78) skipped --- -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// /*FIND ALL REFS*/err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// // --- (line: 86) skipped --- - - - -// === findAllReferences === -// === /localGetReferences_1.ts === -// --- (line: 79) skipped --- -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// /*FIND ALL REFS*/ -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// // --- (line: 87) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc deleted file mode 100644 index 4cc9699bb0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findAllReferences === -// === /file1.ts === -// class Foo { -// constructor(private /*FIND ALL REFS*/[|privateParam|]: number, -// public publicParam: string, -// protected protectedParam: boolean) { -// -// let localPrivate = [|privateParam|]; -// this.[|privateParam|] += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /file1.ts === -// class Foo { -// constructor(private privateParam: number, -// public /*FIND ALL REFS*/[|publicParam|]: string, -// protected protectedParam: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = [|publicParam|]; -// this.[|publicParam|] += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } - - - -// === findAllReferences === -// === /file1.ts === -// class Foo { -// constructor(private privateParam: number, -// public publicParam: string, -// protected /*FIND ALL REFS*/[|protectedParam|]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = [|protectedParam|]; -// this.[|protectedParam|] = false; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc deleted file mode 100644 index 039a517c5f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc +++ /dev/null @@ -1,123 +0,0 @@ -// === findAllReferences === -// === /referenceToClass_1.ts === -// class /*FIND ALL REFS*/[|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - -// === /referenceToClass_2.ts === -// var k: [|foo|]; - - - -// === findAllReferences === -// === /referenceToClass_1.ts === -// class [|foo|] { -// public n: /*FIND ALL REFS*/[|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - -// === /referenceToClass_2.ts === -// var k: [|foo|]; - - - -// === findAllReferences === -// === /referenceToClass_1.ts === -// class [|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: /*FIND ALL REFS*/[|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - -// === /referenceToClass_2.ts === -// var k: [|foo|]; - - - -// === findAllReferences === -// === /referenceToClass_1.ts === -// class [|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new /*FIND ALL REFS*/[|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - -// === /referenceToClass_2.ts === -// var k: [|foo|]; - - - -// === findAllReferences === -// === /referenceToClass_1.ts === -// class [|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: /*FIND ALL REFS*/[|foo|] = null; -// } - -// === /referenceToClass_2.ts === -// var k: [|foo|]; - - - -// === findAllReferences === -// === /referenceToClass_1.ts === -// class [|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - -// === /referenceToClass_2.ts === -// var k: /*FIND ALL REFS*/[|foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc deleted file mode 100644 index b25f19fd68..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /referenceToEmptyObject.ts === -// const obj = {}/*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc deleted file mode 100644 index 95c1aa6286..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/referencesForGlobals_1.ts === -// class [|globalClass|] { -// public f() { } -// } - -// === /home/src/workspaces/project/referencesForGlobals_2.ts === -// /// -// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc deleted file mode 100644 index 2ca946624b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /declaration.ts === -// var container = { /*FIND ALL REFS*/[|searchProp|] : 1 }; - -// === /expression.ts === -// function blah() { return (1 + 2 + container.[|searchProp|]()) === 2; }; - -// === /redeclaration.ts === -// container = { "[|searchProp|]" : 18 }; - -// === /stringIndexer.ts === -// function blah2() { container["[|searchProp|]"] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc deleted file mode 100644 index e005ba98a0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /declaration.ts === -// var container = { /*FIND ALL REFS*/[|42|]: 1 }; - -// === /expression.ts === -// function blah() { return (container[[|42|]]) === 2; }; - -// === /redeclaration.ts === -// container = { "[|42|]" : 18 }; - -// === /stringIndexer.ts === -// function blah2() { container["[|42|]"] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc deleted file mode 100644 index f1fe9c8f47..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /declaration.ts === -// enum Test { /*FIND ALL REFS*/"[|42|]" = 1 }; - -// === /expression.ts === -// (Test[[|42|]]); - - - -// === findAllReferences === -// === /declaration.ts === -// enum Test { "/*FIND ALL REFS*/[|42|]" = 1 }; - -// === /expression.ts === -// (Test[[|42|]]); - - - -// === findAllReferences === -// === /declaration.ts === -// enum Test { "[|42|]" = 1 }; - -// === /expression.ts === -// (Test[/*FIND ALL REFS*/[|42|]]); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc deleted file mode 100644 index 9643fbc873..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc +++ /dev/null @@ -1,228 +0,0 @@ -// === findAllReferences === -// === /referencesForAmbients.ts === -// /*FIND ALL REFS*/declare module "[|foo|]" { -// var f: number; -// } -// -// declare module "bar" { -// export import foo = require("[|foo|]"); -// var f2: typeof foo.f; -// } -// -// // --- (line: 10) skipped --- - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "/*FIND ALL REFS*/[|foo|]" { -// var f: number; -// } -// -// declare module "bar" { -// export import foo = require("[|foo|]"); -// var f2: typeof foo.f; -// } -// -// // --- (line: 10) skipped --- - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// /*FIND ALL REFS*/var [|f|]: number; -// } -// -// declare module "bar" { -// export import foo = require("foo"); -// var f2: typeof foo.[|f|]; -// } -// -// declare module "baz" { -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var /*FIND ALL REFS*/[|f|]: number; -// } -// -// declare module "bar" { -// export import foo = require("foo"); -// var f2: typeof foo.[|f|]; -// } -// -// declare module "baz" { -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var f: number; -// } -// -// /*FIND ALL REFS*/declare module "[|bar|]" { -// export import foo = require("foo"); -// var f2: typeof foo.f; -// } -// -// declare module "baz" { -// import bar = require("[|bar|]"); -// var f2: typeof bar.foo; -// } - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var f: number; -// } -// -// declare module "/*FIND ALL REFS*/[|bar|]" { -// export import foo = require("foo"); -// var f2: typeof foo.f; -// } -// -// declare module "baz" { -// import bar = require("[|bar|]"); -// var f2: typeof bar.foo; -// } - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// /*FIND ALL REFS*/export import [|foo|] = require("foo"); -// var f2: typeof [|foo|].f; -// } -// -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.[|foo|]; -// } - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// export import /*FIND ALL REFS*/[|foo|] = require("foo"); -// var f2: typeof [|foo|].f; -// } -// -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.[|foo|]; -// } - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "[|foo|]" { -// var f: number; -// } -// -// declare module "bar" { -// export import foo = require("/*FIND ALL REFS*/[|foo|]"); -// var f2: typeof foo.f; -// } -// -// // --- (line: 10) skipped --- - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// export import [|foo|] = require("foo"); -// var f2: typeof /*FIND ALL REFS*/[|foo|].f; -// } -// -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.[|foo|]; -// } - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var [|f|]: number; -// } -// -// declare module "bar" { -// export import foo = require("foo"); -// var f2: typeof foo./*FIND ALL REFS*/[|f|]; -// } -// -// declare module "baz" { -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// --- (line: 7) skipped --- -// } -// -// declare module "baz" { -// /*FIND ALL REFS*/import [|bar|] = require("bar"); -// var f2: typeof [|bar|].foo; -// } - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var f: number; -// } -// -// declare module "[|bar|]" { -// export import foo = require("foo"); -// var f2: typeof foo.f; -// } -// -// declare module "baz" { -// import bar = require("/*FIND ALL REFS*/[|bar|]"); -// var f2: typeof bar.foo; -// } - - - -// === findAllReferences === -// === /referencesForAmbients.ts === -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// export import [|foo|] = require("foo"); -// var f2: typeof [|foo|].f; -// } -// -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar./*FIND ALL REFS*/[|foo|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc deleted file mode 100644 index 1644f2ca65..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc +++ /dev/null @@ -1,77 +0,0 @@ -// === findAllReferences === -// === /referencesForClassLocal.ts === -// var n = 14; -// -// class foo { -// /*FIND ALL REFS*/private [|n|] = 0; -// -// public bar() { -// this.[|n|] = 9; -// } -// -// constructor() { -// this.[|n|] = 4; -// } -// -// public bar2() { -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /referencesForClassLocal.ts === -// var n = 14; -// -// class foo { -// private /*FIND ALL REFS*/[|n|] = 0; -// -// public bar() { -// this.[|n|] = 9; -// } -// -// constructor() { -// this.[|n|] = 4; -// } -// -// public bar2() { -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /referencesForClassLocal.ts === -// var n = 14; -// -// class foo { -// private [|n|] = 0; -// -// public bar() { -// this./*FIND ALL REFS*/[|n|] = 9; -// } -// -// constructor() { -// this.[|n|] = 4; -// } -// -// public bar2() { -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /referencesForClassLocal.ts === -// var n = 14; -// -// class foo { -// private [|n|] = 0; -// -// public bar() { -// this.[|n|] = 9; -// } -// -// constructor() { -// this./*FIND ALL REFS*/[|n|] = 4; -// } -// -// public bar2() { -// // --- (line: 15) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc deleted file mode 100644 index 33b6e54679..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc +++ /dev/null @@ -1,99 +0,0 @@ -// === findAllReferences === -// === /referencesForClassMembers.ts === -// class Base { -// /*FIND ALL REFS*/[|a|]: number; -// method(): void { } -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === -// class Base { -// [|a|]: number; -// method(): void { } -// } -// class MyClass extends Base { -// /*FIND ALL REFS*/[|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === -// class Base { -// [|a|]: number; -// method(): void { } -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c./*FIND ALL REFS*/[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === -// class Base { -// a: number; -// /*FIND ALL REFS*/[|method|](): void { } -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === -// class Base { -// a: number; -// [|method|](): void { } -// } -// class MyClass extends Base { -// a; -// /*FIND ALL REFS*/[|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === -// class Base { -// a: number; -// [|method|](): void { } -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc deleted file mode 100644 index f86f487c5f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc +++ /dev/null @@ -1,99 +0,0 @@ -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === -// abstract class Base { -// abstract /*FIND ALL REFS*/[|a|]: number; -// abstract method(): void; -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === -// abstract class Base { -// abstract [|a|]: number; -// abstract method(): void; -// } -// class MyClass extends Base { -// /*FIND ALL REFS*/[|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === -// abstract class Base { -// abstract [|a|]: number; -// abstract method(): void; -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c./*FIND ALL REFS*/[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === -// abstract class Base { -// abstract a: number; -// abstract /*FIND ALL REFS*/[|method|](): void; -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === -// abstract class Base { -// abstract a: number; -// abstract [|method|](): void; -// } -// class MyClass extends Base { -// a; -// /*FIND ALL REFS*/[|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === -// abstract class Base { -// abstract a: number; -// abstract [|method|](): void; -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc deleted file mode 100644 index c1fa532bb7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc +++ /dev/null @@ -1,99 +0,0 @@ -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === -// class Base { -// /*FIND ALL REFS*/[|a|]: this; -// method(a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === -// class Base { -// [|a|]: this; -// method(a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// /*FIND ALL REFS*/[|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === -// class Base { -// [|a|]: this; -// method(a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c./*FIND ALL REFS*/[|a|]; -// c.method(); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === -// class Base { -// a: this; -// /*FIND ALL REFS*/[|method|](a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === -// class Base { -// a: this; -// [|method|](a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// a; -// /*FIND ALL REFS*/[|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === -// class Base { -// a: this; -// [|method|](a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc deleted file mode 100644 index b1565d329a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc +++ /dev/null @@ -1,81 +0,0 @@ -// === findAllReferences === -// === /referencesForClassParameter.ts === -// var p = 2; -// -// class p { } -// -// class foo { -// constructor (/*FIND ALL REFS*/public [|p|]: any) { -// } -// -// public f(p) { -// this.[|p|] = p; -// } -// -// } -// -// var n = new foo(undefined); -// n.[|p|] = null; - - - -// === findAllReferences === -// === /referencesForClassParameter.ts === -// var p = 2; -// -// class p { } -// -// class foo { -// constructor (public /*FIND ALL REFS*/[|p|]: any) { -// } -// -// public f(p) { -// this.[|p|] = p; -// } -// -// } -// -// var n = new foo(undefined); -// n.[|p|] = null; - - - -// === findAllReferences === -// === /referencesForClassParameter.ts === -// var p = 2; -// -// class p { } -// -// class foo { -// constructor (public [|p|]: any) { -// } -// -// public f(p) { -// this./*FIND ALL REFS*/[|p|] = p; -// } -// -// } -// -// var n = new foo(undefined); -// n.[|p|] = null; - - - -// === findAllReferences === -// === /referencesForClassParameter.ts === -// var p = 2; -// -// class p { } -// -// class foo { -// constructor (public [|p|]: any) { -// } -// -// public f(p) { -// this.[|p|] = p; -// } -// -// } -// -// var n = new foo(undefined); -// n./*FIND ALL REFS*/[|p|] = null; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc deleted file mode 100644 index 4c491c78d4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /referencesForContextuallyTypedObjectLiteralProperties.ts === -// interface IFoo { /*FIND ALL REFS*/[|xy|]: number; } -// -// // Assignment -// var a1: IFoo = { [|xy|]: 0 }; -// var a2: IFoo = { [|xy|]: 0 }; -// -// // Function call -// function consumer(f: IFoo) { } -// consumer({ [|xy|]: 1 }); -// -// // Type cast -// var c = { [|xy|]: 0 }; -// -// // Array literal -// var ar: IFoo[] = [{ [|xy|]: 1 }, { [|xy|]: 2 }]; -// -// // Nested object literal -// var ob: { ifoo: IFoo } = { ifoo: { [|xy|]: 0 } }; -// -// // Widened type -// var w: IFoo = { [|xy|]: undefined }; -// -// // Untped -- should not be included -// var u = { xy: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc deleted file mode 100644 index f690bc1ada..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc +++ /dev/null @@ -1,229 +0,0 @@ -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// /*FIND ALL REFS*/class [|C1|] extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// class [|Base|] {} -// interface Implemented1 {} -// class C1 /*FIND ALL REFS*/extends [|Base|] implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends [|Base|] { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// class Base {} -// interface [|Implemented1|] {} -// class C1 extends Base /*FIND ALL REFS*/implements [|Implemented1|] { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 14) skipped --- -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 /*FIND ALL REFS*/implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// /*FIND ALL REFS*/get [|e|]() { return 1; } -// set [|e|](v) {} -// } -// interface I1 extends Base { } -// type T = { } -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get [|e|]() { return 1; } -// /*FIND ALL REFS*/set [|e|](v) {} -// } -// interface I1 extends Base { } -// type T = { } -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 3) skipped --- -// get e() { return 1; } -// set e(v) {} -// } -// /*FIND ALL REFS*/interface [|I1|] extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// class [|Base|] {} -// interface Implemented1 {} -// class C1 extends [|Base|] implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 /*FIND ALL REFS*/extends [|Base|] { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 15) skipped --- -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 /*FIND ALL REFS*/extends Implemented2, Implemented3 {} - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 4) skipped --- -// set e(v) {} -// } -// interface I1 extends Base { } -// /*FIND ALL REFS*/type [|T|] = { } -// enum E { } -// namespace N { } -// module M { } -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 5) skipped --- -// } -// interface I1 extends Base { } -// type T = { } -// /*FIND ALL REFS*/enum [|E|] { } -// namespace N { } -// module M { } -// function fn() {} -// // --- (line: 13) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 6) skipped --- -// interface I1 extends Base { } -// type T = { } -// enum E { } -// /*FIND ALL REFS*/namespace [|N|] { } -// module M { } -// function fn() {} -// var x; -// // --- (line: 14) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 7) skipped --- -// type T = { } -// enum E { } -// namespace N { } -// /*FIND ALL REFS*/module [|M|] { } -// function fn() {} -// var x; -// let y; -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 8) skipped --- -// enum E { } -// namespace N { } -// module M { } -// /*FIND ALL REFS*/function [|fn|]() {} -// var x; -// let y; -// const z = 1; -// // --- (line: 16) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 9) skipped --- -// namespace N { } -// module M { } -// function fn() {} -// /*FIND ALL REFS*/var [|x|]; -// let y; -// const z = 1; -// interface Implemented2 {} -// // --- (line: 17) skipped --- - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 10) skipped --- -// module M { } -// function fn() {} -// var x; -// /*FIND ALL REFS*/let [|y|]; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === -// --- (line: 11) skipped --- -// function fn() {} -// var x; -// let y; -// /*FIND ALL REFS*/const [|z|] = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc deleted file mode 100644 index 1cc4283eff..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc +++ /dev/null @@ -1,132 +0,0 @@ -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// /*FIND ALL REFS*/[|value1|] = 1, -// "value2" = [|value1|], -// 111 = 11 -// } -// -// E.[|value1|]; -// E["value2"]; -// E.value2; -// E[111]; - - - -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// value1 = 1, -// /*FIND ALL REFS*/"[|value2|]" = value1, -// 111 = 11 -// } -// -// E.value1; -// E["[|value2|]"]; -// E.[|value2|]; -// E[111]; - - - -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// value1 = 1, -// "/*FIND ALL REFS*/[|value2|]" = value1, -// 111 = 11 -// } -// -// E.value1; -// E["[|value2|]"]; -// E.[|value2|]; -// E[111]; - - - -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// [|value1|] = 1, -// "value2" = /*FIND ALL REFS*/[|value1|], -// 111 = 11 -// } -// -// E.[|value1|]; -// E["value2"]; -// E.value2; -// E[111]; - - - -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// value1 = 1, -// "value2" = value1, -// /*FIND ALL REFS*/[|111|] = 11 -// } -// -// E.value1; -// E["value2"]; -// E.value2; -// E[[|111|]]; - - - -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// [|value1|] = 1, -// "value2" = [|value1|], -// 111 = 11 -// } -// -// E./*FIND ALL REFS*/[|value1|]; -// E["value2"]; -// E.value2; -// E[111]; - - - -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// value1 = 1, -// "[|value2|]" = value1, -// 111 = 11 -// } -// -// E.value1; -// E["/*FIND ALL REFS*/[|value2|]"]; -// E.[|value2|]; -// E[111]; - - - -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// value1 = 1, -// "[|value2|]" = value1, -// 111 = 11 -// } -// -// E.value1; -// E["[|value2|]"]; -// E./*FIND ALL REFS*/[|value2|]; -// E[111]; - - - -// === findAllReferences === -// === /referencesForEnums.ts === -// enum E { -// value1 = 1, -// "value2" = value1, -// [|111|] = 11 -// } -// -// E.value1; -// E["value2"]; -// E.value2; -// E[/*FIND ALL REFS*/[|111|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExportedValues.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExportedValues.baseline.jsonc deleted file mode 100644 index 10c12df9c3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExportedValues.baseline.jsonc +++ /dev/null @@ -1,50 +0,0 @@ -// === findAllReferences === -// === /referencesForExportedValues.ts === -// module M { -// /*FIND ALL REFS*/export var variable = 0; -// -// // local use -// var x = variable; -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /referencesForExportedValues.ts === -// module M { -// export var /*FIND ALL REFS*/[|variable|] = 0; -// -// // local use -// var x = [|variable|]; -// } -// -// // external use -// M.[|variable|] - - - -// === findAllReferences === -// === /referencesForExportedValues.ts === -// module M { -// export var [|variable|] = 0; -// -// // local use -// var x = /*FIND ALL REFS*/[|variable|]; -// } -// -// // external use -// M.[|variable|] - - - -// === findAllReferences === -// === /referencesForExportedValues.ts === -// module M { -// export var [|variable|] = 0; -// -// // local use -// var x = [|variable|]; -// } -// -// // external use -// M./*FIND ALL REFS*/[|variable|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc deleted file mode 100644 index c7d0181ab8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc +++ /dev/null @@ -1,165 +0,0 @@ -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class [|C|] { -// static x = 1; -// } -// /*FIND ALL REFS*/new [|C|](); -// void [|C|]; -// typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// yield [|C|]; -// await [|C|]; -// } -// "x" in [|C|]; -// undefined instanceof [|C|]; -// undefined as [|C|]; - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class [|C|] { -// static x = 1; -// } -// new [|C|](); -// /*FIND ALL REFS*/void [|C|]; -// typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// yield [|C|]; -// await [|C|]; -// } -// "x" in [|C|]; -// undefined instanceof [|C|]; -// undefined as [|C|]; - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class [|C|] { -// static x = 1; -// } -// new [|C|](); -// void [|C|]; -// /*FIND ALL REFS*/typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// yield [|C|]; -// await [|C|]; -// } -// "x" in [|C|]; -// undefined instanceof [|C|]; -// undefined as [|C|]; - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class [|C|] { -// static x = 1; -// } -// new [|C|](); -// void [|C|]; -// typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// /*FIND ALL REFS*/yield [|C|]; -// await [|C|]; -// } -// "x" in [|C|]; -// undefined instanceof [|C|]; -// undefined as [|C|]; - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class [|C|] { -// static x = 1; -// } -// new [|C|](); -// void [|C|]; -// typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// yield [|C|]; -// /*FIND ALL REFS*/await [|C|]; -// } -// "x" in [|C|]; -// undefined instanceof [|C|]; -// undefined as [|C|]; - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class [|C|] { -// static x = 1; -// } -// new [|C|](); -// void [|C|]; -// typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// yield [|C|]; -// await [|C|]; -// } -// "x" /*FIND ALL REFS*/in [|C|]; -// undefined instanceof [|C|]; -// undefined as [|C|]; - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class [|C|] { -// static x = 1; -// } -// new [|C|](); -// void [|C|]; -// typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// yield [|C|]; -// await [|C|]; -// } -// "x" in [|C|]; -// undefined /*FIND ALL REFS*/instanceof [|C|]; -// undefined as [|C|]; - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class [|C|] { -// static x = 1; -// } -// new [|C|](); -// void [|C|]; -// typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// yield [|C|]; -// await [|C|]; -// } -// "x" in [|C|]; -// undefined instanceof [|C|]; -// undefined /*FIND ALL REFS*/as [|C|]; - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === -// class C { -// static [|x|] = 1; -// } -// new C(); -// void C; -// typeof C; -// /*FIND ALL REFS*/delete C.[|x|]; -// async function* f() { -// yield C; -// await C; -// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc deleted file mode 100644 index cdbcdc4593..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// /*FIND ALL REFS*/declare module "[|foo|]" { -// var f: number; -// } - -// === /referencesForGlobals_2.ts === -// import f = require("[|foo|]"); - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// declare module "/*FIND ALL REFS*/[|foo|]" { -// var f: number; -// } - -// === /referencesForGlobals_2.ts === -// import f = require("[|foo|]"); - - - -// === findAllReferences === -// === /referencesForGlobals_2.ts === -// /*FIND ALL REFS*/import [|f|] = require("foo"); - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// declare module "[|foo|]" { -// var f: number; -// } - -// === /referencesForGlobals_2.ts === -// import f = require("/*FIND ALL REFS*/[|foo|]"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc deleted file mode 100644 index 02172bb86d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc +++ /dev/null @@ -1,42 +0,0 @@ -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === -// /*FIND ALL REFS*/function [|foo|](x: string); -// function [|foo|](x: string, y: number) { -// [|foo|]('', 43); -// } - - - -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === -// function /*FIND ALL REFS*/[|foo|](x: string); -// function [|foo|](x: string, y: number) { -// [|foo|]('', 43); -// } - - - -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === -// function [|foo|](x: string); -// /*FIND ALL REFS*/function [|foo|](x: string, y: number) { -// [|foo|]('', 43); -// } - - - -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === -// function [|foo|](x: string); -// function /*FIND ALL REFS*/[|foo|](x: string, y: number) { -// [|foo|]('', 43); -// } - - - -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === -// function [|foo|](x: string); -// function [|foo|](x: string, y: number) { -// /*FIND ALL REFS*/[|foo|]('', 43); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc deleted file mode 100644 index f6c122df92..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /referencesForFunctionParameter.ts === -// var x; -// var n; -// -// function n(x: number, /*FIND ALL REFS*/[|n|]: number) { -// [|n|] = 32; -// x = [|n|]; -// } - - - -// === findAllReferences === -// === /referencesForFunctionParameter.ts === -// var x; -// var n; -// -// function n(x: number, [|n|]: number) { -// /*FIND ALL REFS*/[|n|] = 32; -// x = [|n|]; -// } - - - -// === findAllReferences === -// === /referencesForFunctionParameter.ts === -// var x; -// var n; -// -// function n(x: number, [|n|]: number) { -// [|n|] = 32; -// x = /*FIND ALL REFS*/[|n|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc deleted file mode 100644 index 7942e20845..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc +++ /dev/null @@ -1,127 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// /*FIND ALL REFS*/var [|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = [|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = [|global|]; - -// === /referencesForGlobals_2.ts === -// var m = [|global|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// var /*FIND ALL REFS*/[|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = [|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = [|global|]; - -// === /referencesForGlobals_2.ts === -// var m = [|global|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// var [|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = /*FIND ALL REFS*/[|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = [|global|]; - -// === /referencesForGlobals_2.ts === -// var m = [|global|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// var [|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = [|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = /*FIND ALL REFS*/[|global|]; - -// === /referencesForGlobals_2.ts === -// var m = [|global|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// var [|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = [|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = [|global|]; - -// === /referencesForGlobals_2.ts === -// var m = /*FIND ALL REFS*/[|global|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc deleted file mode 100644 index d610d04261..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// /*FIND ALL REFS*/class [|globalClass|] { -// public f() { } -// } - -// === /referencesForGlobals_2.ts === -// var c = [|globalClass|](); - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// class /*FIND ALL REFS*/[|globalClass|] { -// public f() { } -// } - -// === /referencesForGlobals_2.ts === -// var c = [|globalClass|](); - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// class [|globalClass|] { -// public f() { } -// } - -// === /referencesForGlobals_2.ts === -// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc deleted file mode 100644 index 900a8652b7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// /*FIND ALL REFS*/interface [|globalInterface|] { -// f(); -// } - -// === /referencesForGlobals_2.ts === -// var i: [|globalInterface|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// interface /*FIND ALL REFS*/[|globalInterface|] { -// f(); -// } - -// === /referencesForGlobals_2.ts === -// var i: [|globalInterface|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// interface [|globalInterface|] { -// f(); -// } - -// === /referencesForGlobals_2.ts === -// var i: /*FIND ALL REFS*/[|globalInterface|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc deleted file mode 100644 index 0d1e16d30b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// /*FIND ALL REFS*/module [|globalModule|] { -// export f() { }; -// } - -// === /referencesForGlobals_2.ts === -// var m = [|globalModule|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// module /*FIND ALL REFS*/[|globalModule|] { -// export f() { }; -// } - -// === /referencesForGlobals_2.ts === -// var m = [|globalModule|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// module [|globalModule|] { -// export f() { }; -// } - -// === /referencesForGlobals_2.ts === -// var m = /*FIND ALL REFS*/[|globalModule|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc deleted file mode 100644 index 1fe53ef3aa..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// module globalModule { -// export var x; -// } -// -// /*FIND ALL REFS*/import [|globalAlias|] = globalModule; - -// === /referencesForGlobals_2.ts === -// var m = [|globalAlias|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// module globalModule { -// export var x; -// } -// -// import /*FIND ALL REFS*/[|globalAlias|] = globalModule; - -// === /referencesForGlobals_2.ts === -// var m = [|globalAlias|]; - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === -// module globalModule { -// export var x; -// } -// -// import [|globalAlias|] = globalModule; - -// === /referencesForGlobals_2.ts === -// var m = /*FIND ALL REFS*/[|globalAlias|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc deleted file mode 100644 index f676331fc7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc +++ /dev/null @@ -1,162 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// /*FIND ALL REFS*/var [|topLevelVar|] = 2; -// var topLevelVar2 = [|topLevelVar|]; -// -// class topLevelClass { } -// var c = new topLevelClass(); -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// var /*FIND ALL REFS*/[|topLevelVar|] = 2; -// var topLevelVar2 = [|topLevelVar|]; -// -// class topLevelClass { } -// var c = new topLevelClass(); -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// var [|topLevelVar|] = 2; -// var topLevelVar2 = /*FIND ALL REFS*/[|topLevelVar|]; -// -// class topLevelClass { } -// var c = new topLevelClass(); -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// /*FIND ALL REFS*/class [|topLevelClass|] { } -// var c = new [|topLevelClass|](); -// -// interface topLevelInterface { } -// var i: topLevelInterface; -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// class /*FIND ALL REFS*/[|topLevelClass|] { } -// var c = new [|topLevelClass|](); -// -// interface topLevelInterface { } -// var i: topLevelInterface; -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// class [|topLevelClass|] { } -// var c = new /*FIND ALL REFS*/[|topLevelClass|](); -// -// interface topLevelInterface { } -// var i: topLevelInterface; -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// --- (line: 3) skipped --- -// class topLevelClass { } -// var c = new topLevelClass(); -// -// /*FIND ALL REFS*/interface [|topLevelInterface|] { } -// var i: [|topLevelInterface|]; -// -// module topLevelModule { -// export var x; -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// --- (line: 3) skipped --- -// class topLevelClass { } -// var c = new topLevelClass(); -// -// interface /*FIND ALL REFS*/[|topLevelInterface|] { } -// var i: [|topLevelInterface|]; -// -// module topLevelModule { -// export var x; -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// --- (line: 3) skipped --- -// class topLevelClass { } -// var c = new topLevelClass(); -// -// interface [|topLevelInterface|] { } -// var i: /*FIND ALL REFS*/[|topLevelInterface|]; -// -// module topLevelModule { -// export var x; -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// --- (line: 6) skipped --- -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// /*FIND ALL REFS*/module [|topLevelModule|] { -// export var x; -// } -// var x = [|topLevelModule|].x; -// -// export = x; - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// --- (line: 6) skipped --- -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// module /*FIND ALL REFS*/[|topLevelModule|] { -// export var x; -// } -// var x = [|topLevelModule|].x; -// -// export = x; - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === -// --- (line: 6) skipped --- -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// module [|topLevelModule|] { -// export var x; -// } -// var x = /*FIND ALL REFS*/[|topLevelModule|].x; -// -// export = x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc deleted file mode 100644 index d93532f71d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findAllReferences === -// === /referencesForIllegalAssignment.ts === -// f/*FIND ALL REFS*/oo = foo; -// var bar = function () { }; -// bar = bar + 1; - - - -// === findAllReferences === -// === /referencesForIllegalAssignment.ts === -// foo = fo/*FIND ALL REFS*/o; -// var bar = function () { }; -// bar = bar + 1; - - - -// === findAllReferences === -// === /referencesForIllegalAssignment.ts === -// foo = foo; -// var /*FIND ALL REFS*/[|bar|] = function () { }; -// [|bar|] = [|bar|] + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc deleted file mode 100644 index bd03e117e5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findAllReferences === -// === /referencesForImports.ts === -// declare module "jquery" { -// function $(s: string): any; -// export = $; -// } -// /*FIND ALL REFS*/import [|$|] = require("jquery"); -// [|$|]("a"); -// import $ = require("jquery"); - - - -// === findAllReferences === -// === /referencesForImports.ts === -// declare module "jquery" { -// function $(s: string): any; -// export = $; -// } -// import /*FIND ALL REFS*/[|$|] = require("jquery"); -// [|$|]("a"); -// import $ = require("jquery"); - - - -// === findAllReferences === -// === /referencesForImports.ts === -// declare module "jquery" { -// function $(s: string): any; -// export = $; -// } -// import [|$|] = require("jquery"); -// /*FIND ALL REFS*/[|$|]("a"); -// import $ = require("jquery"); - - - -// === findAllReferences === -// === /referencesForImports.ts === -// --- (line: 3) skipped --- -// } -// import $ = require("jquery"); -// $("a"); -// /*FIND ALL REFS*/import [|$|] = require("jquery"); - - - -// === findAllReferences === -// === /referencesForImports.ts === -// --- (line: 3) skipped --- -// } -// import $ = require("jquery"); -// $("a"); -// import /*FIND ALL REFS*/[|$|] = require("jquery"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc deleted file mode 100644 index 1ded639d70..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /referencesForIndexProperty.ts === -// class Foo { -// /*FIND ALL REFS*/[|property|]: number; -// method(): void { } -// } -// -// var f: Foo; -// f["[|property|]"]; -// f["method"]; - - - -// === findAllReferences === -// === /referencesForIndexProperty.ts === -// class Foo { -// property: number; -// /*FIND ALL REFS*/[|method|](): void { } -// } -// -// var f: Foo; -// f["property"]; -// f["[|method|]"]; - - - -// === findAllReferences === -// === /referencesForIndexProperty.ts === -// class Foo { -// [|property|]: number; -// method(): void { } -// } -// -// var f: Foo; -// f["/*FIND ALL REFS*/[|property|]"]; -// f["method"]; - - - -// === findAllReferences === -// === /referencesForIndexProperty.ts === -// class Foo { -// property: number; -// [|method|](): void { } -// } -// -// var f: Foo; -// f["property"]; -// f["/*FIND ALL REFS*/[|method|]"]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc deleted file mode 100644 index 85224ee567..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /referencesForIndexProperty2.ts === -// var a; -// a["/*FIND ALL REFS*/blah"]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc deleted file mode 100644 index 682a16fa69..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findAllReferences === -// === /referencesForIndexProperty3.ts === -// interface Object { -// /*FIND ALL REFS*/[|toMyString|](); -// } -// -// var y: Object; -// y.[|toMyString|](); -// -// var x = {}; -// x["[|toMyString|]"](); - - - -// === findAllReferences === -// === /referencesForIndexProperty3.ts === -// interface Object { -// [|toMyString|](); -// } -// -// var y: Object; -// y./*FIND ALL REFS*/[|toMyString|](); -// -// var x = {}; -// x["[|toMyString|]"](); - - - -// === findAllReferences === -// === /referencesForIndexProperty3.ts === -// interface Object { -// [|toMyString|](); -// } -// -// var y: Object; -// y.[|toMyString|](); -// -// var x = {}; -// x["/*FIND ALL REFS*/[|toMyString|]"](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc deleted file mode 100644 index 293d6351e9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc +++ /dev/null @@ -1,97 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties.ts === -// interface interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// } -// -// interface interface2 extends interface1{ -// [|doStuff|](): void; -// } -// -// class class1 implements interface2 { -// [|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v.[|doStuff|](); - - - -// === findAllReferences === -// === /referencesForInheritedProperties.ts === -// interface interface1 { -// [|doStuff|](): void; -// } -// -// interface interface2 extends interface1{ -// /*FIND ALL REFS*/[|doStuff|](): void; -// } -// -// class class1 implements interface2 { -// [|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v.[|doStuff|](); - - - -// === findAllReferences === -// === /referencesForInheritedProperties.ts === -// interface interface1 { -// [|doStuff|](): void; -// } -// -// interface interface2 extends interface1{ -// [|doStuff|](): void; -// } -// -// class class1 implements interface2 { -// /*FIND ALL REFS*/[|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v.[|doStuff|](); - - - -// === findAllReferences === -// === /referencesForInheritedProperties.ts === -// interface interface1 { -// [|doStuff|](): void; -// } -// -// interface interface2 extends interface1{ -// [|doStuff|](): void; -// } -// -// class class1 implements interface2 { -// [|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v./*FIND ALL REFS*/[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties10.baseline.jsonc deleted file mode 100644 index 7dde88000c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties10.baseline.jsonc +++ /dev/null @@ -1,75 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties10.ts === -// interface IFeedbackHandler { -// /*FIND ALL REFS*/[|handleAccept|]?(): void; -// handleReject?(): void; -// } -// -// abstract class AbstractFeedbackHandler implements IFeedbackHandler {} -// -// class FeedbackHandler extends AbstractFeedbackHandler { -// [|handleAccept|](): void { -// console.log("Feedback accepted"); -// } -// -// handleReject(): void { -// console.log("Feedback rejected"); -// } -// } -// -// function foo(handler: IFeedbackHandler) { -// handler.[|handleAccept|]?.(); -// handler.handleReject?.(); -// } - - - -// === findAllReferences === -// === /referencesForInheritedProperties10.ts === -// interface IFeedbackHandler { -// [|handleAccept|]?(): void; -// handleReject?(): void; -// } -// -// abstract class AbstractFeedbackHandler implements IFeedbackHandler {} -// -// class FeedbackHandler extends AbstractFeedbackHandler { -// /*FIND ALL REFS*/[|handleAccept|](): void { -// console.log("Feedback accepted"); -// } -// -// handleReject(): void { -// console.log("Feedback rejected"); -// } -// } -// -// function foo(handler: IFeedbackHandler) { -// handler.[|handleAccept|]?.(); -// handler.handleReject?.(); -// } - - - -// === findAllReferences === -// === /referencesForInheritedProperties10.ts === -// interface IFeedbackHandler { -// [|handleAccept|]?(): void; -// handleReject?(): void; -// } -// -// abstract class AbstractFeedbackHandler implements IFeedbackHandler {} -// -// class FeedbackHandler extends AbstractFeedbackHandler { -// [|handleAccept|](): void { -// console.log("Feedback accepted"); -// } -// -// handleReject(): void { -// console.log("Feedback rejected"); -// } -// } -// -// function foo(handler: IFeedbackHandler) { -// handler./*FIND ALL REFS*/[|handleAccept|]?.(); -// handler.handleReject?.(); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc deleted file mode 100644 index e34fca6cd0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties2.ts === -// interface interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// } -// -// interface interface2 { -// [|doStuff|](): void; -// } -// -// interface interface2 extends interface1 { -// } -// -// class class1 implements interface2 { -// [|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v.[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc deleted file mode 100644 index 19d90b93c7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties3.ts === -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// -// var v: interface1; -// v.propName; -// v.[|doStuff|](); - - - -// === findAllReferences === -// === /referencesForInheritedProperties3.ts === -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var v: interface1; -// v.[|propName|]; -// v.doStuff(); - - - -// === findAllReferences === -// === /referencesForInheritedProperties3.ts === -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// -// var v: interface1; -// v./*FIND ALL REFS*/[|propName|]; -// v.doStuff(); - - - -// === findAllReferences === -// === /referencesForInheritedProperties3.ts === -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// -// var v: interface1; -// v.propName; -// v./*FIND ALL REFS*/[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc deleted file mode 100644 index 3a6c2a0e04..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties4.ts === -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// -// var c: class1; -// c.[|doStuff|](); -// c.propName; - - - -// === findAllReferences === -// === /referencesForInheritedProperties4.ts === -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var c: class1; -// c.doStuff(); -// c.[|propName|]; - - - -// === findAllReferences === -// === /referencesForInheritedProperties4.ts === -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var c: class1; -// c./*FIND ALL REFS*/[|doStuff|](); -// c.propName; - - - -// === findAllReferences === -// === /referencesForInheritedProperties4.ts === -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var c: class1; -// c.doStuff(); -// c./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc deleted file mode 100644 index 3c9123193e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties5.ts === -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// interface interface2 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// -// var v: interface1; -// v.propName; -// v.[|doStuff|](); - - - -// === findAllReferences === -// === /referencesForInheritedProperties5.ts === -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface2 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// -// var v: interface1; -// v.[|propName|]; -// v.doStuff(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc deleted file mode 100644 index 7234ace5af..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties6.ts === -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// } -// class class2 extends class1 { -// [|doStuff|]() { } -// } -// -// var v: class2; -// v.[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc deleted file mode 100644 index 78bfa8e7bc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc +++ /dev/null @@ -1,121 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === -// class class1 extends class1 { -// doStuff() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === -// --- (line: 3) skipped --- -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc deleted file mode 100644 index 972d4a33d9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties8.ts === -// interface C extends D { -// /*FIND ALL REFS*/[|propD|]: number; -// } -// interface D extends C { -// [|propD|]: string; -// propC: number; -// } -// var d: D; -// d.[|propD|]; -// d.propC; - - - -// === findAllReferences === -// === /referencesForInheritedProperties8.ts === -// interface C extends D { -// propD: number; -// } -// interface D extends C { -// propD: string; -// /*FIND ALL REFS*/[|propC|]: number; -// } -// var d: D; -// d.propD; -// d.[|propC|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc deleted file mode 100644 index fa5cd78b48..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties9.ts === -// class D extends C { -// /*FIND ALL REFS*/[|prop1|]: string; -// } -// -// class C extends D { -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /referencesForInheritedProperties9.ts === -// class D extends C { -// prop1: string; -// } -// -// class C extends D { -// /*FIND ALL REFS*/[|prop1|]: string; -// } -// -// var c: C; -// c.[|prop1|]; - - - -// === findAllReferences === -// === /referencesForInheritedProperties9.ts === -// class D extends C { -// prop1: string; -// } -// -// class C extends D { -// [|prop1|]: string; -// } -// -// var c: C; -// c./*FIND ALL REFS*/[|prop1|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc deleted file mode 100644 index 783462c95b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc +++ /dev/null @@ -1,69 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel.ts === -// /*FIND ALL REFS*/[|label|]: while (true) { -// if (false) break [|label|]; -// if (true) continue [|label|]; -// } -// -// label: while (false) { } -// var label = "label"; - - - -// === findAllReferences === -// === /referencesForLabel.ts === -// label: while (true) { -// if (false) /*FIND ALL REFS*/break label; -// if (true) continue label; -// } -// -// label: while (false) { } -// var label = "label"; - - - -// === findAllReferences === -// === /referencesForLabel.ts === -// [|label|]: while (true) { -// if (false) break /*FIND ALL REFS*/[|label|]; -// if (true) continue [|label|]; -// } -// -// label: while (false) { } -// var label = "label"; - - - -// === findAllReferences === -// === /referencesForLabel.ts === -// label: while (true) { -// if (false) break label; -// if (true) /*FIND ALL REFS*/continue label; -// } -// -// label: while (false) { } -// var label = "label"; - - - -// === findAllReferences === -// === /referencesForLabel.ts === -// [|label|]: while (true) { -// if (false) break [|label|]; -// if (true) continue /*FIND ALL REFS*/[|label|]; -// } -// -// label: while (false) { } -// var label = "label"; - - - -// === findAllReferences === -// === /referencesForLabel.ts === -// label: while (true) { -// if (false) break label; -// if (true) continue label; -// } -// -// /*FIND ALL REFS*/[|label|]: while (false) { } -// var label = "label"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc deleted file mode 100644 index c68d6f1c66..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel2.ts === -// var label = "label"; -// while (true) { -// if (false) break /*FIND ALL REFS*/label; -// if (true) continue label; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc deleted file mode 100644 index e86a78b6b3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel3.ts === -// /*FIND ALL REFS*/[|label|]: while (true) { -// var label = "label"; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc deleted file mode 100644 index fc1db350cf..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel4.ts === -// /*FIND ALL REFS*/[|label|]: function foo(label) { -// while (true) { -// break [|label|]; -// } -// } - - - -// === findAllReferences === -// === /referencesForLabel4.ts === -// label: function foo(label) { -// while (true) { -// /*FIND ALL REFS*/break label; -// } -// } - - - -// === findAllReferences === -// === /referencesForLabel4.ts === -// [|label|]: function foo(label) { -// while (true) { -// break /*FIND ALL REFS*/[|label|]; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc deleted file mode 100644 index 4b0e54b03e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc +++ /dev/null @@ -1,103 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel5.ts === -// /*FIND ALL REFS*/[|label|]: while (true) { -// if (false) break [|label|]; -// function blah() { -// label: while (true) { -// if (false) break label; -// } -// } -// if (false) break [|label|]; -// } - - - -// === findAllReferences === -// === /referencesForLabel5.ts === -// label: while (true) { -// if (false) /*FIND ALL REFS*/break label; -// function blah() { -// label: while (true) { -// if (false) break label; -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /referencesForLabel5.ts === -// [|label|]: while (true) { -// if (false) break /*FIND ALL REFS*/[|label|]; -// function blah() { -// label: while (true) { -// if (false) break label; -// } -// } -// if (false) break [|label|]; -// } - - - -// === findAllReferences === -// === /referencesForLabel5.ts === -// label: while (true) { -// if (false) break label; -// function blah() { -// /*FIND ALL REFS*/[|label|]: while (true) { -// if (false) break [|label|]; -// } -// } -// if (false) break label; -// } - - - -// === findAllReferences === -// === /referencesForLabel5.ts === -// label: while (true) { -// if (false) break label; -// function blah() { -// label: while (true) { -// if (false) /*FIND ALL REFS*/break label; -// } -// } -// if (false) break label; -// } - - - -// === findAllReferences === -// === /referencesForLabel5.ts === -// label: while (true) { -// if (false) break label; -// function blah() { -// [|label|]: while (true) { -// if (false) break /*FIND ALL REFS*/[|label|]; -// } -// } -// if (false) break label; -// } - - - -// === findAllReferences === -// === /referencesForLabel5.ts === -// --- (line: 4) skipped --- -// if (false) break label; -// } -// } -// if (false) /*FIND ALL REFS*/break label; -// } - - - -// === findAllReferences === -// === /referencesForLabel5.ts === -// [|label|]: while (true) { -// if (false) break [|label|]; -// function blah() { -// label: while (true) { -// if (false) break label; -// } -// } -// if (false) break /*FIND ALL REFS*/[|label|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc deleted file mode 100644 index 0d9f5a80dc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel6.ts === -// /*FIND ALL REFS*/[|labela|]: while (true) { -// labelb: while (false) { break labelb; } -// break labelc; -// } - - - -// === findAllReferences === -// === /referencesForLabel6.ts === -// labela: while (true) { -// /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } -// break labelc; -// } - - - -// === findAllReferences === -// === /referencesForLabel6.ts === -// labela: while (true) { -// labelb: while (false) { /*FIND ALL REFS*/break labelb; } -// break labelc; -// } - - - -// === findAllReferences === -// === /referencesForLabel6.ts === -// labela: while (true) { -// [|labelb|]: while (false) { break /*FIND ALL REFS*/[|labelb|]; } -// break labelc; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc deleted file mode 100644 index d6508f7d33..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc +++ /dev/null @@ -1,147 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// /*FIND ALL REFS*/interface [|Foo|] { -// } -// -// module Foo { -// // --- (line: 5) skipped --- - -// --- (line: 8) skipped --- -// } -// -// var f1: Foo.Bar; -// var f2: [|Foo|]; -// Foo.bind(this); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// interface /*FIND ALL REFS*/[|Foo|] { -// } -// -// module Foo { -// // --- (line: 5) skipped --- - -// --- (line: 8) skipped --- -// } -// -// var f1: Foo.Bar; -// var f2: [|Foo|]; -// Foo.bind(this); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// interface Foo { -// } -// -// /*FIND ALL REFS*/module [|Foo|] { -// export interface Bar { } -// } -// -// function Foo(): void { -// } -// -// var f1: [|Foo|].Bar; -// var f2: Foo; -// Foo.bind(this); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// interface Foo { -// } -// -// module /*FIND ALL REFS*/[|Foo|] { -// export interface Bar { } -// } -// -// function Foo(): void { -// } -// -// var f1: [|Foo|].Bar; -// var f2: Foo; -// Foo.bind(this); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// --- (line: 4) skipped --- -// export interface Bar { } -// } -// -// /*FIND ALL REFS*/function [|Foo|](): void { -// } -// -// var f1: Foo.Bar; -// var f2: Foo; -// [|Foo|].bind(this); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// --- (line: 4) skipped --- -// export interface Bar { } -// } -// -// function /*FIND ALL REFS*/[|Foo|](): void { -// } -// -// var f1: Foo.Bar; -// var f2: Foo; -// [|Foo|].bind(this); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// interface Foo { -// } -// -// module [|Foo|] { -// export interface Bar { } -// } -// -// function Foo(): void { -// } -// -// var f1: /*FIND ALL REFS*/[|Foo|].Bar; -// var f2: Foo; -// Foo.bind(this); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// interface [|Foo|] { -// } -// -// module Foo { -// // --- (line: 5) skipped --- - -// --- (line: 8) skipped --- -// } -// -// var f1: Foo.Bar; -// var f2: /*FIND ALL REFS*/[|Foo|]; -// Foo.bind(this); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === -// --- (line: 4) skipped --- -// export interface Bar { } -// } -// -// function [|Foo|](): void { -// } -// -// var f1: Foo.Bar; -// var f2: Foo; -// /*FIND ALL REFS*/[|Foo|].bind(this); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc deleted file mode 100644 index fa095d184e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations2.ts === -// --- (line: 3) skipped --- -// -// function ATest() { } -// -// /*FIND ALL REFS*/import [|alias|] = ATest; // definition -// -// var a: [|alias|].Bar; // namespace -// [|alias|].call(this); // value - - - -// === findAllReferences === -// === /referencesForMergedDeclarations2.ts === -// --- (line: 3) skipped --- -// -// function ATest() { } -// -// import /*FIND ALL REFS*/[|alias|] = ATest; // definition -// -// var a: [|alias|].Bar; // namespace -// [|alias|].call(this); // value - - - -// === findAllReferences === -// === /referencesForMergedDeclarations2.ts === -// --- (line: 3) skipped --- -// -// function ATest() { } -// -// import [|alias|] = ATest; // definition -// -// var a: /*FIND ALL REFS*/[|alias|].Bar; // namespace -// [|alias|].call(this); // value - - - -// === findAllReferences === -// === /referencesForMergedDeclarations2.ts === -// --- (line: 3) skipped --- -// -// function ATest() { } -// -// import [|alias|] = ATest; // definition -// -// var a: [|alias|].Bar; // namespace -// /*FIND ALL REFS*/[|alias|].call(this); // value \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc deleted file mode 100644 index 1fc1969780..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations3.ts === -// class testClass { -// static staticMethod() { } -// method() { } -// } -// -// module /*FIND ALL REFS*/[|testClass|] { -// export interface Bar { -// -// } -// } -// -// var c1: testClass; -// var c2: [|testClass|].Bar; -// testClass.staticMethod(); -// testClass.prototype.method(); -// testClass.bind(this); -// new testClass(); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations3.ts === -// class /*FIND ALL REFS*/[|testClass|] { -// static staticMethod() { } -// method() { } -// } -// // --- (line: 5) skipped --- - -// --- (line: 8) skipped --- -// } -// } -// -// var c1: [|testClass|]; -// var c2: testClass.Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// new [|testClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc deleted file mode 100644 index 5896510ddb..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc +++ /dev/null @@ -1,261 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// /*FIND ALL REFS*/class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class /*FIND ALL REFS*/[|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// /*FIND ALL REFS*/module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module /*FIND ALL REFS*/[|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: /*FIND ALL REFS*/[|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: /*FIND ALL REFS*/[|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// /*FIND ALL REFS*/[|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// /*FIND ALL REFS*/[|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// /*FIND ALL REFS*/[|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// /*FIND ALL REFS*/[|testClass|].s; -// new [|testClass|](); - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new /*FIND ALL REFS*/[|testClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc deleted file mode 100644 index abf381b396..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc +++ /dev/null @@ -1,37 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations5.ts === -// interface /*FIND ALL REFS*/[|Foo|] { } -// module Foo { export interface Bar { } } -// function Foo() { } -// -// export = Foo; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations5.ts === -// interface Foo { } -// module /*FIND ALL REFS*/[|Foo|] { export interface Bar { } } -// function Foo() { } -// -// export = Foo; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations5.ts === -// interface Foo { } -// module Foo { export interface Bar { } } -// function /*FIND ALL REFS*/[|Foo|]() { } -// -// export = [|Foo|]; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations5.ts === -// interface Foo { } -// module Foo { export interface Bar { } } -// function [|Foo|]() { } -// -// export = /*FIND ALL REFS*/[|Foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc deleted file mode 100644 index 7746adb1e4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations6.ts === -// interface Foo { } -// /*FIND ALL REFS*/module [|Foo|] { -// export interface Bar { } -// export module Bar { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a1 = [|Foo|]; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations6.ts === -// interface Foo { } -// module /*FIND ALL REFS*/[|Foo|] { -// export interface Bar { } -// export module Bar { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a1 = [|Foo|]; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations6.ts === -// interface Foo { } -// module [|Foo|] { -// export interface Bar { } -// export module Bar { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a1 = /*FIND ALL REFS*/[|Foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc deleted file mode 100644 index 5f4172f80a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations7.ts === -// interface Foo { } -// module Foo { -// export interface /*FIND ALL REFS*/[|Bar|] { } -// export module Bar { export interface Baz { } } -// export function Bar() { } -// } -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /referencesForMergedDeclarations7.ts === -// interface Foo { } -// module Foo { -// export interface Bar { } -// export module /*FIND ALL REFS*/[|Bar|] { export interface Baz { } } -// export function Bar() { } -// } -// -// // module, value and type -// import a2 = Foo.[|Bar|]; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations7.ts === -// interface Foo { } -// module Foo { -// export interface Bar { } -// export module Bar { export interface Baz { } } -// export function /*FIND ALL REFS*/[|Bar|]() { } -// } -// -// // module, value and type -// import a2 = Foo.Bar; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations7.ts === -// interface Foo { } -// module Foo { -// export interface Bar { } -// export module [|Bar|] { export interface Baz { } } -// export function Bar() { } -// } -// -// // module, value and type -// import a2 = Foo./*FIND ALL REFS*/[|Bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc deleted file mode 100644 index 01b41d14f3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations8.ts === -// interface Foo { } -// module Foo { -// export interface Bar { } -// /*FIND ALL REFS*/export module [|Bar|] { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a3 = Foo.[|Bar|].Baz; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations8.ts === -// interface Foo { } -// module Foo { -// export interface Bar { } -// export module /*FIND ALL REFS*/[|Bar|] { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a3 = Foo.[|Bar|].Baz; - - - -// === findAllReferences === -// === /referencesForMergedDeclarations8.ts === -// interface Foo { } -// module Foo { -// export interface [|Bar|] { } -// export module [|Bar|] { export interface Baz { } } -// export function [|Bar|]() { } -// } -// -// // module -// import a3 = Foo./*FIND ALL REFS*/[|Bar|].Baz; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc deleted file mode 100644 index 5edfd5392f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc +++ /dev/null @@ -1,127 +0,0 @@ -// === findAllReferences === -// === /referencesForModifiers.ts === -// /*FIND ALL REFS*/declare abstract class [|C1|] { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// declare /*FIND ALL REFS*/abstract class [|C1|] { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// declare abstract class C1 { -// /*FIND ALL REFS*/static [|a|]; -// readonly b; -// public c; -// protected d; -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// declare abstract class C1 { -// static a; -// /*FIND ALL REFS*/readonly [|b|]; -// public c; -// protected d; -// private e; -// // --- (line: 7) skipped --- - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// /*FIND ALL REFS*/public [|c|]; -// protected d; -// private e; -// } -// // --- (line: 8) skipped --- - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// /*FIND ALL REFS*/protected [|d|]; -// private e; -// } -// const enum E { -// // --- (line: 9) skipped --- - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// protected d; -// /*FIND ALL REFS*/private [|e|]; -// } -// const enum E { -// } -// async function fn() {} -// export default class C2 {} - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// --- (line: 4) skipped --- -// protected d; -// private e; -// } -// /*FIND ALL REFS*/const enum [|E|] { -// } -// async function fn() {} -// export default class C2 {} - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// --- (line: 6) skipped --- -// } -// const enum E { -// } -// /*FIND ALL REFS*/async function [|fn|]() {} -// export default class C2 {} - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// --- (line: 7) skipped --- -// const enum E { -// } -// async function fn() {} -// /*FIND ALL REFS*/export default class [|C2|] {} - - - -// === findAllReferences === -// === /referencesForModifiers.ts === -// --- (line: 7) skipped --- -// const enum E { -// } -// async function fn() {} -// export /*FIND ALL REFS*/default class C2 {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc deleted file mode 100644 index e164a992da..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === findAllReferences === -// === /referencesForNoContext.ts === -// module modTest { -// //Declare -// export var modVar:number; -// /*FIND ALL REFS*/ -// -// //Increments -// modVar++; -// // --- (line: 8) skipped --- - - - -// === findAllReferences === -// === /referencesForNoContext.ts === -// --- (line: 6) skipped --- -// modVar++; -// -// class testCls{ -// /*FIND ALL REFS*/ -// } -// -// function testFn(){ -// // --- (line: 14) skipped --- - - - -// === findAllReferences === -// === /referencesForNoContext.ts === -// --- (line: 12) skipped --- -// function testFn(){ -// //Increments -// modVar++; -// } /*FIND ALL REFS*/ -// -// module testMod { -// } -// } - - - -// === findAllReferences === -// === /referencesForNoContext.ts === -// --- (line: 13) skipped --- -// //Increments -// modVar++; -// } -// /*FIND ALL REFS*/ -// module testMod { -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc deleted file mode 100644 index a65dea2d3d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findAllReferences === -// === /referencesForNumericLiteralPropertyNames.ts === -// class Foo { -// public /*FIND ALL REFS*/[|12|]: any; -// } -// -// var x: Foo; -// x[[|12|]]; -// x = { "[|12|]": 0 }; -// x = { [|12|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc deleted file mode 100644 index 6a699f1bae..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc +++ /dev/null @@ -1,37 +0,0 @@ -// === findAllReferences === -// === /referencesForObjectLiteralProperties.ts === -// var x = { /*FIND ALL REFS*/[|add|]: 0, b: "string" }; -// x["[|add|]"]; -// x.[|add|]; -// var y = x; -// y.[|add|]; - - - -// === findAllReferences === -// === /referencesForObjectLiteralProperties.ts === -// var x = { [|add|]: 0, b: "string" }; -// x["/*FIND ALL REFS*/[|add|]"]; -// x.[|add|]; -// var y = x; -// y.[|add|]; - - - -// === findAllReferences === -// === /referencesForObjectLiteralProperties.ts === -// var x = { [|add|]: 0, b: "string" }; -// x["[|add|]"]; -// x./*FIND ALL REFS*/[|add|]; -// var y = x; -// y.[|add|]; - - - -// === findAllReferences === -// === /referencesForObjectLiteralProperties.ts === -// var x = { [|add|]: 0, b: "string" }; -// x["[|add|]"]; -// x.[|add|]; -// var y = x; -// y./*FIND ALL REFS*/[|add|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc deleted file mode 100644 index 8925d5d0da..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc +++ /dev/null @@ -1,160 +0,0 @@ -// === findAllReferences === -// === /referencesForOverrides.ts === -// module FindRef3 { -// module SimpleClassTest { -// export class Foo { -// public /*FIND ALL REFS*/[|foo|](): void { -// } -// } -// export class Bar extends Foo { -// public [|foo|](): void { -// } -// } -// } -// // --- (line: 12) skipped --- - -// --- (line: 58) skipped --- -// -// function test() { -// var x = new SimpleClassTest.Bar(); -// x.[|foo|](); -// -// var y: SimpleInterfaceTest.IBar = null; -// y.ifoo(); -// // --- (line: 66) skipped --- - - - -// === findAllReferences === -// === /referencesForOverrides.ts === -// --- (line: 11) skipped --- -// -// module SimpleInterfaceTest { -// export interface IFoo { -// /*FIND ALL REFS*/[|ifoo|](): void; -// } -// export interface IBar extends IFoo { -// [|ifoo|](): void; -// } -// } -// -// // --- (line: 22) skipped --- - -// --- (line: 61) skipped --- -// x.foo(); -// -// var y: SimpleInterfaceTest.IBar = null; -// y.[|ifoo|](); -// -// var w: SimpleClassInterfaceTest.Bar = null; -// w.icfoo(); -// // --- (line: 69) skipped --- - - - -// === findAllReferences === -// === /referencesForOverrides.ts === -// --- (line: 20) skipped --- -// -// module SimpleClassInterfaceTest { -// export interface IFoo { -// /*FIND ALL REFS*/[|icfoo|](): void; -// } -// export class Bar implements IFoo { -// public [|icfoo|](): void { -// } -// } -// } -// // --- (line: 31) skipped --- - -// --- (line: 64) skipped --- -// y.ifoo(); -// -// var w: SimpleClassInterfaceTest.Bar = null; -// w.[|icfoo|](); -// -// var z = new Test.BarBlah(); -// z.field = ""; -// // --- (line: 72) skipped --- - - - -// === findAllReferences === -// === /referencesForOverrides.ts === -// --- (line: 30) skipped --- -// -// module Test { -// export interface IBase { -// /*FIND ALL REFS*/[|field|]: string; -// method(): void; -// } -// -// export interface IBlah extends IBase { -// [|field|]: string; -// } -// -// export interface IBlah2 extends IBlah { -// [|field|]: string; -// } -// -// export interface IDerived extends IBlah2 { -// method(): void; -// } -// -// export class Bar implements IDerived { -// public [|field|]: string; -// public method(): void { } -// } -// -// export class BarBlah extends Bar { -// public [|field|]: string; -// } -// } -// -// // --- (line: 60) skipped --- - -// --- (line: 67) skipped --- -// w.icfoo(); -// -// var z = new Test.BarBlah(); -// z.[|field|] = ""; -// z.method(); -// } -// } - - - -// === findAllReferences === -// === /referencesForOverrides.ts === -// --- (line: 31) skipped --- -// module Test { -// export interface IBase { -// field: string; -// /*FIND ALL REFS*/[|method|](): void; -// } -// -// export interface IBlah extends IBase { -// // --- (line: 39) skipped --- - -// --- (line: 43) skipped --- -// } -// -// export interface IDerived extends IBlah2 { -// [|method|](): void; -// } -// -// export class Bar implements IDerived { -// public field: string; -// public [|method|](): void { } -// } -// -// export class BarBlah extends Bar { -// // --- (line: 56) skipped --- - -// --- (line: 68) skipped --- -// -// var z = new Test.BarBlah(); -// z.field = ""; -// z.[|method|](); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc deleted file mode 100644 index 1d29d03a3f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findAllReferences === -// === /referencesForPropertiesOfGenericType.ts === -// interface IFoo { -// /*FIND ALL REFS*/[|doSomething|](v: T): T; -// } -// -// var x: IFoo; -// x.[|doSomething|]("ss"); -// -// var y: IFoo; -// y.[|doSomething|](12); - - - -// === findAllReferences === -// === /referencesForPropertiesOfGenericType.ts === -// interface IFoo { -// [|doSomething|](v: T): T; -// } -// -// var x: IFoo; -// x./*FIND ALL REFS*/[|doSomething|]("ss"); -// -// var y: IFoo; -// y.[|doSomething|](12); - - - -// === findAllReferences === -// === /referencesForPropertiesOfGenericType.ts === -// interface IFoo { -// [|doSomething|](v: T): T; -// } -// -// var x: IFoo; -// x.[|doSomething|]("ss"); -// -// var y: IFoo; -// y./*FIND ALL REFS*/[|doSomething|](12); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc deleted file mode 100644 index 05be2ced9c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc +++ /dev/null @@ -1,276 +0,0 @@ -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// /*FIND ALL REFS*/static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo.[|n|]; - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// static /*FIND ALL REFS*/[|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo.[|n|]; - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo./*FIND ALL REFS*/[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo.[|n|]; - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo./*FIND ALL REFS*/[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo.[|n|]; - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo./*FIND ALL REFS*/[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo.[|n|]; - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo./*FIND ALL REFS*/[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo.[|n|]; - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo./*FIND ALL REFS*/[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo.[|n|]; - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo./*FIND ALL REFS*/[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo.[|n|]; - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - -// === /referencesOnStatic_2.ts === -// var q = foo./*FIND ALL REFS*/[|n|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc deleted file mode 100644 index 98a98b58e6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc +++ /dev/null @@ -1,250 +0,0 @@ -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// /*FIND ALL REFS*/[|bar|]: Foo; -// static bar: Foo; -// -// public foo(): void { -// // --- (line: 8) skipped --- - -// --- (line: 14) skipped --- -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); -// x.[|bar|]; -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// // --- (line: 22) skipped --- - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// /*FIND ALL REFS*/static [|bar|]: Foo; -// -// public foo(): void { -// } -// // --- (line: 9) skipped --- - -// --- (line: 18) skipped --- -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo.[|bar|]; -// } -// } - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// static /*FIND ALL REFS*/[|bar|]: Foo; -// -// public foo(): void { -// } -// // --- (line: 9) skipped --- - -// --- (line: 18) skipped --- -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo.[|bar|]; -// } -// } - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// --- (line: 3) skipped --- -// bar: Foo; -// static bar: Foo; -// -// /*FIND ALL REFS*/public [|foo|](): void { -// } -// public static foo(): void { -// } -// } -// } -// -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.[|foo|](); -// x.bar; -// -// // static function -// // --- (line: 21) skipped --- - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// --- (line: 3) skipped --- -// bar: Foo; -// static bar: Foo; -// -// public /*FIND ALL REFS*/[|foo|](): void { -// } -// public static foo(): void { -// } -// } -// } -// -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.[|foo|](); -// x.bar; -// -// // static function -// // --- (line: 21) skipped --- - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// --- (line: 5) skipped --- -// -// public foo(): void { -// } -// /*FIND ALL REFS*/public static [|foo|](): void { -// } -// } -// } -// // --- (line: 13) skipped --- - -// --- (line: 17) skipped --- -// x.bar; -// -// // static function -// MixedStaticsClassTest.Foo.[|foo|](); -// MixedStaticsClassTest.Foo.bar; -// } -// } - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// --- (line: 5) skipped --- -// -// public foo(): void { -// } -// public static /*FIND ALL REFS*/[|foo|](): void { -// } -// } -// } -// // --- (line: 13) skipped --- - -// --- (line: 17) skipped --- -// x.bar; -// -// // static function -// MixedStaticsClassTest.Foo.[|foo|](); -// MixedStaticsClassTest.Foo.bar; -// } -// } - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// --- (line: 3) skipped --- -// bar: Foo; -// static bar: Foo; -// -// public [|foo|](): void { -// } -// public static foo(): void { -// } -// } -// } -// -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x./*FIND ALL REFS*/[|foo|](); -// x.bar; -// -// // static function -// // --- (line: 21) skipped --- - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// [|bar|]: Foo; -// static bar: Foo; -// -// public foo(): void { -// // --- (line: 8) skipped --- - -// --- (line: 14) skipped --- -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); -// x./*FIND ALL REFS*/[|bar|]; -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// // --- (line: 22) skipped --- - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// --- (line: 5) skipped --- -// -// public foo(): void { -// } -// public static [|foo|](): void { -// } -// } -// } -// // --- (line: 13) skipped --- - -// --- (line: 17) skipped --- -// x.bar; -// -// // static function -// MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|foo|](); -// MixedStaticsClassTest.Foo.bar; -// } -// } - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// static [|bar|]: Foo; -// -// public foo(): void { -// } -// // --- (line: 9) skipped --- - -// --- (line: 18) skipped --- -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|bar|]; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc deleted file mode 100644 index b7bc9f6564..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames.ts === -// class Foo { -// public "/*FIND ALL REFS*/[|ss|]": any; -// } -// -// var x: Foo; -// x.[|ss|]; -// x["[|ss|]"]; -// x = { "[|ss|]": 0 }; -// x = { [|ss|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc deleted file mode 100644 index 0233885c6c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames2.ts === -// class Foo { -// /*FIND ALL REFS*/"[|blah|]"() { return 0; } -// } -// -// var x: Foo; -// x.[|blah|]; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames2.ts === -// class Foo { -// "/*FIND ALL REFS*/[|blah|]"() { return 0; } -// } -// -// var x: Foo; -// x.[|blah|]; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames2.ts === -// class Foo { -// "[|blah|]"() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|blah|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc deleted file mode 100644 index d2ff4badc6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc +++ /dev/null @@ -1,57 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === -// class Foo2 { -// /*FIND ALL REFS*/get "[|42|]"() { return 0; } -// set [|42|](n) { } -// } -// -// var y: Foo2; -// y[[|42|]]; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === -// class Foo2 { -// get "/*FIND ALL REFS*/[|42|]"() { return 0; } -// set [|42|](n) { } -// } -// -// var y: Foo2; -// y[[|42|]]; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === -// class Foo2 { -// get "[|42|]"() { return 0; } -// /*FIND ALL REFS*/set [|42|](n) { } -// } -// -// var y: Foo2; -// y[[|42|]]; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === -// class Foo2 { -// get "[|42|]"() { return 0; } -// set /*FIND ALL REFS*/[|42|](n) { } -// } -// -// var y: Foo2; -// y[[|42|]]; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === -// class Foo2 { -// get "[|42|]"() { return 0; } -// set [|42|](n) { } -// } -// -// var y: Foo2; -// y[/*FIND ALL REFS*/[|42|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc deleted file mode 100644 index 15b6266345..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames4.ts === -// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } -// x["[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames4.ts === -// var x = { "[|someProperty|]": 0 } -// x[/*FIND ALL REFS*/"[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc deleted file mode 100644 index 42967647fb..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames5.ts === -// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } -// x["[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames5.ts === -// var x = { "[|someProperty|]": 0 } -// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc deleted file mode 100644 index ab4c5ebaf1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames6.ts === -// const x = function () { return 111111; } -// x./*FIND ALL REFS*/[|someProperty|] = 5; -// x["[|someProperty|]"] = 3; - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames6.ts === -// const x = function () { return 111111; } -// x.[|someProperty|] = 5; -// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc deleted file mode 100644 index 497a859d97..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /foo.js === -// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } -// x["[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; - - - -// === findAllReferences === -// === /foo.js === -// var x = { "[|someProperty|]": 0 } -// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc deleted file mode 100644 index 343a4a0883..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc +++ /dev/null @@ -1,67 +0,0 @@ -// === findAllReferences === -// === /referencesForTypeKeywords.ts === -// interface [|I|] {} -// function f() {} -// type A1 = T extends U ? 1 : 0; -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = readonly T[]; - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === -// interface I {} -// function f() {} -// type A1 = T /*FIND ALL REFS*/extends [|U|] ? 1 : 0; -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = readonly T[]; - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === -// interface I {} -// function f() {} -// type A1 = T extends U ? 1 : 0; -// type A2 = T extends /*FIND ALL REFS*/infer [|U|] ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = readonly T[]; - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === -// interface I {} -// function f() {} -// type A1 = T extends U ? 1 : 0; -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [[|P|] /*FIND ALL REFS*/in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = readonly T[]; - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === -// interface I {} -// function f() {} -// type A1 = T extends U ? 1 : 0; -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4<[|T|]> = /*FIND ALL REFS*/keyof [|T|]; -// type A5 = readonly T[]; - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === -// --- (line: 3) skipped --- -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4 = keyof T; -// type A5<[|T|]> = /*FIND ALL REFS*/readonly [|T|][]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc deleted file mode 100644 index 5a0d495a21..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc +++ /dev/null @@ -1,66 +0,0 @@ -// === findAllReferences === -// === /referencesForUnionProperties.ts === -// interface One { -// common: { /*FIND ALL REFS*/[|a|]: number; }; -// } -// -// interface Base { -// // --- (line: 6) skipped --- - -// --- (line: 17) skipped --- -// -// var x : One | Two; -// -// x.common.[|a|]; - - - -// === findAllReferences === -// === /referencesForUnionProperties.ts === -// interface One { -// common: { a: number; }; -// } -// -// interface Base { -// /*FIND ALL REFS*/[|a|]: string; -// b: string; -// } -// -// interface HasAOrB extends Base { -// [|a|]: string; -// b: string; -// } -// -// interface Two { -// common: HasAOrB; -// } -// -// var x : One | Two; -// -// x.common.[|a|]; - - - -// === findAllReferences === -// === /referencesForUnionProperties.ts === -// interface One { -// common: { [|a|]: number; }; -// } -// -// interface Base { -// [|a|]: string; -// b: string; -// } -// -// interface HasAOrB extends Base { -// [|a|]: string; -// b: string; -// } -// -// interface Two { -// common: HasAOrB; -// } -// -// var x : One | Two; -// -// x.common./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInComment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInComment.baseline.jsonc deleted file mode 100644 index 07b90aa97c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesInComment.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /referencesInComment.ts === -// // References to /*FIND ALL REFS*/foo or bar -// /* in comments should not find foo or bar */ -// class foo { } -// var bar = 0; - - - -// === findAllReferences === -// === /referencesInComment.ts === -// // References to foo or b/*FIND ALL REFS*/ar -// /* in comments should not find foo or bar */ -// class foo { } -// var bar = 0; - - - -// === findAllReferences === -// === /referencesInComment.ts === -// // References to foo or bar -// /* in comments should not find fo/*FIND ALL REFS*/o or bar */ -// class foo { } -// var bar = 0; - - - -// === findAllReferences === -// === /referencesInComment.ts === -// // References to foo or bar -// /* in comments should not find foo or bar/*FIND ALL REFS*/ */ -// class foo { } -// var bar = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc deleted file mode 100644 index a2b4cd66ce..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/referencesForGlobals_1.ts === -// class [|globalClass|] { -// public f() { } -// } - -// === /home/src/workspaces/project/referencesForGlobals_2.ts === -// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc deleted file mode 100644 index e328e284d6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/a.ts === -// /// -// /*FIND ALL REFS*/; - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/b.ts === -// /*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc deleted file mode 100644 index 32fab59a1b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/a.ts === -// /// -// const str: string = "hello/*FIND ALL REFS*/"; - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/b.ts === -// const str2: string = "hello/*FIND ALL REFS*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesIsAvailableThroughGlobalNoCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesIsAvailableThroughGlobalNoCrash.baseline.jsonc deleted file mode 100644 index 9ae5412973..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesIsAvailableThroughGlobalNoCrash.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /packages/playwright-core/bundles/utils/node_modules/@types/debug/index.d.ts === -// declare var [|debug|]: [|debug|].Debug & { debug: [|debug|].Debug; default: [|debug|].Debug }; -// [|export|] = [|debug|]; -// export as namespace debug; -// declare namespace [|debug|] { -// interface Debug { -// coerce: (val: any) => any; -// } -// } - -// === /packages/playwright-core/src/index.ts === -// export const debug: typeof import('[|../bundles/utils/node_modules//*FIND ALL REFS*/@types/debug|]') = require('./utilsBundleImpl').debug; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc deleted file mode 100644 index ebffcdf9e8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /referencesToNonPropertyNameStringLiteral.ts === -// const str: string = "hello/*FIND ALL REFS*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc deleted file mode 100644 index f9b30892ca..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /referencesToStringLiteralValue.ts === -// const s: string = "some /*FIND ALL REFS*/ string"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc deleted file mode 100644 index 3858ed4b25..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc +++ /dev/null @@ -1,1920 +0,0 @@ -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: /*FIND ALL REFS*/[|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new /*FIND ALL REFS*/[|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(/*FIND ALL REFS*/[|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo(/*FIND ALL REFS*/[|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = /*FIND ALL REFS*/[|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + /*FIND ALL REFS*/[|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// /*FIND ALL REFS*/[|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// /*FIND ALL REFS*/var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var /*FIND ALL REFS*/[|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// /*FIND ALL REFS*/class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class /*FIND ALL REFS*/[|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// /*FIND ALL REFS*/[|remoteclsVar|] = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.[|remoteclsVar|]++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// /*FIND ALL REFS*/static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static /*FIND ALL REFS*/[|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// /*FIND ALL REFS*/[|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// [|remoteclsVar|] = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this./*FIND ALL REFS*/[|remoteclsVar|]++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// // --- (line: 15) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// /*FIND ALL REFS*/[|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// /*FIND ALL REFS*/[|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - -// === /remoteGetReferences_2.ts === -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// /*FIND ALL REFS*/[|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - -// === /remoteGetReferences_2.ts === -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameDefaultImportDifferentName.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameDefaultImportDifferentName.baseline.jsonc deleted file mode 100644 index 4ae1126485..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/renameDefaultImportDifferentName.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === findAllReferences === -// === /A.ts === -// import [|B|] from "./B"; -// let b = new [|B|](); -// b.test(); - -// === /B.ts === -// export default class /*FIND ALL REFS*/[|C|] { -// test() { -// } -// } - - - -// === findAllReferences === -// === /A.ts === -// import /*FIND ALL REFS*/[|B|] from "./B"; -// let b = new [|B|](); -// b.test(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc deleted file mode 100644 index 8601eca2ac..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /a.ts === -// export var /*FIND ALL REFS*/[|a|]; - -// === /b.ts === -// import { [|a|] } from './a'; -// export { a }; - - - -// === findAllReferences === -// === /a.ts === -// export var [|a|]; - -// === /b.ts === -// import { /*FIND ALL REFS*/[|a|] } from './a'; -// export { a }; - - - -// === findAllReferences === -// === /a.ts === -// export var [|a|]; - -// === /b.ts === -// import { [|a|] } from './a'; -// export { /*FIND ALL REFS*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc deleted file mode 100644 index 28ba24f606..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc +++ /dev/null @@ -1,68 +0,0 @@ -// === findAllReferences === -// === /renameImportOfExportEquals.ts === -// declare namespace /*FIND ALL REFS*/[|N|] { -// export var x: number; -// } -// declare module "mod" { -// export = [|N|]; -// } -// declare module "a" { -// import * as [|N|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /renameImportOfExportEquals.ts === -// declare namespace [|N|] { -// export var x: number; -// } -// declare module "mod" { -// export = [|N|]; -// } -// declare module "a" { -// import * as /*FIND ALL REFS*/[|N|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /renameImportOfExportEquals.ts === -// declare namespace [|N|] { -// export var x: number; -// } -// declare module "mod" { -// export = [|N|]; -// } -// declare module "a" { -// import * as [|N|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// import { /*FIND ALL REFS*/[|N|] } from "a"; -// export const y: typeof [|N|].x; -// } - - - -// === findAllReferences === -// === /renameImportOfExportEquals.ts === -// declare namespace N { -// export var /*FIND ALL REFS*/[|x|]: number; -// } -// declare module "mod" { -// export = N; -// // --- (line: 6) skipped --- - -// --- (line: 9) skipped --- -// } -// declare module "b" { -// import { N } from "a"; -// export const y: typeof N.[|x|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tslibFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tslibFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc deleted file mode 100644 index 5276f7a8d4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tslibFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /project/src/foo.ts === -// import * as x from /*FIND ALL REFS*/"[|tslib|]"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc deleted file mode 100644 index d43435b087..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// /*FIND ALL REFS*/[|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = <[|div|] />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 7) skipped --- -// span: { n: string; }; -// } -// } -// var x = /*FIND ALL REFS*/
; - - - -// === findAllReferences === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc deleted file mode 100644 index 66169b1bef..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// className?: string; -// } -// interface ButtonProps extends ClickableProps { -// /*FIND ALL REFS*/[|onClick|](event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// goTo: string; -// // --- (line: 16) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc deleted file mode 100644 index 92dc82ce73..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 16) skipped --- -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc deleted file mode 100644 index fe81dcc1af..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// /*FIND ALL REFS*/[|name|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc deleted file mode 100644 index 8cfb85cc27..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 5) skipped --- -// } -// class MyClass { -// props: { -// /*FIND ALL REFS*/[|name|]?: string; -// size?: number; -// } -// -// -// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc deleted file mode 100644 index 2fb055c836..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc +++ /dev/null @@ -1,75 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// /*FIND ALL REFS*/class [|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } -// -// -// var x = <[|MyClass|] name='hello'>; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class /*FIND ALL REFS*/[|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } -// -// -// var x = <[|MyClass|] name='hello'>; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 10) skipped --- -// } -// -// -// var x = /*FIND ALL REFS*/; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class [|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } -// -// -// var x = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class [|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } -// -// -// var x = <[|MyClass|] name='hello'>; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc deleted file mode 100644 index c7fa566bf2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc +++ /dev/null @@ -1,162 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// /*FIND ALL REFS*/declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function /*FIND ALL REFS*/[|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 9) skipped --- -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = /*FIND ALL REFS*/; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; -// let opt4 = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 10) skipped --- -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = /*FIND ALL REFS*/; -// let opt2 = ; -// let opt3 = ; -// let opt4 = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = ; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 11) skipped --- -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = /*FIND ALL REFS*/; -// let opt3 = ; -// let opt4 = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = ; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 12) skipped --- -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = /*FIND ALL REFS*/; -// let opt4 = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = ; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; -// let opt4 = /*FIND ALL REFS*/; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc deleted file mode 100644 index 1850219dfe..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 9) skipped --- -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc deleted file mode 100644 index ec6919e839..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// /*FIND ALL REFS*/[|propx|]: number -// propString: string -// optional?: boolean -// } -// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc deleted file mode 100644 index dac2cf2682..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc +++ /dev/null @@ -1,288 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// /*FIND ALL REFS*/declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function /*FIND ALL REFS*/[|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// /*FIND ALL REFS*/declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function /*FIND ALL REFS*/[|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// /*FIND ALL REFS*/declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function /*FIND ALL REFS*/[|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 16) skipped --- -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = /*FIND ALL REFS*/; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 17) skipped --- -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = /*FIND ALL REFS*/; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = ; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 18) skipped --- -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = /*FIND ALL REFS*/{}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = {}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 19) skipped --- -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = /*FIND ALL REFS*/{}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = {}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 20) skipped --- -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = /*FIND ALL REFS*/; -// let opt = ; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = ; -// let opt = <[|MainButton|] wrong />; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 21) skipped --- -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = /*FIND ALL REFS*/; - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc deleted file mode 100644 index 41f35bf02e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 11) skipped --- -// onClick(event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// /*FIND ALL REFS*/[|goTo|]: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// // --- (line: 19) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc deleted file mode 100644 index 590e0bcf5c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// /*FIND ALL REFS*/var [|SFCComp|] = SFC1 || SFC2; -// <[|SFCComp|] x={ "hi" } /> - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var /*FIND ALL REFS*/[|SFCComp|] = SFC1 || SFC2; -// <[|SFCComp|] x={ "hi" } /> - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 10) skipped --- -// return

World

; -// } -// var SFCComp = SFC1 || SFC2; -// /*FIND ALL REFS*/ - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var [|SFCComp|] = SFC1 || SFC2; -// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc deleted file mode 100644 index b02df6df6e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// } -// private method() { } -// } -// /*FIND ALL REFS*/var [|RCComp|] = RC1 || RC2; -// <[|RCComp|] /> - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// } -// private method() { } -// } -// var /*FIND ALL REFS*/[|RCComp|] = RC1 || RC2; -// <[|RCComp|] /> - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 9) skipped --- -// private method() { } -// } -// var RCComp = RC1 || RC2; -// /*FIND ALL REFS*/ - - - -// === findAllReferences === -// === /file.tsx === -// --- (line: 8) skipped --- -// } -// private method() { } -// } -// var [|RCComp|] = RC1 || RC2; -// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc deleted file mode 100644 index f7a410817c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === goToDefinition === -// === /index.ts === -// export class Foo { -// member: string; -// [|methodName|](propName: SomeType): void {} -// otherMethod() { -// if (Math.random() > 0.5) { -// return {x: 42}; -// // --- (line: 7) skipped --- - -// === /mymodule.ts === -// import * as mod from "./indexdef"; -// const instance = new mod.Foo(); -// instance./*GOTO DEF*/methodName({member: 12}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc deleted file mode 100644 index 7d76808348..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === goToDefinition === -// === /index.ts === -// export class Foo { -// member: string; -// [|methodName|](propName: SomeType): void {} -// otherMethod() { -// if (Math.random() > 0.5) { -// return {x: 42}; -// // --- (line: 7) skipped --- - -// === /mymodule.ts === -// import * as mod from "./out/indexdef"; -// const instance = new mod.Foo(); -// instance./*GOTO DEF*/methodName({member: 12}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc deleted file mode 100644 index e8f7348bf6..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === goToDefinition === -// === /BaseClass/Source.ts === -// class [|Control|]{ -// constructor(){ -// return; -// } -// // --- (line: 5) skipped --- - -// === /buttonClass/Source.ts === -// // I cannot F12 navigate to Control -// // vvvvvvv -// class Button extends /*GOTO DEF*/Control { -// public myFunction() { -// // I cannot F12 navigate to myVar -// // vvvvv -// // --- (line: 7) skipped --- - - - -// === goToDefinition === -// === /BaseClass/Source.ts === -// class Control{ -// constructor(){ -// return; -// } -// /** this is a super var */ -// public [|myVar|]: boolean | 'yeah' = true; -// } - -// === /buttonClass/Source.ts === -// --- (line: 3) skipped --- -// public myFunction() { -// // I cannot F12 navigate to myVar -// // vvvvv -// if (typeof this./*GOTO DEF*/myVar === 'boolean') { -// this.myVar; -// } else { -// this.myVar.toLocaleUpperCase(); -// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc deleted file mode 100644 index a7d9041f83..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /home/src/workspaces/project/node_modules/a/src/index.ts === -// export class [|Foo|] { -// } -// - -// === /home/src/workspaces/project/index.ts === -// import { Foo/*GOTO DEF*/ } from "a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc deleted file mode 100644 index 90392f6142..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// [|export class Foo {}|] - -// === /b.ts === -// import n = require('./a/*GOTO DEF*/'); -// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc deleted file mode 100644 index 90392f6142..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// [|export class Foo {}|] - -// === /b.ts === -// import n = require('./a/*GOTO DEF*/'); -// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc deleted file mode 100644 index 087c1a678f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /definitionNameOnEnumMember.ts === -// enum e { -// firstMember, -// secondMember, -// [|thirdMember|] -// } -// var enumMember = e./*GOTO DEF*/thirdMember; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc deleted file mode 100644 index 4b94a0a31b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// export default function [|f|]() {} - -// === /b.ts === -// import g from "./a"; -// /*GOTO DEF*/g(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc deleted file mode 100644 index 5759a9945b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// var [|x|]: number; - -// === /b.ts === -// var [|x|]: number; - -// === /c.ts === -// var [|x|]: number; - -// === /d.ts === -// var [|x|]: number; - -// === /e.ts === -// /// -// /// -// /// -// /// -// /*GOTO DEF*/x++; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc deleted file mode 100644 index 327d98ff29..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc +++ /dev/null @@ -1,65 +0,0 @@ -// === goToDefinition === -// === /b.ts === -// import [|alias1|] = require("fileb"); -// module Module { -// export import alias2 = alias1; -// } -// -// // Type position -// var t1: /*GOTO DEF*/alias1.IFoo; -// var t2: Module.alias2.IFoo; -// -// // Value posistion -// var v1 = new alias1.Foo(); -// var v2 = new Module.alias2.Foo(); - - - -// === goToDefinition === -// === /b.ts === -// import [|alias1|] = require("fileb"); -// module Module { -// export import alias2 = alias1; -// } -// -// // Type position -// var t1: alias1.IFoo; -// var t2: Module.alias2.IFoo; -// -// // Value posistion -// var v1 = new /*GOTO DEF*/alias1.Foo(); -// var v2 = new Module.alias2.Foo(); - - - -// === goToDefinition === -// === /b.ts === -// import alias1 = require("fileb"); -// module Module { -// export import [|alias2|] = alias1; -// } -// -// // Type position -// var t1: alias1.IFoo; -// var t2: Module./*GOTO DEF*/alias2.IFoo; -// -// // Value posistion -// var v1 = new alias1.Foo(); -// var v2 = new Module.alias2.Foo(); - - - -// === goToDefinition === -// === /b.ts === -// import alias1 = require("fileb"); -// module Module { -// export import [|alias2|] = alias1; -// } -// -// // Type position -// var t1: alias1.IFoo; -// var t2: Module.alias2.IFoo; -// -// // Value posistion -// var v1 = new alias1.Foo(); -// var v2 = new Module./*GOTO DEF*/alias2.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc deleted file mode 100644 index c6ec5cc560..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc +++ /dev/null @@ -1,87 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === -// declare var [|ambientVar|]; -// declare function ambientFunction(); -// declare class ambientClass { -// constructor(); -// static method(); -// public method(); -// } -// -// /*GOTO DEF*/ambientVar = 1; -// ambientFunction(); -// var ambientClassVariable = new ambientClass(); -// ambientClass.method(); -// ambientClassVariable.method(); - - - -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === -// declare var ambientVar; -// declare function [|ambientFunction|](); -// declare class ambientClass { -// constructor(); -// static method(); -// public method(); -// } -// -// ambientVar = 1; -// /*GOTO DEF*/ambientFunction(); -// var ambientClassVariable = new ambientClass(); -// ambientClass.method(); -// ambientClassVariable.method(); - - - -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === -// declare var ambientVar; -// declare function ambientFunction(); -// declare class [|ambientClass|] { -// [|constructor();|] -// static method(); -// public method(); -// } -// -// ambientVar = 1; -// ambientFunction(); -// var ambientClassVariable = new /*GOTO DEF*/ambientClass(); -// ambientClass.method(); -// ambientClassVariable.method(); - - - -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === -// declare var ambientVar; -// declare function ambientFunction(); -// declare class ambientClass { -// constructor(); -// static [|method|](); -// public method(); -// } -// -// ambientVar = 1; -// ambientFunction(); -// var ambientClassVariable = new ambientClass(); -// ambientClass./*GOTO DEF*/method(); -// ambientClassVariable.method(); - - - -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === -// declare var ambientVar; -// declare function ambientFunction(); -// declare class ambientClass { -// constructor(); -// static method(); -// public [|method|](); -// } -// -// ambientVar = 1; -// ambientFunction(); -// var ambientClassVariable = new ambientClass(); -// ambientClass.method(); -// ambientClassVariable./*GOTO DEF*/method(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc deleted file mode 100644 index 5fc2e2ca45..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionApparentTypeProperties.ts === -// interface Number { -// [|myObjectMethod|](): number; -// } -// -// var o = 0; -// o./*GOTO DEF*/myObjectMethod(); -// o["myObjectMethod"](); - - - -// === goToDefinition === -// === /goToDefinitionApparentTypeProperties.ts === -// interface Number { -// [|myObjectMethod|](): number; -// } -// -// var o = 0; -// o.myObjectMethod(); -// o["/*GOTO DEF*/myObjectMethod"](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc deleted file mode 100644 index 85494107dd..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAwait1.ts === -// async function [|foo|]() { -// /*GOTO DEF*/await Promise.resolve(0); -// } -// function notAsync() { -// await Promise.resolve(0); -// } - - - -// === goToDefinition === -// === /goToDefinitionAwait1.ts === -// async function foo() { -// await Promise.resolve(0); -// } -// function [|notAsync|]() { -// /*GOTO DEF*/await Promise.resolve(0); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc deleted file mode 100644 index 43b882974f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAwait2.ts === -// /*GOTO DEF*/await Promise.resolve(0); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc deleted file mode 100644 index 8367930473..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAwait3.ts === -// class C { -// [|notAsync|]() { -// /*GOTO DEF*/await Promise.resolve(0); -// } -// -// async foo() { -// // --- (line: 7) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionAwait3.ts === -// class C { -// notAsync() { -// await Promise.resolve(0); -// } -// -// async [|foo|]() { -// /*GOTO DEF*/await Promise.resolve(0); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc deleted file mode 100644 index 5976587ef6..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAwait4.ts === -// async function outerAsyncFun() { -// let [|af|] = async () => { -// /*GOTO DEF*/await Promise.resolve(0); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc deleted file mode 100644 index 20ae582e13..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionBuiltInTypes.ts === -// var n: /*GOTO DEF*/number; -// var s: string; -// var b: boolean; -// var v: void; - - - -// === goToDefinition === -// === /goToDefinitionBuiltInTypes.ts === -// var n: number; -// var s: /*GOTO DEF*/string; -// var b: boolean; -// var v: void; - - - -// === goToDefinition === -// === /goToDefinitionBuiltInTypes.ts === -// var n: number; -// var s: string; -// var b: /*GOTO DEF*/boolean; -// var v: void; - - - -// === goToDefinition === -// === /goToDefinitionBuiltInTypes.ts === -// var n: number; -// var s: string; -// var b: boolean; -// var v: /*GOTO DEF*/void; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc deleted file mode 100644 index ff62e8f2e0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc +++ /dev/null @@ -1,47 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === -// var u = /*GOTO DEF*/undefined; -// var n = null; -// var a = function() { return arguments; }; -// var t = true; -// var f = false; - - - -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === -// var u = undefined; -// var n = /*GOTO DEF*/null; -// var a = function() { return arguments; }; -// var t = true; -// var f = false; - - - -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === -// var u = undefined; -// var n = null; -// var a = function() { return /*GOTO DEF*/arguments; }; -// var t = true; -// var f = false; - - - -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === -// var u = undefined; -// var n = null; -// var a = function() { return arguments; }; -// var t = /*GOTO DEF*/true; -// var f = false; - - - -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === -// var u = undefined; -// var n = null; -// var a = function() { return arguments; }; -// var t = true; -// var f = /*GOTO DEF*/false; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc deleted file mode 100644 index 3a900298ab..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /types.ts === -// declare module [|"*.css"|] { -// const styles: any; -// export = styles; -// } - -// === /index.ts === -// import styles from /*GOTO DEF*/"./index.css"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc deleted file mode 100644 index 9d9d23db29..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc +++ /dev/null @@ -1,63 +0,0 @@ -// === goToDefinition === -// === /definitions.ts === -// export class Base { -// [|constructor(protected readonly cArg: string) {}|] -// } -// -// export class [|Derived|] extends Base { -// readonly email = this.cArg.getByLabel('Email') -// readonly password = this.cArg.getByLabel('Password') -// } - -// === /main.ts === -// import { Derived } from './definitions' -// const derived = new /*GOTO DEF*/Derived(cArg) - - - -// === goToDefinition === -// === /defInSameFile.ts === -// import { Base } from './definitions' -// class [|SameFile|] extends Base { -// readonly name: string = 'SameFile' -// } -// const SameFile = new /*GOTO DEF*/SameFile(cArg) -// const wrapper = new Base(cArg) - -// === /definitions.ts === -// export class Base { -// [|constructor(protected readonly cArg: string) {}|] -// } -// -// export class Derived extends Base { -// // --- (line: 6) skipped --- - - - -// === goToDefinition === -// === /hasConstructor.ts === -// import { Base } from './definitions' -// class [|HasConstructor|] extends Base { -// [|constructor() {}|] -// readonly name: string = ''; -// } -// const hasConstructor = new /*GOTO DEF*/HasConstructor(cArg) - - - -// === goToDefinition === -// === /definitions.ts === -// export class [|Base|] { -// [|constructor(protected readonly cArg: string) {}|] -// } -// -// export class Derived extends Base { -// // --- (line: 6) skipped --- - -// === /defInSameFile.ts === -// import { Base } from './definitions' -// class SameFile extends Base { -// readonly name: string = 'SameFile' -// } -// const SameFile = new SameFile(cArg) -// const wrapper = new /*GOTO DEF*/Base(cArg) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc deleted file mode 100644 index 2658fa5840..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionClassStaticBlocks.ts === -// class ClassStaticBocks { -// static x; -// /*GOTO DEF*/static {} -// static y; -// static {} -// static y; -// static {} -// } - - - -// === goToDefinition === -// === /goToDefinitionClassStaticBlocks.ts === -// class ClassStaticBocks { -// static x; -// static {} -// static y; -// /*GOTO DEF*/static {} -// static y; -// static {} -// } - - - -// === goToDefinition === -// === /goToDefinitionClassStaticBlocks.ts === -// --- (line: 3) skipped --- -// static y; -// static {} -// static y; -// /*GOTO DEF*/static {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc deleted file mode 100644 index 4acbe4f97b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc +++ /dev/null @@ -1,138 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === -// var x = class [|C|] { -// [|constructor() { -// var other = new /*GOTO DEF*/C; -// }|] -// } -// -// var y = class C extends x { -// // --- (line: 8) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === -// --- (line: 3) skipped --- -// } -// } -// -// var y = class [|C|] extends x { -// [|constructor() { -// super(); -// var other = new /*GOTO DEF*/C; -// }|] -// } -// var z = class C extends x { -// m() { -// // --- (line: 15) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === -// var x = class C { -// [|constructor() { -// var other = new C; -// }|] -// } -// -// var y = class C extends x { -// constructor() { -// super(); -// var other = new C; -// } -// } -// var z = class [|C|] extends x { -// m() { -// return new /*GOTO DEF*/C; -// } -// } -// -// // --- (line: 19) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === -// --- (line: 15) skipped --- -// } -// } -// -// var x1 = new /*GOTO DEF*/C(); -// var x2 = new x(); -// var y1 = new y(); -// var z1 = new z(); - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === -// var [|x|] = class C { -// [|constructor() { -// var other = new C; -// }|] -// } -// -// var y = class C extends x { -// // --- (line: 8) skipped --- - -// --- (line: 16) skipped --- -// } -// -// var x1 = new C(); -// var x2 = new /*GOTO DEF*/x(); -// var y1 = new y(); -// var z1 = new z(); - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === -// --- (line: 3) skipped --- -// } -// } -// -// var [|y|] = class C extends x { -// [|constructor() { -// super(); -// var other = new C; -// }|] -// } -// var z = class C extends x { -// m() { -// return new C; -// } -// } -// -// var x1 = new C(); -// var x2 = new x(); -// var y1 = new /*GOTO DEF*/y(); -// var z1 = new z(); - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === -// var x = class C { -// [|constructor() { -// var other = new C; -// }|] -// } -// -// var y = class C extends x { -// constructor() { -// super(); -// var other = new C; -// } -// } -// var [|z|] = class C extends x { -// m() { -// return new C; -// } -// } -// -// var x1 = new C(); -// var x2 = new x(); -// var y1 = new y(); -// var z1 = new /*GOTO DEF*/z(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc deleted file mode 100644 index a8830b8eaa..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.ts === -// namespace [|Foo|] { -// export var x; -// } -// -// class [|Foo|] { -// [|constructor() { -// }|] -// } -// -// var x = new /*GOTO DEF*/Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc deleted file mode 100644 index ff9c7c772a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc +++ /dev/null @@ -1,81 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === -// class [|ConstructorOverload|] { -// [|constructor();|] -// constructor(foo: string); -// constructor(foo: any) { } -// } -// -// var constructorOverload = new /*GOTO DEF*/ConstructorOverload(); -// var constructorOverload = new ConstructorOverload("foo"); -// -// class Extended extends ConstructorOverload { -// // --- (line: 11) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === -// class [|ConstructorOverload|] { -// constructor(); -// [|constructor(foo: string);|] -// constructor(foo: any) { } -// } -// -// var constructorOverload = new ConstructorOverload(); -// var constructorOverload = new /*GOTO DEF*/ConstructorOverload("foo"); -// -// class Extended extends ConstructorOverload { -// readonly name = "extended"; -// // --- (line: 12) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === -// class ConstructorOverload { -// /*GOTO DEF*/[|constructor();|] -// [|constructor(foo: string);|] -// [|constructor(foo: any) { }|] -// } -// -// var constructorOverload = new ConstructorOverload(); -// // --- (line: 8) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === -// class ConstructorOverload { -// [|constructor();|] -// constructor(foo: string); -// constructor(foo: any) { } -// } -// -// var constructorOverload = new ConstructorOverload(); -// var constructorOverload = new ConstructorOverload("foo"); -// -// class [|Extended|] extends ConstructorOverload { -// readonly name = "extended"; -// } -// var extended1 = new /*GOTO DEF*/Extended(); -// var extended2 = new Extended("foo"); - - - -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === -// class ConstructorOverload { -// constructor(); -// [|constructor(foo: string);|] -// constructor(foo: any) { } -// } -// -// var constructorOverload = new ConstructorOverload(); -// var constructorOverload = new ConstructorOverload("foo"); -// -// class [|Extended|] extends ConstructorOverload { -// readonly name = "extended"; -// } -// var extended1 = new Extended(); -// var extended2 = new /*GOTO DEF*/Extended("foo"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc deleted file mode 100644 index 0ebd8c5a1e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// function [|decorator|](target) { -// return target; -// } -// function decoratorFactory(...args) { -// return target => target; -// } - -// === /b.ts === -// @/*GOTO DEF*/decorator -// class C { -// @decoratorFactory(a, "22", true) -// method() {} -// } - - - -// === goToDefinition === -// === /a.ts === -// function decorator(target) { -// return target; -// } -// function [|decoratorFactory|](...args) { -// return target => target; -// } - -// === /b.ts === -// @decorator -// class C { -// @decora/*GOTO DEF*/torFactory(a, "22", true) -// method() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc deleted file mode 100644 index f3f2413078..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionDecoratorOverloads.ts === -// async function f() {} -// -// function [|dec|](target: any, propertyKey: string): void; -// function dec(target: any, propertyKey: symbol): void; -// function dec(target: any, propertyKey: string | symbol) {} -// -// declare const s: symbol; -// class C { -// @/*GOTO DEF*/dec f() {} -// @dec [s]() {} -// } - - - -// === goToDefinition === -// === /goToDefinitionDecoratorOverloads.ts === -// async function f() {} -// -// function dec(target: any, propertyKey: string): void; -// function [|dec|](target: any, propertyKey: symbol): void; -// function dec(target: any, propertyKey: string | symbol) {} -// -// declare const s: symbol; -// class C { -// @dec f() {} -// @/*GOTO DEF*/dec [s]() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc deleted file mode 100644 index 5b50609eda..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /util.js === -// class Util {} -// module.exports = { [|Util|] }; - -// === /index.js === -// const { Util } = require('./util'); -// new Util/*GOTO DEF*/() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc deleted file mode 100644 index d6658fec1e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /reexport.js === -// const { Util } = require('./util'); -// module.exports = { [|Util|] }; - -// === /index.js === -// const { Util } = require('./reexport'); -// new Util/*GOTO DEF*/() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc deleted file mode 100644 index 8bb9b0bdb2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc +++ /dev/null @@ -1,82 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === -// var [|remoteVariable|]; -// function remoteFunction() { } -// class remoteClass { } -// interface remoteInterface{ } -// module remoteModule{ export var foo = 1;} - -// === /goToDefinitionDifferentFile_Consumption.ts === -// /*GOTO DEF*/remoteVariable = 1; -// remoteFunction(); -// var foo = new remoteClass(); -// class fooCls implements remoteInterface { } -// var fooVar = remoteModule.foo; - - - -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === -// var remoteVariable; -// function [|remoteFunction|]() { } -// class remoteClass { } -// interface remoteInterface{ } -// module remoteModule{ export var foo = 1;} - -// === /goToDefinitionDifferentFile_Consumption.ts === -// remoteVariable = 1; -// /*GOTO DEF*/remoteFunction(); -// var foo = new remoteClass(); -// class fooCls implements remoteInterface { } -// var fooVar = remoteModule.foo; - - - -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === -// var remoteVariable; -// function remoteFunction() { } -// class [|remoteClass|] { } -// interface remoteInterface{ } -// module remoteModule{ export var foo = 1;} - -// === /goToDefinitionDifferentFile_Consumption.ts === -// remoteVariable = 1; -// remoteFunction(); -// var foo = new /*GOTO DEF*/remoteClass(); -// class fooCls implements remoteInterface { } -// var fooVar = remoteModule.foo; - - - -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === -// var remoteVariable; -// function remoteFunction() { } -// class remoteClass { } -// interface [|remoteInterface|]{ } -// module remoteModule{ export var foo = 1;} - -// === /goToDefinitionDifferentFile_Consumption.ts === -// remoteVariable = 1; -// remoteFunction(); -// var foo = new remoteClass(); -// class fooCls implements /*GOTO DEF*/remoteInterface { } -// var fooVar = remoteModule.foo; - - - -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === -// var remoteVariable; -// function remoteFunction() { } -// class remoteClass { } -// interface remoteInterface{ } -// module [|remoteModule|]{ export var foo = 1;} - -// === /goToDefinitionDifferentFile_Consumption.ts === -// remoteVariable = 1; -// remoteFunction(); -// var foo = new remoteClass(); -// class fooCls implements remoteInterface { } -// var fooVar = /*GOTO DEF*/remoteModule.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc deleted file mode 100644 index 4a1334801b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc +++ /dev/null @@ -1,82 +0,0 @@ -// === goToDefinition === -// === /Remote2.ts === -// var [|rem2Var|]; -// function rem2Fn() { } -// class rem2Cls { } -// interface rem2Int{} -// module rem2Mod { export var foo; } - -// === /Definition.ts === -// /*GOTO DEF*/rem2Var = 1; -// rem2Fn(); -// var rem2foo = new rem2Cls(); -// class rem2fooCls implements rem2Int { } -// var rem2fooVar = rem2Mod.foo; - - - -// === goToDefinition === -// === /Remote2.ts === -// var rem2Var; -// function [|rem2Fn|]() { } -// class rem2Cls { } -// interface rem2Int{} -// module rem2Mod { export var foo; } - -// === /Definition.ts === -// rem2Var = 1; -// /*GOTO DEF*/rem2Fn(); -// var rem2foo = new rem2Cls(); -// class rem2fooCls implements rem2Int { } -// var rem2fooVar = rem2Mod.foo; - - - -// === goToDefinition === -// === /Remote2.ts === -// var rem2Var; -// function rem2Fn() { } -// class [|rem2Cls|] { } -// interface rem2Int{} -// module rem2Mod { export var foo; } - -// === /Definition.ts === -// rem2Var = 1; -// rem2Fn(); -// var rem2foo = new /*GOTO DEF*/rem2Cls(); -// class rem2fooCls implements rem2Int { } -// var rem2fooVar = rem2Mod.foo; - - - -// === goToDefinition === -// === /Remote2.ts === -// var rem2Var; -// function rem2Fn() { } -// class rem2Cls { } -// interface [|rem2Int|]{} -// module rem2Mod { export var foo; } - -// === /Definition.ts === -// rem2Var = 1; -// rem2Fn(); -// var rem2foo = new rem2Cls(); -// class rem2fooCls implements /*GOTO DEF*/rem2Int { } -// var rem2fooVar = rem2Mod.foo; - - - -// === goToDefinition === -// === /Remote2.ts === -// var rem2Var; -// function rem2Fn() { } -// class rem2Cls { } -// interface rem2Int{} -// module [|rem2Mod|] { export var foo; } - -// === /Definition.ts === -// rem2Var = 1; -// rem2Fn(); -// var rem2foo = new rem2Cls(); -// class rem2fooCls implements rem2Int { } -// var rem2fooVar = /*GOTO DEF*/rem2Mod.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc deleted file mode 100644 index 5398cf1c12..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /foo.ts === -// [|export function foo() { return "foo"; } -// import("./f/*GOTO DEF*/oo") -// var x = import("./foo")|] - - - -// === goToDefinition === -// === /foo.ts === -// [|export function foo() { return "foo"; } -// import("./foo") -// var x = import("./fo/*GOTO DEF*/o")|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc deleted file mode 100644 index bf6e1646d3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /foo.ts === -// export function [|bar|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo.b/*GOTO DEF*/ar(); -// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc deleted file mode 100644 index 80f46261ba..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /foo.ts === -// export function bar() { return "bar"; } -// import('./foo').then(({ [|ba/*GOTO DEF*/r|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc deleted file mode 100644 index 80f46261ba..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /foo.ts === -// export function bar() { return "bar"; } -// import('./foo').then(({ [|ba/*GOTO DEF*/r|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc deleted file mode 100644 index 4932b11ced..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /index.js === -// const Core = {} -// -// Core.[|Test|] = class { } -// -// Core.Test.prototype.foo = 10 -// -// new Core.Tes/*GOTO DEF*/t() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc deleted file mode 100644 index aea5b85d31..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /index.js === -// const Core = {} -// -// Core.[|Test|] = class { -// [|constructor() { }|] -// } -// -// Core.Test.prototype.foo = 10 -// -// new Core.Tes/*GOTO DEF*/t() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc deleted file mode 100644 index d4ecb56a09..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionExpandoElementAccess.ts === -// function f() {} -// f[[|"x"|]] = 0; -// f[/*GOTO DEF*/[|"x"|]] = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc deleted file mode 100644 index 90392f6142..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// [|export class Foo {}|] - -// === /b.ts === -// import n = require('./a/*GOTO DEF*/'); -// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc deleted file mode 100644 index 4453ae5b73..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// [|class Foo {} -// export var x = 0;|] - -// === /b.ts === -// import n = require('./a/*GOTO DEF*/'); -// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc deleted file mode 100644 index 28f4ba1fd3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// declare module [|"e"|] { -// class Foo { } -// } - -// === /b.ts === -// import n = require('e/*GOTO DEF*/'); -// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc deleted file mode 100644 index 5b7bf8a1c6..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === goToDefinition === -// === /b.ts === -// import n = require('unknown/*GOTO DEF*/'); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc deleted file mode 100644 index a9336821ec..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// declare module [|"external/*GOTO DEF*/"|] { -// class Foo { } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc deleted file mode 100644 index 236ff22c0f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// declare module [|"e"|] { -// class Foo { } -// } - -// === /b.ts === -// import * from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc deleted file mode 100644 index ebcad5e2ab..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// declare module [|"e"|] { -// class Foo { } -// } - -// === /b.ts === -// import {Foo, Bar} from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc deleted file mode 100644 index 8d0abed4ba..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// declare module [|"e"|] { -// class Foo { } -// } - -// === /b.ts === -// export {Foo, Bar} from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc deleted file mode 100644 index bc11061813..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// declare module [|"e"|] { -// class Foo { } -// } - -// === /b.ts === -// export * from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc deleted file mode 100644 index d7038b1f61..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionFunctionOverloads.ts === -// function [|functionOverload|](value: number); -// function functionOverload(value: string); -// function functionOverload() {} -// -// /*GOTO DEF*/functionOverload(123); -// functionOverload("123"); -// functionOverload({}); - - - -// === goToDefinition === -// === /goToDefinitionFunctionOverloads.ts === -// function functionOverload(value: number); -// function [|functionOverload|](value: string); -// function functionOverload() {} -// -// functionOverload(123); -// /*GOTO DEF*/functionOverload("123"); -// functionOverload({}); - - - -// === goToDefinition === -// === /goToDefinitionFunctionOverloads.ts === -// function [|functionOverload|](value: number); -// function functionOverload(value: string); -// function functionOverload() {} -// -// functionOverload(123); -// functionOverload("123"); -// /*GOTO DEF*/functionOverload({}); - - - -// === goToDefinition === -// === /goToDefinitionFunctionOverloads.ts === -// function /*GOTO DEF*/[|functionOverload|](value: number); -// function [|functionOverload|](value: string); -// function [|functionOverload|]() {} -// -// functionOverload(123); -// functionOverload("123"); -// functionOverload({}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc deleted file mode 100644 index 1acfdd2dfc..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionFunctionOverloadsInClass.ts === -// class clsInOverload { -// static [|fnOverload|](); -// static /*GOTO DEF*/[|fnOverload|](foo: string); -// static [|fnOverload|](foo: any) { } -// public fnOverload(): any; -// public fnOverload(foo: string); -// public fnOverload(foo: any) { return "foo" } -// // --- (line: 8) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionFunctionOverloadsInClass.ts === -// class clsInOverload { -// static fnOverload(); -// static fnOverload(foo: string); -// static fnOverload(foo: any) { } -// public /*GOTO DEF*/[|fnOverload|](): any; -// public [|fnOverload|](foo: string); -// public [|fnOverload|](foo: any) { return "foo" } -// -// constructor() { } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc deleted file mode 100644 index cac8a22add..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionFunctionType.ts === -// const [|c|]: () => void; -// /*GOTO DEF*/c(); -// function test(cb: () => void) { -// cb(); -// } -// // --- (line: 6) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionFunctionType.ts === -// const c: () => void; -// c(); -// function test([|cb|]: () => void) { -// /*GOTO DEF*/cb(); -// } -// class C { -// prop: () => void; -// // --- (line: 8) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionFunctionType.ts === -// --- (line: 3) skipped --- -// cb(); -// } -// class C { -// [|prop|]: () => void; -// m() { -// this./*GOTO DEF*/prop(); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc deleted file mode 100644 index 87e205beb0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionImplicitConstructor.ts === -// class [|ImplicitConstructor|] { -// } -// var implicitConstructor = new /*GOTO DEF*/ImplicitConstructor(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc deleted file mode 100644 index b9281b2a4d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /b.ts === -// [|export const foo = 1;|] - -// === /a.ts === -// import { foo } from "./b/*GOTO DEF*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc deleted file mode 100644 index 458dd91a4e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// import { foo } from/*GOTO DEF*/ "./b"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc deleted file mode 100644 index c1b20b0557..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// import { foo } from /*GOTO DEF*/ "./b"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc deleted file mode 100644 index 5aa9446edb..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - -// === /b.ts === -// export {/*GOTO DEF*/Class} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc deleted file mode 100644 index 91440f77d1..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /a.js === -// class Class { -// f; -// } -// module.exports.[|Class|] = Class; - -// === /b.js === -// const { Class } = require("./a"); -// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc deleted file mode 100644 index 7c4739fa58..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /a.js === -// class Class { -// f; -// } -// module.exports = { [|Class|] }; - -// === /b.js === -// const { Class } = require("./a"); -// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc deleted file mode 100644 index e78479c07d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - -// === /b.ts === -// import {/*GOTO DEF*/Class} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc deleted file mode 100644 index e203d7d28d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - -// === /e.ts === -// import {M, C, I} from "./d"; -// var c = new /*GOTO DEF*/C(); - - - -// === goToDefinition === -// === /a.ts === -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - -// === /e.ts === -// import {M, /*GOTO DEF*/C, I} from "./d"; -// var c = new C(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc deleted file mode 100644 index 55509a2511..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - -// === /b.ts === -// import {Class as /*GOTO DEF*/ClassAlias} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc deleted file mode 100644 index 0c0a65ec64..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - -// === /b.ts === -// export {Class as /*GOTO DEF*/ClassAlias} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc deleted file mode 100644 index af308bf7cf..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// [|export module Module { -// } -// export class Class { -// private f; -// } -// export interface Interface { -// x; -// }|] - -// === /b.ts === -// import /*GOTO DEF*/alias = require("./a"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc deleted file mode 100644 index 204b6ef767..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// class [|Class|] { -// private f; -// } -// export default Class; - -// === /b.ts === -// import /*GOTO DEF*/defaultExport from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc deleted file mode 100644 index 438a28cd46..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /a.js === -// class [|Class|] { -// private f; -// } -// export { Class }; - -// === /b.js === -// import { /*GOTO DEF*/Class } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc deleted file mode 100644 index 54c06f70e2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /a.js === -// class [|Class|] { -// f; -// } -// export { Class }; - -// === /b.js === -// const { Class } = require("./a"); -// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc deleted file mode 100644 index ca6cb45455..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc +++ /dev/null @@ -1,57 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// [|export default function f() {} -// export const x = 0;|] - -// === /b.ts === -// import f, { x } from "./a"; -// import * as a from "./a"; -// import b = require("./b"); -// f; -// x; -// /*GOTO DEF*/a; -// b; - - - -// === goToDefinition === -// === /a.ts === -// export default function [|f|]() {} -// export const x = 0; - -// === /b.ts === -// import f, { x } from "./a"; -// import * as a from "./a"; -// import b = require("./b"); -// /*GOTO DEF*/f; -// x; -// a; -// b; - - - -// === goToDefinition === -// === /a.ts === -// export default function f() {} -// export const [|x|] = 0; - -// === /b.ts === -// import f, { x } from "./a"; -// import * as a from "./a"; -// import b = require("./b"); -// f; -// /*GOTO DEF*/x; -// a; -// b; - - - -// === goToDefinition === -// === /b.ts === -// [|import f, { x } from "./a"; -// import * as a from "./a"; -// import b = require("./b"); -// f; -// x; -// a; -// /*GOTO DEF*/b;|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc deleted file mode 100644 index 9b92030eb2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc +++ /dev/null @@ -1,154 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === -// interface [|IFoo|] { method1(): number; } -// -// class Foo implements IFoo { -// public method1(): number { return 0; } -// } -// -// enum Enum { value1, value2 }; -// -// class Bar { -// public _interface: IFo/*GOTO DEF*/o = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = Enum.value1; -// // --- (line: 14) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === -// interface [|IFoo|] { method1(): number; } -// -// class Foo implements IFoo { -// public method1(): number { return 0; } -// // --- (line: 5) skipped --- - -// --- (line: 8) skipped --- -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IF/*GOTO DEF*/oo[]=[]; -// public _enum: Enum = Enum.value1; -// public _self: Bar; -// -// // --- (line: 16) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === -// interface [|IFoo|] { method1(): number; } -// -// class Foo implements IFoo { -// public method1(): number { return 0; } -// // --- (line: 5) skipped --- - -// --- (line: 12) skipped --- -// public _enum: Enum = Enum.value1; -// public _self: Bar; -// -// constructor(public _inConstructor: IFo/*GOTO DEF*/o) { -// } -// } - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === -// interface IFoo { method1(): number; } -// -// class [|Foo|] implements IFoo { -// public method1(): number { return 0; } -// } -// -// enum Enum { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Fo/*GOTO DEF*/o = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = Enum.value1; -// public _self: Bar; -// // --- (line: 15) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === -// interface IFoo { method1(): number; } -// -// class [|Foo|] implements IFoo { -// public method1(): number { return 0; } -// } -// -// enum Enum { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Fo/*GOTO DEF*/o(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = Enum.value1; -// // --- (line: 14) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === -// --- (line: 3) skipped --- -// public method1(): number { return 0; } -// } -// -// enum [|Enum|] { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: E/*GOTO DEF*/num = Enum.value1; -// public _self: Bar; -// -// constructor(public _inConstructor: IFoo) { -// } -// } - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === -// --- (line: 3) skipped --- -// public method1(): number { return 0; } -// } -// -// enum [|Enum|] { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = En/*GOTO DEF*/um.value1; -// public _self: Bar; -// -// constructor(public _inConstructor: IFoo) { -// } -// } - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === -// --- (line: 5) skipped --- -// -// enum Enum { value1, value2 }; -// -// class [|Bar|] { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = Enum.value1; -// public _self: Ba/*GOTO DEF*/r; -// -// constructor(public _inConstructor: IFoo) { -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc deleted file mode 100644 index db5eff1b7a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionInTypeArgument.ts === -// class Foo { } -// -// class [|Bar|] { } -// -// var x = new Foo(); - - - -// === goToDefinition === -// === /goToDefinitionInTypeArgument.ts === -// class [|Foo|] { } -// -// class Bar { } -// -// var x = new Fo/*GOTO DEF*/o(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc deleted file mode 100644 index 6bd0439d00..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc +++ /dev/null @@ -1,100 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === -// interface I { -// [|[x: string]: boolean;|] -// } -// interface J { -// [x: string]: number; -// } -// interface K { -// [x: `a${string}`]: string; -// [x: `${string}b`]: string; -// } -// declare const i: I; -// i./*GOTO DEF*/foo; -// declare const ij: I | J; -// ij.foo; -// declare const k: K; -// // --- (line: 16) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === -// interface I { -// [|[x: string]: boolean;|] -// } -// interface J { -// [|[x: string]: number;|] -// } -// interface K { -// [x: `a${string}`]: string; -// [x: `${string}b`]: string; -// } -// declare const i: I; -// i.foo; -// declare const ij: I | J; -// ij./*GOTO DEF*/foo; -// declare const k: K; -// k.a; -// k.b; -// k.ab; - - - -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === -// --- (line: 4) skipped --- -// [x: string]: number; -// } -// interface K { -// [|[x: `a${string}`]: string;|] -// [x: `${string}b`]: string; -// } -// declare const i: I; -// i.foo; -// declare const ij: I | J; -// ij.foo; -// declare const k: K; -// k./*GOTO DEF*/a; -// k.b; -// k.ab; - - - -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === -// --- (line: 5) skipped --- -// } -// interface K { -// [x: `a${string}`]: string; -// [|[x: `${string}b`]: string;|] -// } -// declare const i: I; -// i.foo; -// declare const ij: I | J; -// ij.foo; -// declare const k: K; -// k.a; -// k./*GOTO DEF*/b; -// k.ab; - - - -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === -// --- (line: 4) skipped --- -// [x: string]: number; -// } -// interface K { -// [|[x: `a${string}`]: string;|] -// [|[x: `${string}b`]: string;|] -// } -// declare const i: I; -// i.foo; -// declare const ij: I | J; -// ij.foo; -// declare const k: K; -// k.a; -// k.b; -// k./*GOTO DEF*/ab; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc deleted file mode 100644 index 7abd22b554..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /a.js === -// const o = {}; -// o./*GOTO DEF*/foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc deleted file mode 100644 index 1dfebe238c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionInstanceof1.ts === -// class [|C|] { -// } -// declare var obj: any; -// obj /*GOTO DEF*/instanceof C; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc deleted file mode 100644 index 899d642468..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /main.ts === -// class C { -// static [|[Symbol.hasInstance]|](value: unknown): boolean { return true; } -// } -// declare var obj: any; -// obj /*GOTO DEF*/instanceof C; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc deleted file mode 100644 index 9e4567449e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionInterfaceAfterImplement.ts === -// interface [|sInt|] { -// sVar: number; -// sFn: () => void; -// } -// -// class iClass implements /*GOTO DEF*/sInt { -// public sVar = 1; -// public sFn() { -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc deleted file mode 100644 index 6b0fb3966d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /a.js === -// /** -// * @import { A } from "./b/*GOTO DEF*/" -// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc deleted file mode 100644 index 70db19f1b2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /a.js === -// /** -// * @import { A } from/*GOTO DEF*/ "./b" -// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc deleted file mode 100644 index 443b3ca3d9..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /a.js === -// /** -// * @import { A } from /*GOTO DEF*/ "./b"; -// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc deleted file mode 100644 index ec17a66f3c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /b.ts === -// export interface [|A|] { } - -// === /a.js === -// /** -// * @import { A/*GOTO DEF*/ } from "./b"; -// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc deleted file mode 100644 index 7e27cfb656..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /b.ts === -// export interface [|A|] { } - -// === /a.js === -// /** -// * @import { A } from "./b"; -// */ -// -// /** -// * @param { A/*GOTO DEF*/ } a -// */ -// function f(a) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc deleted file mode 100644 index 5ba2bcd18c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === goToDefinition === -// === /foo.js === -// x.test = () => { } -// x./*GOTO DEF*/test(); -// x.test3 = function () { } -// x.test3(); - - - -// === goToDefinition === -// === /foo.js === -// x.test = () => { } -// x.test(); -// x.test3 = function () { } -// x./*GOTO DEF*/test3(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc deleted file mode 100644 index b8416519af..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /foo.js === -// [|module.exports = {};|] - -// === /bar.js === -// var x = require(/*GOTO DEF*/"./foo"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc deleted file mode 100644 index 7470cbd268..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === goToDefinition === -// === /foo.js === -// [|function notExported() { } -// class Blah { -// abc = 123; -// } -// module.exports.Blah = Blah;|] - -// === /bar.js === -// const /*GOTO DEF*/BlahModule = require("./foo.js"); -// new BlahModule.Blah() - - - -// === goToDefinition === -// === /foo.js === -// [|function notExported() { } -// class Blah { -// abc = 123; -// } -// module.exports.Blah = Blah;|] - -// === /bar.js === -// const BlahModule = require("./foo.js"); -// new /*GOTO DEF*/BlahModule.Blah() - - - -// === goToDefinition === -// === /foo.js === -// [|function notExported() { } -// class Blah { -// abc = 123; -// } -// module.exports.Blah = Blah;|] - -// === /barTs.ts === -// import /*GOTO DEF*/BlahModule = require("./foo.js"); -// new BlahModule.Blah() - - - -// === goToDefinition === -// === /foo.js === -// [|function notExported() { } -// class Blah { -// abc = 123; -// } -// module.exports.Blah = Blah;|] - -// === /barTs.ts === -// import BlahModule = require("./foo.js"); -// new /*GOTO DEF*/BlahModule.Blah() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc deleted file mode 100644 index 620243c5d1..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /test.tsx === -// interface FC

{ -// [|(props: P, context?: any): string;|] -// } -// -// const [|Thing|]: FC = (props) =>

; -// const HelloWorld = () => ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc deleted file mode 100644 index dd6576d397..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /foo.jsx === -// const [|Foo|] = () => ( -//
foo
-// ); -// export default Foo; - -// === /bar.jsx === -// import Foo from './foo'; -// const a = \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc deleted file mode 100644 index 22488162e2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionLabels.ts === -// [|label1|]: while (true) { -// label2: while (true) { -// break /*GOTO DEF*/label1; -// continue label2; -// () => { break label1; } -// continue unknownLabel; -// } -// } - - - -// === goToDefinition === -// === /goToDefinitionLabels.ts === -// label1: while (true) { -// [|label2|]: while (true) { -// break label1; -// continue /*GOTO DEF*/label2; -// () => { break label1; } -// continue unknownLabel; -// } -// } - - - -// === goToDefinition === -// === /goToDefinitionLabels.ts === -// [|label1|]: while (true) { -// label2: while (true) { -// break label1; -// continue label2; -// () => { break /*GOTO DEF*/label1; } -// continue unknownLabel; -// } -// } - - - -// === goToDefinition === -// === /goToDefinitionLabels.ts === -// label1: while (true) { -// label2: while (true) { -// break label1; -// continue label2; -// () => { break label1; } -// continue /*GOTO DEF*/unknownLabel; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc deleted file mode 100644 index 73c5325d09..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// class A { -// private [|z|]/*GOTO DEF*/: string; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc deleted file mode 100644 index a148da853a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc +++ /dev/null @@ -1,46 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// im/*GOTO DEF*/port.meta; -// function f() { new.target; } - - - -// === goToDefinition === -// === /a.ts === -// import.met/*GOTO DEF*/a; -// function f() { new.target; } - - - -// === goToDefinition === -// === /a.ts === -// import.meta; -// function f() { n/*GOTO DEF*/ew.target; } - - - -// === goToDefinition === -// === /a.ts === -// import.meta; -// function [|f|]() { new.t/*GOTO DEF*/arget; } - - - -// === goToDefinition === -// === /b.ts === -// im/*GOTO DEF*/port.m; -// class c { constructor() { new.target; } } - - - -// === goToDefinition === -// === /b.ts === -// import.m; -// class c { constructor() { n/*GOTO DEF*/ew.target; } } - - - -// === goToDefinition === -// === /b.ts === -// import.m; -// class [|c|] { constructor() { new.t/*GOTO DEF*/arget; } } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc deleted file mode 100644 index a7d816c66d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc +++ /dev/null @@ -1,106 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === -// class MethodOverload { -// static [|method|](); -// static method(foo: string); -// static method(foo?: any) { } -// public method(): any; -// public method(foo: string); -// public method(foo?: any) { return "foo" } -// } -// // static method -// MethodOverload./*GOTO DEF*/method(); -// MethodOverload.method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload.method(); -// methodOverload.method("456"); - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === -// class MethodOverload { -// static method(); -// static [|method|](foo: string); -// static method(foo?: any) { } -// public method(): any; -// public method(foo: string); -// public method(foo?: any) { return "foo" } -// } -// // static method -// MethodOverload.method(); -// MethodOverload./*GOTO DEF*/method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload.method(); -// methodOverload.method("456"); - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === -// class MethodOverload { -// static method(); -// static method(foo: string); -// static method(foo?: any) { } -// public [|method|](): any; -// public method(foo: string); -// public method(foo?: any) { return "foo" } -// } -// // static method -// MethodOverload.method(); -// MethodOverload.method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload./*GOTO DEF*/method(); -// methodOverload.method("456"); - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === -// class MethodOverload { -// static method(); -// static method(foo: string); -// static method(foo?: any) { } -// public method(): any; -// public [|method|](foo: string); -// public method(foo?: any) { return "foo" } -// } -// // static method -// MethodOverload.method(); -// MethodOverload.method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload.method(); -// methodOverload./*GOTO DEF*/method("456"); - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === -// class MethodOverload { -// static /*GOTO DEF*/[|method|](); -// static [|method|](foo: string); -// static [|method|](foo?: any) { } -// public method(): any; -// public method(foo: string); -// public method(foo?: any) { return "foo" } -// // --- (line: 8) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === -// class MethodOverload { -// static method(); -// static method(foo: string); -// static method(foo?: any) { } -// public /*GOTO DEF*/[|method|](): any; -// public [|method|](foo: string); -// public [|method|](foo?: any) { return "foo" } -// } -// // static method -// MethodOverload.method(); -// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc deleted file mode 100644 index 25bd1b90c5..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc +++ /dev/null @@ -1,199 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// /*GOTO DEF*/export class [|A|] { -// -// private z: string; -// -// // --- (line: 5) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// export class [|A|]/*GOTO DEF*/ { -// -// private z: string; -// -// // --- (line: 5) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// export class A { -// -// /*GOTO DEF*/private [|z|]: string; -// -// readonly x: string; -// -// // --- (line: 7) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// export class A { -// -// private [|z|]/*GOTO DEF*/: string; -// -// readonly x: string; -// -// // --- (line: 7) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// export class A { -// -// private z: string; -// -// /*GOTO DEF*/readonly [|x|]: string; -// -// async a() { } -// -// // --- (line: 9) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// export class A { -// -// private z: string; -// -// readonly [|x|]/*GOTO DEF*/: string; -// -// async a() { } -// -// // --- (line: 9) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 3) skipped --- -// -// readonly x: string; -// -// /*GOTO DEF*/async [|a|]() { } -// -// override b() {} -// -// // --- (line: 11) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 3) skipped --- -// -// readonly x: string; -// -// async [|a|]/*GOTO DEF*/() { } -// -// override b() {} -// -// // --- (line: 11) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 5) skipped --- -// -// async a() { } -// -// /*GOTO DEF*/override [|b|]() {} -// -// public async c() { } -// } -// -// export function foo() { } - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 5) skipped --- -// -// async a() { } -// -// override [|b|]/*GOTO DEF*/() {} -// -// public async c() { } -// } -// -// export function foo() { } - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 7) skipped --- -// -// override b() {} -// -// /*GOTO DEF*/public async [|c|]() { } -// } -// -// export function foo() { } - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 7) skipped --- -// -// override b() {} -// -// public/*GOTO DEF*/ async [|c|]() { } -// } -// -// export function foo() { } - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 7) skipped --- -// -// override b() {} -// -// public as/*GOTO DEF*/ync [|c|]() { } -// } -// -// export function foo() { } - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 7) skipped --- -// -// override b() {} -// -// public async [|c|]/*GOTO DEF*/() { } -// } -// -// export function foo() { } - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 10) skipped --- -// public async c() { } -// } -// -// exp/*GOTO DEF*/ort function [|foo|]() { } - - - -// === goToDefinition === -// === /a.ts === -// --- (line: 10) skipped --- -// public async c() { } -// } -// -// export function [|foo|]/*GOTO DEF*/() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc deleted file mode 100644 index 34a3582173..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// interface [|IFoo|] { -// instance1: number; -// } - -// === /b.ts === -// interface [|IFoo|] { -// instance2: number; -// } -// -// interface [|IFoo|] { -// instance3: number; -// } -// -// var ifoo: IFo/*GOTO DEF*/o; - - - -// === goToDefinition === -// === /c.ts === -// module [|Module|] { -// export class c1 { } -// } - -// === /d.ts === -// module [|Module|] { -// export class c2 { } -// } - -// === /e.ts === -// Modul/*GOTO DEF*/e; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc deleted file mode 100644 index c2fa7f79a0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionNewExpressionTargetNotClass.ts === -// class C2 { -// } -// let [|I|]: { -// [|new(): C2;|] -// }; -// new /*GOTO DEF*/I(); -// let I2: { -// }; -// new I2(); - - - -// === goToDefinition === -// === /goToDefinitionNewExpressionTargetNotClass.ts === -// --- (line: 3) skipped --- -// new(): C2; -// }; -// new I(); -// let [|I2|]: { -// }; -// new /*GOTO DEF*/I2(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc deleted file mode 100644 index 653276103b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionObjectBindingElementPropertyName01.ts === -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { /*GOTO DEF*/property1: prop1 } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc deleted file mode 100644 index 76242360fe..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc +++ /dev/null @@ -1,87 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === -// var o = { -// [|value|]: 0, -// get getter() {return 0 }, -// set setter(v: number) { }, -// method: () => { }, -// es6StyleMethod() { } -// }; -// -// o./*GOTO DEF*/value; -// o.getter; -// o.setter; -// o.method; -// o.es6StyleMethod; - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === -// var o = { -// value: 0, -// get [|getter|]() {return 0 }, -// set setter(v: number) { }, -// method: () => { }, -// es6StyleMethod() { } -// }; -// -// o.value; -// o./*GOTO DEF*/getter; -// o.setter; -// o.method; -// o.es6StyleMethod; - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === -// var o = { -// value: 0, -// get getter() {return 0 }, -// set [|setter|](v: number) { }, -// method: () => { }, -// es6StyleMethod() { } -// }; -// -// o.value; -// o.getter; -// o./*GOTO DEF*/setter; -// o.method; -// o.es6StyleMethod; - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === -// var o = { -// value: 0, -// get getter() {return 0 }, -// set setter(v: number) { }, -// [|method|]: () => { }, -// es6StyleMethod() { } -// }; -// -// o.value; -// o.getter; -// o.setter; -// o./*GOTO DEF*/method; -// o.es6StyleMethod; - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === -// var o = { -// value: 0, -// get getter() {return 0 }, -// set setter(v: number) { }, -// method: () => { }, -// [|es6StyleMethod|]() { } -// }; -// -// o.value; -// o.getter; -// o.setter; -// o.method; -// o./*GOTO DEF*/es6StyleMethod; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc deleted file mode 100644 index 8ba14dc705..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties1.ts === -// interface PropsBag { -// [|propx|]: number -// } -// function foo(arg: PropsBag) {} -// foo({ -// pr/*GOTO DEF*/opx: 10 -// }) -// function bar(firstarg: boolean, secondarg: PropsBag) {} -// bar(true, { -// propx: 10 -// }) - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties1.ts === -// interface PropsBag { -// [|propx|]: number -// } -// function foo(arg: PropsBag) {} -// foo({ -// propx: 10 -// }) -// function bar(firstarg: boolean, secondarg: PropsBag) {} -// bar(true, { -// pr/*GOTO DEF*/opx: 10 -// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc deleted file mode 100644 index 857f644752..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionObjectSpread.ts === -// interface A1 { [|a|]: number }; -// interface A2 { [|a|]?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.a/*GOTO DEF*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc deleted file mode 100644 index 3dcc2ebc4c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverloadsInMultiplePropertyAccesses.ts === -// namespace A { -// export namespace B { -// export function f(value: number): void; -// export function [|f|](value: string): void; -// export function f(value: number | string) {} -// } -// } -// A.B./*GOTO DEF*/f(""); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc deleted file mode 100644 index 72647592ce..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember1.ts === -// class Foo { -// [|p|] = ''; -// } -// class Bar extends Foo { -// /*GOTO DEF*/override p = ''; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc deleted file mode 100644 index 8fec64e97d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /a.js === -// class Foo {} -// class Bar extends Foo { -// /** @override/*GOTO DEF*/ */ -// m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc deleted file mode 100644 index b16604f027..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc +++ /dev/null @@ -1,57 +0,0 @@ -// === goToDefinition === -// === /a.js === -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @over/*GOTO DEF*/ride see {@link https://test.com} description */ -// m() {} -// } - - - -// === goToDefinition === -// === /a.js === -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @override se/*GOTO DEF*/e {@link https://test.com} description */ -// m() {} -// } - - - -// === goToDefinition === -// === /a.js === -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @override see {@li/*GOTO DEF*/nk https://test.com} description */ -// m() {} -// } - - - -// === goToDefinition === -// === /a.js === -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @override see {@link https://test.c/*GOTO DEF*/om} description */ -// m() {} -// } - - - -// === goToDefinition === -// === /a.js === -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @override see {@link https://test.com} /*GOTO DEF*/description */ -// m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc deleted file mode 100644 index a806a546b8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember12.ts === -// class Foo { -// static [|p|] = ''; -// } -// class Bar extends Foo { -// static /*GOTO DEF*/override p = ''; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc deleted file mode 100644 index 00b5080a20..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember13.ts === -// class Foo { -// static [|m|]() {} -// } -// class Bar extends Foo { -// static /*GOTO DEF*/override m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc deleted file mode 100644 index 6da0128300..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember14.ts === -// class A { -// [|m|]() {} -// } -// class B extends A {} -// class C extends B { -// /*GOTO DEF*/override m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc deleted file mode 100644 index 16cb84475b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember15.ts === -// class A { -// static [|m|]() {} -// } -// class B extends A {} -// class C extends B { -// static /*GOTO DEF*/override m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc deleted file mode 100644 index fe6efb5625..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverrideJsdoc.ts === -// export class C extends CompletelyUndefined { -// /** -// * @override/*GOTO DEF*/ -// * @returns {{}} -// */ -// static foo() { -// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember17.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember17.baseline.jsonc deleted file mode 100644 index 912ebcd379..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember17.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember17.ts === -// --- (line: 4) skipped --- -// } -// -// export class MySqlVarBinary extends MySqlColumn { -// static /*GOTO DEF*/override readonly [|[entityKind]|]: string = "MySqlVarBinary"; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember18.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember18.baseline.jsonc deleted file mode 100644 index 82fd630b90..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember18.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember18.ts === -// --- (line: 4) skipped --- -// } -// -// export class MySqlVarBinary extends MySqlColumn { -// /*GOTO DEF*/override readonly [|[entityKind]|]: string = "MySqlVarBinary"; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember19.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember19.baseline.jsonc deleted file mode 100644 index 9a6e7362bf..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember19.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember19.ts === -// --- (line: 4) skipped --- -// } -// -// export class B extends A { -// static /*GOTO DEF*/override readonly [|[prop]|] = "B"; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc deleted file mode 100644 index a1a9669fcb..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember2.ts === -// class Foo { -// [|m|]() {} -// } -// -// class Bar extends Foo { -// /*GOTO DEF*/override m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember20.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember20.baseline.jsonc deleted file mode 100644 index 0583541163..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember20.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember20.ts === -// --- (line: 4) skipped --- -// } -// -// export class B extends A { -// /*GOTO DEF*/override readonly [|[prop]|] = "B"; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember21.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember21.baseline.jsonc deleted file mode 100644 index eb4779aae4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember21.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember21.ts === -// const prop = "foo" as const; -// -// abstract class A {} -// -// export class B extends A { -// static /*GOTO DEF*/override readonly [|[prop]|] = "B"; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember22.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember22.baseline.jsonc deleted file mode 100644 index 1b3c7288d9..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember22.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember22.ts === -// const prop = "foo" as const; -// -// abstract class A {} -// -// export class B extends A { -// /*GOTO DEF*/override readonly [|[prop]|] = "B"; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember23.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember23.baseline.jsonc deleted file mode 100644 index 7ca46d1935..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember23.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember23.ts === -// --- (line: 4) skipped --- -// } -// -// export class B extends A { -// static /*GOTO DEF*/override [|[prop]|]() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember24.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember24.baseline.jsonc deleted file mode 100644 index ea10917ca5..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember24.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember24.ts === -// --- (line: 4) skipped --- -// } -// -// export class B extends A { -// /*GOTO DEF*/override [|[prop]|]() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember25.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember25.baseline.jsonc deleted file mode 100644 index 5353f949df..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember25.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember25.ts === -// const prop: symbol = Symbol(); -// -// abstract class A {} -// -// export class B extends A { -// static /*GOTO DEF*/override [|[prop]|]() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember26.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember26.baseline.jsonc deleted file mode 100644 index 95bacc0021..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember26.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember26.ts === -// const prop: symbol = Symbol(); -// -// abstract class A {} -// -// export class B extends A { -// /*GOTO DEF*/override [|[prop]|]() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc deleted file mode 100644 index 9d266605f6..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember3.ts === -// abstract class Foo { -// abstract [|m|]() {} -// } -// -// export class Bar extends Foo { -// /*GOTO DEF*/override m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc deleted file mode 100644 index ec6a0eb35d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember4.ts === -// class Foo { -// [|m|]() {} -// } -// function f () { -// return class extends Foo { -// /*GOTO DEF*/override m() {} -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc deleted file mode 100644 index ef37f15681..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember5.ts === -// class Foo extends (class { -// [|m|]() {} -// }) { -// /*GOTO DEF*/override m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc deleted file mode 100644 index 0d9e9f61de..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember6.ts === -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /*GOTO DEF*/override [|m1|]() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc deleted file mode 100644 index c3bd341438..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember7.ts === -// class Foo { -// /*GOTO DEF*/override [|m|]() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc deleted file mode 100644 index fc104d7433..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// export class A { -// [|m|]() {} -// } - -// === /b.ts === -// import { A } from "./a"; -// class B extends A { -// /*GOTO DEF*/override m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc deleted file mode 100644 index e38d294a25..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember9.ts === -// interface I { -// m(): void; -// } -// class A { -// [|m|]() {}; -// } -// class B extends A implements I { -// /*GOTO DEF*/override m() {} -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc deleted file mode 100644 index 97d4a0e865..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionPartialImplementation_1.ts === -// module A { -// export interface [|IA|] { -// y: string; -// } -// } - -// === /goToDefinitionPartialImplementation_2.ts === -// module A { -// export interface [|IA|] { -// x: number; -// } -// -// var x: /*GOTO DEF*/IA; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc deleted file mode 100644 index c9e7205125..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionPrimitives.ts === -// var x: st/*GOTO DEF*/ring; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc deleted file mode 100644 index 99b8ad102d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionPrivateName.ts === -// class A { -// #method() { } -// [|#foo|] = 3; -// get #prop() { return ""; } -// set #prop(value: string) { } -// constructor() { -// this./*GOTO DEF*/#foo -// this.#method -// this.#prop -// } -// } - - - -// === goToDefinition === -// === /goToDefinitionPrivateName.ts === -// class A { -// [|#method|]() { } -// #foo = 3; -// get #prop() { return ""; } -// set #prop(value: string) { } -// constructor() { -// this.#foo -// this./*GOTO DEF*/#method -// this.#prop -// } -// } - - - -// === goToDefinition === -// === /goToDefinitionPrivateName.ts === -// class A { -// #method() { } -// #foo = 3; -// get [|#prop|]() { return ""; } -// set [|#prop|](value: string) { } -// constructor() { -// this.#foo -// this.#method -// this./*GOTO DEF*/#prop -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc deleted file mode 100644 index 0c8d5616e6..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionPropertyAssignment.ts === -// export const [|Component|] = () => { return "OK"} -// Component.displayName = 'Component' -// -// /*GOTO DEF*/Component -// -// Component.displayName - - - -// === goToDefinition === -// === /goToDefinitionPropertyAssignment.ts === -// export const Component = () => { return "OK"} -// Component.[|displayName|] = 'Component' -// -// Component -// -// Component./*GOTO DEF*/displayName \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc deleted file mode 100644 index e8fa4c572d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionRest.ts === -// interface Gen { -// x: number; -// [|parent|]: Gen; -// millenial: string; -// } -// let t: Gen; -// var { x, ...rest } = t; -// rest./*GOTO DEF*/parent; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc deleted file mode 100644 index de684a61f8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn1.ts === -// function [|foo|]() { -// /*GOTO DEF*/return 10; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc deleted file mode 100644 index 59497ae398..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn2.ts === -// function foo() { -// return [|() => { -// /*GOTO DEF*/return 10; -// }|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc deleted file mode 100644 index f649b2d0f8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn3.ts === -// class C { -// [|m|]() { -// /*GOTO DEF*/return 1; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc deleted file mode 100644 index e5ee60d43a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn4.ts === -// /*GOTO DEF*/return; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc deleted file mode 100644 index e723352c1c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn5.ts === -// function [|foo|]() { -// class Foo { -// static { /*GOTO DEF*/return; } -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc deleted file mode 100644 index 720c4bfc46..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn6.ts === -// function foo() { -// return [|function () { -// /*GOTO DEF*/return 10; -// }|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc deleted file mode 100644 index b2f225744e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn7.ts === -// function foo(a: string, b: string): string; -// function foo(a: number, b: number): number; -// function [|foo|](a: any, b: any): any { -// /*GOTO DEF*/return a + b; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc deleted file mode 100644 index 24fdd9a524..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc +++ /dev/null @@ -1,82 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSameFile.ts === -// var [|localVariable|]; -// function localFunction() { } -// class localClass { } -// interface localInterface{ } -// module localModule{ export var foo = 1;} -// -// -// /*GOTO DEF*/localVariable = 1; -// localFunction(); -// var foo = new localClass(); -// class fooCls implements localInterface { } -// var fooVar = localModule.foo; - - - -// === goToDefinition === -// === /goToDefinitionSameFile.ts === -// var localVariable; -// function [|localFunction|]() { } -// class localClass { } -// interface localInterface{ } -// module localModule{ export var foo = 1;} -// -// -// localVariable = 1; -// /*GOTO DEF*/localFunction(); -// var foo = new localClass(); -// class fooCls implements localInterface { } -// var fooVar = localModule.foo; - - - -// === goToDefinition === -// === /goToDefinitionSameFile.ts === -// var localVariable; -// function localFunction() { } -// class [|localClass|] { } -// interface localInterface{ } -// module localModule{ export var foo = 1;} -// -// -// localVariable = 1; -// localFunction(); -// var foo = new /*GOTO DEF*/localClass(); -// class fooCls implements localInterface { } -// var fooVar = localModule.foo; - - - -// === goToDefinition === -// === /goToDefinitionSameFile.ts === -// var localVariable; -// function localFunction() { } -// class localClass { } -// interface [|localInterface|]{ } -// module localModule{ export var foo = 1;} -// -// -// localVariable = 1; -// localFunction(); -// var foo = new localClass(); -// class fooCls implements /*GOTO DEF*/localInterface { } -// var fooVar = localModule.foo; - - - -// === goToDefinition === -// === /goToDefinitionSameFile.ts === -// var localVariable; -// function localFunction() { } -// class localClass { } -// interface localInterface{ } -// module [|localModule|]{ export var foo = 1;} -// -// -// localVariable = 1; -// localFunction(); -// var foo = new localClass(); -// class fooCls implements localInterface { } -// var fooVar = /*GOTO DEF*/localModule.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc deleted file mode 100644 index fbdd60c876..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSatisfiesExpression1.ts === -// const STRINGS = { -// /*GOTO DEF*/[|title|]: 'A Title', -// } satisfies Record; -// -// //somewhere in app -// STRINGS.title - - - -// === goToDefinition === -// === /goToDefinitionSatisfiesExpression1.ts === -// const STRINGS = { -// [|title|]: 'A Title', -// } satisfies Record; -// -// //somewhere in app -// STRINGS./*GOTO DEF*/title \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc deleted file mode 100644 index c6c62dfd70..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /moduleThing.ts === -// import /*GOTO DEF*/"./scriptThing"; -// import "./stylez.css"; - - - -// === goToDefinition === -// === /moduleThing.ts === -// import "./scriptThing"; -// import /*GOTO DEF*/"./stylez.css"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc deleted file mode 100644 index 75f8f2bfe2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === goToDefinition === -// === /home/src/workspaces/project/moduleThing.ts === -// import /*GOTO DEF*/"./scriptThing"; -// import "./stylez.css"; -// import "./foo.txt"; - - - -// === goToDefinition === -// === /home/src/workspaces/project/moduleThing.ts === -// import "./scriptThing"; -// import /*GOTO DEF*/"./stylez.css"; -// import "./foo.txt"; - - - -// === goToDefinition === -// === /home/src/workspaces/project/moduleThing.ts === -// import "./scriptThing"; -// import "./stylez.css"; -// import /*GOTO DEF*/"./foo.txt"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc deleted file mode 100644 index 62aa457a72..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShadowVariable.ts === -// var shadowVariable = "foo"; -// function shadowVariableTestModule() { -// var [|shadowVariable|]; -// /*GOTO DEF*/shadowVariable = 1; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc deleted file mode 100644 index a933353fbd..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShadowVariableInsideModule.ts === -// module shdModule { -// var [|shdVar|]; -// /*GOTO DEF*/shdVar = 1; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc deleted file mode 100644 index b447aab88a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty01.ts === -// var name = "hello"; -// var id = 100000; -// declare var id; -// var obj = {/*GOTO DEF*/name, id}; -// obj.name; -// obj.id; - - - -// === goToDefinition === -// === /goToDefinitionShorthandProperty01.ts === -// var name = "hello"; -// var [|id|] = 100000; -// declare var [|id|]; -// var obj = {name, /*GOTO DEF*/id}; -// obj.name; -// obj.id; - - - -// === goToDefinition === -// === /goToDefinitionShorthandProperty01.ts === -// var name = "hello"; -// var id = 100000; -// declare var id; -// var obj = {[|name|], id}; -// obj./*GOTO DEF*/name; -// obj.id; - - - -// === goToDefinition === -// === /goToDefinitionShorthandProperty01.ts === -// var name = "hello"; -// var id = 100000; -// declare var id; -// var obj = {name, [|id|]}; -// obj.name; -// obj./*GOTO DEF*/id; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc deleted file mode 100644 index 94d0466cf1..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty02.ts === -// let x = { -// f/*GOTO DEF*/oo -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc deleted file mode 100644 index f10cb67cde..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty03.ts === -// var [|x|] = { -// /*GOTO DEF*/x -// } -// let y = { -// y -// } - - - -// === goToDefinition === -// === /goToDefinitionShorthandProperty03.ts === -// var x = { -// x -// } -// let [|y|] = { -// /*GOTO DEF*/y -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc deleted file mode 100644 index 6e7f8d7b70..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty04.ts === -// interface Foo { -// foo(): void -// } -// -// let x: Foo = { -// f/*GOTO DEF*/oo -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc deleted file mode 100644 index 414558d93d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty05.ts === -// interface Foo { -// foo(): void -// } -// const [|foo|] = 1; -// let x: Foo = { -// f/*GOTO DEF*/oo -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc deleted file mode 100644 index ce825635ce..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty06.ts === -// interface Foo { -// [|foo|](): void -// } -// const foo = 1; -// let x: Foo = { -// f/*GOTO DEF*/oo() -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc deleted file mode 100644 index 9af12dce90..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === goToDefinition === -// === /a.js === -// [|module.exports = function [|f|]() {}|] - -// === /b.js === -// const f = require("./a"); -// /*GOTO DEF*/f(); - - - -// === goToDefinition === -// === /a.js === -// [|module.exports = function [|f|]() {}|] - -// === /bar.ts === -// import f = require("./a"); -// /*GOTO DEF*/f(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc deleted file mode 100644 index 78b467b720..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === goToDefinition === -// === /Definition.ts === -// class [|c|] { } - -// === /Consumption.ts === -// var n = new /*GOTO DEF*/c(); -// var n = new c(); - - - -// === goToDefinition === -// === /Definition.ts === -// class [|c|] { } - -// === /Consumption.ts === -// var n = new c(); -// var n = new c/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc deleted file mode 100644 index 1e47e146ff..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// //MyFile Comments -// //more comments -// /// -// /// -// -// class clsInOverload { -// // --- (line: 7) skipped --- - - - -// === goToDefinition === -// === /a.ts === -// //MyFile Comments -// //more comments -// /// -// /// -// -// class clsInOverload { -// static fnOverload(); -// // --- (line: 8) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc deleted file mode 100644 index 4630cbcf4b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase1.ts === -// [|switch|] (null ) { -// /*GOTO DEF*/case null: break; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc deleted file mode 100644 index 1f3a81ed6d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase2.ts === -// [|switch|] (null) { -// /*GOTO DEF*/default: break; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc deleted file mode 100644 index ddce8aad17..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase3.ts === -// [|switch|] (null) { -// /*GOTO DEF*/default: { -// switch (null) { -// default: break; -// } -// }; -// } - - - -// === goToDefinition === -// === /goToDefinitionSwitchCase3.ts === -// switch (null) { -// default: { -// [|switch|] (null) { -// /*GOTO DEF*/default: break; -// } -// }; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc deleted file mode 100644 index 13d2189c7e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase4.ts === -// switch (null) { -// case null: break; -// } -// -// [|switch|] (null) { -// /*GOTO DEF*/case null: break; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc deleted file mode 100644 index 656f1d3f24..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase5.ts === -// export /*GOTO DEF*/default {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc deleted file mode 100644 index 16a732aeff..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase6.ts === -// export default { /*GOTO DEF*/[|case|] }; -// default; -// case 42; - - - -// === goToDefinition === -// === /goToDefinitionSwitchCase6.ts === -// export default { case }; -// /*GOTO DEF*/default; -// case 42; - - - -// === goToDefinition === -// === /goToDefinitionSwitchCase6.ts === -// export default { case }; -// default; -// /*GOTO DEF*/case 42; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc deleted file mode 100644 index 14f21d4768..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase7.ts === -// switch (null) { -// case null: -// export /*GOTO DEF*/default 123; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc deleted file mode 100644 index ef6f61eb8e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionTaggedTemplateOverloads.ts === -// function [|f|](strs: TemplateStringsArray, x: number): void; -// function f(strs: TemplateStringsArray, x: boolean): void; -// function f(strs: TemplateStringsArray, x: number | boolean) {} -// -// /*GOTO DEF*/f`${0}`; -// f`${false}`; - - - -// === goToDefinition === -// === /goToDefinitionTaggedTemplateOverloads.ts === -// function f(strs: TemplateStringsArray, x: number): void; -// function [|f|](strs: TemplateStringsArray, x: boolean): void; -// function f(strs: TemplateStringsArray, x: number | boolean) {} -// -// f`${0}`; -// /*GOTO DEF*/f`${false}`; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc deleted file mode 100644 index 0b3dc0c246..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionThis.ts === -// function f([|this|]: number) { -// return /*GOTO DEF*/this; -// } -// class C { -// constructor() { return this; } -// get self(this: number) { return this; } -// } - - - -// === goToDefinition === -// === /goToDefinitionThis.ts === -// function f(this: number) { -// return this; -// } -// class [|C|] { -// constructor() { return /*GOTO DEF*/this; } -// get self(this: number) { return this; } -// } - - - -// === goToDefinition === -// === /goToDefinitionThis.ts === -// function f(this: number) { -// return this; -// } -// class C { -// constructor() { return this; } -// get self([|this|]: number) { return /*GOTO DEF*/this; } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc deleted file mode 100644 index f6994cecfe..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// enum [|SyntaxKind|] { SourceFile } -// export type { SyntaxKind } - -// === /c.ts === -// import type { SyntaxKind } from './b'; -// let kind: /*GOTO DEF*/SyntaxKind; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc deleted file mode 100644 index 790a5121c9..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionTypePredicate.ts === -// class A {} -// function f([|parameter|]: any): /*GOTO DEF*/parameter is A { -// return typeof parameter === "string"; -// } - - - -// === goToDefinition === -// === /goToDefinitionTypePredicate.ts === -// class [|A|] {} -// function f(parameter: any): parameter is /*GOTO DEF*/A { -// return typeof parameter === "string"; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc deleted file mode 100644 index 92c108f58a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /src/app.ts === -// /// -// $.x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc deleted file mode 100644 index d27141f9f7..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionTypeofThis.ts === -// function f([|this|]: number) { -// type X = typeof /*GOTO DEF*/this; -// } -// class C { -// constructor() { type X = typeof this; } -// get self(this: number) { type X = typeof this; } -// } - - - -// === goToDefinition === -// === /goToDefinitionTypeofThis.ts === -// function f(this: number) { -// type X = typeof this; -// } -// class [|C|] { -// constructor() { type X = typeof /*GOTO DEF*/this; } -// get self(this: number) { type X = typeof this; } -// } - - - -// === goToDefinition === -// === /goToDefinitionTypeofThis.ts === -// function f(this: number) { -// type X = typeof this; -// } -// class C { -// constructor() { type X = typeof this; } -// get self([|this|]: number) { type X = typeof /*GOTO DEF*/this; } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc deleted file mode 100644 index 2a5b1bb336..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUndefinedSymbols.ts === -// some/*GOTO DEF*/Variable; -// var a: someType; -// var x = {}; x.someProperty; -// var a: any; a.someProperty; - - - -// === goToDefinition === -// === /goToDefinitionUndefinedSymbols.ts === -// someVariable; -// var a: some/*GOTO DEF*/Type; -// var x = {}; x.someProperty; -// var a: any; a.someProperty; - - - -// === goToDefinition === -// === /goToDefinitionUndefinedSymbols.ts === -// someVariable; -// var a: someType; -// var x = {}; x.some/*GOTO DEF*/Property; -// var a: any; a.someProperty; - - - -// === goToDefinition === -// === /goToDefinitionUndefinedSymbols.ts === -// someVariable; -// var a: someType; -// var x = {}; x.someProperty; -// var a: any; a.some/*GOTO DEF*/Property; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc deleted file mode 100644 index c1dcb0b04e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty1.ts === -// interface One { -// [|commonProperty|]: number; -// commonFunction(): number; -// } -// -// interface Two { -// [|commonProperty|]: string -// commonFunction(): number; -// } -// -// var x : One | Two; -// -// x./*GOTO DEF*/commonProperty; -// x.commonFunction; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc deleted file mode 100644 index 6dae48030b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty2.ts === -// interface HasAOrB { -// [|a|]: string; -// b: string; -// } -// -// interface One { -// common: { [|a|] : number; }; -// } -// -// interface Two { -// common: HasAOrB; -// } -// -// var x : One | Two; -// -// x.common./*GOTO DEF*/a; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc deleted file mode 100644 index 0788a8117d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty3.ts === -// interface Array { -// [|specialPop|](): T -// } -// -// var strings: string[]; -// var numbers: number[]; -// -// var x = (strings || numbers)./*GOTO DEF*/specialPop() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc deleted file mode 100644 index 0df12e9990..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty4.ts === -// interface SnapCrackle { -// [|pop|](): string; -// } -// -// interface Magnitude { -// [|pop|](): number; -// } -// -// interface Art { -// [|pop|](): boolean; -// } -// -// var art: Art; -// var magnitude: Magnitude; -// var snapcrackle: SnapCrackle; -// -// var x = (snapcrackle || magnitude || art)./*GOTO DEF*/pop; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc deleted file mode 100644 index b3498dbaa3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc +++ /dev/null @@ -1,95 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty_discriminated.ts === -// type U = A | B; -// -// interface A { -// [|kind|]: "a"; -// prop: number; -// }; -// -// interface B { -// kind: "b"; -// prop: string; -// } -// -// const u: U = { -// /*GOTO DEF*/kind: "a", -// prop: 0, -// }; -// const u2: U = { -// // --- (line: 18) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty_discriminated.ts === -// type U = A | B; -// -// interface A { -// kind: "a"; -// [|prop|]: number; -// }; -// -// interface B { -// kind: "b"; -// prop: string; -// } -// -// const u: U = { -// kind: "a", -// /*GOTO DEF*/prop: 0, -// }; -// const u2: U = { -// kind: "bogus", -// prop: 0, -// }; - - - -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty_discriminated.ts === -// type U = A | B; -// -// interface A { -// [|kind|]: "a"; -// prop: number; -// }; -// -// interface B { -// [|kind|]: "b"; -// prop: string; -// } -// -// const u: U = { -// kind: "a", -// prop: 0, -// }; -// const u2: U = { -// /*GOTO DEF*/kind: "bogus", -// prop: 0, -// }; - - - -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty_discriminated.ts === -// type U = A | B; -// -// interface A { -// kind: "a"; -// [|prop|]: number; -// }; -// -// interface B { -// kind: "b"; -// [|prop|]: string; -// } -// -// const u: U = { -// kind: "a", -// prop: 0, -// }; -// const u2: U = { -// kind: "bogus", -// /*GOTO DEF*/prop: 0, -// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc deleted file mode 100644 index 234342516d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /foo.js === -// const Bar; -// const [|Foo|] = [|Bar|] = function () {} -// Foo.prototype.bar = function() {} -// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc deleted file mode 100644 index 30aca9d564..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /foo.js === -// const [|Foo|] = module.[|exports|] = function () {} -// Foo.prototype.bar = function() {} -// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc deleted file mode 100644 index 8e94c0fc30..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /foo.ts === -// const Bar; -// const [|Foo|] = [|Bar|] = function () {} -// Foo.prototype.bar = function() {} -// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc deleted file mode 100644 index d826f639e3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /foo.ts === -// const [|Foo|] = module.[|exports|] = function () {} -// Foo.prototype.bar = function() {} -// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc deleted file mode 100644 index 04d7ab9643..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionYield1.ts === -// function* [|gen|]() { -// /*GOTO DEF*/yield 0; -// } -// -// const genFunction = function*() { -// yield 0; -// } - - - -// === goToDefinition === -// === /goToDefinitionYield1.ts === -// function* gen() { -// yield 0; -// } -// -// const [|genFunction|] = function*() { -// /*GOTO DEF*/yield 0; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc deleted file mode 100644 index c9318f80db..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionYield2.ts === -// function* outerGen() { -// function* [|gen|]() { -// /*GOTO DEF*/yield 0; -// } -// return gen -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc deleted file mode 100644 index ddfd04564f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionYield3.ts === -// class C { -// [|notAGenerator|]() { -// /*GOTO DEF*/yield 0; -// } -// -// foo*() { -// // --- (line: 7) skipped --- - - - -// === goToDefinition === -// === /goToDefinitionYield3.ts === -// class C { -// notAGenerator() { -// yield 0; -// } -// -// foo*[||]() { -// /*GOTO DEF*/yield 0; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc deleted file mode 100644 index a3f9d8721b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionYield4.ts === -// function* gen() { -// class C { [|[/*GOTO DEF*/yield 10]|]() {} } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc deleted file mode 100644 index 6b8bf67ca8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === goToDefinition === -// === /goToDefinition_filteringGenericMappedType.ts === -// const obj = { -// get [|id|]() { -// return 1; -// }, -// name: "test", -// // --- (line: 6) skipped --- - -// --- (line: 17) skipped --- -// name: true, -// }); -// -// obj2./*GOTO DEF*/id; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc deleted file mode 100644 index fe4215ee81..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinition_filteringMappedType.ts === -// const obj = { [|a|]: 1, b: 2 }; -// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { a: 0 }; -// filtered./*GOTO DEF*/a; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc deleted file mode 100644 index b19fd8260d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /goToDefinition_mappedType.ts === -// interface I { [|m|](): void; }; -// declare const i: { [K in "m"]: I[K] }; -// i./*GOTO DEF*/m(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc deleted file mode 100644 index c79dc5bd9d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc +++ /dev/null @@ -1,46 +0,0 @@ -// === goToDefinition === -// === /goToDefinition_super.ts === -// class A { -// [|constructor() {}|] -// x() {} -// } -// class [|B|] extends A {} -// class C extends B { -// constructor() { -// /*GOTO DEF*/super(); -// } -// method() { -// super.x(); -// // --- (line: 12) skipped --- - - - -// === goToDefinition === -// === /goToDefinition_super.ts === -// class A { -// constructor() {} -// x() {} -// } -// class [|B|] extends A {} -// class C extends B { -// constructor() { -// super(); -// } -// method() { -// /*GOTO DEF*/super.x(); -// } -// } -// class D { -// // --- (line: 15) skipped --- - - - -// === goToDefinition === -// === /goToDefinition_super.ts === -// --- (line: 12) skipped --- -// } -// class D { -// constructor() { -// /*GOTO DEF*/super(); -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc deleted file mode 100644 index 087f06c4d9..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// import { [|f|] } from "foo"; -// /*GOTO DEF*/f(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc deleted file mode 100644 index 398dffba0c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /b.ts === -// import [|n|] = require('a'); -// var x = new /*GOTO DEF*/n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToTypeDefinition4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToTypeDefinition4.baseline.jsonc deleted file mode 100644 index a639362681..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToTypeDefinition4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /foo.ts === -// export type [|T|] = string; -// export const [|T|] = ""; - -// === /bar.ts === -// import { T } from "./foo"; -// let x: /*GOTO DEF*/T; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc deleted file mode 100644 index 7460b0ef63..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionConstructorFunction.js === -// function [|StringStreamm|]() { -// } -// StringStreamm.prototype = { -// }; -// -// function runMode () { -// new /*GOTO DEF*/StringStreamm() -// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc deleted file mode 100644 index abb98b47fe..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionInObjectBindingPattern1.ts === -// --- (line: 3) skipped --- -// interface Test { -// prop2: number -// } -// bar(({[|pr/*GOTO DEF*/op2|]})=>{}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc deleted file mode 100644 index 2cde751515..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionInObjectBindingPattern2.ts === -// var p0 = ({[|a/*GOTO DEF*/a|]}) => {console.log(aa)}; -// function f2({ a1, b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} - - - -// === goToDefinition === -// === /gotoDefinitionInObjectBindingPattern2.ts === -// var p0 = ({aa}) => {console.log(aa)}; -// function f2({ [|a/*GOTO DEF*/1|], b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} - - - -// === goToDefinition === -// === /gotoDefinitionInObjectBindingPattern2.ts === -// var p0 = ({aa}) => {console.log(aa)}; -// function f2({ a1, [|b/*GOTO DEF*/1|] }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc deleted file mode 100644 index 01216c4283..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc +++ /dev/null @@ -1,125 +0,0 @@ -// === goToDefinition === -// === /foo.ts === -// interface [|Foo|] { -// foo: string -// } -// namespace NS { -// export interface Bar { -// baz: Foo -// } -// } -// /** {@link /*GOTO DEF*/Foo} foooo*/ -// const a = "" -// /** {@link NS.Bar} ns.bar*/ -// const b = "" -// // --- (line: 13) skipped --- - - - -// === goToDefinition === -// === /foo.ts === -// interface Foo { -// foo: string -// } -// namespace NS { -// export interface [|Bar|] { -// baz: Foo -// } -// } -// /** {@link Foo} foooo*/ -// const a = "" -// /** {@link NS./*GOTO DEF*/Bar} ns.bar*/ -// const b = "" -// /** {@link Foo f1}*/ -// const c = "" -// // --- (line: 15) skipped --- - - - -// === goToDefinition === -// === /foo.ts === -// interface [|Foo|] { -// foo: string -// } -// namespace NS { -// // --- (line: 5) skipped --- - -// --- (line: 9) skipped --- -// const a = "" -// /** {@link NS.Bar} ns.bar*/ -// const b = "" -// /** {@link /*GOTO DEF*/Foo f1}*/ -// const c = "" -// /** {@link NS.Bar ns.bar}*/ -// const d = "" -// // --- (line: 17) skipped --- - - - -// === goToDefinition === -// === /foo.ts === -// interface Foo { -// foo: string -// } -// namespace NS { -// export interface [|Bar|] { -// baz: Foo -// } -// } -// /** {@link Foo} foooo*/ -// const a = "" -// /** {@link NS.Bar} ns.bar*/ -// const b = "" -// /** {@link Foo f1}*/ -// const c = "" -// /** {@link NS./*GOTO DEF*/Bar ns.bar}*/ -// const d = "" -// /** {@link d }dd*/ -// const e = "" -// /** @param x {@link Foo} */ -// function foo(x) { } - - - -// === goToDefinition === -// === /foo.ts === -// --- (line: 12) skipped --- -// /** {@link Foo f1}*/ -// const c = "" -// /** {@link NS.Bar ns.bar}*/ -// const [|d|] = "" -// /** {@link /*GOTO DEF*/d }dd*/ -// const e = "" -// /** @param x {@link Foo} */ -// function foo(x) { } - - - -// === goToDefinition === -// === /foo.ts === -// interface [|Foo|] { -// foo: string -// } -// namespace NS { -// // --- (line: 5) skipped --- - -// --- (line: 15) skipped --- -// const d = "" -// /** {@link d }dd*/ -// const e = "" -// /** @param x {@link /*GOTO DEF*/Foo} */ -// function foo(x) { } - - - -// === goToDefinition === -// === /foo.ts === -// interface [|Foo|] { -// foo: string -// } -// namespace NS { -// // --- (line: 5) skipped --- - -// === /bar.ts === -// /** {@link /*GOTO DEF*/Foo }dd*/ -// const f = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc deleted file mode 100644 index 8d2a27622c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionLinkTag2.ts === -// enum E { -// /** {@link /*GOTO DEF*/A} */ -// [|A|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc deleted file mode 100644 index d1b6210c5a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /a.ts === -// enum E { -// /** {@link /*GOTO DEF*/Foo} */ -// [|Foo|] -// } -// interface Foo { -// foo: E.Foo; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc deleted file mode 100644 index 958daa85d3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /b.ts === -// enum E { -// /** {@link /*GOTO DEF*/Foo} */ -// [|Foo|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc deleted file mode 100644 index 709efe4fbf..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionLinkTag5.ts === -// enum E { -// /** {@link /*GOTO DEF*/B} */ -// A, -// [|B|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc deleted file mode 100644 index 82e2ee17b5..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionLinkTag6.ts === -// enum E { -// /** {@link E./*GOTO DEF*/A} */ -// [|A|] -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc deleted file mode 100644 index 6668a2f281..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === -// class B {} -// function foo() { -// return {[|B|]: B}; -// } -// class C extends (foo())./*GOTO DEF*/B {} -// class C1 extends foo().B {} - - - -// === goToDefinition === -// === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === -// class B {} -// function foo() { -// return {[|B|]: B}; -// } -// class C extends (foo()).B {} -// class C1 extends foo()./*GOTO DEF*/B {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc deleted file mode 100644 index fe2c444c99..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /a.js === -// /** -// * @typedef {Object} [|T|] -// * @property {number} a -// */ -// -// /** @satisfies {/*GOTO DEF*/T} comment */ -// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc deleted file mode 100644 index 6f6a711484..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionThrowsTag.ts === -// class E extends Error {} -// -// /** -// * @throws {/*GOTO DEF*/E} -// */ -// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc deleted file mode 100644 index f551165273..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc +++ /dev/null @@ -1,95 +0,0 @@ -// === goToDefinition === -// === /ns.ts === -// [|export namespace Foo { -// export namespace Bar { -// export class Baz {} -// } -// }|] - -// === /usage.ts === -// type A = typeof import(/*GOTO DEF*/"./ns").Foo.Bar; -// type B = import("./ns").Foo.Bar.Baz; - - - -// === goToDefinition === -// === /ns.ts === -// export namespace [|Foo|] { -// export namespace Bar { -// export class Baz {} -// } -// } - -// === /usage.ts === -// type A = typeof import("./ns")./*GOTO DEF*/Foo.Bar; -// type B = import("./ns").Foo.Bar.Baz; - - - -// === goToDefinition === -// === /ns.ts === -// export namespace Foo { -// export namespace [|Bar|] { -// export class Baz {} -// } -// } - -// === /usage.ts === -// type A = typeof import("./ns").Foo./*GOTO DEF*/Bar; -// type B = import("./ns").Foo.Bar.Baz; - - - -// === goToDefinition === -// === /ns.ts === -// [|export namespace Foo { -// export namespace Bar { -// export class Baz {} -// } -// }|] - -// === /usage.ts === -// type A = typeof import("./ns").Foo.Bar; -// type B = import(/*GOTO DEF*/"./ns").Foo.Bar.Baz; - - - -// === goToDefinition === -// === /ns.ts === -// export namespace [|Foo|] { -// export namespace Bar { -// export class Baz {} -// } -// } - -// === /usage.ts === -// type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns")./*GOTO DEF*/Foo.Bar.Baz; - - - -// === goToDefinition === -// === /ns.ts === -// export namespace Foo { -// export namespace [|Bar|] { -// export class Baz {} -// } -// } - -// === /usage.ts === -// type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns").Foo./*GOTO DEF*/Bar.Baz; - - - -// === goToDefinition === -// === /ns.ts === -// export namespace Foo { -// export namespace Bar { -// export class [|Baz|] {} -// } -// } - -// === /usage.ts === -// type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns").Foo.Bar./*GOTO DEF*/Baz; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc deleted file mode 100644 index f5b02f0b67..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === goToDefinition === -// === /Foo.js === -// class Foo { -// constructor() { -// this.[|alpha|] = 10; -// this.beta = 'gamma'; -// } -// method() { return this.alpha; } -// } -// var x = new Foo(); -// x.alpha/*GOTO DEF*/; -// x.beta; - - - -// === goToDefinition === -// === /Foo.js === -// class Foo { -// constructor() { -// this.alpha = 10; -// this.[|beta|] = 'gamma'; -// } -// method() { return this.alpha; } -// } -// var x = new Foo(); -// x.alpha; -// x.beta/*GOTO DEF*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc deleted file mode 100644 index cb2a5e5e2c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc +++ /dev/null @@ -1,91 +0,0 @@ -// === goToDefinition === -// === /jsDocSee1.ts === -// interface [|Foo|] { -// foo: string -// } -// namespace NS { -// export interface Bar { -// baz: Foo -// } -// } -// /** @see {/*GOTO DEF*/Foo} foooo*/ -// const a = "" -// /** @see {NS.Bar} ns.bar*/ -// const b = "" -// // --- (line: 13) skipped --- - - - -// === goToDefinition === -// === /jsDocSee1.ts === -// interface Foo { -// foo: string -// } -// namespace NS { -// export interface [|Bar|] { -// baz: Foo -// } -// } -// /** @see {Foo} foooo*/ -// const a = "" -// /** @see {NS./*GOTO DEF*/Bar} ns.bar*/ -// const b = "" -// /** @see Foo f1*/ -// const c = "" -// // --- (line: 15) skipped --- - - - -// === goToDefinition === -// === /jsDocSee1.ts === -// interface [|Foo|] { -// foo: string -// } -// namespace NS { -// // --- (line: 5) skipped --- - -// --- (line: 9) skipped --- -// const a = "" -// /** @see {NS.Bar} ns.bar*/ -// const b = "" -// /** @see /*GOTO DEF*/Foo f1*/ -// const c = "" -// /** @see NS.Bar ns.bar*/ -// const d = "" -// /** @see d dd*/ -// const e = "" - - - -// === goToDefinition === -// === /jsDocSee1.ts === -// interface Foo { -// foo: string -// } -// namespace NS { -// export interface [|Bar|] { -// baz: Foo -// } -// } -// /** @see {Foo} foooo*/ -// const a = "" -// /** @see {NS.Bar} ns.bar*/ -// const b = "" -// /** @see Foo f1*/ -// const c = "" -// /** @see NS./*GOTO DEF*/Bar ns.bar*/ -// const d = "" -// /** @see d dd*/ -// const e = "" - - - -// === goToDefinition === -// === /jsDocSee1.ts === -// --- (line: 12) skipped --- -// /** @see Foo f1*/ -// const c = "" -// /** @see NS.Bar ns.bar*/ -// const [|d|] = "" -// /** @see /*GOTO DEF*/d dd*/ -// const e = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc deleted file mode 100644 index 3ee62a5126..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc +++ /dev/null @@ -1,87 +0,0 @@ -// === goToDefinition === -// === /jsDocSee2.ts === -// /** @see {/*GOTO DEF*/foooo} unknown reference*/ -// const a = "" -// /** @see {@bar} invalid tag*/ -// const b = "" -// // --- (line: 5) skipped --- - - - -// === goToDefinition === -// === /jsDocSee2.ts === -// /** @see {foooo} unknown reference*/ -// const a = "" -// /** @see {/*GOTO DEF*/@bar} invalid tag*/ -// const b = "" -// /** @see foooo unknown reference without brace*/ -// const c = "" -// // --- (line: 7) skipped --- - - - -// === goToDefinition === -// === /jsDocSee2.ts === -// /** @see {foooo} unknown reference*/ -// const a = "" -// /** @see {@bar} invalid tag*/ -// const b = "" -// /** @see /*GOTO DEF*/foooo unknown reference without brace*/ -// const c = "" -// /** @see @bar invalid tag without brace*/ -// const d = "" -// // --- (line: 9) skipped --- - - - -// === goToDefinition === -// === /jsDocSee2.ts === -// --- (line: 3) skipped --- -// const b = "" -// /** @see foooo unknown reference without brace*/ -// const c = "" -// /** @see /*GOTO DEF*/@bar invalid tag without brace*/ -// const d = "" -// /** @see {d@fff} partial reference */ -// const e = "" -// // --- (line: 11) skipped --- - - - -// === goToDefinition === -// === /jsDocSee2.ts === -// --- (line: 4) skipped --- -// /** @see foooo unknown reference without brace*/ -// const c = "" -// /** @see @bar invalid tag without brace*/ -// const [|d|] = "" -// /** @see {/*GOTO DEF*/d@fff} partial reference */ -// const e = "" -// /** @see @@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{fff} partial reference */ -// const g = "" - - - -// === goToDefinition === -// === /jsDocSee2.ts === -// --- (line: 7) skipped --- -// const d = "" -// /** @see {d@fff} partial reference */ -// const e = "" -// /** @see /*GOTO DEF*/@@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{fff} partial reference */ -// const g = "" - - - -// === goToDefinition === -// === /jsDocSee2.ts === -// --- (line: 9) skipped --- -// const e = "" -// /** @see @@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{/*GOTO DEF*/fff} partial reference */ -// const g = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc deleted file mode 100644 index 61fab7b010..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /jsDocSee3.ts === -// function foo ([|a|]: string) { -// /** -// * @see {/*GOTO DEF*/a} -// */ -// function bar (a: string) { -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc deleted file mode 100644 index 8a66dabeb4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc +++ /dev/null @@ -1,52 +0,0 @@ -// === goToDefinition === -// === /jsDocSee4.ts === -// class [|A|] { -// foo () { } -// } -// declare const a: A; -// /** -// * @see {/*GOTO DEF*/A#foo} -// */ -// const t1 = 1 -// /** -// // --- (line: 10) skipped --- - - - -// === goToDefinition === -// === /jsDocSee4.ts === -// class A { -// foo () { } -// } -// declare const [|a|]: A; -// /** -// * @see {A#foo} -// */ -// const t1 = 1 -// /** -// * @see {/*GOTO DEF*/a.foo()} -// */ -// const t2 = 1 -// /** -// // --- (line: 14) skipped --- - - - -// === goToDefinition === -// === /jsDocSee4.ts === -// class A { -// foo () { } -// } -// declare const [|a|]: A; -// /** -// * @see {A#foo} -// */ -// const t1 = 1 -// /** -// * @see {a.foo()} -// */ -// const t2 = 1 -// /** -// * @see {@link /*GOTO DEF*/a.foo()} -// */ -// const t3 = 1 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc deleted file mode 100644 index 50c6a61b85..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === goToDefinition === -// === /jsdocCompletion_typedef.js === -// /** -// * @typedef {Object} Person -// * @property {string} [|personName|] -// * @property {number} personAge -// */ -// -// /** -// * @typedef {{ animalName: string, animalAge: number }} Animal -// */ -// -// /** @type {Person} */ -// var person; person.personName/*GOTO DEF*/ -// -// /** @type {Animal} */ -// var animal; animal.animalName - - - -// === goToDefinition === -// === /jsdocCompletion_typedef.js === -// --- (line: 4) skipped --- -// */ -// -// /** -// * @typedef {{ [|animalName|]: string, animalAge: number }} Animal -// */ -// -// /** @type {Person} */ -// var person; person.personName -// -// /** @type {Animal} */ -// var animal; animal.animalName/*GOTO DEF*/ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc deleted file mode 100644 index 629dad64b0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /file.tsx === -// --- (line: 10) skipped --- -// } -// } -// -// var [|nn|]: {name?: string; size?: number}; -// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/qualifiedName_import_declaration_with_variable_entity_names.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/qualifiedName_import_declaration_with_variable_entity_names.baseline.jsonc deleted file mode 100644 index 666ce55bd3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/qualifiedName_import_declaration_with_variable_entity_names.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /qualifiedName_import_declaration_with_variable_entity_names.ts === -// module Alpha { -// export var [|x|] = 100; -// } -// -// module Beta { -// import p = Alpha./*GOTO DEF*/x; -// } -// -// var x = Alpha.x \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc deleted file mode 100644 index 711b5b0614..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /file.d.ts === -// namespace /*GOTO DEF*/[|Foo|] { -// -// -// -// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc deleted file mode 100644 index 019d208f03..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === goToDefinition === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { } -// interface ElementAttributesProperty { props; } -// } -// class [|MyClass|] { -// props: { -// foo: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 4) skipped --- -// } -// class MyClass { -// props: { -// [|foo|]: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; - - - -// === goToDefinition === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { } -// interface ElementAttributesProperty { props; } -// } -// class [|MyClass|] { -// props: { -// foo: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc deleted file mode 100644 index 5d4c9efa4e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === goToDefinition === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; -// var y = ; -// var z =
; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 4) skipped --- -// name?: string; -// isOpen?: boolean; -// }; -// [|span|]: { n: string; }; -// } -// } -// var x =
; -// var y = ; -// var z =
; - - - -// === goToDefinition === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// [|name|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x =
; -// var y = ; -// var z =
; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc deleted file mode 100644 index 49f1432f83..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc +++ /dev/null @@ -1,87 +0,0 @@ -// === goToDefinition === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// [|propx|]: number -// propString: "hell" -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 6) skipped --- -// interface OptionPropBag { -// propx: number -// propString: "hell" -// [|optional|]?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc deleted file mode 100644 index 86067d8aaf..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc +++ /dev/null @@ -1,104 +0,0 @@ -// === goToDefinition === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt =
; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt =
; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt =
{}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt =
{}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 14) skipped --- -// goTo: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt =
; -// let opt = ; - - - -// === goToDefinition === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt =
; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc deleted file mode 100644 index 4ed459649f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === goToDefinition === -// === /file.tsx === -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props; } -// } -// function [|SFC1|](prop: { x: number }) { -// return
hello
; -// }; -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var [|SFCComp|] = SFC1 || SFC2; -// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc deleted file mode 100644 index aea57bc6f9..0000000000 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /file.tsx === -// --- (line: 8) skipped --- -// } -// private method() { } -// } -// var [|RCComp|] = RC1 || RC2; -// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition.baseline.jsonc deleted file mode 100644 index 1ff73db085..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToType === -// === /goToTypeDefinition_Definition.ts === -// class [|C|] { -// p; -// } -// var c: C; - -// === /goToTypeDefinition_Consumption.ts === -// /*GOTO TYPE*/c = undefined; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition2.baseline.jsonc deleted file mode 100644 index beaf380dc5..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition2.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToType === -// === /goToTypeDefinition2_Definition.ts === -// interface [|I1|] { -// p; -// } -// type propertyType = I1; -// // --- (line: 5) skipped --- - -// === /goToTypeDefinition2_Consumption.ts === -// var i2: I2; -// i2.prop/*GOTO TYPE*/erty; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition3.baseline.jsonc deleted file mode 100644 index 6067823559..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition3.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToType === -// === /goToTypeDefinition3.ts === -// type [|T|] = string; -// const x: /*GOTO TYPE*/T; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition4.baseline.jsonc deleted file mode 100644 index 61504f639c..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition4.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToType === -// === /bar.ts === -// import { T } from "./foo"; -// let x: /*GOTO TYPE*/T; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition5.baseline.jsonc deleted file mode 100644 index 4f3d334efb..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition5.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToType === -// === /foo.ts === -// let Foo: unresolved; -// type Foo = { x: string }; -// /*GOTO TYPE*/Foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionAliases.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionAliases.baseline.jsonc deleted file mode 100644 index dd9f252f4b..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionAliases.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === goToType === -// === /goToTypeDefinitioAliases_module1.ts === -// interface [|I|] { -// p; -// } -// export {I as I2}; - -// === /goToTypeDefinitioAliases_module3.ts === -// import {/*GOTO TYPE*/v2 as v3} from "./goToTypeDefinitioAliases_module2"; -// v3; - - - -// === goToType === -// === /goToTypeDefinitioAliases_module1.ts === -// interface [|I|] { -// p; -// } -// export {I as I2}; - -// === /goToTypeDefinitioAliases_module3.ts === -// import {v2 as v3} from "./goToTypeDefinitioAliases_module2"; -// /*GOTO TYPE*/v3; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionEnumMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionEnumMembers.baseline.jsonc deleted file mode 100644 index 7e09546c95..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionEnumMembers.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToType === -// === /goToTypeDefinitionEnumMembers.ts === -// enum E { -// value1, -// [|value2|] -// } -// var x = E.value2; -// -// /*GOTO TYPE*/x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionImportMeta.baseline.jsonc deleted file mode 100644 index 11fd9f4d3d..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionImportMeta.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToType === -// === /bar.d.ts === -// interface [|ImportMeta|] { -// } - -// === /foo.ts === -// /// -// /// -// import.me/*GOTO TYPE*/ta; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModifiers.baseline.jsonc deleted file mode 100644 index c6416aa695..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModifiers.baseline.jsonc +++ /dev/null @@ -1,227 +0,0 @@ -// === goToType === -// === /a.ts === -// /*GOTO TYPE*/export class [|A|] { -// -// private z: string; -// -// // --- (line: 5) skipped --- - - - -// === goToType === -// === /a.ts === -// export class [|A|]/*GOTO TYPE*/ { -// -// private z: string; -// -// // --- (line: 5) skipped --- - - - -// === goToType === -// === /a.ts === -// export class A { -// -// /*GOTO TYPE*/private z: string; -// -// private y: A; -// -// // --- (line: 7) skipped --- - - - -// === goToType === -// === /a.ts === -// export class A { -// -// private z/*GOTO TYPE*/: string; -// -// private y: A; -// -// // --- (line: 7) skipped --- - - - -// === goToType === -// === /a.ts === -// export class [|A|] { -// -// private z: string; -// -// /*GOTO TYPE*/private y: A; -// -// readonly x: string; -// -// // --- (line: 9) skipped --- - - - -// === goToType === -// === /a.ts === -// export class [|A|] { -// -// private z: string; -// -// private y/*GOTO TYPE*/: A; -// -// readonly x: string; -// -// // --- (line: 9) skipped --- - - - -// === goToType === -// === /a.ts === -// --- (line: 3) skipped --- -// -// private y: A; -// -// /*GOTO TYPE*/readonly x: string; -// -// async a() { } -// -// // --- (line: 11) skipped --- - - - -// === goToType === -// === /a.ts === -// --- (line: 3) skipped --- -// -// private y: A; -// -// readonly x/*GOTO TYPE*/: string; -// -// async a() { } -// -// // --- (line: 11) skipped --- - - - -// === goToType === -// === /a.ts === -// --- (line: 5) skipped --- -// -// readonly x: string; -// -// /*GOTO TYPE*/async a() { } -// -// override b() {} -// -// // --- (line: 13) skipped --- - - - -// === goToType === -// === /a.ts === -// --- (line: 5) skipped --- -// -// readonly x: string; -// -// async a/*GOTO TYPE*/() { } -// -// override b() {} -// -// // --- (line: 13) skipped --- - - - -// === goToType === -// === /a.ts === -// --- (line: 7) skipped --- -// -// async a() { } -// -// /*GOTO TYPE*/override b() {} -// -// public async c() { } -// } -// -// export function foo() { } - - - -// === goToType === -// === /a.ts === -// --- (line: 7) skipped --- -// -// async a() { } -// -// override b/*GOTO TYPE*/() {} -// -// public async c() { } -// } -// -// export function foo() { } - - - -// === goToType === -// === /a.ts === -// --- (line: 9) skipped --- -// -// override b() {} -// -// /*GOTO TYPE*/public async c() { } -// } -// -// export function foo() { } - - - -// === goToType === -// === /a.ts === -// --- (line: 9) skipped --- -// -// override b() {} -// -// public/*GOTO TYPE*/ async c() { } -// } -// -// export function foo() { } - - - -// === goToType === -// === /a.ts === -// --- (line: 9) skipped --- -// -// override b() {} -// -// public as/*GOTO TYPE*/ync c() { } -// } -// -// export function foo() { } - - - -// === goToType === -// === /a.ts === -// --- (line: 9) skipped --- -// -// override b() {} -// -// public async c/*GOTO TYPE*/() { } -// } -// -// export function foo() { } - - - -// === goToType === -// === /a.ts === -// --- (line: 12) skipped --- -// public async c() { } -// } -// -// exp/*GOTO TYPE*/ort function foo() { } - - - -// === goToType === -// === /a.ts === -// --- (line: 12) skipped --- -// public async c() { } -// } -// -// export function foo/*GOTO TYPE*/() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModule.baseline.jsonc deleted file mode 100644 index e4615be10b..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModule.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === goToType === -// === /module1.ts === -// module [|M|] { -// export var p; -// } -// var m: typeof M; - -// === /module3.ts === -// /*GOTO TYPE*/M; -// m; - - - -// === goToType === -// === /module1.ts === -// module [|M|] { -// export var p; -// } -// var m: typeof M; - -// === /module3.ts === -// M; -// /*GOTO TYPE*/m; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionPrimitives.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionPrimitives.baseline.jsonc deleted file mode 100644 index 04785ee8ff..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionPrimitives.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === goToType === -// === /module2.ts === -// w./*GOTO TYPE*/a; -// x; -// y; -// y; - - - -// === goToType === -// === /module2.ts === -// w.a; -// /*GOTO TYPE*/x; -// y; -// y; - - - -// === goToType === -// === /module2.ts === -// w.a; -// x; -// /*GOTO TYPE*/y; -// y; - - - -// === goToType === -// === /module2.ts === -// w.a; -// x; -// y; -// /*GOTO TYPE*/y; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionUnionType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionUnionType.baseline.jsonc deleted file mode 100644 index b29b559356..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionUnionType.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToType === -// === /goToTypeDefinitionUnionType.ts === -// class [|C|] { -// p; -// } -// -// interface [|I|] { -// x; -// } -// -// module M { -// export interface [|I|] { -// y; -// } -// } -// -// var x: C | I | M.I; -// -// /*GOTO TYPE*/x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_Pick.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_Pick.baseline.jsonc deleted file mode 100644 index e15dcddec0..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_Pick.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToType === -// === /goToTypeDefinition_Pick.ts === -// type User = [|{ id: number; name: string; }|]; -// declare const user: Pick -// /*GOTO TYPE*/user -// -// type PickedUser = Pick -// declare const user2: PickedUser -// user2 - - - -// === goToType === -// === /goToTypeDefinition_Pick.ts === -// --- (line: 3) skipped --- -// -// type PickedUser = Pick -// declare const user2: PickedUser -// /*GOTO TYPE*/user2 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_arrayType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_arrayType.baseline.jsonc deleted file mode 100644 index e984cc5804..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_arrayType.baseline.jsonc +++ /dev/null @@ -1,37 +0,0 @@ -// === goToType === -// === /goToTypeDefinition_arrayType.ts === -// type User = [|{ name: string }|]; -// declare const users: User[] -// /*GOTO TYPE*/users -// -// type UsersArr = Array -// declare const users2: UsersArr -// // --- (line: 7) skipped --- - - - -// === goToType === -// === /goToTypeDefinition_arrayType.ts === -// type User = [|{ name: string }|]; -// declare const users: User[] -// users -// -// type UsersArr = Array -// declare const users2: UsersArr -// /*GOTO TYPE*/users2 -// -// class CustomArray extends Array { immutableReverse() { return [...this].reverse() } } -// declare const users3: CustomArray -// users3 - - - -// === goToType === -// === /goToTypeDefinition_arrayType.ts === -// --- (line: 5) skipped --- -// declare const users2: UsersArr -// users2 -// -// class [|CustomArray|] extends Array { immutableReverse() { return [...this].reverse() } } -// declare const users3: CustomArray -// /*GOTO TYPE*/users3 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_promiseType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_promiseType.baseline.jsonc deleted file mode 100644 index 18eae436c2..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_promiseType.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToType === -// === /goToTypeDefinition_promiseType.ts === -// type User = [|{ name: string }|]; -// async function /*GOTO TYPE*/getUser() { return { name: "Bob" } satisfies User as User } -// -// const promisedBob = getUser() -// -// export {} - - - -// === goToType === -// === /goToTypeDefinition_promiseType.ts === -// type User = [|{ name: string }|]; -// async function getUser() { return { name: "Bob" } satisfies User as User } -// -// const /*GOTO TYPE*/promisedBob = getUser() -// -// export {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_returnType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_returnType.baseline.jsonc deleted file mode 100644 index 33d20e328a..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_returnType.baseline.jsonc +++ /dev/null @@ -1,179 +0,0 @@ -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// interface [|I|] { x: number; } -// interface J { y: number; } -// -// function f0(): I { return { x: 0 }; } -// // --- (line: 5) skipped --- - -// --- (line: 21) skipped --- -// function f8(j: J): J; -// function f8(ij: any): any { return ij; } -// -// /*GOTO TYPE*/f0(); -// f1(); -// f2(); -// f3(); -// // --- (line: 29) skipped --- - - - -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// interface I { x: number; } -// interface J { y: number; } -// -// function f0(): I { return { x: 0 }; } -// -// type T = [|(i: I) => I|]; -// const f1: T = i => ({ x: i.x + 1 }); -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// // --- (line: 10) skipped --- - -// --- (line: 22) skipped --- -// function f8(ij: any): any { return ij; } -// -// f0(); -// /*GOTO TYPE*/f1(); -// f2(); -// f3(); -// f4(); -// // --- (line: 30) skipped --- - - - -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// interface [|I|] { x: number; } -// interface J { y: number; } -// -// function f0(): I { return { x: 0 }; } -// // --- (line: 5) skipped --- - -// --- (line: 23) skipped --- -// -// f0(); -// f1(); -// /*GOTO TYPE*/f2(); -// f3(); -// f4(); -// f5(); -// // --- (line: 31) skipped --- - - - -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// --- (line: 7) skipped --- -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ([|{ x: i.x + 1 }|]); -// -// const f4 = (i: I) => i; -// -// // --- (line: 15) skipped --- - -// --- (line: 24) skipped --- -// f0(); -// f1(); -// f2(); -// /*GOTO TYPE*/f3(); -// f4(); -// f5(); -// f6(); -// f7(); -// f8(); - - - -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// interface [|I|] { x: number; } -// interface J { y: number; } -// -// function f0(): I { return { x: 0 }; } -// // --- (line: 5) skipped --- - -// --- (line: 25) skipped --- -// f1(); -// f2(); -// f3(); -// /*GOTO TYPE*/f4(); -// f5(); -// f6(); -// f7(); -// f8(); - - - -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// interface [|I|] { x: number; } -// interface [|J|] { y: number; } -// -// function f0(): I { return { x: 0 }; } -// -// // --- (line: 6) skipped --- - -// --- (line: 26) skipped --- -// f2(); -// f3(); -// f4(); -// /*GOTO TYPE*/f5(); -// f6(); -// f7(); -// f8(); - - - -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// interface [|I|] { x: number; } -// interface [|J|] { y: number; } -// -// function f0(): I { return { x: 0 }; } -// -// // --- (line: 6) skipped --- - -// --- (line: 27) skipped --- -// f3(); -// f4(); -// f5(); -// /*GOTO TYPE*/f6(); -// f7(); -// f8(); - - - -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// --- (line: 28) skipped --- -// f4(); -// f5(); -// f6(); -// /*GOTO TYPE*/f7(); -// f8(); - - - -// === goToType === -// === /goToTypeDefinition_returnType.ts === -// --- (line: 17) skipped --- -// -// const f7 = (i: I) => {}; -// -// function [|f8|](i: I): I; -// function [|f8|](j: J): J; -// function [|f8|](ij: any): any { return ij; } -// -// f0(); -// f1(); -// f2(); -// f3(); -// f4(); -// f5(); -// f6(); -// f7(); -// /*GOTO TYPE*/f8(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typeReference.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typeReference.baseline.jsonc deleted file mode 100644 index b5a668654f..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typeReference.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToType === -// === /goToTypeDefinition_typeReference.ts === -// type User = { name: string }; -// type Box = [|{ value: T }|]; -// declare const boxedUser: Box -// /*GOTO TYPE*/boxedUser \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typedef.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typedef.baseline.jsonc deleted file mode 100644 index beeae33cc7..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typedef.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToType === -// === /a.js === -// /** -// * @typedef {object} I -// * [|@property {number} x -// |]*/ -// -// /** @type {I} */ -// const /*GOTO TYPE*/i = { x: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/typedefinition01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/typedefinition01.baseline.jsonc deleted file mode 100644 index 5803b2d492..0000000000 --- a/testdata/baselines/reference/fourslash/goToType/typedefinition01.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToType === -// === /a.ts === -// export class [|Foo|] {} - -// === /b.ts === -// import n = require('./a'); -// var x/*GOTO TYPE*/ = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline b/testdata/baselines/reference/fourslash/quickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline deleted file mode 100644 index 2d144531b1..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline +++ /dev/null @@ -1,124 +0,0 @@ -// === QuickInfo === -=== /completionDetailsOfContextSensitiveParameterNoCrash.ts === -// type __ = never; -// -// interface CurriedFunction1 { -// (): CurriedFunction1; -// (t1: T1): R; -// } -// interface CurriedFunction2 { -// (): CurriedFunction2; -// (t1: T1): CurriedFunction1; -// (t1: __, t2: T2): CurriedFunction1; -// (t1: T1, t2: T2): R; -// } -// -// interface CurriedFunction3 { -// (): CurriedFunction3; -// (t1: T1): CurriedFunction2; -// (t1: __, t2: T2): CurriedFunction2; -// (t1: T1, t2: T2): CurriedFunction1; -// (t1: __, t2: __, t3: T3): CurriedFunction2; -// (t1: T1, t2: __, t3: T3): CurriedFunction1; -// (t1: __, t2: T2, t3: T3): CurriedFunction1; -// (t1: T1, t2: T2, t3: T3): R; -// } -// -// interface CurriedFunction4 { -// (): CurriedFunction4; -// (t1: T1): CurriedFunction3; -// (t1: __, t2: T2): CurriedFunction3; -// (t1: T1, t2: T2): CurriedFunction2; -// (t1: __, t2: __, t3: T3): CurriedFunction3; -// (t1: __, t2: __, t3: T3): CurriedFunction2; -// (t1: __, t2: T2, t3: T3): CurriedFunction2; -// (t1: T1, t2: T2, t3: T3): CurriedFunction1; -// (t1: __, t2: __, t3: __, t4: T4): CurriedFunction3; -// (t1: T1, t2: __, t3: __, t4: T4): CurriedFunction2; -// (t1: __, t2: T2, t3: __, t4: T4): CurriedFunction2; -// (t1: __, t2: __, t3: T3, t4: T4): CurriedFunction2; -// (t1: T1, t2: T2, t3: __, t4: T4): CurriedFunction1; -// (t1: T1, t2: __, t3: T3, t4: T4): CurriedFunction1; -// (t1: __, t2: T2, t3: T3, t4: T4): CurriedFunction1; -// (t1: T1, t2: T2, t3: T3, t4: T4): R; -// } -// -// declare var curry: { -// (func: (t1: T1) => R, arity?: number): CurriedFunction1; -// (func: (t1: T1, t2: T2) => R, arity?: number): CurriedFunction2; -// (func: (t1: T1, t2: T2, t3: T3) => R, arity?: number): CurriedFunction3; -// (func: (t1: T1, t2: T2, t3: T3, t4: T4) => R, arity?: number): CurriedFunction4; -// (func: (...args: any[]) => any, arity?: number): (...args: any[]) => any; -// placeholder: __; -// }; -// -// export type StylingFunction = ( -// keys: (string | false | undefined) | (string | false | undefined)[], -// ...rest: unknown[] -// ) => object; -// -// declare const getStylingByKeys: ( -// mergedStyling: object, -// keys: (string | false | undefined) | (string | false | undefined)[], -// ...args: unknown[] -// ) => object; -// -// declare var mergedStyling: object; -// -// export const createStyling: CurriedFunction3< -// (base16Theme: object) => unknown, -// object | undefined, -// object | undefined, -// StylingFunction -// > = curry< -// (base16Theme: object) => unknown, -// object | undefined, -// object | undefined, -// StylingFunction -// >( -// ( -// getStylingFromBase16: (base16Theme: object) => unknown, -// options: object = {}, -// themeOrStyling: object = {}, -// ...args -// ): StylingFunction => { -// return curry(getStylingByKeys, 2)(mergedStyling, ...args); -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) args: [] -// | ``` -// | -// | ---------------------------------------------------------------------- -// }, -// 3 -// ); -[ - { - "marker": { - "Position": 3101, - "LSPosition": { - "line": 82, - "character": 60 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) args: []\n```\n" - }, - "range": { - "start": { - "line": 82, - "character": 60 - }, - "end": { - "line": 82, - "character": 64 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/deprecatedInheritedJSDocOverload.baseline b/testdata/baselines/reference/fourslash/quickInfo/deprecatedInheritedJSDocOverload.baseline deleted file mode 100644 index 97bb4d0a90..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/deprecatedInheritedJSDocOverload.baseline +++ /dev/null @@ -1,63 +0,0 @@ -// === QuickInfo === -=== /deprecatedInheritedJSDocOverload.ts === -// interface PartialObserver {} -// interface Subscription {} -// interface Unsubscribable {} -// -// export interface Subscribable { -// subscribe(observer?: PartialObserver): Unsubscribable; -// /** @deprecated Base deprecation 1 */ -// subscribe(next: null | undefined, error: null | undefined, complete: () => void): Unsubscribable; -// /** @deprecated Base deprecation 2 */ -// subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Unsubscribable; -// /** @deprecated Base deprecation 3 */ -// subscribe(next: (value: T) => void, error: null | undefined, complete: () => void): Unsubscribable; -// subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Unsubscribable; -// } -// interface ThingWithDeprecations extends Subscribable { -// subscribe(observer?: PartialObserver): Subscription; -// /** @deprecated 'real' deprecation */ -// subscribe(next: null | undefined, error: null | undefined, complete: () => void): Subscription; -// /** @deprecated 'real' deprecation */ -// subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Subscription; -// } -// declare const a: ThingWithDeprecations -// a.subscribe(() => { -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) ThingWithDeprecations.subscribe(observer?: PartialObserver): Subscription -// | ``` -// | -// | ---------------------------------------------------------------------- -// console.log('something happened'); -// }); -[ - { - "marker": { - "Position": 1183, - "LSPosition": { - "line": 22, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) ThingWithDeprecations.subscribe(observer?: PartialObserver): Subscription\n```\n" - }, - "range": { - "start": { - "line": 22, - "character": 2 - }, - "end": { - "line": 22, - "character": 11 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsDocAliasQuickInfo.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsDocAliasQuickInfo.baseline deleted file mode 100644 index 9ab690fbec..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsDocAliasQuickInfo.baseline +++ /dev/null @@ -1,61 +0,0 @@ -// === QuickInfo === -=== /jsDocAliasQuickInfo.ts === -// /** -// * Comment -// * @type {number} -// */ -// export default 10; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -=== /test.ts === -// export { default as test } from "./jsDocAliasQuickInfo"; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- - - -[ - { - "marker": { - "Position": 44, - "LSPosition": { - "line": 4, - "character": 7 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 20, - "LSPosition": { - "line": 0, - "character": 20 - }, - "Name": "3", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo1.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo1.baseline deleted file mode 100644 index fac037faa7..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo1.baseline +++ /dev/null @@ -1,472 +0,0 @@ -// === QuickInfo === -=== /jsDocTypeTag1.js === -// /** @type {String} */ -// var S; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var S: String -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Number} */ -// var N; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var N: Number -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Boolean} */ -// var B; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var B: Boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Void} */ -// var V; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var V: Void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Undefined} */ -// var U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var U: Undefined -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Null} */ -// var Nl; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var Nl: Null -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Array} */ -// var A; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var A: any[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Promise} */ -// var P; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var P: Promise -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Object} */ -// var Obj; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var Obj: Object -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Function} */ -// var Func; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var Func: Function -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {*} */ -// var AnyType; -// ^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var AnyType: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {?} */ -// var QType; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var QType: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {String|Number} */ -// var SOrN; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var SOrN: Number | String -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar S: String\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 55, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar N: Number\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 85, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar B: Boolean\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 112, - "LSPosition": { - "line": 7, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar V: Void\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 144, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar U: Undefined\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 171, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar Nl: Null\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 200, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar A: any[]\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 4 - }, - "end": { - "line": 13, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 230, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar P: Promise\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 4 - }, - "end": { - "line": 15, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 259, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar Obj: Object\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 4 - }, - "end": { - "line": 17, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 292, - "LSPosition": { - "line": 19, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar Func: Function\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 4 - }, - "end": { - "line": 19, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 319, - "LSPosition": { - "line": 21, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar AnyType: any\n```\n" - }, - "range": { - "start": { - "line": 21, - "character": 4 - }, - "end": { - "line": 21, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 349, - "LSPosition": { - "line": 23, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar QType: any\n```\n" - }, - "range": { - "start": { - "line": 23, - "character": 4 - }, - "end": { - "line": 23, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 389, - "LSPosition": { - "line": 25, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar SOrN: Number | String\n```\n" - }, - "range": { - "start": { - "line": 25, - "character": 4 - }, - "end": { - "line": 25, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo2.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo2.baseline deleted file mode 100644 index 63dfbe3024..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo2.baseline +++ /dev/null @@ -1,436 +0,0 @@ -// === QuickInfo === -=== /jsDocTypeTag2.js === -// /** @type {string} */ -// var s; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var s: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {number} */ -// var n; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var n: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {boolean} */ -// var b; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {void} */ -// var v; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var v: void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {undefined} */ -// var u; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var u: undefined -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {null} */ -// var nl; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var nl: null -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {array} */ -// var a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: array -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {promise} */ -// var p; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var p: promise -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {?number} */ -// var nullable; -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var nullable: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {function} */ -// var func; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var func: function -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {function (number): number} */ -// var func1; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var func1: function -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {string | number} */ -// var sOrn; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var sOrn: string | number -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar s: string\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 55, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar n: number\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 85, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: boolean\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 112, - "LSPosition": { - "line": 7, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar v: void\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 144, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar u: undefined\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 171, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar nl: null\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 200, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: array\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 4 - }, - "end": { - "line": 13, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 230, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar p: promise\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 4 - }, - "end": { - "line": 15, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 260, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar nullable: number\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 4 - }, - "end": { - "line": 17, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 298, - "LSPosition": { - "line": 19, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar func: function\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 4 - }, - "end": { - "line": 19, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 349, - "LSPosition": { - "line": 21, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar func1: function\n```\n" - }, - "range": { - "start": { - "line": 21, - "character": 4 - }, - "end": { - "line": 21, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 391, - "LSPosition": { - "line": 23, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar sOrn: string | number\n```\n" - }, - "range": { - "start": { - "line": 23, - "character": 4 - }, - "end": { - "line": 23, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypedefQuickInfo1.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypedefQuickInfo1.baseline deleted file mode 100644 index 8b042665a2..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypedefQuickInfo1.baseline +++ /dev/null @@ -1,98 +0,0 @@ -// === QuickInfo === -=== /jsDocTypedef1.js === -// /** -// * @typedef {Object} Opts -// * @property {string} x -// * @property {string=} y -// * @property {string} [z] -// * @property {string} [w="hi"] -// * -// * @param {Opts} opts -// */ -// function foo(opts) { -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) opts: Opts -// | ``` -// | -// | ---------------------------------------------------------------------- -// opts.x; -// } -// foo({x: 'abc'}); -// /** -// * @typedef {object} Opts1 -// * @property {string} x -// * @property {string=} y -// * @property {string} [z] -// * @property {string} [w="hi"] -// * -// * @param {Opts1} opts -// */ -// function foo1(opts1) { -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) opts1: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// opts1.x; -// } -// foo1({x: 'abc'}); -[ - { - "marker": { - "Position": 179, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) opts: Opts\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 13 - }, - "end": { - "line": 9, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 400, - "LSPosition": { - "line": 22, - "character": 14 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) opts1: any\n```\n" - }, - "range": { - "start": { - "line": 22, - "character": 14 - }, - "end": { - "line": 22, - "character": 19 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink1.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink1.baseline deleted file mode 100644 index 937f3ce849..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink1.baseline +++ /dev/null @@ -1,58 +0,0 @@ -// === QuickInfo === -=== /jsdocLink1.ts === -// class C { -// } -// /** -// * {@link C} -// * @wat Makes a {@link C}. A default one. -// * {@link C()} -// * {@link C|postfix text} -// * {@link unformatted postfix text} -// * @see {@link C} its great -// */ -// function CC() { -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function CC(): void -// | ``` -// | [C](file:///jsdocLink1.ts#1,7-1,8) -// | -// | *@wat* — Makes a [C](file:///jsdocLink1.ts#1,7-1,8). A default one. -// | [C()](file:///jsdocLink1.ts#1,7-1,8) -// | [postfix text](file:///jsdocLink1.ts#1,7-1,8) -// | unformatted postfix text -// | -// | *@see* — [C](file:///jsdocLink1.ts#1,7-1,8) its great -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 189, - "LSPosition": { - "line": 10, - "character": 9 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction CC(): void\n```\n[C](file:///jsdocLink1.ts#1,7-1,8)\n\n*@wat* — Makes a [C](file:///jsdocLink1.ts#1,7-1,8). A default one.\n[C()](file:///jsdocLink1.ts#1,7-1,8)\n[postfix text](file:///jsdocLink1.ts#1,7-1,8)\nunformatted postfix text\n\n*@see* — [C](file:///jsdocLink1.ts#1,7-1,8) its great\n" - }, - "range": { - "start": { - "line": 10, - "character": 9 - }, - "end": { - "line": 10, - "character": 11 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink4.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink4.baseline deleted file mode 100644 index 51098f908d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink4.baseline +++ /dev/null @@ -1,122 +0,0 @@ -// === QuickInfo === -=== /jsdocLink4.ts === -// declare class I { -// /** {@link I} */ -// bar(): void -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.bar(): void -// | ``` -// | [I](file:///jsdocLink4.ts#1,15-1,16) -// | ---------------------------------------------------------------------- -// } -// /** {@link I} */ -// var n = 1 -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var n: number -// | ``` -// | [I](file:///jsdocLink4.ts#1,15-1,16) -// | ---------------------------------------------------------------------- -// /** -// * A real, very serious {@link I to an interface}. Right there. -// * @param x one {@link Pos here too} -// */ -// function f(x) { -// } -// f() -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(x: any): void -// | ``` -// | A real, very serious [to an interface](file:///jsdocLink4.ts#1,15-1,16). Right there. -// | -// | *@param* `x` — one [here too](file:///jsdocLink4.ts#14,6-14,9) -// | ---------------------------------------------------------------------- -// type Pos = [number, number] -[ - { - "marker": { - "Position": 42, - "LSPosition": { - "line": 2, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.bar(): void\n```\n[I](file:///jsdocLink4.ts#1,15-1,16)" - }, - "range": { - "start": { - "line": 2, - "character": 2 - }, - "end": { - "line": 2, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 5, - "character": 5 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar n: number\n```\n[I](file:///jsdocLink4.ts#1,15-1,16)" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 208, - "LSPosition": { - "line": 12, - "character": 1 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(x: any): void\n```\nA real, very serious [to an interface](file:///jsdocLink4.ts#1,15-1,16). Right there.\n\n*@param* `x` — one [here too](file:///jsdocLink4.ts#14,6-14,9)" - }, - "range": { - "start": { - "line": 12, - "character": 0 - }, - "end": { - "line": 12, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink5.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink5.baseline deleted file mode 100644 index 3ce31de673..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink5.baseline +++ /dev/null @@ -1,47 +0,0 @@ -// === QuickInfo === -=== /jsdocLink5.ts === -// function g() { } -// /** -// * {@link g()} {@link g() } {@link g ()} {@link g () 0} {@link g()1} {@link g() 2} -// * {@link u()} {@link u() } {@link u ()} {@link u () 0} {@link u()1} {@link u() 2} -// */ -// function f(x) { -// } -// f() -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(x: any): void -// | ``` -// | [g()](file:///jsdocLink5.ts#1,10-1,11) [g()](file:///jsdocLink5.ts#1,10-1,11) [g()](file:///jsdocLink5.ts#1,10-1,11) [0](file:///jsdocLink5.ts#1,10-1,11) [1](file:///jsdocLink5.ts#1,10-1,11) [2](file:///jsdocLink5.ts#1,10-1,11) -// | u () u () u () u () 0 u ()1 u () 2 -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 210, - "LSPosition": { - "line": 7, - "character": 1 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(x: any): void\n```\n[g()](file:///jsdocLink5.ts#1,10-1,11) [g()](file:///jsdocLink5.ts#1,10-1,11) [g()](file:///jsdocLink5.ts#1,10-1,11) [0](file:///jsdocLink5.ts#1,10-1,11) [1](file:///jsdocLink5.ts#1,10-1,11) [2](file:///jsdocLink5.ts#1,10-1,11)\nu () u () u () u () 0 u ()1 u () 2" - }, - "range": { - "start": { - "line": 7, - "character": 0 - }, - "end": { - "line": 7, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers1.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers1.baseline deleted file mode 100644 index 2d56b118e9..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers1.baseline +++ /dev/null @@ -1,51 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** @template T */ -// class A { -// /** Method documentation. */ -// method() {} -// } -// -// /** @extends {A} */ -// class B extends A { -// method() {} -// } -// -// const b = new B(); -// b.method; -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.method(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 175, - "LSPosition": { - "line": 12, - "character": 8 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.method(): void\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 2 - }, - "end": { - "line": 12, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers2.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers2.baseline deleted file mode 100644 index ace63d1caa..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers2.baseline +++ /dev/null @@ -1,51 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** @template T */ -// class A { -// /** Method documentation. */ -// method() {} -// } -// -// /** @extends {A} */ -// const B = class extends A { -// method() {} -// } -// -// const b = new B(); -// b.method; -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.method(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 183, - "LSPosition": { - "line": 12, - "character": 8 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.method(): void\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 2 - }, - "end": { - "line": 12, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline deleted file mode 100644 index 2c560a24b2..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline +++ /dev/null @@ -1,104 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassDefaultNamed.ts === -// export default class C { -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class C -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*5*/. -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 0, - "LSPosition": { - "line": 0, - "character": 0 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 7, - "LSPosition": { - "line": 0, - "character": 7 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 15, - "LSPosition": { - "line": 0, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 0, - "character": 21 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass C\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 21 - }, - "end": { - "line": 0, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 23, - "LSPosition": { - "line": 0, - "character": 23 - }, - "Name": "5", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsConst.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsConst.baseline deleted file mode 100644 index 4b083289a8..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsConst.baseline +++ /dev/null @@ -1,569 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsConst.ts === -// const a = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const a: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo() { -// const b = a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const b: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const a: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// if (b) { -// const b1 = 10; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const b1: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// module m { -// const c = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const c: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// export const d = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const d: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// if (c) { -// const e = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const e: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// const f: () => number = () => 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// const g = f; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const g: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// f(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// const h: { (a: string): number; (a: number): string; } = a => a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// const i = h; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const i: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst a: 10\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 6 - }, - "end": { - "line": 0, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 2, - "character": 10 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst b: 10\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 10 - }, - "end": { - "line": 2, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 45, - "LSPosition": { - "line": 2, - "character": 14 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst a: 10\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 14 - }, - "end": { - "line": 2, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 4, - "character": 14 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst b1: 10\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 14 - }, - "end": { - "line": 4, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 113, - "LSPosition": { - "line": 8, - "character": 10 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst c: 10\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 10 - }, - "end": { - "line": 8, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 9, - "character": 17 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst d: 10\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 17 - }, - "end": { - "line": 9, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 173, - "LSPosition": { - "line": 11, - "character": 14 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst e: 10\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 14 - }, - "end": { - "line": 11, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 195, - "LSPosition": { - "line": 14, - "character": 6 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst f: () => number\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 6 - }, - "end": { - "line": 14, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 229, - "LSPosition": { - "line": 15, - "character": 6 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst g: () => number\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 6 - }, - "end": { - "line": 15, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 233, - "LSPosition": { - "line": 15, - "character": 10 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst f: () => number\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 10 - }, - "end": { - "line": 15, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 236, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst f: () => number\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 0 - }, - "end": { - "line": 16, - "character": 1 - } - } - } - }, - { - "marker": { - "Position": 247, - "LSPosition": { - "line": 17, - "character": 6 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 6 - }, - "end": { - "line": 17, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 312, - "LSPosition": { - "line": 18, - "character": 6 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst i: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 18, - "character": 6 - }, - "end": { - "line": 18, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 316, - "LSPosition": { - "line": 18, - "character": 10 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 18, - "character": 10 - }, - "end": { - "line": 18, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 319, - "LSPosition": { - "line": 19, - "character": 0 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 0 - }, - "end": { - "line": 19, - "character": 1 - } - } - } - }, - { - "marker": { - "Position": 326, - "LSPosition": { - "line": 20, - "character": 0 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 20, - "character": 0 - }, - "end": { - "line": 20, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum1.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum1.baseline deleted file mode 100644 index b52bd6268b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum1.baseline +++ /dev/null @@ -1,1042 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsEnum1.ts === -// enum E { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// e1, -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// e2 = 10, -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// e3 -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance: E; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e1; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e2; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e3; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// const enum constE { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// e1, -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// e2 = 10, -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// e3 -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance1: constE; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e1; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e2; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e3; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 5, - "LSPosition": { - "line": 0, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 5 - }, - "end": { - "line": 0, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 13, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 34, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 43, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 54, - "LSPosition": { - "line": 5, - "character": 15 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 15 - }, - "end": { - "line": 5, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 57, - "LSPosition": { - "line": 6, - "character": 0 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 0 - }, - "end": { - "line": 6, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 69, - "LSPosition": { - "line": 6, - "character": 12 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 12 - }, - "end": { - "line": 6, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 71, - "LSPosition": { - "line": 6, - "character": 14 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 14 - }, - "end": { - "line": 6, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 0 - }, - "end": { - "line": 7, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 87, - "LSPosition": { - "line": 7, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 12 - }, - "end": { - "line": 7, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 89, - "LSPosition": { - "line": 7, - "character": 14 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 14 - }, - "end": { - "line": 7, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 93, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 0 - }, - "end": { - "line": 8, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 8, - "character": 12 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 12 - }, - "end": { - "line": 8, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 107, - "LSPosition": { - "line": 8, - "character": 14 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 14 - }, - "end": { - "line": 8, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 122, - "LSPosition": { - "line": 9, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 11 - }, - "end": { - "line": 9, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 135, - "LSPosition": { - "line": 10, - "character": 4 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 4 - }, - "end": { - "line": 10, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 143, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 156, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 4 - }, - "end": { - "line": 12, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 165, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 177, - "LSPosition": { - "line": 14, - "character": 16 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 16 - }, - "end": { - "line": 14, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 185, - "LSPosition": { - "line": 15, - "character": 0 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 0 - }, - "end": { - "line": 15, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 198, - "LSPosition": { - "line": 15, - "character": 13 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 13 - }, - "end": { - "line": 15, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 205, - "LSPosition": { - "line": 15, - "character": 20 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 20 - }, - "end": { - "line": 15, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 209, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 0 - }, - "end": { - "line": 16, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 222, - "LSPosition": { - "line": 16, - "character": 13 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 13 - }, - "end": { - "line": 16, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 229, - "LSPosition": { - "line": 16, - "character": 20 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 20 - }, - "end": { - "line": 16, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 233, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 0 - }, - "end": { - "line": 17, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 246, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 13 - }, - "end": { - "line": 17, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 253, - "LSPosition": { - "line": 17, - "character": 20 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 20 - }, - "end": { - "line": 17, - "character": 22 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum2.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum2.baseline deleted file mode 100644 index 5568fe4340..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum2.baseline +++ /dev/null @@ -1,1042 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsEnum2.ts === -// enum E { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e1", -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// 'e2' = 10, -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e3" -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance: E; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e1; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e2; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e3; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// const enum constE { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e1", -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// 'e2' = 10, -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e3" -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance1: constE; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e1; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e2; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e3; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 5, - "LSPosition": { - "line": 0, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 5 - }, - "end": { - "line": 0, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 13, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 5 - }, - "end": { - "line": 1, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 23, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 5 - }, - "end": { - "line": 2, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 38, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 5 - }, - "end": { - "line": 3, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 49, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 60, - "LSPosition": { - "line": 5, - "character": 15 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 15 - }, - "end": { - "line": 5, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 6, - "character": 0 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 0 - }, - "end": { - "line": 6, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 6, - "character": 12 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 12 - }, - "end": { - "line": 6, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 6, - "character": 14 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 14 - }, - "end": { - "line": 6, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 81, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 0 - }, - "end": { - "line": 7, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 93, - "LSPosition": { - "line": 7, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 12 - }, - "end": { - "line": 7, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 95, - "LSPosition": { - "line": 7, - "character": 14 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 14 - }, - "end": { - "line": 7, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 99, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 0 - }, - "end": { - "line": 8, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 111, - "LSPosition": { - "line": 8, - "character": 12 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 12 - }, - "end": { - "line": 8, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 113, - "LSPosition": { - "line": 8, - "character": 14 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 14 - }, - "end": { - "line": 8, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 128, - "LSPosition": { - "line": 9, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 11 - }, - "end": { - "line": 9, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 141, - "LSPosition": { - "line": 10, - "character": 4 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 5 - }, - "end": { - "line": 10, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 151, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 5 - }, - "end": { - "line": 11, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 166, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 5 - }, - "end": { - "line": 12, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 177, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 189, - "LSPosition": { - "line": 14, - "character": 16 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 16 - }, - "end": { - "line": 14, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 197, - "LSPosition": { - "line": 15, - "character": 0 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 0 - }, - "end": { - "line": 15, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 210, - "LSPosition": { - "line": 15, - "character": 13 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 13 - }, - "end": { - "line": 15, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 217, - "LSPosition": { - "line": 15, - "character": 20 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 20 - }, - "end": { - "line": 15, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 221, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 0 - }, - "end": { - "line": 16, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 234, - "LSPosition": { - "line": 16, - "character": 13 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 13 - }, - "end": { - "line": 16, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 241, - "LSPosition": { - "line": 16, - "character": 20 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 20 - }, - "end": { - "line": 16, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 245, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 0 - }, - "end": { - "line": 17, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 258, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 13 - }, - "end": { - "line": 17, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 265, - "LSPosition": { - "line": 17, - "character": 20 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 20 - }, - "end": { - "line": 17, - "character": 22 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum3.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum3.baseline deleted file mode 100644 index 75e16bd456..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum3.baseline +++ /dev/null @@ -1,1042 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsEnum3.ts === -// enum E { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e1", -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// 'e2' = 10, -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e3" -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance: E; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E["e1"]; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E["e2"]; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E['e3']; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// const enum constE { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e1", -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// 'e2' = 10, -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e3" -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance1: constE; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE["e1"]; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE["e2"]; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE['e3']; -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 5, - "LSPosition": { - "line": 0, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 5 - }, - "end": { - "line": 0, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 13, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 5 - }, - "end": { - "line": 1, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 23, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 5 - }, - "end": { - "line": 2, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 38, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 5 - }, - "end": { - "line": 3, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 49, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 60, - "LSPosition": { - "line": 5, - "character": 15 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 15 - }, - "end": { - "line": 5, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 6, - "character": 0 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 0 - }, - "end": { - "line": 6, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 6, - "character": 12 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 12 - }, - "end": { - "line": 6, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 6, - "character": 14 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 15 - }, - "end": { - "line": 6, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 84, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 0 - }, - "end": { - "line": 7, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 96, - "LSPosition": { - "line": 7, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 12 - }, - "end": { - "line": 7, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 98, - "LSPosition": { - "line": 7, - "character": 14 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 15 - }, - "end": { - "line": 7, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 0 - }, - "end": { - "line": 8, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 117, - "LSPosition": { - "line": 8, - "character": 12 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 12 - }, - "end": { - "line": 8, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 119, - "LSPosition": { - "line": 8, - "character": 14 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 15 - }, - "end": { - "line": 8, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 137, - "LSPosition": { - "line": 9, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 11 - }, - "end": { - "line": 9, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 150, - "LSPosition": { - "line": 10, - "character": 4 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 5 - }, - "end": { - "line": 10, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 160, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 5 - }, - "end": { - "line": 11, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 175, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 5 - }, - "end": { - "line": 12, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 186, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 198, - "LSPosition": { - "line": 14, - "character": 16 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 16 - }, - "end": { - "line": 14, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 206, - "LSPosition": { - "line": 15, - "character": 0 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 0 - }, - "end": { - "line": 15, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 219, - "LSPosition": { - "line": 15, - "character": 13 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 13 - }, - "end": { - "line": 15, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 226, - "LSPosition": { - "line": 15, - "character": 20 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 21 - }, - "end": { - "line": 15, - "character": 23 - } - } - } - }, - { - "marker": { - "Position": 233, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 0 - }, - "end": { - "line": 16, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 246, - "LSPosition": { - "line": 16, - "character": 13 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 13 - }, - "end": { - "line": 16, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 253, - "LSPosition": { - "line": 16, - "character": 20 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 21 - }, - "end": { - "line": 16, - "character": 23 - } - } - } - }, - { - "marker": { - "Position": 260, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 0 - }, - "end": { - "line": 17, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 273, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 13 - }, - "end": { - "line": 17, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 280, - "LSPosition": { - "line": 17, - "character": 20 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 21 - }, - "end": { - "line": 17, - "character": 23 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum4.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum4.baseline deleted file mode 100644 index c9898f8af5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum4.baseline +++ /dev/null @@ -1,78 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsEnum4.ts === -// const enum Foo { -// "\t" = 9, -// "\u007f" = 127, -// } -// Foo["\t"] -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) typeof Foo["\t"] = 9 -// | ``` -// | -// | ---------------------------------------------------------------------- -// Foo["\u007f"] -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) typeof Foo[""] = 127 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 51, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) typeof Foo[\"\\t\"] = 9\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 5 - }, - "end": { - "line": 4, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 61, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) typeof Foo[\"\"] = 127\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 5 - }, - "end": { - "line": 5, - "character": 11 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline deleted file mode 100644 index 6876a51533..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline +++ /dev/null @@ -1,104 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsExternalModuleAlias_file1.ts === -// import a1 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*mod1*/. -// | ---------------------------------------------------------------------- -// new a1.m1.c(); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// export import a2 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*mod2*/. -// | ---------------------------------------------------------------------- -// new a2.m1.c(); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*4*/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 7, - "LSPosition": { - "line": 0, - "character": 7 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 20, - "LSPosition": { - "line": 0, - "character": 20 - }, - "Name": "mod1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 102, - "LSPosition": { - "line": 2, - "character": 14 - }, - "Name": "3", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 115, - "LSPosition": { - "line": 2, - "character": 27 - }, - "Name": "mod2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 172, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModules.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModules.baseline deleted file mode 100644 index 9476c1e290..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModules.baseline +++ /dev/null @@ -1,576 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsExternalModules.ts === -// export namespace m { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// var namespaceElemWithoutExport = 10; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithoutExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var namespaceElemWithExport = 10; -// ^^^^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// export var a = m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: typeof m -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var b: typeof m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: typeof m -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// export namespace m1.m2 { -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*9*/. -// | ---------------------------------------------------------------------- -// var namespaceElemWithoutExport = 10; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithoutExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var namespaceElemWithExport = 10; -// ^^^^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// export var x = m1.m2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: typeof m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var y: typeof m1.m2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var y: typeof m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 0, - "character": 17 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 17 - }, - "end": { - "line": 0, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 8 - }, - "end": { - "line": 1, - "character": 34 - } - } - } - }, - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 2, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 15 - }, - "end": { - "line": 2, - "character": 38 - } - } - } - }, - { - "marker": { - "Position": 120, - "LSPosition": { - "line": 4, - "character": 11 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: typeof m\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 11 - }, - "end": { - "line": 4, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 124, - "LSPosition": { - "line": 4, - "character": 15 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 15 - }, - "end": { - "line": 4, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 5, - "character": 11 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: typeof m\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 11 - }, - "end": { - "line": 5, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 148, - "LSPosition": { - "line": 5, - "character": 21 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 21 - }, - "end": { - "line": 5, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 168, - "LSPosition": { - "line": 6, - "character": 17 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 17 - }, - "end": { - "line": 6, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 171, - "LSPosition": { - "line": 6, - "character": 20 - }, - "Name": "9", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 184, - "LSPosition": { - "line": 7, - "character": 8 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 8 - }, - "end": { - "line": 7, - "character": 34 - } - } - } - }, - { - "marker": { - "Position": 232, - "LSPosition": { - "line": 8, - "character": 15 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 15 - }, - "end": { - "line": 8, - "character": 38 - } - } - } - }, - { - "marker": { - "Position": 275, - "LSPosition": { - "line": 10, - "character": 11 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: typeof m1.m2\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 11 - }, - "end": { - "line": 10, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 279, - "LSPosition": { - "line": 10, - "character": 15 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 15 - }, - "end": { - "line": 10, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 282, - "LSPosition": { - "line": 10, - "character": 18 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1.m2\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 18 - }, - "end": { - "line": 10, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 297, - "LSPosition": { - "line": 11, - "character": 11 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar y: typeof m1.m2\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 11 - }, - "end": { - "line": 11, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 307, - "LSPosition": { - "line": 11, - "character": 21 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 21 - }, - "end": { - "line": 11, - "character": 23 - } - } - } - }, - { - "marker": { - "Position": 310, - "LSPosition": { - "line": 11, - "character": 24 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1.m2\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 24 - }, - "end": { - "line": 11, - "character": 26 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunction.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunction.baseline deleted file mode 100644 index 973cdbfad4..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunction.baseline +++ /dev/null @@ -1,510 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsFunction.ts === -// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// function foowithoverload(a: string): string; -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowithoverload(a: number): number; -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowithoverload(a: any): any { -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// } -// function foowith3overload(a: string): string; -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: number): number; -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: boolean): boolean; -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: any): any { -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// } -// foo("hello"); -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowithoverload("hello"); -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowithoverload(10); -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload("hello"); -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload(10); -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload(true); -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 9 - }, - "end": { - "line": 0, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 121, - "LSPosition": { - "line": 2, - "character": 9 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 9 - }, - "end": { - "line": 2, - "character": 24 - } - } - } - }, - { - "marker": { - "Position": 166, - "LSPosition": { - "line": 3, - "character": 9 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 9 - }, - "end": { - "line": 3, - "character": 24 - } - } - } - }, - { - "marker": { - "Position": 211, - "LSPosition": { - "line": 4, - "character": 9 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 9 - }, - "end": { - "line": 4, - "character": 24 - } - } - } - }, - { - "marker": { - "Position": 267, - "LSPosition": { - "line": 7, - "character": 9 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 9 - }, - "end": { - "line": 7, - "character": 25 - } - } - } - }, - { - "marker": { - "Position": 313, - "LSPosition": { - "line": 8, - "character": 9 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 9 - }, - "end": { - "line": 8, - "character": 25 - } - } - } - }, - { - "marker": { - "Position": 359, - "LSPosition": { - "line": 9, - "character": 9 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 9 - }, - "end": { - "line": 9, - "character": 25 - } - } - } - }, - { - "marker": { - "Position": 407, - "LSPosition": { - "line": 10, - "character": 9 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 9 - }, - "end": { - "line": 10, - "character": 25 - } - } - } - }, - { - "marker": { - "Position": 455, - "LSPosition": { - "line": 13, - "character": 0 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 0 - }, - "end": { - "line": 13, - "character": 3 - } - } - } - }, - { - "marker": { - "Position": 469, - "LSPosition": { - "line": 14, - "character": 0 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 0 - }, - "end": { - "line": 14, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 495, - "LSPosition": { - "line": 15, - "character": 0 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 0 - }, - "end": { - "line": 15, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 516, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 0 - }, - "end": { - "line": 16, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 543, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 0 - }, - "end": { - "line": 17, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 565, - "LSPosition": { - "line": 18, - "character": 0 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 18, - "character": 0 - }, - "end": { - "line": 18, - "character": 16 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionExpression.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionExpression.baseline deleted file mode 100644 index 045d231bb1..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionExpression.baseline +++ /dev/null @@ -1,216 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsFunctionExpression.ts === -// var x = function foo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: () => void -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo(); -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// }; -// var y = function () { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var y: () => void -// | ``` -// | -// | ---------------------------------------------------------------------- -// }; -// (function foo1() { -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo1(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo1(); -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo1(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// })(); -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: () => void\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 4 - }, - "end": { - "line": 0, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 0, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 17 - }, - "end": { - "line": 0, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 43, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar y: () => void\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 74, - "LSPosition": { - "line": 5, - "character": 10 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo1(): void\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 10 - }, - "end": { - "line": 5, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 87, - "LSPosition": { - "line": 6, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo1(): void\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 4 - }, - "end": { - "line": 6, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline deleted file mode 100644 index 4fdac11c6d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline +++ /dev/null @@ -1,72 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsFunctionIncomplete.ts === -// function (param: string) { -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// }\ -// function { -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*4*/. -// | ---------------------------------------------------------------------- -// }\ -[ - { - "marker": { - "Position": 0, - "LSPosition": { - "line": 0, - "character": 0 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 30, - "LSPosition": { - "line": 2, - "character": 0 - }, - "Name": "3", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 39, - "LSPosition": { - "line": 2, - "character": 9 - }, - "Name": "4", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterface.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterface.baseline deleted file mode 100644 index 5ba9dea299..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterface.baseline +++ /dev/null @@ -1,109 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsInterface.ts === -// interface i { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface i -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var iInstance: i; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: i -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface i -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 10, - "LSPosition": { - "line": 0, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface i\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 10 - }, - "end": { - "line": 0, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 20, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: i\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 31, - "LSPosition": { - "line": 2, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface i\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 15 - }, - "end": { - "line": 2, - "character": 16 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterfaceMembers.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterfaceMembers.baseline deleted file mode 100644 index 0008b74501..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterfaceMembers.baseline +++ /dev/null @@ -1,320 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsInterfaceMembers.ts === -// interface I { -// property: string; -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) I.property: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// method(): string; -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.method(): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// (): string; -// new (): I; -// } -// var iInstance: I; -// iInstance.property = iInstance.method(); -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) I.property: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.method(): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// iInstance(); -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// var anotherInstance = new iInstance(); -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var anotherInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 18, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) I.property: string\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 40, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.method(): string\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 109, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: I\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 0 - }, - "end": { - "line": 7, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 119, - "LSPosition": { - "line": 7, - "character": 10 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) I.property: string\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 10 - }, - "end": { - "line": 7, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 130, - "LSPosition": { - "line": 7, - "character": 21 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: I\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 21 - }, - "end": { - "line": 7, - "character": 30 - } - } - } - }, - { - "marker": { - "Position": 140, - "LSPosition": { - "line": 7, - "character": 31 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.method(): string\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 31 - }, - "end": { - "line": 7, - "character": 37 - } - } - } - }, - { - "marker": { - "Position": 150, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: I\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 0 - }, - "end": { - "line": 8, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 167, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar anotherInstance: I\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 189, - "LSPosition": { - "line": 9, - "character": 26 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: I\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 26 - }, - "end": { - "line": 9, - "character": 35 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline deleted file mode 100644 index 10fe8f29ea..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline +++ /dev/null @@ -1,290 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsInternalModuleAlias.ts === -// module m.m1 { -// export class c { -// } -// } -// module m2 { -// import a1 = m; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// new a1.m1.c(); -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// import a2 = m.m1; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m.m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// new a2.c(); -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m.m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// export import a3 = m; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// new a3.m1.c(); -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// export import a4 = m.m1; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m.m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// new a4.c(); -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m.m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 66, - "LSPosition": { - "line": 5, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 11 - }, - "end": { - "line": 5, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 82, - "LSPosition": { - "line": 6, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 8 - }, - "end": { - "line": 6, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 104, - "LSPosition": { - "line": 7, - "character": 11 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m.m1\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 11 - }, - "end": { - "line": 7, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 123, - "LSPosition": { - "line": 8, - "character": 8 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m.m1\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 8 - }, - "end": { - "line": 8, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 149, - "LSPosition": { - "line": 9, - "character": 18 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 18 - }, - "end": { - "line": 9, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 165, - "LSPosition": { - "line": 10, - "character": 8 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 8 - }, - "end": { - "line": 10, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 194, - "LSPosition": { - "line": 11, - "character": 18 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m.m1\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 18 - }, - "end": { - "line": 11, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 213, - "LSPosition": { - "line": 12, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m.m1\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 8 - }, - "end": { - "line": 12, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLet.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLet.baseline deleted file mode 100644 index 720e49d93b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLet.baseline +++ /dev/null @@ -1,569 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsLet.ts === -// let a = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo() { -// let b = a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let b: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// if (b) { -// let b1 = 10; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let b1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// module m { -// let c = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let c: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export let d = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let d: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// if (c) { -// let e = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let e: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// let f: () => number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// let g = f; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let g: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// f(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// let h: { (a: string): number; (a: number): string; }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// let i = h; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let i: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet a: number\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 4 - }, - "end": { - "line": 0, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 37, - "LSPosition": { - "line": 2, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet b: number\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 8 - }, - "end": { - "line": 2, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet a: number\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 12 - }, - "end": { - "line": 2, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 69, - "LSPosition": { - "line": 4, - "character": 12 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet b1: number\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 12 - }, - "end": { - "line": 4, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 8, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet c: number\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 8 - }, - "end": { - "line": 8, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 128, - "LSPosition": { - "line": 9, - "character": 15 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet d: number\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 15 - }, - "end": { - "line": 9, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 161, - "LSPosition": { - "line": 11, - "character": 12 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet e: number\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 12 - }, - "end": { - "line": 11, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 181, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet f: () => number\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 202, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet g: () => number\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 4 - }, - "end": { - "line": 15, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 206, - "LSPosition": { - "line": 15, - "character": 8 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet f: () => number\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 8 - }, - "end": { - "line": 15, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 209, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet f: () => number\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 0 - }, - "end": { - "line": 16, - "character": 1 - } - } - } - }, - { - "marker": { - "Position": 218, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 4 - }, - "end": { - "line": 17, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 272, - "LSPosition": { - "line": 18, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet i: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 18, - "character": 4 - }, - "end": { - "line": 18, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 276, - "LSPosition": { - "line": 18, - "character": 8 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 18, - "character": 8 - }, - "end": { - "line": 18, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 279, - "LSPosition": { - "line": 19, - "character": 0 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 0 - }, - "end": { - "line": 19, - "character": 1 - } - } - } - }, - { - "marker": { - "Position": 286, - "LSPosition": { - "line": 20, - "character": 0 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 20, - "character": 0 - }, - "end": { - "line": 20, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline deleted file mode 100644 index 8ff248c197..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline +++ /dev/null @@ -1,357 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsLiteralLikeNames01.ts === -// class C { -// public 1() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C[1](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// private Infinity() { } -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.Infinity(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected NaN() { } -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.NaN(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// static "stringLiteralName"() { } -// ^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C["stringLiteralName"](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// method() { -// this[1](); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C[1](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this["1"](); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C[1](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.Infinity(); -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.Infinity(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this["Infinity"](); -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.Infinity(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.NaN(); -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.NaN(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// C.stringLiteralName(); -// ^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C["stringLiteralName"](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[1](): void\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 11 - }, - "end": { - "line": 1, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.Infinity(): void\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 12 - }, - "end": { - "line": 2, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 70, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.NaN(): void\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 14 - }, - "end": { - "line": 3, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 91, - "LSPosition": { - "line": 4, - "character": 11 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[\"stringLiteralName\"](): void\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 12 - }, - "end": { - "line": 4, - "character": 29 - } - } - } - }, - { - "marker": { - "Position": 145, - "LSPosition": { - "line": 6, - "character": 13 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[1](): void\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 13 - }, - "end": { - "line": 6, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 164, - "LSPosition": { - "line": 7, - "character": 13 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[1](): void\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 14 - }, - "end": { - "line": 7, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 185, - "LSPosition": { - "line": 8, - "character": 13 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.Infinity(): void\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 13 - }, - "end": { - "line": 8, - "character": 21 - } - } - } - }, - { - "marker": { - "Position": 210, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.Infinity(): void\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 14 - }, - "end": { - "line": 9, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 238, - "LSPosition": { - "line": 10, - "character": 13 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.NaN(): void\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 13 - }, - "end": { - "line": 10, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 255, - "LSPosition": { - "line": 11, - "character": 10 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[\"stringLiteralName\"](): void\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 10 - }, - "end": { - "line": 11, - "character": 27 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLocalFunction.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLocalFunction.baseline deleted file mode 100644 index 603b1d559b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLocalFunction.baseline +++ /dev/null @@ -1,581 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsLocalFunction.ts === -// function outerFoo() { -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function outerFoo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// function foowithoverload(a: string): string; -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowithoverload(a: number): number; -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowithoverload(a: any): any { -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// } -// function foowith3overload(a: string): string; -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: number): number; -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: boolean): boolean; -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: any): any { -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// } -// foo("hello"); -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowithoverload("hello"); -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowithoverload(10); -// ^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload("hello"); -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload(10); -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload(true); -// ^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// outerFoo(); -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function outerFoo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction outerFoo(): void\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 9 - }, - "end": { - "line": 0, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 35, - "LSPosition": { - "line": 1, - "character": 13 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 13 - }, - "end": { - "line": 1, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 155, - "LSPosition": { - "line": 3, - "character": 13 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 13 - }, - "end": { - "line": 3, - "character": 28 - } - } - } - }, - { - "marker": { - "Position": 204, - "LSPosition": { - "line": 4, - "character": 13 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 13 - }, - "end": { - "line": 4, - "character": 28 - } - } - } - }, - { - "marker": { - "Position": 253, - "LSPosition": { - "line": 5, - "character": 13 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 13 - }, - "end": { - "line": 5, - "character": 28 - } - } - } - }, - { - "marker": { - "Position": 321, - "LSPosition": { - "line": 8, - "character": 13 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 13 - }, - "end": { - "line": 8, - "character": 29 - } - } - } - }, - { - "marker": { - "Position": 371, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 13 - }, - "end": { - "line": 9, - "character": 29 - } - } - } - }, - { - "marker": { - "Position": 421, - "LSPosition": { - "line": 10, - "character": 13 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 13 - }, - "end": { - "line": 10, - "character": 29 - } - } - } - }, - { - "marker": { - "Position": 473, - "LSPosition": { - "line": 11, - "character": 13 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 13 - }, - "end": { - "line": 11, - "character": 29 - } - } - } - }, - { - "marker": { - "Position": 533, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 551, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 4 - }, - "end": { - "line": 15, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 581, - "LSPosition": { - "line": 16, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 4 - }, - "end": { - "line": 16, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 606, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 4 - }, - "end": { - "line": 17, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 637, - "LSPosition": { - "line": 18, - "character": 4 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: number): number\n```\n" - }, - "range": { - "start": { - "line": 18, - "character": 4 - }, - "end": { - "line": 18, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 663, - "LSPosition": { - "line": 19, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: boolean): boolean\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 4 - }, - "end": { - "line": 19, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 689, - "LSPosition": { - "line": 21, - "character": 0 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction outerFoo(): void\n```\n" - }, - "range": { - "start": { - "line": 21, - "character": 0 - }, - "end": { - "line": 21, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsModules.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsModules.baseline deleted file mode 100644 index 98273875a2..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsModules.baseline +++ /dev/null @@ -1,576 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsModules.ts === -// namespace m { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// var namespaceElemWithoutExport = 10; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithoutExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var namespaceElemWithExport = 10; -// ^^^^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var a = m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: typeof m -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// var b: typeof m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: typeof m -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// namespace m1.m2 { -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*9*/. -// | ---------------------------------------------------------------------- -// var namespaceElemWithoutExport = 10; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithoutExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var namespaceElemWithExport = 10; -// ^^^^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var x = m1.m2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: typeof m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// var y: typeof m1.m2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var y: typeof m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 10, - "LSPosition": { - "line": 0, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 10 - }, - "end": { - "line": 0, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 22, - "LSPosition": { - "line": 1, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 8 - }, - "end": { - "line": 1, - "character": 34 - } - } - } - }, - { - "marker": { - "Position": 70, - "LSPosition": { - "line": 2, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 15 - }, - "end": { - "line": 2, - "character": 38 - } - } - } - }, - { - "marker": { - "Position": 106, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: typeof m\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 4 - }, - "end": { - "line": 4, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 110, - "LSPosition": { - "line": 4, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 8 - }, - "end": { - "line": 4, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 117, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: typeof m\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 127, - "LSPosition": { - "line": 5, - "character": 14 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 14 - }, - "end": { - "line": 5, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 140, - "LSPosition": { - "line": 6, - "character": 10 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 10 - }, - "end": { - "line": 6, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 143, - "LSPosition": { - "line": 6, - "character": 13 - }, - "Name": "9", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 156, - "LSPosition": { - "line": 7, - "character": 8 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 8 - }, - "end": { - "line": 7, - "character": 34 - } - } - } - }, - { - "marker": { - "Position": 204, - "LSPosition": { - "line": 8, - "character": 15 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 15 - }, - "end": { - "line": 8, - "character": 38 - } - } - } - }, - { - "marker": { - "Position": 240, - "LSPosition": { - "line": 10, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: typeof m1.m2\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 4 - }, - "end": { - "line": 10, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 244, - "LSPosition": { - "line": 10, - "character": 8 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 8 - }, - "end": { - "line": 10, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 247, - "LSPosition": { - "line": 10, - "character": 11 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1.m2\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 11 - }, - "end": { - "line": 10, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 255, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar y: typeof m1.m2\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 265, - "LSPosition": { - "line": 11, - "character": 14 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 14 - }, - "end": { - "line": 11, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 268, - "LSPosition": { - "line": 11, - "character": 17 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1.m2\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 17 - }, - "end": { - "line": 11, - "character": 19 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsParameters.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsParameters.baseline deleted file mode 100644 index f8a607fce9..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsParameters.baseline +++ /dev/null @@ -1,319 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsParameters.ts === -// /** @return *crunch* */ -// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | -// | *@return* — *crunch* -// | ---------------------------------------------------------------------- -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) param: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) optionalParam: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) paramWithInitializer: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) restParam: string[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// param = "Hello"; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) param: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// optionalParam = "World"; -// ^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) optionalParam: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// paramWithInitializer = "Hello"; -// ^^^^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) paramWithInitializer: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// restParam[0] = "World"; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) restParam: string[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 33, - "LSPosition": { - "line": 1, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n\n\n*@return* — *crunch* " - }, - "range": { - "start": { - "line": 1, - "character": 9 - }, - "end": { - "line": 1, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 37, - "LSPosition": { - "line": 1, - "character": 13 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) param: string\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 13 - }, - "end": { - "line": 1, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 52, - "LSPosition": { - "line": 1, - "character": 28 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) optionalParam: string\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 28 - }, - "end": { - "line": 1, - "character": 41 - } - } - } - }, - { - "marker": { - "Position": 76, - "LSPosition": { - "line": 1, - "character": 52 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) paramWithInitializer: string\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 52 - }, - "end": { - "line": 1, - "character": 72 - } - } - } - }, - { - "marker": { - "Position": 111, - "LSPosition": { - "line": 1, - "character": 87 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) restParam: string[]\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 87 - }, - "end": { - "line": 1, - "character": 96 - } - } - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) param: string\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 159, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) optionalParam: string\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 188, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) paramWithInitializer: string\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 4 - }, - "end": { - "line": 4, - "character": 24 - } - } - } - }, - { - "marker": { - "Position": 224, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) restParam: string[]\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 13 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeAlias.baseline deleted file mode 100644 index de8d7ae536..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeAlias.baseline +++ /dev/null @@ -1,212 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeAlias.ts === -// class c { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// type t1 = c; -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type t1 = c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cInstance: t1 = new c(); -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type t1 = c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 6 - }, - "end": { - "line": 0, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 2, - "character": 5 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype t1 = c\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 5 - }, - "end": { - "line": 2, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 22, - "LSPosition": { - "line": 2, - "character": 10 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 10 - }, - "end": { - "line": 2, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 40, - "LSPosition": { - "line": 3, - "character": 15 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype t1 = c\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 15 - }, - "end": { - "line": 3, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 49, - "LSPosition": { - "line": 3, - "character": 24 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 24 - }, - "end": { - "line": 3, - "character": 25 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline deleted file mode 100644 index 58d5c23ef5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline +++ /dev/null @@ -1,1418 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInClass.ts === -// class c { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(a: T) { -// ^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c(a: T): c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// method(a: U, b: T) { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.method(a: U, b: T): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance = new c("Hello"); -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c(a: string): c -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cVal = c; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cVal: typeof c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// cInstance.method("hello", "cello"); -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.method<"hello">(a: "hello", b: string): "hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -// class c2> { -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(a: T) { -// ^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c2>(a: T): c2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// method>(a: U, b: T) { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c2.method>(a: U, b: T): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance1 = new c2(cInstance); -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance1: c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c2>(a: c): c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cVal2 = c2; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cVal2: typeof c2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// cInstance1.method(cInstance, cInstance); -// ^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance1: c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c2.method>(a: c, b: c): c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 6 - }, - "end": { - "line": 0, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 8, - "LSPosition": { - "line": 0, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 8 - }, - "end": { - "line": 0, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c(a: T): c\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 16 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: T\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 16 - }, - "end": { - "line": 1, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 32, - "LSPosition": { - "line": 1, - "character": 19 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 19 - }, - "end": { - "line": 1, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 47, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.method(a: U, b: T): U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 54, - "LSPosition": { - "line": 3, - "character": 11 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 11 - }, - "end": { - "line": 3, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 57, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 14 - }, - "end": { - "line": 3, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 60, - "LSPosition": { - "line": 3, - "character": 17 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 17 - }, - "end": { - "line": 3, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 3, - "character": 20 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 20 - }, - "end": { - "line": 3, - "character": 21 - } - } - } - }, - { - "marker": { - "Position": 66, - "LSPosition": { - "line": 3, - "character": 23 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 23 - }, - "end": { - "line": 3, - "character": 24 - } - } - } - }, - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 4, - "character": 15 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 15 - }, - "end": { - "line": 4, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 101, - "LSPosition": { - "line": 7, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 117, - "LSPosition": { - "line": 7, - "character": 20 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c(a: string): c\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 20 - }, - "end": { - "line": 7, - "character": 21 - } - } - } - }, - { - "marker": { - "Position": 133, - "LSPosition": { - "line": 8, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cVal: typeof c\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 4 - }, - "end": { - "line": 8, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 140, - "LSPosition": { - "line": 8, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 11 - }, - "end": { - "line": 8, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 143, - "LSPosition": { - "line": 9, - "character": 0 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 0 - }, - "end": { - "line": 9, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 153, - "LSPosition": { - "line": 9, - "character": 10 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.method<\"hello\">(a: \"hello\", b: string): \"hello\"\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 10 - }, - "end": { - "line": 9, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 185, - "LSPosition": { - "line": 10, - "character": 6 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c2>\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 6 - }, - "end": { - "line": 10, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 188, - "LSPosition": { - "line": 10, - "character": 9 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends c\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 9 - }, - "end": { - "line": 10, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 198, - "LSPosition": { - "line": 10, - "character": 19 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 19 - }, - "end": { - "line": 10, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 215, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c2>(a: T): c2\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 227, - "LSPosition": { - "line": 11, - "character": 16 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: T\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 16 - }, - "end": { - "line": 11, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 230, - "LSPosition": { - "line": 11, - "character": 19 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends c\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 19 - }, - "end": { - "line": 11, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 245, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c2.method>(a: U, b: T): U\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 4 - }, - "end": { - "line": 13, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 252, - "LSPosition": { - "line": 13, - "character": 11 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends c\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 11 - }, - "end": { - "line": 13, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 262, - "LSPosition": { - "line": 13, - "character": 21 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 21 - }, - "end": { - "line": 13, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 273, - "LSPosition": { - "line": 13, - "character": 32 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 32 - }, - "end": { - "line": 13, - "character": 33 - } - } - } - }, - { - "marker": { - "Position": 276, - "LSPosition": { - "line": 13, - "character": 35 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends c\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 35 - }, - "end": { - "line": 13, - "character": 36 - } - } - } - }, - { - "marker": { - "Position": 279, - "LSPosition": { - "line": 13, - "character": 38 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 38 - }, - "end": { - "line": 13, - "character": 39 - } - } - } - }, - { - "marker": { - "Position": 282, - "LSPosition": { - "line": 13, - "character": 41 - }, - "Name": "31", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends c\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 41 - }, - "end": { - "line": 13, - "character": 42 - } - } - } - }, - { - "marker": { - "Position": 302, - "LSPosition": { - "line": 14, - "character": 15 - }, - "Name": "32", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 15 - }, - "end": { - "line": 14, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 317, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "33", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance1: c2>\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 4 - }, - "end": { - "line": 17, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 334, - "LSPosition": { - "line": 17, - "character": 21 - }, - "Name": "34", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c2>(a: c): c2>\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 21 - }, - "end": { - "line": 17, - "character": 23 - } - } - } - }, - { - "marker": { - "Position": 337, - "LSPosition": { - "line": 17, - "character": 24 - }, - "Name": "35", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 24 - }, - "end": { - "line": 17, - "character": 33 - } - } - } - }, - { - "marker": { - "Position": 353, - "LSPosition": { - "line": 18, - "character": 4 - }, - "Name": "36", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cVal2: typeof c2\n```\n" - }, - "range": { - "start": { - "line": 18, - "character": 4 - }, - "end": { - "line": 18, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 361, - "LSPosition": { - "line": 18, - "character": 12 - }, - "Name": "37", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c2>\n```\n" - }, - "range": { - "start": { - "line": 18, - "character": 12 - }, - "end": { - "line": 18, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 365, - "LSPosition": { - "line": 19, - "character": 0 - }, - "Name": "38", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance1: c2>\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 0 - }, - "end": { - "line": 19, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 376, - "LSPosition": { - "line": 19, - "character": 11 - }, - "Name": "39", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c2.method>(a: c, b: c): c\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 11 - }, - "end": { - "line": 19, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 383, - "LSPosition": { - "line": 19, - "character": 18 - }, - "Name": "40", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 18 - }, - "end": { - "line": 19, - "character": 27 - } - } - } - }, - { - "marker": { - "Position": 394, - "LSPosition": { - "line": 19, - "character": 29 - }, - "Name": "41", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 29 - }, - "end": { - "line": 19, - "character": 38 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline deleted file mode 100644 index 4da604dc1a..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline +++ /dev/null @@ -1,420 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInFunction.ts === -// function foo(a: U) { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(a: U): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// foo("Hello"); -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo<"Hello">(a: "Hello"): "Hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo2(a: U) { -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo2(a: U): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends string -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// foo2("hello"); -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo2<"hello">(a: "hello"): "hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(a: U): U\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 9 - }, - "end": { - "line": 0, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 13, - "LSPosition": { - "line": 0, - "character": 13 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 13 - }, - "end": { - "line": 0, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 16, - "LSPosition": { - "line": 0, - "character": 16 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 16 - }, - "end": { - "line": 0, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 19, - "LSPosition": { - "line": 0, - "character": 19 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 19 - }, - "end": { - "line": 0, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 35, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 11 - }, - "end": { - "line": 1, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 40, - "LSPosition": { - "line": 3, - "character": 0 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo<\"Hello\">(a: \"Hello\"): \"Hello\"\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 3 - } - } - } - }, - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 4, - "character": 9 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo2(a: U): U\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 9 - }, - "end": { - "line": 4, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 68, - "LSPosition": { - "line": 4, - "character": 14 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends string\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 14 - }, - "end": { - "line": 4, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 4, - "character": 32 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 32 - }, - "end": { - "line": 4, - "character": 33 - } - } - } - }, - { - "marker": { - "Position": 89, - "LSPosition": { - "line": 4, - "character": 35 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends string\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 35 - }, - "end": { - "line": 4, - "character": 36 - } - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 5, - "character": 11 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 11 - }, - "end": { - "line": 5, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 110, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo2<\"hello\">(a: \"hello\"): \"hello\"\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 0 - }, - "end": { - "line": 7, - "character": 4 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline deleted file mode 100644 index 34f227d6b5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline +++ /dev/null @@ -1,108 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.ts === -// type MixinCtor = new () => A & { constructor: MixinCtor }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) A -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) A -// | ``` -// | -// | ---------------------------------------------------------------------- -// type MixinCtor = new () => A & { constructor: { constructor: MixinCtor } }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) A -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 30, - "LSPosition": { - "line": 0, - "character": 30 - }, - "Name": "0", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) A\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 30 - }, - "end": { - "line": 0, - "character": 31 - } - } - } - }, - { - "marker": { - "Position": 59, - "LSPosition": { - "line": 0, - "character": 59 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) A\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 59 - }, - "end": { - "line": 0, - "character": 60 - } - } - } - }, - { - "marker": { - "Position": 139, - "LSPosition": { - "line": 1, - "character": 74 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) A\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 74 - }, - "end": { - "line": 1, - "character": 75 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline deleted file mode 100644 index f318f084b2..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline +++ /dev/null @@ -1,2232 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInInterface.ts === -// interface I { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// new (a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// (a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// method(a: U, b: T): U; -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.method(a: U, b: T): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var iVal: I; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// new iVal("hello", "hello"); -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// iVal("hello", "hello"); -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// iVal.method("hello", "hello"); -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.method<"hello">(a: "hello", b: string): "hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -// interface I1> { -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// new >(a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// >(a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// method>(a: U, b: T): U; -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I1.method>(a: U, b: T): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var iVal1: I1>; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal1: I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// new iVal1(iVal, iVal); -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal1: I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// iVal1(iVal, iVal); -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal1: I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// iVal1.method(iVal, iVal); -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal1: I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I1.method>(a: I, b: I): I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 10, - "LSPosition": { - "line": 0, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 10 - }, - "end": { - "line": 0, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 12, - "LSPosition": { - "line": 0, - "character": 12 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 12 - }, - "end": { - "line": 0, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 9 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 9 - }, - "end": { - "line": 1, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 12 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 12 - }, - "end": { - "line": 1, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 32, - "LSPosition": { - "line": 1, - "character": 15 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 15 - }, - "end": { - "line": 1, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 35, - "LSPosition": { - "line": 1, - "character": 18 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 18 - }, - "end": { - "line": 1, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 38, - "LSPosition": { - "line": 1, - "character": 21 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 21 - }, - "end": { - "line": 1, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 42, - "LSPosition": { - "line": 1, - "character": 25 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 25 - }, - "end": { - "line": 1, - "character": 26 - } - } - } - }, - { - "marker": { - "Position": 50, - "LSPosition": { - "line": 2, - "character": 5 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 5 - }, - "end": { - "line": 2, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 53, - "LSPosition": { - "line": 2, - "character": 8 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 8 - }, - "end": { - "line": 2, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 56, - "LSPosition": { - "line": 2, - "character": 11 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 11 - }, - "end": { - "line": 2, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 59, - "LSPosition": { - "line": 2, - "character": 14 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 14 - }, - "end": { - "line": 2, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 62, - "LSPosition": { - "line": 2, - "character": 17 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 17 - }, - "end": { - "line": 2, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 66, - "LSPosition": { - "line": 2, - "character": 21 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 21 - }, - "end": { - "line": 2, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 73, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.method(a: U, b: T): U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 80, - "LSPosition": { - "line": 3, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 11 - }, - "end": { - "line": 3, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 83, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 14 - }, - "end": { - "line": 3, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 3, - "character": 17 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 17 - }, - "end": { - "line": 3, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 89, - "LSPosition": { - "line": 3, - "character": 20 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 20 - }, - "end": { - "line": 3, - "character": 21 - } - } - } - }, - { - "marker": { - "Position": 92, - "LSPosition": { - "line": 3, - "character": 23 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 23 - }, - "end": { - "line": 3, - "character": 24 - } - } - } - }, - { - "marker": { - "Position": 96, - "LSPosition": { - "line": 3, - "character": 27 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 27 - }, - "end": { - "line": 3, - "character": 28 - } - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 111, - "LSPosition": { - "line": 5, - "character": 10 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 10 - }, - "end": { - "line": 5, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 126, - "LSPosition": { - "line": 6, - "character": 4 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 4 - }, - "end": { - "line": 6, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 150, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 0 - }, - "end": { - "line": 7, - "character": 4 - } - } - } - }, - { - "marker": { - "Position": 174, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 0 - }, - "end": { - "line": 8, - "character": 4 - } - } - } - }, - { - "marker": { - "Position": 179, - "LSPosition": { - "line": 8, - "character": 5 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.method<\"hello\">(a: \"hello\", b: string): \"hello\"\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 5 - }, - "end": { - "line": 8, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 215, - "LSPosition": { - "line": 9, - "character": 10 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I1>\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 10 - }, - "end": { - "line": 9, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 218, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends I\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 13 - }, - "end": { - "line": 9, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 228, - "LSPosition": { - "line": 9, - "character": 23 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 23 - }, - "end": { - "line": 9, - "character": 24 - } - } - } - }, - { - "marker": { - "Position": 250, - "LSPosition": { - "line": 10, - "character": 9 - }, - "Name": "31", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 9 - }, - "end": { - "line": 10, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 260, - "LSPosition": { - "line": 10, - "character": 19 - }, - "Name": "32", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 19 - }, - "end": { - "line": 10, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 271, - "LSPosition": { - "line": 10, - "character": 30 - }, - "Name": "33", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 30 - }, - "end": { - "line": 10, - "character": 31 - } - } - } - }, - { - "marker": { - "Position": 274, - "LSPosition": { - "line": 10, - "character": 33 - }, - "Name": "34", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 33 - }, - "end": { - "line": 10, - "character": 34 - } - } - } - }, - { - "marker": { - "Position": 277, - "LSPosition": { - "line": 10, - "character": 36 - }, - "Name": "35", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 36 - }, - "end": { - "line": 10, - "character": 37 - } - } - } - }, - { - "marker": { - "Position": 280, - "LSPosition": { - "line": 10, - "character": 39 - }, - "Name": "36", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends I\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 39 - }, - "end": { - "line": 10, - "character": 40 - } - } - } - }, - { - "marker": { - "Position": 284, - "LSPosition": { - "line": 10, - "character": 43 - }, - "Name": "37", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 43 - }, - "end": { - "line": 10, - "character": 44 - } - } - } - }, - { - "marker": { - "Position": 292, - "LSPosition": { - "line": 11, - "character": 5 - }, - "Name": "38", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 5 - }, - "end": { - "line": 11, - "character": 6 - } - } - } - }, - { - "marker": { - "Position": 302, - "LSPosition": { - "line": 11, - "character": 15 - }, - "Name": "39", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 15 - }, - "end": { - "line": 11, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 313, - "LSPosition": { - "line": 11, - "character": 26 - }, - "Name": "40", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 26 - }, - "end": { - "line": 11, - "character": 27 - } - } - } - }, - { - "marker": { - "Position": 316, - "LSPosition": { - "line": 11, - "character": 29 - }, - "Name": "41", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 29 - }, - "end": { - "line": 11, - "character": 30 - } - } - } - }, - { - "marker": { - "Position": 319, - "LSPosition": { - "line": 11, - "character": 32 - }, - "Name": "42", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 32 - }, - "end": { - "line": 11, - "character": 33 - } - } - } - }, - { - "marker": { - "Position": 322, - "LSPosition": { - "line": 11, - "character": 35 - }, - "Name": "43", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends I\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 35 - }, - "end": { - "line": 11, - "character": 36 - } - } - } - }, - { - "marker": { - "Position": 326, - "LSPosition": { - "line": 11, - "character": 39 - }, - "Name": "44", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 39 - }, - "end": { - "line": 11, - "character": 40 - } - } - } - }, - { - "marker": { - "Position": 333, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "45", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I1.method>(a: U, b: T): U\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 4 - }, - "end": { - "line": 12, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 340, - "LSPosition": { - "line": 12, - "character": 11 - }, - "Name": "46", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 11 - }, - "end": { - "line": 12, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 350, - "LSPosition": { - "line": 12, - "character": 21 - }, - "Name": "47", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 21 - }, - "end": { - "line": 12, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 361, - "LSPosition": { - "line": 12, - "character": 32 - }, - "Name": "48", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 32 - }, - "end": { - "line": 12, - "character": 33 - } - } - } - }, - { - "marker": { - "Position": 364, - "LSPosition": { - "line": 12, - "character": 35 - }, - "Name": "49", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 35 - }, - "end": { - "line": 12, - "character": 36 - } - } - } - }, - { - "marker": { - "Position": 367, - "LSPosition": { - "line": 12, - "character": 38 - }, - "Name": "50", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 38 - }, - "end": { - "line": 12, - "character": 39 - } - } - } - }, - { - "marker": { - "Position": 370, - "LSPosition": { - "line": 12, - "character": 41 - }, - "Name": "51", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends I\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 41 - }, - "end": { - "line": 12, - "character": 42 - } - } - } - }, - { - "marker": { - "Position": 374, - "LSPosition": { - "line": 12, - "character": 45 - }, - "Name": "52", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 45 - }, - "end": { - "line": 12, - "character": 46 - } - } - } - }, - { - "marker": { - "Position": 383, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "53", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal1: I1>\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 390, - "LSPosition": { - "line": 14, - "character": 11 - }, - "Name": "54", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I1>\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 11 - }, - "end": { - "line": 14, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 393, - "LSPosition": { - "line": 14, - "character": 14 - }, - "Name": "55", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 14 - }, - "end": { - "line": 14, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 409, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "56", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal1: I1>\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 4 - }, - "end": { - "line": 15, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 415, - "LSPosition": { - "line": 15, - "character": 10 - }, - "Name": "57", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 10 - }, - "end": { - "line": 15, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 421, - "LSPosition": { - "line": 15, - "character": 16 - }, - "Name": "58", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 16 - }, - "end": { - "line": 15, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 428, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "59", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal1: I1>\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 0 - }, - "end": { - "line": 16, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 434, - "LSPosition": { - "line": 16, - "character": 6 - }, - "Name": "60", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 6 - }, - "end": { - "line": 16, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 440, - "LSPosition": { - "line": 16, - "character": 12 - }, - "Name": "61", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 16, - "character": 12 - }, - "end": { - "line": 16, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 447, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "62", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal1: I1>\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 0 - }, - "end": { - "line": 17, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 453, - "LSPosition": { - "line": 17, - "character": 6 - }, - "Name": "63", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I1.method>(a: I, b: I): I\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 6 - }, - "end": { - "line": 17, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 460, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "64", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 13 - }, - "end": { - "line": 17, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 466, - "LSPosition": { - "line": 17, - "character": 19 - }, - "Name": "65", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 19 - }, - "end": { - "line": 17, - "character": 23 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline deleted file mode 100644 index 299f34e6ae..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline +++ /dev/null @@ -1,210 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInTypeAlias.ts === -// type List = T[] -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type List = T[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// type List2 = T[]; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type List2 = T[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends string -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 5, - "LSPosition": { - "line": 0, - "character": 5 - }, - "Name": "0", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype List = T[]\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 5 - }, - "end": { - "line": 0, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 10, - "LSPosition": { - "line": 0, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 10 - }, - "end": { - "line": 0, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 15, - "LSPosition": { - "line": 0, - "character": 15 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 15 - }, - "end": { - "line": 0, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 24, - "LSPosition": { - "line": 1, - "character": 5 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype List2 = T[]\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 5 - }, - "end": { - "line": 1, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 30, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends string\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 11 - }, - "end": { - "line": 1, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 50, - "LSPosition": { - "line": 1, - "character": 31 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends string\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 31 - }, - "end": { - "line": 1, - "character": 32 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline deleted file mode 100644 index 18bea2f9e4..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline +++ /dev/null @@ -1,76 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsUsing.ts === -// using a = "a"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | using a: "a" -// | ``` -// | -// | ---------------------------------------------------------------------- -// const f = async () => { -// await using b = { async [Symbol.asyncDispose]() {} }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | await using b: { [Symbol.asyncDispose](): Promise; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// }; -[ - { - "marker": { - "Position": 7, - "LSPosition": { - "line": 0, - "character": 7 - }, - "Name": "a", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nusing a: \"a\"\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 6 - }, - "end": { - "line": 0, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 55, - "LSPosition": { - "line": 2, - "character": 16 - }, - "Name": "b", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nawait using b: { [Symbol.asyncDispose](): Promise; }\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 16 - }, - "end": { - "line": 2, - "character": 17 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVar.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVar.baseline deleted file mode 100644 index c5692ca6f2..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVar.baseline +++ /dev/null @@ -1,495 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsVar.ts === -// var a = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo() { -// var b = a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// module m { -// var c = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var c: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var d = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var d: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var f: () => number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var g = f; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var g: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// f(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var h: { (a: string): number; (a: number): string; }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i = h; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: number\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 4 - }, - "end": { - "line": 0, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 37, - "LSPosition": { - "line": 2, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: number\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 8 - }, - "end": { - "line": 2, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: number\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 12 - }, - "end": { - "line": 2, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 65, - "LSPosition": { - "line": 5, - "character": 8 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar c: number\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 8 - }, - "end": { - "line": 5, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 88, - "LSPosition": { - "line": 6, - "character": 15 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar d: number\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 15 - }, - "end": { - "line": 6, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 102, - "LSPosition": { - "line": 8, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar f: () => number\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 4 - }, - "end": { - "line": 8, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 123, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar g: () => number\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 127, - "LSPosition": { - "line": 9, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar f: () => number\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 8 - }, - "end": { - "line": 9, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 130, - "LSPosition": { - "line": 10, - "character": 0 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar f: () => number\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 0 - }, - "end": { - "line": 10, - "character": 1 - } - } - } - }, - { - "marker": { - "Position": 139, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 193, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 4 - }, - "end": { - "line": 12, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 197, - "LSPosition": { - "line": 12, - "character": 8 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 8 - }, - "end": { - "line": 12, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 200, - "LSPosition": { - "line": 13, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 0 - }, - "end": { - "line": 13, - "character": 1 - } - } - } - }, - { - "marker": { - "Position": 207, - "LSPosition": { - "line": 14, - "character": 0 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 0 - }, - "end": { - "line": 14, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline deleted file mode 100644 index cf733365dd..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline +++ /dev/null @@ -1,109 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsVarWithStringTypes01.ts === -// let hello: "hello" | 'hello' = "hello"; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let hello: "hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -// let world: 'world' = "world"; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let world: "world" -// | ``` -// | -// | ---------------------------------------------------------------------- -// let helloOrWorld: "hello" | 'world'; -// ^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let helloOrWorld: "hello" | "world" -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet hello: \"hello\"\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 4 - }, - "end": { - "line": 0, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 44, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet world: \"world\"\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 74, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet helloOrWorld: \"hello\" | \"world\"\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 16 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline deleted file mode 100644 index a9bc2873be..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline +++ /dev/null @@ -1,81 +0,0 @@ -// === QuickInfo === -=== /a.js === -// const foo = { -// f1: (params) => { } -// } -// -// function f2(x) { -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f2(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo.f1({ x, arguments: [] }); -// } -// -// f2(''); -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f2(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 50, - "LSPosition": { - "line": 4, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f2(x: any): void\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 9 - }, - "end": { - "line": 4, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 94, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f2(x: any): void\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 0 - }, - "end": { - "line": 8, - "character": 2 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline deleted file mode 100644 index 7a826925ae..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline +++ /dev/null @@ -1,77 +0,0 @@ -// === QuickInfo === -=== /a.js === -// function f(x) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// arguments; -// } -// -// f(''); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(x: any): void\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 9 - }, - "end": { - "line": 0, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 33, - "LSPosition": { - "line": 4, - "character": 0 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(x: any): void\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 0 - }, - "end": { - "line": 4, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForConstAssertions.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForConstAssertions.baseline deleted file mode 100644 index e5598148bb..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForConstAssertions.baseline +++ /dev/null @@ -1,144 +0,0 @@ -// === QuickInfo === -=== /quickInfoForConstAssertions.ts === -// const a = { a: 1 } as const; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type const -// | ``` -// | -// | ---------------------------------------------------------------------- -// const b = 1 as const; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type const -// | ``` -// | -// | ---------------------------------------------------------------------- -// const c = "c" as const; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type const -// | ``` -// | -// | ---------------------------------------------------------------------- -// const d = [1, 2] as const; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type const -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 22, - "LSPosition": { - "line": 0, - "character": 22 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype const\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 22 - }, - "end": { - "line": 0, - "character": 27 - } - } - } - }, - { - "marker": { - "Position": 44, - "LSPosition": { - "line": 1, - "character": 15 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype const\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 15 - }, - "end": { - "line": 1, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 68, - "LSPosition": { - "line": 2, - "character": 17 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype const\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 17 - }, - "end": { - "line": 2, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 95, - "LSPosition": { - "line": 3, - "character": 20 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype const\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 20 - }, - "end": { - "line": 3, - "character": 25 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocCodefence.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocCodefence.baseline deleted file mode 100644 index 63b64218fb..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocCodefence.baseline +++ /dev/null @@ -1,101 +0,0 @@ -// === QuickInfo === -=== /quickInfoForJSDocCodefence.ts === -// /** -// * @example -// * ``` -// * 1 + 2 -// * ``` -// */ -// function foo() { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): string -// | ``` -// | -// | -// | *@example* -// | ``` -// | 1 + 2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// * @example -// * `` -// * 1 + 2 -// * ` -// */ -// function boo() { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function boo(): string -// | ``` -// | -// | -// | *@example* — `` -// | 1 + 2 -// | ` -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -[ - { - "marker": { - "Position": 54, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): string\n```\n\n\n*@example*\n```\n1 + 2\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 9 - }, - "end": { - "line": 6, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 129, - "LSPosition": { - "line": 15, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction boo(): string\n```\n\n\n*@example* — ``\n1 + 2\n`\n" - }, - "range": { - "start": { - "line": 15, - "character": 9 - }, - "end": { - "line": 15, - "character": 12 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocUnknownTag.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocUnknownTag.baseline deleted file mode 100644 index 1ace37d779..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocUnknownTag.baseline +++ /dev/null @@ -1,249 +0,0 @@ -// === QuickInfo === -=== /quickInfoForJSDocUnknownTag.ts === -// /** -// * @example -// * if (true) { -// * foo() -// * } -// */ -// function foo() { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): string -// | ``` -// | -// | -// | *@example* — if (true) { -// | foo() -// | } -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// @example -// { -// foo() -// } -// */ -// function foo2() { -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo2(): string -// | ``` -// | -// | -// | *@example* — { -// | foo() -// | } -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// * @example -// * x y -// * 12345 -// * b -// */ -// function moo() { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function moo(): string -// | ``` -// | -// | -// | *@example* — x y -// | 12345 -// | b -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// * @func -// * @example -// * x y -// * 12345 -// * b -// */ -// function boo() { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function boo(): string -// | ``` -// | -// | -// | *@func* -// | -// | *@example* — x y -// | 12345 -// | b -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// * @func -// * @example x y -// * 12345 -// * b -// */ -// function goo() { -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function goo(): string -// | ``` -// | -// | -// | *@func* -// | -// | *@example* — x y -// | 12345 -// | b -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -[ - { - "marker": { - "Position": 64, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): string\n```\n\n\n*@example* — if (true) {\n foo()\n}\n" - }, - "range": { - "start": { - "line": 6, - "character": 9 - }, - "end": { - "line": 6, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 134, - "LSPosition": { - "line": 15, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo2(): string\n```\n\n\n*@example* — {\n foo()\n}\n" - }, - "range": { - "start": { - "line": 15, - "character": 9 - }, - "end": { - "line": 15, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 219, - "LSPosition": { - "line": 24, - "character": 10 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction moo(): string\n```\n\n\n*@example* — x y\n 12345\n b\n" - }, - "range": { - "start": { - "line": 24, - "character": 9 - }, - "end": { - "line": 24, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 313, - "LSPosition": { - "line": 34, - "character": 10 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction boo(): string\n```\n\n\n*@func*\n\n*@example* — x y\n 12345\n b\n" - }, - "range": { - "start": { - "line": 34, - "character": 9 - }, - "end": { - "line": 34, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 426, - "LSPosition": { - "line": 43, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction goo(): string\n```\n\n\n*@func*\n\n*@example* — x y\n12345\n b\n" - }, - "range": { - "start": { - "line": 43, - "character": 9 - }, - "end": { - "line": 43, - "character": 12 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline deleted file mode 100644 index fbb8265ce2..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline +++ /dev/null @@ -1,230 +0,0 @@ -// === QuickInfo === -=== /quickInfoForJSDocWithHttpLinks.js === -// /** @typedef {number} https://wat */ -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type https = number -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /** -// * @typedef {Object} Oops -// * @property {number} https://wass -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) https: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// */ -// -// -// /** @callback http://vad */ -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type http = () => any -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /** @see https://hvad */ -// var see1 = true -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see1: boolean -// | ``` -// | -// | -// | *@see* `https` — ://hvad -// | ---------------------------------------------------------------------- -// -// /** @see {@link https://hva} */ -// var see2 = true -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see2: boolean -// | ``` -// | -// | -// | *@see* — [https://hva](https://hva) -// | ---------------------------------------------------------------------- -// -// /** {@link https://hvaD} */ -// var see3 = true -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see3: boolean -// | ``` -// | [https://hvaD](https://hvaD) -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 22, - "LSPosition": { - "line": 0, - "character": 22 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype https = number\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 22 - }, - "end": { - "line": 0, - "character": 27 - } - } - } - }, - { - "marker": { - "Position": 88, - "LSPosition": { - "line": 4, - "character": 21 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) https: number\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 21 - }, - "end": { - "line": 4, - "character": 26 - } - } - } - }, - { - "marker": { - "Position": 120, - "LSPosition": { - "line": 8, - "character": 14 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype http = () => any\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 14 - }, - "end": { - "line": 8, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 164, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see1: boolean\n```\n\n\n*@see* `https` — ://hvad " - }, - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 213, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see2: boolean\n```\n\n\n*@see* — [https://hva](https://hva) " - }, - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 258, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see3: boolean\n```\n[https://hvaD](https://hvaD)" - }, - "range": { - "start": { - "line": 17, - "character": 4 - }, - "end": { - "line": 17, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline deleted file mode 100644 index 7bb050551c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline +++ /dev/null @@ -1,79 +0,0 @@ -// === QuickInfo === -=== /quickInfoForJSDocWithHttpLinks.js === -// /** @see {@link https://hva} */ -// var see2 = true -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see2: boolean -// | ``` -// | -// | -// | *@see* — [https://hva](https://hva) -// | ---------------------------------------------------------------------- -// -// /** {@link https://hvaD} */ -// var see3 = true -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see3: boolean -// | ``` -// | [https://hvaD](https://hvaD) -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 36, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see2: boolean\n```\n\n\n*@see* — [https://hva](https://hva) " - }, - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 81, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see3: boolean\n```\n[https://hvaD](https://hvaD)" - }, - "range": { - "start": { - "line": 4, - "character": 4 - }, - "end": { - "line": 4, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName03.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName03.baseline deleted file mode 100644 index 0e0a6ea1c5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName03.baseline +++ /dev/null @@ -1,48 +0,0 @@ -// === QuickInfo === -=== /quickInfoForObjectBindingElementName03.ts === -// interface Options { -// /** -// * A description of foo -// */ -// foo: string; -// } -// -// function f({ foo }: Options) { -// foo; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var foo: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 122, - "LSPosition": { - "line": 8, - "character": 7 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar foo: string\n```\n" - }, - "range": { - "start": { - "line": 8, - "character": 4 - }, - "end": { - "line": 8, - "character": 7 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.baseline deleted file mode 100644 index 926bfdf720..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.baseline +++ /dev/null @@ -1,88 +0,0 @@ -// === QuickInfo === -=== /quickInfoForObjectBindingElementName04.ts === -// interface Options { -// /** -// * A description of 'a' -// */ -// a: { -// /** -// * A description of 'b' -// */ -// b: string; -// } -// } -// -// function f({ a, a: { b } }: Options) { -// a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: { b: string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// b; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 193, - "LSPosition": { - "line": 13, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: { b: string; }\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 4 - }, - "end": { - "line": 13, - "character": 5 - } - } - } - }, - { - "marker": { - "Position": 200, - "LSPosition": { - "line": 14, - "character": 5 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: string\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 5 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName05.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName05.baseline deleted file mode 100644 index 8ba464b2a4..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName05.baseline +++ /dev/null @@ -1,51 +0,0 @@ -// === QuickInfo === -=== /quickInfoForObjectBindingElementName05.ts === -// interface A { -// /** -// * A description of a -// */ -// a: number; -// } -// interface B { -// a: string; -// } -// -// function f({ a }: A | B) { -// a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: string | number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 137, - "LSPosition": { - "line": 11, - "character": 5 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: string | number\n```\n" - }, - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 5 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName06.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName06.baseline deleted file mode 100644 index 71b808900c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName06.baseline +++ /dev/null @@ -1,56 +0,0 @@ -// === QuickInfo === -=== /quickInfoForObjectBindingElementName06.ts === -// type Foo = { -// /** -// * Thing is a bar -// */ -// isBar: boolean -// -// /** -// * Thing is a baz -// */ -// isBaz: boolean -// } -// -// function f(): Foo { -// return undefined as any -// } -// -// const { isBaz: isBar } = f(); -// isBar; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const isBar: boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 217, - "LSPosition": { - "line": 17, - "character": 5 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst isBar: boolean\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 0 - }, - "end": { - "line": 17, - "character": 5 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoImportMeta.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoImportMeta.baseline deleted file mode 100644 index 83487e44ce..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoImportMeta.baseline +++ /dev/null @@ -1,57 +0,0 @@ -// === QuickInfo === -=== /foo.ts === -// /// -// /// -// import.meta; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) ImportMetaExpression.meta: ImportMeta -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 2, - "character": 2 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 84, - "LSPosition": { - "line": 2, - "character": 9 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) ImportMetaExpression.meta: ImportMeta\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 11 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc.baseline deleted file mode 100644 index c490bd95dc..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc.baseline +++ /dev/null @@ -1,179 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc.ts === -// abstract class BaseClass { -// /** -// * Useful description always applicable -// * -// * @returns {string} Useful description of return value always applicable. -// */ -// public static doSomethingUseful(stuff?: any): string { -// throw new Error('Must be implemented by subclass'); -// } -// -// /** -// * BaseClass.func1 -// * @param {any} stuff1 BaseClass.func1.stuff1 -// * @returns {void} BaseClass.func1.returns -// */ -// public static func1(stuff1: any): void { -// } -// -// /** -// * Applicable description always. -// */ -// public static readonly someProperty: string = 'general value'; -// } -// -// -// -// -// class SubClass extends BaseClass { -// -// /** -// * @inheritDoc -// * -// * @param {{ tiger: string; lion: string; }} [mySpecificStuff] Description of my specific parameter. -// */ -// public static doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string { -// ^^^^^^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) SubClass.doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string -// | ``` -// | -// | -// | *@inheritDoc* -// | -// | *@param* `mySpecificStuff` — Description of my specific parameter. -// | -// | ---------------------------------------------------------------------- -// let useful = ''; -// -// // do something useful to useful -// -// return useful; -// } -// -// /** -// * @inheritDoc -// * @param {any} stuff1 SubClass.func1.stuff1 -// * @returns {void} SubClass.func1.returns -// */ -// public static func1(stuff1: any): void { -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) SubClass.func1(stuff1: any): void -// | ``` -// | -// | -// | *@inheritDoc* -// | -// | *@param* `stuff1` — SubClass.func1.stuff1 -// | -// | -// | *@returns* — SubClass.func1.returns -// | -// | ---------------------------------------------------------------------- -// } -// -// /** -// * text over tag -// * @inheritDoc -// * text after tag -// */ -// public static readonly someProperty: string = 'specific to this class value' -// ^^^^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) SubClass.someProperty: string -// | ``` -// | text over tag -// | -// | *@inheritDoc* — text after tag -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 817, - "LSPosition": { - "line": 34, - "character": 18 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) SubClass.doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string\n```\n\n\n*@inheritDoc*\n\n*@param* `mySpecificStuff` — Description of my specific parameter.\n" - }, - "range": { - "start": { - "line": 34, - "character": 18 - }, - "end": { - "line": 34, - "character": 35 - } - } - } - }, - { - "marker": { - "Position": 1143, - "LSPosition": { - "line": 47, - "character": 18 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) SubClass.func1(stuff1: any): void\n```\n\n\n*@inheritDoc*\n\n*@param* `stuff1` — SubClass.func1.stuff1\n\n\n*@returns* — SubClass.func1.returns\n" - }, - "range": { - "start": { - "line": 47, - "character": 18 - }, - "end": { - "line": 47, - "character": 23 - } - } - } - }, - { - "marker": { - "Position": 1282, - "LSPosition": { - "line": 55, - "character": 27 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) SubClass.someProperty: string\n```\ntext over tag\n\n*@inheritDoc* — text after tag\n" - }, - "range": { - "start": { - "line": 55, - "character": 27 - }, - "end": { - "line": 55, - "character": 39 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc2.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc2.baseline deleted file mode 100644 index 4e8510c723..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc2.baseline +++ /dev/null @@ -1,55 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc2.ts === -// class Base { -// /** -// * Base.prop -// */ -// prop: T | undefined; -// } -// -// class SubClass extends Base { -// /** -// * @inheritdoc -// * SubClass.prop -// */ -// prop: T | undefined; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) SubClass.prop: T -// | ``` -// | -// | -// | *@inheritdoc* — SubClass.prop -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 173, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) SubClass.prop: T\n```\n\n\n*@inheritdoc* — SubClass.prop\n" - }, - "range": { - "start": { - "line": 12, - "character": 4 - }, - "end": { - "line": 12, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc3.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc3.baseline deleted file mode 100644 index 47214ef747..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc3.baseline +++ /dev/null @@ -1,56 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc3.ts === -// function getBaseClass() { -// return class Base { -// /** -// * Base.prop -// */ -// prop: string | undefined; -// } -// } -// class SubClass extends getBaseClass() { -// /** -// * @inheritdoc -// * SubClass.prop -// */ -// prop: string | undefined; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) SubClass.prop: string -// | ``` -// | -// | -// | *@inheritdoc* — SubClass.prop -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 237, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) SubClass.prop: string\n```\n\n\n*@inheritdoc* — SubClass.prop\n" - }, - "range": { - "start": { - "line": 13, - "character": 4 - }, - "end": { - "line": 13, - "character": 8 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc4.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc4.baseline deleted file mode 100644 index 51c71f1fff..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc4.baseline +++ /dev/null @@ -1,50 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc4.ts === -// var A: any; -// -// class B extends A { -// /** -// * @inheritdoc -// */ -// static value() { -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.value(): any -// | ``` -// | -// | -// | *@inheritdoc* -// | ---------------------------------------------------------------------- -// return undefined; -// } -// } -[ - { - "marker": { - "Position": 79, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" - }, - "range": { - "start": { - "line": 6, - "character": 11 - }, - "end": { - "line": 6, - "character": 16 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc5.baseline deleted file mode 100644 index 9c9e2c5f9b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc5.baseline +++ /dev/null @@ -1,50 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc5.js === -// function A() {} -// -// class B extends A { -// /** -// * @inheritdoc -// */ -// static value() { -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.value(): any -// | ``` -// | -// | -// | *@inheritdoc* -// | ---------------------------------------------------------------------- -// return undefined; -// } -// } -[ - { - "marker": { - "Position": 83, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" - }, - "range": { - "start": { - "line": 6, - "character": 11 - }, - "end": { - "line": 6, - "character": 16 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc6.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc6.baseline deleted file mode 100644 index 6e2695e85c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc6.baseline +++ /dev/null @@ -1,48 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc6.js === -// class B extends UNRESOLVED_VALUE_DEFINITELY_DOES_NOT_EXIST { -// /** -// * @inheritdoc -// */ -// static value() { -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.value(): any -// | ``` -// | -// | -// | *@inheritdoc* -// | ---------------------------------------------------------------------- -// return undefined; -// } -// } -[ - { - "marker": { - "Position": 107, - "LSPosition": { - "line": 4, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" - }, - "range": { - "start": { - "line": 4, - "character": 11 - }, - "end": { - "line": 4, - "character": 16 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocAtBeforeSpace.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocAtBeforeSpace.baseline deleted file mode 100644 index 8b0b1fecbb..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocAtBeforeSpace.baseline +++ /dev/null @@ -1,129 +0,0 @@ -// === QuickInfo === -=== /quickInfoJSDocAtBeforeSpace.ts === -// /** -// * @return Don't @ me -// */ -// function f() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(): void -// | ``` -// | -// | -// | *@return* — Don't @ me -// | -// | ---------------------------------------------------------------------- -// /** -// * @return One final @ -// */ -// function g() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function g(): void -// | ``` -// | -// | -// | *@return* — One final @ -// | -// | ---------------------------------------------------------------------- -// /** -// * @return An @ -// * But another line -// */ -// function h() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function h(): void -// | ``` -// | -// | -// | *@return* — An @ -// | But another line -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 39, - "LSPosition": { - "line": 3, - "character": 9 - }, - "Name": "f", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(): void\n```\n\n\n*@return* — Don't @ me\n" - }, - "range": { - "start": { - "line": 3, - "character": 9 - }, - "end": { - "line": 3, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 87, - "LSPosition": { - "line": 7, - "character": 9 - }, - "Name": "g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction g(): void\n```\n\n\n*@return* — One final @\n" - }, - "range": { - "start": { - "line": 7, - "character": 9 - }, - "end": { - "line": 7, - "character": 10 - } - } - } - }, - { - "marker": { - "Position": 148, - "LSPosition": { - "line": 12, - "character": 9 - }, - "Name": "h", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction h(): void\n```\n\n\n*@return* — An @\nBut another line\n" - }, - "range": { - "start": { - "line": 12, - "character": 9 - }, - "end": { - "line": 12, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocTags.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocTags.baseline deleted file mode 100644 index 61621b6159..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocTags.baseline +++ /dev/null @@ -1,486 +0,0 @@ -// === QuickInfo === -=== /quickInfoJSDocTags.ts === -// /** -// * This is class Foo. -// * @mytag comment1 comment2 -// */ -// class Foo { -// /** -// * This is the constructor. -// * @myjsdoctag this is a comment -// */ -// constructor(value: number) {} -// /** -// * method1 documentation -// * @mytag comment1 comment2 -// */ -// static method1() {} -// /** -// * @mytag -// */ -// method2() {} -// /** -// * @mytag comment1 comment2 -// */ -// property1: string; -// /** -// * @mytag1 some comments -// * some more comments about mytag1 -// * @mytag2 -// * here all the comments are on a new line -// * @mytag3 -// * @mytag -// */ -// property2: number; -// /** -// * @returns {number} a value -// */ -// method3(): number { return 3; } -// /** -// * @param {string} foo A value. -// * @returns {number} Another value -// * @mytag -// */ -// method4(foo: string): number { return 3; } -// /** @mytag */ -// method5() {} -// /** method documentation -// * @mytag a JSDoc tag -// */ -// newMethod() {} -// } -// var foo = new Foo(4); -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor Foo(value: number): Foo -// | ``` -// | This is the constructor. -// | -// | *@myjsdoctag* — this is a comment -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*10*/. -// | ---------------------------------------------------------------------- -// Foo.method1(); -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class Foo -// | ``` -// | This is class Foo. -// | -// | *@mytag* — comment1 comment2 -// | -// | ---------------------------------------------------------------------- -// ^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method1(): void -// | ``` -// | method1 documentation -// | -// | *@mytag* — comment1 comment2 -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*11*/. -// | ---------------------------------------------------------------------- -// foo.method2(); -// ^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method2(): void -// | ``` -// | -// | -// | *@mytag* -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*12*/. -// | ---------------------------------------------------------------------- -// foo.method3(); -// ^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method3(): number -// | ``` -// | -// | -// | *@returns* — a value -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*13*/. -// | ---------------------------------------------------------------------- -// foo.method4(); -// ^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method4(foo: string): number -// | ``` -// | -// | -// | *@param* `foo` — A value. -// | -// | -// | *@returns* — Another value -// | -// | -// | *@mytag* -// | ---------------------------------------------------------------------- -// foo.property1; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Foo.property1: string -// | ``` -// | -// | -// | *@mytag* — comment1 comment2 -// | -// | ---------------------------------------------------------------------- -// foo.property2; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Foo.property2: number -// | ``` -// | -// | -// | *@mytag1* — some comments -// | some more comments about mytag1 -// | -// | -// | *@mytag2* — here all the comments are on a new line -// | -// | -// | *@mytag3* -// | -// | *@mytag* -// | ---------------------------------------------------------------------- -// foo.method5(); -// ^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method5(): void -// | ``` -// | -// | -// | *@mytag* -// | ---------------------------------------------------------------------- -// foo.newMet -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*14*/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 977, - "LSPosition": { - "line": 49, - "character": 14 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor Foo(value: number): Foo\n```\nThis is the constructor.\n\n*@myjsdoctag* — this is a comment\n" - }, - "range": { - "start": { - "line": 49, - "character": 14 - }, - "end": { - "line": 49, - "character": 17 - } - } - } - }, - { - "marker": { - "Position": 981, - "LSPosition": { - "line": 49, - "character": 18 - }, - "Name": "10", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 985, - "LSPosition": { - "line": 50, - "character": 0 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass Foo\n```\nThis is class Foo.\n\n*@mytag* — comment1 comment2\n" - }, - "range": { - "start": { - "line": 50, - "character": 0 - }, - "end": { - "line": 50, - "character": 3 - } - } - } - }, - { - "marker": { - "Position": 989, - "LSPosition": { - "line": 50, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method1(): void\n```\nmethod1 documentation\n\n*@mytag* — comment1 comment2\n" - }, - "range": { - "start": { - "line": 50, - "character": 4 - }, - "end": { - "line": 50, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 997, - "LSPosition": { - "line": 50, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 1004, - "LSPosition": { - "line": 51, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method2(): void\n```\n\n\n*@mytag*" - }, - "range": { - "start": { - "line": 51, - "character": 4 - }, - "end": { - "line": 51, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 1012, - "LSPosition": { - "line": 51, - "character": 12 - }, - "Name": "12", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 1019, - "LSPosition": { - "line": 52, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method3(): number\n```\n\n\n*@returns* — a value\n" - }, - "range": { - "start": { - "line": 52, - "character": 4 - }, - "end": { - "line": 52, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 1027, - "LSPosition": { - "line": 52, - "character": 12 - }, - "Name": "13", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 1034, - "LSPosition": { - "line": 53, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method4(foo: string): number\n```\n\n\n*@param* `foo` — A value.\n\n\n*@returns* — Another value\n\n\n*@mytag*" - }, - "range": { - "start": { - "line": 53, - "character": 4 - }, - "end": { - "line": 53, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 1049, - "LSPosition": { - "line": 54, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Foo.property1: string\n```\n\n\n*@mytag* — comment1 comment2\n" - }, - "range": { - "start": { - "line": 54, - "character": 4 - }, - "end": { - "line": 54, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 1064, - "LSPosition": { - "line": 55, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Foo.property2: number\n```\n\n\n*@mytag1* — some comments\nsome more comments about mytag1\n\n\n*@mytag2* — here all the comments are on a new line\n\n\n*@mytag3*\n\n*@mytag*" - }, - "range": { - "start": { - "line": 55, - "character": 4 - }, - "end": { - "line": 55, - "character": 13 - } - } - } - }, - { - "marker": { - "Position": 1079, - "LSPosition": { - "line": 56, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method5(): void\n```\n\n\n*@mytag*" - }, - "range": { - "start": { - "line": 56, - "character": 4 - }, - "end": { - "line": 56, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 1100, - "LSPosition": { - "line": 57, - "character": 10 - }, - "Name": "14", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDoc.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDoc.baseline deleted file mode 100644 index 26419cae89..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDoc.baseline +++ /dev/null @@ -1,473 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDoc.ts === -// /** -// * A constant -// * @deprecated -// */ -// var foo = "foo"; -// -// /** -// * A function -// * @deprecated -// */ -// function fn() { } -// -// /** -// * A class -// * @deprecated -// */ -// class C { -// /** -// * A field -// * @deprecated -// */ -// field = "field"; -// -// /** -// * A getter -// * @deprecated -// */ -// get getter() { -// return; -// } -// -// /** -// * A method -// * @deprecated -// */ -// m() { } -// -// get a() { -// this.field; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) C.field: string -// | ``` -// | A field -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// this.getter; -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) C.getter: void -// | ``` -// | A getter -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// this.m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.m(): void -// | ``` -// | A method -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// foo; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var foo: string -// | ``` -// | A constant -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// C/; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class C -// | ``` -// | A class -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// fn(); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*5*/. -// | ---------------------------------------------------------------------- -// -// return 1; -// } -// -// set a(value: number) { -// this.field; -// ^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) C.field: string -// | ``` -// | A field -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// this.getter; -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) C.getter: void -// | ``` -// | A getter -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// this.m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.m(): void -// | ``` -// | A method -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// foo; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var foo: string -// | ``` -// | A constant -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// C; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class C -// | ``` -// | A class -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// fn(); -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function fn(): void -// | ``` -// | A function -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// } -// } -[ - { - "marker": { - "Position": 416, - "LSPosition": { - "line": 38, - "character": 18 - }, - "Name": "0", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) C.field: string\n```\nA field\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 38, - "character": 13 - }, - "end": { - "line": 38, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 437, - "LSPosition": { - "line": 39, - "character": 19 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) C.getter: void\n```\nA getter\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 39, - "character": 13 - }, - "end": { - "line": 39, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 453, - "LSPosition": { - "line": 40, - "character": 14 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.m(): void\n```\nA method\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 40, - "character": 13 - }, - "end": { - "line": 40, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 466, - "LSPosition": { - "line": 41, - "character": 11 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar foo: string\n```\nA constant\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 41, - "character": 8 - }, - "end": { - "line": 41, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 477, - "LSPosition": { - "line": 42, - "character": 9 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass C\n```\nA class\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 42, - "character": 8 - }, - "end": { - "line": 42, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 492, - "LSPosition": { - "line": 43, - "character": 12 - }, - "Name": "5", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 565, - "LSPosition": { - "line": 49, - "character": 18 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) C.field: string\n```\nA field\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 49, - "character": 13 - }, - "end": { - "line": 49, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 586, - "LSPosition": { - "line": 50, - "character": 19 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) C.getter: void\n```\nA getter\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 50, - "character": 13 - }, - "end": { - "line": 50, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 602, - "LSPosition": { - "line": 51, - "character": 14 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.m(): void\n```\nA method\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 51, - "character": 13 - }, - "end": { - "line": 51, - "character": 14 - } - } - } - }, - { - "marker": { - "Position": 615, - "LSPosition": { - "line": 52, - "character": 11 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar foo: string\n```\nA constant\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 52, - "character": 8 - }, - "end": { - "line": 52, - "character": 11 - } - } - } - }, - { - "marker": { - "Position": 626, - "LSPosition": { - "line": 53, - "character": 9 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass C\n```\nA class\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 53, - "character": 8 - }, - "end": { - "line": 53, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 638, - "LSPosition": { - "line": 54, - "character": 10 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction fn(): void\n```\nA function\n\n*@deprecated*" - }, - "range": { - "start": { - "line": 54, - "character": 8 - }, - "end": { - "line": 54, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocAlias.baseline deleted file mode 100644 index 19796c5e87..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocAlias.baseline +++ /dev/null @@ -1,22 +0,0 @@ -// === QuickInfo === -=== /b.ts === -// import { A } from "./a"; -// A() -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /**/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 1 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocGetterSetter.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocGetterSetter.baseline deleted file mode 100644 index b27e42bf2e..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocGetterSetter.baseline +++ /dev/null @@ -1,381 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocGetterSetter.ts === -// class A { -// /** -// * getter A -// * @returns return A -// */ -// get x(): string { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) A.x: string -// | ``` -// | getter A -// | -// | *@returns* — return A -// | -// | ---------------------------------------------------------------------- -// return ""; -// } -// /** -// * setter A -// * @param value foo A -// * @todo empty jsdoc -// */ -// set x(value) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) A.x: string -// | ``` -// | getter A -// | -// | *@returns* — return A -// | -// | ---------------------------------------------------------------------- -// } -// // override both getter and setter -// class B extends A { -// /** -// * getter B -// * @returns return B -// */ -// get x(): string { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) B.x: string -// | ``` -// | getter B -// | -// | *@returns* — return B -// | -// | ---------------------------------------------------------------------- -// return ""; -// } -// /** -// * setter B -// * @param value foo B -// */ -// set x(vale) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) B.x: string -// | ``` -// | getter B -// | -// | *@returns* — return B -// | -// | ---------------------------------------------------------------------- -// } -// // not override -// class C extends A { } -// // only override setter -// class D extends A { -// /** -// * setter D -// * @param value foo D -// */ -// set x(val: string) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) D.x: string -// | ``` -// | setter D -// | -// | *@param* `value` — foo D -// | -// | ---------------------------------------------------------------------- -// } -// new A().x = "1"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) A.x: string -// | ``` -// | getter A -// | -// | *@returns* — return A -// | -// | ---------------------------------------------------------------------- -// new B().x = "1"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) B.x: string -// | ``` -// | getter B -// | -// | *@returns* — return B -// | -// | ---------------------------------------------------------------------- -// new C().x = "1"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) A.x: string -// | ``` -// | getter A -// | -// | *@returns* — return A -// | -// | ---------------------------------------------------------------------- -// new D().x = "1"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) D.x: string -// | ``` -// | setter D -// | -// | *@param* `value` — foo D -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 5, - "character": 8 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" - }, - "range": { - "start": { - "line": 5, - "character": 8 - }, - "end": { - "line": 5, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 205, - "LSPosition": { - "line": 13, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" - }, - "range": { - "start": { - "line": 13, - "character": 8 - }, - "end": { - "line": 13, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 340, - "LSPosition": { - "line": 21, - "character": 8 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" - }, - "range": { - "start": { - "line": 21, - "character": 8 - }, - "end": { - "line": 21, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 445, - "LSPosition": { - "line": 28, - "character": 8 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" - }, - "range": { - "start": { - "line": 28, - "character": 8 - }, - "end": { - "line": 28, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 607, - "LSPosition": { - "line": 38, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) D.x: string\n```\nsetter D\n\n*@param* `value` — foo D\n" - }, - "range": { - "start": { - "line": 38, - "character": 8 - }, - "end": { - "line": 38, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 636, - "LSPosition": { - "line": 40, - "character": 8 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" - }, - "range": { - "start": { - "line": 40, - "character": 8 - }, - "end": { - "line": 40, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 653, - "LSPosition": { - "line": 41, - "character": 8 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" - }, - "range": { - "start": { - "line": 41, - "character": 8 - }, - "end": { - "line": 41, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 670, - "LSPosition": { - "line": 42, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" - }, - "range": { - "start": { - "line": 42, - "character": 8 - }, - "end": { - "line": 42, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 687, - "LSPosition": { - "line": 43, - "character": 8 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) D.x: string\n```\nsetter D\n\n*@param* `value` — foo D\n" - }, - "range": { - "start": { - "line": 43, - "character": 8 - }, - "end": { - "line": 43, - "character": 9 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocInheritage.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocInheritage.baseline deleted file mode 100644 index b8d48ea63c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocInheritage.baseline +++ /dev/null @@ -1,924 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocInheritage.ts === -// interface A { -// /** -// * @description A.foo1 -// */ -// foo1: number; -// /** -// * @description A.foo2 -// */ -// foo2: (para1: string) => number; -// } -// -// interface B { -// /** -// * @description B.foo1 -// */ -// foo1: number; -// /** -// * @description B.foo2 -// */ -// foo2: (para2: string) => number; -// } -// -// // implement multi interfaces with duplicate name -// // method for function signature -// class C implements A, B { -// foo1: number = 1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) C.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2(q: string) { return 1 } -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.foo2(q: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// // implement multi interfaces with duplicate name -// // property for function signature -// class D implements A, B { -// foo1: number = 1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) D.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2 = (q: string) => { return 1 } -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) D.foo2: (q: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// new C().foo1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) C.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new C().foo2; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.foo2(q: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new D().foo1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) D.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new D().foo2; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) D.foo2: (q: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// class Base1 { -// /** -// * @description Base1.foo1 -// */ -// foo1: number = 1; -// -// /** -// * -// * @param q Base1.foo2 parameter -// * @returns Base1.foo2 return -// */ -// foo2(q: string) { return 1 } -// } -// -// // extends class and implement interfaces with duplicate name -// // property override method -// class Drived1 extends Base1 implements A { -// foo1: number = 1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived1.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2(para1: string) { return 1 }; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Drived1.foo2(para1: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// // extends class and implement interfaces with duplicate name -// // method override method -// class Drived2 extends Base1 implements B { -// foo1: number = 1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived2.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2 = (para1: string) => { return 1; }; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived2.foo2: (para1: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// class Base2 { -// /** -// * @description Base2.foo1 -// */ -// foo1: number = 1; -// /** -// * -// * @param q Base2.foo2 parameter -// * @returns Base2.foo2 return -// */ -// foo2(q: string) { return 1 } -// } -// -// // extends class and implement interfaces with duplicate name -// // property override method -// class Drived3 extends Base2 implements A { -// foo1: number = 1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived3.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2(para1: string) { return 1 }; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Drived3.foo2(para1: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// // extends class and implement interfaces with duplicate name -// // method override method -// class Drived4 extends Base2 implements B { -// foo1: number = 1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived4.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2 = (para1: string) => { return 1; }; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived4.foo2: (para1: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// new Drived1().foo1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived1.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived1().foo2; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Drived1.foo2(para1: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived2().foo1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived2.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived2().foo2; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived2.foo2: (para1: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived3().foo1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived3.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived3().foo2; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Drived3.foo2(para1: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived4().foo1; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived4.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived4().foo2; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived4.foo2: (para1: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 429, - "LSPosition": { - "line": 25, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) C.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 25, - "character": 4 - }, - "end": { - "line": 25, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 451, - "LSPosition": { - "line": 26, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.foo2(q: string): number\n```\n" - }, - "range": { - "start": { - "line": 26, - "character": 4 - }, - "end": { - "line": 26, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 598, - "LSPosition": { - "line": 32, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) D.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 32, - "character": 4 - }, - "end": { - "line": 32, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 620, - "LSPosition": { - "line": 33, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) D.foo2: (q: string) => number\n```\n" - }, - "range": { - "start": { - "line": 33, - "character": 4 - }, - "end": { - "line": 33, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 666, - "LSPosition": { - "line": 36, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) C.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 36, - "character": 8 - }, - "end": { - "line": 36, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 680, - "LSPosition": { - "line": 37, - "character": 8 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.foo2(q: string): number\n```\n" - }, - "range": { - "start": { - "line": 37, - "character": 8 - }, - "end": { - "line": 37, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 694, - "LSPosition": { - "line": 38, - "character": 8 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) D.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 38, - "character": 8 - }, - "end": { - "line": 38, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 708, - "LSPosition": { - "line": 39, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) D.foo2: (q: string) => number\n```\n" - }, - "range": { - "start": { - "line": 39, - "character": 8 - }, - "end": { - "line": 39, - "character": 12 - } - } - } - }, - { - "marker": { - "Position": 1069, - "LSPosition": { - "line": 58, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived1.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 58, - "character": 4 - }, - "end": { - "line": 58, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 1091, - "LSPosition": { - "line": 59, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Drived1.foo2(para1: string): number\n```\n" - }, - "range": { - "start": { - "line": 59, - "character": 4 - }, - "end": { - "line": 59, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 1263, - "LSPosition": { - "line": 65, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived2.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 65, - "character": 4 - }, - "end": { - "line": 65, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 1285, - "LSPosition": { - "line": 66, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived2.foo2: (para1: string) => number\n```\n" - }, - "range": { - "start": { - "line": 66, - "character": 4 - }, - "end": { - "line": 66, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 1681, - "LSPosition": { - "line": 85, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived3.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 85, - "character": 4 - }, - "end": { - "line": 85, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 1703, - "LSPosition": { - "line": 86, - "character": 4 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Drived3.foo2(para1: string): number\n```\n" - }, - "range": { - "start": { - "line": 86, - "character": 4 - }, - "end": { - "line": 86, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 1875, - "LSPosition": { - "line": 92, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived4.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 92, - "character": 4 - }, - "end": { - "line": 92, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 1897, - "LSPosition": { - "line": 93, - "character": 4 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived4.foo2: (para1: string) => number\n```\n" - }, - "range": { - "start": { - "line": 93, - "character": 4 - }, - "end": { - "line": 93, - "character": 8 - } - } - } - }, - { - "marker": { - "Position": 1955, - "LSPosition": { - "line": 96, - "character": 14 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived1.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 96, - "character": 14 - }, - "end": { - "line": 96, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 1975, - "LSPosition": { - "line": 97, - "character": 14 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Drived1.foo2(para1: string): number\n```\n" - }, - "range": { - "start": { - "line": 97, - "character": 14 - }, - "end": { - "line": 97, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 1995, - "LSPosition": { - "line": 98, - "character": 14 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived2.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 98, - "character": 14 - }, - "end": { - "line": 98, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 2015, - "LSPosition": { - "line": 99, - "character": 14 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived2.foo2: (para1: string) => number\n```\n" - }, - "range": { - "start": { - "line": 99, - "character": 14 - }, - "end": { - "line": 99, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 2035, - "LSPosition": { - "line": 100, - "character": 14 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived3.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 100, - "character": 14 - }, - "end": { - "line": 100, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 2055, - "LSPosition": { - "line": 101, - "character": 14 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Drived3.foo2(para1: string): number\n```\n" - }, - "range": { - "start": { - "line": 101, - "character": 14 - }, - "end": { - "line": 101, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 2075, - "LSPosition": { - "line": 102, - "character": 14 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived4.foo1: number\n```\n" - }, - "range": { - "start": { - "line": 102, - "character": 14 - }, - "end": { - "line": 102, - "character": 18 - } - } - } - }, - { - "marker": { - "Position": 2095, - "LSPosition": { - "line": 103, - "character": 14 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived4.foo2: (para1: string) => number\n```\n" - }, - "range": { - "start": { - "line": 103, - "character": 14 - }, - "end": { - "line": 103, - "character": 18 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags1.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags1.baseline deleted file mode 100644 index bd24b08def..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags1.baseline +++ /dev/null @@ -1,51 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags1.ts === -// /** -// * Doc -// * @author Me -// * @augments {C} Augments it -// * @template T A template -// * @type {number | string} A type -// * @typedef {number | string} NumOrStr -// * @property {number} x The prop -// * @param {number} x The param -// * @returns The result -// * @see x (the parameter) -// */ -// function foo(x) {} -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 298, - "LSPosition": { - "line": 12, - "character": 9 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(x: any): void\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 9 - }, - "end": { - "line": 12, - "character": 12 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags10.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags10.baseline deleted file mode 100644 index ba57a2ddeb..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags10.baseline +++ /dev/null @@ -1,51 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags10.js === -// /** -// * @param {T1} a -// * @param {T2} a -// * @template T1,T2 Comment Text -// */ -// const foo = (a, b) => {}; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (a: T1, b: any) => void -// | ``` -// | -// | -// | *@param* `a` -// | -// | *@param* `a` -// | -// | *@template* `T1`, `T2` — Comment Text -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 80, - "LSPosition": { - "line": 5, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (a: T1, b: any) => void\n```\n\n\n*@param* `a`\n\n*@param* `a`\n\n*@template* `T1`, `T2` — Comment Text\n" - }, - "range": { - "start": { - "line": 5, - "character": 6 - }, - "end": { - "line": 5, - "character": 9 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags11.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags11.baseline deleted file mode 100644 index 5bded65551..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags11.baseline +++ /dev/null @@ -1,55 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags11.js === -// /** -// * @param {T1} a -// * @param {T2} b -// * @template {number} T1 Comment T1 -// * @template {number} T2 Comment T2 -// */ -// const foo = (a, b) => {}; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (a: T1, b: T2) => void -// | ``` -// | -// | -// | *@param* `a` -// | -// | *@param* `b` -// | -// | *@template* `T1` — Comment T1 -// | -// | -// | *@template* `T2` — Comment T2 -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 120, - "LSPosition": { - "line": 6, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (a: T1, b: T2) => void\n```\n\n\n*@param* `a`\n\n*@param* `b`\n\n*@template* `T1` — Comment T1\n\n\n*@template* `T2` — Comment T2\n" - }, - "range": { - "start": { - "line": 6, - "character": 6 - }, - "end": { - "line": 6, - "character": 9 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags12.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags12.baseline deleted file mode 100644 index 64f140eeab..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags12.baseline +++ /dev/null @@ -1,55 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags12.ts === -// /** -// * @param {Object} options the args object -// * @param {number} options.a first number -// * @param {number} options.b second number -// * @param {Function} callback the callback function -// * @returns {number} -// */ -// function f(options, callback = null) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(options: any, callback?: any): void -// | ``` -// | -// | -// | *@param* `options` — the args object -// | -// | -// | *@param* `callback` — the callback function -// | -// | -// | *@returns* -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 218, - "LSPosition": { - "line": 7, - "character": 9 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(options: any, callback?: any): void\n```\n\n\n*@param* `options` — the args object\n\n\n*@param* `callback` — the callback function\n\n\n*@returns*" - }, - "range": { - "start": { - "line": 7, - "character": 9 - }, - "end": { - "line": 7, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags14.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags14.baseline deleted file mode 100644 index c47cb3065f..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags14.baseline +++ /dev/null @@ -1,56 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags14.ts === -// /** -// * @param {Object} options the args object -// * @param {number} options.a first number -// * @param {number} options.b second number -// * @param {Object} options.c sub-object -// * @param {number} options.c.d third number -// * @param {Function} callback the callback function -// * @returns {number} -// */ -// function fn(options, callback = null) { } -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function fn(options: any, callback?: any): void -// | ``` -// | -// | -// | *@param* `options` — the args object -// | -// | -// | *@param* `callback` — the callback function -// | -// | -// | *@returns* -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 302, - "LSPosition": { - "line": 9, - "character": 9 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction fn(options: any, callback?: any): void\n```\n\n\n*@param* `options` — the args object\n\n\n*@param* `callback` — the callback function\n\n\n*@returns*" - }, - "range": { - "start": { - "line": 9, - "character": 9 - }, - "end": { - "line": 9, - "character": 11 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags15.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags15.baseline deleted file mode 100644 index 7d27be220b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags15.baseline +++ /dev/null @@ -1,121 +0,0 @@ -// === QuickInfo === -=== /b.js === -// import * as _a from "./a.js"; -// /** -// * @implements {_a.Foo} -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type Foo = { getName: _a.Bar; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// */ -// class C1 { } -// -// /** -// * @extends {_a.Foo} -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type Foo = { getName: _a.Bar; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// */ -// class C2 { } -// -// /** -// * @augments {_a.Foo} -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type Foo = { getName: _a.Bar; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// */ -// class C3 { } -[ - { - "marker": { - "Position": 56, - "LSPosition": { - "line": 2, - "character": 22 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype Foo = { getName: _a.Bar; }\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 19 - }, - "end": { - "line": 2, - "character": 22 - } - } - } - }, - { - "marker": { - "Position": 99, - "LSPosition": { - "line": 7, - "character": 19 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype Foo = { getName: _a.Bar; }\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 16 - }, - "end": { - "line": 7, - "character": 19 - } - } - } - }, - { - "marker": { - "Position": 143, - "LSPosition": { - "line": 12, - "character": 20 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype Foo = { getName: _a.Bar; }\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 17 - }, - "end": { - "line": 12, - "character": 20 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags16.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags16.baseline deleted file mode 100644 index 7207d867bb..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags16.baseline +++ /dev/null @@ -1,88 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags16.ts === -// class A { -// /** -// * Description text here. -// * -// * @virtual -// */ -// foo() { } -// } -// -// class B extends A { -// override foo() { } -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.foo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// class C extends B { -// override foo() { } -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.foo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 129, - "LSPosition": { - "line": 10, - "character": 13 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.foo(): void\n```\n" - }, - "range": { - "start": { - "line": 10, - "character": 13 - }, - "end": { - "line": 10, - "character": 16 - } - } - } - }, - { - "marker": { - "Position": 175, - "LSPosition": { - "line": 14, - "character": 13 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.foo(): void\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 13 - }, - "end": { - "line": 14, - "character": 16 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags3.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags3.baseline deleted file mode 100644 index 8543b36c5a..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags3.baseline +++ /dev/null @@ -1,55 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags3.ts === -// interface Foo { -// /** -// * comment -// * @author Me -// * @see x (the parameter) -// * @param {number} x - x comment -// * @param {number} y - y comment -// * @throws {Error} comment -// */ -// method(x: number, y: number): void; -// } -// -// class Bar implements Foo { -// method(): void { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Bar.method(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// throw new Error("Method not implemented."); -// } -// } -[ - { - "marker": { - "Position": 290, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Bar.method(): void\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 4 - }, - "end": { - "line": 13, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline deleted file mode 100644 index 2892d1f230..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline +++ /dev/null @@ -1,58 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags4.ts === -// class Foo { -// /** -// * comment -// * @author Me -// * @see x (the parameter) -// * @param {number} x - x comment -// * @param {number} y - y comment -// * @returns The result -// */ -// method(x: number, y: number): number { -// return x + y; -// } -// } -// -// class Bar extends Foo { -// method(x: number, y: number): number { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Bar.method(x: number, y: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// const res = super.method(x, y) + 100; -// return res; -// } -// } -[ - { - "marker": { - "Position": 309, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Bar.method(x: number, y: number): number\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 4 - }, - "end": { - "line": 15, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline deleted file mode 100644 index c94faf9bad..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline +++ /dev/null @@ -1,58 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags5.js === -// class Foo { -// /** -// * comment -// * @author Me -// * @see x (the parameter) -// * @param {number} x - x comment -// * @param {number} y - y comment -// * @returns The result -// */ -// method(x, y) { -// return x + y; -// } -// } -// -// class Bar extends Foo { -// method(x, y) { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Bar.method(x: any, y: any): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// const res = super.method(x, y) + 100; -// return res; -// } -// } -[ - { - "marker": { - "Position": 285, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\n" - }, - "range": { - "start": { - "line": 15, - "character": 4 - }, - "end": { - "line": 15, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags6.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags6.baseline deleted file mode 100644 index 63fb95c127..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags6.baseline +++ /dev/null @@ -1,61 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags6.js === -// class Foo { -// /** -// * comment -// * @author Me -// * @see x (the parameter) -// * @param {number} x - x comment -// * @param {number} y - y comment -// * @returns The result -// */ -// method(x, y) { -// return x + y; -// } -// } -// -// class Bar extends Foo { -// /** @inheritDoc */ -// method(x, y) { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Bar.method(x: any, y: any): number -// | ``` -// | -// | -// | *@inheritDoc* -// | ---------------------------------------------------------------------- -// const res = super.method(x, y) + 100; -// return res; -// } -// } -[ - { - "marker": { - "Position": 308, - "LSPosition": { - "line": 16, - "character": 4 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\n\n\n*@inheritDoc*" - }, - "range": { - "start": { - "line": 16, - "character": 4 - }, - "end": { - "line": 16, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags7.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags7.baseline deleted file mode 100644 index d78603cd65..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags7.baseline +++ /dev/null @@ -1,49 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags7.js === -// /** -// * @typedef {{ [x: string]: any, y: number }} Foo -// */ -// -// /** -// * @type {(t: T) => number} -// * @template T -// */ -// const foo = t => t.y; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (t: T) => number -// | ``` -// | -// | -// | *@template* `T` -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 116, - "LSPosition": { - "line": 8, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T`" - }, - "range": { - "start": { - "line": 8, - "character": 6 - }, - "end": { - "line": 8, - "character": 9 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags8.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags8.baseline deleted file mode 100644 index f778578cff..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags8.baseline +++ /dev/null @@ -1,49 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags8.js === -// /** -// * @typedef {{ [x: string]: any, y: number }} Foo -// */ -// -// /** -// * @type {(t: T) => number} -// * @template {Foo} T -// */ -// const foo = t => t.y; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (t: T) => number -// | ``` -// | -// | -// | *@template* `T` -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 122, - "LSPosition": { - "line": 8, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T`" - }, - "range": { - "start": { - "line": 8, - "character": 6 - }, - "end": { - "line": 8, - "character": 9 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags9.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags9.baseline deleted file mode 100644 index 568d8acf22..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags9.baseline +++ /dev/null @@ -1,50 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags9.js === -// /** -// * @typedef {{ [x: string]: any, y: number }} Foo -// */ -// -// /** -// * @type {(t: T) => number} -// * @template {Foo} T Comment Text -// */ -// const foo = t => t.y; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (t: T) => number -// | ``` -// | -// | -// | *@template* `T` — Comment Text -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 135, - "LSPosition": { - "line": 8, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T` — Comment Text\n" - }, - "range": { - "start": { - "line": 8, - "character": 6 - }, - "end": { - "line": 8, - "character": 9 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsCallback.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsCallback.baseline deleted file mode 100644 index 9d24adc4e0..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsCallback.baseline +++ /dev/null @@ -1,83 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsCallback.js === -// /** -// * @callback cb -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type cb = (x: string) => any -// | ``` -// | -// | ---------------------------------------------------------------------- -// * @param {string} x - x comment -// */ -// -// /** -// * @param {cb} bar -callback comment -// ^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type cb = (x: string) => any -// | ``` -// | -// | ---------------------------------------------------------------------- -// */ -// function foo(bar) { -// bar(bar); -// } -[ - { - "marker": { - "Position": 19, - "LSPosition": { - "line": 1, - "character": 15 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype cb = (x: string) => any\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 13 - }, - "end": { - "line": 1, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 73, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype cb = (x: string) => any\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 11 - }, - "end": { - "line": 6, - "character": 13 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload01.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload01.baseline deleted file mode 100644 index 842dcf0481..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload01.baseline +++ /dev/null @@ -1,84 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsFunctionOverload01.ts === -// /** -// * Doc foo -// */ -// declare function foo(): void; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | Doc foo -// | ---------------------------------------------------------------------- -// -// /** -// * Doc foo overloaded -// * @tag Tag text -// */ -// declare function foo(x: number): void -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | Doc foo -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 36, - "LSPosition": { - "line": 3, - "character": 17 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\nDoc foo" - }, - "range": { - "start": { - "line": 3, - "character": 17 - }, - "end": { - "line": 3, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 114, - "LSPosition": { - "line": 9, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\nDoc foo" - }, - "range": { - "start": { - "line": 9, - "character": 17 - }, - "end": { - "line": 9, - "character": 20 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload05.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload05.baseline deleted file mode 100644 index af4d5156a4..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload05.baseline +++ /dev/null @@ -1,80 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsFunctionOverload05.ts === -// declare function foo(): void; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /** -// * @tag Tag text -// */ -// declare function foo(x: number): void -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 0, - "character": 17 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" - }, - "range": { - "start": { - "line": 0, - "character": 17 - }, - "end": { - "line": 0, - "character": 20 - } - } - } - }, - { - "marker": { - "Position": 73, - "LSPosition": { - "line": 5, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 17 - }, - "end": { - "line": 5, - "character": 20 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsTypedef.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsTypedef.baseline deleted file mode 100644 index 05bd1f6763..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsTypedef.baseline +++ /dev/null @@ -1,87 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsTypedef.js === -// /** -// * Bar comment -// * @typedef {Object} Bar -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type Bar = { baz: string; qux: string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// * @property {string} baz - baz comment -// * @property {string} qux - qux comment -// */ -// -// /** -// * foo comment -// * @param {Bar} x - x comment -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type Bar = { baz: string; qux: string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// * @returns {Bar} -// */ -// function foo(x) { -// return x; -// } -[ - { - "marker": { - "Position": 40, - "LSPosition": { - "line": 2, - "character": 21 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype Bar = { baz: string; qux: string; }\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 21 - }, - "end": { - "line": 2, - "character": 24 - } - } - } - }, - { - "marker": { - "Position": 159, - "LSPosition": { - "line": 9, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype Bar = { baz: string; qux: string; }\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 11 - }, - "end": { - "line": 9, - "character": 14 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocThisTag.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocThisTag.baseline deleted file mode 100644 index 84ef16c621..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocThisTag.baseline +++ /dev/null @@ -1,44 +0,0 @@ -// === QuickInfo === -=== /a.ts === -// /** @this {number} */ -// function f() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(): void -// | ``` -// | -// | -// | *@this* -// | ---------------------------------------------------------------------- -// this -// } -[ - { - "marker": { - "Position": 32, - "LSPosition": { - "line": 1, - "character": 10 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(): void\n```\n\n\n*@this*" - }, - "range": { - "start": { - "line": 1, - "character": 9 - }, - "end": { - "line": 1, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink10.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink10.baseline deleted file mode 100644 index eeedf34a77..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink10.baseline +++ /dev/null @@ -1,42 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink10.ts === -// /** -// * start {@link https://vscode.dev/ | end} -// */ -// const a = () => 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const a: () => number -// | ``` -// | start [end](https://vscode.dev/) -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 57, - "LSPosition": { - "line": 3, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst a: () => number\n```\nstart [end](https://vscode.dev/)" - }, - "range": { - "start": { - "line": 3, - "character": 6 - }, - "end": { - "line": 3, - "character": 7 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink11.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink11.baseline deleted file mode 100644 index 970f6fc772..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink11.baseline +++ /dev/null @@ -1,50 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink11.ts === -// /** -// * {@link https://vscode.dev} -// * [link text]{https://vscode.dev} -// * {@link https://vscode.dev|link text} -// * {@link https://vscode.dev link text} -// */ -// function f() {} -// -// f(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(): void -// | ``` -// | [https://vscode.dev](https://vscode.dev) -// | [link text]{https://vscode.dev} -// | [link text](https://vscode.dev) -// | [link text](https://vscode.dev) -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 170, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(): void\n```\n[https://vscode.dev](https://vscode.dev)\n[link text]{https://vscode.dev}\n[link text](https://vscode.dev)\n[link text](https://vscode.dev)" - }, - "range": { - "start": { - "line": 8, - "character": 0 - }, - "end": { - "line": 8, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink5.baseline deleted file mode 100644 index 0d5b1aff12..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink5.baseline +++ /dev/null @@ -1,43 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink5.ts === -// const A = 123; -// /** -// * See {@link A| constant A} instead -// */ -// const B = 456; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const B: 456 -// | ``` -// | See [constant A](file:///quickInfoLink5.ts#1,7-1,8) instead -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 67, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst B: 456\n```\nSee [constant A](file:///quickInfoLink5.ts#1,7-1,8) instead" - }, - "range": { - "start": { - "line": 4, - "character": 6 - }, - "end": { - "line": 4, - "character": 7 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink6.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink6.baseline deleted file mode 100644 index 6148214554..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink6.baseline +++ /dev/null @@ -1,43 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink6.ts === -// const A = 123; -// /** -// * See {@link A |constant A} instead -// */ -// const B = 456; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const B: 456 -// | ``` -// | See [constant A](file:///quickInfoLink6.ts#1,7-1,8) instead -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 67, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst B: 456\n```\nSee [constant A](file:///quickInfoLink6.ts#1,7-1,8) instead" - }, - "range": { - "start": { - "line": 4, - "character": 6 - }, - "end": { - "line": 4, - "character": 7 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink7.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink7.baseline deleted file mode 100644 index 0d639bf361..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink7.baseline +++ /dev/null @@ -1,42 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink7.ts === -// /** -// * See {@link | } instead -// */ -// const B = 456; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const B: 456 -// | ``` -// | See | instead -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 46, - "LSPosition": { - "line": 3, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst B: 456\n```\nSee | instead" - }, - "range": { - "start": { - "line": 3, - "character": 6 - }, - "end": { - "line": 3, - "character": 7 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink8.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink8.baseline deleted file mode 100644 index e85f0f34cf..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink8.baseline +++ /dev/null @@ -1,43 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink8.ts === -// const A = 123; -// /** -// * See {@link A | constant A} instead -// */ -// const B = 456; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const B: 456 -// | ``` -// | See [constant A](file:///quickInfoLink8.ts#1,7-1,8) instead -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 67, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst B: 456\n```\nSee [constant A](file:///quickInfoLink8.ts#1,7-1,8) instead" - }, - "range": { - "start": { - "line": 4, - "character": 6 - }, - "end": { - "line": 4, - "character": 7 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink9.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink9.baseline deleted file mode 100644 index c8755dabad..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink9.baseline +++ /dev/null @@ -1,26 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink9.ts === -// type Foo = { -// /** -// * Text before {@link a} text after -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /**/. -// | ---------------------------------------------------------------------- -// */ -// c: (a: number) => void; -// } -[ - { - "marker": { - "Position": 47, - "LSPosition": { - "line": 2, - "character": 26 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoNestedExportEqualExportDefault.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoNestedExportEqualExportDefault.baseline deleted file mode 100644 index 9be707f098..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoNestedExportEqualExportDefault.baseline +++ /dev/null @@ -1,58 +0,0 @@ -// === QuickInfo === -=== /quickInfoNestedExportEqualExportDefault.ts === -// export = (state, messages) => { -// export default { -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) (Anonymous function).default: {} -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// } -// } -[ - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 1, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) (Anonymous function).default: {}\n```\n" - }, - "range": { - "start": { - "line": 1, - "character": 3 - }, - "end": { - "line": 1, - "character": 9 - } - } - } - }, - { - "marker": { - "Position": 49, - "LSPosition": { - "line": 1, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline deleted file mode 100644 index db99bd7f4d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline +++ /dev/null @@ -1,42 +0,0 @@ -// === QuickInfo === -=== /a.tsx === -// declare namespace JSX { -// interface IntrinsicElements { [elemName: string]: any; } -// } -//
; -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | any -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 3, - "character": 1 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nany\n```\n" - }, - "range": { - "start": { - "line": 3, - "character": 1 - }, - "end": { - "line": 3, - "character": 4 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline deleted file mode 100644 index 1e6e27d05e..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline +++ /dev/null @@ -1,80 +0,0 @@ -// === QuickInfo === -=== /a.tsx === -// declare namespace JSX { -// interface IntrinsicElements { -// [k: `foo${string}`]: any; -// [k: `foobar${string}`]: any; -// } -// } -// ; -// ^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | any -// | ``` -// | -// | ---------------------------------------------------------------------- -// ; -// ^^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | any -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 126, - "LSPosition": { - "line": 6, - "character": 1 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nany\n```\n" - }, - "range": { - "start": { - "line": 6, - "character": 1 - }, - "end": { - "line": 6, - "character": 7 - } - } - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 7, - "character": 1 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nany\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 1 - }, - "end": { - "line": 7, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxNamespacedName.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxNamespacedName.baseline deleted file mode 100644 index 8dbf51c068..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxNamespacedName.baseline +++ /dev/null @@ -1,21 +0,0 @@ -// === QuickInfo === -=== /a.tsx === -// ; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /**/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 1, - "LSPosition": { - "line": 0, - "character": 1 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnParameterProperties.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnParameterProperties.baseline deleted file mode 100644 index 953611479b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnParameterProperties.baseline +++ /dev/null @@ -1,97 +0,0 @@ -// === QuickInfo === -=== /quickInfoOnParameterProperties.ts === -// interface IFoo { -// /** this is the name of blabla -// * - use blabla -// * @example blabla -// */ -// name?: string; -// } -// -// // test1 should work -// class Foo implements IFoo { -// //public name: string = ''; -// constructor( -// public name: string, // documentation should leech and work ! -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Foo.name: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ) { -// } -// } -// -// // test2 work -// class Foo2 implements IFoo { -// public name: string = ''; // documentation leeched and work ! -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Foo2.name: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor( -// //public name: string, -// ) { -// } -// } -[ - { - "marker": { - "Position": 226, - "LSPosition": { - "line": 12, - "character": 13 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Foo.name: string\n```\n" - }, - "range": { - "start": { - "line": 12, - "character": 11 - }, - "end": { - "line": 12, - "character": 15 - } - } - } - }, - { - "marker": { - "Position": 347, - "LSPosition": { - "line": 19, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Foo2.name: string\n```\n" - }, - "range": { - "start": { - "line": 19, - "character": 9 - }, - "end": { - "line": 19, - "character": 13 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnThis5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnThis5.baseline deleted file mode 100644 index 2d7a07ec52..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnThis5.baseline +++ /dev/null @@ -1,210 +0,0 @@ -// === QuickInfo === -=== /quickInfoOnThis5.ts === -// const foo = { -// num: 0, -// f() { -// type Y = typeof this; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// type Z = typeof this.num; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | any -// | ``` -// | -// | ---------------------------------------------------------------------- -// }, -// g(this: number) { -// type X = typeof this; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) this: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// class Foo { -// num = 0; -// f() { -// type Y = typeof this; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | this -// | ``` -// | -// | ---------------------------------------------------------------------- -// type Z = typeof this.num; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | this -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// g(this: number) { -// type X = typeof this; -// ^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) this: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -[ - { - "marker": { - "Position": 62, - "LSPosition": { - "line": 3, - "character": 26 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 92, - "LSPosition": { - "line": 4, - "character": 26 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nany\n```\n" - }, - "range": { - "start": { - "line": 4, - "character": 24 - }, - "end": { - "line": 4, - "character": 28 - } - } - } - }, - { - "marker": { - "Position": 155, - "LSPosition": { - "line": 7, - "character": 26 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) this: number\n```\n" - }, - "range": { - "start": { - "line": 7, - "character": 24 - }, - "end": { - "line": 7, - "character": 28 - } - } - } - }, - { - "marker": { - "Position": 228, - "LSPosition": { - "line": 13, - "character": 26 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nthis\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 24 - }, - "end": { - "line": 13, - "character": 28 - } - } - } - }, - { - "marker": { - "Position": 258, - "LSPosition": { - "line": 14, - "character": 26 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nthis\n```\n" - }, - "range": { - "start": { - "line": 14, - "character": 24 - }, - "end": { - "line": 14, - "character": 28 - } - } - } - }, - { - "marker": { - "Position": 320, - "LSPosition": { - "line": 17, - "character": 26 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) this: number\n```\n" - }, - "range": { - "start": { - "line": 17, - "character": 24 - }, - "end": { - "line": 17, - "character": 28 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline deleted file mode 100644 index d15c818fb1..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline +++ /dev/null @@ -1,63 +0,0 @@ -// === QuickInfo === -=== /quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts === -// export type DocumentFilter = { -// /** A language id, like `typescript`. */ -// language: string; -// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ -// scheme?: string; -// /** A glob pattern, like `*.{ts,js}`. */ -// pattern?: string; -// } | { -// /** A language id, like `typescript`. */ -// language?: string; -// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ -// scheme: string; -// /** A glob pattern, like `*.{ts,js}`. */ -// pattern?: string; -// } | { -// /** A language id, like `typescript`. */ -// language?: string; -// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ -// scheme?: string; -// /** A glob pattern, like `*.{ts,js}`. */ -// pattern: string; -// }; -// -// declare let x: DocumentFilter; -// x.language -// ^^^^^^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) language: string -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 746, - "LSPosition": { - "line": 24, - "character": 2 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) language: string\n```\n" - }, - "range": { - "start": { - "line": 24, - "character": 2 - }, - "end": { - "line": 24, - "character": 10 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline deleted file mode 100644 index e4a3c884b1..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline +++ /dev/null @@ -1,48 +0,0 @@ -// === QuickInfo === -=== /something.js === -// var C = function () { } -// /** -// * The prototype method. -// * @param {string} a Parameter definition. -// */ -// function f(a) {} -// C.prototype.m = f; -// -// var x = new C(); -// x.m(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: any -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 155, - "LSPosition": { - "line": 9, - "character": 1 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: any\n```\n" - }, - "range": { - "start": { - "line": 9, - "character": 0 - }, - "end": { - "line": 9, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoSatisfiesTag.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoSatisfiesTag.baseline deleted file mode 100644 index f7553d1e8d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoSatisfiesTag.baseline +++ /dev/null @@ -1,42 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** @satisfies {number} comment */ -// const a = 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const a: 1 -// | ``` -// | -// | -// | *@satisfies* — comment -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 1, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst a: 1\n```\n\n\n*@satisfies* — comment " - }, - "range": { - "start": { - "line": 1, - "character": 6 - }, - "end": { - "line": 1, - "character": 7 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoTypedefTag.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoTypedefTag.baseline deleted file mode 100644 index f472279f2c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoTypedefTag.baseline +++ /dev/null @@ -1,128 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** -// * The typedef tag should not appear in the quickinfo. -// * @typedef {{ foo: 'foo' }} Foo -// */ -// function f() { } -// f() -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** -// * A removed comment -// * @tag Usage shows that non-param tags in comments explain the typedef instead of using it -// * @typedef {{ nope: any }} Nope not here -// * @tag comment 2 -// */ -// function g() { } -// g() -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function g(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** -// * The whole thing is kept -// * @param {Local} keep -// * @typedef {{ local: any }} Local kept too -// * @returns {void} also kept -// */ -// function h(keep) { } -// h({ nope: 1 }) -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function h(keep: Local): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 114, - "LSPosition": { - "line": 5, - "character": 1 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(): void\n```\n" - }, - "range": { - "start": { - "line": 5, - "character": 0 - }, - "end": { - "line": 5, - "character": 1 - } - } - } - }, - { - "marker": { - "Position": 316, - "LSPosition": { - "line": 13, - "character": 1 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction g(): void\n```\n" - }, - "range": { - "start": { - "line": 13, - "character": 0 - }, - "end": { - "line": 13, - "character": 1 - } - } - } - }, - { - "marker": { - "Position": 472, - "LSPosition": { - "line": 21, - "character": 1 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction h(keep: Local): void\n```\n" - }, - "range": { - "start": { - "line": 21, - "character": 0 - }, - "end": { - "line": 21, - "character": 1 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoUniqueSymbolJsDoc.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoUniqueSymbolJsDoc.baseline deleted file mode 100644 index 9bbc1db294..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoUniqueSymbolJsDoc.baseline +++ /dev/null @@ -1,41 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** @type {unique symbol} */ -// const foo = Symbol(); -// foo -// ^^^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: typeof foo -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 54, - "LSPosition": { - "line": 2, - "character": 3 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: typeof foo\n```\n" - }, - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 3 - } - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline deleted file mode 100644 index 5b85fe7115..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline +++ /dev/null @@ -1,94 +0,0 @@ -// === SignatureHelp === -=== /jsDocDontBreakWithNamespaces.js === -// /** -// * @returns {module:@nodefuel/web~Webserver~wsServer#hello} Websocket server object -// */ -// function foo() { } -// foo(''); -// ^ -// | ---------------------------------------------------------------------- -// | foo(): module -// | ---------------------------------------------------------------------- -// -// /** -// * @type {module:xxxxx} */ -// */ -// function bar() { } -// bar(''); -// ^ -// | ---------------------------------------------------------------------- -// | bar(): void -// | ---------------------------------------------------------------------- -// -// /** @type {function(module:xxxx, module:xxxx): module:xxxxx} */ -// function zee() { } -// zee(''); -// ^ -// | ---------------------------------------------------------------------- -// | zee(): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 117, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "foo", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "foo(): module", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 181, - "LSPosition": { - "line": 10, - "character": 6 - }, - "Name": "bar", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "bar(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 274, - "LSPosition": { - "line": 14, - "character": 6 - }, - "Name": "zee", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "zee(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline deleted file mode 100644 index 4738ec0a65..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline +++ /dev/null @@ -1,54 +0,0 @@ -// === SignatureHelp === -=== /Foo.js === -// /** -// * Filters a path based on a regexp or glob pattern. -// * @param {String} basePath The base path where the search will be performed. -// * @param {String} pattern A string defining a regexp of a glob pattern. -// * @param {String} type The search pattern type, can be a regexp or a glob. -// * @param {Object} options A object containing options to the search. -// * @return {Array} A list containing the filtered paths. -// */ -// function pathFilter(basePath, pattern, type, options){ -// //... -// } -// pathFilter('foo', 'bar', 'baz', {}); -// ^ -// | ---------------------------------------------------------------------- -// | pathFilter(**basePath: String**, pattern: String, type: String, options: Object): any[] -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 489, - "LSPosition": { - "line": 11, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "pathFilter(basePath: String, pattern: String, type: String, options: Object): any[]", - "parameters": [ - { - "label": "basePath: String" - }, - { - "label": "pattern: String" - }, - { - "label": "type: String" - }, - { - "label": "options: Object" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline deleted file mode 100644 index bb6a6fdfb8..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline +++ /dev/null @@ -1,164 +0,0 @@ -// === SignatureHelp === -=== /Foo.js === -// /** -// * @param {string} p1 - A string param -// * @param {string?} p2 - An optional param -// * @param {string} [p3] - Another optional param -// * @param {string} [p4="test"] - An optional param with a default value -// */ -// function f1(p1, p2, p3, p4){} -// f1('foo', 'bar', 'baz', 'qux'); -// ^ -// | ---------------------------------------------------------------------- -// | f1(**p1: string**, p2: string, p3?: string, p4?: string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | f1(p1: string, **p2: string**, p3?: string, p4?: string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | f1(p1: string, p2: string, **p3?: string**, p4?: string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | f1(p1: string, p2: string, p3?: string, **p4?: string**): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 244, - "LSPosition": { - "line": 7, - "character": 3 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", - "parameters": [ - { - "label": "p1: string" - }, - { - "label": "p2: string" - }, - { - "label": "p3?: string" - }, - { - "label": "p4?: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 251, - "LSPosition": { - "line": 7, - "character": 10 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", - "parameters": [ - { - "label": "p1: string" - }, - { - "label": "p2: string" - }, - { - "label": "p3?: string" - }, - { - "label": "p4?: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 258, - "LSPosition": { - "line": 7, - "character": 17 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", - "parameters": [ - { - "label": "p1: string" - }, - { - "label": "p2: string" - }, - { - "label": "p3?: string" - }, - { - "label": "p4?: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 265, - "LSPosition": { - "line": 7, - "character": 24 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", - "parameters": [ - { - "label": "p1: string" - }, - { - "label": "p2: string" - }, - { - "label": "p3?: string" - }, - { - "label": "p4?: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 3 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline deleted file mode 100644 index e41f00da6a..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline +++ /dev/null @@ -1,25 +0,0 @@ -// === SignatureHelp === -=== /jsDocSignature_43394.ts === -// /** -// * @typedef {Object} Foo -// * @property {number} ... -// * @typedef {number} Bar -// ^ -// | ---------------------------------------------------------------------- -// | No signaturehelp at /**/. -// | ---------------------------------------------------------------------- -// */ -[ - { - "marker": { - "Position": 58, - "LSPosition": { - "line": 3, - "character": 3 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline deleted file mode 100644 index 2043548ae2..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline +++ /dev/null @@ -1,46 +0,0 @@ -// === SignatureHelp === -=== /dummy.js === -// /** -// * Find an item -// * @template T -// * @param {T[]} l -// * @param {T} x -// * @returns {?T} The names of the found item(s). -// */ -// function find(l, x) { -// } -// find(''); -// ^ -// | ---------------------------------------------------------------------- -// | find(**l: unknown[]**, x: unknown): unknown -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 154, - "LSPosition": { - "line": 9, - "character": 7 - }, - "Name": "", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "find(l: unknown[], x: unknown): unknown", - "parameters": [ - { - "label": "l: unknown[]" - }, - { - "label": "x: unknown" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline b/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline deleted file mode 100644 index 18ca3b5576..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline +++ /dev/null @@ -1,100 +0,0 @@ -// === SignatureHelp === -=== /a.js === -// /** -// * First overload -// * @overload -// * @param {number} a -// * @returns {void} -// */ -// -// /** -// * Second overload -// * @overload -// * @param {string} a -// * @returns {void} -// */ -// -// /** -// * @param {string | number} a -// * @returns {void} -// */ -// function f(a) {} -// -// f(1); -// ^ -// | ---------------------------------------------------------------------- -// | f(**a: number**): void -// | ---------------------------------------------------------------------- -// f(""); -// ^ -// | ---------------------------------------------------------------------- -// | f(**a: string**): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 238, - "LSPosition": { - "line": 20, - "character": 2 - }, - "Name": "a", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: number): void", - "parameters": [ - { - "label": "a: number" - } - ] - }, - { - "label": "f(a: string): void", - "parameters": [ - { - "label": "a: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 244, - "LSPosition": { - "line": 21, - "character": 2 - }, - "Name": "b", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: number): void", - "parameters": [ - { - "label": "a: number" - } - ] - }, - { - "label": "f(a: string): void", - "parameters": [ - { - "label": "a: string" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline b/testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline deleted file mode 100644 index 3de5364af9..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline +++ /dev/null @@ -1,85 +0,0 @@ -// === SignatureHelp === -=== /trailingCommaSignatureHelp.ts === -// function str(n: number): string; -// /** -// * Stringifies a number with radix -// * @param radix The radix -// */ -// function str(n: number, radix: number): string; -// function str(n: number, radix?: number): string { return ""; } -// -// str(1, ) -// ^ -// | ---------------------------------------------------------------------- -// | str(n: number, **radix: number**): string -// | ---------------------------------------------------------------------- -// -// declare function f(a: T): T; -// f(2, ); -// ^ -// | ---------------------------------------------------------------------- -// | f(a: 2): 2 -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 221, - "LSPosition": { - "line": 8, - "character": 7 - }, - "Name": "a", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "str(n: number): string", - "parameters": [ - { - "label": "n: number" - } - ] - }, - { - "label": "str(n: number, radix: number): string", - "parameters": [ - { - "label": "n: number" - }, - { - "label": "radix: number" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 261, - "LSPosition": { - "line": 11, - "character": 5 - }, - "Name": "b", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: 2): 2", - "parameters": [ - { - "label": "a: 2" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js b/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js index 3a50a28422..a641c88257 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js @@ -129,8 +129,41 @@ function getSomeOtherTags(node: ts.Node) { * https://github.com/vega/ts-json-schema-generator * Please log a "breaking change" issue for any API breaking change affecting this issue */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ts = require("typescript"); +const ts = __importStar(require("typescript")); // excerpted from https://github.com/YousefED/typescript-json-schema // (converted from a method and modified; for example, `this: any` to compensate, among other changes) function parseCommentsIntoDefinition(symbol, definition, otherAnnotations) { diff --git a/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js.diff index 9989abff97..467a8e297e 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js.diff @@ -1,11 +1,11 @@ --- old.APISample_jsdoc.js +++ new.APISample_jsdoc.js -@@= skipped -129, +129 lines =@@ - * Please log a "breaking change" issue for any API breaking change affecting this issue - */ +@@= skipped -162, +162 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ts = require("typescript"); -+const ts = require("typescript"); +-var ts = __importStar(require("typescript")); ++const ts = __importStar(require("typescript")); // excerpted from https://github.com/YousefED/typescript-json-schema // (converted from a method and modified; for example, `this: any` to compensate, among other changes) function parseCommentsIntoDefinition(symbol, definition, otherAnnotations) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/APISample_linter.js b/testdata/baselines/reference/submodule/compiler/APISample_linter.js index be5ae7c4e5..b0ed0df036 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_linter.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_linter.js @@ -79,9 +79,42 @@ fileNames.forEach(fileName => { * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#traversing-the-ast-with-a-little-linter * Please log a "breaking change" issue for any API breaking change affecting this issue */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.delint = delint; -const ts = require("typescript"); +const ts = __importStar(require("typescript")); function delint(sourceFile) { delintNode(sourceFile); function delintNode(node) { diff --git a/testdata/baselines/reference/submodule/compiler/APISample_linter.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_linter.js.diff index 5bc028be72..6104a135e1 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_linter.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_linter.js.diff @@ -1,11 +1,11 @@ --- old.APISample_linter.js +++ new.APISample_linter.js -@@= skipped -80, +80 lines =@@ - */ +@@= skipped -113, +113 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.delint = delint; --var ts = require("typescript"); -+const ts = require("typescript"); +-var ts = __importStar(require("typescript")); ++const ts = __importStar(require("typescript")); function delint(sourceFile) { delintNode(sourceFile); function delintNode(node) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/APISample_transform.js b/testdata/baselines/reference/submodule/compiler/APISample_transform.js index 8f1b028cad..38b2ccd05a 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_transform.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_transform.js @@ -31,8 +31,41 @@ console.log(JSON.stringify(result)); * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-simple-transform-function * Please log a "breaking change" issue for any API breaking change affecting this issue */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ts = require("typescript"); +const ts = __importStar(require("typescript")); const source = "let x: string = 'string'"; let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS }); console.log(JSON.stringify(result)); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_transform.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_transform.js.diff index 353eeba78c..c50c35bc1e 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_transform.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_transform.js.diff @@ -1,11 +1,11 @@ --- old.APISample_transform.js +++ new.APISample_transform.js -@@= skipped -31, +31 lines =@@ - * Please log a "breaking change" issue for any API breaking change affecting this issue - */ +@@= skipped -64, +64 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ts = require("typescript"); -+const ts = require("typescript"); +-var ts = __importStar(require("typescript")); ++const ts = __importStar(require("typescript")); const source = "let x: string = 'string'"; let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS }); console.log(JSON.stringify(result)); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/APISample_watcher.js b/testdata/baselines/reference/submodule/compiler/APISample_watcher.js index 4b2a3906c9..cf3cef8653 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_watcher.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_watcher.js @@ -126,8 +126,41 @@ watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS }); * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#incremental-build-support-using-the-language-services * Please log a "breaking change" issue for any API breaking change affecting this issue */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ts = require("typescript"); +const ts = __importStar(require("typescript")); function watch(rootFileNames, options) { const files = {}; // initialize the list of files diff --git a/testdata/baselines/reference/submodule/compiler/APISample_watcher.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_watcher.js.diff index 9b572eae42..4ed94ed8ed 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_watcher.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_watcher.js.diff @@ -1,11 +1,11 @@ --- old.APISample_watcher.js +++ new.APISample_watcher.js -@@= skipped -126, +126 lines =@@ - * Please log a "breaking change" issue for any API breaking change affecting this issue - */ +@@= skipped -159, +159 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ts = require("typescript"); -+const ts = require("typescript"); +-var ts = __importStar(require("typescript")); ++const ts = __importStar(require("typescript")); function watch(rootFileNames, options) { const files = {}; // initialize the list of files \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/allowImportClausesToMergeWithTypes.js b/testdata/baselines/reference/submodule/compiler/allowImportClausesToMergeWithTypes.js index 1e09e38fb1..e86a028cd1 100644 --- a/testdata/baselines/reference/submodule/compiler/allowImportClausesToMergeWithTypes.js +++ b/testdata/baselines/reference/submodule/compiler/allowImportClausesToMergeWithTypes.js @@ -35,18 +35,24 @@ exports.zzz = 123; exports.default = exports.zzz; //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; -const b_1 = require("./b"); +const b_1 = __importDefault(require("./b")); exports.default = b_1.default; const x = { x: "" }; b_1.default; //// [index.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); const x = { x: "" }; a_1.default; -const b_1 = require("./b"); +const b_1 = __importDefault(require("./b")); b_1.default; const y = x; diff --git a/testdata/baselines/reference/submodule/compiler/allowImportClausesToMergeWithTypes.js.diff b/testdata/baselines/reference/submodule/compiler/allowImportClausesToMergeWithTypes.js.diff index 467ca1a9f4..c17a90fb7f 100644 --- a/testdata/baselines/reference/submodule/compiler/allowImportClausesToMergeWithTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/allowImportClausesToMergeWithTypes.js.diff @@ -1,22 +1,23 @@ --- old.allowImportClausesToMergeWithTypes.js +++ new.allowImportClausesToMergeWithTypes.js -@@= skipped -36, +36 lines =@@ - "use strict"; +@@= skipped -39, +39 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; --var b_1 = require("./b"); -+const b_1 = require("./b"); +-var b_1 = __importDefault(require("./b")); ++const b_1 = __importDefault(require("./b")); exports.default = b_1.default; const x = { x: "" }; b_1.default; - //// [index.js] - "use strict"; +@@= skipped -10, +10 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); const x = { x: "" }; a_1.default; --var b_1 = require("./b"); -+const b_1 = require("./b"); +-var b_1 = __importDefault(require("./b")); ++const b_1 = __importDefault(require("./b")); b_1.default; const y = x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports1.js b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports1.js index e5d33c74b7..eecb8bb251 100644 --- a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports1.js +++ b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports1.js @@ -12,7 +12,10 @@ export class Foo { //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; -const b_1 = require("./b"); +const b_1 = __importDefault(require("./b")); exports.x = new b_1.default.Foo(); diff --git a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports1.js.diff b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports1.js.diff index a91de62581..b6cac15f88 100644 --- a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports1.js.diff @@ -1,9 +1,9 @@ --- old.allowSyntheticDefaultImports1.js +++ new.allowSyntheticDefaultImports1.js -@@= skipped -13, +13 lines =@@ - "use strict"; +@@= skipped -16, +16 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; --var b_1 = require("./b"); -+const b_1 = require("./b"); +-var b_1 = __importDefault(require("./b")); ++const b_1 = __importDefault(require("./b")); exports.x = new b_1.default.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports4.js b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports4.js index 95657fc337..a6ec766c41 100644 --- a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports4.js +++ b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports4.js @@ -13,7 +13,10 @@ export var x = new Foo(); //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; -const b_1 = require("./b"); +const b_1 = __importDefault(require("./b")); exports.x = new b_1.default(); diff --git a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports4.js.diff b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports4.js.diff index 87f7d45681..db2b69074d 100644 --- a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports4.js.diff +++ b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports4.js.diff @@ -1,9 +1,9 @@ --- old.allowSyntheticDefaultImports4.js +++ new.allowSyntheticDefaultImports4.js -@@= skipped -14, +14 lines =@@ - "use strict"; +@@= skipped -17, +17 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; --var b_1 = require("./b"); -+const b_1 = require("./b"); +-var b_1 = __importDefault(require("./b")); ++const b_1 = __importDefault(require("./b")); exports.x = new b_1.default(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports9.js b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports9.js index 14cdb26657..cc99033f91 100644 --- a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports9.js +++ b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports9.js @@ -12,7 +12,10 @@ Foo.foo(); //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const b_1 = require("./b"); +const b_1 = __importDefault(require("./b")); b_1.default.bar(); b_1.default.foo(); diff --git a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports9.js.diff b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports9.js.diff index 95bd4aba2c..6b4e52d16e 100644 --- a/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports9.js.diff +++ b/testdata/baselines/reference/submodule/compiler/allowSyntheticDefaultImports9.js.diff @@ -1,10 +1,10 @@ --- old.allowSyntheticDefaultImports9.js +++ new.allowSyntheticDefaultImports9.js -@@= skipped -12, +12 lines =@@ - //// [a.js] - "use strict"; +@@= skipped -15, +15 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var b_1 = require("./b"); -+const b_1 = require("./b"); +-var b_1 = __importDefault(require("./b")); ++const b_1 = __importDefault(require("./b")); b_1.default.bar(); b_1.default.foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.errors.txt b/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.errors.txt deleted file mode 100644 index eae1ba1ed9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.errors.txt +++ /dev/null @@ -1,23 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -a.ts(3,13): error TS1100: Invalid use of 'arguments' in strict mode. -b.ts(3,13): error TS1100: Invalid use of 'arguments' in strict mode. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (1 errors) ==== - module M { - export function f() { - var arguments = []; - ~~~~~~~~~ -!!! error TS1100: Invalid use of 'arguments' in strict mode. - } - } - -==== b.ts (1 errors) ==== - module M { - export function f2() { - var arguments = []; - ~~~~~~~~~ -!!! error TS1100: Invalid use of 'arguments' in strict mode. - } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.symbols b/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.symbols deleted file mode 100644 index 43ad606a40..0000000000 --- a/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.symbols +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/compiler/alwaysStrictModule2.ts] //// - -=== a.ts === -module M { ->M : Symbol(M, Decl(a.ts, 0, 0), Decl(b.ts, 0, 0)) - - export function f() { ->f : Symbol(f, Decl(a.ts, 0, 10)) - - var arguments = []; ->arguments : Symbol(arguments, Decl(a.ts, 2, 11)) - } -} - -=== b.ts === -module M { ->M : Symbol(M, Decl(a.ts, 0, 0), Decl(b.ts, 0, 0)) - - export function f2() { ->f2 : Symbol(f2, Decl(b.ts, 0, 10)) - - var arguments = []; ->arguments : Symbol(arguments, Decl(b.ts, 2, 11)) - } -} diff --git a/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.types b/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.types deleted file mode 100644 index ddf13f957e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/alwaysStrictModule2.types +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/compiler/alwaysStrictModule2.ts] //// - -=== a.ts === -module M { ->M : typeof M - - export function f() { ->f : () => void - - var arguments = []; ->arguments : any[] ->[] : undefined[] - } -} - -=== b.ts === -module M { ->M : typeof M - - export function f2() { ->f2 : () => void - - var arguments = []; ->arguments : any[] ->[] : undefined[] - } -} diff --git a/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.errors.txt b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.errors.txt new file mode 100644 index 0000000000..f8f07f10a8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.errors.txt @@ -0,0 +1,19 @@ +ambientExternalModuleInAnotherExternalModule.ts(4,16): error TS2664: Invalid module name in augmentation, module 'ext' cannot be found. +ambientExternalModuleInAnotherExternalModule.ts(9,22): error TS2307: Cannot find module 'ext' or its corresponding type declarations. + + +==== ambientExternalModuleInAnotherExternalModule.ts (2 errors) ==== + class D { } + export = D; + + declare module "ext" { + ~~~~~ +!!! error TS2664: Invalid module name in augmentation, module 'ext' cannot be found. + export class C { } + } + + // Cannot resolve this ext module reference + import ext = require("ext"); + ~~~~~ +!!! error TS2307: Cannot find module 'ext' or its corresponding type declarations. + var x = ext; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.js b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.js new file mode 100644 index 0000000000..44a551ba0f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts] //// + +//// [ambientExternalModuleInAnotherExternalModule.ts] +class D { } +export = D; + +declare module "ext" { + export class C { } +} + +// Cannot resolve this ext module reference +import ext = require("ext"); +var x = ext; + +//// [ambientExternalModuleInAnotherExternalModule.js] +"use strict"; +class D { +} +// Cannot resolve this ext module reference +const ext = require("ext"); +var x = ext; +module.exports = D; diff --git a/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.js.diff b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.js.diff new file mode 100644 index 0000000000..a0ce2f8517 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.js.diff @@ -0,0 +1,10 @@ +--- old.ambientExternalModuleInAnotherExternalModule.js ++++ new.ambientExternalModuleInAnotherExternalModule.js +@@= skipped -16, +16 lines =@@ + class D { + } + // Cannot resolve this ext module reference +-var ext = require("ext"); ++const ext = require("ext"); + var x = ext; + module.exports = D; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.symbols b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.symbols new file mode 100644 index 0000000000..e8d7e6ebd3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts] //// + +=== ambientExternalModuleInAnotherExternalModule.ts === +class D { } +>D : Symbol(D, Decl(ambientExternalModuleInAnotherExternalModule.ts, 0, 0)) + +export = D; +>D : Symbol(D, Decl(ambientExternalModuleInAnotherExternalModule.ts, 0, 0)) + +declare module "ext" { +>"ext" : Symbol("ext", Decl(ambientExternalModuleInAnotherExternalModule.ts, 1, 11)) + + export class C { } +>C : Symbol(C, Decl(ambientExternalModuleInAnotherExternalModule.ts, 3, 22)) +} + +// Cannot resolve this ext module reference +import ext = require("ext"); +>ext : Symbol(ext, Decl(ambientExternalModuleInAnotherExternalModule.ts, 5, 1)) + +var x = ext; +>x : Symbol(x, Decl(ambientExternalModuleInAnotherExternalModule.ts, 9, 3)) +>ext : Symbol(ext, Decl(ambientExternalModuleInAnotherExternalModule.ts, 5, 1)) + diff --git a/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.types b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.types new file mode 100644 index 0000000000..2f25de3758 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/ambientExternalModuleInAnotherExternalModule.types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts] //// + +=== ambientExternalModuleInAnotherExternalModule.ts === +class D { } +>D : D + +export = D; +>D : D + +declare module "ext" { +>"ext" : typeof import("ext") + + export class C { } +>C : C +} + +// Cannot resolve this ext module reference +import ext = require("ext"); +>ext : any + +var x = ext; +>x : any +>ext : any + diff --git a/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport1.js b/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport1.js index abd758c14e..11f0c6c93f 100644 --- a/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport1.js +++ b/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport1.js @@ -33,14 +33,80 @@ Debug.assert(true); Object.defineProperty(exports, "__esModule", { value: true }); //// [ts.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Debug = void 0; -const Debug = require("../debug"); +const Debug = __importStar(require("../debug")); exports.Debug = Debug; //// [foo.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ts = require("./_namespaces/ts"); +const ts = __importStar(require("./_namespaces/ts")); const ts_1 = require("./_namespaces/ts"); ts.Debug.assert(true); ts_1.Debug.assert(true); @@ -64,8 +130,41 @@ Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(require("../../core/_namespaces/ts"), exports); //// [bar.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ts = require("./_namespaces/ts"); +const ts = __importStar(require("./_namespaces/ts")); const ts_1 = require("./_namespaces/ts"); ts.Debug.assert(true); ts_1.Debug.assert(true); diff --git a/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport1.js.diff b/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport1.js.diff index 7f6eaed5b7..79c4471801 100644 --- a/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport1.js.diff @@ -1,29 +1,32 @@ --- old.assertionFunctionWildcardImport1.js +++ new.assertionFunctionWildcardImport1.js -@@= skipped -34, +34 lines =@@ - "use strict"; +@@= skipped -67, +67 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Debug = void 0; --var Debug = require("../debug"); -+const Debug = require("../debug"); +-var Debug = __importStar(require("../debug")); ++const Debug = __importStar(require("../debug")); exports.Debug = Debug; //// [foo.js] "use strict"; +@@= skipped -38, +38 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ts = require("./_namespaces/ts"); +-var ts = __importStar(require("./_namespaces/ts")); -var ts_1 = require("./_namespaces/ts"); -+const ts = require("./_namespaces/ts"); ++const ts = __importStar(require("./_namespaces/ts")); +const ts_1 = require("./_namespaces/ts"); ts.Debug.assert(true); ts_1.Debug.assert(true); //// [ts.js] -@@= skipped -30, +30 lines =@@ - //// [bar.js] - "use strict"; +@@= skipped -58, +58 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ts = require("./_namespaces/ts"); +-var ts = __importStar(require("./_namespaces/ts")); -var ts_1 = require("./_namespaces/ts"); -+const ts = require("./_namespaces/ts"); ++const ts = __importStar(require("./_namespaces/ts")); +const ts_1 = require("./_namespaces/ts"); ts.Debug.assert(true); ts_1.Debug.assert(true); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport2.js b/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport2.js index 17ad223160..25edf1e2fe 100644 --- a/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport2.js +++ b/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport2.js @@ -31,8 +31,41 @@ function isNonNullable(obj) { } //// [test.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const asserts = require("./asserts"); +const asserts = __importStar(require("./asserts")); function test(obj) { asserts.isNonNullable(obj); obj.trim(); diff --git a/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport2.js.diff b/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport2.js.diff index dde0e4fc73..bf6949f146 100644 --- a/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/assertionFunctionWildcardImport2.js.diff @@ -1,11 +1,11 @@ --- old.assertionFunctionWildcardImport2.js +++ new.assertionFunctionWildcardImport2.js -@@= skipped -31, +31 lines =@@ - //// [test.js] - "use strict"; +@@= skipped -64, +64 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var asserts = require("./asserts"); -+const asserts = require("./asserts"); +-var asserts = __importStar(require("./asserts")); ++const asserts = __importStar(require("./asserts")); function test(obj) { asserts.isNonNullable(obj); obj.trim(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/asyncImportNestedYield.js b/testdata/baselines/reference/submodule/compiler/asyncImportNestedYield.js index 31ea3415b2..5ed024a4a5 100644 --- a/testdata/baselines/reference/submodule/compiler/asyncImportNestedYield.js +++ b/testdata/baselines/reference/submodule/compiler/asyncImportNestedYield.js @@ -6,6 +6,39 @@ async function* foo() { } //// [asyncImportNestedYield.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); async function* foo() { - Promise.resolve(`${(await Promise.resolve(`${yield "foo"}`).then(s => require(s))).default}`).then(s => require(s)); + Promise.resolve(`${(await Promise.resolve(`${yield "foo"}`).then(s => __importStar(require(s)))).default}`).then(s => __importStar(require(s))); } diff --git a/testdata/baselines/reference/submodule/compiler/asyncImportNestedYield.js.diff b/testdata/baselines/reference/submodule/compiler/asyncImportNestedYield.js.diff index 4e0ed2c606..db8e2cd81b 100644 --- a/testdata/baselines/reference/submodule/compiler/asyncImportNestedYield.js.diff +++ b/testdata/baselines/reference/submodule/compiler/asyncImportNestedYield.js.diff @@ -1,9 +1,9 @@ --- old.asyncImportNestedYield.js +++ new.asyncImportNestedYield.js -@@= skipped -5, +5 lines =@@ - } - - //// [asyncImportNestedYield.js] +@@= skipped -38, +38 lines =@@ + return result; + }; + })(); -var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } -var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); @@ -19,8 +19,8 @@ -}; -function foo() { - return __asyncGenerator(this, arguments, function* foo_1() { -- Promise.resolve("".concat((yield __await(Promise.resolve("".concat(yield yield __await("foo"))).then(function (s) { return require(s); }))).default)).then(function (s) { return require(s); }); +- Promise.resolve("".concat((yield __await(Promise.resolve("".concat(yield yield __await("foo"))).then(function (s) { return __importStar(require(s)); }))).default)).then(function (s) { return __importStar(require(s)); }); - }); +async function* foo() { -+ Promise.resolve(`${(await Promise.resolve(`${yield "foo"}`).then(s => require(s))).default}`).then(s => require(s)); ++ Promise.resolve(`${(await Promise.resolve(`${yield "foo"}`).then(s => __importStar(require(s)))).default}`).then(s => __importStar(require(s))); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.errors.txt b/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.errors.txt new file mode 100644 index 0000000000..390b069468 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.errors.txt @@ -0,0 +1,25 @@ +file2.ts(5,16): error TS2671: Cannot augment module './file1' because it resolves to a non-module entity. +file3.ts(3,8): error TS2503: Cannot find namespace 'x'. + + +==== file3.ts (1 errors) ==== + import x = require("./file1"); + import "./file2"; + let a: x.A; // should not work + ~ +!!! error TS2503: Cannot find namespace 'x'. +==== file1.ts (0 errors) ==== + var x = 1; + export = x; + +==== file2.ts (1 errors) ==== + import x = require("./file1"); + + // augmentation for './file1' + // should error since './file1' does not have namespace meaning + declare module "./file1" { + ~~~~~~~~~ +!!! error TS2671: Cannot augment module './file1' because it resolves to a non-module entity. + interface A { a } + } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.js b/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.js new file mode 100644 index 0000000000..f5d241153b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/augmentExportEquals1.ts] //// + +//// [file1.ts] +var x = 1; +export = x; + +//// [file2.ts] +import x = require("./file1"); + +// augmentation for './file1' +// should error since './file1' does not have namespace meaning +declare module "./file1" { + interface A { a } +} + +//// [file3.ts] +import x = require("./file1"); +import "./file2"; +let a: x.A; // should not work + +//// [file1.js] +"use strict"; +var x = 1; +module.exports = x; +//// [file2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [file3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +require("./file2"); +let a; // should not work diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.symbols b/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.symbols new file mode 100644 index 0000000000..2a49028ee9 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/augmentExportEquals1.ts] //// + +=== file3.ts === +import x = require("./file1"); +>x : Symbol(x, Decl(file3.ts, 0, 0)) + +import "./file2"; +let a: x.A; // should not work +>a : Symbol(a, Decl(file3.ts, 2, 3)) +>x : Symbol(x) +>A : Symbol(x.A) + +=== file1.ts === +var x = 1; +>x : Symbol(x, Decl(file1.ts, 0, 3)) + +export = x; +>x : Symbol(x, Decl(file1.ts, 0, 3)) + +=== file2.ts === +import x = require("./file1"); +>x : Symbol(x, Decl(file2.ts, 0, 0)) + +// augmentation for './file1' +// should error since './file1' does not have namespace meaning +declare module "./file1" { +>"./file1" : Symbol("./file1", Decl(file2.ts, 0, 30)) + + interface A { a } +>A : Symbol(A, Decl(file2.ts, 4, 26)) +>a : Symbol(A.a, Decl(file2.ts, 5, 17)) +} + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.types b/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.types new file mode 100644 index 0000000000..46bd32b257 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.types @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/augmentExportEquals1.ts] //// + +=== file3.ts === +import x = require("./file1"); +>x : number + +import "./file2"; +let a: x.A; // should not work +>a : x.A +>x : any + +=== file1.ts === +var x = 1; +>x : number +>1 : 1 + +export = x; +>x : number + +=== file2.ts === +import x = require("./file1"); +>x : number + +// augmentation for './file1' +// should error since './file1' does not have namespace meaning +declare module "./file1" { +>"./file1" : any + + interface A { a } +>a : any +} + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.errors.txt.diff new file mode 100644 index 0000000000..6344d4199e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.errors.txt.diff @@ -0,0 +1,28 @@ +--- old.augmentExportEquals2.errors.txt ++++ new.augmentExportEquals2.errors.txt +@@= skipped -0, +0 lines =@@ +-file2.ts(4,16): error TS2671: Cannot augment module './file1' because it resolves to a non-module entity. +-file3.ts(3,8): error TS2503: Cannot find namespace 'x'. +- +- +-==== file3.ts (1 errors) ==== +- import x = require("./file1"); +- import "./file2"; +- let a: x.A; // should not work +- ~ +-!!! error TS2503: Cannot find namespace 'x'. +-==== file1.ts (0 errors) ==== +- function foo() {} +- export = foo; +- +-==== file2.ts (1 errors) ==== +- import x = require("./file1"); +- +- // should error since './file1' does not have namespace meaning +- declare module "./file1" { +- ~~~~~~~~~ +-!!! error TS2671: Cannot augment module './file1' because it resolves to a non-module entity. +- interface A { a } +- } +- ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.js b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.js new file mode 100644 index 0000000000..bd4ceebc7b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/augmentExportEquals2.ts] //// + +//// [file1.ts] +function foo() {} +export = foo; + +//// [file2.ts] +import x = require("./file1"); + +// should error since './file1' does not have namespace meaning +declare module "./file1" { + interface A { a } +} + +//// [file3.ts] + +//// [file3.ts] +import x = require("./file1"); +import "./file2"; +let a: x.A; // should not work + +//// [file3.js] diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.js.diff b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.js.diff new file mode 100644 index 0000000000..163783e142 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.js.diff @@ -0,0 +1,24 @@ +--- old.augmentExportEquals2.js ++++ new.augmentExportEquals2.js +@@= skipped -12, +12 lines =@@ + } + + //// [file3.ts] ++ ++//// [file3.ts] + import x = require("./file1"); + import "./file2"; + let a: x.A; // should not work + +-//// [file1.js] +-"use strict"; +-function foo() { } +-module.exports = foo; +-//// [file2.js] +-"use strict"; +-Object.defineProperty(exports, "__esModule", { value: true }); + //// [file3.js] +-"use strict"; +-Object.defineProperty(exports, "__esModule", { value: true }); +-require("./file2"); +-let a; // should not work \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.symbols b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.symbols new file mode 100644 index 0000000000..1f758cf8e6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/augmentExportEquals2.ts] //// + +=== file3.ts === + +import x = require("./file1"); +import "./file2"; +let a: x.A; // should not work +=== file3.ts === + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.symbols.diff b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.symbols.diff new file mode 100644 index 0000000000..9794f4388d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.symbols.diff @@ -0,0 +1,36 @@ +--- old.augmentExportEquals2.symbols ++++ new.augmentExportEquals2.symbols +@@= skipped -0, +0 lines =@@ + //// [tests/cases/compiler/augmentExportEquals2.ts] //// + + === file3.ts === ++ + import x = require("./file1"); +->x : Symbol(x, Decl(file3.ts, 0, 0)) +- + import "./file2"; + let a: x.A; // should not work +->a : Symbol(a, Decl(file3.ts, 2, 3)) +->x : Symbol(x) +->A : Symbol(x.A) +- +-=== file1.ts === +-function foo() {} +->foo : Symbol(foo, Decl(file1.ts, 0, 0)) +- +-export = foo; +->foo : Symbol(foo, Decl(file1.ts, 0, 0)) +- +-=== file2.ts === +-import x = require("./file1"); +->x : Symbol(x, Decl(file2.ts, 0, 0)) +- +-// should error since './file1' does not have namespace meaning +-declare module "./file1" { +->"./file1" : Symbol("./file1", Decl(file2.ts, 0, 30)) +- +- interface A { a } +->A : Symbol(A, Decl(file2.ts, 3, 26)) +->a : Symbol(A.a, Decl(file2.ts, 4, 17)) +-} ++=== file3.ts === diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.types b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.types new file mode 100644 index 0000000000..1f758cf8e6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.types @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/augmentExportEquals2.ts] //// + +=== file3.ts === + +import x = require("./file1"); +import "./file2"; +let a: x.A; // should not work +=== file3.ts === + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.types.diff b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.types.diff new file mode 100644 index 0000000000..da4189e2e6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals2.types.diff @@ -0,0 +1,34 @@ +--- old.augmentExportEquals2.types ++++ new.augmentExportEquals2.types +@@= skipped -0, +0 lines =@@ + //// [tests/cases/compiler/augmentExportEquals2.ts] //// + + === file3.ts === ++ + import x = require("./file1"); +->x : () => void +- + import "./file2"; + let a: x.A; // should not work +->a : x.A +->x : any +- +-=== file1.ts === +-function foo() {} +->foo : () => void +- +-export = foo; +->foo : () => void +- +-=== file2.ts === +-import x = require("./file1"); +->x : () => void +- +-// should error since './file1' does not have namespace meaning +-declare module "./file1" { +->"./file1" : any +- +- interface A { a } +->a : any +-} ++=== file3.ts === diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.js b/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.js new file mode 100644 index 0000000000..8fb564804f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.js @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/augmentExportEquals3.ts] //// + +//// [file1.ts] +function foo() {} +namespace foo { + export var v = 1; +} +export = foo; + +//// [file2.ts] +import x = require("./file1"); +x.b = 1; + +// OK - './file1' is a namespace +declare module "./file1" { + interface A { a } + let b: number; +} + +//// [file3.ts] +import * as x from "./file1"; +import "./file2"; +let a: x.A; +let b = x.b; + +//// [file1.js] +"use strict"; +function foo() { } +(function (foo) { + foo.v = 1; +})(foo || (foo = {})); +module.exports = foo; +//// [file2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const x = require("./file1"); +x.b = 1; +//// [file3.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +const x = __importStar(require("./file1")); +require("./file2"); +let a; +let b = x.b; diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.js.diff b/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.js.diff new file mode 100644 index 0000000000..898c818540 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.js.diff @@ -0,0 +1,20 @@ +--- old.augmentExportEquals3.js ++++ new.augmentExportEquals3.js +@@= skipped -32, +32 lines =@@ + //// [file2.js] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-var x = require("./file1"); ++const x = require("./file1"); + x.b = 1; + //// [file3.js] + "use strict"; +@@= skipped -38, +38 lines =@@ + }; + })(); + Object.defineProperty(exports, "__esModule", { value: true }); +-var x = __importStar(require("./file1")); ++const x = __importStar(require("./file1")); + require("./file2"); + let a; + let b = x.b; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.symbols b/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.symbols new file mode 100644 index 0000000000..765e4342e4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/augmentExportEquals3.ts] //// + +=== file1.ts === +function foo() {} +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8)) + +namespace foo { +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8)) + + export var v = 1; +>v : Symbol(v, Decl(file1.ts, 2, 14)) +} +export = foo; +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8)) + +=== file2.ts === +import x = require("./file1"); +>x : Symbol(x, Decl(file2.ts, 0, 0)) + +x.b = 1; +>x.b : Symbol(x.b, Decl(file2.ts, 6, 7)) +>x : Symbol(x, Decl(file2.ts, 0, 0)) +>b : Symbol(x.b, Decl(file2.ts, 6, 7)) + +// OK - './file1' is a namespace +declare module "./file1" { +>"./file1" : Symbol(x, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8)) + + interface A { a } +>A : Symbol(A, Decl(file2.ts, 4, 26)) +>a : Symbol(A.a, Decl(file2.ts, 5, 17)) + + let b: number; +>b : Symbol(b, Decl(file2.ts, 6, 7)) +} + +=== file3.ts === +import * as x from "./file1"; +>x : Symbol(x, Decl(file3.ts, 0, 6)) + +import "./file2"; +let a: x.A; +>a : Symbol(a, Decl(file3.ts, 2, 3)) +>x : Symbol(x, Decl(file3.ts, 0, 6)) +>A : Symbol(x.A, Decl(file2.ts, 4, 26)) + +let b = x.b; +>b : Symbol(b, Decl(file3.ts, 3, 3)) +>x.b : Symbol(x.b, Decl(file2.ts, 6, 7)) +>x : Symbol(x, Decl(file3.ts, 0, 6)) +>b : Symbol(x.b, Decl(file2.ts, 6, 7)) + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.types b/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.types new file mode 100644 index 0000000000..d5274780fb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals3.types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/augmentExportEquals3.ts] //// + +=== file1.ts === +function foo() {} +>foo : typeof import("file1.ts") + +namespace foo { +>foo : typeof import("file1.ts") + + export var v = 1; +>v : number +>1 : 1 +} +export = foo; +>foo : typeof import("file1.ts") + +=== file2.ts === +import x = require("./file1"); +>x : typeof x + +x.b = 1; +>x.b = 1 : 1 +>x.b : number +>x : typeof x +>b : number +>1 : 1 + +// OK - './file1' is a namespace +declare module "./file1" { +>"./file1" : typeof x + + interface A { a } +>a : any + + let b: number; +>b : number +} + +=== file3.ts === +import * as x from "./file1"; +>x : typeof x + +import "./file2"; +let a: x.A; +>a : x.A +>x : any + +let b = x.b; +>b : number +>x.b : number +>x : typeof x +>b : number + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.js b/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.js new file mode 100644 index 0000000000..411afefd7a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.js @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/augmentExportEquals4.ts] //// + +//// [file1.ts] +class foo {} +namespace foo { + export var v = 1; +} +export = foo; + +//// [file2.ts] +import x = require("./file1"); +x.b = 1; + +// OK - './file1' is a namespace +declare module "./file1" { + interface A { a } + let b: number; +} + +//// [file3.ts] +import * as x from "./file1"; +import "./file2"; +let a: x.A; +let b = x.b; + +//// [file1.js] +"use strict"; +class foo { +} +(function (foo) { + foo.v = 1; +})(foo || (foo = {})); +module.exports = foo; +//// [file2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const x = require("./file1"); +x.b = 1; +//// [file3.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +const x = __importStar(require("./file1")); +require("./file2"); +let a; +let b = x.b; diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.js.diff b/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.js.diff new file mode 100644 index 0000000000..a781171be5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.js.diff @@ -0,0 +1,20 @@ +--- old.augmentExportEquals4.js ++++ new.augmentExportEquals4.js +@@= skipped -33, +33 lines =@@ + //// [file2.js] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-var x = require("./file1"); ++const x = require("./file1"); + x.b = 1; + //// [file3.js] + "use strict"; +@@= skipped -38, +38 lines =@@ + }; + })(); + Object.defineProperty(exports, "__esModule", { value: true }); +-var x = __importStar(require("./file1")); ++const x = __importStar(require("./file1")); + require("./file2"); + let a; + let b = x.b; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.symbols b/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.symbols new file mode 100644 index 0000000000..1c03321f69 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/augmentExportEquals4.ts] //// + +=== file1.ts === +class foo {} +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8)) + +namespace foo { +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8)) + + export var v = 1; +>v : Symbol(v, Decl(file1.ts, 2, 14)) +} +export = foo; +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8)) + +=== file2.ts === +import x = require("./file1"); +>x : Symbol(x, Decl(file2.ts, 0, 0)) + +x.b = 1; +>x.b : Symbol(x.b, Decl(file2.ts, 6, 7)) +>x : Symbol(x, Decl(file2.ts, 0, 0)) +>b : Symbol(x.b, Decl(file2.ts, 6, 7)) + +// OK - './file1' is a namespace +declare module "./file1" { +>"./file1" : Symbol(x, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8)) + + interface A { a } +>A : Symbol(A, Decl(file2.ts, 4, 26)) +>a : Symbol(A.a, Decl(file2.ts, 5, 17)) + + let b: number; +>b : Symbol(b, Decl(file2.ts, 6, 7)) +} + +=== file3.ts === +import * as x from "./file1"; +>x : Symbol(x, Decl(file3.ts, 0, 6)) + +import "./file2"; +let a: x.A; +>a : Symbol(a, Decl(file3.ts, 2, 3)) +>x : Symbol(x, Decl(file3.ts, 0, 6)) +>A : Symbol(x.A, Decl(file2.ts, 4, 26)) + +let b = x.b; +>b : Symbol(b, Decl(file3.ts, 3, 3)) +>x.b : Symbol(x.b, Decl(file2.ts, 6, 7)) +>x : Symbol(x, Decl(file3.ts, 0, 6)) +>b : Symbol(x.b, Decl(file2.ts, 6, 7)) + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.types b/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.types new file mode 100644 index 0000000000..d0ff6e614d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals4.types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/augmentExportEquals4.ts] //// + +=== file1.ts === +class foo {} +>foo : import("file1.ts") + +namespace foo { +>foo : typeof import("file1.ts") + + export var v = 1; +>v : number +>1 : 1 +} +export = foo; +>foo : import("file1.ts") + +=== file2.ts === +import x = require("./file1"); +>x : typeof x + +x.b = 1; +>x.b = 1 : 1 +>x.b : number +>x : typeof x +>b : number +>1 : 1 + +// OK - './file1' is a namespace +declare module "./file1" { +>"./file1" : typeof x + + interface A { a } +>a : any + + let b: number; +>b : number +} + +=== file3.ts === +import * as x from "./file1"; +>x : typeof x + +import "./file2"; +let a: x.A; +>a : x.A +>x : any + +let b = x.b; +>b : number +>x.b : number +>x : typeof x +>b : number + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.js b/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.js new file mode 100644 index 0000000000..c316fdb891 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.js @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/augmentExportEquals5.ts] //// + +//// [express.d.ts] +declare module Express { + export interface Request { } + export interface Response { } + export interface Application { } +} + +declare module "express" { + function e(): e.Express; + namespace e { + interface IRoute { + all(...handler: RequestHandler[]): IRoute; + } + + interface IRouterMatcher { + (name: string|RegExp, ...handlers: RequestHandler[]): T; + } + + interface IRouter extends RequestHandler { + route(path: string): IRoute; + } + + export function Router(options?: any): Router; + + export interface Router extends IRouter {} + + interface Errback { (err: Error): void; } + + interface Request extends Express.Request { + + get (name: string): string; + } + + interface Response extends Express.Response { + charset: string; + } + + interface ErrorRequestHandler { + (err: any, req: Request, res: Response, next: Function): any; + } + + interface RequestHandler { + (req: Request, res: Response, next: Function): any; + } + + interface Handler extends RequestHandler {} + + interface RequestParamHandler { + (req: Request, res: Response, next: Function, param: any): any; + } + + interface Application extends IRouter, Express.Application { + routes: any; + } + + interface Express extends Application { + createApplication(): Application; + } + + var static: any; + } + + export = e; +} + +//// [augmentation.ts] +/// +import * as e from "express"; +declare module "express" { + interface Request { + id: number; + } +} + +//// [consumer.ts] +import { Request } from "express"; +import "./augmentation"; +let x: Request; +const y = x.id; + +//// [augmentation.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [consumer.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +require("./augmentation"); +let x; +const y = x.id; diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.symbols b/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.symbols new file mode 100644 index 0000000000..b2bcb83b6f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.symbols @@ -0,0 +1,198 @@ +//// [tests/cases/compiler/augmentExportEquals5.ts] //// + +=== express.d.ts === +declare module Express { +>Express : Symbol(Express, Decl(express.d.ts, 0, 0)) + + export interface Request { } +>Request : Symbol(Request, Decl(express.d.ts, 0, 24)) + + export interface Response { } +>Response : Symbol(Response, Decl(express.d.ts, 1, 32)) + + export interface Application { } +>Application : Symbol(Application, Decl(express.d.ts, 2, 33)) +} + +declare module "express" { +>"express" : Symbol("express", Decl(express.d.ts, 4, 1)) + + function e(): e.Express; +>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29)) +>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29)) +>Express : Symbol(e.Express, Decl(express.d.ts, 52, 9)) + + namespace e { +>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29)) + + interface IRoute { +>IRoute : Symbol(IRoute, Decl(express.d.ts, 8, 17)) + + all(...handler: RequestHandler[]): IRoute; +>all : Symbol(IRoute.all, Decl(express.d.ts, 9, 26)) +>handler : Symbol(handler, Decl(express.d.ts, 10, 16)) +>RequestHandler : Symbol(RequestHandler, Decl(express.d.ts, 38, 9)) +>IRoute : Symbol(IRoute, Decl(express.d.ts, 8, 17)) + } + + interface IRouterMatcher { +>IRouterMatcher : Symbol(IRouterMatcher, Decl(express.d.ts, 11, 9)) +>T : Symbol(T, Decl(express.d.ts, 13, 33)) + + (name: string|RegExp, ...handlers: RequestHandler[]): T; +>name : Symbol(name, Decl(express.d.ts, 14, 13)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>handlers : Symbol(handlers, Decl(express.d.ts, 14, 33)) +>RequestHandler : Symbol(RequestHandler, Decl(express.d.ts, 38, 9)) +>T : Symbol(T, Decl(express.d.ts, 13, 33)) + } + + interface IRouter extends RequestHandler { +>IRouter : Symbol(IRouter, Decl(express.d.ts, 15, 9)) +>T : Symbol(T, Decl(express.d.ts, 17, 26)) +>RequestHandler : Symbol(RequestHandler, Decl(express.d.ts, 38, 9)) + + route(path: string): IRoute; +>route : Symbol(IRouter.route, Decl(express.d.ts, 17, 53)) +>path : Symbol(path, Decl(express.d.ts, 18, 18)) +>IRoute : Symbol(IRoute, Decl(express.d.ts, 8, 17)) + } + + export function Router(options?: any): Router; +>Router : Symbol(Router, Decl(express.d.ts, 19, 9), Decl(express.d.ts, 21, 54)) +>options : Symbol(options, Decl(express.d.ts, 21, 31)) +>Router : Symbol(Router, Decl(express.d.ts, 19, 9), Decl(express.d.ts, 21, 54)) + + export interface Router extends IRouter {} +>Router : Symbol(Router, Decl(express.d.ts, 19, 9), Decl(express.d.ts, 21, 54)) +>IRouter : Symbol(IRouter, Decl(express.d.ts, 15, 9)) +>Router : Symbol(Router, Decl(express.d.ts, 19, 9), Decl(express.d.ts, 21, 54)) + + interface Errback { (err: Error): void; } +>Errback : Symbol(Errback, Decl(express.d.ts, 23, 58)) +>err : Symbol(err, Decl(express.d.ts, 25, 29)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + interface Request extends Express.Request { +>Request : Symbol(Request, Decl(express.d.ts, 25, 49), Decl(augmentation.ts, 2, 26)) +>Express.Request : Symbol(Express.Request, Decl(express.d.ts, 0, 24)) +>Express : Symbol(Express, Decl(express.d.ts, 0, 0)) +>Request : Symbol(Express.Request, Decl(express.d.ts, 0, 24)) + + get (name: string): string; +>get : Symbol(Request.get, Decl(express.d.ts, 27, 51)) +>name : Symbol(name, Decl(express.d.ts, 29, 17)) + } + + interface Response extends Express.Response { +>Response : Symbol(Response, Decl(express.d.ts, 30, 9)) +>Express.Response : Symbol(Express.Response, Decl(express.d.ts, 1, 32)) +>Express : Symbol(Express, Decl(express.d.ts, 0, 0)) +>Response : Symbol(Express.Response, Decl(express.d.ts, 1, 32)) + + charset: string; +>charset : Symbol(Response.charset, Decl(express.d.ts, 32, 53)) + } + + interface ErrorRequestHandler { +>ErrorRequestHandler : Symbol(ErrorRequestHandler, Decl(express.d.ts, 34, 9)) + + (err: any, req: Request, res: Response, next: Function): any; +>err : Symbol(err, Decl(express.d.ts, 37, 13)) +>req : Symbol(req, Decl(express.d.ts, 37, 22)) +>Request : Symbol(Request, Decl(express.d.ts, 25, 49), Decl(augmentation.ts, 2, 26)) +>res : Symbol(res, Decl(express.d.ts, 37, 36)) +>Response : Symbol(Response, Decl(express.d.ts, 30, 9)) +>next : Symbol(next, Decl(express.d.ts, 37, 51)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + + interface RequestHandler { +>RequestHandler : Symbol(RequestHandler, Decl(express.d.ts, 38, 9)) + + (req: Request, res: Response, next: Function): any; +>req : Symbol(req, Decl(express.d.ts, 41, 13)) +>Request : Symbol(Request, Decl(express.d.ts, 25, 49), Decl(augmentation.ts, 2, 26)) +>res : Symbol(res, Decl(express.d.ts, 41, 26)) +>Response : Symbol(Response, Decl(express.d.ts, 30, 9)) +>next : Symbol(next, Decl(express.d.ts, 41, 41)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + + interface Handler extends RequestHandler {} +>Handler : Symbol(Handler, Decl(express.d.ts, 42, 9)) +>RequestHandler : Symbol(RequestHandler, Decl(express.d.ts, 38, 9)) + + interface RequestParamHandler { +>RequestParamHandler : Symbol(RequestParamHandler, Decl(express.d.ts, 44, 51)) + + (req: Request, res: Response, next: Function, param: any): any; +>req : Symbol(req, Decl(express.d.ts, 47, 13)) +>Request : Symbol(Request, Decl(express.d.ts, 25, 49), Decl(augmentation.ts, 2, 26)) +>res : Symbol(res, Decl(express.d.ts, 47, 26)) +>Response : Symbol(Response, Decl(express.d.ts, 30, 9)) +>next : Symbol(next, Decl(express.d.ts, 47, 41)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>param : Symbol(param, Decl(express.d.ts, 47, 57)) + } + + interface Application extends IRouter, Express.Application { +>Application : Symbol(Application, Decl(express.d.ts, 48, 9)) +>IRouter : Symbol(IRouter, Decl(express.d.ts, 15, 9)) +>Application : Symbol(Application, Decl(express.d.ts, 48, 9)) +>Express.Application : Symbol(Express.Application, Decl(express.d.ts, 2, 33)) +>Express : Symbol(Express, Decl(express.d.ts, 0, 0)) +>Application : Symbol(Express.Application, Decl(express.d.ts, 2, 33)) + + routes: any; +>routes : Symbol(Application.routes, Decl(express.d.ts, 50, 81)) + } + + interface Express extends Application { +>Express : Symbol(Express, Decl(express.d.ts, 52, 9)) +>Application : Symbol(Application, Decl(express.d.ts, 48, 9)) + + createApplication(): Application; +>createApplication : Symbol(Express.createApplication, Decl(express.d.ts, 54, 47)) +>Application : Symbol(Application, Decl(express.d.ts, 48, 9)) + } + + var static: any; +>static : Symbol(static, Decl(express.d.ts, 58, 11)) + } + + export = e; +>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29)) +} + +=== augmentation.ts === +/// +import * as e from "express"; +>e : Symbol(e, Decl(augmentation.ts, 1, 6)) + +declare module "express" { +>"express" : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29)) + + interface Request { +>Request : Symbol(Request, Decl(express.d.ts, 25, 49), Decl(augmentation.ts, 2, 26)) + + id: number; +>id : Symbol(Request.id, Decl(augmentation.ts, 3, 23)) + } +} + +=== consumer.ts === +import { Request } from "express"; +>Request : Symbol(Request, Decl(consumer.ts, 0, 8)) + +import "./augmentation"; +let x: Request; +>x : Symbol(x, Decl(consumer.ts, 2, 3)) +>Request : Symbol(Request, Decl(consumer.ts, 0, 8)) + +const y = x.id; +>y : Symbol(y, Decl(consumer.ts, 3, 5)) +>x.id : Symbol(Request.id, Decl(augmentation.ts, 3, 23)) +>x : Symbol(x, Decl(consumer.ts, 2, 3)) +>id : Symbol(Request.id, Decl(augmentation.ts, 3, 23)) + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.types b/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.types new file mode 100644 index 0000000000..342c2a172e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals5.types @@ -0,0 +1,134 @@ +//// [tests/cases/compiler/augmentExportEquals5.ts] //// + +=== express.d.ts === +declare module Express { + export interface Request { } + export interface Response { } + export interface Application { } +} + +declare module "express" { +>"express" : typeof import("express") + + function e(): e.Express; +>e : typeof import("express.d.ts") +>e : any + + namespace e { +>e : typeof import("express.d.ts") + + interface IRoute { + all(...handler: RequestHandler[]): IRoute; +>all : (...handler: RequestHandler[]) => IRoute +>handler : RequestHandler[] + } + + interface IRouterMatcher { + (name: string|RegExp, ...handlers: RequestHandler[]): T; +>name : string | RegExp +>handlers : RequestHandler[] + } + + interface IRouter extends RequestHandler { + route(path: string): IRoute; +>route : (path: string) => IRoute +>path : string + } + + export function Router(options?: any): Router; +>Router : (options?: any) => Router +>options : any + + export interface Router extends IRouter {} + + interface Errback { (err: Error): void; } +>err : Error + + interface Request extends Express.Request { +>Express : any + + get (name: string): string; +>get : (name: string) => string +>name : string + } + + interface Response extends Express.Response { +>Express : any + + charset: string; +>charset : string + } + + interface ErrorRequestHandler { + (err: any, req: Request, res: Response, next: Function): any; +>err : any +>req : Request +>res : Response +>next : Function + } + + interface RequestHandler { + (req: Request, res: Response, next: Function): any; +>req : Request +>res : Response +>next : Function + } + + interface Handler extends RequestHandler {} + + interface RequestParamHandler { + (req: Request, res: Response, next: Function, param: any): any; +>req : Request +>res : Response +>next : Function +>param : any + } + + interface Application extends IRouter, Express.Application { +>Express : any + + routes: any; +>routes : any + } + + interface Express extends Application { + createApplication(): Application; +>createApplication : () => Application + } + + var static: any; +>static : any + } + + export = e; +>e : typeof import("express.d.ts") +} + +=== augmentation.ts === +/// +import * as e from "express"; +>e : typeof e + +declare module "express" { +>"express" : typeof import("express") + + interface Request { + id: number; +>id : number + } +} + +=== consumer.ts === +import { Request } from "express"; +>Request : any + +import "./augmentation"; +let x: Request; +>x : Request + +const y = x.id; +>y : number +>x.id : number +>x : Request +>id : number + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.js b/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.js new file mode 100644 index 0000000000..b55de356a7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.js @@ -0,0 +1,88 @@ +//// [tests/cases/compiler/augmentExportEquals6.ts] //// + +//// [file1.ts] +class foo {} +namespace foo { + export class A {} + export namespace B { export let a; } +} +export = foo; + +//// [file2.ts] +import x = require("./file1"); +x.B.b = 1; + +// OK - './file1' is a namespace +declare module "./file1" { + interface A { a: number } + namespace B { + export let b: number; + } +} + +//// [file3.ts] +import * as x from "./file1"; +import "./file2"; +let a: x.A; +let b = a.a; +let c = x.B.b; + +//// [file1.js] +"use strict"; +class foo { +} +(function (foo) { + class A { + } + foo.A = A; + let B; + (function (B) { + })(B = foo.B || (foo.B = {})); +})(foo || (foo = {})); +module.exports = foo; +//// [file2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const x = require("./file1"); +x.B.b = 1; +//// [file3.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +const x = __importStar(require("./file1")); +require("./file2"); +let a; +let b = a.a; +let c = x.B.b; diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.js.diff b/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.js.diff new file mode 100644 index 0000000000..a2e50f5a74 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.js.diff @@ -0,0 +1,20 @@ +--- old.augmentExportEquals6.js ++++ new.augmentExportEquals6.js +@@= skipped -42, +42 lines =@@ + //// [file2.js] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-var x = require("./file1"); ++const x = require("./file1"); + x.B.b = 1; + //// [file3.js] + "use strict"; +@@= skipped -38, +38 lines =@@ + }; + })(); + Object.defineProperty(exports, "__esModule", { value: true }); +-var x = __importStar(require("./file1")); ++const x = __importStar(require("./file1")); + require("./file2"); + let a; + let b = a.a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.symbols b/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.symbols new file mode 100644 index 0000000000..3174f41445 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.symbols @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/augmentExportEquals6.ts] //// + +=== file1.ts === +class foo {} +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10)) + +namespace foo { +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10)) + + export class A {} +>A : Symbol(A, Decl(file1.ts, 1, 15), Decl(file2.ts, 4, 26)) + + export namespace B { export let a; } +>B : Symbol(B, Decl(file1.ts, 2, 21), Decl(file2.ts, 5, 29)) +>a : Symbol(a, Decl(file1.ts, 3, 35)) +} +export = foo; +>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10)) + +=== file2.ts === +import x = require("./file1"); +>x : Symbol(x, Decl(file2.ts, 0, 0)) + +x.B.b = 1; +>x.B.b : Symbol(x.B.b, Decl(file2.ts, 7, 18)) +>x.B : Symbol(x.B, Decl(file1.ts, 2, 21), Decl(file2.ts, 5, 29)) +>x : Symbol(x, Decl(file2.ts, 0, 0)) +>B : Symbol(x.B, Decl(file1.ts, 2, 21), Decl(file2.ts, 5, 29)) +>b : Symbol(x.B.b, Decl(file2.ts, 7, 18)) + +// OK - './file1' is a namespace +declare module "./file1" { +>"./file1" : Symbol(x, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10)) + + interface A { a: number } +>A : Symbol(A, Decl(file1.ts, 1, 15), Decl(file2.ts, 4, 26)) +>a : Symbol(A.a, Decl(file2.ts, 5, 17)) + + namespace B { +>B : Symbol(B, Decl(file1.ts, 2, 21), Decl(file2.ts, 5, 29)) + + export let b: number; +>b : Symbol(b, Decl(file2.ts, 7, 18)) + } +} + +=== file3.ts === +import * as x from "./file1"; +>x : Symbol(x, Decl(file3.ts, 0, 6)) + +import "./file2"; +let a: x.A; +>a : Symbol(a, Decl(file3.ts, 2, 3)) +>x : Symbol(x, Decl(file3.ts, 0, 6)) +>A : Symbol(x.A, Decl(file1.ts, 1, 15), Decl(file2.ts, 4, 26)) + +let b = a.a; +>b : Symbol(b, Decl(file3.ts, 3, 3)) +>a.a : Symbol(x.A.a, Decl(file2.ts, 5, 17)) +>a : Symbol(a, Decl(file3.ts, 2, 3)) +>a : Symbol(x.A.a, Decl(file2.ts, 5, 17)) + +let c = x.B.b; +>c : Symbol(c, Decl(file3.ts, 4, 3)) +>x.B.b : Symbol(x.B.b, Decl(file2.ts, 7, 18)) +>x.B : Symbol(x.B, Decl(file1.ts, 2, 21), Decl(file2.ts, 5, 29)) +>x : Symbol(x, Decl(file3.ts, 0, 6)) +>B : Symbol(x.B, Decl(file1.ts, 2, 21), Decl(file2.ts, 5, 29)) +>b : Symbol(x.B.b, Decl(file2.ts, 7, 18)) + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.types b/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.types new file mode 100644 index 0000000000..bf067695df --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals6.types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/augmentExportEquals6.ts] //// + +=== file1.ts === +class foo {} +>foo : import("file1.ts") + +namespace foo { +>foo : typeof import("file1.ts") + + export class A {} +>A : A + + export namespace B { export let a; } +>B : typeof B +>a : any +} +export = foo; +>foo : import("file1.ts") + +=== file2.ts === +import x = require("./file1"); +>x : typeof x + +x.B.b = 1; +>x.B.b = 1 : 1 +>x.B.b : number +>x.B : typeof x.B +>x : typeof x +>B : typeof x.B +>b : number +>1 : 1 + +// OK - './file1' is a namespace +declare module "./file1" { +>"./file1" : typeof x + + interface A { a: number } +>a : number + + namespace B { +>B : typeof B + + export let b: number; +>b : number + } +} + +=== file3.ts === +import * as x from "./file1"; +>x : typeof x + +import "./file2"; +let a: x.A; +>a : x.A +>x : any + +let b = a.a; +>b : number +>a.a : number +>a : x.A +>a : number + +let c = x.B.b; +>c : number +>x.B.b : number +>x.B : typeof x.B +>x : typeof x +>B : typeof x.B +>b : number + diff --git a/testdata/baselines/reference/submodule/compiler/augmentExportEquals7.types b/testdata/baselines/reference/submodule/compiler/augmentExportEquals7.types index fdc26b6a99..3e593cce90 100644 --- a/testdata/baselines/reference/submodule/compiler/augmentExportEquals7.types +++ b/testdata/baselines/reference/submodule/compiler/augmentExportEquals7.types @@ -10,7 +10,7 @@ export = lib; === /node_modules/@types/lib-extender/index.d.ts === import * as lib from "lib"; ->lib : () => void +>lib : { default: () => void; } declare module "lib" { >"lib" : typeof import("lib") diff --git a/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.errors.txt b/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.errors.txt new file mode 100644 index 0000000000..3e8f387229 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.errors.txt @@ -0,0 +1,12 @@ +badExternalModuleReference.ts(1,21): error TS2307: Cannot find module 'garbage' or its corresponding type declarations. + + +==== badExternalModuleReference.ts (1 errors) ==== + import a1 = require("garbage"); + ~~~~~~~~~ +!!! error TS2307: Cannot find module 'garbage' or its corresponding type declarations. + export declare var a: { + test1: a1.connectModule; + (): a1.connectExport; + }; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.js b/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.js new file mode 100644 index 0000000000..017e5d940f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/badExternalModuleReference.ts] //// + +//// [badExternalModuleReference.ts] +import a1 = require("garbage"); +export declare var a: { + test1: a1.connectModule; + (): a1.connectExport; +}; + + +//// [badExternalModuleReference.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.symbols b/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.symbols new file mode 100644 index 0000000000..ab6bf58442 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/badExternalModuleReference.ts] //// + +=== badExternalModuleReference.ts === +import a1 = require("garbage"); +>a1 : Symbol(a1, Decl(badExternalModuleReference.ts, 0, 0)) + +export declare var a: { +>a : Symbol(a, Decl(badExternalModuleReference.ts, 1, 18)) + + test1: a1.connectModule; +>test1 : Symbol(test1, Decl(badExternalModuleReference.ts, 1, 23)) +>a1 : Symbol(a1, Decl(badExternalModuleReference.ts, 0, 0)) +>connectModule : Symbol(a1.connectModule) + + (): a1.connectExport; +>a1 : Symbol(a1, Decl(badExternalModuleReference.ts, 0, 0)) +>connectExport : Symbol(a1.connectExport) + +}; + diff --git a/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.types b/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.types new file mode 100644 index 0000000000..54e647d16d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/badExternalModuleReference.types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/badExternalModuleReference.ts] //// + +=== badExternalModuleReference.ts === +import a1 = require("garbage"); +>a1 : any + +export declare var a: { +>a : { (): a1.connectExport; test1: a1.connectModule; } + + test1: a1.connectModule; +>test1 : a1.connectModule +>a1 : any + + (): a1.connectExport; +>a1 : any + +}; + diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.errors.txt b/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.errors.txt deleted file mode 100644 index ea94961d68..0000000000 --- a/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== c.ts (0 errors) ==== - let foo: typeof C; -==== b.ts (0 errors) ==== - class C { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.symbols b/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.symbols deleted file mode 100644 index 4fa4569b62..0000000000 --- a/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.symbols +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/blockScopedClassDeclarationAcrossFiles.ts] //// - -=== c.ts === -let foo: typeof C; ->foo : Symbol(foo, Decl(c.ts, 0, 3)) ->C : Symbol(C, Decl(b.ts, 0, 0)) - -=== b.ts === -class C { } ->C : Symbol(C, Decl(b.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.types b/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.types deleted file mode 100644 index 1da2a72801..0000000000 --- a/testdata/baselines/reference/submodule/compiler/blockScopedClassDeclarationAcrossFiles.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/blockScopedClassDeclarationAcrossFiles.ts] //// - -=== c.ts === -let foo: typeof C; ->foo : typeof C ->C : typeof C - -=== b.ts === -class C { } ->C : C - diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.errors.txt b/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.errors.txt new file mode 100644 index 0000000000..f958ba0e05 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.errors.txt @@ -0,0 +1,12 @@ +blockScopedFunctionDeclarationInStrictModule.ts(6,10): error TS2304: Cannot find name 'foo'. + + +==== blockScopedFunctionDeclarationInStrictModule.ts (1 errors) ==== + if (true) { + function foo() { } + foo(); // ok + } + + export = foo; // not ok + ~~~ +!!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.js b/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.js new file mode 100644 index 0000000000..e7c00bb07a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts] //// + +//// [blockScopedFunctionDeclarationInStrictModule.ts] +if (true) { + function foo() { } + foo(); // ok +} + +export = foo; // not ok + +//// [blockScopedFunctionDeclarationInStrictModule.js] +"use strict"; +if (true) { + function foo() { } + foo(); // ok +} +module.exports = foo; diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.symbols b/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.symbols new file mode 100644 index 0000000000..b21eec9de5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts] //// + +=== blockScopedFunctionDeclarationInStrictModule.ts === +if (true) { + function foo() { } +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationInStrictModule.ts, 0, 11)) + + foo(); // ok +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationInStrictModule.ts, 0, 11)) +} + +export = foo; // not ok diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.types b/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.types new file mode 100644 index 0000000000..8adbd07915 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts] //// + +=== blockScopedFunctionDeclarationInStrictModule.ts === +if (true) { +>true : true + + function foo() { } +>foo : () => void + + foo(); // ok +>foo() : void +>foo : () => void +} + +export = foo; // not ok +>foo : any + diff --git a/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.errors.txt b/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.errors.txt deleted file mode 100644 index dea88727d4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== index.ts (0 errors) ==== - export * from "./nested"; - -==== nested/base.ts (0 errors) ==== - import { B } from "./shared"; - - export function f() { - return new B(); - } - -==== nested/derived.ts (0 errors) ==== - import { f } from "./base"; - - export function g() { - return f(); - } - -==== nested/index.ts (0 errors) ==== - export * from "./base"; - - export * from "./derived"; - export * from "./shared"; - -==== nested/shared.ts (0 errors) ==== - export class B {} - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.symbols b/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.symbols deleted file mode 100644 index be9a646ce5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.symbols +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/compiler/bundledDtsLateExportRenaming.ts] //// - -=== index.ts === - -export * from "./nested"; - -=== nested/base.ts === -import { B } from "./shared"; ->B : Symbol(B, Decl(base.ts, 0, 8)) - -export function f() { ->f : Symbol(f, Decl(base.ts, 0, 29)) - - return new B(); ->B : Symbol(B, Decl(base.ts, 0, 8)) -} - -=== nested/derived.ts === -import { f } from "./base"; ->f : Symbol(f, Decl(derived.ts, 0, 8)) - -export function g() { ->g : Symbol(g, Decl(derived.ts, 0, 27)) - - return f(); ->f : Symbol(f, Decl(derived.ts, 0, 8)) -} - -=== nested/index.ts === - -export * from "./base"; - -export * from "./derived"; -export * from "./shared"; - -=== nested/shared.ts === -export class B {} ->B : Symbol(B, Decl(shared.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.types b/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.types deleted file mode 100644 index b9593cea1a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/bundledDtsLateExportRenaming.types +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/compiler/bundledDtsLateExportRenaming.ts] //// - -=== index.ts === - -export * from "./nested"; - -=== nested/base.ts === -import { B } from "./shared"; ->B : typeof B - -export function f() { ->f : () => B - - return new B(); ->new B() : B ->B : typeof B -} - -=== nested/derived.ts === -import { f } from "./base"; ->f : () => import("index").B - -export function g() { ->g : () => import("index").B - - return f(); ->f() : import("index").B ->f : () => import("index").B -} - -=== nested/index.ts === - -export * from "./base"; - -export * from "./derived"; -export * from "./shared"; - -=== nested/shared.ts === -export class B {} ->B : B - diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.errors.txt b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.errors.txt deleted file mode 100644 index ad281922cc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -/a/b/c/lib.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - -==== /a/b/foo.d.ts (0 errors) ==== - export declare let x: number - -==== /a/b/c/d/e/app.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - -==== /a/b/c/lib.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.errors.txt.diff deleted file mode 100644 index 4ea4f7b5fc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.cachedModuleResolution3.errors.txt -+++ new.cachedModuleResolution3.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+/a/b/c/lib.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+ -+ -+==== /a/b/foo.d.ts (0 errors) ==== -+ export declare let x: number -+ -+==== /a/b/c/d/e/app.ts (1 errors) ==== -+ import {x} from "foo"; -+ ~~~~~ -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+ -+==== /a/b/c/lib.ts (1 errors) ==== -+ import {x} from "foo"; -+ ~~~~~ -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.js b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.js deleted file mode 100644 index 3fce23e3f2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.js +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution3.ts] //// - -//// [foo.d.ts] -export declare let x: number - -//// [app.ts] -import {x} from "foo"; - -//// [lib.ts] -import {x} from "foo"; - -//// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.symbols b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.symbols deleted file mode 100644 index cce7b24eb2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution3.ts] //// - -=== /a/b/foo.d.ts === -export declare let x: number ->x : Symbol(x, Decl(foo.d.ts, 0, 18)) - -=== /a/b/c/d/e/app.ts === -import {x} from "foo"; ->x : Symbol(x, Decl(app.ts, 0, 8)) - -=== /a/b/c/lib.ts === -import {x} from "foo"; ->x : Symbol(x, Decl(lib.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json deleted file mode 100644 index 8090b18e29..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json +++ /dev/null @@ -1,54 +0,0 @@ -======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -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. -Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/node_modules' does not exist, skipping all lookups in it. -Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -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. ======== -======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -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. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/node_modules' does not exist, skipping all lookups in it. -Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -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. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.types b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.types deleted file mode 100644 index 141f909a5c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution3.ts] //// - -=== /a/b/foo.d.ts === -export declare let x: number ->x : number - -=== /a/b/c/d/e/app.ts === -import {x} from "foo"; ->x : any - -=== /a/b/c/lib.ts === -import {x} from "foo"; ->x : any - diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.types.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.types.diff deleted file mode 100644 index 32e0765a47..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.types.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.cachedModuleResolution3.types -+++ new.cachedModuleResolution3.types -@@= skipped -5, +5 lines =@@ - - === /a/b/c/d/e/app.ts === - import {x} from "foo"; -->x : number -+>x : any - - === /a/b/c/lib.ts === - import {x} from "foo"; -->x : number -+>x : any diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.errors.txt b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.errors.txt deleted file mode 100644 index 7a9cb71715..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -/a/b/c/lib.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - -==== /a/b/foo.d.ts (0 errors) ==== - export declare let x: number - -==== /a/b/c/lib.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - -==== /a/b/c/d/e/app.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.errors.txt.diff deleted file mode 100644 index fec64eb7a9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.cachedModuleResolution4.errors.txt -+++ new.cachedModuleResolution4.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+/a/b/c/lib.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+ -+ -+==== /a/b/foo.d.ts (0 errors) ==== -+ export declare let x: number -+ -+==== /a/b/c/lib.ts (1 errors) ==== -+ import {x} from "foo"; -+ ~~~~~ -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+ -+==== /a/b/c/d/e/app.ts (1 errors) ==== -+ import {x} from "foo"; -+ ~~~~~ -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.js b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.js deleted file mode 100644 index 2236fdf34c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.js +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution4.ts] //// - -//// [foo.d.ts] -export declare let x: number - -//// [lib.ts] -import {x} from "foo"; - -//// [app.ts] -import {x} from "foo"; - - -//// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.symbols b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.symbols deleted file mode 100644 index a377de8c86..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution4.ts] //// - -=== /a/b/foo.d.ts === -export declare let x: number ->x : Symbol(x, Decl(foo.d.ts, 0, 18)) - -=== /a/b/c/lib.ts === -import {x} from "foo"; ->x : Symbol(x, Decl(lib.ts, 0, 8)) - -=== /a/b/c/d/e/app.ts === -import {x} from "foo"; ->x : Symbol(x, Decl(app.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json deleted file mode 100644 index aa92ef4940..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json +++ /dev/null @@ -1,54 +0,0 @@ -======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -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. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/node_modules' does not exist, skipping all lookups in it. -Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -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. ======== -======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -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. -Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/node_modules' does not exist, skipping all lookups in it. -Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -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. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.types b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.types deleted file mode 100644 index b2088fa5ef..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution4.ts] //// - -=== /a/b/foo.d.ts === -export declare let x: number ->x : number - -=== /a/b/c/lib.ts === -import {x} from "foo"; ->x : any - -=== /a/b/c/d/e/app.ts === -import {x} from "foo"; ->x : any - diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.types.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.types.diff deleted file mode 100644 index bc816a5ea7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.types.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.cachedModuleResolution4.types -+++ new.cachedModuleResolution4.types -@@= skipped -5, +5 lines =@@ - - === /a/b/c/lib.ts === - import {x} from "foo"; -->x : number -+>x : any - - === /a/b/c/d/e/app.ts === - import {x} from "foo"; -->x : number -+>x : any diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.errors.txt b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.errors.txt deleted file mode 100644 index e80de6969f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.errors.txt +++ /dev/null @@ -1,13 +0,0 @@ -/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -/a/b/c/lib.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - -==== /a/b/c/d/e/app.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - -==== /a/b/c/lib.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.errors.txt.diff deleted file mode 100644 index bd593cdfe9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.cachedModuleResolution8.errors.txt -+++ new.cachedModuleResolution8.errors.txt -@@= skipped -0, +0 lines =@@ --/a/b/c/d/e/app.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --/a/b/c/lib.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+/a/b/c/lib.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - - ==== /a/b/c/d/e/app.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - ==== /a/b/c/lib.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.js b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.js deleted file mode 100644 index c071c1dbf9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.js +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution8.ts] //// - -//// [app.ts] -import {x} from "foo"; - -//// [lib.ts] -import {x} from "foo"; - -//// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.symbols b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.symbols deleted file mode 100644 index 73d8ce998f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution8.ts] //// - -=== /a/b/c/d/e/app.ts === -import {x} from "foo"; ->x : Symbol(x, Decl(app.ts, 0, 8)) - -=== /a/b/c/lib.ts === -import {x} from "foo"; ->x : Symbol(x, Decl(lib.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json deleted file mode 100644 index 8090b18e29..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json +++ /dev/null @@ -1,54 +0,0 @@ -======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -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. -Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/node_modules' does not exist, skipping all lookups in it. -Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -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. ======== -======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -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. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/node_modules' does not exist, skipping all lookups in it. -Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -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. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.types b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.types deleted file mode 100644 index 8ccd2f6024..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution8.ts] //// - -=== /a/b/c/d/e/app.ts === -import {x} from "foo"; ->x : any - -=== /a/b/c/lib.ts === -import {x} from "foo"; ->x : any - diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.errors.txt b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.errors.txt deleted file mode 100644 index 0dc795af6b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.errors.txt +++ /dev/null @@ -1,15 +0,0 @@ -/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -/a/b/c/lib.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - -==== /a/b/c/lib.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - -==== /a/b/c/d/e/app.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.errors.txt.diff deleted file mode 100644 index d820f0f522..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.errors.txt.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.cachedModuleResolution9.errors.txt -+++ new.cachedModuleResolution9.errors.txt -@@= skipped -0, +0 lines =@@ --/a/b/c/d/e/app.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --/a/b/c/lib.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+/a/b/c/lib.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - - ==== /a/b/c/lib.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - - ==== /a/b/c/d/e/app.ts (1 errors) ==== - import {x} from "foo"; - ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.js b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.js deleted file mode 100644 index 17ef035df3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution9.ts] //// - -//// [lib.ts] -import {x} from "foo"; - - -//// [app.ts] -import {x} from "foo"; - - -//// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.symbols b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.symbols deleted file mode 100644 index 266ca70eaf..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.symbols +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution9.ts] //// - -=== /a/b/c/lib.ts === -import {x} from "foo"; ->x : Symbol(x, Decl(lib.ts, 0, 8)) - - -=== /a/b/c/d/e/app.ts === -import {x} from "foo"; ->x : Symbol(x, Decl(app.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json deleted file mode 100644 index aa92ef4940..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json +++ /dev/null @@ -1,54 +0,0 @@ -======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -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. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/node_modules' does not exist, skipping all lookups in it. -Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -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. ======== -======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -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. -Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/a/node_modules' does not exist, skipping all lookups in it. -Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -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. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.types b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.types deleted file mode 100644 index e448995d1a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/cachedModuleResolution9.ts] //// - -=== /a/b/c/lib.ts === -import {x} from "foo"; ->x : any - - -=== /a/b/c/d/e/app.ts === -import {x} from "foo"; ->x : any - diff --git a/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt b/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt deleted file mode 100644 index 91e5fd5a6c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? -weird.js(1,23): error TS7006: Parameter 'BaseClass' implicitly has an 'any' type. -weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== weird.js (3 errors) ==== - someFunction(function(BaseClass) { - ~~~~~~~~~~~~ -!!! error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? -!!! related TS2728 lib.es5.d.ts:--:--: 'Function' is declared here. - ~~~~~~~~~ -!!! error TS7006: Parameter 'BaseClass' implicitly has an 'any' type. - 'use strict'; - const DEFAULT_MESSAGE = "nop!"; - class Hello extends BaseClass { - constructor() { - super(); - this.foo = "bar"; - } - _render(error) { - ~~~~~ -!!! error TS7006: Parameter 'error' implicitly has an 'any' type. - const message = error.message || DEFAULT_MESSAGE; - } - } - }); - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.symbols b/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.symbols deleted file mode 100644 index 99ddd57e9d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.symbols +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts] //// - -=== weird.js === -someFunction(function(BaseClass) { ->BaseClass : Symbol(BaseClass, Decl(weird.js, 0, 22)) - - 'use strict'; - const DEFAULT_MESSAGE = "nop!"; ->DEFAULT_MESSAGE : Symbol(DEFAULT_MESSAGE, Decl(weird.js, 2, 9)) - - class Hello extends BaseClass { ->Hello : Symbol(Hello, Decl(weird.js, 2, 35)) ->BaseClass : Symbol(BaseClass, Decl(weird.js, 0, 22)) - - constructor() { - super(); - this.foo = "bar"; ->this.foo : Symbol(Hello.foo, Decl(weird.js, 5, 20)) ->this : Symbol(Hello, Decl(weird.js, 2, 35)) ->foo : Symbol(Hello.foo, Decl(weird.js, 5, 20)) - } - _render(error) { ->_render : Symbol(Hello._render, Decl(weird.js, 7, 9)) ->error : Symbol(error, Decl(weird.js, 8, 16)) - - const message = error.message || DEFAULT_MESSAGE; ->message : Symbol(message, Decl(weird.js, 9, 17)) ->error : Symbol(error, Decl(weird.js, 8, 16)) ->DEFAULT_MESSAGE : Symbol(DEFAULT_MESSAGE, Decl(weird.js, 2, 9)) - } - } -}); - diff --git a/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.types b/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.types deleted file mode 100644 index 7f98768cc3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.types +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts] //// - -=== weird.js === -someFunction(function(BaseClass) { ->someFunction(function(BaseClass) { 'use strict'; const DEFAULT_MESSAGE = "nop!"; class Hello extends BaseClass { constructor() { super(); this.foo = "bar"; } _render(error) { const message = error.message || DEFAULT_MESSAGE; } }}) : any ->someFunction : any ->function(BaseClass) { 'use strict'; const DEFAULT_MESSAGE = "nop!"; class Hello extends BaseClass { constructor() { super(); this.foo = "bar"; } _render(error) { const message = error.message || DEFAULT_MESSAGE; } }} : (BaseClass: any) => void ->BaseClass : any - - 'use strict'; ->'use strict' : "use strict" - - const DEFAULT_MESSAGE = "nop!"; ->DEFAULT_MESSAGE : "nop!" ->"nop!" : "nop!" - - class Hello extends BaseClass { ->Hello : Hello ->BaseClass : any - - constructor() { - super(); ->super() : void ->super : any - - this.foo = "bar"; ->this.foo = "bar" : "bar" ->this.foo : any ->this : this ->foo : any ->"bar" : "bar" - } - _render(error) { ->_render : (error: any) => void ->error : any - - const message = error.message || DEFAULT_MESSAGE; ->message : any ->error.message || DEFAULT_MESSAGE : any ->error.message : any ->error : any ->message : any ->DEFAULT_MESSAGE : "nop!" - } - } -}); - diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js index 6bf89996a4..ad2d034a27 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js @@ -30,6 +30,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { c: false }; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); a_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js.diff index 962b43db5d..d196532b84 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js.diff @@ -1,9 +1,9 @@ --- old.checkJsdocTypeTagOnExportAssignment1.js +++ new.checkJsdocTypeTagOnExportAssignment1.js -@@= skipped -30, +30 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -33, +33 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); a_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment2.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment2.js index b7428a229c..cb7d1e31ee 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment2.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment2.js @@ -28,6 +28,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { c: false }; //// [c.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const b_1 = require("./b"); +const b_1 = __importDefault(require("./b")); b_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment2.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment2.js.diff index f4362a6e7c..6238a28034 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment2.js.diff @@ -1,9 +1,9 @@ --- old.checkJsdocTypeTagOnExportAssignment2.js +++ new.checkJsdocTypeTagOnExportAssignment2.js -@@= skipped -28, +28 lines =@@ - //// [c.js] - "use strict"; +@@= skipped -31, +31 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var b_1 = require("./b"); -+const b_1 = require("./b"); +-var b_1 = __importDefault(require("./b")); ++const b_1 = __importDefault(require("./b")); b_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js index 6205b8fe2e..f97a3ac134 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js @@ -33,6 +33,9 @@ const bar = { c: 1 }; exports.default = bar; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); a_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js.diff index df954aac94..77c151c3e4 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js.diff @@ -1,9 +1,9 @@ --- old.checkJsdocTypeTagOnExportAssignment3.js +++ new.checkJsdocTypeTagOnExportAssignment3.js -@@= skipped -33, +33 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -36, +36 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); a_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js index 25a7b3dae7..88badb94e9 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js @@ -30,6 +30,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { a: 1, b: 1 }; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); a_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js.diff index b7331afe3b..1c86e1e49b 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js.diff @@ -1,9 +1,9 @@ --- old.checkJsdocTypeTagOnExportAssignment5.js +++ new.checkJsdocTypeTagOnExportAssignment5.js -@@= skipped -30, +30 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -33, +33 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); a_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js index 7dce488e36..dbdd725c30 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js @@ -30,6 +30,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { a: 1, b: 1, c: 1 }; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); a_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js.diff index 93ac1ae858..d7bf707e0f 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js.diff @@ -1,9 +1,9 @@ --- old.checkJsdocTypeTagOnExportAssignment6.js +++ new.checkJsdocTypeTagOnExportAssignment6.js -@@= skipped -30, +30 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -33, +33 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); a_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js index 2c00033c88..c77ce904d2 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js @@ -33,6 +33,9 @@ const abc = { a: 1, b: 1, c: 1 }; exports.default = abc; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); a_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js.diff index 852115e2a2..ed5775a164 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js.diff @@ -1,9 +1,9 @@ --- old.checkJsdocTypeTagOnExportAssignment7.js +++ new.checkJsdocTypeTagOnExportAssignment7.js -@@= skipped -33, +33 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -36, +36 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); a_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkJsxNotSetError.js b/testdata/baselines/reference/submodule/compiler/checkJsxNotSetError.js index c5c1f56860..27e6c7df59 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsxNotSetError.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsxNotSetError.js @@ -17,6 +17,9 @@ const Foo = () => (
foo
); exports.default = Foo; //// [bar.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const foo_1 = require("/foo"); +const foo_1 = __importDefault(require("/foo")); const a = ; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsxNotSetError.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsxNotSetError.js.diff index 553d172c82..ee74eaaf13 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsxNotSetError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsxNotSetError.js.diff @@ -1,9 +1,9 @@ --- old.checkJsxNotSetError.js +++ new.checkJsxNotSetError.js -@@= skipped -17, +17 lines =@@ - //// [bar.js] - "use strict"; +@@= skipped -20, +20 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var foo_1 = require("/foo"); -+const foo_1 = require("/foo"); +-var foo_1 = __importDefault(require("/foo")); ++const foo_1 = __importDefault(require("/foo")); const a = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.errors.txt b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.errors.txt new file mode 100644 index 0000000000..8a030e687c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.errors.txt @@ -0,0 +1,24 @@ +collisionExportsRequireAndAlias_file2.ts(1,8): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module. +collisionExportsRequireAndAlias_file2.ts(2,8): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module. + + +==== collisionExportsRequireAndAlias_file2.ts (2 errors) ==== + import require = require('./collisionExportsRequireAndAlias_file1'); // Error + ~~~~~~~ +!!! error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module. + import exports = require('./collisionExportsRequireAndAlias_file3333'); // Error + ~~~~~~~ +!!! error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module. + export function foo() { + require.bar(); + } + export function foo2() { + exports.bar2(); + } +==== collisionExportsRequireAndAlias_file1.ts (0 errors) ==== + export function bar() { + } + +==== collisionExportsRequireAndAlias_file3333.ts (0 errors) ==== + export function bar2() { + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.js b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.js new file mode 100644 index 0000000000..45cf142de2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.js @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAlias.ts] //// + +//// [collisionExportsRequireAndAlias_file1.ts] +export function bar() { +} + +//// [collisionExportsRequireAndAlias_file3333.ts] +export function bar2() { +} +//// [collisionExportsRequireAndAlias_file2.ts] +import require = require('./collisionExportsRequireAndAlias_file1'); // Error +import exports = require('./collisionExportsRequireAndAlias_file3333'); // Error +export function foo() { + require.bar(); +} +export function foo2() { + exports.bar2(); +} + +//// [collisionExportsRequireAndAlias_file1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = bar; +function bar() { +} +//// [collisionExportsRequireAndAlias_file3333.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar2 = bar2; +function bar2() { +} +//// [collisionExportsRequireAndAlias_file2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.foo2 = foo2; +const require = require("./collisionExportsRequireAndAlias_file1"); // Error +const exports = require("./collisionExportsRequireAndAlias_file3333"); // Error +function foo() { + require.bar(); +} +function foo2() { + exports.bar2(); +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.js.diff b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.js.diff new file mode 100644 index 0000000000..400f530342 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.js.diff @@ -0,0 +1,13 @@ +--- old.collisionExportsRequireAndAlias.js ++++ new.collisionExportsRequireAndAlias.js +@@= skipped -33, +33 lines =@@ + Object.defineProperty(exports, "__esModule", { value: true }); + exports.foo = foo; + exports.foo2 = foo2; +-var require = require("./collisionExportsRequireAndAlias_file1"); // Error +-var exports = require("./collisionExportsRequireAndAlias_file3333"); // Error ++const require = require("./collisionExportsRequireAndAlias_file1"); // Error ++const exports = require("./collisionExportsRequireAndAlias_file3333"); // Error + function foo() { + require.bar(); + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.symbols b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.symbols new file mode 100644 index 0000000000..471d8d7742 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAlias.ts] //// + +=== collisionExportsRequireAndAlias_file2.ts === +import require = require('./collisionExportsRequireAndAlias_file1'); // Error +>require : Symbol(require, Decl(collisionExportsRequireAndAlias_file2.ts, 0, 0)) + +import exports = require('./collisionExportsRequireAndAlias_file3333'); // Error +>exports : Symbol(exports, Decl(collisionExportsRequireAndAlias_file2.ts, 0, 68)) + +export function foo() { +>foo : Symbol(foo, Decl(collisionExportsRequireAndAlias_file2.ts, 1, 71)) + + require.bar(); +>require.bar : Symbol(require.bar, Decl(collisionExportsRequireAndAlias_file1.ts, 0, 0)) +>require : Symbol(require, Decl(collisionExportsRequireAndAlias_file2.ts, 0, 0)) +>bar : Symbol(require.bar, Decl(collisionExportsRequireAndAlias_file1.ts, 0, 0)) +} +export function foo2() { +>foo2 : Symbol(foo2, Decl(collisionExportsRequireAndAlias_file2.ts, 4, 1)) + + exports.bar2(); +>exports.bar2 : Symbol(exports.bar2, Decl(collisionExportsRequireAndAlias_file3333.ts, 0, 0)) +>exports : Symbol(exports, Decl(collisionExportsRequireAndAlias_file2.ts, 0, 68)) +>bar2 : Symbol(exports.bar2, Decl(collisionExportsRequireAndAlias_file3333.ts, 0, 0)) +} +=== collisionExportsRequireAndAlias_file1.ts === +export function bar() { +>bar : Symbol(bar, Decl(collisionExportsRequireAndAlias_file1.ts, 0, 0)) +} + +=== collisionExportsRequireAndAlias_file3333.ts === +export function bar2() { +>bar2 : Symbol(bar2, Decl(collisionExportsRequireAndAlias_file3333.ts, 0, 0)) +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.types b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.types new file mode 100644 index 0000000000..72ef2678f7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAlias.types @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAlias.ts] //// + +=== collisionExportsRequireAndAlias_file2.ts === +import require = require('./collisionExportsRequireAndAlias_file1'); // Error +>require : typeof require + +import exports = require('./collisionExportsRequireAndAlias_file3333'); // Error +>exports : typeof exports + +export function foo() { +>foo : () => void + + require.bar(); +>require.bar() : void +>require.bar : () => void +>require : typeof require +>bar : () => void +} +export function foo2() { +>foo2 : () => void + + exports.bar2(); +>exports.bar2() : void +>exports.bar2 : () => void +>exports : typeof exports +>bar2 : () => void +} +=== collisionExportsRequireAndAlias_file1.ts === +export function bar() { +>bar : () => void +} + +=== collisionExportsRequireAndAlias_file3333.ts === +export function bar2() { +>bar2 : () => void +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.js b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.js new file mode 100644 index 0000000000..0643e7fcff --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.js @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientClass.ts] //// + +//// [collisionExportsRequireAndAmbientClass_externalmodule.ts] +export declare class require { +} +export declare class exports { +} +declare module m1 { + class require { + } + class exports { + } +} +module m2 { + export declare class require { + } + export declare class exports { + } +} + +//// [collisionExportsRequireAndAmbientClass_globalFile.ts] +declare class require { +} +declare class exports { +} +declare module m3 { + class require { + } + class exports { + } +} +module m4 { + export declare class require { + } + export declare class exports { + } + var a = 10; +} + +//// [collisionExportsRequireAndAmbientClass_externalmodule.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var m2; +(function (m2) { +})(m2 || (m2 = {})); +//// [collisionExportsRequireAndAmbientClass_globalFile.js] +var m4; +(function (m4) { + var a = 10; +})(m4 || (m4 = {})); diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.symbols b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.symbols new file mode 100644 index 0000000000..8a6569dfdc --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.symbols @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientClass.ts] //// + +=== collisionExportsRequireAndAmbientClass_externalmodule.ts === +export declare class require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 0, 0)) +} +export declare class exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 1, 1)) +} +declare module m1 { +>m1 : Symbol(m1, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 3, 1)) + + class require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 4, 19)) + } + class exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 6, 5)) + } +} +module m2 { +>m2 : Symbol(m2, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 9, 1)) + + export declare class require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 10, 11)) + } + export declare class exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 12, 5)) + } +} + +=== collisionExportsRequireAndAmbientClass_globalFile.ts === +declare class require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 0, 0)) +} +declare class exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 1, 1)) +} +declare module m3 { +>m3 : Symbol(m3, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 3, 1)) + + class require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 4, 19)) + } + class exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 6, 5)) + } +} +module m4 { +>m4 : Symbol(m4, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 9, 1)) + + export declare class require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 10, 11)) + } + export declare class exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 12, 5)) + } + var a = 10; +>a : Symbol(a, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 15, 7)) +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.types b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.types new file mode 100644 index 0000000000..0405ace4d3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientClass.types @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientClass.ts] //// + +=== collisionExportsRequireAndAmbientClass_externalmodule.ts === +export declare class require { +>require : require +} +export declare class exports { +>exports : exports +} +declare module m1 { +>m1 : typeof m1 + + class require { +>require : require + } + class exports { +>exports : exports + } +} +module m2 { +>m2 : typeof m2 + + export declare class require { +>require : require + } + export declare class exports { +>exports : exports + } +} + +=== collisionExportsRequireAndAmbientClass_globalFile.ts === +declare class require { +>require : require +} +declare class exports { +>exports : exports +} +declare module m3 { +>m3 : typeof m3 + + class require { +>require : require + } + class exports { +>exports : exports + } +} +module m4 { +>m4 : typeof m4 + + export declare class require { +>require : require + } + export declare class exports { +>exports : exports + } + var a = 10; +>a : number +>10 : 10 +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.js b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.js new file mode 100644 index 0000000000..c0014da295 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.js @@ -0,0 +1,72 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientEnum.ts] //// + +//// [collisionExportsRequireAndAmbientEnum_externalmodule.ts] +export declare enum require { + _thisVal1, + _thisVal2, +} +export declare enum exports { + _thisVal1, + _thisVal2, +} +declare module m1 { + enum require { + _thisVal1, + _thisVal2, + } + enum exports { + _thisVal1, + _thisVal2, + } +} +module m2 { + export declare enum require { + _thisVal1, + _thisVal2, + } + export declare enum exports { + _thisVal1, + _thisVal2, + } +} + +//// [collisionExportsRequireAndAmbientEnum_globalFile.ts] +declare enum require { + _thisVal1, + _thisVal2, +} +declare enum exports { + _thisVal1, + _thisVal2, +} +declare module m3 { + enum require { + _thisVal1, + _thisVal2, + } + enum exports { + _thisVal1, + _thisVal2, + } +} +module m4 { + export declare enum require { + _thisVal1, + _thisVal2, + } + export declare enum exports { + _thisVal1, + _thisVal2, + } +} + +//// [collisionExportsRequireAndAmbientEnum_externalmodule.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var m2; +(function (m2) { +})(m2 || (m2 = {})); +//// [collisionExportsRequireAndAmbientEnum_globalFile.js] +var m4; +(function (m4) { +})(m4 || (m4 = {})); diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.symbols b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.symbols new file mode 100644 index 0000000000..2e615c974d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.symbols @@ -0,0 +1,129 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientEnum.ts] //// + +=== collisionExportsRequireAndAmbientEnum_externalmodule.ts === +export declare enum require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 0, 0)) + + _thisVal1, +>_thisVal1 : Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 0, 29)) + + _thisVal2, +>_thisVal2 : Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 1, 14)) +} +export declare enum exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 3, 1)) + + _thisVal1, +>_thisVal1 : Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 4, 29)) + + _thisVal2, +>_thisVal2 : Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 5, 14)) +} +declare module m1 { +>m1 : Symbol(m1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 7, 1)) + + enum require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 8, 19)) + + _thisVal1, +>_thisVal1 : Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 9, 18)) + + _thisVal2, +>_thisVal2 : Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 10, 18)) + } + enum exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 12, 5)) + + _thisVal1, +>_thisVal1 : Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 13, 18)) + + _thisVal2, +>_thisVal2 : Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 14, 18)) + } +} +module m2 { +>m2 : Symbol(m2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 17, 1)) + + export declare enum require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 18, 11)) + + _thisVal1, +>_thisVal1 : Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 19, 33)) + + _thisVal2, +>_thisVal2 : Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 20, 18)) + } + export declare enum exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 22, 5)) + + _thisVal1, +>_thisVal1 : Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 23, 33)) + + _thisVal2, +>_thisVal2 : Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 24, 18)) + } +} + +=== collisionExportsRequireAndAmbientEnum_globalFile.ts === +declare enum require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 0, 0)) + + _thisVal1, +>_thisVal1 : Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 0, 22)) + + _thisVal2, +>_thisVal2 : Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 1, 14)) +} +declare enum exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 3, 1)) + + _thisVal1, +>_thisVal1 : Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 4, 22)) + + _thisVal2, +>_thisVal2 : Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 5, 14)) +} +declare module m3 { +>m3 : Symbol(m3, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 7, 1)) + + enum require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 8, 19)) + + _thisVal1, +>_thisVal1 : Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 9, 18)) + + _thisVal2, +>_thisVal2 : Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 10, 18)) + } + enum exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 12, 5)) + + _thisVal1, +>_thisVal1 : Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 13, 18)) + + _thisVal2, +>_thisVal2 : Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 14, 18)) + } +} +module m4 { +>m4 : Symbol(m4, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 17, 1)) + + export declare enum require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 18, 11)) + + _thisVal1, +>_thisVal1 : Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 19, 33)) + + _thisVal2, +>_thisVal2 : Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 20, 18)) + } + export declare enum exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 22, 5)) + + _thisVal1, +>_thisVal1 : Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 23, 33)) + + _thisVal2, +>_thisVal2 : Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 24, 18)) + } +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.types b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.types new file mode 100644 index 0000000000..e64df56329 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientEnum.types @@ -0,0 +1,129 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientEnum.ts] //// + +=== collisionExportsRequireAndAmbientEnum_externalmodule.ts === +export declare enum require { +>require : require + + _thisVal1, +>_thisVal1 : require._thisVal1 + + _thisVal2, +>_thisVal2 : require._thisVal2 +} +export declare enum exports { +>exports : exports + + _thisVal1, +>_thisVal1 : exports._thisVal1 + + _thisVal2, +>_thisVal2 : exports._thisVal2 +} +declare module m1 { +>m1 : typeof m1 + + enum require { +>require : require + + _thisVal1, +>_thisVal1 : require._thisVal1 + + _thisVal2, +>_thisVal2 : require._thisVal2 + } + enum exports { +>exports : exports + + _thisVal1, +>_thisVal1 : exports._thisVal1 + + _thisVal2, +>_thisVal2 : exports._thisVal2 + } +} +module m2 { +>m2 : typeof m2 + + export declare enum require { +>require : require + + _thisVal1, +>_thisVal1 : require._thisVal1 + + _thisVal2, +>_thisVal2 : require._thisVal2 + } + export declare enum exports { +>exports : exports + + _thisVal1, +>_thisVal1 : exports._thisVal1 + + _thisVal2, +>_thisVal2 : exports._thisVal2 + } +} + +=== collisionExportsRequireAndAmbientEnum_globalFile.ts === +declare enum require { +>require : require + + _thisVal1, +>_thisVal1 : require._thisVal1 + + _thisVal2, +>_thisVal2 : require._thisVal2 +} +declare enum exports { +>exports : exports + + _thisVal1, +>_thisVal1 : exports._thisVal1 + + _thisVal2, +>_thisVal2 : exports._thisVal2 +} +declare module m3 { +>m3 : typeof m3 + + enum require { +>require : require + + _thisVal1, +>_thisVal1 : require._thisVal1 + + _thisVal2, +>_thisVal2 : require._thisVal2 + } + enum exports { +>exports : exports + + _thisVal1, +>_thisVal1 : exports._thisVal1 + + _thisVal2, +>_thisVal2 : exports._thisVal2 + } +} +module m4 { +>m4 : typeof m4 + + export declare enum require { +>require : require + + _thisVal1, +>_thisVal1 : require._thisVal1 + + _thisVal2, +>_thisVal2 : require._thisVal2 + } + export declare enum exports { +>exports : exports + + _thisVal1, +>_thisVal1 : exports._thisVal1 + + _thisVal2, +>_thisVal2 : exports._thisVal2 + } +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.js b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.js new file mode 100644 index 0000000000..92782b0797 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientFunction.ts] //// + +//// [collisionExportsRequireAndAmbientFunction.ts] +export declare function exports(): number; + +export declare function require(): string[]; + +declare module m1 { + function exports(): string; + function require(): number; +} +module m2 { + export declare function exports(): string; + export declare function require(): string[]; + var a = 10; +} + +//// [collisionExportsRequireAndAmbientFunction.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var m2; +(function (m2) { + var a = 10; +})(m2 || (m2 = {})); diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.symbols b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.symbols new file mode 100644 index 0000000000..a97d0b1a31 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientFunction.ts] //// + +=== collisionExportsRequireAndAmbientFunction.ts === +export declare function exports(): number; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientFunction.ts, 0, 0)) + +export declare function require(): string[]; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientFunction.ts, 0, 42)) + +declare module m1 { +>m1 : Symbol(m1, Decl(collisionExportsRequireAndAmbientFunction.ts, 2, 44)) + + function exports(): string; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientFunction.ts, 4, 19)) + + function require(): number; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientFunction.ts, 5, 31)) +} +module m2 { +>m2 : Symbol(m2, Decl(collisionExportsRequireAndAmbientFunction.ts, 7, 1)) + + export declare function exports(): string; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientFunction.ts, 8, 11)) + + export declare function require(): string[]; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientFunction.ts, 9, 46)) + + var a = 10; +>a : Symbol(a, Decl(collisionExportsRequireAndAmbientFunction.ts, 11, 7)) +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.types b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.types new file mode 100644 index 0000000000..854f8d0596 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientFunction.types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientFunction.ts] //// + +=== collisionExportsRequireAndAmbientFunction.ts === +export declare function exports(): number; +>exports : () => number + +export declare function require(): string[]; +>require : () => string[] + +declare module m1 { +>m1 : typeof m1 + + function exports(): string; +>exports : () => string + + function require(): number; +>require : () => number +} +module m2 { +>m2 : typeof m2 + + export declare function exports(): string; +>exports : () => string + + export declare function require(): string[]; +>require : () => string[] + + var a = 10; +>a : number +>10 : 10 +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.js b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.js new file mode 100644 index 0000000000..65520e644e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.js @@ -0,0 +1,116 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientModule.ts] //// + +//// [collisionExportsRequireAndAmbientModule_externalmodule.ts] +export declare module require { + export interface I { + } + export class C { + } +} +export function foo(): require.I { + return null; +} +export declare module exports { + export interface I { + } + export class C { + } +} +export function foo2(): exports.I { + return null; +} +declare module m1 { + module require { + export interface I { + } + export class C { + } + } + module exports { + export interface I { + } + export class C { + } + } +} +module m2 { + export declare module require { + export interface I { + } + export class C { + } + } + export declare module exports { + export interface I { + } + export class C { + } + } + var a = 10; +} + +//// [collisionExportsRequireAndAmbientModule_globalFile.ts] +declare module require { + export interface I { + } + export class C { + } +} +declare module exports { + export interface I { + } + export class C { + } +} +declare module m3 { + module require { + export interface I { + } + export class C { + } + } + module exports { + export interface I { + } + export class C { + } + } +} +module m4 { + export declare module require { + export interface I { + } + export class C { + } + } + export declare module exports { + export interface I { + } + export class C { + } + } + + var a = 10; +} + + +//// [collisionExportsRequireAndAmbientModule_externalmodule.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.foo2 = foo2; +function foo() { + return null; +} +function foo2() { + return null; +} +var m2; +(function (m2) { + var a = 10; +})(m2 || (m2 = {})); +//// [collisionExportsRequireAndAmbientModule_globalFile.js] +var m4; +(function (m4) { + var a = 10; +})(m4 || (m4 = {})); diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.symbols b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.symbols new file mode 100644 index 0000000000..063b12f4d8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.symbols @@ -0,0 +1,161 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientModule.ts] //// + +=== collisionExportsRequireAndAmbientModule_externalmodule.ts === +export declare module require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 0, 0)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 0, 31)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 2, 5)) + } +} +export function foo(): require.I { +>foo : Symbol(foo, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 5, 1)) +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 0, 0)) +>I : Symbol(require.I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 0, 31)) + + return null; +} +export declare module exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 8, 1)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 9, 31)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 11, 5)) + } +} +export function foo2(): exports.I { +>foo2 : Symbol(foo2, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 14, 1)) +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 8, 1)) +>I : Symbol(exports.I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 9, 31)) + + return null; +} +declare module m1 { +>m1 : Symbol(m1, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 17, 1)) + + module require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 18, 19)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 19, 20)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 21, 9)) + } + } + module exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 24, 5)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 25, 20)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 27, 9)) + } + } +} +module m2 { +>m2 : Symbol(m2, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 31, 1)) + + export declare module require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 32, 11)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 33, 35)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 35, 9)) + } + } + export declare module exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 38, 5)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 39, 35)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 41, 9)) + } + } + var a = 10; +>a : Symbol(a, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 45, 7)) +} + +=== collisionExportsRequireAndAmbientModule_globalFile.ts === +declare module require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 0, 0)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 0, 24)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 2, 5)) + } +} +declare module exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 5, 1)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 6, 24)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 8, 5)) + } +} +declare module m3 { +>m3 : Symbol(m3, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 11, 1)) + + module require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 12, 19)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 13, 20)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 15, 9)) + } + } + module exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 18, 5)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 19, 20)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 21, 9)) + } + } +} +module m4 { +>m4 : Symbol(m4, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 25, 1)) + + export declare module require { +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 26, 11)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 27, 35)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 29, 9)) + } + } + export declare module exports { +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 32, 5)) + + export interface I { +>I : Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 33, 35)) + } + export class C { +>C : Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 35, 9)) + } + } + + var a = 10; +>a : Symbol(a, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 40, 7)) +} + diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.types b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.types new file mode 100644 index 0000000000..f4fff9019a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientModule.types @@ -0,0 +1,149 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientModule.ts] //// + +=== collisionExportsRequireAndAmbientModule_externalmodule.ts === +export declare module require { +>require : typeof require + + export interface I { + } + export class C { +>C : C + } +} +export function foo(): require.I { +>foo : () => require.I +>require : any + + return null; +} +export declare module exports { +>exports : typeof exports + + export interface I { + } + export class C { +>C : C + } +} +export function foo2(): exports.I { +>foo2 : () => exports.I +>exports : any + + return null; +} +declare module m1 { +>m1 : typeof m1 + + module require { +>require : typeof require + + export interface I { + } + export class C { +>C : C + } + } + module exports { +>exports : typeof exports + + export interface I { + } + export class C { +>C : C + } + } +} +module m2 { +>m2 : typeof m2 + + export declare module require { +>require : typeof require + + export interface I { + } + export class C { +>C : C + } + } + export declare module exports { +>exports : typeof exports + + export interface I { + } + export class C { +>C : C + } + } + var a = 10; +>a : number +>10 : 10 +} + +=== collisionExportsRequireAndAmbientModule_globalFile.ts === +declare module require { +>require : typeof require + + export interface I { + } + export class C { +>C : C + } +} +declare module exports { +>exports : typeof exports + + export interface I { + } + export class C { +>C : C + } +} +declare module m3 { +>m3 : typeof m3 + + module require { +>require : typeof require + + export interface I { + } + export class C { +>C : C + } + } + module exports { +>exports : typeof exports + + export interface I { + } + export class C { +>C : C + } + } +} +module m4 { +>m4 : typeof m4 + + export declare module require { +>require : typeof require + + export interface I { + } + export class C { +>C : C + } + } + export declare module exports { +>exports : typeof exports + + export interface I { + } + export class C { +>C : C + } + } + + var a = 10; +>a : number +>10 : 10 +} + diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.js b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.js new file mode 100644 index 0000000000..cbfed4ad76 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientVar.ts] //// + +//// [collisionExportsRequireAndAmbientVar_externalmodule.ts] +export declare var exports: number; +export declare var require: string; +declare module m1 { + var exports: string; + var require: number; +} +module m2 { + export declare var exports: number; + export declare var require: string; + var a = 10; +} + +//// [collisionExportsRequireAndAmbientVar_globalFile.ts] +declare var exports: number; +declare var require: string; +declare module m3 { + var exports: string; + var require: number; +} +module m4 { + export declare var exports: string; + export declare var require: number; + var a = 10; +} + +//// [collisionExportsRequireAndAmbientVar_externalmodule.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var m2; +(function (m2) { + var a = 10; +})(m2 || (m2 = {})); +//// [collisionExportsRequireAndAmbientVar_globalFile.js] +var m4; +(function (m4) { + var a = 10; +})(m4 || (m4 = {})); diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.symbols b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.symbols new file mode 100644 index 0000000000..2519959c57 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.symbols @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientVar.ts] //// + +=== collisionExportsRequireAndAmbientVar_externalmodule.ts === +export declare var exports: number; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 0, 18)) + +export declare var require: string; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 1, 18)) + +declare module m1 { +>m1 : Symbol(m1, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 1, 35)) + + var exports: string; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 3, 7)) + + var require: number; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 4, 7)) +} +module m2 { +>m2 : Symbol(m2, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 5, 1)) + + export declare var exports: number; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 7, 22)) + + export declare var require: string; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 8, 22)) + + var a = 10; +>a : Symbol(a, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 9, 7)) +} + +=== collisionExportsRequireAndAmbientVar_globalFile.ts === +declare var exports: number; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 0, 11)) + +declare var require: string; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 1, 11)) + +declare module m3 { +>m3 : Symbol(m3, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 1, 28)) + + var exports: string; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 3, 7)) + + var require: number; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 4, 7)) +} +module m4 { +>m4 : Symbol(m4, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 5, 1)) + + export declare var exports: string; +>exports : Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 7, 22)) + + export declare var require: number; +>require : Symbol(require, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 8, 22)) + + var a = 10; +>a : Symbol(a, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 9, 7)) +} diff --git a/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.types b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.types new file mode 100644 index 0000000000..d87ed7d386 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/collisionExportsRequireAndAmbientVar.types @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/collisionExportsRequireAndAmbientVar.ts] //// + +=== collisionExportsRequireAndAmbientVar_externalmodule.ts === +export declare var exports: number; +>exports : number + +export declare var require: string; +>require : string + +declare module m1 { +>m1 : typeof m1 + + var exports: string; +>exports : string + + var require: number; +>require : number +} +module m2 { +>m2 : typeof m2 + + export declare var exports: number; +>exports : number + + export declare var require: string; +>require : string + + var a = 10; +>a : number +>10 : 10 +} + +=== collisionExportsRequireAndAmbientVar_globalFile.ts === +declare var exports: number; +>exports : number + +declare var require: string; +>require : string + +declare module m3 { +>m3 : typeof m3 + + var exports: string; +>exports : string + + var require: number; +>require : number +} +module m4 { +>m4 : typeof m4 + + export declare var exports: string; +>exports : string + + export declare var require: number; +>require : number + + var a = 10; +>a : number +>10 : 10 +} diff --git a/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.errors.txt b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.errors.txt new file mode 100644 index 0000000000..4e5cb3b10c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.errors.txt @@ -0,0 +1,10 @@ +commentOnImportStatement1.ts(3,22): error TS2307: Cannot find module './foo' or its corresponding type declarations. + + +==== commentOnImportStatement1.ts (1 errors) ==== + /* Copyright */ + + import foo = require('./foo'); + ~~~~~~~ +!!! error TS2307: Cannot find module './foo' or its corresponding type declarations. + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.js b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.js new file mode 100644 index 0000000000..93eb14b9a4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.js @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/commentOnImportStatement1.ts] //// + +//// [commentOnImportStatement1.ts] +/* Copyright */ + +import foo = require('./foo'); + + +//// [commentOnImportStatement1.js] +"use strict"; +/* Copyright */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.symbols b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.symbols new file mode 100644 index 0000000000..b1ece547be --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.symbols @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/commentOnImportStatement1.ts] //// + +=== commentOnImportStatement1.ts === +/* Copyright */ + +import foo = require('./foo'); +>foo : Symbol(foo, Decl(commentOnImportStatement1.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.types b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.types new file mode 100644 index 0000000000..2409882770 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement1.types @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/commentOnImportStatement1.ts] //// + +=== commentOnImportStatement1.ts === +/* Copyright */ + +import foo = require('./foo'); +>foo : any + diff --git a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.errors.txt b/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.errors.txt deleted file mode 100644 index 94b49e0bd2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class c { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.symbols b/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.symbols deleted file mode 100644 index c179362dd2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/compilerOptionsOutAndNoEmit.ts] //// - -=== a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.types b/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.types deleted file mode 100644 index a1e7ad2bf0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutAndNoEmit.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/compilerOptionsOutAndNoEmit.ts] //// - -=== a.ts === -class c { ->c : c -} - diff --git a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.errors.txt b/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.errors.txt deleted file mode 100644 index 94b49e0bd2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class c { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.symbols b/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.symbols deleted file mode 100644 index 28ffa627f3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/compilerOptionsOutFileAndNoEmit.ts] //// - -=== a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.types b/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.types deleted file mode 100644 index 4338a5bb8d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/compilerOptionsOutFileAndNoEmit.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/compilerOptionsOutFileAndNoEmit.ts] //// - -=== a.ts === -class c { ->c : c -} - diff --git a/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace1.js b/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace1.js index c018dd7b69..06d5681d4b 100644 --- a/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace1.js +++ b/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace1.js @@ -31,8 +31,41 @@ export const pick = () => pick(); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.pick = void 0; -const pick = require("lodash/pick"); +const pick = __importStar(require("lodash/pick")); const pick = () => (0, exports.pick)(); exports.pick = pick; diff --git a/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace1.js.diff b/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace1.js.diff index e854b89c8d..5529c7a3b1 100644 --- a/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace1.js.diff @@ -1,10 +1,10 @@ --- old.conflictingDeclarationsImportFromNamespace1.js +++ new.conflictingDeclarationsImportFromNamespace1.js -@@= skipped -32, +32 lines =@@ - "use strict"; +@@= skipped -65, +65 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.pick = void 0; --var pick = require("lodash/pick"); -+const pick = require("lodash/pick"); +-var pick = __importStar(require("lodash/pick")); ++const pick = __importStar(require("lodash/pick")); const pick = () => (0, exports.pick)(); exports.pick = pick; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace2.js b/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace2.js index da6b1bd9dc..b8dcdab16c 100644 --- a/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace2.js +++ b/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace2.js @@ -31,8 +31,41 @@ export const pick = () => pick(); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.pick = void 0; -const pick = require("lodash/pick"); +const pick = __importStar(require("lodash/pick")); const pick = () => (0, exports.pick)(); exports.pick = pick; diff --git a/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace2.js.diff b/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace2.js.diff index 018d6fa105..991583d9d6 100644 --- a/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/conflictingDeclarationsImportFromNamespace2.js.diff @@ -1,10 +1,10 @@ --- old.conflictingDeclarationsImportFromNamespace2.js +++ new.conflictingDeclarationsImportFromNamespace2.js -@@= skipped -32, +32 lines =@@ - "use strict"; +@@= skipped -65, +65 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.pick = void 0; --var pick = require("lodash/pick"); -+const pick = require("lodash/pick"); +-var pick = __importStar(require("lodash/pick")); ++const pick = __importStar(require("lodash/pick")); const pick = () => (0, exports.pick)(); exports.pick = pick; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.errors.txt b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.errors.txt new file mode 100644 index 0000000000..9900daf98b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.errors.txt @@ -0,0 +1,50 @@ +constDeclarations_access_2.ts(4,1): error TS2322: Type '1' is not assignable to type '0'. + + +==== constDeclarations_access_2.ts (1 errors) ==== + /// + import m = require('./constDeclarations_access_1'); + // Errors + m.x = 1; + ~~~ +!!! error TS2322: Type '1' is not assignable to type '0'. + m.x += 2; + m.x -= 3; + m.x *= 4; + m.x /= 5; + m.x %= 6; + m.x <<= 7; + m.x >>= 8; + m.x >>>= 9; + m.x &= 10; + m.x |= 11; + m.x ^= 12; + m + m.x++; + m.x--; + ++m.x; + --m.x; + + ++((m.x)); + + m["x"] = 0; + + // OK + var a = m.x + 1; + + function f(v: number) { } + f(m.x); + + if (m.x) { } + + m.x; + (m.x); + + -m.x; + +m.x; + + m.x.toString(); + +==== constDeclarations_access_1.ts (0 errors) ==== + export const x = 0; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.errors.txt.diff new file mode 100644 index 0000000000..9d1bfa7cd5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.errors.txt.diff @@ -0,0 +1,93 @@ +--- old.constDeclarations-access5.errors.txt ++++ new.constDeclarations-access5.errors.txt +@@= skipped -0, +0 lines =@@ +-constDeclarations_access_2.ts(4,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(5,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(6,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(7,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(8,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(9,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(10,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(11,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(12,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(13,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(14,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(15,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(17,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(18,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(19,5): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(20,5): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(22,7): error TS2540: Cannot assign to 'x' because it is a read-only property. +-constDeclarations_access_2.ts(24,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +- +- +-==== constDeclarations_access_2.ts (18 errors) ==== ++constDeclarations_access_2.ts(4,1): error TS2322: Type '1' is not assignable to type '0'. ++ ++ ++==== constDeclarations_access_2.ts (1 errors) ==== + /// + import m = require('./constDeclarations_access_1'); + // Errors + m.x = 1; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. ++ ~~~ ++!!! error TS2322: Type '1' is not assignable to type '0'. + m.x += 2; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x -= 3; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x *= 4; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x /= 5; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x %= 6; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x <<= 7; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x >>= 8; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x >>>= 9; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x &= 10; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x |= 11; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x ^= 12; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m + m.x++; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + m.x--; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + ++m.x; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + --m.x; +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + + ++((m.x)); +- ~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + + m["x"] = 0; +- ~~~ +-!!! error TS2540: Cannot assign to 'x' because it is a read-only property. + + // OK + var a = m.x + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.js b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.js new file mode 100644 index 0000000000..4e5ca86aad --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.js @@ -0,0 +1,88 @@ +//// [tests/cases/compiler/constDeclarations-access5.ts] //// + +//// [constDeclarations_access_1.ts] +export const x = 0; + +//// [constDeclarations_access_2.ts] +/// +import m = require('./constDeclarations_access_1'); +// Errors +m.x = 1; +m.x += 2; +m.x -= 3; +m.x *= 4; +m.x /= 5; +m.x %= 6; +m.x <<= 7; +m.x >>= 8; +m.x >>>= 9; +m.x &= 10; +m.x |= 11; +m.x ^= 12; +m +m.x++; +m.x--; +++m.x; +--m.x; + +++((m.x)); + +m["x"] = 0; + +// OK +var a = m.x + 1; + +function f(v: number) { } +f(m.x); + +if (m.x) { } + +m.x; +(m.x); + +-m.x; ++m.x; + +m.x.toString(); + + +//// [constDeclarations_access_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 0; +//// [constDeclarations_access_2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/// +const m = require("./constDeclarations_access_1"); +// Errors +m.x = 1; +m.x += 2; +m.x -= 3; +m.x *= 4; +m.x /= 5; +m.x %= 6; +m.x <<= 7; +m.x >>= 8; +m.x >>>= 9; +m.x &= 10; +m.x |= 11; +m.x ^= 12; +m; +m.x++; +m.x--; +++m.x; +--m.x; +++((m.x)); +m["x"] = 0; +// OK +var a = m.x + 1; +function f(v) { } +f(m.x); +if (m.x) { } +m.x; +(m.x); +-m.x; ++m.x; +m.x.toString(); diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.symbols b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.symbols new file mode 100644 index 0000000000..59d9f3ed8c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.symbols @@ -0,0 +1,153 @@ +//// [tests/cases/compiler/constDeclarations-access5.ts] //// + +=== constDeclarations_access_2.ts === +/// +import m = require('./constDeclarations_access_1'); +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) + +// Errors +m.x = 1; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x += 2; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x -= 3; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x *= 4; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x /= 5; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x %= 6; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x <<= 7; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x >>= 8; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x >>>= 9; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x &= 10; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x |= 11; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x ^= 12; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) + +m.x++; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x--; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +++m.x; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +--m.x; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +++((m.x)); +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m["x"] = 0; +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>"x" : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +// OK +var a = m.x + 1; +>a : Symbol(a, Decl(constDeclarations_access_2.ts, 26, 3)) +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +function f(v: number) { } +>f : Symbol(f, Decl(constDeclarations_access_2.ts, 26, 16)) +>v : Symbol(v, Decl(constDeclarations_access_2.ts, 28, 11)) + +f(m.x); +>f : Symbol(f, Decl(constDeclarations_access_2.ts, 26, 16)) +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +if (m.x) { } +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +(m.x); +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +-m.x; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + ++m.x; +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) + +m.x.toString(); +>m.x.toString : Symbol(Number.toString, Decl(lib.es5.d.ts, --, --)) +>m.x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) +>x : Symbol(m.x, Decl(constDeclarations_access_1.ts, 0, 12)) +>toString : Symbol(Number.toString, Decl(lib.es5.d.ts, --, --)) + +=== constDeclarations_access_1.ts === +export const x = 0; +>x : Symbol(x, Decl(constDeclarations_access_1.ts, 0, 12)) + diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.types b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.types new file mode 100644 index 0000000000..822381ead2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.types @@ -0,0 +1,195 @@ +//// [tests/cases/compiler/constDeclarations-access5.ts] //// + +=== constDeclarations_access_2.ts === +/// +import m = require('./constDeclarations_access_1'); +>m : typeof m + +// Errors +m.x = 1; +>m.x = 1 : 1 +>m.x : 0 +>m : typeof m +>x : 0 +>1 : 1 + +m.x += 2; +>m.x += 2 : number +>m.x : number +>m : typeof m +>x : number +>2 : 2 + +m.x -= 3; +>m.x -= 3 : number +>m.x : number +>m : typeof m +>x : number +>3 : 3 + +m.x *= 4; +>m.x *= 4 : number +>m.x : number +>m : typeof m +>x : number +>4 : 4 + +m.x /= 5; +>m.x /= 5 : number +>m.x : number +>m : typeof m +>x : number +>5 : 5 + +m.x %= 6; +>m.x %= 6 : number +>m.x : number +>m : typeof m +>x : number +>6 : 6 + +m.x <<= 7; +>m.x <<= 7 : number +>m.x : number +>m : typeof m +>x : number +>7 : 7 + +m.x >>= 8; +>m.x >>= 8 : number +>m.x : number +>m : typeof m +>x : number +>8 : 8 + +m.x >>>= 9; +>m.x >>>= 9 : number +>m.x : number +>m : typeof m +>x : number +>9 : 9 + +m.x &= 10; +>m.x &= 10 : number +>m.x : number +>m : typeof m +>x : number +>10 : 10 + +m.x |= 11; +>m.x |= 11 : number +>m.x : number +>m : typeof m +>x : number +>11 : 11 + +m.x ^= 12; +>m.x ^= 12 : number +>m.x : number +>m : typeof m +>x : number +>12 : 12 + +m +>m : typeof m + +m.x++; +>m.x++ : number +>m.x : number +>m : typeof m +>x : number + +m.x--; +>m.x-- : number +>m.x : number +>m : typeof m +>x : number + +++m.x; +>++m.x : number +>m.x : number +>m : typeof m +>x : number + +--m.x; +>--m.x : number +>m.x : number +>m : typeof m +>x : number + +++((m.x)); +>++((m.x)) : number +>((m.x)) : number +>(m.x) : number +>m.x : number +>m : typeof m +>x : number + +m["x"] = 0; +>m["x"] = 0 : 0 +>m["x"] : 0 +>m : typeof m +>"x" : "x" +>0 : 0 + +// OK +var a = m.x + 1; +>a : number +>m.x + 1 : number +>m.x : 0 +>m : typeof m +>x : 0 +>1 : 1 + +function f(v: number) { } +>f : (v: number) => void +>v : number + +f(m.x); +>f(m.x) : void +>f : (v: number) => void +>m.x : 0 +>m : typeof m +>x : 0 + +if (m.x) { } +>m.x : 0 +>m : typeof m +>x : 0 + +m.x; +>m.x : 0 +>m : typeof m +>x : 0 + +(m.x); +>(m.x) : 0 +>m.x : 0 +>m : typeof m +>x : 0 + +-m.x; +>-m.x : number +>m.x : 0 +>m : typeof m +>x : 0 + ++m.x; +>+m.x : number +>m.x : 0 +>m : typeof m +>x : 0 + +m.x.toString(); +>m.x.toString() : string +>m.x.toString : (radix?: number) => string +>m.x : 0 +>m : typeof m +>x : 0 +>toString : (radix?: number) => string + +=== constDeclarations_access_1.ts === +export const x = 0; +>x : 0 +>0 : 0 + diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.types.diff b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.types.diff new file mode 100644 index 0000000000..e14da40efa --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/constDeclarations-access5.types.diff @@ -0,0 +1,167 @@ +--- old.constDeclarations-access5.types ++++ new.constDeclarations-access5.types +@@= skipped -7, +7 lines =@@ + // Errors + m.x = 1; + >m.x = 1 : 1 +->m.x : any ++>m.x : 0 + >m : typeof m +->x : any ++>x : 0 + >1 : 1 + + m.x += 2; +->m.x += 2 : any +->m.x : any ++>m.x += 2 : number ++>m.x : number + >m : typeof m +->x : any ++>x : number + >2 : 2 + + m.x -= 3; + >m.x -= 3 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >3 : 3 + + m.x *= 4; + >m.x *= 4 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >4 : 4 + + m.x /= 5; + >m.x /= 5 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >5 : 5 + + m.x %= 6; + >m.x %= 6 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >6 : 6 + + m.x <<= 7; + >m.x <<= 7 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >7 : 7 + + m.x >>= 8; + >m.x >>= 8 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >8 : 8 + + m.x >>>= 9; + >m.x >>>= 9 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >9 : 9 + + m.x &= 10; + >m.x &= 10 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >10 : 10 + + m.x |= 11; + >m.x |= 11 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >11 : 11 + + m.x ^= 12; + >m.x ^= 12 : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + >12 : 12 + + m +@@= skipped -87, +87 lines =@@ + + m.x++; + >m.x++ : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + + m.x--; + >m.x-- : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + + ++m.x; + >++m.x : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + + --m.x; + >--m.x : number +->m.x : any ++>m.x : number + >m : typeof m +->x : any ++>x : number + + ++((m.x)); + >++((m.x)) : number +->((m.x)) : any +->(m.x) : any +->m.x : any ++>((m.x)) : number ++>(m.x) : number ++>m.x : number + >m : typeof m +->x : any ++>x : number + + m["x"] = 0; + >m["x"] = 0 : 0 +->m["x"] : any ++>m["x"] : 0 + >m : typeof m + >"x" : "x" + >0 : 0 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.errors.txt b/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.errors.txt deleted file mode 100644 index 18f82cd7e6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== file1.ts (0 errors) ==== - c; - -==== file2.ts (0 errors) ==== - const c = 0; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.symbols b/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.symbols deleted file mode 100644 index aa905a40d2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts] //// - -=== file1.ts === -c; ->c : Symbol(c, Decl(file2.ts, 0, 5)) - -=== file2.ts === -const c = 0; ->c : Symbol(c, Decl(file2.ts, 0, 5)) - diff --git a/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.types b/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.types deleted file mode 100644 index 168dc54da6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/constDeclarations-useBeforeDefinition2.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts] //// - -=== file1.ts === -c; ->c : 0 - -=== file2.ts === -const c = 0; ->c : 0 ->0 : 0 - diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js index e29818d9ad..234e0c3045 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js +++ b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js @@ -32,8 +32,41 @@ var ConstFooEnum; function fooFunc() { } //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const Foo = require("./foo"); +const Foo = __importStar(require("./foo")); function check(x) { switch (x) { case Foo.ConstFooEnum.Some: diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js.diff b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js.diff index 641b693b5a..34760791b2 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js.diff @@ -1,11 +1,11 @@ --- old.constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js +++ new.constEnumNamespaceReferenceCausesNoImport(isolatedmodules=true).js -@@= skipped -32, +32 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -65, +65 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var Foo = require("./foo"); -+const Foo = require("./foo"); +-var Foo = __importStar(require("./foo")); ++const Foo = __importStar(require("./foo")); function check(x) { switch (x) { case Foo.ConstFooEnum.Some: \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js index 19bf2acc7d..c7fecdfa82 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js +++ b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js @@ -37,7 +37,40 @@ var ConstEnumOnlyModule; })(ConstEnumOnlyModule || (exports.ConstEnumOnlyModule = ConstEnumOnlyModule = {})); //// [reexport.js] "use strict"; -const Foo = require("./foo"); +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +const Foo = __importStar(require("./foo")); module.exports = Foo.ConstEnumOnlyModule; //// [index.js] "use strict"; diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js.diff b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js.diff index 83b57bd3ed..442a70cd5e 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js.diff @@ -1,11 +1,11 @@ --- old.constEnumNamespaceReferenceCausesNoImport2.js +++ new.constEnumNamespaceReferenceCausesNoImport2.js -@@= skipped -36, +36 lines =@@ - })(ConstEnumOnlyModule || (exports.ConstEnumOnlyModule = ConstEnumOnlyModule = {})); - //// [reexport.js] - "use strict"; --var Foo = require("./foo"); -+const Foo = require("./foo"); +@@= skipped -69, +69 lines =@@ + return result; + }; + })(); +-var Foo = __importStar(require("./foo")); ++const Foo = __importStar(require("./foo")); module.exports = Foo.ConstEnumOnlyModule; //// [index.js] "use strict"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.errors.txt b/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.errors.txt deleted file mode 100644 index 5bb0b8e7eb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.errors.txt +++ /dev/null @@ -1,113 +0,0 @@ -error TS5055: Cannot write file 'controlFlowJavascript.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'controlFlowJavascript.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== controlFlowJavascript.js (0 errors) ==== - let cond = true; - - // CFA for 'let' and no initializer - function f1() { - let x; - if (cond) { - x = 1; - } - if (cond) { - x = "hello"; - } - const y = x; // string | number | undefined - } - - // CFA for 'let' and 'undefined' initializer - function f2() { - let x = undefined; - if (cond) { - x = 1; - } - if (cond) { - x = "hello"; - } - const y = x; // string | number | undefined - } - - // CFA for 'let' and 'null' initializer - function f3() { - let x = null; - if (cond) { - x = 1; - } - if (cond) { - x = "hello"; - } - const y = x; // string | number | null - } - - // CFA for 'var' with no initializer - function f5() { - var x; - if (cond) { - x = 1; - } - if (cond) { - x = "hello"; - } - const y = x; // string | number | undefined - } - - // CFA for 'var' with 'undefined' initializer - function f6() { - var x = undefined; - if (cond) { - x = 1; - } - if (cond) { - x = "hello"; - } - const y = x; // string | number | undefined - } - - // CFA for 'var' with 'null' initializer - function f7() { - var x = null; - if (cond) { - x = 1; - } - if (cond) { - x = "hello"; - } - const y = x; // string | number | null - } - - // No CFA for captured outer variables - function f9() { - let x; - if (cond) { - x = 1; - } - if (cond) { - x = "hello"; - } - const y = x; // string | number | undefined - function f() { - const z = x; // any - } - } - - // No CFA for captured outer variables - function f10() { - let x; - if (cond) { - x = 1; - } - if (cond) { - x = "hello"; - } - const y = x; // string | number | undefined - const f = () => { - const z = x; // any - }; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.symbols b/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.symbols deleted file mode 100644 index fc5feaf282..0000000000 --- a/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.symbols +++ /dev/null @@ -1,217 +0,0 @@ -//// [tests/cases/compiler/controlFlowJavascript.ts] //// - -=== controlFlowJavascript.js === -let cond = true; ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - -// CFA for 'let' and no initializer -function f1() { ->f1 : Symbol(f1, Decl(controlFlowJavascript.js, 0, 16)) - - let x; ->x : Symbol(x, Decl(controlFlowJavascript.js, 4, 7)) - - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = 1; ->x : Symbol(x, Decl(controlFlowJavascript.js, 4, 7)) - } - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = "hello"; ->x : Symbol(x, Decl(controlFlowJavascript.js, 4, 7)) - } - const y = x; // string | number | undefined ->y : Symbol(y, Decl(controlFlowJavascript.js, 11, 9)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 4, 7)) -} - -// CFA for 'let' and 'undefined' initializer -function f2() { ->f2 : Symbol(f2, Decl(controlFlowJavascript.js, 12, 1)) - - let x = undefined; ->x : Symbol(x, Decl(controlFlowJavascript.js, 16, 7)) ->undefined : Symbol(undefined) - - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = 1; ->x : Symbol(x, Decl(controlFlowJavascript.js, 16, 7)) - } - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = "hello"; ->x : Symbol(x, Decl(controlFlowJavascript.js, 16, 7)) - } - const y = x; // string | number | undefined ->y : Symbol(y, Decl(controlFlowJavascript.js, 23, 9)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 16, 7)) -} - -// CFA for 'let' and 'null' initializer -function f3() { ->f3 : Symbol(f3, Decl(controlFlowJavascript.js, 24, 1)) - - let x = null; ->x : Symbol(x, Decl(controlFlowJavascript.js, 28, 7)) - - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = 1; ->x : Symbol(x, Decl(controlFlowJavascript.js, 28, 7)) - } - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = "hello"; ->x : Symbol(x, Decl(controlFlowJavascript.js, 28, 7)) - } - const y = x; // string | number | null ->y : Symbol(y, Decl(controlFlowJavascript.js, 35, 9)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 28, 7)) -} - -// CFA for 'var' with no initializer -function f5() { ->f5 : Symbol(f5, Decl(controlFlowJavascript.js, 36, 1)) - - var x; ->x : Symbol(x, Decl(controlFlowJavascript.js, 40, 7)) - - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = 1; ->x : Symbol(x, Decl(controlFlowJavascript.js, 40, 7)) - } - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = "hello"; ->x : Symbol(x, Decl(controlFlowJavascript.js, 40, 7)) - } - const y = x; // string | number | undefined ->y : Symbol(y, Decl(controlFlowJavascript.js, 47, 9)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 40, 7)) -} - -// CFA for 'var' with 'undefined' initializer -function f6() { ->f6 : Symbol(f6, Decl(controlFlowJavascript.js, 48, 1)) - - var x = undefined; ->x : Symbol(x, Decl(controlFlowJavascript.js, 52, 7)) ->undefined : Symbol(undefined) - - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = 1; ->x : Symbol(x, Decl(controlFlowJavascript.js, 52, 7)) - } - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = "hello"; ->x : Symbol(x, Decl(controlFlowJavascript.js, 52, 7)) - } - const y = x; // string | number | undefined ->y : Symbol(y, Decl(controlFlowJavascript.js, 59, 9)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 52, 7)) -} - -// CFA for 'var' with 'null' initializer -function f7() { ->f7 : Symbol(f7, Decl(controlFlowJavascript.js, 60, 1)) - - var x = null; ->x : Symbol(x, Decl(controlFlowJavascript.js, 64, 7)) - - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = 1; ->x : Symbol(x, Decl(controlFlowJavascript.js, 64, 7)) - } - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = "hello"; ->x : Symbol(x, Decl(controlFlowJavascript.js, 64, 7)) - } - const y = x; // string | number | null ->y : Symbol(y, Decl(controlFlowJavascript.js, 71, 9)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 64, 7)) -} - -// No CFA for captured outer variables -function f9() { ->f9 : Symbol(f9, Decl(controlFlowJavascript.js, 72, 1)) - - let x; ->x : Symbol(x, Decl(controlFlowJavascript.js, 76, 7)) - - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = 1; ->x : Symbol(x, Decl(controlFlowJavascript.js, 76, 7)) - } - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = "hello"; ->x : Symbol(x, Decl(controlFlowJavascript.js, 76, 7)) - } - const y = x; // string | number | undefined ->y : Symbol(y, Decl(controlFlowJavascript.js, 83, 9)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 76, 7)) - - function f() { ->f : Symbol(f, Decl(controlFlowJavascript.js, 83, 16)) - - const z = x; // any ->z : Symbol(z, Decl(controlFlowJavascript.js, 85, 13)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 76, 7)) - } -} - -// No CFA for captured outer variables -function f10() { ->f10 : Symbol(f10, Decl(controlFlowJavascript.js, 87, 1)) - - let x; ->x : Symbol(x, Decl(controlFlowJavascript.js, 91, 7)) - - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = 1; ->x : Symbol(x, Decl(controlFlowJavascript.js, 91, 7)) - } - if (cond) { ->cond : Symbol(cond, Decl(controlFlowJavascript.js, 0, 3)) - - x = "hello"; ->x : Symbol(x, Decl(controlFlowJavascript.js, 91, 7)) - } - const y = x; // string | number | undefined ->y : Symbol(y, Decl(controlFlowJavascript.js, 98, 9)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 91, 7)) - - const f = () => { ->f : Symbol(f, Decl(controlFlowJavascript.js, 99, 9)) - - const z = x; // any ->z : Symbol(z, Decl(controlFlowJavascript.js, 100, 13)) ->x : Symbol(x, Decl(controlFlowJavascript.js, 91, 7)) - - }; -} - diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.types b/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.types deleted file mode 100644 index dfae20707c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/controlFlowJavascript.types +++ /dev/null @@ -1,251 +0,0 @@ -//// [tests/cases/compiler/controlFlowJavascript.ts] //// - -=== controlFlowJavascript.js === -let cond = true; ->cond : boolean ->true : true - -// CFA for 'let' and no initializer -function f1() { ->f1 : () => void - - let x; ->x : any - - if (cond) { ->cond : boolean - - x = 1; ->x = 1 : 1 ->x : any ->1 : 1 - } - if (cond) { ->cond : boolean - - x = "hello"; ->x = "hello" : "hello" ->x : any ->"hello" : "hello" - } - const y = x; // string | number | undefined ->y : any ->x : any -} - -// CFA for 'let' and 'undefined' initializer -function f2() { ->f2 : () => void - - let x = undefined; ->x : any ->undefined : undefined - - if (cond) { ->cond : boolean - - x = 1; ->x = 1 : 1 ->x : any ->1 : 1 - } - if (cond) { ->cond : boolean - - x = "hello"; ->x = "hello" : "hello" ->x : any ->"hello" : "hello" - } - const y = x; // string | number | undefined ->y : any ->x : any -} - -// CFA for 'let' and 'null' initializer -function f3() { ->f3 : () => void - - let x = null; ->x : any - - if (cond) { ->cond : boolean - - x = 1; ->x = 1 : 1 ->x : any ->1 : 1 - } - if (cond) { ->cond : boolean - - x = "hello"; ->x = "hello" : "hello" ->x : any ->"hello" : "hello" - } - const y = x; // string | number | null ->y : any ->x : any -} - -// CFA for 'var' with no initializer -function f5() { ->f5 : () => void - - var x; ->x : any - - if (cond) { ->cond : boolean - - x = 1; ->x = 1 : 1 ->x : any ->1 : 1 - } - if (cond) { ->cond : boolean - - x = "hello"; ->x = "hello" : "hello" ->x : any ->"hello" : "hello" - } - const y = x; // string | number | undefined ->y : any ->x : any -} - -// CFA for 'var' with 'undefined' initializer -function f6() { ->f6 : () => void - - var x = undefined; ->x : any ->undefined : undefined - - if (cond) { ->cond : boolean - - x = 1; ->x = 1 : 1 ->x : any ->1 : 1 - } - if (cond) { ->cond : boolean - - x = "hello"; ->x = "hello" : "hello" ->x : any ->"hello" : "hello" - } - const y = x; // string | number | undefined ->y : any ->x : any -} - -// CFA for 'var' with 'null' initializer -function f7() { ->f7 : () => void - - var x = null; ->x : any - - if (cond) { ->cond : boolean - - x = 1; ->x = 1 : 1 ->x : any ->1 : 1 - } - if (cond) { ->cond : boolean - - x = "hello"; ->x = "hello" : "hello" ->x : any ->"hello" : "hello" - } - const y = x; // string | number | null ->y : any ->x : any -} - -// No CFA for captured outer variables -function f9() { ->f9 : () => void - - let x; ->x : any - - if (cond) { ->cond : boolean - - x = 1; ->x = 1 : 1 ->x : any ->1 : 1 - } - if (cond) { ->cond : boolean - - x = "hello"; ->x = "hello" : "hello" ->x : any ->"hello" : "hello" - } - const y = x; // string | number | undefined ->y : any ->x : any - - function f() { ->f : () => void - - const z = x; // any ->z : any ->x : any - } -} - -// No CFA for captured outer variables -function f10() { ->f10 : () => void - - let x; ->x : any - - if (cond) { ->cond : boolean - - x = 1; ->x = 1 : 1 ->x : any ->1 : 1 - } - if (cond) { ->cond : boolean - - x = "hello"; ->x = "hello" : "hello" ->x : any ->"hello" : "hello" - } - const y = x; // string | number | undefined ->y : any ->x : any - - const f = () => { ->f : () => void ->() => { const z = x; // any } : () => void - - const z = x; // any ->z : any ->x : any - - }; -} - diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.errors.txt b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.errors.txt new file mode 100644 index 0000000000..c091aec88b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.errors.txt @@ -0,0 +1,15 @@ +copyrightWithNewLine1.ts(5,24): error TS2307: Cannot find module './greeter' or its corresponding type declarations. + + +==== copyrightWithNewLine1.ts (1 errors) ==== + /***************************** + * (c) Copyright - Important + ****************************/ + + import model = require("./greeter") + ~~~~~~~~~~~ +!!! error TS2307: Cannot find module './greeter' or its corresponding type declarations. + var el = document.getElementById('content'); + var greeter = new model.Greeter(el); + /** things */ + greeter.start(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.js b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.js new file mode 100644 index 0000000000..42ccf6c2d5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/copyrightWithNewLine1.ts] //// + +//// [copyrightWithNewLine1.ts] +/***************************** +* (c) Copyright - Important +****************************/ + +import model = require("./greeter") +var el = document.getElementById('content'); +var greeter = new model.Greeter(el); +/** things */ +greeter.start(); + +//// [copyrightWithNewLine1.js] +"use strict"; +/***************************** +* (c) Copyright - Important +****************************/ +Object.defineProperty(exports, "__esModule", { value: true }); +const model = require("./greeter"); +var el = document.getElementById('content'); +var greeter = new model.Greeter(el); +/** things */ +greeter.start(); diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.js.diff b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.js.diff new file mode 100644 index 0000000000..96e6e80b5b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.js.diff @@ -0,0 +1,11 @@ +--- old.copyrightWithNewLine1.js ++++ new.copyrightWithNewLine1.js +@@= skipped -16, +16 lines =@@ + * (c) Copyright - Important + ****************************/ + Object.defineProperty(exports, "__esModule", { value: true }); +-var model = require("./greeter"); ++const model = require("./greeter"); + var el = document.getElementById('content'); + var greeter = new model.Greeter(el); + /** things */ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.symbols b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.symbols new file mode 100644 index 0000000000..974ef3f5da --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/copyrightWithNewLine1.ts] //// + +=== copyrightWithNewLine1.ts === +/***************************** +* (c) Copyright - Important +****************************/ + +import model = require("./greeter") +>model : Symbol(model, Decl(copyrightWithNewLine1.ts, 0, 0)) + +var el = document.getElementById('content'); +>el : Symbol(el, Decl(copyrightWithNewLine1.ts, 5, 3)) +>document.getElementById : Symbol(Document.getElementById, Decl(lib.dom.d.ts, --, --)) +>document : Symbol(document, Decl(lib.dom.d.ts, --, --)) +>getElementById : Symbol(Document.getElementById, Decl(lib.dom.d.ts, --, --)) + +var greeter = new model.Greeter(el); +>greeter : Symbol(greeter, Decl(copyrightWithNewLine1.ts, 6, 3)) +>model : Symbol(model, Decl(copyrightWithNewLine1.ts, 0, 0)) +>el : Symbol(el, Decl(copyrightWithNewLine1.ts, 5, 3)) + +/** things */ +greeter.start(); +>greeter : Symbol(greeter, Decl(copyrightWithNewLine1.ts, 6, 3)) + diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.types b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.types new file mode 100644 index 0000000000..dc3d898176 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.types @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/copyrightWithNewLine1.ts] //// + +=== copyrightWithNewLine1.ts === +/***************************** +* (c) Copyright - Important +****************************/ + +import model = require("./greeter") +>model : any + +var el = document.getElementById('content'); +>el : HTMLElement +>document.getElementById('content') : HTMLElement +>document.getElementById : (elementId: string) => HTMLElement +>document : Document +>getElementById : (elementId: string) => HTMLElement +>'content' : "content" + +var greeter = new model.Greeter(el); +>greeter : any +>new model.Greeter(el) : any +>model.Greeter : any +>model : any +>Greeter : any +>el : HTMLElement + +/** things */ +greeter.start(); +>greeter.start() : any +>greeter.start : any +>greeter : any +>start : any + diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.types.diff b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.types.diff new file mode 100644 index 0000000000..7f035155b6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithNewLine1.types.diff @@ -0,0 +1,14 @@ +--- old.copyrightWithNewLine1.types ++++ new.copyrightWithNewLine1.types +@@= skipped -10, +10 lines =@@ + var el = document.getElementById('content'); + >el : HTMLElement + >document.getElementById('content') : HTMLElement +->document.getElementById : (elementId: string) => HTMLElement | null ++>document.getElementById : (elementId: string) => HTMLElement + >document : Document +->getElementById : (elementId: string) => HTMLElement | null ++>getElementById : (elementId: string) => HTMLElement + >'content' : "content" + + var greeter = new model.Greeter(el); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.errors.txt b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.errors.txt new file mode 100644 index 0000000000..cc9d2adb14 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.errors.txt @@ -0,0 +1,14 @@ +copyrightWithoutNewLine1.ts(4,24): error TS2307: Cannot find module './greeter' or its corresponding type declarations. + + +==== copyrightWithoutNewLine1.ts (1 errors) ==== + /***************************** + * (c) Copyright - Important + ****************************/ + import model = require("./greeter") + ~~~~~~~~~~~ +!!! error TS2307: Cannot find module './greeter' or its corresponding type declarations. + var el = document.getElementById('content'); + var greeter = new model.Greeter(el); + /** things */ + greeter.start(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.js b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.js new file mode 100644 index 0000000000..1076a5c98b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/copyrightWithoutNewLine1.ts] //// + +//// [copyrightWithoutNewLine1.ts] +/***************************** +* (c) Copyright - Important +****************************/ +import model = require("./greeter") +var el = document.getElementById('content'); +var greeter = new model.Greeter(el); +/** things */ +greeter.start(); + +//// [copyrightWithoutNewLine1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/***************************** +* (c) Copyright - Important +****************************/ +const model = require("./greeter"); +var el = document.getElementById('content'); +var greeter = new model.Greeter(el); +/** things */ +greeter.start(); diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.js.diff b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.js.diff new file mode 100644 index 0000000000..f7d1d0ec44 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.js.diff @@ -0,0 +1,11 @@ +--- old.copyrightWithoutNewLine1.js ++++ new.copyrightWithoutNewLine1.js +@@= skipped -15, +15 lines =@@ + /***************************** + * (c) Copyright - Important + ****************************/ +-var model = require("./greeter"); ++const model = require("./greeter"); + var el = document.getElementById('content'); + var greeter = new model.Greeter(el); + /** things */ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.symbols b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.symbols new file mode 100644 index 0000000000..dd0f44d65a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/copyrightWithoutNewLine1.ts] //// + +=== copyrightWithoutNewLine1.ts === +/***************************** +* (c) Copyright - Important +****************************/ +import model = require("./greeter") +>model : Symbol(model, Decl(copyrightWithoutNewLine1.ts, 0, 0)) + +var el = document.getElementById('content'); +>el : Symbol(el, Decl(copyrightWithoutNewLine1.ts, 4, 3)) +>document.getElementById : Symbol(Document.getElementById, Decl(lib.dom.d.ts, --, --)) +>document : Symbol(document, Decl(lib.dom.d.ts, --, --)) +>getElementById : Symbol(Document.getElementById, Decl(lib.dom.d.ts, --, --)) + +var greeter = new model.Greeter(el); +>greeter : Symbol(greeter, Decl(copyrightWithoutNewLine1.ts, 5, 3)) +>model : Symbol(model, Decl(copyrightWithoutNewLine1.ts, 0, 0)) +>el : Symbol(el, Decl(copyrightWithoutNewLine1.ts, 4, 3)) + +/** things */ +greeter.start(); +>greeter : Symbol(greeter, Decl(copyrightWithoutNewLine1.ts, 5, 3)) + diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.types b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.types new file mode 100644 index 0000000000..bd63301458 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.types @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/copyrightWithoutNewLine1.ts] //// + +=== copyrightWithoutNewLine1.ts === +/***************************** +* (c) Copyright - Important +****************************/ +import model = require("./greeter") +>model : any + +var el = document.getElementById('content'); +>el : HTMLElement +>document.getElementById('content') : HTMLElement +>document.getElementById : (elementId: string) => HTMLElement +>document : Document +>getElementById : (elementId: string) => HTMLElement +>'content' : "content" + +var greeter = new model.Greeter(el); +>greeter : any +>new model.Greeter(el) : any +>model.Greeter : any +>model : any +>Greeter : any +>el : HTMLElement + +/** things */ +greeter.start(); +>greeter.start() : any +>greeter.start : any +>greeter : any +>start : any + diff --git a/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.types.diff b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.types.diff new file mode 100644 index 0000000000..d0f7e11616 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/copyrightWithoutNewLine1.types.diff @@ -0,0 +1,14 @@ +--- old.copyrightWithoutNewLine1.types ++++ new.copyrightWithoutNewLine1.types +@@= skipped -9, +9 lines =@@ + var el = document.getElementById('content'); + >el : HTMLElement + >document.getElementById('content') : HTMLElement +->document.getElementById : (elementId: string) => HTMLElement | null ++>document.getElementById : (elementId: string) => HTMLElement + >document : Document +->getElementById : (elementId: string) => HTMLElement | null ++>getElementById : (elementId: string) => HTMLElement + >'content' : "content" + + var greeter = new model.Greeter(el); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.errors.txt b/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.errors.txt new file mode 100644 index 0000000000..d8e595afe5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.errors.txt @@ -0,0 +1,27 @@ +crashIntypeCheckInvocationExpression.ts(6,28): error TS2304: Cannot find name 'task'. +crashIntypeCheckInvocationExpression.ts(8,18): error TS2304: Cannot find name 'path'. +crashIntypeCheckInvocationExpression.ts(9,19): error TS2347: Untyped function calls may not accept type arguments. +crashIntypeCheckInvocationExpression.ts(10,50): error TS2304: Cannot find name 'moduleType'. + + +==== crashIntypeCheckInvocationExpression.ts (4 errors) ==== + var nake; + function doCompile(fileset: P0, moduleType: P1) { + + return undefined; + } + export var compileServer = task(() => { + ~~~~ +!!! error TS2304: Cannot find name 'task'. + + var folder = path.join(), + ~~~~ +!!! error TS2304: Cannot find name 'path'. + fileset = nake.fileSetSync(folder) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2347: Untyped function calls may not accept type arguments. + return doCompile(fileset, moduleType); + ~~~~~~~~~~ +!!! error TS2304: Cannot find name 'moduleType'. + }); + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.js b/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.js new file mode 100644 index 0000000000..00578e70fa --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/crashIntypeCheckInvocationExpression.ts] //// + +//// [crashIntypeCheckInvocationExpression.ts] +var nake; +function doCompile(fileset: P0, moduleType: P1) { + + return undefined; +} +export var compileServer = task(() => { + + var folder = path.join(), + fileset = nake.fileSetSync(folder) + return doCompile(fileset, moduleType); +}); + + +//// [crashIntypeCheckInvocationExpression.js] +var nake; +function doCompile(fileset, moduleType) { + return undefined; +} +export var compileServer = task(() => { + var folder = path.join(), fileset = nake.fileSetSync(folder); + return doCompile(fileset, moduleType); +}); diff --git a/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.symbols b/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.symbols new file mode 100644 index 0000000000..b53dae3997 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.symbols @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/crashIntypeCheckInvocationExpression.ts] //// + +=== crashIntypeCheckInvocationExpression.ts === +var nake; +>nake : Symbol(nake, Decl(crashIntypeCheckInvocationExpression.ts, 0, 3)) + +function doCompile(fileset: P0, moduleType: P1) { +>doCompile : Symbol(doCompile, Decl(crashIntypeCheckInvocationExpression.ts, 0, 9)) +>P0 : Symbol(P0, Decl(crashIntypeCheckInvocationExpression.ts, 1, 19)) +>P1 : Symbol(P1, Decl(crashIntypeCheckInvocationExpression.ts, 1, 22)) +>P2 : Symbol(P2, Decl(crashIntypeCheckInvocationExpression.ts, 1, 26)) +>fileset : Symbol(fileset, Decl(crashIntypeCheckInvocationExpression.ts, 1, 31)) +>P0 : Symbol(P0, Decl(crashIntypeCheckInvocationExpression.ts, 1, 19)) +>moduleType : Symbol(moduleType, Decl(crashIntypeCheckInvocationExpression.ts, 1, 43)) +>P1 : Symbol(P1, Decl(crashIntypeCheckInvocationExpression.ts, 1, 22)) + + return undefined; +>undefined : Symbol(undefined) +} +export var compileServer = task(() => { +>compileServer : Symbol(compileServer, Decl(crashIntypeCheckInvocationExpression.ts, 5, 10)) +>P0 : Symbol(P0, Decl(crashIntypeCheckInvocationExpression.ts, 5, 54)) +>P1 : Symbol(P1, Decl(crashIntypeCheckInvocationExpression.ts, 5, 57)) +>P2 : Symbol(P2, Decl(crashIntypeCheckInvocationExpression.ts, 5, 61)) + + var folder = path.join(), +>folder : Symbol(folder, Decl(crashIntypeCheckInvocationExpression.ts, 7, 7)) + + fileset = nake.fileSetSync(folder) +>fileset : Symbol(fileset, Decl(crashIntypeCheckInvocationExpression.ts, 7, 29)) +>nake : Symbol(nake, Decl(crashIntypeCheckInvocationExpression.ts, 0, 3)) +>folder : Symbol(folder, Decl(crashIntypeCheckInvocationExpression.ts, 7, 7)) + + return doCompile(fileset, moduleType); +>doCompile : Symbol(doCompile, Decl(crashIntypeCheckInvocationExpression.ts, 0, 9)) +>fileset : Symbol(fileset, Decl(crashIntypeCheckInvocationExpression.ts, 7, 29)) + +}); + diff --git a/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.types b/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.types new file mode 100644 index 0000000000..d35fd9a30d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/crashIntypeCheckInvocationExpression.types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/crashIntypeCheckInvocationExpression.ts] //// + +=== crashIntypeCheckInvocationExpression.ts === +var nake; +>nake : any + +function doCompile(fileset: P0, moduleType: P1) { +>doCompile : (fileset: P0, moduleType: P1) => any +>fileset : P0 +>moduleType : P1 + + return undefined; +>undefined : undefined +} +export var compileServer = task(() => { +>compileServer : any +>task(() => { var folder = path.join(), fileset = nake.fileSetSync(folder) return doCompile(fileset, moduleType);}) : any +>task : any +>() => { var folder = path.join(), fileset = nake.fileSetSync(folder) return doCompile(fileset, moduleType);} : () => any + + var folder = path.join(), +>folder : any +>path.join() : any +>path.join : any +>path : any +>join : any + + fileset = nake.fileSetSync(folder) +>fileset : any +>nake.fileSetSync(folder) : any +>nake.fileSetSync : any +>nake : any +>fileSetSync : any +>folder : any + + return doCompile(fileset, moduleType); +>doCompile(fileset, moduleType) : any +>doCompile : (fileset: P0_1, moduleType: P1_1) => any +>fileset : any +>moduleType : any + +}); + diff --git a/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt b/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt deleted file mode 100644 index 5e2e87f6f1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -declFile.d.ts(2,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. -declFile.d.ts(3,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. -declFile.d.ts(5,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. -declFile.d.ts(7,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== client.ts (0 errors) ==== - /// - var x = new M.C(); // Declaration file wont get emitted because there are errors in declaration file - -==== declFile.d.ts (4 errors) ==== - declare module M { - declare var x; - ~~~~~~~ -!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context. - declare function f(); - ~~~~~~~ -!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context. - - declare module N { } - ~~~~~~~ -!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context. - - declare class C { } - ~~~~~~~ -!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context. - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.symbols b/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.symbols deleted file mode 100644 index 1a473d9c37..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts] //// - -=== client.ts === -/// -var x = new M.C(); // Declaration file wont get emitted because there are errors in declaration file ->x : Symbol(x, Decl(client.ts, 1, 3)) ->M.C : Symbol(M.C, Decl(declFile.d.ts, 4, 24)) ->M : Symbol(M, Decl(declFile.d.ts, 0, 0)) ->C : Symbol(M.C, Decl(declFile.d.ts, 4, 24)) - -=== declFile.d.ts === -declare module M { ->M : Symbol(M, Decl(declFile.d.ts, 0, 0)) - - declare var x; ->x : Symbol(x, Decl(declFile.d.ts, 1, 15)) - - declare function f(); ->f : Symbol(f, Decl(declFile.d.ts, 1, 18)) - - declare module N { } ->N : Symbol(N, Decl(declFile.d.ts, 2, 25)) - - declare class C { } ->C : Symbol(C, Decl(declFile.d.ts, 4, 24)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.types b/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.types deleted file mode 100644 index 6ac085b0bd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declFileWithErrorsInInputDeclarationFileWithOut.types +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts] //// - -=== client.ts === -/// -var x = new M.C(); // Declaration file wont get emitted because there are errors in declaration file ->x : M.C ->new M.C() : M.C ->M.C : typeof M.C ->M : typeof M ->C : typeof M.C - -=== declFile.d.ts === -declare module M { ->M : typeof M - - declare var x; ->x : any - - declare function f(); ->f : () => any - - declare module N { } - - declare class C { } ->C : C -} - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitAnyComputedPropertyInClass.js b/testdata/baselines/reference/submodule/compiler/declarationEmitAnyComputedPropertyInClass.js index 96def849ed..0247a9743c 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitAnyComputedPropertyInClass.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitAnyComputedPropertyInClass.js @@ -13,9 +13,12 @@ export class C { //// [main.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -const abcdefgh_1 = require("abcdefgh"); +const abcdefgh_1 = __importDefault(require("abcdefgh")); class C { [abcdefgh_1.default.someKey]() { } ; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitAnyComputedPropertyInClass.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitAnyComputedPropertyInClass.js.diff index 709671dfb3..fbcdc4678c 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitAnyComputedPropertyInClass.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitAnyComputedPropertyInClass.js.diff @@ -1,11 +1,11 @@ --- old.declarationEmitAnyComputedPropertyInClass.js +++ new.declarationEmitAnyComputedPropertyInClass.js -@@= skipped -14, +14 lines =@@ - "use strict"; +@@= skipped -17, +17 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; --var abcdefgh_1 = require("abcdefgh"); -+const abcdefgh_1 = require("abcdefgh"); +-var abcdefgh_1 = __importDefault(require("abcdefgh")); ++const abcdefgh_1 = __importDefault(require("abcdefgh")); class C { [abcdefgh_1.default.someKey]() { } ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt deleted file mode 100644 index 1f41036e73..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt +++ /dev/null @@ -1,19 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== extensions.ts (0 errors) ==== - /// - class Foo { - public: string; - } -==== core.ts (0 errors) ==== - interface Array {} - interface Boolean {} - interface Function {} - interface IArguments {} - interface Number {} - interface Object {} - interface RegExp {} - interface String {} - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols b/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols deleted file mode 100644 index 6f95b6b583..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.ts] //// - -=== extensions.ts === -/// -class Foo { ->Foo : Symbol(Foo, Decl(extensions.ts, 0, 0)) - - public: string; ->public : Symbol(Foo.public, Decl(extensions.ts, 1, 11)) -} -=== core.ts === -interface Array {} ->Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 0, 0)) ->T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(core.ts, 0, 16)) - -interface Boolean {} ->Boolean : Symbol(Boolean, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 0, 21)) - -interface Function {} ->Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 1, 20)) - -interface IArguments {} ->IArguments : Symbol(IArguments, Decl(lib.es5.d.ts, --, --), Decl(core.ts, 2, 21)) - -interface Number {} ->Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 3, 23)) - -interface Object {} ->Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 4, 19)) - -interface RegExp {} ->RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 5, 19)) - -interface String {} ->String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 6, 19)) - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols.diff deleted file mode 100644 index 5d58541e5d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols -+++ new.declarationEmitBundlePreservesHasNoDefaultLibDirective.symbols -@@= skipped -9, +9 lines =@@ - } - === core.ts === - interface Array {} -->Array : Symbol(Array, Decl(core.ts, 0, 0)) -->T : Symbol(T, Decl(core.ts, 0, 16)) -+>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 0, 0)) -+>T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(core.ts, 0, 16)) - - interface Boolean {} -->Boolean : Symbol(Boolean, Decl(core.ts, 0, 21)) -+>Boolean : Symbol(Boolean, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 0, 21)) - - interface Function {} -->Function : Symbol(Function, Decl(core.ts, 1, 20)) -+>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 1, 20)) - - interface IArguments {} -->IArguments : Symbol(IArguments, Decl(core.ts, 2, 21)) -+>IArguments : Symbol(IArguments, Decl(lib.es5.d.ts, --, --), Decl(core.ts, 2, 21)) - - interface Number {} -->Number : Symbol(Number, Decl(core.ts, 3, 23)) -+>Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 3, 23)) - - interface Object {} -->Object : Symbol(Object, Decl(core.ts, 4, 19)) -+>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 4, 19)) - - interface RegExp {} -->RegExp : Symbol(RegExp, Decl(core.ts, 5, 19)) -+>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 5, 19)) - - interface String {} -->String : Symbol(String, Decl(core.ts, 6, 19)) -+>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(core.ts, 6, 19)) diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.types b/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.types deleted file mode 100644 index 99e0fbcacf..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.types +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.ts] //// - -=== extensions.ts === -/// -class Foo { ->Foo : Foo - - public: string; ->public : string -} -=== core.ts === - -interface Array {} -interface Boolean {} -interface Function {} -interface IArguments {} -interface Number {} -interface Object {} -interface RegExp {} -interface String {} - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt deleted file mode 100644 index 3c20cd1201..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /a/index.ts (0 errors) ==== - export * from "./src/" -==== /b/index.ts (0 errors) ==== - export * from "./src/" -==== /b/src/index.ts (0 errors) ==== - export class B {} -==== /a/src/index.ts (0 errors) ==== - import { B } from "b"; - - export default function () { - return new B(); - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.symbols b/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.symbols deleted file mode 100644 index 9ae3ad047f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.ts] //// - -=== /a/index.ts === - -export * from "./src/" -=== /b/index.ts === - -export * from "./src/" -=== /b/src/index.ts === -export class B {} ->B : Symbol(B, Decl(index.ts, 0, 0)) - -=== /a/src/index.ts === -import { B } from "b"; ->B : Symbol(B, Decl(index.ts, 0, 8)) - -export default function () { - return new B(); ->B : Symbol(B, Decl(index.ts, 0, 8)) -} diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.types b/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.types deleted file mode 100644 index 632806b3a0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.types +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.ts] //// - -=== /a/index.ts === - -export * from "./src/" -=== /b/index.ts === - -export * from "./src/" -=== /b/src/index.ts === -export class B {} ->B : B - -=== /a/src/index.ts === -import { B } from "b"; ->B : typeof B - -export default function () { - return new B(); ->new B() : B ->B : typeof B -} diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitComputedNameConstEnumAlias.js b/testdata/baselines/reference/submodule/compiler/declarationEmitComputedNameConstEnumAlias.js index 5bc14cafc7..8dc7b39fea 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitComputedNameConstEnumAlias.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitComputedNameConstEnumAlias.js @@ -24,8 +24,11 @@ var EnumExample; exports.default = EnumExample; //// [index.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const EnumExample_1 = require("./EnumExample"); +const EnumExample_1 = __importDefault(require("./EnumExample")); exports.default = { [EnumExample_1.default.TEST]: {}, }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitComputedNameConstEnumAlias.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitComputedNameConstEnumAlias.js.diff index 74e921c071..b45c5f33de 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitComputedNameConstEnumAlias.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitComputedNameConstEnumAlias.js.diff @@ -1,11 +1,11 @@ --- old.declarationEmitComputedNameConstEnumAlias.js +++ new.declarationEmitComputedNameConstEnumAlias.js -@@= skipped -24, +24 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -27, +27 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var EnumExample_1 = require("./EnumExample"); -+const EnumExample_1 = require("./EnumExample"); +-var EnumExample_1 = __importDefault(require("./EnumExample")); ++const EnumExample_1 = __importDefault(require("./EnumExample")); exports.default = { [EnumExample_1.default.TEST]: {}, }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.js b/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.js index 5a4a06b5ac..7061c8bff5 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.js @@ -23,9 +23,42 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (suit, rank) => ({ suit, rank }); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.lazyCard = void 0; -let lazyCard = () => Promise.resolve().then(() => require('./Card')).then(a => a.default); +let lazyCard = () => Promise.resolve().then(() => __importStar(require('./Card'))).then(a => a.default); exports.lazyCard = lazyCard; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.js.diff index ef7750cdf7..2fe590e41d 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.js.diff @@ -1,10 +1,10 @@ --- old.declarationEmitExportAliasVisibiilityMarking.js +++ new.declarationEmitExportAliasVisibiilityMarking.js -@@= skipped -24, +24 lines =@@ - "use strict"; +@@= skipped -57, +57 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.lazyCard = void 0; --let lazyCard = () => Promise.resolve().then(function () { return require('./Card'); }).then(a => a.default); -+let lazyCard = () => Promise.resolve().then(() => require('./Card')).then(a => a.default); +-let lazyCard = () => Promise.resolve().then(function () { return __importStar(require('./Card')); }).then(a => a.default); ++let lazyCard = () => Promise.resolve().then(() => __importStar(require('./Card'))).then(a => a.default); exports.lazyCard = lazyCard; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends6.js b/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends6.js index 0d449bd25d..7a4dcaa164 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends6.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends6.js @@ -21,8 +21,41 @@ class Foo { exports.Foo = Foo; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const A = require("./a"); +const A = __importStar(require("./a")); const { Foo } = A; class default_1 extends Foo { } diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends6.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends6.js.diff index 9419006abe..36d7e179e1 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends6.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends6.js.diff @@ -1,11 +1,11 @@ --- old.declarationEmitExpressionInExtends6.js +++ new.declarationEmitExpressionInExtends6.js -@@= skipped -21, +21 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -54, +54 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var A = require("./a"); -+const A = require("./a"); +-var A = __importStar(require("./a")); ++const A = __importStar(require("./a")); const { Foo } = A; class default_1 extends Foo { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.js b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.js index 62c571420a..7481133d71 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.js @@ -26,8 +26,11 @@ function fn(sliceIndex) { exports.default = { fn }; //// [reexport.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const types_1 = require("./types"); +const types_1 = __importDefault(require("./types")); exports.default = { test: types_1.default }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.js.diff index 42e8128dfa..3ea7a9a561 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeDistributivityPreservesConstraints.js.diff @@ -1,11 +1,11 @@ --- old.declarationEmitMappedTypeDistributivityPreservesConstraints.js +++ new.declarationEmitMappedTypeDistributivityPreservesConstraints.js -@@= skipped -26, +26 lines =@@ - //// [reexport.js] - "use strict"; +@@= skipped -29, +29 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var types_1 = require("./types"); -+const types_1 = require("./types"); +-var types_1 = __importDefault(require("./types")); ++const types_1 = __importDefault(require("./types")); exports.default = { test: types_1.default }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeTemplateTypeofSymbol.js b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeTemplateTypeofSymbol.js index 76349c988e..6ff7ed658a 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeTemplateTypeofSymbol.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeTemplateTypeofSymbol.js @@ -20,9 +20,42 @@ export const timestamp = now(); //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.timestamp = void 0; -const x = require("./a"); +const x = __importStar(require("./a")); exports.timestamp = x.now(); //// [c.js] "use strict"; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeTemplateTypeofSymbol.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeTemplateTypeofSymbol.js.diff index 2b1a1bc106..5f4af238eb 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeTemplateTypeofSymbol.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypeTemplateTypeofSymbol.js.diff @@ -1,11 +1,11 @@ --- old.declarationEmitMappedTypeTemplateTypeofSymbol.js +++ new.declarationEmitMappedTypeTemplateTypeofSymbol.js -@@= skipped -21, +21 lines =@@ - "use strict"; +@@= skipped -54, +54 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.timestamp = void 0; --var x = require("./a"); -+const x = require("./a"); +-var x = __importStar(require("./a")); ++const x = __importStar(require("./a")); exports.timestamp = x.now(); //// [c.js] "use strict"; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.errors.txt deleted file mode 100644 index f2ffc82324..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.errors.txt +++ /dev/null @@ -1,59 +0,0 @@ -/tsconfig.json(6,5): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== /tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "module": "nodenext", - "declaration": true, - "outDir": "temp", - "baseUrl": "." - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - } - } - -==== /packages/compiler-core/src/index.ts (0 errors) ==== - import { PluginConfig } from "@babel/parser"; - -==== /packages/compiler-sfc/src/index.ts (0 errors) ==== - import { createPlugin } from "@babel/parser"; - export function resolveParserPlugins() { - return [createPlugin()]; - } - -==== /node_modules/.pnpm/@babel+parser@7.23.6/node_modules/@babel/parser/package.json (0 errors) ==== - { - "name": "@babel/parser", - "version": "7.23.6", - "main": "./lib/index.js", - "types": "./typings/babel-parser.d.ts" - } - -==== /node_modules/.pnpm/@babel+parser@7.23.6/node_modules/@babel/parser/typings/babel-parser.d.ts (0 errors) ==== - export declare function createPlugin(): PluginConfig; - export declare class PluginConfig {} - -==== /packages/compiler-core/package.json (0 errors) ==== - { - "name": "@vue/compiler-core", - "version": "3.0.0", - "main": "./src/index.ts", - "dependencies": { - "@babel/parser": "^7.0.0" - } - } - -==== /packages/compiler-sfc/package.json (0 errors) ==== - { - "name": "@vue/compiler-sfc", - "version": "3.0.0", - "main": "./src/index.ts", - "dependencies": { - "@babel/parser": "^7.0.0", - "@vue/compiler-core": "^3.0.0" - } - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.js b/testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.js deleted file mode 100644 index de71b6c171..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.js +++ /dev/null @@ -1,62 +0,0 @@ -//// [tests/cases/compiler/declarationEmitMonorepoBaseUrl.ts] //// - -//// [package.json] -{ - "name": "@babel/parser", - "version": "7.23.6", - "main": "./lib/index.js", - "types": "./typings/babel-parser.d.ts" -} - -//// [babel-parser.d.ts] -export declare function createPlugin(): PluginConfig; -export declare class PluginConfig {} - -//// [package.json] -{ - "name": "@vue/compiler-core", - "version": "3.0.0", - "main": "./src/index.ts", - "dependencies": { - "@babel/parser": "^7.0.0" - } -} - -//// [package.json] -{ - "name": "@vue/compiler-sfc", - "version": "3.0.0", - "main": "./src/index.ts", - "dependencies": { - "@babel/parser": "^7.0.0", - "@vue/compiler-core": "^3.0.0" - } -} - -//// [index.ts] -import { PluginConfig } from "@babel/parser"; - -//// [index.ts] -import { createPlugin } from "@babel/parser"; -export function resolveParserPlugins() { - return [createPlugin()]; -} - - -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveParserPlugins = resolveParserPlugins; -const parser_1 = require("@babel/parser"); -function resolveParserPlugins() { - return [(0, parser_1.createPlugin)()]; -} - - -//// [index.d.ts] -export {}; -//// [index.d.ts] -export declare function resolveParserPlugins(): import("@babel/parser").PluginConfig[]; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitObjectAssignedDefaultExport.js b/testdata/baselines/reference/submodule/compiler/declarationEmitObjectAssignedDefaultExport.js index c74996800f..ea6e9e7e15 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitObjectAssignedDefaultExport.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitObjectAssignedDefaultExport.js @@ -42,9 +42,12 @@ export default Object.assign(A, { //// [index.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -const styled_components_1 = require("styled-components"); +const styled_components_1 = __importDefault(require("styled-components")); const A = styled_components_1.default.div ``; const B = styled_components_1.default.div ``; exports.C = styled_components_1.default.div ``; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitObjectAssignedDefaultExport.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitObjectAssignedDefaultExport.js.diff index c02a6ff8b7..ecdee06739 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitObjectAssignedDefaultExport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitObjectAssignedDefaultExport.js.diff @@ -1,6 +1,6 @@ --- old.declarationEmitObjectAssignedDefaultExport.js +++ new.declarationEmitObjectAssignedDefaultExport.js -@@= skipped -51, +51 lines =@@ +@@= skipped -54, +54 lines =@@ B, C: exports.C }); diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitOfTypeofAliasedExport.js b/testdata/baselines/reference/submodule/compiler/declarationEmitOfTypeofAliasedExport.js index c462e07c28..1e1256834d 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitOfTypeofAliasedExport.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitOfTypeofAliasedExport.js @@ -18,8 +18,41 @@ class C { exports.D = C; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const a = require("./a"); +const a = __importStar(require("./a")); exports.default = a.D; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitOfTypeofAliasedExport.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitOfTypeofAliasedExport.js.diff index dcd3d7f9df..9c5fb28bb8 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitOfTypeofAliasedExport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitOfTypeofAliasedExport.js.diff @@ -1,10 +1,10 @@ --- old.declarationEmitOfTypeofAliasedExport.js +++ new.declarationEmitOfTypeofAliasedExport.js -@@= skipped -18, +18 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -51, +51 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var a = require("./a"); -+const a = require("./a"); +-var a = __importStar(require("./a")); ++const a = __importStar(require("./a")); exports.default = a.D; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.errors.txt deleted file mode 100644 index a25077ced4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== js/versions.static.js (0 errors) ==== - export default { - "@a/b": "1.0.0", - "@a/c": "1.2.3" - }; -==== js/index.js (0 errors) ==== - import versions from './versions.static.js'; - - export { - versions - }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.symbols b/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.symbols deleted file mode 100644 index f43de7b7b7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.symbols +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/declarationEmitOutFileBundlePaths.ts] //// - -=== js/versions.static.js === -export default { - "@a/b": "1.0.0", ->"@a/b" : Symbol("@a/b", Decl(versions.static.js, 0, 16)) - - "@a/c": "1.2.3" ->"@a/c" : Symbol("@a/c", Decl(versions.static.js, 1, 20)) - -}; -=== js/index.js === -import versions from './versions.static.js'; ->versions : Symbol(versions, Decl(index.js, 0, 6)) - -export { - versions ->versions : Symbol(versions, Decl(index.js, 2, 8)) - -}; - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.types b/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.types deleted file mode 100644 index bd72506d49..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitOutFileBundlePaths.types +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/compiler/declarationEmitOutFileBundlePaths.ts] //// - -=== js/versions.static.js === -export default { ->{ "@a/b": "1.0.0", "@a/c": "1.2.3"} : { "@a/b": string; "@a/c": string; } - - "@a/b": "1.0.0", ->"@a/b" : string ->"1.0.0" : "1.0.0" - - "@a/c": "1.2.3" ->"@a/c" : string ->"1.2.3" : "1.2.3" - -}; -=== js/index.js === -import versions from './versions.static.js'; ->versions : { "@a/b": string; "@a/c": string; } - -export { - versions ->versions : { "@a/b": string; "@a/c": string; } - -}; - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.errors.txt deleted file mode 100644 index 592759050a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -packages/b/tsconfig.json(5,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== packages/b/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "outDir": "dist", - "declaration": true, - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "@ts-bug/a": ["../a"] - } - } - } - - -==== packages/b/src/index.ts (0 errors) ==== - import { a } from "@ts-bug/a"; - - export function b(text: string) { - return a(text); - } -==== packages/a/index.d.ts (0 errors) ==== - declare module "@ts-bug/a" { - export type AText = { - value: string; - }; - export function a(text: string): AText; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.js b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.js deleted file mode 100644 index d38396f12a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.js +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPathMappingMonorepo.ts] //// - -//// [index.d.ts] -declare module "@ts-bug/a" { - export type AText = { - value: string; - }; - export function a(text: string): AText; - } - -//// [index.ts] -import { a } from "@ts-bug/a"; - -export function b(text: string) { - return a(text); -} - -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = b; -const a_1 = require("@ts-bug/a"); -function b(text) { - return (0, a_1.a)(text); -} - - -//// [index.d.ts] -export declare function b(text: string): import("@ts-bug/a").AText; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.js.diff deleted file mode 100644 index 1df569beed..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.declarationEmitPathMappingMonorepo.js -+++ new.declarationEmitPathMappingMonorepo.js -@@= skipped -18, +18 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = b; --var a_1 = require("@ts-bug/a"); -+const a_1 = require("@ts-bug/a"); - function b(text) { - return (0, a_1.a)(text); - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.symbols b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.symbols deleted file mode 100644 index 5adce47bb0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPathMappingMonorepo.ts] //// - -=== packages/b/src/index.ts === -import { a } from "@ts-bug/a"; ->a : Symbol(a, Decl(index.ts, 0, 8)) - -export function b(text: string) { ->b : Symbol(b, Decl(index.ts, 0, 30)) ->text : Symbol(text, Decl(index.ts, 2, 18)) - - return a(text); ->a : Symbol(a, Decl(index.ts, 0, 8)) ->text : Symbol(text, Decl(index.ts, 2, 18)) -} -=== packages/a/index.d.ts === -declare module "@ts-bug/a" { ->"@ts-bug/a" : Symbol("@ts-bug/a", Decl(index.d.ts, 0, 0)) - - export type AText = { ->AText : Symbol(AText, Decl(index.d.ts, 0, 28)) - - value: string; ->value : Symbol(value, Decl(index.d.ts, 1, 25)) - - }; - export function a(text: string): AText; ->a : Symbol(a, Decl(index.d.ts, 3, 6)) ->text : Symbol(text, Decl(index.d.ts, 4, 22)) ->AText : Symbol(AText, Decl(index.d.ts, 0, 28)) - } - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.types b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.types deleted file mode 100644 index 723c8c88d3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPathMappingMonorepo.ts] //// - -=== packages/b/src/index.ts === -import { a } from "@ts-bug/a"; ->a : (text: string) => import("@ts-bug/a").AText - -export function b(text: string) { ->b : (text: string) => import("@ts-bug/a").AText ->text : string - - return a(text); ->a(text) : import("@ts-bug/a").AText ->a : (text: string) => import("@ts-bug/a").AText ->text : string -} -=== packages/a/index.d.ts === -declare module "@ts-bug/a" { ->"@ts-bug/a" : typeof import("@ts-bug/a") - - export type AText = { ->AText : AText - - value: string; ->value : string - - }; - export function a(text: string): AText; ->a : (text: string) => AText ->text : string - } - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.errors.txt deleted file mode 100644 index ab846fb975..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.errors.txt +++ /dev/null @@ -1,54 +0,0 @@ -packages/lab/src/index.ts(1,31): error TS2307: Cannot find module '@ts-bug/core/utils' or its corresponding type declarations. -packages/lab/tsconfig.json(5,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./../*"]}' instead. - - -==== packages/lab/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "outDir": "dist", - "declaration": true, - "baseUrl": "../", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./../*"]}' instead. - "paths": { - "@ts-bug/core": ["./core/src"], - "@ts-bug/core/*": ["./core/src/*"], - "@ts-bug/lab": ["./lab/src"], - "@ts-bug/lab/*": ["./lab/src/*"], - "@ts-bug/styles": ["./styles/src"], - "@ts-bug/styles/*": ["./styles/src/*"] - } - } - } -==== packages/lab/src/index.ts (1 errors) ==== - import { createSvgIcon } from "@ts-bug/core/utils"; - ~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module '@ts-bug/core/utils' or its corresponding type declarations. - export default createSvgIcon("Hello", "ArrowLeft"); - -==== packages/core/src/index.d.ts (0 errors) ==== - export * from "./utils"; - export { default as SvgIcon } from "./SvgIcon"; - -==== packages/core/src/SvgIcon.d.ts (0 errors) ==== - import { StyledComponentProps } from "@ts-bug/styles"; - export interface SvgIconProps extends StyledComponentProps<"root"> { - children?: string[]; - } - export interface SomeInterface { - myProp: string; - } - declare const SvgIcon: SomeInterface; - export default SvgIcon; - -==== packages/core/src/utils.d.ts (0 errors) ==== - import SvgIcon from "./SvgIcon"; - export function createSvgIcon(path: string, displayName: string): typeof SvgIcon; - -==== packages/styles/src/index.d.ts (0 errors) ==== - export interface StyledComponentProps { - classes?: Record; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.js b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.js deleted file mode 100644 index f6b97b76d2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPathMappingMonorepo2.ts] //// - -//// [index.d.ts] -export * from "./utils"; -export { default as SvgIcon } from "./SvgIcon"; - -//// [SvgIcon.d.ts] -import { StyledComponentProps } from "@ts-bug/styles"; -export interface SvgIconProps extends StyledComponentProps<"root"> { - children?: string[]; -} -export interface SomeInterface { - myProp: string; -} -declare const SvgIcon: SomeInterface; -export default SvgIcon; - -//// [utils.d.ts] -import SvgIcon from "./SvgIcon"; -export function createSvgIcon(path: string, displayName: string): typeof SvgIcon; - -//// [index.d.ts] -export interface StyledComponentProps { - classes?: Record; -} - -//// [index.ts] -import { createSvgIcon } from "@ts-bug/core/utils"; -export default createSvgIcon("Hello", "ArrowLeft"); - - -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@ts-bug/core/utils"); -exports.default = (0, utils_1.createSvgIcon)("Hello", "ArrowLeft"); - - -//// [index.d.ts] -declare const _default: any; -export default _default; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.js.diff deleted file mode 100644 index 2230bdf2d8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.declarationEmitPathMappingMonorepo2.js -+++ new.declarationEmitPathMappingMonorepo2.js -@@= skipped -31, +31 lines =@@ - //// [index.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --var utils_1 = require("@ts-bug/core/utils"); -+const utils_1 = require("@ts-bug/core/utils"); - exports.default = (0, utils_1.createSvgIcon)("Hello", "ArrowLeft"); - - - //// [index.d.ts] --declare const _default: import("@ts-bug/core/SvgIcon").SomeInterface; -+declare const _default: any; - export default _default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.symbols b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.symbols deleted file mode 100644 index ca75fa3b37..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.symbols +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPathMappingMonorepo2.ts] //// - -=== packages/lab/src/index.ts === -import { createSvgIcon } from "@ts-bug/core/utils"; ->createSvgIcon : Symbol(createSvgIcon, Decl(index.ts, 0, 8)) - -export default createSvgIcon("Hello", "ArrowLeft"); ->createSvgIcon : Symbol(createSvgIcon, Decl(index.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.symbols.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.symbols.diff deleted file mode 100644 index fbb48fd5df..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.symbols.diff +++ /dev/null @@ -1,51 +0,0 @@ ---- old.declarationEmitPathMappingMonorepo2.symbols -+++ new.declarationEmitPathMappingMonorepo2.symbols -@@= skipped -6, +6 lines =@@ - export default createSvgIcon("Hello", "ArrowLeft"); - >createSvgIcon : Symbol(createSvgIcon, Decl(index.ts, 0, 8)) - --=== packages/core/src/SvgIcon.d.ts === --import { StyledComponentProps } from "@ts-bug/styles"; -->StyledComponentProps : Symbol(StyledComponentProps, Decl(SvgIcon.d.ts, 0, 8)) -- --export interface SvgIconProps extends StyledComponentProps<"root"> { -->SvgIconProps : Symbol(SvgIconProps, Decl(SvgIcon.d.ts, 0, 54)) -->StyledComponentProps : Symbol(StyledComponentProps, Decl(SvgIcon.d.ts, 0, 8)) -- -- children?: string[]; -->children : Symbol(SvgIconProps.children, Decl(SvgIcon.d.ts, 1, 68)) --} --export interface SomeInterface { -->SomeInterface : Symbol(SomeInterface, Decl(SvgIcon.d.ts, 3, 1)) -- -- myProp: string; -->myProp : Symbol(SomeInterface.myProp, Decl(SvgIcon.d.ts, 4, 32)) --} --declare const SvgIcon: SomeInterface; -->SvgIcon : Symbol(SvgIcon, Decl(SvgIcon.d.ts, 7, 13)) -->SomeInterface : Symbol(SomeInterface, Decl(SvgIcon.d.ts, 3, 1)) -- --export default SvgIcon; -->SvgIcon : Symbol(SvgIcon, Decl(SvgIcon.d.ts, 7, 13)) -- --=== packages/core/src/utils.d.ts === --import SvgIcon from "./SvgIcon"; -->SvgIcon : Symbol(SvgIcon, Decl(utils.d.ts, 0, 6)) -- --export function createSvgIcon(path: string, displayName: string): typeof SvgIcon; -->createSvgIcon : Symbol(createSvgIcon, Decl(utils.d.ts, 0, 32)) -->path : Symbol(path, Decl(utils.d.ts, 1, 30)) -->displayName : Symbol(displayName, Decl(utils.d.ts, 1, 43)) -->SvgIcon : Symbol(SvgIcon, Decl(utils.d.ts, 0, 6)) -- --=== packages/styles/src/index.d.ts === --export interface StyledComponentProps { -->StyledComponentProps : Symbol(StyledComponentProps, Decl(index.d.ts, 0, 0)) -->ClassKey : Symbol(ClassKey, Decl(index.d.ts, 0, 38)) -- -- classes?: Record; -->classes : Symbol(StyledComponentProps.classes, Decl(index.d.ts, 0, 64)) -->Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) -->ClassKey : Symbol(ClassKey, Decl(index.d.ts, 0, 38)) --} -- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.types b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.types deleted file mode 100644 index edd6912a35..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPathMappingMonorepo2.ts] //// - -=== packages/lab/src/index.ts === -import { createSvgIcon } from "@ts-bug/core/utils"; ->createSvgIcon : any - -export default createSvgIcon("Hello", "ArrowLeft"); ->createSvgIcon("Hello", "ArrowLeft") : any ->createSvgIcon : any ->"Hello" : "Hello" ->"ArrowLeft" : "ArrowLeft" - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.types.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.types.diff deleted file mode 100644 index 6c1d99ed73..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPathMappingMonorepo2.types.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.declarationEmitPathMappingMonorepo2.types -+++ new.declarationEmitPathMappingMonorepo2.types -@@= skipped -1, +1 lines =@@ - - === packages/lab/src/index.ts === - import { createSvgIcon } from "@ts-bug/core/utils"; -->createSvgIcon : (path: string, displayName: string) => import("packages/core/src/SvgIcon").SomeInterface -+>createSvgIcon : any - - export default createSvgIcon("Hello", "ArrowLeft"); -->createSvgIcon("Hello", "ArrowLeft") : import("packages/core/src/SvgIcon").SomeInterface -->createSvgIcon : (path: string, displayName: string) => import("packages/core/src/SvgIcon").SomeInterface -+>createSvgIcon("Hello", "ArrowLeft") : any -+>createSvgIcon : any - >"Hello" : "Hello" - >"ArrowLeft" : "ArrowLeft" -- --=== packages/core/src/SvgIcon.d.ts === --import { StyledComponentProps } from "@ts-bug/styles"; -->StyledComponentProps : any -- --export interface SvgIconProps extends StyledComponentProps<"root"> { -- children?: string[]; -->children : string[] --} --export interface SomeInterface { -- myProp: string; -->myProp : string --} --declare const SvgIcon: SomeInterface; -->SvgIcon : SomeInterface -- --export default SvgIcon; -->SvgIcon : SomeInterface -- --=== packages/core/src/utils.d.ts === --import SvgIcon from "./SvgIcon"; -->SvgIcon : import("packages/core/src/SvgIcon").SomeInterface -- --export function createSvgIcon(path: string, displayName: string): typeof SvgIcon; -->createSvgIcon : (path: string, displayName: string) => typeof SvgIcon -->path : string -->displayName : string -->SvgIcon : import("packages/core/src/SvgIcon").SomeInterface -- --=== packages/styles/src/index.d.ts === --export interface StyledComponentProps { -- classes?: Record; -->classes : Record --} diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.errors.txt deleted file mode 100644 index 2a2158debf..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -==== src/lib/operators/scalar.ts (0 errors) ==== - export interface Scalar { - (): string; - value: number; - } - - export function scalar(value: string): Scalar { - return null as any; - } -==== src/settings/spacing.ts (0 errors) ==== - import { scalar } from '../lib/operators/scalar'; - - export default { - get xs() { - return scalar("14px"); - } - }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.js b/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.js deleted file mode 100644 index db59c23bec..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.js +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts] //// - -//// [scalar.ts] -export interface Scalar { - (): string; - value: number; -} - -export function scalar(value: string): Scalar { - return null as any; -} -//// [spacing.ts] -import { scalar } from '../lib/operators/scalar'; - -export default { - get xs() { - return scalar("14px"); - } -}; - - -//// [scalar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scalar = scalar; -function scalar(value) { - return null; -} -//// [spacing.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scalar_1 = require("../lib/operators/scalar"); -exports.default = { - get xs() { - return (0, scalar_1.scalar)("14px"); - } -}; - - -//// [scalar.d.ts] -export interface Scalar { - (): string; - value: number; -} -export declare function scalar(value: string): Scalar; -//// [spacing.d.ts] -declare const _default: { - readonly xs: import("../lib/operators/scalar").Scalar; -}; -export default _default; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.js.diff deleted file mode 100644 index 16adf24359..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.declarationEmitPrefersPathKindBasedOnBundling.js -+++ new.declarationEmitPrefersPathKindBasedOnBundling.js -@@= skipped -28, +28 lines =@@ - //// [spacing.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --var scalar_1 = require("../lib/operators/scalar"); -+const scalar_1 = require("../lib/operators/scalar"); - exports.default = { - get xs() { - return (0, scalar_1.scalar)("14px"); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.symbols b/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.symbols deleted file mode 100644 index c8a925c145..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts] //// - -=== src/lib/operators/scalar.ts === -export interface Scalar { ->Scalar : Symbol(Scalar, Decl(scalar.ts, 0, 0)) - - (): string; - value: number; ->value : Symbol(Scalar.value, Decl(scalar.ts, 1, 12)) -} - -export function scalar(value: string): Scalar { ->scalar : Symbol(scalar, Decl(scalar.ts, 3, 1)) ->value : Symbol(value, Decl(scalar.ts, 5, 23)) ->Scalar : Symbol(Scalar, Decl(scalar.ts, 0, 0)) - - return null as any; -} -=== src/settings/spacing.ts === -import { scalar } from '../lib/operators/scalar'; ->scalar : Symbol(scalar, Decl(spacing.ts, 0, 8)) - -export default { - get xs() { ->xs : Symbol(xs, Decl(spacing.ts, 2, 16)) - - return scalar("14px"); ->scalar : Symbol(scalar, Decl(spacing.ts, 0, 8)) - } -}; - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.types b/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.types deleted file mode 100644 index 5ae200962a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitPrefersPathKindBasedOnBundling.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts] //// - -=== src/lib/operators/scalar.ts === -export interface Scalar { - (): string; - value: number; ->value : number -} - -export function scalar(value: string): Scalar { ->scalar : (value: string) => Scalar ->value : string - - return null as any; ->null as any : any -} -=== src/settings/spacing.ts === -import { scalar } from '../lib/operators/scalar'; ->scalar : (value: string) => import("src/lib/operators/scalar").Scalar - -export default { ->{ get xs() { return scalar("14px"); }} : { readonly xs: import("src/lib/operators/scalar").Scalar; } - - get xs() { ->xs : import("src/lib/operators/scalar").Scalar - - return scalar("14px"); ->scalar("14px") : import("src/lib/operators/scalar").Scalar ->scalar : (value: string) => import("src/lib/operators/scalar").Scalar ->"14px" : "14px" - } -}; - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitRetainedAnnotationRetainsImportInOutput.js b/testdata/baselines/reference/submodule/compiler/declarationEmitRetainedAnnotationRetainsImportInOutput.js index dfe577cd87..de528003e1 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitRetainedAnnotationRetainsImportInOutput.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitRetainedAnnotationRetainsImportInOutput.js @@ -11,9 +11,42 @@ export const run = (i: () => E.Whatever): E.Whatever => E.something(i); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.run = void 0; -const E = require("whatever"); +const E = __importStar(require("whatever")); const run = (i) => E.something(i); exports.run = run; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitRetainedAnnotationRetainsImportInOutput.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitRetainedAnnotationRetainsImportInOutput.js.diff index 69daf85b04..a55c73011a 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitRetainedAnnotationRetainsImportInOutput.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitRetainedAnnotationRetainsImportInOutput.js.diff @@ -1,10 +1,10 @@ --- old.declarationEmitRetainedAnnotationRetainsImportInOutput.js +++ new.declarationEmitRetainedAnnotationRetainsImportInOutput.js -@@= skipped -12, +12 lines =@@ - "use strict"; +@@= skipped -45, +45 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.run = void 0; --var E = require("whatever"); -+const E = require("whatever"); +-var E = __importStar(require("whatever")); ++const E = __importStar(require("whatever")); const run = (i) => E.something(i); exports.run = run; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitTypeofDefaultExport.js b/testdata/baselines/reference/submodule/compiler/declarationEmitTypeofDefaultExport.js index 9c69967a86..ba95fc4d44 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitTypeofDefaultExport.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitTypeofDefaultExport.js @@ -17,8 +17,41 @@ exports.default = C; ; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const a = require("./a"); +const a = __importStar(require("./a")); exports.default = a.default; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitTypeofDefaultExport.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitTypeofDefaultExport.js.diff index dd076f5639..825f4f6ab5 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitTypeofDefaultExport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitTypeofDefaultExport.js.diff @@ -1,10 +1,10 @@ --- old.declarationEmitTypeofDefaultExport.js +++ new.declarationEmitTypeofDefaultExport.js -@@= skipped -17, +17 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -50, +50 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var a = require("./a"); -+const a = require("./a"); +-var a = __importStar(require("./a")); ++const a = __importStar(require("./a")); exports.default = a.default; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName.js b/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName.js index 195ad857cb..ad6cdb16f5 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName.js @@ -25,9 +25,12 @@ exports.default = createExperiment({ }); //// [main.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.obj = void 0; -const other_1 = require("./other"); +const other_1 = __importDefault(require("./other")); exports.obj = { [other_1.default.name]: 1, }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName.js.diff index c78674f754..82c1d39bcd 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName.js.diff @@ -1,11 +1,11 @@ --- old.declarationEmitWithDefaultAsComputedName.js +++ new.declarationEmitWithDefaultAsComputedName.js -@@= skipped -26, +26 lines =@@ - "use strict"; +@@= skipped -29, +29 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.obj = void 0; --var other_1 = require("./other"); -+const other_1 = require("./other"); +-var other_1 = __importDefault(require("./other")); ++const other_1 = __importDefault(require("./other")); exports.obj = { [other_1.default.name]: 1, }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName2.js b/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName2.js index 4c2abfbbda..30de49c199 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName2.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName2.js @@ -25,9 +25,42 @@ exports.default = createExperiment({ }); //// [main.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.obj = void 0; -const other2 = require("./other"); +const other2 = __importStar(require("./other")); exports.obj = { [other2.default.name]: 1 }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName2.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName2.js.diff index 150c2f5a62..db93e12166 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitWithDefaultAsComputedName2.js.diff @@ -1,11 +1,11 @@ --- old.declarationEmitWithDefaultAsComputedName2.js +++ new.declarationEmitWithDefaultAsComputedName2.js -@@= skipped -26, +26 lines =@@ - "use strict"; +@@= skipped -59, +59 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.obj = void 0; --var other2 = require("./other"); -+const other2 = require("./other"); +-var other2 = __importStar(require("./other")); ++const other2 = __importStar(require("./other")); exports.obj = { [other2.default.name]: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.errors.txt deleted file mode 100644 index 7d282537b9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /out.d.ts (0 errors) ==== - declare class c { - } - -==== /a.ts (0 errors) ==== - class d { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.symbols b/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.symbols deleted file mode 100644 index 37e4014855..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.symbols +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/declarationFileOverwriteErrorWithOut.ts] //// - -=== /out.d.ts === -declare class c { ->c : Symbol(c, Decl(out.d.ts, 0, 0)) -} - -=== /a.ts === -class d { ->d : Symbol(d, Decl(a.ts, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.types b/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.types deleted file mode 100644 index 782a7001f3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationFileOverwriteErrorWithOut.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/declarationFileOverwriteErrorWithOut.ts] //// - -=== /out.d.ts === -declare class c { ->c : c -} - -=== /a.ts === -class d { ->d : d -} - diff --git a/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.errors.txt deleted file mode 100644 index 6a8d2c1cec..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.errors.txt +++ /dev/null @@ -1,15 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /a/node_modules/@types/jquery/index.d.ts (0 errors) ==== - interface JQuery { - - } - -==== /a/app.ts (0 errors) ==== - /// - namespace Test { - export var x: JQuery; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.symbols b/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.symbols deleted file mode 100644 index 43deeeb86e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.symbols +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/declarationFilesGeneratingTypeReferences.ts] //// - -=== /a/node_modules/@types/jquery/index.d.ts === -interface JQuery { ->JQuery : Symbol(JQuery, Decl(index.d.ts, 0, 0)) - -} - -=== /a/app.ts === -/// -namespace Test { ->Test : Symbol(Test, Decl(app.ts, 0, 0)) - - export var x: JQuery; ->x : Symbol(x, Decl(app.ts, 2, 14)) ->JQuery : Symbol(JQuery, Decl(index.d.ts, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.types b/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.types deleted file mode 100644 index c75d2a039b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationFilesGeneratingTypeReferences.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/declarationFilesGeneratingTypeReferences.ts] //// - -=== /a/node_modules/@types/jquery/index.d.ts === - -interface JQuery { - -} - -=== /a/app.ts === -/// -namespace Test { ->Test : typeof Test - - export var x: JQuery; ->x : JQuery -} - diff --git a/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.errors.txt deleted file mode 100644 index a4cab2ae02..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.errors.txt +++ /dev/null @@ -1,19 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class Foo { - doThing(x: {a: number}) { - return {b: x.a}; - } - static make() { - return new Foo(); - } - } -==== index.ts (0 errors) ==== - const c = new Foo(); - c.doThing({a: 42}); - - let x = c.doThing({a: 12}); - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.symbols b/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.symbols deleted file mode 100644 index 9e84d10378..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.symbols +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/compiler/declarationMapsOutFile2.ts] //// - -=== a.ts === -class Foo { ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - - doThing(x: {a: number}) { ->doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->x : Symbol(x, Decl(a.ts, 1, 12)) ->a : Symbol(a, Decl(a.ts, 1, 16)) - - return {b: x.a}; ->b : Symbol(b, Decl(a.ts, 2, 16)) ->x.a : Symbol(a, Decl(a.ts, 1, 16)) ->x : Symbol(x, Decl(a.ts, 1, 12)) ->a : Symbol(a, Decl(a.ts, 1, 16)) - } - static make() { ->make : Symbol(Foo.make, Decl(a.ts, 3, 5)) - - return new Foo(); ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - } -} -=== index.ts === -const c = new Foo(); ->c : Symbol(c, Decl(index.ts, 0, 5)) ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -c.doThing({a: 42}); ->c.doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->c : Symbol(c, Decl(index.ts, 0, 5)) ->doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->a : Symbol(a, Decl(index.ts, 1, 11)) - -let x = c.doThing({a: 12}); ->x : Symbol(x, Decl(index.ts, 3, 3)) ->c.doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->c : Symbol(c, Decl(index.ts, 0, 5)) ->doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->a : Symbol(a, Decl(index.ts, 3, 19)) - diff --git a/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.types b/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.types deleted file mode 100644 index d739e4cbb4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationMapsOutFile2.types +++ /dev/null @@ -1,51 +0,0 @@ -//// [tests/cases/compiler/declarationMapsOutFile2.ts] //// - -=== a.ts === -class Foo { ->Foo : Foo - - doThing(x: {a: number}) { ->doThing : (x: { a: number; }) => { b: number; } ->x : { a: number; } ->a : number - - return {b: x.a}; ->{b: x.a} : { b: number; } ->b : number ->x.a : number ->x : { a: number; } ->a : number - } - static make() { ->make : () => Foo - - return new Foo(); ->new Foo() : Foo ->Foo : typeof Foo - } -} -=== index.ts === -const c = new Foo(); ->c : Foo ->new Foo() : Foo ->Foo : typeof Foo - -c.doThing({a: 42}); ->c.doThing({a: 42}) : { b: number; } ->c.doThing : (x: { a: number; }) => { b: number; } ->c : Foo ->doThing : (x: { a: number; }) => { b: number; } ->{a: 42} : { a: number; } ->a : number ->42 : 42 - -let x = c.doThing({a: 12}); ->x : { b: number; } ->c.doThing({a: 12}) : { b: number; } ->c.doThing : (x: { a: number; }) => { b: number; } ->c : Foo ->doThing : (x: { a: number; }) => { b: number; } ->{a: 12} : { a: number; } ->a : number ->12 : 12 - diff --git a/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.errors.txt b/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.errors.txt deleted file mode 100644 index a4cab2ae02..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.errors.txt +++ /dev/null @@ -1,19 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class Foo { - doThing(x: {a: number}) { - return {b: x.a}; - } - static make() { - return new Foo(); - } - } -==== index.ts (0 errors) ==== - const c = new Foo(); - c.doThing({a: 42}); - - let x = c.doThing({a: 12}); - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.symbols b/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.symbols deleted file mode 100644 index 0111155c73..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.symbols +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/compiler/declarationMapsWithSourceMap.ts] //// - -=== a.ts === -class Foo { ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - - doThing(x: {a: number}) { ->doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->x : Symbol(x, Decl(a.ts, 1, 12)) ->a : Symbol(a, Decl(a.ts, 1, 16)) - - return {b: x.a}; ->b : Symbol(b, Decl(a.ts, 2, 16)) ->x.a : Symbol(a, Decl(a.ts, 1, 16)) ->x : Symbol(x, Decl(a.ts, 1, 12)) ->a : Symbol(a, Decl(a.ts, 1, 16)) - } - static make() { ->make : Symbol(Foo.make, Decl(a.ts, 3, 5)) - - return new Foo(); ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - } -} -=== index.ts === -const c = new Foo(); ->c : Symbol(c, Decl(index.ts, 0, 5)) ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -c.doThing({a: 42}); ->c.doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->c : Symbol(c, Decl(index.ts, 0, 5)) ->doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->a : Symbol(a, Decl(index.ts, 1, 11)) - -let x = c.doThing({a: 12}); ->x : Symbol(x, Decl(index.ts, 3, 3)) ->c.doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->c : Symbol(c, Decl(index.ts, 0, 5)) ->doThing : Symbol(Foo.doThing, Decl(a.ts, 0, 11)) ->a : Symbol(a, Decl(index.ts, 3, 19)) - diff --git a/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.types b/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.types deleted file mode 100644 index c98f45dde6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationMapsWithSourceMap.types +++ /dev/null @@ -1,51 +0,0 @@ -//// [tests/cases/compiler/declarationMapsWithSourceMap.ts] //// - -=== a.ts === -class Foo { ->Foo : Foo - - doThing(x: {a: number}) { ->doThing : (x: { a: number; }) => { b: number; } ->x : { a: number; } ->a : number - - return {b: x.a}; ->{b: x.a} : { b: number; } ->b : number ->x.a : number ->x : { a: number; } ->a : number - } - static make() { ->make : () => Foo - - return new Foo(); ->new Foo() : Foo ->Foo : typeof Foo - } -} -=== index.ts === -const c = new Foo(); ->c : Foo ->new Foo() : Foo ->Foo : typeof Foo - -c.doThing({a: 42}); ->c.doThing({a: 42}) : { b: number; } ->c.doThing : (x: { a: number; }) => { b: number; } ->c : Foo ->doThing : (x: { a: number; }) => { b: number; } ->{a: 42} : { a: number; } ->a : number ->42 : 42 - -let x = c.doThing({a: 12}); ->x : { b: number; } ->c.doThing({a: 12}) : { b: number; } ->c.doThing : (x: { a: number; }) => { b: number; } ->c : Foo ->doThing : (x: { a: number; }) => { b: number; } ->{a: 12} : { a: number; } ->a : number ->12 : 12 - diff --git a/testdata/baselines/reference/submodule/compiler/declarationsIndirectGeneratedAliasReference.js b/testdata/baselines/reference/submodule/compiler/declarationsIndirectGeneratedAliasReference.js index 37a14c819a..50a1fa7882 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationsIndirectGeneratedAliasReference.js +++ b/testdata/baselines/reference/submodule/compiler/declarationsIndirectGeneratedAliasReference.js @@ -20,13 +20,45 @@ export const MyComp = Ctor.extends({foo: "bar"}); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MyComp = void 0; -const ns = require("mod"); +const ns = __importStar(require("mod")); const Ctor = ns.default; exports.MyComp = Ctor.extends({ foo: "bar" }); //// [index.d.ts] -import * as ns from "mod"; -export declare const MyComp: import("mod/ctor").ExtendedCtor; +export declare const MyComp: import("mod/ctor").ExtendedCtor; diff --git a/testdata/baselines/reference/submodule/compiler/declarationsIndirectGeneratedAliasReference.js.diff b/testdata/baselines/reference/submodule/compiler/declarationsIndirectGeneratedAliasReference.js.diff index 0d1946d9ee..3a61d94d5c 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationsIndirectGeneratedAliasReference.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationsIndirectGeneratedAliasReference.js.diff @@ -1,10 +1,10 @@ --- old.declarationsIndirectGeneratedAliasReference.js +++ new.declarationsIndirectGeneratedAliasReference.js -@@= skipped -21, +21 lines =@@ - "use strict"; +@@= skipped -54, +54 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MyComp = void 0; --var ns = require("mod"); -+const ns = require("mod"); +-var ns = __importStar(require("mod")); ++const ns = __importStar(require("mod")); const Ctor = ns.default; exports.MyComp = Ctor.extends({ foo: "bar" }); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js.diff index 1874b1d5e5..33cd58ddcf 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js.diff @@ -4,7 +4,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; --var db_1 = require("./db"); // error no default export +-var db_1 = __importDefault(require("./db")); // error no default export function someDecorator(target) { return target; } diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js.diff index 54b82621a7..f5402ef4ab 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js.diff @@ -4,7 +4,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; --var db_1 = require("./db"); +-var db_1 = __importDefault(require("./db")); function someDecorator(target) { return target; } diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js.diff index e4e4bd26fd..57d51ce2dd 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js.diff @@ -4,7 +4,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; --var db_1 = require("./db"); +-var db_1 = __importDefault(require("./db")); function someDecorator(target) { return target; } diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js.diff index 5bf4140db7..c1441cd345 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js.diff @@ -4,7 +4,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; --var db_1 = require("./db"); +-var db_1 = __importDefault(require("./db")); function someDecorator(target) { return target; } diff --git a/testdata/baselines/reference/submodule/compiler/defaultDeclarationEmitShadowedNamedCorrectly.js b/testdata/baselines/reference/submodule/compiler/defaultDeclarationEmitShadowedNamedCorrectly.js index c918e21907..cadcf34d75 100644 --- a/testdata/baselines/reference/submodule/compiler/defaultDeclarationEmitShadowedNamedCorrectly.js +++ b/testdata/baselines/reference/submodule/compiler/defaultDeclarationEmitShadowedNamedCorrectly.js @@ -23,10 +23,43 @@ export namespace Something { //// [this.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Something = void 0; exports.make = make; -const me = require("./this"); +const me = __importStar(require("./this")); function make(x) { return null; } diff --git a/testdata/baselines/reference/submodule/compiler/defaultDeclarationEmitShadowedNamedCorrectly.js.diff b/testdata/baselines/reference/submodule/compiler/defaultDeclarationEmitShadowedNamedCorrectly.js.diff index 6718c3ad88..6d9089577b 100644 --- a/testdata/baselines/reference/submodule/compiler/defaultDeclarationEmitShadowedNamedCorrectly.js.diff +++ b/testdata/baselines/reference/submodule/compiler/defaultDeclarationEmitShadowedNamedCorrectly.js.diff @@ -1,11 +1,11 @@ --- old.defaultDeclarationEmitShadowedNamedCorrectly.js +++ new.defaultDeclarationEmitShadowedNamedCorrectly.js -@@= skipped -25, +25 lines =@@ +@@= skipped -58, +58 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.Something = void 0; exports.make = make; --var me = require("./this"); -+const me = require("./this"); +-var me = __importStar(require("./this")); ++const me = __importStar(require("./this")); function make(x) { return null; } diff --git a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.errors.txt b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.errors.txt new file mode 100644 index 0000000000..4760ee1c0a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.errors.txt @@ -0,0 +1,48 @@ +duplicateLocalVariable2.ts(27,22): error TS2403: Subsequent variable declarations must have the same type. Variable 'i' must be of type 'string', but here has type 'number'. +duplicateLocalVariable2.ts(27,29): error TS2365: Operator '<' cannot be applied to types 'string' and 'number'. +duplicateLocalVariable2.ts(27,37): error TS2356: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. + + +==== duplicateLocalVariable2.ts (3 errors) ==== + export class TestCase { + constructor (public name: string, public test: ()=>boolean, public errorMessageRegEx?: string) { + } + } + export class TestRunner { + static arrayCompare(arg1: any[], arg2: any[]): boolean { + return false; + } + + public addTest(test: TestCase) { + } + } + + export var tests: TestRunner = (function () { + var testRunner = new TestRunner(); + + testRunner.addTest(new TestCase("Check UTF8 encoding", + function () { + var fb: any; + fb.writeUtf8Bom(); + var chars = [0x0054]; + for (var i in chars) { + fb.writeUtf8CodePoint(chars[i]); + } + fb.index = 0; + var bytes = []; + for (var i = 0; i < 14; i++) { + ~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'i' must be of type 'string', but here has type 'number'. +!!! related TS6203 duplicateLocalVariable2.ts:22:22: 'i' was also declared here. + ~~~~~~ +!!! error TS2365: Operator '<' cannot be applied to types 'string' and 'number'. + ~ +!!! error TS2356: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. + bytes.push(fb.readByte()); + } + var expected = [0xEF]; + return TestRunner.arrayCompare(bytes, expected); + })); + + return testRunner; + })(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.js b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.js new file mode 100644 index 0000000000..d43d0f6af3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.js @@ -0,0 +1,76 @@ +//// [tests/cases/compiler/duplicateLocalVariable2.ts] //// + +//// [duplicateLocalVariable2.ts] +export class TestCase { + constructor (public name: string, public test: ()=>boolean, public errorMessageRegEx?: string) { + } +} +export class TestRunner { + static arrayCompare(arg1: any[], arg2: any[]): boolean { + return false; + } + + public addTest(test: TestCase) { + } +} + +export var tests: TestRunner = (function () { + var testRunner = new TestRunner(); + + testRunner.addTest(new TestCase("Check UTF8 encoding", + function () { + var fb: any; + fb.writeUtf8Bom(); + var chars = [0x0054]; + for (var i in chars) { + fb.writeUtf8CodePoint(chars[i]); + } + fb.index = 0; + var bytes = []; + for (var i = 0; i < 14; i++) { + bytes.push(fb.readByte()); + } + var expected = [0xEF]; + return TestRunner.arrayCompare(bytes, expected); + })); + + return testRunner; +})(); + +//// [duplicateLocalVariable2.js] +export class TestCase { + name; + test; + errorMessageRegEx; + constructor(name, test, errorMessageRegEx) { + this.name = name; + this.test = test; + this.errorMessageRegEx = errorMessageRegEx; + } +} +export class TestRunner { + static arrayCompare(arg1, arg2) { + return false; + } + addTest(test) { + } +} +export var tests = (function () { + var testRunner = new TestRunner(); + testRunner.addTest(new TestCase("Check UTF8 encoding", function () { + var fb; + fb.writeUtf8Bom(); + var chars = [0x0054]; + for (var i in chars) { + fb.writeUtf8CodePoint(chars[i]); + } + fb.index = 0; + var bytes = []; + for (var i = 0; i < 14; i++) { + bytes.push(fb.readByte()); + } + var expected = [0xEF]; + return TestRunner.arrayCompare(bytes, expected); + })); + return testRunner; +})(); diff --git a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.js.diff b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.js.diff new file mode 100644 index 0000000000..66d761a936 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.js.diff @@ -0,0 +1,12 @@ +--- old.duplicateLocalVariable2.js ++++ new.duplicateLocalVariable2.js +@@= skipped -38, +38 lines =@@ + + //// [duplicateLocalVariable2.js] + export class TestCase { ++ name; ++ test; ++ errorMessageRegEx; + constructor(name, test, errorMessageRegEx) { + this.name = name; + this.test = test; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.symbols b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.symbols new file mode 100644 index 0000000000..30f8e4a990 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.symbols @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/duplicateLocalVariable2.ts] //// + +=== duplicateLocalVariable2.ts === +export class TestCase { +>TestCase : Symbol(TestCase, Decl(duplicateLocalVariable2.ts, 0, 0)) + + constructor (public name: string, public test: ()=>boolean, public errorMessageRegEx?: string) { +>name : Symbol(TestCase.name, Decl(duplicateLocalVariable2.ts, 1, 17)) +>test : Symbol(TestCase.test, Decl(duplicateLocalVariable2.ts, 1, 37)) +>errorMessageRegEx : Symbol(TestCase.errorMessageRegEx, Decl(duplicateLocalVariable2.ts, 1, 63)) + } +} +export class TestRunner { +>TestRunner : Symbol(TestRunner, Decl(duplicateLocalVariable2.ts, 3, 1)) + + static arrayCompare(arg1: any[], arg2: any[]): boolean { +>arrayCompare : Symbol(TestRunner.arrayCompare, Decl(duplicateLocalVariable2.ts, 4, 25)) +>arg1 : Symbol(arg1, Decl(duplicateLocalVariable2.ts, 5, 24)) +>arg2 : Symbol(arg2, Decl(duplicateLocalVariable2.ts, 5, 36)) + + return false; + } + + public addTest(test: TestCase) { +>addTest : Symbol(TestRunner.addTest, Decl(duplicateLocalVariable2.ts, 7, 5)) +>test : Symbol(test, Decl(duplicateLocalVariable2.ts, 9, 19)) +>TestCase : Symbol(TestCase, Decl(duplicateLocalVariable2.ts, 0, 0)) + } +} + +export var tests: TestRunner = (function () { +>tests : Symbol(tests, Decl(duplicateLocalVariable2.ts, 13, 10)) +>TestRunner : Symbol(TestRunner, Decl(duplicateLocalVariable2.ts, 3, 1)) + + var testRunner = new TestRunner(); +>testRunner : Symbol(testRunner, Decl(duplicateLocalVariable2.ts, 14, 7)) +>TestRunner : Symbol(TestRunner, Decl(duplicateLocalVariable2.ts, 3, 1)) + + testRunner.addTest(new TestCase("Check UTF8 encoding", +>testRunner.addTest : Symbol(TestRunner.addTest, Decl(duplicateLocalVariable2.ts, 7, 5)) +>testRunner : Symbol(testRunner, Decl(duplicateLocalVariable2.ts, 14, 7)) +>addTest : Symbol(TestRunner.addTest, Decl(duplicateLocalVariable2.ts, 7, 5)) +>TestCase : Symbol(TestCase, Decl(duplicateLocalVariable2.ts, 0, 0)) + + function () { + var fb: any; +>fb : Symbol(fb, Decl(duplicateLocalVariable2.ts, 18, 15)) + + fb.writeUtf8Bom(); +>fb : Symbol(fb, Decl(duplicateLocalVariable2.ts, 18, 15)) + + var chars = [0x0054]; +>chars : Symbol(chars, Decl(duplicateLocalVariable2.ts, 20, 15)) + + for (var i in chars) { +>i : Symbol(i, Decl(duplicateLocalVariable2.ts, 21, 20), Decl(duplicateLocalVariable2.ts, 26, 20)) +>chars : Symbol(chars, Decl(duplicateLocalVariable2.ts, 20, 15)) + + fb.writeUtf8CodePoint(chars[i]); +>fb : Symbol(fb, Decl(duplicateLocalVariable2.ts, 18, 15)) +>chars : Symbol(chars, Decl(duplicateLocalVariable2.ts, 20, 15)) +>i : Symbol(i, Decl(duplicateLocalVariable2.ts, 21, 20), Decl(duplicateLocalVariable2.ts, 26, 20)) + } + fb.index = 0; +>fb : Symbol(fb, Decl(duplicateLocalVariable2.ts, 18, 15)) + + var bytes = []; +>bytes : Symbol(bytes, Decl(duplicateLocalVariable2.ts, 25, 15)) + + for (var i = 0; i < 14; i++) { +>i : Symbol(i, Decl(duplicateLocalVariable2.ts, 21, 20), Decl(duplicateLocalVariable2.ts, 26, 20)) +>i : Symbol(i, Decl(duplicateLocalVariable2.ts, 21, 20), Decl(duplicateLocalVariable2.ts, 26, 20)) +>i : Symbol(i, Decl(duplicateLocalVariable2.ts, 21, 20), Decl(duplicateLocalVariable2.ts, 26, 20)) + + bytes.push(fb.readByte()); +>bytes.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>bytes : Symbol(bytes, Decl(duplicateLocalVariable2.ts, 25, 15)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>fb : Symbol(fb, Decl(duplicateLocalVariable2.ts, 18, 15)) + } + var expected = [0xEF]; +>expected : Symbol(expected, Decl(duplicateLocalVariable2.ts, 29, 15)) + + return TestRunner.arrayCompare(bytes, expected); +>TestRunner.arrayCompare : Symbol(TestRunner.arrayCompare, Decl(duplicateLocalVariable2.ts, 4, 25)) +>TestRunner : Symbol(TestRunner, Decl(duplicateLocalVariable2.ts, 3, 1)) +>arrayCompare : Symbol(TestRunner.arrayCompare, Decl(duplicateLocalVariable2.ts, 4, 25)) +>bytes : Symbol(bytes, Decl(duplicateLocalVariable2.ts, 25, 15)) +>expected : Symbol(expected, Decl(duplicateLocalVariable2.ts, 29, 15)) + + })); + + return testRunner; +>testRunner : Symbol(testRunner, Decl(duplicateLocalVariable2.ts, 14, 7)) + +})(); diff --git a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.types b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.types new file mode 100644 index 0000000000..1a01a2099b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable2.types @@ -0,0 +1,129 @@ +//// [tests/cases/compiler/duplicateLocalVariable2.ts] //// + +=== duplicateLocalVariable2.ts === +export class TestCase { +>TestCase : TestCase + + constructor (public name: string, public test: ()=>boolean, public errorMessageRegEx?: string) { +>name : string +>test : () => boolean +>errorMessageRegEx : string + } +} +export class TestRunner { +>TestRunner : TestRunner + + static arrayCompare(arg1: any[], arg2: any[]): boolean { +>arrayCompare : (arg1: any[], arg2: any[]) => boolean +>arg1 : any[] +>arg2 : any[] + + return false; +>false : false + } + + public addTest(test: TestCase) { +>addTest : (test: TestCase) => void +>test : TestCase + } +} + +export var tests: TestRunner = (function () { +>tests : TestRunner +>(function () { var testRunner = new TestRunner(); testRunner.addTest(new TestCase("Check UTF8 encoding", function () { var fb: any; fb.writeUtf8Bom(); var chars = [0x0054]; for (var i in chars) { fb.writeUtf8CodePoint(chars[i]); } fb.index = 0; var bytes = []; for (var i = 0; i < 14; i++) { bytes.push(fb.readByte()); } var expected = [0xEF]; return TestRunner.arrayCompare(bytes, expected); })); return testRunner;})() : TestRunner +>(function () { var testRunner = new TestRunner(); testRunner.addTest(new TestCase("Check UTF8 encoding", function () { var fb: any; fb.writeUtf8Bom(); var chars = [0x0054]; for (var i in chars) { fb.writeUtf8CodePoint(chars[i]); } fb.index = 0; var bytes = []; for (var i = 0; i < 14; i++) { bytes.push(fb.readByte()); } var expected = [0xEF]; return TestRunner.arrayCompare(bytes, expected); })); return testRunner;}) : () => TestRunner +>function () { var testRunner = new TestRunner(); testRunner.addTest(new TestCase("Check UTF8 encoding", function () { var fb: any; fb.writeUtf8Bom(); var chars = [0x0054]; for (var i in chars) { fb.writeUtf8CodePoint(chars[i]); } fb.index = 0; var bytes = []; for (var i = 0; i < 14; i++) { bytes.push(fb.readByte()); } var expected = [0xEF]; return TestRunner.arrayCompare(bytes, expected); })); return testRunner;} : () => TestRunner + + var testRunner = new TestRunner(); +>testRunner : TestRunner +>new TestRunner() : TestRunner +>TestRunner : typeof TestRunner + + testRunner.addTest(new TestCase("Check UTF8 encoding", +>testRunner.addTest(new TestCase("Check UTF8 encoding", function () { var fb: any; fb.writeUtf8Bom(); var chars = [0x0054]; for (var i in chars) { fb.writeUtf8CodePoint(chars[i]); } fb.index = 0; var bytes = []; for (var i = 0; i < 14; i++) { bytes.push(fb.readByte()); } var expected = [0xEF]; return TestRunner.arrayCompare(bytes, expected); })) : void +>testRunner.addTest : (test: TestCase) => void +>testRunner : TestRunner +>addTest : (test: TestCase) => void +>new TestCase("Check UTF8 encoding", function () { var fb: any; fb.writeUtf8Bom(); var chars = [0x0054]; for (var i in chars) { fb.writeUtf8CodePoint(chars[i]); } fb.index = 0; var bytes = []; for (var i = 0; i < 14; i++) { bytes.push(fb.readByte()); } var expected = [0xEF]; return TestRunner.arrayCompare(bytes, expected); }) : TestCase +>TestCase : typeof TestCase +>"Check UTF8 encoding" : "Check UTF8 encoding" + + function () { +>function () { var fb: any; fb.writeUtf8Bom(); var chars = [0x0054]; for (var i in chars) { fb.writeUtf8CodePoint(chars[i]); } fb.index = 0; var bytes = []; for (var i = 0; i < 14; i++) { bytes.push(fb.readByte()); } var expected = [0xEF]; return TestRunner.arrayCompare(bytes, expected); } : () => boolean + + var fb: any; +>fb : any + + fb.writeUtf8Bom(); +>fb.writeUtf8Bom() : any +>fb.writeUtf8Bom : any +>fb : any +>writeUtf8Bom : any + + var chars = [0x0054]; +>chars : number[] +>[0x0054] : number[] +>0x0054 : 84 + + for (var i in chars) { +>i : string +>chars : number[] + + fb.writeUtf8CodePoint(chars[i]); +>fb.writeUtf8CodePoint(chars[i]) : any +>fb.writeUtf8CodePoint : any +>fb : any +>writeUtf8CodePoint : any +>chars[i] : number +>chars : number[] +>i : string + } + fb.index = 0; +>fb.index = 0 : 0 +>fb.index : any +>fb : any +>index : any +>0 : 0 + + var bytes = []; +>bytes : any[] +>[] : undefined[] + + for (var i = 0; i < 14; i++) { +>i : string +>0 : 0 +>i < 14 : boolean +>i : string +>14 : 14 +>i++ : number +>i : string + + bytes.push(fb.readByte()); +>bytes.push(fb.readByte()) : number +>bytes.push : (...items: any[]) => number +>bytes : any[] +>push : (...items: any[]) => number +>fb.readByte() : any +>fb.readByte : any +>fb : any +>readByte : any + } + var expected = [0xEF]; +>expected : number[] +>[0xEF] : number[] +>0xEF : 239 + + return TestRunner.arrayCompare(bytes, expected); +>TestRunner.arrayCompare(bytes, expected) : boolean +>TestRunner.arrayCompare : (arg1: any[], arg2: any[]) => boolean +>TestRunner : typeof TestRunner +>arrayCompare : (arg1: any[], arg2: any[]) => boolean +>bytes : any[] +>expected : number[] + + })); + + return testRunner; +>testRunner : TestRunner + +})(); diff --git a/testdata/baselines/reference/submodule/compiler/duplicateObjectLiteralProperty_computedName3.js b/testdata/baselines/reference/submodule/compiler/duplicateObjectLiteralProperty_computedName3.js index 8680935d9e..e9ae01fb1f 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicateObjectLiteralProperty_computedName3.js +++ b/testdata/baselines/reference/submodule/compiler/duplicateObjectLiteralProperty_computedName3.js @@ -46,8 +46,41 @@ var E2; })(E2 || (exports.E2 = E2 = {})); //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const keys = require("./a"); +const keys = __importStar(require("./a")); const t1 = { [keys.n]: 1, [keys.n]: 1, // duplicate diff --git a/testdata/baselines/reference/submodule/compiler/duplicateObjectLiteralProperty_computedName3.js.diff b/testdata/baselines/reference/submodule/compiler/duplicateObjectLiteralProperty_computedName3.js.diff index 23e0b62965..9efdbdf108 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicateObjectLiteralProperty_computedName3.js.diff +++ b/testdata/baselines/reference/submodule/compiler/duplicateObjectLiteralProperty_computedName3.js.diff @@ -1,11 +1,11 @@ --- old.duplicateObjectLiteralProperty_computedName3.js +++ new.duplicateObjectLiteralProperty_computedName3.js -@@= skipped -46, +46 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -79, +79 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var keys = require("./a"); -+const keys = require("./a"); +-var keys = __importStar(require("./a")); ++const keys = __importStar(require("./a")); const t1 = { [keys.n]: 1, [keys.n]: 1, // duplicate \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_referenceTypes.js b/testdata/baselines/reference/submodule/compiler/duplicatePackage_referenceTypes.js index 8acd17286e..46aa5fb699 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicatePackage_referenceTypes.js +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_referenceTypes.js @@ -26,6 +26,39 @@ let foo: Foo = a.foo; //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const a = require("a"); +const a = __importStar(require("a")); let foo = a.foo; diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_referenceTypes.js.diff b/testdata/baselines/reference/submodule/compiler/duplicatePackage_referenceTypes.js.diff index 8741077cda..9791edb463 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicatePackage_referenceTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_referenceTypes.js.diff @@ -1,9 +1,9 @@ --- old.duplicatePackage_referenceTypes.js +++ new.duplicatePackage_referenceTypes.js -@@= skipped -26, +26 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -59, +59 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var a = require("a"); -+const a = require("a"); +-var a = __importStar(require("a")); ++const a = __importStar(require("a")); let foo = a.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_subModule.js b/testdata/baselines/reference/submodule/compiler/duplicatePackage_subModule.js index 65245c540b..77b9547a9c 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicatePackage_subModule.js +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_subModule.js @@ -29,6 +29,39 @@ const o: Foo = a.o; //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const a = require("a"); +const a = __importStar(require("a")); const o = a.o; diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_subModule.js.diff b/testdata/baselines/reference/submodule/compiler/duplicatePackage_subModule.js.diff index f1568fbcc2..e706bdab21 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicatePackage_subModule.js.diff +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_subModule.js.diff @@ -1,9 +1,9 @@ --- old.duplicatePackage_subModule.js +++ new.duplicatePackage_subModule.js -@@= skipped -29, +29 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -62, +62 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var a = require("a"); -+const a = require("a"); +-var a = __importStar(require("a")); ++const a = __importStar(require("a")); const o = a.o; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.errors.txt b/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.errors.txt new file mode 100644 index 0000000000..684a206f24 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.errors.txt @@ -0,0 +1,140 @@ +duplicateSymbolsExportMatching.ts(1,1): error TS1185: Merge conflict marker encountered. +duplicateSymbolsExportMatching.ts(3,1): error TS1185: Merge conflict marker encountered. +duplicateSymbolsExportMatching.ts(5,1): error TS1185: Merge conflict marker encountered. +duplicateSymbolsExportMatching.ts(7,1): error TS1185: Merge conflict marker encountered. +duplicateSymbolsExportMatching.ts(30,15): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local. +duplicateSymbolsExportMatching.ts(31,22): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local. +duplicateSymbolsExportMatching.ts(32,22): error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local. +duplicateSymbolsExportMatching.ts(33,15): error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local. +duplicateSymbolsExportMatching.ts(38,12): error TS2395: Individual declarations in merged declaration 'inst' must be all exported or all local. +duplicateSymbolsExportMatching.ts(41,19): error TS2395: Individual declarations in merged declaration 'inst' must be all exported or all local. +duplicateSymbolsExportMatching.ts(48,9): error TS2395: Individual declarations in merged declaration 'v' must be all exported or all local. +duplicateSymbolsExportMatching.ts(49,16): error TS2395: Individual declarations in merged declaration 'v' must be all exported or all local. +duplicateSymbolsExportMatching.ts(50,9): error TS2395: Individual declarations in merged declaration 'w' must be all exported or all local. +duplicateSymbolsExportMatching.ts(51,16): error TS2395: Individual declarations in merged declaration 'w' must be all exported or all local. +duplicateSymbolsExportMatching.ts(55,12): error TS2395: Individual declarations in merged declaration 'F' must be all exported or all local. +duplicateSymbolsExportMatching.ts(55,12): error TS2434: A namespace declaration cannot be located prior to a class or function with which it is merged. +duplicateSymbolsExportMatching.ts(58,21): error TS2395: Individual declarations in merged declaration 'F' must be all exported or all local. +duplicateSymbolsExportMatching.ts(62,11): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local. +duplicateSymbolsExportMatching.ts(63,12): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local. +duplicateSymbolsExportMatching.ts(64,19): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local. +duplicateSymbolsExportMatching.ts(70,11): error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local. +duplicateSymbolsExportMatching.ts(71,18): error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local. + + +==== duplicateSymbolsExportMatching.ts (22 errors) ==== + <<<<<<< HEAD + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + module M { + ||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + namespace M { + ======= + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + namespace M { + >>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export interface E { } + interface I { } + } + module M { + export interface E { } // ok + interface I { } // ok + } + + // Doesn't match export visibility, but it's in a different parent, so it's ok + module M { + interface E { } // ok + export interface I { } // ok + } + + module N { + interface I { } + interface I { } // ok + export interface E { } + export interface E { } // ok + } + + module N2 { + interface I { } + ~ +!!! error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local. + export interface I { } // error + ~ +!!! error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local. + export interface E { } + ~ +!!! error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local. + interface E { } // error + ~ +!!! error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local. + } + + // Should report error only once for instantiated module + module M { + module inst { + ~~~~ +!!! error TS2395: Individual declarations in merged declaration 'inst' must be all exported or all local. + var t; + } + export module inst { // one error + ~~~~ +!!! error TS2395: Individual declarations in merged declaration 'inst' must be all exported or all local. + var t; + } + } + + // Variables of the same / different type + module M2 { + var v: string; + ~ +!!! error TS2395: Individual declarations in merged declaration 'v' must be all exported or all local. + export var v: string; // one error (visibility) + ~ +!!! error TS2395: Individual declarations in merged declaration 'v' must be all exported or all local. + var w: number; + ~ +!!! error TS2395: Individual declarations in merged declaration 'w' must be all exported or all local. + export var w: string; // two errors (visibility and type mismatch) + ~ +!!! error TS2395: Individual declarations in merged declaration 'w' must be all exported or all local. + } + + module M { + module F { + ~ +!!! error TS2395: Individual declarations in merged declaration 'F' must be all exported or all local. + ~ +!!! error TS2434: A namespace declaration cannot be located prior to a class or function with which it is merged. + var t; + } + export function F() { } // Only one error for duplicate identifier (don't consider visibility) + ~ +!!! error TS2395: Individual declarations in merged declaration 'F' must be all exported or all local. + } + + module M { + class C { } + ~ +!!! error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local. + module C { } + ~ +!!! error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local. + export module C { // Two visibility errors (one for the clodule symbol, and one for the merged container symbol) + ~ +!!! error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local. + var t; + } + } + + // Top level + interface D { } + ~ +!!! error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local. + export interface D { } + ~ +!!! error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.js b/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.js new file mode 100644 index 0000000000..63924c722e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.js @@ -0,0 +1,110 @@ +//// [tests/cases/compiler/duplicateSymbolsExportMatching.ts] //// + +//// [duplicateSymbolsExportMatching.ts] +<<<<<<< HEAD +module M { +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +namespace M { +======= +namespace M { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface E { } + interface I { } +} +module M { + export interface E { } // ok + interface I { } // ok +} + +// Doesn't match export visibility, but it's in a different parent, so it's ok +module M { + interface E { } // ok + export interface I { } // ok +} + +module N { + interface I { } + interface I { } // ok + export interface E { } + export interface E { } // ok +} + +module N2 { + interface I { } + export interface I { } // error + export interface E { } + interface E { } // error +} + +// Should report error only once for instantiated module +module M { + module inst { + var t; + } + export module inst { // one error + var t; + } +} + +// Variables of the same / different type +module M2 { + var v: string; + export var v: string; // one error (visibility) + var w: number; + export var w: string; // two errors (visibility and type mismatch) +} + +module M { + module F { + var t; + } + export function F() { } // Only one error for duplicate identifier (don't consider visibility) +} + +module M { + class C { } + module C { } + export module C { // Two visibility errors (one for the clodule symbol, and one for the merged container symbol) + var t; + } +} + +// Top level +interface D { } +export interface D { } + +//// [duplicateSymbolsExportMatching.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// Should report error only once for instantiated module +var M; +(function (M) { + let inst; + (function (inst) { + var t; + })(inst || (inst = {})); + (function (inst) { + var t; + })(inst = M.inst || (M.inst = {})); +})(M || (M = {})); +// Variables of the same / different type +var M2; +(function (M2) { + var v; + var w; +})(M2 || (M2 = {})); +(function (M) { + let F; + (function (F) { + var t; + })(F || (F = {})); + function F() { } // Only one error for duplicate identifier (don't consider visibility) + M.F = F; +})(M || (M = {})); +(function (M) { + class C { + } + (function (C) { + var t; + })(C = M.C || (M.C = {})); +})(M || (M = {})); diff --git a/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.symbols b/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.symbols new file mode 100644 index 0000000000..33e779c2f6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.symbols @@ -0,0 +1,143 @@ +//// [tests/cases/compiler/duplicateSymbolsExportMatching.ts] //// + +=== duplicateSymbolsExportMatching.ts === +<<<<<<< HEAD +module M { +>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more) + +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +namespace M { +======= +namespace M { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface E { } +>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 1, 10), Decl(duplicateSymbolsExportMatching.ts, 10, 10)) + + interface I { } +>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 7, 26)) +} +module M { +>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more) + + export interface E { } // ok +>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 1, 10), Decl(duplicateSymbolsExportMatching.ts, 10, 10)) + + interface I { } // ok +>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 11, 26)) +} + +// Doesn't match export visibility, but it's in a different parent, so it's ok +module M { +>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more) + + interface E { } // ok +>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 16, 10)) + + export interface I { } // ok +>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 17, 19)) +} + +module N { +>N : Symbol(N, Decl(duplicateSymbolsExportMatching.ts, 19, 1)) + + interface I { } +>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 21, 10), Decl(duplicateSymbolsExportMatching.ts, 22, 19)) + + interface I { } // ok +>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 21, 10), Decl(duplicateSymbolsExportMatching.ts, 22, 19)) + + export interface E { } +>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 23, 19), Decl(duplicateSymbolsExportMatching.ts, 24, 26)) + + export interface E { } // ok +>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 23, 19), Decl(duplicateSymbolsExportMatching.ts, 24, 26)) +} + +module N2 { +>N2 : Symbol(N2, Decl(duplicateSymbolsExportMatching.ts, 26, 1)) + + interface I { } +>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 28, 11), Decl(duplicateSymbolsExportMatching.ts, 29, 19)) + + export interface I { } // error +>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 29, 19)) + + export interface E { } +>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 30, 26)) + + interface E { } // error +>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 30, 26), Decl(duplicateSymbolsExportMatching.ts, 31, 26)) +} + +// Should report error only once for instantiated module +module M { +>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more) + + module inst { +>inst : Symbol(inst, Decl(duplicateSymbolsExportMatching.ts, 36, 10), Decl(duplicateSymbolsExportMatching.ts, 39, 5)) + + var t; +>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 38, 11)) + } + export module inst { // one error +>inst : Symbol(inst, Decl(duplicateSymbolsExportMatching.ts, 39, 5)) + + var t; +>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 41, 11)) + } +} + +// Variables of the same / different type +module M2 { +>M2 : Symbol(M2, Decl(duplicateSymbolsExportMatching.ts, 43, 1)) + + var v: string; +>v : Symbol(v, Decl(duplicateSymbolsExportMatching.ts, 47, 7), Decl(duplicateSymbolsExportMatching.ts, 48, 14)) + + export var v: string; // one error (visibility) +>v : Symbol(v, Decl(duplicateSymbolsExportMatching.ts, 48, 14)) + + var w: number; +>w : Symbol(w, Decl(duplicateSymbolsExportMatching.ts, 49, 7), Decl(duplicateSymbolsExportMatching.ts, 50, 14)) + + export var w: string; // two errors (visibility and type mismatch) +>w : Symbol(w, Decl(duplicateSymbolsExportMatching.ts, 50, 14)) +} + +module M { +>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more) + + module F { +>F : Symbol(F, Decl(duplicateSymbolsExportMatching.ts, 56, 5), Decl(duplicateSymbolsExportMatching.ts, 53, 10)) + + var t; +>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 55, 11)) + } + export function F() { } // Only one error for duplicate identifier (don't consider visibility) +>F : Symbol(F, Decl(duplicateSymbolsExportMatching.ts, 56, 5)) +} + +module M { +>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more) + + class C { } +>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 60, 10), Decl(duplicateSymbolsExportMatching.ts, 61, 15), Decl(duplicateSymbolsExportMatching.ts, 62, 16)) + + module C { } +>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 60, 10), Decl(duplicateSymbolsExportMatching.ts, 61, 15), Decl(duplicateSymbolsExportMatching.ts, 62, 16)) + + export module C { // Two visibility errors (one for the clodule symbol, and one for the merged container symbol) +>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 62, 16)) + + var t; +>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 64, 11)) + } +} + +// Top level +interface D { } +>D : Symbol(D, Decl(duplicateSymbolsExportMatching.ts, 66, 1), Decl(duplicateSymbolsExportMatching.ts, 69, 15)) + +export interface D { } +>D : Symbol(D, Decl(duplicateSymbolsExportMatching.ts, 69, 15)) + diff --git a/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.types b/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.types new file mode 100644 index 0000000000..828c0f7d84 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicateSymbolsExportMatching.types @@ -0,0 +1,104 @@ +//// [tests/cases/compiler/duplicateSymbolsExportMatching.ts] //// + +=== duplicateSymbolsExportMatching.ts === +<<<<<<< HEAD +module M { +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +namespace M { +======= +namespace M { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface E { } + interface I { } +} +module M { + export interface E { } // ok + interface I { } // ok +} + +// Doesn't match export visibility, but it's in a different parent, so it's ok +module M { + interface E { } // ok + export interface I { } // ok +} + +module N { + interface I { } + interface I { } // ok + export interface E { } + export interface E { } // ok +} + +module N2 { + interface I { } + export interface I { } // error + export interface E { } + interface E { } // error +} + +// Should report error only once for instantiated module +module M { +>M : typeof M + + module inst { +>inst : typeof inst + + var t; +>t : any + } + export module inst { // one error +>inst : typeof M.inst + + var t; +>t : any + } +} + +// Variables of the same / different type +module M2 { +>M2 : typeof M2 + + var v: string; +>v : string + + export var v: string; // one error (visibility) +>v : string + + var w: number; +>w : number + + export var w: string; // two errors (visibility and type mismatch) +>w : string +} + +module M { +>M : typeof M + + module F { +>F : typeof F + + var t; +>t : any + } + export function F() { } // Only one error for duplicate identifier (don't consider visibility) +>F : () => void +} + +module M { +>M : typeof M + + class C { } +>C : C + + module C { } + export module C { // Two visibility errors (one for the clodule symbol, and one for the merged container symbol) +>C : typeof M.C + + var t; +>t : any + } +} + +// Top level +interface D { } +export interface D { } diff --git a/testdata/baselines/reference/submodule/compiler/dynamicImportEvaluateSpecifier.js b/testdata/baselines/reference/submodule/compiler/dynamicImportEvaluateSpecifier.js index be247c57f0..d69f1eee00 100644 --- a/testdata/baselines/reference/submodule/compiler/dynamicImportEvaluateSpecifier.js +++ b/testdata/baselines/reference/submodule/compiler/dynamicImportEvaluateSpecifier.js @@ -18,14 +18,47 @@ const someFunction = async () => { //// [dynamicImportEvaluateSpecifier.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); // https://github.com/microsoft/TypeScript/issues/48285 let i = 0; -Promise.resolve(`${String(i++)}`).then(s => require(s)); -Promise.resolve(`${String(i++)}`).then(s => require(s)); +Promise.resolve(`${String(i++)}`).then(s => __importStar(require(s))); +Promise.resolve(`${String(i++)}`).then(s => __importStar(require(s))); const getPath = async () => { /* in reality this would do some async FS operation, or a web request */ return "/root/my/cool/path"; }; const someFunction = async () => { - const result = await Promise.resolve(`${await getPath()}`).then(s => require(s)); + const result = await Promise.resolve(`${await getPath()}`).then(s => __importStar(require(s))); }; diff --git a/testdata/baselines/reference/submodule/compiler/dynamicImportInDefaultExportExpression.js b/testdata/baselines/reference/submodule/compiler/dynamicImportInDefaultExportExpression.js index 888e0e4144..60a643a6dd 100644 --- a/testdata/baselines/reference/submodule/compiler/dynamicImportInDefaultExportExpression.js +++ b/testdata/baselines/reference/submodule/compiler/dynamicImportInDefaultExportExpression.js @@ -9,9 +9,42 @@ export default { //// [dynamicImportInDefaultExportExpression.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { getInstance: function () { - return Promise.resolve().then(() => require('./foo2')); + return Promise.resolve().then(() => __importStar(require('./foo2'))); } }; diff --git a/testdata/baselines/reference/submodule/compiler/dynamicImportInDefaultExportExpression.js.diff b/testdata/baselines/reference/submodule/compiler/dynamicImportInDefaultExportExpression.js.diff index 1a1d525748..0b7d21b4bd 100644 --- a/testdata/baselines/reference/submodule/compiler/dynamicImportInDefaultExportExpression.js.diff +++ b/testdata/baselines/reference/submodule/compiler/dynamicImportInDefaultExportExpression.js.diff @@ -1,10 +1,10 @@ --- old.dynamicImportInDefaultExportExpression.js +++ new.dynamicImportInDefaultExportExpression.js -@@= skipped -11, +11 lines =@@ +@@= skipped -44, +44 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { getInstance: function () { -- return Promise.resolve().then(function () { return require('./foo2'); }); -+ return Promise.resolve().then(() => require('./foo2')); +- return Promise.resolve().then(function () { return __importStar(require('./foo2')); }); ++ return Promise.resolve().then(() => __importStar(require('./foo2'))); } }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/dynamicImportTrailingComma.js b/testdata/baselines/reference/submodule/compiler/dynamicImportTrailingComma.js index 9e85238a27..b287fb8a3f 100644 --- a/testdata/baselines/reference/submodule/compiler/dynamicImportTrailingComma.js +++ b/testdata/baselines/reference/submodule/compiler/dynamicImportTrailingComma.js @@ -5,5 +5,38 @@ const path = './foo'; import(path,); //// [dynamicImportTrailingComma.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); const path = './foo'; -Promise.resolve(`${path}`).then(s => require(s)); +Promise.resolve(`${path}`).then(s => __importStar(require(s))); diff --git a/testdata/baselines/reference/submodule/compiler/dynamicImportTrailingComma.js.diff b/testdata/baselines/reference/submodule/compiler/dynamicImportTrailingComma.js.diff index 147468858b..778c134b83 100644 --- a/testdata/baselines/reference/submodule/compiler/dynamicImportTrailingComma.js.diff +++ b/testdata/baselines/reference/submodule/compiler/dynamicImportTrailingComma.js.diff @@ -1,8 +1,8 @@ --- old.dynamicImportTrailingComma.js +++ new.dynamicImportTrailingComma.js -@@= skipped -5, +5 lines =@@ - - //// [dynamicImportTrailingComma.js] +@@= skipped -38, +38 lines =@@ + }; + })(); const path = './foo'; --Promise.resolve("".concat(path)).then(function (s) { return require(s); }); -+Promise.resolve(`${path}`).then(s => require(s)); \ No newline at end of file +-Promise.resolve("".concat(path)).then(function (s) { return __importStar(require(s)); }); ++Promise.resolve(`${path}`).then(s => __importStar(require(s))); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js.diff b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js.diff index 2fc9e41e26..2ac7ff8e29 100644 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js.diff +++ b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js.diff @@ -4,17 +4,50 @@ exports.C3 = C3; //// [index.js] "use strict"; +-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { +- if (k2 === undefined) k2 = k; +- var desc = Object.getOwnPropertyDescriptor(m, k); +- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { +- desc = { enumerable: true, get: function() { return m[k]; } }; +- } +- Object.defineProperty(o, k2, desc); +-}) : (function(o, m, k, k2) { +- if (k2 === undefined) k2 = k; +- o[k2] = m[k]; +-})); +-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { +- Object.defineProperty(o, "default", { enumerable: true, value: v }); +-}) : function(o, v) { +- o["default"] = v; +-}); -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; +-var __importStar = (this && this.__importStar) || (function () { +- var ownKeys = function(o) { +- ownKeys = Object.getOwnPropertyNames || function (o) { +- var ar = []; +- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; +- return ar; +- }; +- return ownKeys(o); +- }; +- return function (mod) { +- if (mod && mod.__esModule) return mod; +- var result = {}; +- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); +- __setModuleDefault(result, mod); +- return result; +- }; +-})(); -var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; Object.defineProperty(exports, "__esModule", { value: true }); --var t1 = require("./type1"); +-var t1 = __importStar(require("./type1")); -var class3_1 = require("./class3"); -let HelloWorld = (() => { - class HelloWorld { diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).errors.txt b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).errors.txt deleted file mode 100644 index 67291b1f97..0000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node16'. - - -!!! error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node16'. -==== a.ts (0 errors) ==== - declare var dec: any, __decorate: any; - @dec export class A { - } - - const o = { a: 1 }; - const y = { ...o }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js.diff index 929423ee34..9886632971 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js.diff +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js.diff @@ -1,27 +1,25 @@ --- old.emitHelpersWithLocalCollisions(module=node16).js +++ new.emitHelpersWithLocalCollisions(module=node16).js -@@= skipped -9, +9 lines =@@ - +@@= skipped -10, +10 lines =@@ //// [a.js] + "use strict"; -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; -let A = class A { -}; --A = __decorate([ -- dec --], A); --export { A }; -+"use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); -+exports.A = void 0; +@dec +class A { +} -+exports.A = A; + exports.A = A; +-exports.A = A = __decorate([ +- dec +-], A); const o = { a: 1 }; const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).errors.txt b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).errors.txt deleted file mode 100644 index 7dfd532d52..0000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node18'. - - -!!! error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node18'. -==== a.ts (0 errors) ==== - declare var dec: any, __decorate: any; - @dec export class A { - } - - const o = { a: 1 }; - const y = { ...o }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js.diff index 66178e26d6..f7e3e17ef5 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js.diff +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js.diff @@ -1,27 +1,25 @@ --- old.emitHelpersWithLocalCollisions(module=node18).js +++ new.emitHelpersWithLocalCollisions(module=node18).js -@@= skipped -9, +9 lines =@@ - +@@= skipped -10, +10 lines =@@ //// [a.js] + "use strict"; -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; -let A = class A { -}; --A = __decorate([ -- dec --], A); --export { A }; -+"use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); -+exports.A = void 0; +@dec +class A { +} -+exports.A = A; + exports.A = A; +-exports.A = A = __decorate([ +- dec +-], A); const o = { a: 1 }; const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).errors.txt b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).errors.txt deleted file mode 100644 index 68c6714749..0000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node20'. - - -!!! error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node20'. -==== a.ts (0 errors) ==== - declare var dec: any, __decorate: any; - @dec export class A { - } - - const o = { a: 1 }; - const y = { ...o }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).errors.txt.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).errors.txt.diff deleted file mode 100644 index 0eb8cd4584..0000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).errors.txt.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=node20).errors.txt -+++ new.emitHelpersWithLocalCollisions(module=node20).errors.txt -@@= skipped -0, +0 lines =@@ --error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. - error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node20'. - - --!!! error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. - !!! error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node20'. - ==== a.ts (0 errors) ==== - declare var dec: any, __decorate: any; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js.diff index a10aa37d78..cc9a2defb2 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js.diff +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js.diff @@ -1,27 +1,25 @@ --- old.emitHelpersWithLocalCollisions(module=node20).js +++ new.emitHelpersWithLocalCollisions(module=node20).js -@@= skipped -9, +9 lines =@@ - +@@= skipped -10, +10 lines =@@ //// [a.js] + "use strict"; -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; -let A = class A { -}; --A = __decorate([ -- dec --], A); --export { A }; -+"use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); -+exports.A = void 0; +@dec +class A { +} -+exports.A = A; + exports.A = A; +-exports.A = A = __decorate([ +- dec +-], A); const o = { a: 1 }; const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).errors.txt b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).errors.txt deleted file mode 100644 index 4b7e63ced9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -error TS5109: Option 'moduleResolution' must be set to 'NodeNext' (or left unspecified) when option 'module' is set to 'NodeNext'. - - -!!! error TS5109: Option 'moduleResolution' must be set to 'NodeNext' (or left unspecified) when option 'module' is set to 'NodeNext'. -==== a.ts (0 errors) ==== - declare var dec: any, __decorate: any; - @dec export class A { - } - - const o = { a: 1 }; - const y = { ...o }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).errors.txt.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).errors.txt.diff deleted file mode 100644 index 9e1146fb6a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).errors.txt.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=nodenext).errors.txt -+++ new.emitHelpersWithLocalCollisions(module=nodenext).errors.txt -@@= skipped -0, +0 lines =@@ --error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. - error TS5109: Option 'moduleResolution' must be set to 'NodeNext' (or left unspecified) when option 'module' is set to 'NodeNext'. - - --!!! error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. - !!! error TS5109: Option 'moduleResolution' must be set to 'NodeNext' (or left unspecified) when option 'module' is set to 'NodeNext'. - ==== a.ts (0 errors) ==== - declare var dec: any, __decorate: any; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js.diff index 3a741386c0..9c16969e58 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js.diff +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js.diff @@ -1,27 +1,25 @@ --- old.emitHelpersWithLocalCollisions(module=nodenext).js +++ new.emitHelpersWithLocalCollisions(module=nodenext).js -@@= skipped -9, +9 lines =@@ - +@@= skipped -10, +10 lines =@@ //// [a.js] + "use strict"; -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; -let A = class A { -}; --A = __decorate([ -- dec --], A); --export { A }; -+"use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); -+exports.A = void 0; +@dec +class A { +} -+exports.A = A; + exports.A = A; +-exports.A = A = __decorate([ +- dec +-], A); const o = { a: 1 }; const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).errors.txt.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).errors.txt.diff new file mode 100644 index 0000000000..5dd684f6ff --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).errors.txt.diff @@ -0,0 +1,16 @@ +--- old.emitHelpersWithLocalCollisions(module=none).errors.txt ++++ new.emitHelpersWithLocalCollisions(module=none).errors.txt +@@= skipped -0, +0 lines =@@ +-error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +- +- +-!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +-==== a.ts (0 errors) ==== +- declare var dec: any, __decorate: any; +- @dec export class A { +- } +- +- const o = { a: 1 }; +- const y = { ...o }; +- ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emptyModuleName.js b/testdata/baselines/reference/submodule/compiler/emptyModuleName.js index 24b2650b26..2646166827 100644 --- a/testdata/baselines/reference/submodule/compiler/emptyModuleName.js +++ b/testdata/baselines/reference/submodule/compiler/emptyModuleName.js @@ -7,7 +7,40 @@ class B extends A { //// [emptyModuleName.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const A = require(""); +const A = __importStar(require("")); class B extends A { } diff --git a/testdata/baselines/reference/submodule/compiler/emptyModuleName.js.diff b/testdata/baselines/reference/submodule/compiler/emptyModuleName.js.diff index a390512c39..553ca7bb65 100644 --- a/testdata/baselines/reference/submodule/compiler/emptyModuleName.js.diff +++ b/testdata/baselines/reference/submodule/compiler/emptyModuleName.js.diff @@ -1,10 +1,10 @@ --- old.emptyModuleName.js +++ new.emptyModuleName.js -@@= skipped -7, +7 lines =@@ - //// [emptyModuleName.js] - "use strict"; +@@= skipped -40, +40 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var A = require(""); -+const A = require(""); +-var A = __importStar(require("")); ++const A = __importStar(require("")); class B extends A { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt.diff deleted file mode 100644 index bcfc083cb7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt -+++ new.errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt -@@= skipped -0, +0 lines =@@ --errorForBareSpecifierWithImplicitModuleResolutionNone.ts(3,23): error TS2792: Cannot find module 'non-existent-module'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+errorForBareSpecifierWithImplicitModuleResolutionNone.ts(3,23): error TS2307: Cannot find module 'non-existent-module' or its corresponding type declarations. - - - ==== errorForBareSpecifierWithImplicitModuleResolutionNone.ts (1 errors) ==== -@@= skipped -5, +5 lines =@@ - - import { thing } from "non-existent-module"; - ~~~~~~~~~~~~~~~~~~~~~ --!!! error TS2792: Cannot find module 'non-existent-module'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'non-existent-module' or its corresponding type declarations. - thing() - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.js b/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.js index 1d8dc551be..88b1a4542d 100644 --- a/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.js +++ b/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.js @@ -8,6 +8,39 @@ import("./a"); //// [a.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); exports.x = void 0; -Promise.resolve().then(() => require("./a")); +Promise.resolve().then(() => __importStar(require("./a"))); module.exports = x; diff --git a/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.js.diff b/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.js.diff index 9707ea8dde..b96c5d6c30 100644 --- a/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.js.diff +++ b/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.js.diff @@ -1,10 +1,10 @@ --- old.errorForConflictingExportEqualsValue.js +++ new.errorForConflictingExportEqualsValue.js -@@= skipped -8, +8 lines =@@ - //// [a.js] - "use strict"; +@@= skipped -41, +41 lines =@@ + }; + })(); exports.x = void 0; --Promise.resolve().then(function () { return require("./a"); }); +-Promise.resolve().then(function () { return __importStar(require("./a")); }); -module.exports = exports.x; -+Promise.resolve().then(() => require("./a")); ++Promise.resolve().then(() => __importStar(require("./a"))); +module.exports = x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.js b/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.js index a2cd84bc39..42797cfd18 100644 --- a/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.js +++ b/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.js @@ -8,7 +8,7 @@ export async function foo() { async function foo() { } -//// [tslib.d.ts] +//// [index.d.ts] export declare function __extends(d: Function, b: Function): void; export declare function __assign(t: any, ...sources: any[]): any; export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; diff --git a/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.symbols b/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.symbols index 0ae0e1aa6f..5781f210fb 100644 --- a/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.symbols +++ b/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.symbols @@ -10,51 +10,51 @@ async function foo() { >foo : Symbol(foo, Decl(script.ts, 0, 0)) } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; ->__extends : Symbol(__extends, Decl(tslib.d.ts, 0, 0)) ->d : Symbol(d, Decl(tslib.d.ts, 0, 34)) +>__extends : Symbol(__extends, Decl(index.d.ts, 0, 0)) +>d : Symbol(d, Decl(index.d.ts, 0, 34)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->b : Symbol(b, Decl(tslib.d.ts, 0, 46)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __assign(t: any, ...sources: any[]): any; ->__assign : Symbol(__assign, Decl(tslib.d.ts, 0, 66)) ->t : Symbol(t, Decl(tslib.d.ts, 1, 33)) ->sources : Symbol(sources, Decl(tslib.d.ts, 1, 40)) +>__assign : Symbol(__assign, Decl(index.d.ts, 0, 66)) +>t : Symbol(t, Decl(index.d.ts, 1, 33)) +>sources : Symbol(sources, Decl(index.d.ts, 1, 40)) export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; ->__decorate : Symbol(__decorate, Decl(tslib.d.ts, 1, 65)) ->decorators : Symbol(decorators, Decl(tslib.d.ts, 2, 35)) +>__decorate : Symbol(__decorate, Decl(index.d.ts, 1, 65)) +>decorators : Symbol(decorators, Decl(index.d.ts, 2, 35)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->target : Symbol(target, Decl(tslib.d.ts, 2, 58)) ->key : Symbol(key, Decl(tslib.d.ts, 2, 71)) ->desc : Symbol(desc, Decl(tslib.d.ts, 2, 94)) +>target : Symbol(target, Decl(index.d.ts, 2, 58)) +>key : Symbol(key, Decl(index.d.ts, 2, 71)) +>desc : Symbol(desc, Decl(index.d.ts, 2, 94)) export declare function __param(paramIndex: number, decorator: Function): Function; ->__param : Symbol(__param, Decl(tslib.d.ts, 2, 112)) ->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, 3, 32)) ->decorator : Symbol(decorator, Decl(tslib.d.ts, 3, 51)) +>__param : Symbol(__param, Decl(index.d.ts, 2, 112)) +>paramIndex : Symbol(paramIndex, Decl(index.d.ts, 3, 32)) +>decorator : Symbol(decorator, Decl(index.d.ts, 3, 51)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __metadata(metadataKey: any, metadataValue: any): Function; ->__metadata : Symbol(__metadata, Decl(tslib.d.ts, 3, 83)) ->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, 4, 35)) ->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, 4, 52)) +>__metadata : Symbol(__metadata, Decl(index.d.ts, 3, 83)) +>metadataKey : Symbol(metadataKey, Decl(index.d.ts, 4, 35)) +>metadataValue : Symbol(metadataValue, Decl(index.d.ts, 4, 52)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; ->__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, 4, 83)) ->thisArg : Symbol(thisArg, Decl(tslib.d.ts, 5, 34)) ->_arguments : Symbol(_arguments, Decl(tslib.d.ts, 5, 47)) ->P : Symbol(P, Decl(tslib.d.ts, 5, 64)) +>__awaiter : Symbol(__awaiter, Decl(index.d.ts, 4, 83)) +>thisArg : Symbol(thisArg, Decl(index.d.ts, 5, 34)) +>_arguments : Symbol(_arguments, Decl(index.d.ts, 5, 47)) +>P : Symbol(P, Decl(index.d.ts, 5, 64)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->generator : Symbol(generator, Decl(tslib.d.ts, 5, 77)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __generator(body: Function): any; ->__generator : Symbol(__generator, Decl(tslib.d.ts, 5, 104)) ->body : Symbol(body, Decl(tslib.d.ts, 6, 36)) +>__generator : Symbol(__generator, Decl(index.d.ts, 5, 104)) +>body : Symbol(body, Decl(index.d.ts, 6, 36)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) diff --git a/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.symbols.diff b/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.symbols.diff deleted file mode 100644 index 9ae0085b4a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.symbols.diff +++ /dev/null @@ -1,75 +0,0 @@ ---- old.es5-importHelpersAsyncFunctions.symbols -+++ new.es5-importHelpersAsyncFunctions.symbols -@@= skipped -11, +11 lines =@@ - - === tslib.d.ts === - export declare function __extends(d: Function, b: Function): void; -->__extends : Symbol(__extends, Decl(tslib.d.ts, --, --)) -->d : Symbol(d, Decl(tslib.d.ts, --, --)) -+>__extends : Symbol(__extends, Decl(tslib.d.ts, 0, 0)) -+>d : Symbol(d, Decl(tslib.d.ts, 0, 34)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->b : Symbol(b, Decl(tslib.d.ts, --, --)) -+>b : Symbol(b, Decl(tslib.d.ts, 0, 46)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __assign(t: any, ...sources: any[]): any; -->__assign : Symbol(__assign, Decl(tslib.d.ts, --, --)) -->t : Symbol(t, Decl(tslib.d.ts, --, --)) -->sources : Symbol(sources, Decl(tslib.d.ts, --, --)) -+>__assign : Symbol(__assign, Decl(tslib.d.ts, 0, 66)) -+>t : Symbol(t, Decl(tslib.d.ts, 1, 33)) -+>sources : Symbol(sources, Decl(tslib.d.ts, 1, 40)) - - export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -->__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --)) -->decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) -+>__decorate : Symbol(__decorate, Decl(tslib.d.ts, 1, 65)) -+>decorators : Symbol(decorators, Decl(tslib.d.ts, 2, 35)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->target : Symbol(target, Decl(tslib.d.ts, --, --)) -->key : Symbol(key, Decl(tslib.d.ts, --, --)) -->desc : Symbol(desc, Decl(tslib.d.ts, --, --)) -+>target : Symbol(target, Decl(tslib.d.ts, 2, 58)) -+>key : Symbol(key, Decl(tslib.d.ts, 2, 71)) -+>desc : Symbol(desc, Decl(tslib.d.ts, 2, 94)) - - export declare function __param(paramIndex: number, decorator: Function): Function; -->__param : Symbol(__param, Decl(tslib.d.ts, --, --)) -->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) -->decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) -+>__param : Symbol(__param, Decl(tslib.d.ts, 2, 112)) -+>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, 3, 32)) -+>decorator : Symbol(decorator, Decl(tslib.d.ts, 3, 51)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __metadata(metadataKey: any, metadataValue: any): Function; -->__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --)) -->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) -->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) -+>__metadata : Symbol(__metadata, Decl(tslib.d.ts, 3, 83)) -+>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, 4, 35)) -+>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, 4, 52)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -->__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --)) -->thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) -->_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --)) -->P : Symbol(P, Decl(tslib.d.ts, --, --)) -+>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, 4, 83)) -+>thisArg : Symbol(thisArg, Decl(tslib.d.ts, 5, 34)) -+>_arguments : Symbol(_arguments, Decl(tslib.d.ts, 5, 47)) -+>P : Symbol(P, Decl(tslib.d.ts, 5, 64)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->generator : Symbol(generator, Decl(tslib.d.ts, --, --)) -+>generator : Symbol(generator, Decl(tslib.d.ts, 5, 77)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __generator(body: Function): any; -->__generator : Symbol(__generator, Decl(tslib.d.ts, --, --)) -->body : Symbol(body, Decl(tslib.d.ts, --, --)) -+>__generator : Symbol(__generator, Decl(tslib.d.ts, 5, 104)) -+>body : Symbol(body, Decl(tslib.d.ts, 6, 36)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) diff --git a/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.types b/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.types index e7d5efedac..91286a7c8e 100644 --- a/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.types +++ b/testdata/baselines/reference/submodule/compiler/es5-importHelpersAsyncFunctions.types @@ -10,7 +10,7 @@ async function foo() { >foo : () => Promise } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; >__extends : (d: Function, b: Function) => void >d : Function diff --git a/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.errors.txt b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.errors.txt new file mode 100644 index 0000000000..8b3f425d72 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.errors.txt @@ -0,0 +1,74 @@ +es5ModuleInternalNamedImports.ts(22,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(23,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(24,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(25,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(26,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(27,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(28,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(29,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(30,25): error TS1147: Import declarations in a namespace cannot reference a module. +es5ModuleInternalNamedImports.ts(31,20): error TS1147: Import declarations in a namespace cannot reference a module. +es5ModuleInternalNamedImports.ts(32,32): error TS1147: Import declarations in a namespace cannot reference a module. +es5ModuleInternalNamedImports.ts(34,16): error TS2307: Cannot find module 'M3' or its corresponding type declarations. + + +==== es5ModuleInternalNamedImports.ts (12 errors) ==== + export module M { + // variable + export var M_V = 0; + // interface + export interface M_I { } + //calss + export class M_C { } + // instantiated module + export module M_M { var x; } + // uninstantiated module + export module M_MU { } + // function + export function M_F() { } + // enum + export enum M_E { } + // type + export type M_T = number; + // alias + export import M_A = M_M; + + // Reexports + export {M_V as v}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_I as i}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_C as c}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_M as m}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_MU as mu}; + ~~~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_F as f}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_E as e}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_A as a}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + import * as M2 from "M2"; + ~~~~ +!!! error TS1147: Import declarations in a namespace cannot reference a module. + import M4 from "M4"; + ~~~~ +!!! error TS1147: Import declarations in a namespace cannot reference a module. + export import M5 = require("M5"); + ~~~~ +!!! error TS1147: Import declarations in a namespace cannot reference a module. + } + import M3 from "M3"; + ~~~~ +!!! error TS2307: Cannot find module 'M3' or its corresponding type declarations. + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.js b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.js new file mode 100644 index 0000000000..92b3d28ae6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.js @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/es5ModuleInternalNamedImports.ts] //// + +//// [es5ModuleInternalNamedImports.ts] +export module M { + // variable + export var M_V = 0; + // interface + export interface M_I { } + //calss + export class M_C { } + // instantiated module + export module M_M { var x; } + // uninstantiated module + export module M_MU { } + // function + export function M_F() { } + // enum + export enum M_E { } + // type + export type M_T = number; + // alias + export import M_A = M_M; + + // Reexports + export {M_V as v}; + export {M_I as i}; + export {M_C as c}; + export {M_M as m}; + export {M_MU as mu}; + export {M_F as f}; + export {M_E as e}; + export {M_A as a}; + import * as M2 from "M2"; + import M4 from "M4"; + export import M5 = require("M5"); +} +import M3 from "M3"; + + +//// [es5ModuleInternalNamedImports.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.M = void 0; +var M; +(function (M) { + // variable + M.M_V = 0; + //calss + class M_C { + } + M.M_C = M_C; + // instantiated module + let M_M; + (function (M_M) { + var x; + })(M_M = M.M_M || (M.M_M = {})); + // function + function M_F() { } + M.M_F = M_F; + // enum + let M_E; + (function (M_E) { + })(M_E = M.M_E || (M.M_E = {})); + M.M_A = M_M; + // Reexports + export { M_V as v }; + export { M_I as i }; + export { M_C as c }; + export { M_M as m }; + export { M_MU as mu }; + export { M_F as f }; + export { M_E as e }; + export { M_A as a }; + import * as M2 from "M2"; + import M4 from "M4"; + export import M5 = require("M5"); +})(M || (exports.M = M = {})); diff --git a/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.js.diff b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.js.diff new file mode 100644 index 0000000000..714f1c29e8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.js.diff @@ -0,0 +1,21 @@ +--- old.es5ModuleInternalNamedImports.js ++++ new.es5ModuleInternalNamedImports.js +@@= skipped -60, +60 lines =@@ + let M_E; + (function (M_E) { + })(M_E = M.M_E || (M.M_E = {})); +- // alias + M.M_A = M_M; ++ // Reexports ++ export { M_V as v }; ++ export { M_I as i }; ++ export { M_C as c }; ++ export { M_M as m }; ++ export { M_MU as mu }; ++ export { M_F as f }; ++ export { M_E as e }; ++ export { M_A as a }; ++ import * as M2 from "M2"; ++ import M4 from "M4"; ++ export import M5 = require("M5"); + })(M || (exports.M = M = {})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.symbols b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.symbols new file mode 100644 index 0000000000..b8dc3cf4ec --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/es5ModuleInternalNamedImports.ts] //// + +=== es5ModuleInternalNamedImports.ts === +export module M { +>M : Symbol(M, Decl(es5ModuleInternalNamedImports.ts, 0, 0)) + + // variable + export var M_V = 0; +>M_V : Symbol(M_V, Decl(es5ModuleInternalNamedImports.ts, 2, 14)) + + // interface + export interface M_I { } +>M_I : Symbol(M_I, Decl(es5ModuleInternalNamedImports.ts, 2, 23)) + + //calss + export class M_C { } +>M_C : Symbol(M_C, Decl(es5ModuleInternalNamedImports.ts, 4, 28)) + + // instantiated module + export module M_M { var x; } +>M_M : Symbol(M_M, Decl(es5ModuleInternalNamedImports.ts, 6, 24)) +>x : Symbol(x, Decl(es5ModuleInternalNamedImports.ts, 8, 27)) + + // uninstantiated module + export module M_MU { } +>M_MU : Symbol(M_MU, Decl(es5ModuleInternalNamedImports.ts, 8, 32)) + + // function + export function M_F() { } +>M_F : Symbol(M_F, Decl(es5ModuleInternalNamedImports.ts, 10, 26)) + + // enum + export enum M_E { } +>M_E : Symbol(M_E, Decl(es5ModuleInternalNamedImports.ts, 12, 29)) + + // type + export type M_T = number; +>M_T : Symbol(M_T, Decl(es5ModuleInternalNamedImports.ts, 14, 23)) + + // alias + export import M_A = M_M; +>M_A : Symbol(M_A, Decl(es5ModuleInternalNamedImports.ts, 16, 29)) +>M_M : Symbol(M_M, Decl(es5ModuleInternalNamedImports.ts, 6, 24)) + + // Reexports + export {M_V as v}; +>M_V : Symbol(M_V, Decl(es5ModuleInternalNamedImports.ts, 2, 14)) +>v : Symbol(v, Decl(es5ModuleInternalNamedImports.ts, 21, 12)) + + export {M_I as i}; +>M_I : Symbol(M_I, Decl(es5ModuleInternalNamedImports.ts, 2, 23)) +>i : Symbol(i, Decl(es5ModuleInternalNamedImports.ts, 22, 12)) + + export {M_C as c}; +>M_C : Symbol(M_C, Decl(es5ModuleInternalNamedImports.ts, 4, 28)) +>c : Symbol(c, Decl(es5ModuleInternalNamedImports.ts, 23, 12)) + + export {M_M as m}; +>M_M : Symbol(M_M, Decl(es5ModuleInternalNamedImports.ts, 6, 24)) +>m : Symbol(m, Decl(es5ModuleInternalNamedImports.ts, 24, 12)) + + export {M_MU as mu}; +>M_MU : Symbol(M_MU, Decl(es5ModuleInternalNamedImports.ts, 8, 32)) +>mu : Symbol(mu, Decl(es5ModuleInternalNamedImports.ts, 25, 12)) + + export {M_F as f}; +>M_F : Symbol(M_F, Decl(es5ModuleInternalNamedImports.ts, 10, 26)) +>f : Symbol(f, Decl(es5ModuleInternalNamedImports.ts, 26, 12)) + + export {M_E as e}; +>M_E : Symbol(M_E, Decl(es5ModuleInternalNamedImports.ts, 12, 29)) +>e : Symbol(e, Decl(es5ModuleInternalNamedImports.ts, 27, 12)) + + export {M_A as a}; +>M_A : Symbol(M_A, Decl(es5ModuleInternalNamedImports.ts, 16, 29)) +>a : Symbol(a, Decl(es5ModuleInternalNamedImports.ts, 28, 12)) + + import * as M2 from "M2"; +>M2 : Symbol(M2, Decl(es5ModuleInternalNamedImports.ts, 29, 10)) + + import M4 from "M4"; +>M4 : Symbol(M4, Decl(es5ModuleInternalNamedImports.ts, 30, 10)) + + export import M5 = require("M5"); +>M5 : Symbol(M5, Decl(es5ModuleInternalNamedImports.ts, 30, 24)) +} +import M3 from "M3"; +>M3 : Symbol(M3, Decl(es5ModuleInternalNamedImports.ts, 33, 6)) + diff --git a/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.types b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.types new file mode 100644 index 0000000000..9c1b739548 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es5ModuleInternalNamedImports.types @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/es5ModuleInternalNamedImports.ts] //// + +=== es5ModuleInternalNamedImports.ts === +export module M { +>M : typeof M + + // variable + export var M_V = 0; +>M_V : number +>0 : 0 + + // interface + export interface M_I { } + //calss + export class M_C { } +>M_C : M_C + + // instantiated module + export module M_M { var x; } +>M_M : typeof M_M +>x : any + + // uninstantiated module + export module M_MU { } + // function + export function M_F() { } +>M_F : () => void + + // enum + export enum M_E { } +>M_E : M_E + + // type + export type M_T = number; +>M_T : number + + // alias + export import M_A = M_M; +>M_A : typeof M_M +>M_M : typeof M_M + + // Reexports + export {M_V as v}; +>M_V : number +>v : number + + export {M_I as i}; +>M_I : any +>i : any + + export {M_C as c}; +>M_C : typeof M_C +>c : typeof M_C + + export {M_M as m}; +>M_M : typeof M_M +>m : typeof M_M + + export {M_MU as mu}; +>M_MU : any +>mu : any + + export {M_F as f}; +>M_F : () => void +>f : () => void + + export {M_E as e}; +>M_E : typeof M_E +>e : typeof M_E + + export {M_A as a}; +>M_A : typeof M_M +>a : typeof M_M + + import * as M2 from "M2"; +>M2 : any + + import M4 from "M4"; +>M4 : any + + export import M5 = require("M5"); +>M5 : any +} +import M3 from "M3"; +>M3 : any + diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAll.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ExportAll.errors.txt.diff deleted file mode 100644 index f38a770b97..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAll.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.es6ExportAll.errors.txt -+++ new.es6ExportAll.errors.txt -@@= skipped -0, +0 lines =@@ -- -+client.ts(1,15): error TS2307: Cannot find module 'server' or its corresponding type declarations. -+ -+ -+==== server.ts (0 errors) ==== -+ export class c { -+ } -+ export interface i { -+ } -+ export module m { -+ export var x = 10; -+ } -+ export var x = 10; -+ export module uninstantiated { -+ } -+ -+==== client.ts (1 errors) ==== -+ export * from "server"; -+ ~~~~~~~~ -+!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.errors.txt index e592d4375e..4a7c3f7332 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.errors.txt @@ -1,5 +1,4 @@ a.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. -b.ts(1,20): error TS2307: Cannot find module 'a' or its corresponding type declarations. ==== a.ts (1 errors) ==== @@ -8,8 +7,6 @@ b.ts(1,20): error TS2307: Cannot find module 'a' or its corresponding type decla ~~~~~~~~~~~ !!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. -==== b.ts (1 errors) ==== - import * as a from "a"; - ~~~ -!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. +==== b.ts (0 errors) ==== + import * as a from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.errors.txt.diff deleted file mode 100644 index dface1b1ee..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.es6ExportAssignment2.errors.txt -+++ new.es6ExportAssignment2.errors.txt -@@= skipped -0, +0 lines =@@ - a.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. -+b.ts(1,20): error TS2307: Cannot find module 'a' or its corresponding type declarations. - - - ==== a.ts (1 errors) ==== -@@= skipped -6, +7 lines =@@ - ~~~~~~~~~~~ - !!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. - --==== b.ts (0 errors) ==== -+==== b.ts (1 errors) ==== - import * as a from "a"; -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.js b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.js index 3278af118c..85867d23e2 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.js +++ b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.js @@ -5,7 +5,7 @@ var a = 10; export = a; // Error: export = not allowed in ES6 //// [b.ts] -import * as a from "a"; +import * as a from "./a"; //// [a.js] diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.symbols b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.symbols index 6fa64f1a1e..ea19d84a18 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.symbols +++ b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.symbols @@ -8,6 +8,6 @@ export = a; // Error: export = not allowed in ES6 >a : Symbol(a, Decl(a.ts, 0, 3)) === b.ts === -import * as a from "a"; +import * as a from "./a"; >a : Symbol(a, Decl(b.ts, 0, 6)) diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.types b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.types index 1603e2380d..3306dcb6ca 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.types +++ b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.types @@ -9,6 +9,6 @@ export = a; // Error: export = not allowed in ES6 >a : number === b.ts === -import * as a from "a"; ->a : any +import * as a from "./a"; +>a : number diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.types.diff b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.types.diff deleted file mode 100644 index 017ee3d515..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment2.types.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.es6ExportAssignment2.types -+++ new.es6ExportAssignment2.types -@@= skipped -9, +9 lines =@@ - - === b.ts === - import * as a from "a"; -->a : number -+>a : any diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment3.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment3.errors.txt.diff deleted file mode 100644 index 84ef32a805..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment3.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.es6ExportAssignment3.errors.txt -+++ new.es6ExportAssignment3.errors.txt -@@= skipped -0, +0 lines =@@ -- -+b.ts(1,20): error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ -+ -+==== a.d.ts (0 errors) ==== -+ declare var a: number; -+ export = a; // OK, in ambient context -+ -+==== b.ts (1 errors) ==== -+ import * as a from "a"; -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment3.types.diff b/testdata/baselines/reference/submodule/compiler/es6ExportAssignment3.types.diff deleted file mode 100644 index d49967ddcc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportAssignment3.types.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.es6ExportAssignment3.types -+++ new.es6ExportAssignment3.types -@@= skipped -8, +8 lines =@@ - - === b.ts === - import * as a from "a"; -->a : number -+>a : any diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.errors.txt deleted file mode 100644 index 2010b48604..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -client.ts(1,19): error TS2307: Cannot find module 'server' or its corresponding type declarations. -client.ts(2,25): error TS2307: Cannot find module 'server' or its corresponding type declarations. -client.ts(3,44): error TS2307: Cannot find module 'server' or its corresponding type declarations. -client.ts(4,32): error TS2307: Cannot find module 'server' or its corresponding type declarations. -client.ts(5,19): error TS2307: Cannot find module 'server' or its corresponding type declarations. - - -==== server.ts (0 errors) ==== - export class c { - } - export interface i { - } - export module m { - export var x = 10; - } - export var x = 10; - export module uninstantiated { - } - -==== client.ts (5 errors) ==== - export { c } from "server"; - ~~~~~~~~ -!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. - export { c as c2 } from "server"; - ~~~~~~~~ -!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. - export { i, m as instantiatedModule } from "server"; - ~~~~~~~~ -!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. - export { uninstantiated } from "server"; - ~~~~~~~~ -!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. - export { x } from "server"; - ~~~~~~~~ -!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.errors.txt.diff deleted file mode 100644 index c50824c998..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.errors.txt.diff +++ /dev/null @@ -1,39 +0,0 @@ ---- old.es6ExportClauseWithoutModuleSpecifier.errors.txt -+++ new.es6ExportClauseWithoutModuleSpecifier.errors.txt -@@= skipped -0, +0 lines =@@ -- -+client.ts(1,19): error TS2307: Cannot find module 'server' or its corresponding type declarations. -+client.ts(2,25): error TS2307: Cannot find module 'server' or its corresponding type declarations. -+client.ts(3,44): error TS2307: Cannot find module 'server' or its corresponding type declarations. -+client.ts(4,32): error TS2307: Cannot find module 'server' or its corresponding type declarations. -+client.ts(5,19): error TS2307: Cannot find module 'server' or its corresponding type declarations. -+ -+ -+==== server.ts (0 errors) ==== -+ export class c { -+ } -+ export interface i { -+ } -+ export module m { -+ export var x = 10; -+ } -+ export var x = 10; -+ export module uninstantiated { -+ } -+ -+==== client.ts (5 errors) ==== -+ export { c } from "server"; -+ ~~~~~~~~ -+!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. -+ export { c as c2 } from "server"; -+ ~~~~~~~~ -+!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. -+ export { i, m as instantiatedModule } from "server"; -+ ~~~~~~~~ -+!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. -+ export { uninstantiated } from "server"; -+ ~~~~~~~~ -+!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. -+ export { x } from "server"; -+ ~~~~~~~~ -+!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.js b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.js index cb5bd291bf..bf84f48495 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.js +++ b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.js @@ -13,11 +13,11 @@ export module uninstantiated { } //// [client.ts] -export { c } from "server"; -export { c as c2 } from "server"; -export { i, m as instantiatedModule } from "server"; -export { uninstantiated } from "server"; -export { x } from "server"; +export { c } from "./server"; +export { c as c2 } from "./server"; +export { i, m as instantiatedModule } from "./server"; +export { uninstantiated } from "./server"; +export { x } from "./server"; //// [server.js] export class c { @@ -29,11 +29,10 @@ var m; })(m || (m = {})); export var x = 10; //// [client.js] -export { c } from "server"; -export { c as c2 } from "server"; -export { i, m as instantiatedModule } from "server"; -export { uninstantiated } from "server"; -export { x } from "server"; +export { c } from "./server"; +export { c as c2 } from "./server"; +export { m as instantiatedModule } from "./server"; +export { x } from "./server"; //// [server.d.ts] @@ -48,8 +47,8 @@ export declare var x: number; export declare namespace uninstantiated { } //// [client.d.ts] -export { c } from "server"; -export { c as c2 } from "server"; -export { i, m as instantiatedModule } from "server"; -export { uninstantiated } from "server"; -export { x } from "server"; +export { c } from "./server"; +export { c as c2 } from "./server"; +export { i, m as instantiatedModule } from "./server"; +export { uninstantiated } from "./server"; +export { x } from "./server"; diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.js.diff b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.js.diff index dbba79c2d7..a3df31b6ba 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.js.diff @@ -9,13 +9,4 @@ +var m; (function (m) { m.x = 10; - })(m || (m = {})); -@@= skipped -8, +9 lines =@@ - //// [client.js] - export { c } from "server"; - export { c as c2 } from "server"; --export { m as instantiatedModule } from "server"; -+export { i, m as instantiatedModule } from "server"; -+export { uninstantiated } from "server"; - export { x } from "server"; - + })(m || (m = {})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.symbols b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.symbols index 61e90619f5..9edf7a3487 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.symbols +++ b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.symbols @@ -21,19 +21,21 @@ export module uninstantiated { } === client.ts === -export { c } from "server"; +export { c } from "./server"; >c : Symbol(c, Decl(client.ts, 0, 8)) -export { c as c2 } from "server"; +export { c as c2 } from "./server"; +>c : Symbol(c, Decl(server.ts, 0, 0)) >c2 : Symbol(c2, Decl(client.ts, 1, 8)) -export { i, m as instantiatedModule } from "server"; +export { i, m as instantiatedModule } from "./server"; >i : Symbol(i, Decl(client.ts, 2, 8)) +>m : Symbol(m, Decl(server.ts, 3, 1)) >instantiatedModule : Symbol(instantiatedModule, Decl(client.ts, 2, 11)) -export { uninstantiated } from "server"; +export { uninstantiated } from "./server"; >uninstantiated : Symbol(uninstantiated, Decl(client.ts, 3, 8)) -export { x } from "server"; +export { x } from "./server"; >x : Symbol(x, Decl(client.ts, 4, 8)) diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.symbols.diff b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.symbols.diff deleted file mode 100644 index 4582b2e773..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.es6ExportClauseWithoutModuleSpecifier.symbols -+++ new.es6ExportClauseWithoutModuleSpecifier.symbols -@@= skipped -24, +24 lines =@@ - >c : Symbol(c, Decl(client.ts, 0, 8)) - - export { c as c2 } from "server"; -->c : Symbol(c, Decl(server.ts, 0, 0)) - >c2 : Symbol(c2, Decl(client.ts, 1, 8)) - - export { i, m as instantiatedModule } from "server"; - >i : Symbol(i, Decl(client.ts, 2, 8)) -->m : Symbol(m, Decl(server.ts, 3, 1)) - >instantiatedModule : Symbol(instantiatedModule, Decl(client.ts, 2, 11)) - - export { uninstantiated } from "server"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.types b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.types index a218c4c71c..05368b3c18 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.types +++ b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.types @@ -21,21 +21,21 @@ export module uninstantiated { } === client.ts === -export { c } from "server"; ->c : any +export { c } from "./server"; +>c : typeof import("server").c -export { c as c2 } from "server"; ->c : any ->c2 : any +export { c as c2 } from "./server"; +>c : typeof import("server").c +>c2 : typeof import("server").c -export { i, m as instantiatedModule } from "server"; +export { i, m as instantiatedModule } from "./server"; >i : any ->m : any ->instantiatedModule : any +>m : typeof import("server").m +>instantiatedModule : typeof import("server").m -export { uninstantiated } from "server"; +export { uninstantiated } from "./server"; >uninstantiated : any -export { x } from "server"; ->x : any +export { x } from "./server"; +>x : number diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.types.diff b/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.types.diff deleted file mode 100644 index 67fe5dd7d1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ExportClauseWithoutModuleSpecifier.types.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.es6ExportClauseWithoutModuleSpecifier.types -+++ new.es6ExportClauseWithoutModuleSpecifier.types -@@= skipped -21, +21 lines =@@ - - === client.ts === - export { c } from "server"; -->c : typeof import("server").c -+>c : any - - export { c as c2 } from "server"; -->c : typeof import("server").c -->c2 : typeof import("server").c -+>c : any -+>c2 : any - - export { i, m as instantiatedModule } from "server"; - >i : any -->m : typeof import("server").m -->instantiatedModule : typeof import("server").m -+>m : any -+>instantiatedModule : any - - export { uninstantiated } from "server"; - >uninstantiated : any - - export { x } from "server"; -->x : number -+>x : any diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js index 30831ecb96..d5fc94db32 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js +++ b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js @@ -220,6 +220,28 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi if (k2 === undefined) k2 = k; o[k2] = m[k]; })); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; @@ -244,15 +266,15 @@ z7.a; z8.a; z9.a; z0.a; -const y2 = require("variable"); -const y3 = require("interface-variable"); -const y4 = require("module"); -const y5 = require("interface-module"); -const y6 = require("variable-module"); -const y7 = require("function"); -const y8 = require("function-module"); -const y9 = require("class"); -const y0 = require("class-module"); +const y2 = __importStar(require("variable")); +const y3 = __importStar(require("interface-variable")); +const y4 = __importStar(require("module")); +const y5 = __importStar(require("interface-module")); +const y6 = __importStar(require("variable-module")); +const y7 = __importStar(require("function")); +const y8 = __importStar(require("function-module")); +const y9 = __importStar(require("class")); +const y0 = __importStar(require("class-module")); y1.a; y2.a; y3.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js.diff b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js.diff index 032ba1bf0d..a723facb67 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js.diff @@ -1,6 +1,6 @@ --- old.es6ExportEqualsInterop.js +++ new.es6ExportEqualsInterop.js -@@= skipped -224, +224 lines =@@ +@@= skipped -246, +246 lines =@@ }; Object.defineProperty(exports, "__esModule", { value: true }); exports.a0 = exports.a9 = exports.a8 = exports.a7 = exports.a6 = exports.a5 = exports.a4 = exports.a3 = exports.a2 = exports.a1 = void 0; @@ -29,24 +29,24 @@ z8.a; z9.a; z0.a; --var y2 = require("variable"); --var y3 = require("interface-variable"); --var y4 = require("module"); --var y5 = require("interface-module"); --var y6 = require("variable-module"); --var y7 = require("function"); --var y8 = require("function-module"); --var y9 = require("class"); --var y0 = require("class-module"); -+const y2 = require("variable"); -+const y3 = require("interface-variable"); -+const y4 = require("module"); -+const y5 = require("interface-module"); -+const y6 = require("variable-module"); -+const y7 = require("function"); -+const y8 = require("function-module"); -+const y9 = require("class"); -+const y0 = require("class-module"); +-var y2 = __importStar(require("variable")); +-var y3 = __importStar(require("interface-variable")); +-var y4 = __importStar(require("module")); +-var y5 = __importStar(require("interface-module")); +-var y6 = __importStar(require("variable-module")); +-var y7 = __importStar(require("function")); +-var y8 = __importStar(require("function-module")); +-var y9 = __importStar(require("class")); +-var y0 = __importStar(require("class-module")); ++const y2 = __importStar(require("variable")); ++const y3 = __importStar(require("interface-variable")); ++const y4 = __importStar(require("module")); ++const y5 = __importStar(require("interface-module")); ++const y6 = __importStar(require("variable-module")); ++const y7 = __importStar(require("function")); ++const y8 = __importStar(require("function-module")); ++const y9 = __importStar(require("class")); ++const y0 = __importStar(require("class-module")); y1.a; y2.a; y3.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.types b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.types index 6c7cac3c5a..96f4e58936 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.types +++ b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.types @@ -138,13 +138,13 @@ import * as y7 from "function"; >y7 : () => any import * as y8 from "function-module"; ->y8 : typeof z8 +>y8 : typeof y8 import * as y9 from "class"; >y9 : typeof z9 import * as y0 from "class-module"; ->y0 : typeof z0 +>y0 : typeof y0 y1.a; >y1.a : any @@ -183,7 +183,7 @@ y7.a; y8.a; >y8.a : number ->y8 : typeof z8 +>y8 : typeof y8 >a : number y9.a; @@ -193,7 +193,7 @@ y9.a; y0.a; >y0.a : number ->y0 : typeof z0 +>y0 : typeof y0 >a : number // named import diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.errors.txt deleted file mode 100644 index 6512953174..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -es6ImportDefaultBinding_1.ts(1,28): error TS2307: Cannot find module 'es6ImportDefaultBinding_0' or its corresponding type declarations. -es6ImportDefaultBinding_1.ts(3,29): error TS2307: Cannot find module 'es6ImportDefaultBinding_0' or its corresponding type declarations. - - -==== es6ImportDefaultBinding_0.ts (0 errors) ==== - var a = 10; - export default a; - -==== es6ImportDefaultBinding_1.ts (2 errors) ==== - import defaultBinding from "es6ImportDefaultBinding_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBinding_0' or its corresponding type declarations. - var x = defaultBinding; - import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBinding_0' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.errors.txt.diff deleted file mode 100644 index cd37e9e408..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.es6ImportDefaultBinding.errors.txt -+++ new.es6ImportDefaultBinding.errors.txt -@@= skipped -0, +0 lines =@@ -- -+es6ImportDefaultBinding_1.ts(1,28): error TS2307: Cannot find module 'es6ImportDefaultBinding_0' or its corresponding type declarations. -+es6ImportDefaultBinding_1.ts(3,29): error TS2307: Cannot find module 'es6ImportDefaultBinding_0' or its corresponding type declarations. -+ -+ -+==== es6ImportDefaultBinding_0.ts (0 errors) ==== -+ var a = 10; -+ export default a; -+ -+==== es6ImportDefaultBinding_1.ts (2 errors) ==== -+ import defaultBinding from "es6ImportDefaultBinding_0"; -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBinding_0' or its corresponding type declarations. -+ var x = defaultBinding; -+ import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBinding_0' or its corresponding type declarations. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.js index bdc9b4b846..4dc135ea48 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.js @@ -5,16 +5,16 @@ var a = 10; export default a; //// [es6ImportDefaultBinding_1.ts] -import defaultBinding from "es6ImportDefaultBinding_0"; +import defaultBinding from "./es6ImportDefaultBinding_0"; var x = defaultBinding; -import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used +import defaultBinding2 from "./es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used //// [es6ImportDefaultBinding_0.js] var a = 10; export default a; //// [es6ImportDefaultBinding_1.js] -import defaultBinding from "es6ImportDefaultBinding_0"; +import defaultBinding from "./es6ImportDefaultBinding_0"; var x = defaultBinding; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.symbols b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.symbols index a5b73019ad..1b8360a6dd 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.symbols +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.symbols @@ -8,13 +8,13 @@ export default a; >a : Symbol(a, Decl(es6ImportDefaultBinding_0.ts, 0, 3)) === es6ImportDefaultBinding_1.ts === -import defaultBinding from "es6ImportDefaultBinding_0"; +import defaultBinding from "./es6ImportDefaultBinding_0"; >defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBinding_1.ts, 0, 6)) var x = defaultBinding; >x : Symbol(x, Decl(es6ImportDefaultBinding_1.ts, 1, 3)) >defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBinding_1.ts, 0, 6)) -import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used +import defaultBinding2 from "./es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used >defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBinding_1.ts, 2, 6)) diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.types b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.types index 38c14132c6..a92b38a459 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.types +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.types @@ -9,13 +9,13 @@ export default a; >a : number === es6ImportDefaultBinding_1.ts === -import defaultBinding from "es6ImportDefaultBinding_0"; ->defaultBinding : any +import defaultBinding from "./es6ImportDefaultBinding_0"; +>defaultBinding : number var x = defaultBinding; ->x : any ->defaultBinding : any +>x : number +>defaultBinding : number -import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used ->defaultBinding2 : any +import defaultBinding2 from "./es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used +>defaultBinding2 : number diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.types.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.types.diff deleted file mode 100644 index 9bcbc05cae..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBinding.types.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.es6ImportDefaultBinding.types -+++ new.es6ImportDefaultBinding.types -@@= skipped -9, +9 lines =@@ - - === es6ImportDefaultBinding_1.ts === - import defaultBinding from "es6ImportDefaultBinding_0"; -->defaultBinding : number -+>defaultBinding : any - - var x = defaultBinding; -->x : number -->defaultBinding : number -+>x : any -+>defaultBinding : any - - import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used -->defaultBinding2 : number -+>defaultBinding2 : any diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingDts.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingDts.js index ec87f8e3a4..4b8a2bd012 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingDts.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingDts.js @@ -18,9 +18,12 @@ class c { exports.default = c; //// [client.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; -const server_1 = require("./server"); +const server_1 = __importDefault(require("./server")); exports.x = new server_1.default(); diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingDts.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingDts.js.diff index e0d627696b..e83572726b 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingDts.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingDts.js.diff @@ -1,10 +1,10 @@ --- old.es6ImportDefaultBindingDts.js +++ new.es6ImportDefaultBindingDts.js -@@= skipped -19, +19 lines =@@ - "use strict"; +@@= skipped -22, +22 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; --var server_1 = require("./server"); -+const server_1 = require("./server"); +-var server_1 = __importDefault(require("./server")); ++const server_1 = __importDefault(require("./server")); exports.x = new server_1.default(); diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt index f2a172092a..a581c4deac 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt @@ -1,9 +1,9 @@ -es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(1,34): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(3,36): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(5,41): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,44): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(9,43): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,38): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. +es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(3,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(5,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'. Did you mean to use 'import x from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,30): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(9,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'. Did you mean to use 'import x from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'm'. Did you mean to use 'import m from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? ==== es6ImportDefaultBindingFollowedWithNamedImport1_0.ts (0 errors) ==== @@ -11,28 +11,28 @@ es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,38): error TS2307: Canno export default a; ==== es6ImportDefaultBindingFollowedWithNamedImport1_1.ts (6 errors) ==== - import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. + import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1: number = defaultBinding1; - import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. + import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? var x1: number = defaultBinding2; - import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. + import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? var x1: number = defaultBinding3; - import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. + import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'. Did you mean to use 'import x from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? var x1: number = defaultBinding4; - import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. + import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'. Did you mean to use 'import x from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? var x1: number = defaultBinding5; - import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. + import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'm'. Did you mean to use 'import m from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? var x1: number = defaultBinding6; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt.diff deleted file mode 100644 index 714db5ba86..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt.diff +++ /dev/null @@ -1,58 +0,0 @@ ---- old.es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt -+++ new.es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt -@@= skipped -0, +0 lines =@@ --es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(3,27): error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? --es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(5,27): error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? --es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,27): error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'. Did you mean to use 'import x from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? --es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,30): error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? --es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(9,27): error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'. Did you mean to use 'import x from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? --es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,27): error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'm'. Did you mean to use 'import m from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? -+es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(1,34): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -+es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(3,36): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -+es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(5,41): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -+es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,44): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -+es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(9,43): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. -+es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,38): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. - - - ==== es6ImportDefaultBindingFollowedWithNamedImport1_0.ts (0 errors) ==== -@@= skipped -11, +11 lines =@@ - - ==== es6ImportDefaultBindingFollowedWithNamedImport1_1.ts (6 errors) ==== - import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. - var x1: number = defaultBinding1; - import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -- ~ --!!! error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. - var x1: number = defaultBinding2; - import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -- ~ --!!! error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. - var x1: number = defaultBinding3; - import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -- ~ --!!! error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'. Did you mean to use 'import x from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? -- ~ --!!! error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'. Did you mean to use 'import a from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. - var x1: number = defaultBinding4; - import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -- ~ --!!! error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'. Did you mean to use 'import x from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. - var x1: number = defaultBinding5; - import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -- ~ --!!! error TS2614: Module '"es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'm'. Did you mean to use 'import m from "es6ImportDefaultBindingFollowedWithNamedImport1_0"' instead? -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamedImport1_0' or its corresponding type declarations. - var x1: number = defaultBinding6; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.js index 31194c308b..985f695b6c 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.js @@ -5,17 +5,17 @@ var a = 10; export default a; //// [es6ImportDefaultBindingFollowedWithNamedImport1_1.ts] -import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1: number = defaultBinding1; -import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1: number = defaultBinding2; -import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1: number = defaultBinding3; -import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1: number = defaultBinding4; -import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1: number = defaultBinding5; -import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1: number = defaultBinding6; @@ -23,17 +23,17 @@ var x1: number = defaultBinding6; var a = 10; export default a; //// [es6ImportDefaultBindingFollowedWithNamedImport1_1.js] -import defaultBinding1 from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding1 from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1 = defaultBinding1; -import defaultBinding2 from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding2 from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1 = defaultBinding2; -import defaultBinding3 from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding3 from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1 = defaultBinding3; -import defaultBinding4 from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding4 from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1 = defaultBinding4; -import defaultBinding5 from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding5 from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1 = defaultBinding5; -import defaultBinding6 from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding6 from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; var x1 = defaultBinding6; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.symbols b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.symbols index efe22435de..db2926e102 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.symbols +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.symbols @@ -8,14 +8,14 @@ export default a; >a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_0.ts, 0, 3)) === es6ImportDefaultBindingFollowedWithNamedImport1_1.ts === -import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; >defaultBinding1 : Symbol(defaultBinding1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 0, 6)) var x1: number = defaultBinding1; >x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 9, 3) ... and 1 more) >defaultBinding1 : Symbol(defaultBinding1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 0, 6)) -import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; >defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 2, 6)) >a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 2, 25)) @@ -23,7 +23,7 @@ var x1: number = defaultBinding2; >x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 9, 3) ... and 1 more) >defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 2, 6)) -import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; >defaultBinding3 : Symbol(defaultBinding3, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 4, 6)) >b : Symbol(b, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 4, 25)) @@ -31,7 +31,7 @@ var x1: number = defaultBinding3; >x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 9, 3) ... and 1 more) >defaultBinding3 : Symbol(defaultBinding3, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 4, 6)) -import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; >defaultBinding4 : Symbol(defaultBinding4, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 6, 6)) >x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 6, 25)) >y : Symbol(y, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 6, 28)) @@ -40,7 +40,7 @@ var x1: number = defaultBinding4; >x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 9, 3) ... and 1 more) >defaultBinding4 : Symbol(defaultBinding4, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 6, 6)) -import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; >defaultBinding5 : Symbol(defaultBinding5, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 8, 6)) >z : Symbol(z, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 8, 25)) @@ -48,7 +48,7 @@ var x1: number = defaultBinding5; >x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 9, 3) ... and 1 more) >defaultBinding5 : Symbol(defaultBinding5, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 8, 6)) -import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; >defaultBinding6 : Symbol(defaultBinding6, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 10, 6)) >m : Symbol(m, Decl(es6ImportDefaultBindingFollowedWithNamedImport1_1.ts, 10, 25)) diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.types b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.types index b401a593f3..8e1b03d3fe 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.types +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.types @@ -9,54 +9,54 @@ export default a; >a : number === es6ImportDefaultBindingFollowedWithNamedImport1_1.ts === -import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; ->defaultBinding1 : any +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; +>defaultBinding1 : number var x1: number = defaultBinding1; >x1 : number ->defaultBinding1 : any +>defaultBinding1 : number -import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; ->defaultBinding2 : any +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; +>defaultBinding2 : number >a : any var x1: number = defaultBinding2; >x1 : number ->defaultBinding2 : any +>defaultBinding2 : number -import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; ->defaultBinding3 : any +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; +>defaultBinding3 : number >a : any >b : any var x1: number = defaultBinding3; >x1 : number ->defaultBinding3 : any +>defaultBinding3 : number -import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; ->defaultBinding4 : any +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; +>defaultBinding4 : number >x : any >a : any >y : any var x1: number = defaultBinding4; >x1 : number ->defaultBinding4 : any +>defaultBinding4 : number -import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; ->defaultBinding5 : any +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; +>defaultBinding5 : number >x : any >z : any var x1: number = defaultBinding5; >x1 : number ->defaultBinding5 : any +>defaultBinding5 : number -import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; ->defaultBinding6 : any +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1_0"; +>defaultBinding6 : number >m : any var x1: number = defaultBinding6; >x1 : number ->defaultBinding6 : any +>defaultBinding6 : number diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.types.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.types.diff deleted file mode 100644 index 8df8449b99..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.types.diff +++ /dev/null @@ -1,67 +0,0 @@ ---- old.es6ImportDefaultBindingFollowedWithNamedImport1.types -+++ new.es6ImportDefaultBindingFollowedWithNamedImport1.types -@@= skipped -9, +9 lines =@@ - - === es6ImportDefaultBindingFollowedWithNamedImport1_1.ts === - import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -->defaultBinding1 : number -+>defaultBinding1 : any - - var x1: number = defaultBinding1; - >x1 : number -->defaultBinding1 : number -+>defaultBinding1 : any - - import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -->defaultBinding2 : number -+>defaultBinding2 : any - >a : any - - var x1: number = defaultBinding2; - >x1 : number -->defaultBinding2 : number -+>defaultBinding2 : any - - import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -->defaultBinding3 : number -+>defaultBinding3 : any - >a : any - >b : any - - var x1: number = defaultBinding3; - >x1 : number -->defaultBinding3 : number -+>defaultBinding3 : any - - import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -->defaultBinding4 : number -+>defaultBinding4 : any - >x : any - >a : any - >y : any - - var x1: number = defaultBinding4; - >x1 : number -->defaultBinding4 : number -+>defaultBinding4 : any - - import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -->defaultBinding5 : number -+>defaultBinding5 : any - >x : any - >z : any - - var x1: number = defaultBinding5; - >x1 : number -->defaultBinding5 : number -+>defaultBinding5 : any - - import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0"; -->defaultBinding6 : number -+>defaultBinding6 : any - >m : any - - var x1: number = defaultBinding6; - >x1 : number -->defaultBinding6 : number -+>defaultBinding6 : any diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js index d68d989024..f74530ac84 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js @@ -26,18 +26,21 @@ var a = 10; exports.default = a; //// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1.default; -const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2.default; -const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3.default; -const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4.default; -const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5.default; -const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6.default; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js.diff index 685caf0363..7aeca00d12 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js.diff @@ -1,25 +1,25 @@ --- old.es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js +++ new.es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js -@@= skipped -26, +26 lines =@@ - //// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.js] - "use strict"; +@@= skipped -29, +29 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); -+const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +-var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); ++const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1.default; --var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); -+const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +-var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); ++const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2.default; --var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); -+const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +-var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); ++const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3.default; --var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); -+const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +-var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); ++const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4.default; --var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); -+const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +-var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); ++const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5.default; --var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); -+const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"); +-var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); ++const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6.default; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js index 60b54f17e3..8edf88f126 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js @@ -26,19 +26,22 @@ var a = 10; exports.default = a; //// [client.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.x1 = void 0; -const server_1 = require("./server"); +const server_1 = __importDefault(require("./server")); exports.x1 = server_1.default; -const server_2 = require("./server"); +const server_2 = __importDefault(require("./server")); exports.x1 = server_2.default; -const server_3 = require("./server"); +const server_3 = __importDefault(require("./server")); exports.x1 = server_3.default; -const server_4 = require("./server"); +const server_4 = __importDefault(require("./server")); exports.x1 = server_4.default; -const server_5 = require("./server"); +const server_5 = __importDefault(require("./server")); exports.x1 = server_5.default; -const server_6 = require("./server"); +const server_6 = __importDefault(require("./server")); exports.x1 = server_6.default; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js.diff index 86e4d1fb7a..b9907939cd 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js.diff @@ -1,25 +1,25 @@ --- old.es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js +++ new.es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js -@@= skipped -27, +27 lines =@@ - "use strict"; +@@= skipped -30, +30 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.x1 = void 0; --var server_1 = require("./server"); -+const server_1 = require("./server"); +-var server_1 = __importDefault(require("./server")); ++const server_1 = __importDefault(require("./server")); exports.x1 = server_1.default; --var server_2 = require("./server"); -+const server_2 = require("./server"); +-var server_2 = __importDefault(require("./server")); ++const server_2 = __importDefault(require("./server")); exports.x1 = server_2.default; --var server_3 = require("./server"); -+const server_3 = require("./server"); +-var server_3 = __importDefault(require("./server")); ++const server_3 = __importDefault(require("./server")); exports.x1 = server_3.default; --var server_4 = require("./server"); -+const server_4 = require("./server"); +-var server_4 = __importDefault(require("./server")); ++const server_4 = __importDefault(require("./server")); exports.x1 = server_4.default; --var server_5 = require("./server"); -+const server_5 = require("./server"); +-var server_5 = __importDefault(require("./server")); ++const server_5 = __importDefault(require("./server")); exports.x1 = server_5.default; --var server_6 = require("./server"); -+const server_6 = require("./server"); +-var server_6 = __importDefault(require("./server")); ++const server_6 = __importDefault(require("./server")); exports.x1 = server_6.default; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.js index 5487086947..34840ec432 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.js @@ -26,19 +26,22 @@ class a { exports.default = a; //// [client.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.x6 = exports.x5 = exports.x4 = exports.x3 = exports.x2 = exports.x1 = void 0; -const server_1 = require("./server"); +const server_1 = __importDefault(require("./server")); exports.x1 = new server_1.default(); -const server_2 = require("./server"); +const server_2 = __importDefault(require("./server")); exports.x2 = new server_2.default(); -const server_3 = require("./server"); +const server_3 = __importDefault(require("./server")); exports.x3 = new server_3.default(); -const server_4 = require("./server"); +const server_4 = __importDefault(require("./server")); exports.x4 = new server_4.default(); -const server_5 = require("./server"); +const server_5 = __importDefault(require("./server")); exports.x5 = new server_5.default(); -const server_6 = require("./server"); +const server_6 = __importDefault(require("./server")); exports.x6 = new server_6.default(); diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.js.diff index 0b3d243a82..169259c82f 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.js.diff @@ -1,25 +1,25 @@ --- old.es6ImportDefaultBindingFollowedWithNamedImportDts1.js +++ new.es6ImportDefaultBindingFollowedWithNamedImportDts1.js -@@= skipped -27, +27 lines =@@ - "use strict"; +@@= skipped -30, +30 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.x6 = exports.x5 = exports.x4 = exports.x3 = exports.x2 = exports.x1 = void 0; --var server_1 = require("./server"); -+const server_1 = require("./server"); +-var server_1 = __importDefault(require("./server")); ++const server_1 = __importDefault(require("./server")); exports.x1 = new server_1.default(); --var server_2 = require("./server"); -+const server_2 = require("./server"); +-var server_2 = __importDefault(require("./server")); ++const server_2 = __importDefault(require("./server")); exports.x2 = new server_2.default(); --var server_3 = require("./server"); -+const server_3 = require("./server"); +-var server_3 = __importDefault(require("./server")); ++const server_3 = __importDefault(require("./server")); exports.x3 = new server_3.default(); --var server_4 = require("./server"); -+const server_4 = require("./server"); +-var server_4 = __importDefault(require("./server")); ++const server_4 = __importDefault(require("./server")); exports.x4 = new server_4.default(); --var server_5 = require("./server"); -+const server_5 = require("./server"); +-var server_5 = __importDefault(require("./server")); ++const server_5 = __importDefault(require("./server")); exports.x5 = new server_5.default(); --var server_6 = require("./server"); -+const server_6 = require("./server"); +-var server_6 = __importDefault(require("./server")); ++const server_6 = __importDefault(require("./server")); exports.x6 = new server_6.default(); diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt new file mode 100644 index 0000000000..08261f24e7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt @@ -0,0 +1,58 @@ +client.ts(1,1): error TS1191: An import declaration cannot have modifiers. +client.ts(2,1): error TS1191: An import declaration cannot have modifiers. +client.ts(3,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(4,1): error TS1191: An import declaration cannot have modifiers. +client.ts(5,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(6,1): error TS1191: An import declaration cannot have modifiers. +client.ts(7,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(8,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(9,1): error TS1191: An import declaration cannot have modifiers. +client.ts(10,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(11,1): error TS1191: An import declaration cannot have modifiers. +client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'. + + +==== server.ts (0 errors) ==== + export var a = 10; + export var x = a; + export var m = a; + export default {}; + +==== client.ts (12 errors) ==== + export import defaultBinding1, { } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export import defaultBinding2, { a } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = a; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding3, { a as b } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = b; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding4, { x, a as y } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = x; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export var x1: number = y; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding5, { x as z, } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = z; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding6, { m, } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = m; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js new file mode 100644 index 0000000000..6f1755491a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts] //// + +//// [server.ts] +export var a = 10; +export var x = a; +export var m = a; +export default {}; + +//// [client.ts] +export import defaultBinding1, { } from "./server"; +export import defaultBinding2, { a } from "./server"; +export var x1: number = a; +export import defaultBinding3, { a as b } from "./server"; +export var x1: number = b; +export import defaultBinding4, { x, a as y } from "./server"; +export var x1: number = x; +export var x1: number = y; +export import defaultBinding5, { x as z, } from "./server"; +export var x1: number = z; +export import defaultBinding6, { m, } from "./server"; +export var x1: number = m; + + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = exports.x = exports.a = void 0; +exports.a = 10; +exports.x = exports.a; +exports.m = exports.a; +exports.default = {}; +//// [client.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x1 = void 0; +const server_1 = require("./server"); +exports.x1 = server_1.a; +const server_2 = require("./server"); +exports.x1 = server_2.a; +const server_3 = require("./server"); +exports.x1 = server_3.x; +exports.x1 = server_3.a; +const server_4 = require("./server"); +exports.x1 = server_4.x; +const server_5 = require("./server"); +exports.x1 = server_5.m; + + +//// [server.d.ts] +export declare var a: number; +export declare var x: number; +export declare var m: number; +declare const _default: {}; +export default _default; +//// [client.d.ts] +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js.diff new file mode 100644 index 0000000000..30ed2cd485 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js.diff @@ -0,0 +1,23 @@ +--- old.es6ImportDefaultBindingFollowedWithNamedImportWithExport.js ++++ new.es6ImportDefaultBindingFollowedWithNamedImportWithExport.js +@@= skipped -32, +32 lines =@@ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x1 = void 0; +-var server_1 = require("./server"); ++const server_1 = require("./server"); + exports.x1 = server_1.a; +-var server_2 = require("./server"); ++const server_2 = require("./server"); + exports.x1 = server_2.a; +-var server_3 = require("./server"); ++const server_3 = require("./server"); + exports.x1 = server_3.x; + exports.x1 = server_3.a; +-var server_4 = require("./server"); ++const server_4 = require("./server"); + exports.x1 = server_4.x; +-var server_5 = require("./server"); ++const server_5 = require("./server"); + exports.x1 = server_5.m; + diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols new file mode 100644 index 0000000000..35bbfb8c42 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts] //// + +=== server.ts === +export var a = 10; +>a : Symbol(a, Decl(server.ts, 0, 10)) + +export var x = a; +>x : Symbol(x, Decl(server.ts, 1, 10)) +>a : Symbol(a, Decl(server.ts, 0, 10)) + +export var m = a; +>m : Symbol(m, Decl(server.ts, 2, 10)) +>a : Symbol(a, Decl(server.ts, 0, 10)) + +export default {}; + +=== client.ts === +export import defaultBinding1, { } from "./server"; +>defaultBinding1 : Symbol(defaultBinding1, Decl(client.ts, 0, 13)) + +export import defaultBinding2, { a } from "./server"; +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 1, 13)) +>a : Symbol(a, Decl(client.ts, 1, 32)) + +export var x1: number = a; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>a : Symbol(a, Decl(client.ts, 1, 32)) + +export import defaultBinding3, { a as b } from "./server"; +>defaultBinding3 : Symbol(defaultBinding3, Decl(client.ts, 3, 13)) +>a : Symbol(a, Decl(server.ts, 0, 10)) +>b : Symbol(b, Decl(client.ts, 3, 32)) + +export var x1: number = b; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>b : Symbol(b, Decl(client.ts, 3, 32)) + +export import defaultBinding4, { x, a as y } from "./server"; +>defaultBinding4 : Symbol(defaultBinding4, Decl(client.ts, 5, 13)) +>x : Symbol(x, Decl(client.ts, 5, 32)) +>a : Symbol(a, Decl(server.ts, 0, 10)) +>y : Symbol(y, Decl(client.ts, 5, 35)) + +export var x1: number = x; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>x : Symbol(x, Decl(client.ts, 5, 32)) + +export var x1: number = y; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>y : Symbol(y, Decl(client.ts, 5, 35)) + +export import defaultBinding5, { x as z, } from "./server"; +>defaultBinding5 : Symbol(defaultBinding5, Decl(client.ts, 8, 13)) +>x : Symbol(x, Decl(server.ts, 1, 10)) +>z : Symbol(z, Decl(client.ts, 8, 32)) + +export var x1: number = z; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>z : Symbol(z, Decl(client.ts, 8, 32)) + +export import defaultBinding6, { m, } from "./server"; +>defaultBinding6 : Symbol(defaultBinding6, Decl(client.ts, 10, 13)) +>m : Symbol(m, Decl(client.ts, 10, 32)) + +export var x1: number = m; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>m : Symbol(m, Decl(client.ts, 10, 32)) + diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types new file mode 100644 index 0000000000..67cfa3d851 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts] //// + +=== server.ts === +export var a = 10; +>a : number +>10 : 10 + +export var x = a; +>x : number +>a : number + +export var m = a; +>m : number +>a : number + +export default {}; +>{} : {} + +=== client.ts === +export import defaultBinding1, { } from "./server"; +>defaultBinding1 : {} + +export import defaultBinding2, { a } from "./server"; +>defaultBinding2 : {} +>a : number + +export var x1: number = a; +>x1 : number +>a : number + +export import defaultBinding3, { a as b } from "./server"; +>defaultBinding3 : {} +>a : number +>b : number + +export var x1: number = b; +>x1 : number +>b : number + +export import defaultBinding4, { x, a as y } from "./server"; +>defaultBinding4 : {} +>x : number +>a : number +>y : number + +export var x1: number = x; +>x1 : number +>x : number + +export var x1: number = y; +>x1 : number +>y : number + +export import defaultBinding5, { x as z, } from "./server"; +>defaultBinding5 : {} +>x : number +>z : number + +export var x1: number = z; +>x1 : number +>z : number + +export import defaultBinding6, { m, } from "./server"; +>defaultBinding6 : {} +>m : number + +export var x1: number = m; +>x1 : number +>m : number + diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt index 61a05e784f..446b5e271d 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt @@ -1,11 +1,11 @@ -es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,52): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamespaceBinding_0' or its corresponding type declarations. +es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamespaceBinding_0"' has no default export. ==== es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts (0 errors) ==== export var a = 10; ==== es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts (1 errors) ==== - import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamespaceBinding_0' or its corresponding type declarations. + import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; + ~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamespaceBinding_0"' has no default export. var x: number = nameSpaceBinding.a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt.diff deleted file mode 100644 index a1ba742942..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt -+++ new.es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt -@@= skipped -0, +0 lines =@@ --es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamespaceBinding_0"' has no default export. -+es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,52): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamespaceBinding_0' or its corresponding type declarations. - - - ==== es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts (0 errors) ==== -@@= skipped -5, +5 lines =@@ - - ==== es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts (1 errors) ==== - import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; -- ~~~~~~~~~~~~~~ --!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamespaceBinding_0"' has no default export. -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamespaceBinding_0' or its corresponding type declarations. - var x: number = nameSpaceBinding.a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.js index 2c86e06263..e38fa303c6 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.js @@ -4,13 +4,13 @@ export var a = 10; //// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts] -import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; var x: number = nameSpaceBinding.a; //// [es6ImportDefaultBindingFollowedWithNamespaceBinding_0.js] export var a = 10; //// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.js] -import * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; var x = nameSpaceBinding.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols index 52ba79bf97..f2686bc37c 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols @@ -5,11 +5,13 @@ export var a = 10; >a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts, 0, 10)) === es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts === -import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; >defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 6)) >nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 22)) var x: number = nameSpaceBinding.a; >x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 1, 3)) +>nameSpaceBinding.a : Symbol(nameSpaceBinding.a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts, 0, 10)) >nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 22)) +>a : Symbol(nameSpaceBinding.a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts, 0, 10)) diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols.diff deleted file mode 100644 index 7612487421..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols -+++ new.es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols -@@= skipped -10, +10 lines =@@ - - var x: number = nameSpaceBinding.a; - >x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 1, 3)) -->nameSpaceBinding.a : Symbol(nameSpaceBinding.a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts, 0, 10)) - >nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 22)) -->a : Symbol(nameSpaceBinding.a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts, 0, 10)) diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.types b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.types index 683bb2d142..b4a1d5c201 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.types +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.types @@ -6,13 +6,13 @@ export var a = 10; >10 : 10 === es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts === -import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; >defaultBinding : any ->nameSpaceBinding : any +>nameSpaceBinding : typeof nameSpaceBinding var x: number = nameSpaceBinding.a; >x : number ->nameSpaceBinding.a : any ->nameSpaceBinding : any ->a : any +>nameSpaceBinding.a : number +>nameSpaceBinding : typeof nameSpaceBinding +>a : number diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.types.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.types.diff deleted file mode 100644 index 1af7f01ae0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.types.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.es6ImportDefaultBindingFollowedWithNamespaceBinding.types -+++ new.es6ImportDefaultBindingFollowedWithNamespaceBinding.types -@@= skipped -7, +7 lines =@@ - === es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts === - import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; - >defaultBinding : any -->nameSpaceBinding : typeof nameSpaceBinding -+>nameSpaceBinding : any - - var x: number = nameSpaceBinding.a; - >x : number -->nameSpaceBinding.a : number -->nameSpaceBinding : typeof nameSpaceBinding -->a : number -+>nameSpaceBinding.a : any -+>nameSpaceBinding : any -+>a : any diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt deleted file mode 100644 index 76a13afad5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,52): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamespaceBinding_0' or its corresponding type declarations. - - -==== es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts (0 errors) ==== - var a = 10; - export default a; - -==== es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts (1 errors) ==== - import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamespaceBinding_0' or its corresponding type declarations. - var x: number = defaultBinding; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt.diff deleted file mode 100644 index 3816cb2188..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt -+++ new.es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt -@@= skipped -0, +0 lines =@@ -- -+es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,52): error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamespaceBinding_0' or its corresponding type declarations. -+ -+ -+==== es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts (0 errors) ==== -+ var a = 10; -+ export default a; -+ -+==== es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts (1 errors) ==== -+ import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportDefaultBindingFollowedWithNamespaceBinding_0' or its corresponding type declarations. -+ var x: number = defaultBinding; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.js index 039b4a3dce..bd12489fc9 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.js @@ -5,14 +5,14 @@ var a = 10; export default a; //// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts] -import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; var x: number = defaultBinding; //// [es6ImportDefaultBindingFollowedWithNamespaceBinding_0.js] var a = 10; export default a; //// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.js] -import defaultBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import defaultBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; var x = defaultBinding; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.symbols b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.symbols index b8cac73d9a..700ee31c46 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.symbols +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.symbols @@ -8,7 +8,7 @@ export default a; >a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts, 0, 3)) === es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts === -import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; >defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 6)) >nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 22)) diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types index 85843c7858..4299ceb3be 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types @@ -9,11 +9,11 @@ export default a; >a : number === es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts === -import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; ->defaultBinding : any ->nameSpaceBinding : any +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +>defaultBinding : number +>nameSpaceBinding : typeof nameSpaceBinding var x: number = defaultBinding; >x : number ->defaultBinding : any +>defaultBinding : number diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types.diff deleted file mode 100644 index 075605f1ec..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.es6ImportDefaultBindingFollowedWithNamespaceBinding1.types -+++ new.es6ImportDefaultBindingFollowedWithNamespaceBinding1.types -@@= skipped -9, +9 lines =@@ - - === es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts === - import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; -->defaultBinding : number -->nameSpaceBinding : typeof nameSpaceBinding -+>defaultBinding : any -+>nameSpaceBinding : any - - var x: number = defaultBinding; - >x : number -->defaultBinding : number -+>defaultBinding : any diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js index b5c95374a7..67f80174cd 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js @@ -15,8 +15,11 @@ var a = 10; exports.default = a; //// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"); +const es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js.diff index bcf62e08bd..8a18fef8fe 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js.diff @@ -1,10 +1,10 @@ --- old.es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js +++ new.es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js -@@= skipped -15, +15 lines =@@ - //// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js] - "use strict"; +@@= skipped -18, +18 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"); -+const es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"); +-var es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0")); ++const es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0")); var x = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js index 1f83776a28..0f400c5087 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js @@ -16,9 +16,42 @@ class a { exports.a = a; //// [client.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; -const nameSpaceBinding = require("./server"); +const nameSpaceBinding = __importStar(require("./server")); exports.x = new nameSpaceBinding.a(); diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js.diff index 879976f3f2..9e05a355e1 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js.diff @@ -1,10 +1,10 @@ --- old.es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js +++ new.es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js -@@= skipped -17, +17 lines =@@ - "use strict"; +@@= skipped -50, +50 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; --var nameSpaceBinding = require("./server"); -+const nameSpaceBinding = require("./server"); +-var nameSpaceBinding = __importStar(require("./server")); ++const nameSpaceBinding = __importStar(require("./server")); exports.x = new nameSpaceBinding.a(); diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js index ebdee2d2bc..bd4309d548 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js @@ -14,8 +14,41 @@ exports.a = void 0; exports.a = 10; //// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const nameSpaceBinding = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"); +const nameSpaceBinding = __importStar(require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0")); var x = nameSpaceBinding.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js.diff index deaee87393..c2c683c82c 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js.diff @@ -1,10 +1,10 @@ --- old.es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js +++ new.es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js -@@= skipped -14, +14 lines =@@ - //// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js] - "use strict"; +@@= skipped -47, +47 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var nameSpaceBinding = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"); -+const nameSpaceBinding = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"); +-var nameSpaceBinding = __importStar(require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0")); ++const nameSpaceBinding = __importStar(require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0")); var x = nameSpaceBinding.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js index 67fc498fdf..d356946540 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js @@ -14,9 +14,42 @@ exports.a = void 0; exports.a = 10; //// [client.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; -const nameSpaceBinding = require("./server"); +const nameSpaceBinding = __importStar(require("./server")); exports.x = nameSpaceBinding.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js.diff index 2b8e1e997a..c8720bfeb2 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js.diff @@ -1,10 +1,10 @@ --- old.es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js +++ new.es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js -@@= skipped -15, +15 lines =@@ - "use strict"; +@@= skipped -48, +48 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; --var nameSpaceBinding = require("./server"); -+const nameSpaceBinding = require("./server"); +-var nameSpaceBinding = __importStar(require("./server")); ++const nameSpaceBinding = __importStar(require("./server")); exports.x = nameSpaceBinding.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingMergeErrors.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingMergeErrors.js index 2f32566b13..eeb5bbcd12 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingMergeErrors.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingMergeErrors.js @@ -22,7 +22,10 @@ var a = 10; exports.default = a; //// [es6ImportDefaultBindingMergeErrors_1.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const es6ImportDefaultBindingMergeErrors_0_1 = require("./es6ImportDefaultBindingMergeErrors_0"); +const es6ImportDefaultBindingMergeErrors_0_1 = __importDefault(require("./es6ImportDefaultBindingMergeErrors_0")); var x = es6ImportDefaultBindingMergeErrors_0_1.default; var defaultBinding2 = "hello world"; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingMergeErrors.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingMergeErrors.js.diff index 5cdb26f3f0..bf927e1a8d 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingMergeErrors.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingMergeErrors.js.diff @@ -1,10 +1,10 @@ --- old.es6ImportDefaultBindingMergeErrors.js +++ new.es6ImportDefaultBindingMergeErrors.js -@@= skipped -22, +22 lines =@@ - //// [es6ImportDefaultBindingMergeErrors_1.js] - "use strict"; +@@= skipped -25, +25 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var es6ImportDefaultBindingMergeErrors_0_1 = require("./es6ImportDefaultBindingMergeErrors_0"); -+const es6ImportDefaultBindingMergeErrors_0_1 = require("./es6ImportDefaultBindingMergeErrors_0"); +-var es6ImportDefaultBindingMergeErrors_0_1 = __importDefault(require("./es6ImportDefaultBindingMergeErrors_0")); ++const es6ImportDefaultBindingMergeErrors_0_1 = __importDefault(require("./es6ImportDefaultBindingMergeErrors_0")); var x = es6ImportDefaultBindingMergeErrors_0_1.default; var defaultBinding2 = "hello world"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.errors.txt new file mode 100644 index 0000000000..de33de8cda --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.errors.txt @@ -0,0 +1,16 @@ +client.ts(1,1): error TS1191: An import declaration cannot have modifiers. +client.ts(3,1): error TS1191: An import declaration cannot have modifiers. + + +==== server.ts (0 errors) ==== + var a = 10; + export default a; + +==== client.ts (2 errors) ==== + export import defaultBinding from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x = defaultBinding; + export import defaultBinding2 from "./server"; // non referenced + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.js b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.js new file mode 100644 index 0000000000..0eabd86f4e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingWithExport.ts] //// + +//// [server.ts] +var a = 10; +export default a; + +//// [client.ts] +export import defaultBinding from "./server"; +export var x = defaultBinding; +export import defaultBinding2 from "./server"; // non referenced + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var a = 10; +exports.default = a; +//// [client.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +const server_1 = __importDefault(require("./server")); +exports.x = server_1.default; + + +//// [server.d.ts] +declare var a: number; +export default a; +//// [client.d.ts] +export declare var x: number; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.js.diff new file mode 100644 index 0000000000..63dcd8eb0b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.js.diff @@ -0,0 +1,10 @@ +--- old.es6ImportDefaultBindingWithExport.js ++++ new.es6ImportDefaultBindingWithExport.js +@@= skipped -20, +20 lines =@@ + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; +-var server_1 = __importDefault(require("./server")); ++const server_1 = __importDefault(require("./server")); + exports.x = server_1.default; + diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.symbols b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.symbols new file mode 100644 index 0000000000..6090e8d56e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingWithExport.ts] //// + +=== server.ts === +var a = 10; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +export default a; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +=== client.ts === +export import defaultBinding from "./server"; +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 13)) + +export var x = defaultBinding; +>x : Symbol(x, Decl(client.ts, 1, 10)) +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 13)) + +export import defaultBinding2 from "./server"; // non referenced +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 13)) + diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.types b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.types new file mode 100644 index 0000000000..d78645a482 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/es6ImportDefaultBindingWithExport.types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingWithExport.ts] //// + +=== server.ts === +var a = 10; +>a : number +>10 : 10 + +export default a; +>a : number + +=== client.ts === +export import defaultBinding from "./server"; +>defaultBinding : number + +export var x = defaultBinding; +>x : number +>defaultBinding : number + +export import defaultBinding2 from "./server"; // non referenced +>defaultBinding2 : number + diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.errors.txt index 13769af4d3..fec1b354af 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.errors.txt @@ -1,14 +1,14 @@ client.ts(1,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. -client.ts(1,20): error TS2307: Cannot find module 'server' or its corresponding type declarations. +server.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. -==== client.ts (2 errors) ==== - import a = require("server"); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +==== client.ts (1 errors) ==== + import a = require("./server"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! 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. - ~~~~~~~~ -!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. -==== server.ts (0 errors) ==== +==== server.ts (1 errors) ==== var a = 10; export = a; + ~~~~~~~~~~~ +!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.errors.txt.diff deleted file mode 100644 index dcc1ac9645..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.errors.txt.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.es6ImportEqualsDeclaration.errors.txt -+++ new.es6ImportEqualsDeclaration.errors.txt -@@= skipped -0, +0 lines =@@ - client.ts(1,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. --server.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. -- -- --==== client.ts (1 errors) ==== -+client.ts(1,20): error TS2307: Cannot find module 'server' or its corresponding type declarations. -+ -+ -+==== client.ts (2 errors) ==== - import a = require("server"); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - !!! 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. --==== server.ts (1 errors) ==== -+ ~~~~~~~~ -+!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. -+==== server.ts (0 errors) ==== - var a = 10; - export = a; -- ~~~~~~~~~~~ --!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.js b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.js index f1d1f9d352..b994bd728a 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.js @@ -5,7 +5,10 @@ var a = 10; export = a; //// [client.ts] -import a = require("server"); +import a = require("./server"); +//// [server.js] +var a = 10; +export {}; //// [client.js] export {}; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.js.diff deleted file mode 100644 index e5db0b42b6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.es6ImportEqualsDeclaration.js -+++ new.es6ImportEqualsDeclaration.js -@@= skipped -6, +6 lines =@@ - //// [client.ts] - import a = require("server"); - --//// [server.js] --var a = 10; --export {}; - //// [client.js] - export {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.symbols b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.symbols index 2cf6482767..fc301a740c 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.symbols +++ b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.symbols @@ -1,6 +1,13 @@ //// [tests/cases/compiler/es6ImportEqualsDeclaration.ts] //// === client.ts === -import a = require("server"); +import a = require("./server"); >a : Symbol(a, Decl(client.ts, 0, 0)) +=== server.ts === +var a = 10; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +export = a; +>a : Symbol(a, Decl(server.ts, 0, 3)) + diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.symbols.diff b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.symbols.diff deleted file mode 100644 index 7ab627c945..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.symbols.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.es6ImportEqualsDeclaration.symbols -+++ new.es6ImportEqualsDeclaration.symbols -@@= skipped -3, +3 lines =@@ - import a = require("server"); - >a : Symbol(a, Decl(client.ts, 0, 0)) - --=== server.ts === --var a = 10; -->a : Symbol(a, Decl(server.ts, 0, 3)) -- --export = a; -->a : Symbol(a, Decl(server.ts, 0, 3)) -- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.types b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.types index ed27c5b0d8..2c26a91f92 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.types +++ b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.types @@ -1,6 +1,14 @@ //// [tests/cases/compiler/es6ImportEqualsDeclaration.ts] //// === client.ts === -import a = require("server"); ->a : any +import a = require("./server"); +>a : number + +=== server.ts === +var a = 10; +>a : number +>10 : 10 + +export = a; +>a : number diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.types.diff b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.types.diff deleted file mode 100644 index 1abfc89c8c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsDeclaration.types.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.es6ImportEqualsDeclaration.types -+++ new.es6ImportEqualsDeclaration.types -@@= skipped -1, +1 lines =@@ - - === client.ts === - import a = require("server"); -->a : number -- --=== server.ts === --var a = 10; -->a : number -->10 : 10 -- --export = a; -->a : number -+>a : any diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsExportModuleCommonJsError.js b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsExportModuleCommonJsError.js index 8443d4820d..e3c5f6efe7 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsExportModuleCommonJsError.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsExportModuleCommonJsError.js @@ -18,6 +18,39 @@ class a { module.exports = a; //// [main.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const a = require("./a"); +const a = __importStar(require("./a")); a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsExportModuleCommonJsError.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsExportModuleCommonJsError.js.diff index 7b1f4e4343..67b0f535ad 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportEqualsExportModuleCommonJsError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportEqualsExportModuleCommonJsError.js.diff @@ -1,9 +1,9 @@ --- old.es6ImportEqualsExportModuleCommonJsError.js +++ new.es6ImportEqualsExportModuleCommonJsError.js -@@= skipped -18, +18 lines =@@ - //// [main.js] - "use strict"; +@@= skipped -51, +51 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var a = require("./a"); -+const a = require("./a"); +-var a = __importStar(require("./a")); ++const a = __importStar(require("./a")); a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImport.js b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImport.js index ce72655687..1f01c654c8 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImport.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImport.js @@ -16,8 +16,41 @@ exports.a = void 0; exports.a = 10; //// [es6ImportNameSpaceImport_1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const nameSpaceBinding = require("./es6ImportNameSpaceImport_0"); +const nameSpaceBinding = __importStar(require("./es6ImportNameSpaceImport_0")); var x = nameSpaceBinding.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportDts.js b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportDts.js index dc40e156a9..1c9636e822 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportDts.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportDts.js @@ -18,9 +18,42 @@ exports.c = c; ; //// [client.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; -const nameSpaceBinding = require("./server"); +const nameSpaceBinding = __importStar(require("./server")); exports.x = new nameSpaceBinding.c(); diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportDts.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportDts.js.diff index fcb53273d5..3da20d148f 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportDts.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportDts.js.diff @@ -1,10 +1,10 @@ --- old.es6ImportNameSpaceImportDts.js +++ new.es6ImportNameSpaceImportDts.js -@@= skipped -19, +19 lines =@@ - "use strict"; +@@= skipped -52, +52 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; --var nameSpaceBinding = require("./server"); -+const nameSpaceBinding = require("./server"); +-var nameSpaceBinding = __importStar(require("./server")); ++const nameSpaceBinding = __importStar(require("./server")); exports.x = new nameSpaceBinding.c(); diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportInEs5.js b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportInEs5.js index 3b375f2f92..dff81d3ee3 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportInEs5.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportInEs5.js @@ -16,8 +16,41 @@ exports.a = void 0; exports.a = 10; //// [es6ImportNameSpaceImportInEs5_1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const nameSpaceBinding = require("./es6ImportNameSpaceImportInEs5_0"); +const nameSpaceBinding = __importStar(require("./es6ImportNameSpaceImportInEs5_0")); var x = nameSpaceBinding.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportInEs5.js.diff b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportInEs5.js.diff index 2bbc9f5c74..9118520456 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportInEs5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNameSpaceImportInEs5.js.diff @@ -1,10 +1,10 @@ --- old.es6ImportNameSpaceImportInEs5.js +++ new.es6ImportNameSpaceImportInEs5.js -@@= skipped -16, +16 lines =@@ - //// [es6ImportNameSpaceImportInEs5_1.js] - "use strict"; +@@= skipped -49, +49 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var nameSpaceBinding = require("./es6ImportNameSpaceImportInEs5_0"); -+const nameSpaceBinding = require("./es6ImportNameSpaceImportInEs5_0"); +-var nameSpaceBinding = __importStar(require("./es6ImportNameSpaceImportInEs5_0")); ++const nameSpaceBinding = __importStar(require("./es6ImportNameSpaceImportInEs5_0")); var x = nameSpaceBinding.a; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportIdentifiersParsing.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportIdentifiersParsing.errors.txt.diff deleted file mode 100644 index 42f6dd334c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportIdentifiersParsing.errors.txt.diff +++ /dev/null @@ -1,60 +0,0 @@ ---- old.es6ImportNamedImportIdentifiersParsing.errors.txt -+++ new.es6ImportNamedImportIdentifiersParsing.errors.txt -@@= skipped -0, +0 lines =@@ - es6ImportNamedImportIdentifiersParsing.ts(1,10): error TS2300: Duplicate identifier 'yield'. --es6ImportNamedImportIdentifiersParsing.ts(1,23): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+es6ImportNamedImportIdentifiersParsing.ts(1,23): error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - es6ImportNamedImportIdentifiersParsing.ts(2,10): error TS1003: Identifier expected. - es6ImportNamedImportIdentifiersParsing.ts(2,10): error TS2300: Duplicate identifier 'default'. --es6ImportNamedImportIdentifiersParsing.ts(2,25): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+es6ImportNamedImportIdentifiersParsing.ts(2,25): error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - es6ImportNamedImportIdentifiersParsing.ts(3,19): error TS1003: Identifier expected. - es6ImportNamedImportIdentifiersParsing.ts(3,19): error TS2300: Duplicate identifier 'default'. --es6ImportNamedImportIdentifiersParsing.ts(3,34): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+es6ImportNamedImportIdentifiersParsing.ts(3,34): error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - es6ImportNamedImportIdentifiersParsing.ts(4,21): error TS2300: Duplicate identifier 'yield'. --es6ImportNamedImportIdentifiersParsing.ts(4,34): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+es6ImportNamedImportIdentifiersParsing.ts(4,34): error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - es6ImportNamedImportIdentifiersParsing.ts(5,21): error TS1003: Identifier expected. - es6ImportNamedImportIdentifiersParsing.ts(5,21): error TS2300: Duplicate identifier 'default'. --es6ImportNamedImportIdentifiersParsing.ts(5,36): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+es6ImportNamedImportIdentifiersParsing.ts(5,36): error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - - - ==== es6ImportNamedImportIdentifiersParsing.ts (13 errors) ==== -@@= skipped -17, +17 lines =@@ - ~~~~~ - !!! error TS2300: Duplicate identifier 'yield'. - ~~~~~~~~~~~~ --!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - import { default } from "somemodule"; // Error - as this is keyword that is not allowed as identifier - ~~~~~~~ - !!! error TS1003: Identifier expected. - ~~~~~~~ - !!! error TS2300: Duplicate identifier 'default'. - ~~~~~~~~~~~~ --!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - import { yield as default } from "somemodule"; // error to use default as binding name - ~~~~~~~ - !!! error TS1003: Identifier expected. - ~~~~~~~ - !!! error TS2300: Duplicate identifier 'default'. - ~~~~~~~~~~~~ --!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - import { default as yield } from "somemodule"; // no error - ~~~~~ - !!! error TS2300: Duplicate identifier 'yield'. - ~~~~~~~~~~~~ --!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. - import { default as default } from "somemodule"; // default as is ok, error of default binding name - ~~~~~~~ - !!! error TS1003: Identifier expected. - ~~~~~~~ - !!! error TS2300: Duplicate identifier 'default'. - ~~~~~~~~~~~~ --!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportNoNamedExports.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportNoNamedExports.errors.txt index 480948746c..da972d070e 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportNoNamedExports.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportNoNamedExports.errors.txt @@ -1,5 +1,5 @@ -es6ImportNamedImportNoNamedExports_1.ts(1,10): error TS2617: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or by turning on the 'esModuleInterop' flag and using a default import. -es6ImportNamedImportNoNamedExports_1.ts(2,10): error TS2617: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or by turning on the 'esModuleInterop' flag and using a default import. +es6ImportNamedImportNoNamedExports_1.ts(1,10): error TS2616: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or a default import. +es6ImportNamedImportNoNamedExports_1.ts(2,10): error TS2616: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or a default import. ==== es6ImportNamedImportNoNamedExports_0.ts (0 errors) ==== @@ -9,7 +9,7 @@ es6ImportNamedImportNoNamedExports_1.ts(2,10): error TS2617: 'a' can only be imp ==== es6ImportNamedImportNoNamedExports_1.ts (2 errors) ==== import { a } from "./es6ImportNamedImportNoNamedExports_0"; ~ -!!! error TS2617: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or by turning on the 'esModuleInterop' flag and using a default import. +!!! error TS2616: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or a default import. import { a as x } from "./es6ImportNamedImportNoNamedExports_0"; ~ -!!! error TS2617: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or by turning on the 'esModuleInterop' flag and using a default import. \ No newline at end of file +!!! error TS2616: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or a default import. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.errors.txt b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.errors.txt index 34ba5ce697..330a18d8df 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.errors.txt @@ -3,8 +3,8 @@ es6ImportNamedImportParsingError_1.ts(1,10): error TS1141: String literal expect es6ImportNamedImportParsingError_1.ts(1,12): error TS1109: Expression expected. es6ImportNamedImportParsingError_1.ts(1,14): error TS1434: Unexpected keyword or identifier. es6ImportNamedImportParsingError_1.ts(1,14): error TS2304: Cannot find name 'from'. +es6ImportNamedImportParsingError_1.ts(2,8): error TS1192: Module '"es6ImportNamedImportParsingError_0"' has no default export. es6ImportNamedImportParsingError_1.ts(2,24): error TS1005: '{' expected. -es6ImportNamedImportParsingError_1.ts(2,29): error TS2307: Cannot find module 'es6ImportNamedImportParsingError_0' or its corresponding type declarations. es6ImportNamedImportParsingError_1.ts(3,1): error TS1128: Declaration or statement expected. es6ImportNamedImportParsingError_1.ts(3,8): error TS1128: Declaration or statement expected. es6ImportNamedImportParsingError_1.ts(3,16): error TS1434: Unexpected keyword or identifier. @@ -20,7 +20,7 @@ es6ImportNamedImportParsingError_1.ts(4,20): error TS1005: ';' expected. export var m = a; ==== es6ImportNamedImportParsingError_1.ts (14 errors) ==== - import { * } from "es6ImportNamedImportParsingError_0"; + import { * } from "./es6ImportNamedImportParsingError_0"; ~ !!! error TS1003: Identifier expected. ~ @@ -31,12 +31,12 @@ es6ImportNamedImportParsingError_1.ts(4,20): error TS1005: ';' expected. !!! error TS1434: Unexpected keyword or identifier. ~~~~ !!! error TS2304: Cannot find name 'from'. - import defaultBinding, from "es6ImportNamedImportParsingError_0"; + import defaultBinding, from "./es6ImportNamedImportParsingError_0"; + ~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportNamedImportParsingError_0"' has no default export. ~~~~ !!! error TS1005: '{' expected. - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'es6ImportNamedImportParsingError_0' or its corresponding type declarations. - import , { a } from "es6ImportNamedImportParsingError_0"; + import , { a } from "./es6ImportNamedImportParsingError_0"; ~~~~~~ !!! error TS1128: Declaration or statement expected. ~ @@ -45,10 +45,10 @@ es6ImportNamedImportParsingError_1.ts(4,20): error TS1005: ';' expected. !!! error TS1434: Unexpected keyword or identifier. ~~~~ !!! error TS2304: Cannot find name 'from'. - import { a }, from "es6ImportNamedImportParsingError_0"; + import { a }, from "./es6ImportNamedImportParsingError_0"; ~ !!! error TS1005: 'from' expected. ~~~~~~ !!! error TS1141: String literal expected. - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1005: ';' expected. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.errors.txt.diff deleted file mode 100644 index fdfad12a59..0000000000 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.es6ImportNamedImportParsingError.errors.txt -+++ new.es6ImportNamedImportParsingError.errors.txt -@@= skipped -2, +2 lines =@@ - es6ImportNamedImportParsingError_1.ts(1,12): error TS1109: Expression expected. - es6ImportNamedImportParsingError_1.ts(1,14): error TS1434: Unexpected keyword or identifier. - es6ImportNamedImportParsingError_1.ts(1,14): error TS2304: Cannot find name 'from'. --es6ImportNamedImportParsingError_1.ts(2,8): error TS1192: Module '"es6ImportNamedImportParsingError_0"' has no default export. - es6ImportNamedImportParsingError_1.ts(2,24): error TS1005: '{' expected. -+es6ImportNamedImportParsingError_1.ts(2,29): error TS2307: Cannot find module 'es6ImportNamedImportParsingError_0' or its corresponding type declarations. - es6ImportNamedImportParsingError_1.ts(3,1): error TS1128: Declaration or statement expected. - es6ImportNamedImportParsingError_1.ts(3,8): error TS1128: Declaration or statement expected. - es6ImportNamedImportParsingError_1.ts(3,16): error TS1434: Unexpected keyword or identifier. -@@= skipped -29, +29 lines =@@ - ~~~~ - !!! error TS2304: Cannot find name 'from'. - import defaultBinding, from "es6ImportNamedImportParsingError_0"; -- ~~~~~~~~~~~~~~ --!!! error TS1192: Module '"es6ImportNamedImportParsingError_0"' has no default export. - ~~~~ - !!! error TS1005: '{' expected. -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'es6ImportNamedImportParsingError_0' or its corresponding type declarations. - import , { a } from "es6ImportNamedImportParsingError_0"; - ~~~~~~ - !!! error TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.js b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.js index 76f14f91ff..733e5c2d14 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.js +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.js @@ -6,10 +6,10 @@ export var x = a; export var m = a; //// [es6ImportNamedImportParsingError_1.ts] -import { * } from "es6ImportNamedImportParsingError_0"; -import defaultBinding, from "es6ImportNamedImportParsingError_0"; -import , { a } from "es6ImportNamedImportParsingError_0"; -import { a }, from "es6ImportNamedImportParsingError_0"; +import { * } from "./es6ImportNamedImportParsingError_0"; +import defaultBinding, from "./es6ImportNamedImportParsingError_0"; +import , { a } from "./es6ImportNamedImportParsingError_0"; +import { a }, from "./es6ImportNamedImportParsingError_0"; //// [es6ImportNamedImportParsingError_0.js] export var a = 10; @@ -17,11 +17,11 @@ export var x = a; export var m = a; //// [es6ImportNamedImportParsingError_1.js] from; -"es6ImportNamedImportParsingError_0"; +"./es6ImportNamedImportParsingError_0"; { a; } from; -"es6ImportNamedImportParsingError_0"; +"./es6ImportNamedImportParsingError_0"; import { a } from , from; -"es6ImportNamedImportParsingError_0"; +"./es6ImportNamedImportParsingError_0"; diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.symbols b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.symbols index 107241ff45..e721430df5 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.symbols +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.symbols @@ -13,13 +13,13 @@ export var m = a; >a : Symbol(a, Decl(es6ImportNamedImportParsingError_0.ts, 0, 10)) === es6ImportNamedImportParsingError_1.ts === -import { * } from "es6ImportNamedImportParsingError_0"; -import defaultBinding, from "es6ImportNamedImportParsingError_0"; +import { * } from "./es6ImportNamedImportParsingError_0"; +import defaultBinding, from "./es6ImportNamedImportParsingError_0"; >defaultBinding : Symbol(defaultBinding, Decl(es6ImportNamedImportParsingError_1.ts, 1, 6)) -import , { a } from "es6ImportNamedImportParsingError_0"; +import , { a } from "./es6ImportNamedImportParsingError_0"; >a : Symbol(a, Decl(es6ImportNamedImportParsingError_1.ts, 3, 8)) -import { a }, from "es6ImportNamedImportParsingError_0"; +import { a }, from "./es6ImportNamedImportParsingError_0"; >a : Symbol(a, Decl(es6ImportNamedImportParsingError_1.ts, 3, 8)) diff --git a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.types b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.types index 1e563177a3..5621b32b70 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.types +++ b/testdata/baselines/reference/submodule/compiler/es6ImportNamedImportParsingError.types @@ -14,25 +14,25 @@ export var m = a; >a : number === es6ImportNamedImportParsingError_1.ts === -import { * } from "es6ImportNamedImportParsingError_0"; +import { * } from "./es6ImportNamedImportParsingError_0"; >* : number > : any > : any >from : any ->"es6ImportNamedImportParsingError_0" : "es6ImportNamedImportParsingError_0" +>"./es6ImportNamedImportParsingError_0" : "./es6ImportNamedImportParsingError_0" -import defaultBinding, from "es6ImportNamedImportParsingError_0"; +import defaultBinding, from "./es6ImportNamedImportParsingError_0"; >defaultBinding : any -import , { a } from "es6ImportNamedImportParsingError_0"; +import , { a } from "./es6ImportNamedImportParsingError_0"; >a : any >from : any ->"es6ImportNamedImportParsingError_0" : "es6ImportNamedImportParsingError_0" +>"./es6ImportNamedImportParsingError_0" : "./es6ImportNamedImportParsingError_0" -import { a }, from "es6ImportNamedImportParsingError_0"; +import { a }, from "./es6ImportNamedImportParsingError_0"; >a : any >, from : any > : any >from : any ->"es6ImportNamedImportParsingError_0" : "es6ImportNamedImportParsingError_0" +>"./es6ImportNamedImportParsingError_0" : "./es6ImportNamedImportParsingError_0" diff --git a/testdata/baselines/reference/submodule/compiler/expandoFunctionContextualTypesNoValue.js b/testdata/baselines/reference/submodule/compiler/expandoFunctionContextualTypesNoValue.js index a1f8110ceb..3b4d5eb362 100644 --- a/testdata/baselines/reference/submodule/compiler/expandoFunctionContextualTypesNoValue.js +++ b/testdata/baselines/reference/submodule/compiler/expandoFunctionContextualTypesNoValue.js @@ -11,9 +11,12 @@ Foo.bar = () => { }; //// [expandoFunctionContextualTypesNoValue.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Foo = Foo; // GH #38532 -const blah_1 = require("blah"); +const blah_1 = __importDefault(require("blah")); function Foo() { } blah_1.default.bar = () => { }; diff --git a/testdata/baselines/reference/submodule/compiler/expandoFunctionContextualTypesNoValue.js.diff b/testdata/baselines/reference/submodule/compiler/expandoFunctionContextualTypesNoValue.js.diff index 4720f816ff..043acea3ee 100644 --- a/testdata/baselines/reference/submodule/compiler/expandoFunctionContextualTypesNoValue.js.diff +++ b/testdata/baselines/reference/submodule/compiler/expandoFunctionContextualTypesNoValue.js.diff @@ -1,10 +1,10 @@ --- old.expandoFunctionContextualTypesNoValue.js +++ new.expandoFunctionContextualTypesNoValue.js -@@= skipped -13, +13 lines =@@ +@@= skipped -16, +16 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.Foo = Foo; // GH #38532 --var blah_1 = require("blah"); -+const blah_1 = require("blah"); +-var blah_1 = __importDefault(require("blah")); ++const blah_1 = __importDefault(require("blah")); function Foo() { } blah_1.default.bar = () => { }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportAsNamespace_augment.js b/testdata/baselines/reference/submodule/compiler/exportAsNamespace_augment.js index f9e2e39be2..4115dbc13d 100644 --- a/testdata/baselines/reference/submodule/compiler/exportAsNamespace_augment.js +++ b/testdata/baselines/reference/submodule/compiler/exportAsNamespace_augment.js @@ -26,7 +26,40 @@ a2.x + a2.y + a2.z + a2.conflict; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const a2 = require("./a"); +const a2 = __importStar(require("./a")); a.x + a.y + a.z + a.conflict; a2.x + a2.y + a2.z + a2.conflict; diff --git a/testdata/baselines/reference/submodule/compiler/exportAsNamespace_augment.js.diff b/testdata/baselines/reference/submodule/compiler/exportAsNamespace_augment.js.diff index c5c1ca6d36..c08eccc480 100644 --- a/testdata/baselines/reference/submodule/compiler/exportAsNamespace_augment.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportAsNamespace_augment.js.diff @@ -1,10 +1,10 @@ --- old.exportAsNamespace_augment.js +++ new.exportAsNamespace_augment.js -@@= skipped -26, +26 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -59, +59 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var a2 = require("./a"); -+const a2 = require("./a"); +-var a2 = __importStar(require("./a")); ++const a2 = __importStar(require("./a")); a.x + a.y + a.z + a.conflict; a2.x + a2.y + a2.z + a2.conflict; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportAssignmentImportMergeNoCrash.js b/testdata/baselines/reference/submodule/compiler/exportAssignmentImportMergeNoCrash.js index 5c1f547dc2..476b9d75d0 100644 --- a/testdata/baselines/reference/submodule/compiler/exportAssignmentImportMergeNoCrash.js +++ b/testdata/baselines/reference/submodule/compiler/exportAssignmentImportMergeNoCrash.js @@ -19,7 +19,10 @@ exports.default = { }; //// [user.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Obj = void 0; -const assignment_1 = require("./assignment"); +const assignment_1 = __importDefault(require("./assignment")); exports.Obj = void exports.Obj; diff --git a/testdata/baselines/reference/submodule/compiler/exportAssignmentImportMergeNoCrash.js.diff b/testdata/baselines/reference/submodule/compiler/exportAssignmentImportMergeNoCrash.js.diff index ac3193c841..de5757db68 100644 --- a/testdata/baselines/reference/submodule/compiler/exportAssignmentImportMergeNoCrash.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportAssignmentImportMergeNoCrash.js.diff @@ -1,9 +1,9 @@ --- old.exportAssignmentImportMergeNoCrash.js +++ new.exportAssignmentImportMergeNoCrash.js -@@= skipped -20, +20 lines =@@ - "use strict"; +@@= skipped -23, +23 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Obj = void 0; --var assignment_1 = require("./assignment"); -+const assignment_1 = require("./assignment"); +-var assignment_1 = __importDefault(require("./assignment")); ++const assignment_1 = __importDefault(require("./assignment")); exports.Obj = void exports.Obj; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt.diff deleted file mode 100644 index 313279aa28..0000000000 --- a/testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt -+++ new.exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt -@@= skipped -0, +0 lines =@@ - /bar.ts(1,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. --/foo.ts(1,8): error TS1259: Module '"/bar"' can only be default-imported using the 'allowSyntheticDefaultImports' flag - - - ==== /bar.ts (1 errors) ==== -@@= skipped -7, +6 lines =@@ - !!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. - function bar() {} - --==== /foo.ts (1 errors) ==== -+==== /foo.ts (0 errors) ==== - import bar from './bar'; -- ~~~ --!!! error TS1259: Module '"/bar"' can only be default-imported using the 'allowSyntheticDefaultImports' flag --!!! related TS2594 /bar.ts:1:1: This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutAllowSyntheticDefaultImportsError.types.diff b/testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutAllowSyntheticDefaultImportsError.types.diff deleted file mode 100644 index 1fc793e38e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutAllowSyntheticDefaultImportsError.types.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.exportAssignmentWithoutAllowSyntheticDefaultImportsError.types -+++ new.exportAssignmentWithoutAllowSyntheticDefaultImportsError.types -@@= skipped -8, +8 lines =@@ - - === /foo.ts === - import bar from './bar'; -->bar : any -+>bar : () => void diff --git a/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.errors.txt b/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.errors.txt new file mode 100644 index 0000000000..d175c12c00 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.errors.txt @@ -0,0 +1,18 @@ +exportDeclareClass1.ts(2,21): error TS1183: An implementation cannot be declared in ambient contexts. +exportDeclareClass1.ts(3,31): error TS1183: An implementation cannot be declared in ambient contexts. + + +==== exportDeclareClass1.ts (2 errors) ==== + export declare class eaC { + static tF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static tsF(param:any) { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + }; + + export declare class eaC2 { + static tF(); + static tsF(param:any); + }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.js b/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.js new file mode 100644 index 0000000000..c0aadda389 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/exportDeclareClass1.ts] //// + +//// [exportDeclareClass1.ts] + export declare class eaC { + static tF() { }; + static tsF(param:any) { }; + }; + + export declare class eaC2 { + static tF(); + static tsF(param:any); + }; + +//// [exportDeclareClass1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +; +; diff --git a/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.symbols b/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.symbols new file mode 100644 index 0000000000..ad4f0a5aea --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.symbols @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/exportDeclareClass1.ts] //// + +=== exportDeclareClass1.ts === + export declare class eaC { +>eaC : Symbol(eaC, Decl(exportDeclareClass1.ts, 0, 0)) + + static tF() { }; +>tF : Symbol(eaC.tF, Decl(exportDeclareClass1.ts, 0, 30)) + + static tsF(param:any) { }; +>tsF : Symbol(eaC.tsF, Decl(exportDeclareClass1.ts, 1, 24)) +>param : Symbol(param, Decl(exportDeclareClass1.ts, 2, 19)) + + }; + + export declare class eaC2 { +>eaC2 : Symbol(eaC2, Decl(exportDeclareClass1.ts, 3, 6)) + + static tF(); +>tF : Symbol(eaC2.tF, Decl(exportDeclareClass1.ts, 5, 28)) + + static tsF(param:any); +>tsF : Symbol(eaC2.tsF, Decl(exportDeclareClass1.ts, 6, 20)) +>param : Symbol(param, Decl(exportDeclareClass1.ts, 7, 19)) + + }; diff --git a/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.types b/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.types new file mode 100644 index 0000000000..bb0796ae62 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportDeclareClass1.types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/exportDeclareClass1.ts] //// + +=== exportDeclareClass1.ts === + export declare class eaC { +>eaC : eaC + + static tF() { }; +>tF : () => void + + static tsF(param:any) { }; +>tsF : (param: any) => void +>param : any + + }; + + export declare class eaC2 { +>eaC2 : eaC2 + + static tF(); +>tF : () => any + + static tsF(param:any); +>tsF : (param: any) => any +>param : any + + }; diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAbstractClass.js b/testdata/baselines/reference/submodule/compiler/exportDefaultAbstractClass.js index f8a6e5aeda..1760cbfbe9 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAbstractClass.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultAbstractClass.js @@ -24,8 +24,11 @@ class B extends A { new B().a.toExponential(); //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); class C extends a_1.default { } new C().a.toExponential(); diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAbstractClass.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultAbstractClass.js.diff index b297e0f6f6..31534f4ea4 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAbstractClass.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultAbstractClass.js.diff @@ -8,12 +8,12 @@ } exports.default = A; class B extends A { -@@= skipped -8, +9 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -11, +12 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); class C extends a_1.default { } new C().a.toExponential(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.errors.txt b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.errors.txt index 0a8853c29e..90e5a3e617 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.errors.txt @@ -1,12 +1,8 @@ a.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -a.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. asyncawait.ts(2,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. c.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -c.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. d.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -d.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. e.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -e.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. ==== asyncawait.ts (1 errors) ==== @@ -15,40 +11,32 @@ e.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding t ~~~~~ !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -==== a.ts (2 errors) ==== - import { async, await } from 'asyncawait'; +==== a.ts (1 errors) ==== + import { async, await } from './asyncawait'; ~~~~~ !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. - ~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. export default async(() => await(Promise.resolve(1))); ==== b.ts (0 errors) ==== export default async () => { return 0; }; -==== c.ts (2 errors) ==== - import { async, await } from 'asyncawait'; +==== c.ts (1 errors) ==== + import { async, await } from './asyncawait'; ~~~~~ !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. - ~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. export default async(); -==== d.ts (2 errors) ==== - import { async, await } from 'asyncawait'; +==== d.ts (1 errors) ==== + import { async, await } from './asyncawait'; ~~~~~ !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. - ~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. export default async; -==== e.ts (2 errors) ==== - import { async, await } from 'asyncawait'; +==== e.ts (1 errors) ==== + import { async, await } from './asyncawait'; ~~~~~ !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. - ~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. export default async diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.errors.txt.diff deleted file mode 100644 index 76f8aab771..0000000000 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.errors.txt.diff +++ /dev/null @@ -1,60 +0,0 @@ ---- old.exportDefaultAsyncFunction2.errors.txt -+++ new.exportDefaultAsyncFunction2.errors.txt -@@= skipped -0, +0 lines =@@ - a.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -+a.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. - asyncawait.ts(2,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. - c.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -+c.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. - d.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -+d.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. - e.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -+e.ts(1,30): error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. - - - ==== asyncawait.ts (1 errors) ==== -@@= skipped -10, +14 lines =@@ - ~~~~~ - !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. - --==== a.ts (1 errors) ==== -+==== a.ts (2 errors) ==== - import { async, await } from 'asyncawait'; - ~~~~~ - !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -+ ~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. - export default async(() => await(Promise.resolve(1))); - - ==== b.ts (0 errors) ==== - export default async () => { return 0; }; - --==== c.ts (1 errors) ==== -+==== c.ts (2 errors) ==== - import { async, await } from 'asyncawait'; - ~~~~~ - !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -+ ~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. - export default async(); - --==== d.ts (1 errors) ==== -+==== d.ts (2 errors) ==== - import { async, await } from 'asyncawait'; - ~~~~~ - !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -+ ~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. - - export default async; - --==== e.ts (1 errors) ==== -+==== e.ts (2 errors) ==== - import { async, await } from 'asyncawait'; - ~~~~~ - !!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -+ ~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'asyncawait' or its corresponding type declarations. - - export default async - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.js b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.js index 11973c9b17..7eb390e8ad 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.js @@ -5,23 +5,23 @@ export function async(...args: any[]): any { } export function await(...args: any[]): any { } //// [a.ts] -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async(() => await(Promise.resolve(1))); //// [b.ts] export default async () => { return 0; }; //// [c.ts] -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async(); //// [d.ts] -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async; //// [e.ts] -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async @@ -31,17 +31,17 @@ export function foo() { } export function async(...args) { } export function await(...args) { } //// [a.js] -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async(() => await(Promise.resolve(1))); //// [b.js] export default async () => { return 0; }; //// [c.js] -import { async } from 'asyncawait'; +import { async } from './asyncawait'; export default async(); //// [d.js] -import { async } from 'asyncawait'; +import { async } from './asyncawait'; export default async; //// [e.js] -import { async } from 'asyncawait'; +import { async } from './asyncawait'; export default async; export function foo() { } diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.js.diff index f0f7d71fad..cf54430fba 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.js.diff @@ -1,7 +1,7 @@ --- old.exportDefaultAsyncFunction2.js +++ new.exportDefaultAsyncFunction2.js @@= skipped -33, +33 lines =@@ - import { async, await } from 'asyncawait'; + import { async, await } from './asyncawait'; export default async(() => await(Promise.resolve(1))); //// [b.js] -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -16,5 +16,5 @@ -export default () => __awaiter(void 0, void 0, void 0, function* () { return 0; }); +export default async () => { return 0; }; //// [c.js] - import { async } from 'asyncawait'; + import { async } from './asyncawait'; export default async(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.symbols b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.symbols index 04733e02f0..449e44d6e4 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.symbols +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.symbols @@ -11,7 +11,7 @@ export function await(...args: any[]): any { } >args : Symbol(args, Decl(asyncawait.ts, 1, 22)) === a.ts === -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; >async : Symbol(async, Decl(a.ts, 0, 8)) >await : Symbol(await, Decl(a.ts, 0, 15)) @@ -27,7 +27,7 @@ export default async(() => await(Promise.resolve(1))); export default async () => { return 0; }; === c.ts === -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; >async : Symbol(async, Decl(c.ts, 0, 8)) >await : Symbol(await, Decl(c.ts, 0, 15)) @@ -35,7 +35,7 @@ export default async(); >async : Symbol(async, Decl(c.ts, 0, 8)) === d.ts === -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; >async : Symbol(async, Decl(d.ts, 0, 8)) >await : Symbol(await, Decl(d.ts, 0, 15)) @@ -43,7 +43,7 @@ export default async; >async : Symbol(async, Decl(d.ts, 0, 8)) === e.ts === -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; >async : Symbol(async, Decl(e.ts, 0, 8)) >await : Symbol(await, Decl(e.ts, 0, 15)) diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.types b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.types index f8eeafbfbd..a714c4d9f8 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.types +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.types @@ -10,16 +10,16 @@ export function await(...args: any[]): any { } >args : any[] === a.ts === -import { async, await } from 'asyncawait'; ->async : any ->await : any +import { async, await } from './asyncawait'; +>async : (...args: any[]) => any +>await : (...args: any[]) => any export default async(() => await(Promise.resolve(1))); >async(() => await(Promise.resolve(1))) : any ->async : any +>async : (...args: any[]) => any >() => await(Promise.resolve(1)) : () => any >await(Promise.resolve(1)) : any ->await : any +>await : (...args: any[]) => any >Promise.resolve(1) : Promise >Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } >Promise : PromiseConstructor @@ -32,29 +32,29 @@ export default async () => { return 0; }; >0 : 0 === c.ts === -import { async, await } from 'asyncawait'; ->async : any ->await : any +import { async, await } from './asyncawait'; +>async : (...args: any[]) => any +>await : (...args: any[]) => any export default async(); >async() : any ->async : any +>async : (...args: any[]) => any === d.ts === -import { async, await } from 'asyncawait'; ->async : any ->await : any +import { async, await } from './asyncawait'; +>async : (...args: any[]) => any +>await : (...args: any[]) => any export default async; ->async : any +>async : (...args: any[]) => any === e.ts === -import { async, await } from 'asyncawait'; ->async : any ->await : any +import { async, await } from './asyncawait'; +>async : (...args: any[]) => any +>await : (...args: any[]) => any export default async ->async : any +>async : (...args: any[]) => any export function foo() { } >foo : () => void diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.types.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.types.diff deleted file mode 100644 index a53c409e2e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultAsyncFunction2.types.diff +++ /dev/null @@ -1,60 +0,0 @@ ---- old.exportDefaultAsyncFunction2.types -+++ new.exportDefaultAsyncFunction2.types -@@= skipped -10, +10 lines =@@ - - === a.ts === - import { async, await } from 'asyncawait'; -->async : (...args: any[]) => any -->await : (...args: any[]) => any -+>async : any -+>await : any - - export default async(() => await(Promise.resolve(1))); - >async(() => await(Promise.resolve(1))) : any -->async : (...args: any[]) => any -+>async : any - >() => await(Promise.resolve(1)) : () => any - >await(Promise.resolve(1)) : any -->await : (...args: any[]) => any -+>await : any - >Promise.resolve(1) : Promise - >Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } - >Promise : PromiseConstructor -@@= skipped -22, +22 lines =@@ - - === c.ts === - import { async, await } from 'asyncawait'; -->async : (...args: any[]) => any -->await : (...args: any[]) => any -+>async : any -+>await : any - - export default async(); - >async() : any -->async : (...args: any[]) => any -+>async : any - - === d.ts === - import { async, await } from 'asyncawait'; -->async : (...args: any[]) => any -->await : (...args: any[]) => any -+>async : any -+>await : any - - export default async; -->async : (...args: any[]) => any -+>async : any - - === e.ts === - import { async, await } from 'asyncawait'; -->async : (...args: any[]) => any -->await : (...args: any[]) => any -+>async : any -+>await : any - - export default async -->async : (...args: any[]) => any -+>async : any - - export function foo() { } - >foo : () => void \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js b/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js index 077ffd357f..6d4537de90 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js @@ -11,11 +11,14 @@ export { aa as default } from './hi' //// [exportDefaultDuplicateCrash.js] "use strict"; // #38214 +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; exports.default = default_1; function default_1() { } const hi_1 = require("./hi"); -Object.defineProperty(exports, "default", { enumerable: true, get: function () { return hi_1.default; } }); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(hi_1).default; } }); const hi_2 = require("./hi"); Object.defineProperty(exports, "default", { enumerable: true, get: function () { return hi_2.aa; } }); diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js.diff index d457f0ef4e..b758f1f6eb 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js.diff @@ -1,12 +1,12 @@ --- old.exportDefaultDuplicateCrash.js +++ new.exportDefaultDuplicateCrash.js -@@= skipped -14, +14 lines =@@ +@@= skipped -17, +17 lines =@@ exports.default = void 0; exports.default = default_1; function default_1() { } -var hi_1 = require("./hi"); +const hi_1 = require("./hi"); - Object.defineProperty(exports, "default", { enumerable: true, get: function () { return hi_1.default; } }); + Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(hi_1).default; } }); -var hi_2 = require("./hi"); +const hi_2 = require("./hi"); Object.defineProperty(exports, "default", { enumerable: true, get: function () { return hi_2.aa; } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultMarksIdentifierAsUsed.js b/testdata/baselines/reference/submodule/compiler/exportDefaultMarksIdentifierAsUsed.js index 5772dcfa15..6062f3a06e 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultMarksIdentifierAsUsed.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultMarksIdentifierAsUsed.js @@ -15,6 +15,9 @@ const Obj = {}; exports.default = Obj; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); a_1.default.fn = function () { }; diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultProperty.js b/testdata/baselines/reference/submodule/compiler/exportDefaultProperty.js index 17fc65677f..ed36cac0c8 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultProperty.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultProperty.js @@ -59,13 +59,16 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = "foo".length; //// [index.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); /// -const foobar_1 = require("foobar"); -const foobarx_1 = require("foobarx"); +const foobar_1 = __importDefault(require("foobar")); +const foobarx_1 = __importDefault(require("foobarx")); const x = X; const x2 = foobarx_1.default; -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); const b = new a_1.default(a_1.default.b); -const b_1 = require("./b"); +const b_1 = __importDefault(require("./b")); b_1.default + 1; diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultProperty.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultProperty.js.diff index 94bf307b34..af236e3409 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultProperty.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultProperty.js.diff @@ -1,19 +1,19 @@ --- old.exportDefaultProperty.js +++ new.exportDefaultProperty.js -@@= skipped -60, +60 lines =@@ - "use strict"; +@@= skipped -63, +63 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); /// --var foobar_1 = require("foobar"); +-var foobar_1 = __importDefault(require("foobar")); -var X = foobar_1.default.X; --var foobarx_1 = require("foobarx"); -+const foobar_1 = require("foobar"); -+const foobarx_1 = require("foobarx"); +-var foobarx_1 = __importDefault(require("foobarx")); ++const foobar_1 = __importDefault(require("foobar")); ++const foobarx_1 = __importDefault(require("foobarx")); const x = X; const x2 = foobarx_1.default; --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); const b = new a_1.default(a_1.default.b); --var b_1 = require("./b"); -+const b_1 = require("./b"); +-var b_1 = __importDefault(require("./b")); ++const b_1 = __importDefault(require("./b")); b_1.default + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultProperty2.js b/testdata/baselines/reference/submodule/compiler/exportDefaultProperty2.js index 2ce5168afb..ae60a12e62 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultProperty2.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultProperty2.js @@ -24,6 +24,9 @@ class C { exports.default = C.B; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); const x = { c: a_1.default }; diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultProperty2.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultProperty2.js.diff index 5fa7c36278..1590d2038f 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultProperty2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultProperty2.js.diff @@ -8,8 +8,10 @@ } exports.default = C.B; //// [b.js] - "use strict"; +@@= skipped -8, +9 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); const x = { c: a_1.default }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultQualifiedNameNoError.js b/testdata/baselines/reference/submodule/compiler/exportDefaultQualifiedNameNoError.js index 872a5ea6c1..4bdb830f31 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultQualifiedNameNoError.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultQualifiedNameNoError.js @@ -17,6 +17,9 @@ class C { exports.default = C.x; //// [usage.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const code_1 = require("./code"); +const code_1 = __importDefault(require("./code")); void code_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultQualifiedNameNoError.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultQualifiedNameNoError.js.diff index f804de7c97..3fc32e21b4 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultQualifiedNameNoError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultQualifiedNameNoError.js.diff @@ -16,8 +16,10 @@ ; exports.default = C.x; //// [usage.js] - "use strict"; +@@= skipped -14, +11 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var code_1 = require("./code"); -+const code_1 = require("./code"); +-var code_1 = __importDefault(require("./code")); ++const code_1 = __importDefault(require("./code")); void code_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultStripsFreshness.js b/testdata/baselines/reference/submodule/compiler/exportDefaultStripsFreshness.js index 2551e73853..bca09b3e5d 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultStripsFreshness.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultStripsFreshness.js @@ -35,8 +35,41 @@ exports.q = { }; //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const items_1 = require("./items"); +const items_1 = __importStar(require("./items")); function nFoo(x) { } nFoo(items_1.q); // for comparison nFoo(items_1.default); diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultStripsFreshness.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultStripsFreshness.js.diff index 71b68e2ef9..e047563812 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultStripsFreshness.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultStripsFreshness.js.diff @@ -1,11 +1,11 @@ --- old.exportDefaultStripsFreshness.js +++ new.exportDefaultStripsFreshness.js -@@= skipped -35, +35 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -68, +68 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var items_1 = require("./items"); -+const items_1 = require("./items"); +-var items_1 = __importStar(require("./items")); ++const items_1 = __importStar(require("./items")); function nFoo(x) { } nFoo(items_1.q); // for comparison nFoo(items_1.default); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.errors.txt b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.errors.txt new file mode 100644 index 0000000000..0678fe7039 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.errors.txt @@ -0,0 +1,25 @@ +exportEqualErrorType_1.ts(3,23): error TS2339: Property 'static' does not exist on type '{ (): connectExport; foo: Date; }'. + + +==== exportEqualErrorType_1.ts (1 errors) ==== + /// + import connect = require('./exportEqualErrorType_0'); + connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. + ~~~~~~ +!!! error TS2339: Property 'static' does not exist on type '{ (): connectExport; foo: Date; }'. + +==== exportEqualErrorType_0.ts (0 errors) ==== + module server { + export interface connectModule { + (res, req, next): void; + } + export interface connectExport { + use: (mod: connectModule) => connectExport; + } + } + var server: { + (): server.connectExport; + foo: Date; + }; + export = server; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.js b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.js new file mode 100644 index 0000000000..448996e01f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.js @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/exportEqualErrorType.ts] //// + +//// [exportEqualErrorType_0.ts] +module server { + export interface connectModule { + (res, req, next): void; + } + export interface connectExport { + use: (mod: connectModule) => connectExport; + } +} +var server: { + (): server.connectExport; + foo: Date; +}; +export = server; + +//// [exportEqualErrorType_1.ts] +/// +import connect = require('./exportEqualErrorType_0'); +connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. + + +//// [exportEqualErrorType_0.js] +"use strict"; +var server; +module.exports = server; +//// [exportEqualErrorType_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/// +const connect = require("./exportEqualErrorType_0"); +connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. diff --git a/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.js.diff b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.js.diff new file mode 100644 index 0000000000..1f7489d16a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.js.diff @@ -0,0 +1,9 @@ +--- old.exportEqualErrorType.js ++++ new.exportEqualErrorType.js +@@= skipped -28, +28 lines =@@ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /// +-var connect = require("./exportEqualErrorType_0"); ++const connect = require("./exportEqualErrorType_0"); + connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.symbols b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.symbols new file mode 100644 index 0000000000..d31bd04ec8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/exportEqualErrorType.ts] //// + +=== exportEqualErrorType_1.ts === +/// +import connect = require('./exportEqualErrorType_0'); +>connect : Symbol(connect, Decl(exportEqualErrorType_1.ts, 0, 0)) + +connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. +>connect().use : Symbol(connect.connectExport.use, Decl(exportEqualErrorType_0.ts, 4, 36)) +>connect : Symbol(connect, Decl(exportEqualErrorType_1.ts, 0, 0)) +>use : Symbol(connect.connectExport.use, Decl(exportEqualErrorType_0.ts, 4, 36)) +>connect : Symbol(connect, Decl(exportEqualErrorType_1.ts, 0, 0)) + +=== exportEqualErrorType_0.ts === +module server { +>server : Symbol(server, Decl(exportEqualErrorType_0.ts, 0, 0), Decl(exportEqualErrorType_0.ts, 8, 3)) + + export interface connectModule { +>connectModule : Symbol(connectModule, Decl(exportEqualErrorType_0.ts, 0, 15)) + + (res, req, next): void; +>res : Symbol(res, Decl(exportEqualErrorType_0.ts, 2, 9)) +>req : Symbol(req, Decl(exportEqualErrorType_0.ts, 2, 13)) +>next : Symbol(next, Decl(exportEqualErrorType_0.ts, 2, 18)) + } + export interface connectExport { +>connectExport : Symbol(connectExport, Decl(exportEqualErrorType_0.ts, 3, 5)) + + use: (mod: connectModule) => connectExport; +>use : Symbol(connectExport.use, Decl(exportEqualErrorType_0.ts, 4, 36)) +>mod : Symbol(mod, Decl(exportEqualErrorType_0.ts, 5, 14)) +>connectModule : Symbol(connectModule, Decl(exportEqualErrorType_0.ts, 0, 15)) +>connectExport : Symbol(connectExport, Decl(exportEqualErrorType_0.ts, 3, 5)) + } +} +var server: { +>server : Symbol(server, Decl(exportEqualErrorType_0.ts, 0, 0), Decl(exportEqualErrorType_0.ts, 8, 3)) + + (): server.connectExport; +>server : Symbol(server, Decl(exportEqualErrorType_0.ts, 0, 0), Decl(exportEqualErrorType_0.ts, 8, 3)) +>connectExport : Symbol(server.connectExport, Decl(exportEqualErrorType_0.ts, 3, 5)) + + foo: Date; +>foo : Symbol(foo, Decl(exportEqualErrorType_0.ts, 9, 29)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --)) + +}; +export = server; +>server : Symbol(server, Decl(exportEqualErrorType_0.ts, 0, 0), Decl(exportEqualErrorType_0.ts, 8, 3)) + diff --git a/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.types b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.types new file mode 100644 index 0000000000..cc29313770 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.types @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/exportEqualErrorType.ts] //// + +=== exportEqualErrorType_1.ts === +/// +import connect = require('./exportEqualErrorType_0'); +>connect : { (): connect.connectExport; foo: Date; } + +connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. +>connect().use(connect.static('foo')) : connect.connectExport +>connect().use : (mod: connect.connectModule) => connect.connectExport +>connect() : connect.connectExport +>connect : { (): connect.connectExport; foo: Date; } +>use : (mod: connect.connectModule) => connect.connectExport +>connect.static('foo') : any +>connect.static : any +>connect : { (): connect.connectExport; foo: Date; } +>static : any +>'foo' : "foo" + +=== exportEqualErrorType_0.ts === +module server { + export interface connectModule { + (res, req, next): void; +>res : any +>req : any +>next : any + } + export interface connectExport { + use: (mod: connectModule) => connectExport; +>use : (mod: connectModule) => connectExport +>mod : connectModule + } +} +var server: { +>server : { (): import("exportEqualErrorType_0").connectExport; foo: Date; } + + (): server.connectExport; +>server : any + + foo: Date; +>foo : Date + +}; +export = server; +>server : { (): import("exportEqualErrorType_0").connectExport; foo: Date; } + diff --git a/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.types.diff b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.types.diff new file mode 100644 index 0000000000..1b92508784 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportEqualErrorType.types.diff @@ -0,0 +1,18 @@ +--- old.exportEqualErrorType.types ++++ new.exportEqualErrorType.types +@@= skipped -31, +31 lines =@@ + } + } + var server: { +->server : { (): server.connectExport; foo: Date; } ++>server : { (): import("exportEqualErrorType_0").connectExport; foo: Date; } + + (): server.connectExport; + >server : any +@@= skipped -10, +10 lines =@@ + + }; + export = server; +->server : { (): server.connectExport; foo: Date; } ++>server : { (): import("exportEqualErrorType_0").connectExport; foo: Date; } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportEqualsDefaultProperty.js b/testdata/baselines/reference/submodule/compiler/exportEqualsDefaultProperty.js index ef59eb4d24..f2c3a6bb85 100644 --- a/testdata/baselines/reference/submodule/compiler/exportEqualsDefaultProperty.js +++ b/testdata/baselines/reference/submodule/compiler/exportEqualsDefaultProperty.js @@ -22,6 +22,9 @@ var x = { module.exports = x; //// [imp.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const exp_1 = require("./exp"); +const exp_1 = __importDefault(require("./exp")); exp_1.default.toExponential(2); diff --git a/testdata/baselines/reference/submodule/compiler/exportEqualsDefaultProperty.js.diff b/testdata/baselines/reference/submodule/compiler/exportEqualsDefaultProperty.js.diff index 2c9c620c5f..0d1643296a 100644 --- a/testdata/baselines/reference/submodule/compiler/exportEqualsDefaultProperty.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportEqualsDefaultProperty.js.diff @@ -1,9 +1,9 @@ --- old.exportEqualsDefaultProperty.js +++ new.exportEqualsDefaultProperty.js -@@= skipped -22, +22 lines =@@ - //// [imp.js] - "use strict"; +@@= skipped -25, +25 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var exp_1 = require("./exp"); -+const exp_1 = require("./exp"); +-var exp_1 = __importDefault(require("./exp")); ++const exp_1 = __importDefault(require("./exp")); exp_1.default.toExponential(2); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.errors.txt b/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.errors.txt new file mode 100644 index 0000000000..d81f9c5566 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.errors.txt @@ -0,0 +1,12 @@ +exportSameNameFuncVar.ts(1,12): error TS2300: Duplicate identifier 'a'. +exportSameNameFuncVar.ts(2,17): error TS2300: Duplicate identifier 'a'. + + +==== exportSameNameFuncVar.ts (2 errors) ==== + export var a = 10; + ~ +!!! error TS2300: Duplicate identifier 'a'. + export function a() { + ~ +!!! error TS2300: Duplicate identifier 'a'. + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.js b/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.js new file mode 100644 index 0000000000..88272ae169 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/exportSameNameFuncVar.ts] //// + +//// [exportSameNameFuncVar.ts] +export var a = 10; +export function a() { +} + +//// [exportSameNameFuncVar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = a; +exports.a = 10; +function a() { +} diff --git a/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.symbols b/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.symbols new file mode 100644 index 0000000000..de081aa7ac --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/exportSameNameFuncVar.ts] //// + +=== exportSameNameFuncVar.ts === +export var a = 10; +>a : Symbol(a, Decl(exportSameNameFuncVar.ts, 0, 10)) + +export function a() { +>a : Symbol(a, Decl(exportSameNameFuncVar.ts, 0, 18)) +} diff --git a/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.types b/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.types new file mode 100644 index 0000000000..5181ca6b76 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportSameNameFuncVar.types @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/exportSameNameFuncVar.ts] //// + +=== exportSameNameFuncVar.ts === +export var a = 10; +>a : number +>10 : 10 + +export function a() { +>a : () => void +} diff --git a/testdata/baselines/reference/submodule/compiler/exportStarFromEmptyModule.js b/testdata/baselines/reference/submodule/compiler/exportStarFromEmptyModule.js index f86e7b7e9a..1be8a70041 100644 --- a/testdata/baselines/reference/submodule/compiler/exportStarFromEmptyModule.js +++ b/testdata/baselines/reference/submodule/compiler/exportStarFromEmptyModule.js @@ -58,8 +58,41 @@ class A { exports.A = A; //// [exportStarFromEmptyModule_module4.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const X = require("./exportStarFromEmptyModule_module3"); +const X = __importStar(require("./exportStarFromEmptyModule_module3")); var s; X.A.q; X.A.r; // Error diff --git a/testdata/baselines/reference/submodule/compiler/exportStarFromEmptyModule.js.diff b/testdata/baselines/reference/submodule/compiler/exportStarFromEmptyModule.js.diff index 7c33e43513..10f9a6049f 100644 --- a/testdata/baselines/reference/submodule/compiler/exportStarFromEmptyModule.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportStarFromEmptyModule.js.diff @@ -16,10 +16,12 @@ } exports.A = A; //// [exportStarFromEmptyModule_module4.js] - "use strict"; +@@= skipped -38, +39 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var X = require("./exportStarFromEmptyModule_module3"); -+const X = require("./exportStarFromEmptyModule_module3"); +-var X = __importStar(require("./exportStarFromEmptyModule_module3")); ++const X = __importStar(require("./exportStarFromEmptyModule_module3")); var s; X.A.q; X.A.r; // Error \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportStarNotElided.js b/testdata/baselines/reference/submodule/compiler/exportStarNotElided.js index ba721257eb..dabe577d9d 100644 --- a/testdata/baselines/reference/submodule/compiler/exportStarNotElided.js +++ b/testdata/baselines/reference/submodule/compiler/exportStarNotElided.js @@ -34,14 +34,36 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi if (k2 === undefined) k2 = k; o[k2] = m[k]; })); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.aliased = void 0; __exportStar(require("./register"), exports); __exportStar(require("./data1"), exports); -exports.aliased = require("./data1"); +exports.aliased = __importStar(require("./data1")); //// [data1.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/exportStarNotElided.js.diff b/testdata/baselines/reference/submodule/compiler/exportStarNotElided.js.diff index 713223991b..fd2907710b 100644 --- a/testdata/baselines/reference/submodule/compiler/exportStarNotElided.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportStarNotElided.js.diff @@ -1,6 +1,6 @@ --- old.exportStarNotElided.js +++ new.exportStarNotElided.js -@@= skipped -44, +44 lines =@@ +@@= skipped -66, +66 lines =@@ //// [data1.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.errors.txt b/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.errors.txt new file mode 100644 index 0000000000..d6069e99b6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.errors.txt @@ -0,0 +1,52 @@ +exportedBlockScopedDeclarations.ts(1,13): error TS2448: Block-scoped variable 'foo' used before its declaration. +exportedBlockScopedDeclarations.ts(2,20): error TS2448: Block-scoped variable 'bar' used before its declaration. +exportedBlockScopedDeclarations.ts(4,15): error TS2448: Block-scoped variable 'bar' used before its declaration. +exportedBlockScopedDeclarations.ts(7,22): error TS2448: Block-scoped variable 'bar' used before its declaration. +exportedBlockScopedDeclarations.ts(10,12): error TS2448: Block-scoped variable 'foo1' used before its declaration. +exportedBlockScopedDeclarations.ts(11,19): error TS2448: Block-scoped variable 'bar1' used before its declaration. +exportedBlockScopedDeclarations.ts(13,14): error TS2448: Block-scoped variable 'bar1' used before its declaration. +exportedBlockScopedDeclarations.ts(16,21): error TS2448: Block-scoped variable 'bar1' used before its declaration. + + +==== exportedBlockScopedDeclarations.ts (8 errors) ==== + const foo = foo; // compile error + ~~~ +!!! error TS2448: Block-scoped variable 'foo' used before its declaration. +!!! related TS2728 exportedBlockScopedDeclarations.ts:1:7: 'foo' is declared here. + export const bar = bar; // should be compile error + ~~~ +!!! error TS2448: Block-scoped variable 'bar' used before its declaration. +!!! related TS2728 exportedBlockScopedDeclarations.ts:2:14: 'bar' is declared here. + function f() { + const bar = bar; // compile error + ~~~ +!!! error TS2448: Block-scoped variable 'bar' used before its declaration. +!!! related TS2728 exportedBlockScopedDeclarations.ts:4:9: 'bar' is declared here. + } + namespace NS { + export const bar = bar; // should be compile error + ~~~ +!!! error TS2448: Block-scoped variable 'bar' used before its declaration. +!!! related TS2728 exportedBlockScopedDeclarations.ts:7:16: 'bar' is declared here. + } + + let foo1 = foo1; // compile error + ~~~~ +!!! error TS2448: Block-scoped variable 'foo1' used before its declaration. +!!! related TS2728 exportedBlockScopedDeclarations.ts:10:5: 'foo1' is declared here. + export let bar1 = bar1; // should be compile error + ~~~~ +!!! error TS2448: Block-scoped variable 'bar1' used before its declaration. +!!! related TS2728 exportedBlockScopedDeclarations.ts:11:12: 'bar1' is declared here. + function f1() { + let bar1 = bar1; // compile error + ~~~~ +!!! error TS2448: Block-scoped variable 'bar1' used before its declaration. +!!! related TS2728 exportedBlockScopedDeclarations.ts:13:7: 'bar1' is declared here. + } + namespace NS1 { + export let bar1 = bar1; // should be compile error + ~~~~ +!!! error TS2448: Block-scoped variable 'bar1' used before its declaration. +!!! related TS2728 exportedBlockScopedDeclarations.ts:16:14: 'bar1' is declared here. + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.js b/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.js new file mode 100644 index 0000000000..93aa3f0d54 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/exportedBlockScopedDeclarations.ts] //// + +//// [exportedBlockScopedDeclarations.ts] +const foo = foo; // compile error +export const bar = bar; // should be compile error +function f() { + const bar = bar; // compile error +} +namespace NS { + export const bar = bar; // should be compile error +} + +let foo1 = foo1; // compile error +export let bar1 = bar1; // should be compile error +function f1() { + let bar1 = bar1; // compile error +} +namespace NS1 { + export let bar1 = bar1; // should be compile error +} + +//// [exportedBlockScopedDeclarations.js] +const foo = foo; // compile error +export const bar = bar; // should be compile error +function f() { + const bar = bar; // compile error +} +var NS; +(function (NS) { + NS.bar = NS.bar; // should be compile error +})(NS || (NS = {})); +let foo1 = foo1; // compile error +export let bar1 = bar1; // should be compile error +function f1() { + let bar1 = bar1; // compile error +} +var NS1; +(function (NS1) { + NS1.bar1 = NS1.bar1; // should be compile error +})(NS1 || (NS1 = {})); diff --git a/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.symbols b/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.symbols new file mode 100644 index 0000000000..dab45564d4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/exportedBlockScopedDeclarations.ts] //// + +=== exportedBlockScopedDeclarations.ts === +const foo = foo; // compile error +>foo : Symbol(foo, Decl(exportedBlockScopedDeclarations.ts, 0, 5)) +>foo : Symbol(foo, Decl(exportedBlockScopedDeclarations.ts, 0, 5)) + +export const bar = bar; // should be compile error +>bar : Symbol(bar, Decl(exportedBlockScopedDeclarations.ts, 1, 12)) +>bar : Symbol(bar, Decl(exportedBlockScopedDeclarations.ts, 1, 12)) + +function f() { +>f : Symbol(f, Decl(exportedBlockScopedDeclarations.ts, 1, 23)) + + const bar = bar; // compile error +>bar : Symbol(bar, Decl(exportedBlockScopedDeclarations.ts, 3, 7)) +>bar : Symbol(bar, Decl(exportedBlockScopedDeclarations.ts, 3, 7)) +} +namespace NS { +>NS : Symbol(NS, Decl(exportedBlockScopedDeclarations.ts, 4, 1)) + + export const bar = bar; // should be compile error +>bar : Symbol(bar, Decl(exportedBlockScopedDeclarations.ts, 6, 14)) +>bar : Symbol(bar, Decl(exportedBlockScopedDeclarations.ts, 6, 14)) +} + +let foo1 = foo1; // compile error +>foo1 : Symbol(foo1, Decl(exportedBlockScopedDeclarations.ts, 9, 3)) +>foo1 : Symbol(foo1, Decl(exportedBlockScopedDeclarations.ts, 9, 3)) + +export let bar1 = bar1; // should be compile error +>bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 10, 10)) +>bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 10, 10)) + +function f1() { +>f1 : Symbol(f1, Decl(exportedBlockScopedDeclarations.ts, 10, 23)) + + let bar1 = bar1; // compile error +>bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 12, 5)) +>bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 12, 5)) +} +namespace NS1 { +>NS1 : Symbol(NS1, Decl(exportedBlockScopedDeclarations.ts, 13, 1)) + + export let bar1 = bar1; // should be compile error +>bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 15, 12)) +>bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 15, 12)) +} diff --git a/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.types b/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.types new file mode 100644 index 0000000000..74e9636f30 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/exportedBlockScopedDeclarations.types @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/exportedBlockScopedDeclarations.ts] //// + +=== exportedBlockScopedDeclarations.ts === +const foo = foo; // compile error +>foo : any +>foo : any + +export const bar = bar; // should be compile error +>bar : any +>bar : any + +function f() { +>f : () => void + + const bar = bar; // compile error +>bar : any +>bar : any +} +namespace NS { +>NS : typeof NS + + export const bar = bar; // should be compile error +>bar : any +>bar : any +} + +let foo1 = foo1; // compile error +>foo1 : any +>foo1 : any + +export let bar1 = bar1; // should be compile error +>bar1 : any +>bar1 : any + +function f1() { +>f1 : () => void + + let bar1 = bar1; // compile error +>bar1 : any +>bar1 : any +} +namespace NS1 { +>NS1 : typeof NS1 + + export let bar1 = bar1; // should be compile error +>bar1 : any +>bar1 : any +} diff --git a/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.js b/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.js index 213472d465..f82c496d42 100644 --- a/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.js +++ b/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.js @@ -10,10 +10,43 @@ export function* foo2({ foo = yield "a" }) { //// [bar.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.foo = foo; exports.foo2 = foo2; -async function foo({ foo = await Promise.resolve().then(() => require("./bar")) }) { +async function foo({ foo = await Promise.resolve().then(() => __importStar(require("./bar"))) }) { } function* foo2({ foo = yield "a" }) { } diff --git a/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.js.diff b/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.js.diff index 2367d8dab0..aba90e7e84 100644 --- a/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.js.diff +++ b/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.js.diff @@ -1,9 +1,9 @@ --- old.expressionsForbiddenInParameterInitializers.js +++ new.expressionsForbiddenInParameterInitializers.js -@@= skipped -9, +9 lines =@@ - - //// [bar.js] - "use strict"; +@@= skipped -42, +42 lines =@@ + return result; + }; + })(); -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) { @@ -17,9 +17,9 @@ exports.foo = foo; exports.foo2 = foo2; -function foo(_a) { -- return __awaiter(this, arguments, void 0, function* ({ foo = yield Promise.resolve().then(function () { return require("./bar"); }) }) { +- return __awaiter(this, arguments, void 0, function* ({ foo = yield Promise.resolve().then(function () { return __importStar(require("./bar")); }) }) { - }); -+async function foo({ foo = await Promise.resolve().then(() => require("./bar")) }) { ++async function foo({ foo = await Promise.resolve().then(() => __importStar(require("./bar"))) }) { } function* foo2({ foo = yield "a" }) { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/extendsUntypedModule.js b/testdata/baselines/reference/submodule/compiler/extendsUntypedModule.js index 1ceeffe70d..c639862917 100644 --- a/testdata/baselines/reference/submodule/compiler/extendsUntypedModule.js +++ b/testdata/baselines/reference/submodule/compiler/extendsUntypedModule.js @@ -14,9 +14,12 @@ export class A extends Foo { } //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; -const foo_1 = require("foo"); +const foo_1 = __importDefault(require("foo")); class A extends foo_1.default { } exports.A = A; diff --git a/testdata/baselines/reference/submodule/compiler/extendsUntypedModule.js.diff b/testdata/baselines/reference/submodule/compiler/extendsUntypedModule.js.diff index d056bffce9..85b1eff8c0 100644 --- a/testdata/baselines/reference/submodule/compiler/extendsUntypedModule.js.diff +++ b/testdata/baselines/reference/submodule/compiler/extendsUntypedModule.js.diff @@ -1,11 +1,11 @@ --- old.extendsUntypedModule.js +++ new.extendsUntypedModule.js -@@= skipped -15, +15 lines =@@ - "use strict"; +@@= skipped -18, +18 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; --var foo_1 = require("foo"); -+const foo_1 = require("foo"); +-var foo_1 = __importDefault(require("foo")); ++const foo_1 = __importDefault(require("foo")); class A extends foo_1.default { } exports.A = A; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/externalModuleImmutableBindings.js b/testdata/baselines/reference/submodule/compiler/externalModuleImmutableBindings.js index 9271281edd..c74588f758 100644 --- a/testdata/baselines/reference/submodule/compiler/externalModuleImmutableBindings.js +++ b/testdata/baselines/reference/submodule/compiler/externalModuleImmutableBindings.js @@ -57,9 +57,42 @@ exports.x = void 0; exports.x = 1; //// [f2.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); // all mutations below are illegal and should be fixed -const stuff = require("./f1"); +const stuff = __importStar(require("./f1")); var n = 'baz'; stuff.x = 0; stuff['x'] = 1; diff --git a/testdata/baselines/reference/submodule/compiler/externalModuleImmutableBindings.js.diff b/testdata/baselines/reference/submodule/compiler/externalModuleImmutableBindings.js.diff index e2cc255977..b55faa2aa4 100644 --- a/testdata/baselines/reference/submodule/compiler/externalModuleImmutableBindings.js.diff +++ b/testdata/baselines/reference/submodule/compiler/externalModuleImmutableBindings.js.diff @@ -1,11 +1,11 @@ --- old.externalModuleImmutableBindings.js +++ new.externalModuleImmutableBindings.js -@@= skipped -58, +58 lines =@@ - "use strict"; +@@= skipped -91, +91 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); // all mutations below are illegal and should be fixed --var stuff = require("./f1"); -+const stuff = require("./f1"); +-var stuff = __importStar(require("./f1")); ++const stuff = __importStar(require("./f1")); var n = 'baz'; stuff.x = 0; stuff['x'] = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.errors.txt b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.errors.txt new file mode 100644 index 0000000000..048144f971 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.errors.txt @@ -0,0 +1,13 @@ +fieldAndGetterWithSameName.ts(2,5): error TS2300: Duplicate identifier 'x'. +fieldAndGetterWithSameName.ts(3,7): error TS2300: Duplicate identifier 'x'. + + +==== fieldAndGetterWithSameName.ts (2 errors) ==== + export class C { + x: number; + ~ +!!! error TS2300: Duplicate identifier 'x'. + get x(): number { return 1; } + ~ +!!! error TS2300: Duplicate identifier 'x'. + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.js b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.js new file mode 100644 index 0000000000..c4b9234c84 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/fieldAndGetterWithSameName.ts] //// + +//// [fieldAndGetterWithSameName.ts] +export class C { + x: number; + get x(): number { return 1; } +} + +//// [fieldAndGetterWithSameName.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.C = void 0; +class C { + x; + get x() { return 1; } +} +exports.C = C; diff --git a/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.js.diff b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.js.diff new file mode 100644 index 0000000000..8130ff3d15 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.js.diff @@ -0,0 +1,10 @@ +--- old.fieldAndGetterWithSameName.js ++++ new.fieldAndGetterWithSameName.js +@@= skipped -10, +10 lines =@@ + Object.defineProperty(exports, "__esModule", { value: true }); + exports.C = void 0; + class C { ++ x; + get x() { return 1; } + } + exports.C = C; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.symbols b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.symbols new file mode 100644 index 0000000000..71e5070074 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/fieldAndGetterWithSameName.ts] //// + +=== fieldAndGetterWithSameName.ts === +export class C { +>C : Symbol(C, Decl(fieldAndGetterWithSameName.ts, 0, 0)) + + x: number; +>x : Symbol(C.x, Decl(fieldAndGetterWithSameName.ts, 0, 16)) + + get x(): number { return 1; } +>x : Symbol(C.x, Decl(fieldAndGetterWithSameName.ts, 1, 14)) +} diff --git a/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.types b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.types new file mode 100644 index 0000000000..6232c8682f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/fieldAndGetterWithSameName.types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/fieldAndGetterWithSameName.ts] //// + +=== fieldAndGetterWithSameName.ts === +export class C { +>C : C + + x: number; +>x : number + + get x(): number { return 1; } +>x : number +>1 : 1 +} diff --git a/testdata/baselines/reference/submodule/compiler/genericMemberFunction.errors.txt b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.errors.txt new file mode 100644 index 0000000000..16af297523 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.errors.txt @@ -0,0 +1,34 @@ +genericMemberFunction.ts(16,5): error TS2304: Cannot find name 'a'. +genericMemberFunction.ts(17,5): error TS2304: Cannot find name 'removedFiles'. +genericMemberFunction.ts(18,12): error TS2339: Property 'removeFile' does not exist on type 'BuildResult'. + + +==== genericMemberFunction.ts (3 errors) ==== + export class BuildError{ + public parent(): FileWithErrors { + return undefined; + } + } + export class FileWithErrors{ + public errors(): BuildError[] { + return undefined; + } + public parent(): BuildResult { + return undefined; + } + } + export class BuildResult{ + public merge(other: BuildResult): void { + a.b.c.d.e.f.g = 0; + ~ +!!! error TS2304: Cannot find name 'a'. + removedFiles.forEach((each: FileWithErrors) => { + ~~~~~~~~~~~~ +!!! error TS2304: Cannot find name 'removedFiles'. + this.removeFile(each); + ~~~~~~~~~~ +!!! error TS2339: Property 'removeFile' does not exist on type 'BuildResult'. + }); + } + } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/genericMemberFunction.js b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.js new file mode 100644 index 0000000000..121c82c788 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.js @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/genericMemberFunction.ts] //// + +//// [genericMemberFunction.ts] +export class BuildError{ + public parent(): FileWithErrors { + return undefined; + } +} +export class FileWithErrors{ + public errors(): BuildError[] { + return undefined; + } + public parent(): BuildResult { + return undefined; + } +} +export class BuildResult{ + public merge(other: BuildResult): void { + a.b.c.d.e.f.g = 0; + removedFiles.forEach((each: FileWithErrors) => { + this.removeFile(each); + }); + } +} + + +//// [genericMemberFunction.js] +export class BuildError { + parent() { + return undefined; + } +} +export class FileWithErrors { + errors() { + return undefined; + } + parent() { + return undefined; + } +} +export class BuildResult { + merge(other) { + a.b.c.d.e.f.g = 0; + removedFiles.forEach((each) => { + this.removeFile(each); + }); + } +} diff --git a/testdata/baselines/reference/submodule/compiler/genericMemberFunction.symbols b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.symbols new file mode 100644 index 0000000000..8488c82bc8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.symbols @@ -0,0 +1,97 @@ +//// [tests/cases/compiler/genericMemberFunction.ts] //// + +=== genericMemberFunction.ts === +export class BuildError{ +>BuildError : Symbol(BuildError, Decl(genericMemberFunction.ts, 0, 0)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 0, 24)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 0, 26)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 0, 29)) + + public parent(): FileWithErrors { +>parent : Symbol(BuildError.parent, Decl(genericMemberFunction.ts, 0, 33)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 1, 16)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 1, 18)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 1, 16)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 1, 31)) +>FileWithErrors : Symbol(FileWithErrors, Decl(genericMemberFunction.ts, 4, 1)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 1, 16)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 1, 18)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 1, 31)) + + return undefined; +>undefined : Symbol(undefined) + } +} +export class FileWithErrors{ +>FileWithErrors : Symbol(FileWithErrors, Decl(genericMemberFunction.ts, 4, 1)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 5, 28)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 5, 30)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 5, 33)) + + public errors(): BuildError[] { +>errors : Symbol(FileWithErrors.errors, Decl(genericMemberFunction.ts, 5, 37)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 6, 16)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 6, 18)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 6, 16)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 6, 31)) +>BuildError : Symbol(BuildError, Decl(genericMemberFunction.ts, 0, 0)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 6, 16)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 6, 18)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 6, 31)) + + return undefined; +>undefined : Symbol(undefined) + } + public parent(): BuildResult { +>parent : Symbol(FileWithErrors.parent, Decl(genericMemberFunction.ts, 8, 3)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 9, 16)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 9, 18)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 9, 16)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 9, 31)) +>BuildResult : Symbol(BuildResult, Decl(genericMemberFunction.ts, 12, 1)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 9, 16)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 9, 18)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 9, 31)) + + return undefined; +>undefined : Symbol(undefined) + } +} +export class BuildResult{ +>BuildResult : Symbol(BuildResult, Decl(genericMemberFunction.ts, 12, 1)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 13, 25)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 13, 27)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 13, 30)) + + public merge(other: BuildResult): void { +>merge : Symbol(BuildResult.merge, Decl(genericMemberFunction.ts, 13, 34)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 14, 15)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 14, 17)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 14, 15)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 14, 30)) +>other : Symbol(other, Decl(genericMemberFunction.ts, 14, 34)) +>BuildResult : Symbol(BuildResult, Decl(genericMemberFunction.ts, 12, 1)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 14, 15)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 14, 17)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 14, 30)) + + a.b.c.d.e.f.g = 0; + removedFiles.forEach((each: FileWithErrors) => { +>A : Symbol(A, Decl(genericMemberFunction.ts, 16, 26)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 16, 28)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 16, 26)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 16, 41)) +>each : Symbol(each, Decl(genericMemberFunction.ts, 16, 45)) +>FileWithErrors : Symbol(FileWithErrors, Decl(genericMemberFunction.ts, 4, 1)) +>A : Symbol(A, Decl(genericMemberFunction.ts, 16, 26)) +>B : Symbol(B, Decl(genericMemberFunction.ts, 16, 28)) +>C : Symbol(C, Decl(genericMemberFunction.ts, 16, 41)) + + this.removeFile(each); +>this : Symbol(BuildResult, Decl(genericMemberFunction.ts, 12, 1)) +>each : Symbol(each, Decl(genericMemberFunction.ts, 16, 45)) + + }); + } +} + diff --git a/testdata/baselines/reference/submodule/compiler/genericMemberFunction.types b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.types new file mode 100644 index 0000000000..a203f8ffea --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.types @@ -0,0 +1,72 @@ +//// [tests/cases/compiler/genericMemberFunction.ts] //// + +=== genericMemberFunction.ts === +export class BuildError{ +>BuildError : BuildError + + public parent(): FileWithErrors { +>parent : () => FileWithErrors + + return undefined; +>undefined : undefined + } +} +export class FileWithErrors{ +>FileWithErrors : FileWithErrors + + public errors(): BuildError[] { +>errors : () => BuildError[] + + return undefined; +>undefined : undefined + } + public parent(): BuildResult { +>parent : () => BuildResult + + return undefined; +>undefined : undefined + } +} +export class BuildResult{ +>BuildResult : BuildResult + + public merge(other: BuildResult): void { +>merge : (other: BuildResult) => void +>other : BuildResult + + a.b.c.d.e.f.g = 0; +>a.b.c.d.e.f.g = 0 : 0 +>a.b.c.d.e.f.g : any +>a.b.c.d.e.f : any +>a.b.c.d.e : any +>a.b.c.d : any +>a.b.c : any +>a.b : any +>a : any +>b : any +>c : any +>d : any +>e : any +>f : any +>g : any +>0 : 0 + + removedFiles.forEach((each: FileWithErrors) => { +>removedFiles.forEach((each: FileWithErrors) => { this.removeFile(each); }) : any +>removedFiles.forEach : any +>removedFiles : any +>forEach : any +>(each: FileWithErrors) => { this.removeFile(each); } : (each: FileWithErrors) => void +>each : FileWithErrors + + this.removeFile(each); +>this.removeFile(each) : any +>this.removeFile : any +>this : this +>removeFile : any +>each : FileWithErrors + + }); + } +} + diff --git a/testdata/baselines/reference/submodule/compiler/genericMemberFunction.types.diff b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.types.diff new file mode 100644 index 0000000000..b2abff18a4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericMemberFunction.types.diff @@ -0,0 +1,11 @@ +--- old.genericMemberFunction.types ++++ new.genericMemberFunction.types +@@= skipped -30, +30 lines =@@ + >BuildResult : BuildResult + + public merge(other: BuildResult): void { +->merge : (other: BuildResult) => void ++>merge : (other: BuildResult) => void + >other : BuildResult + + a.b.c.d.e.f.g = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.errors.txt b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.errors.txt new file mode 100644 index 0000000000..80cb5a9db8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.errors.txt @@ -0,0 +1,14 @@ +genericReturnTypeFromGetter1.ts(5,18): error TS2314: Generic type 'A' requires 1 type argument(s). + + +==== genericReturnTypeFromGetter1.ts (1 errors) ==== + export interface A { + new (dbSet: DbSet): T; + } + export class DbSet { + _entityType: A; + ~ +!!! error TS2314: Generic type 'A' requires 1 type argument(s). + get entityType() { return this._entityType; } // used to ICE without return type annotation + } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.js b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.js new file mode 100644 index 0000000000..3be833d75c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/genericReturnTypeFromGetter1.ts] //// + +//// [genericReturnTypeFromGetter1.ts] +export interface A { + new (dbSet: DbSet): T; +} +export class DbSet { + _entityType: A; + get entityType() { return this._entityType; } // used to ICE without return type annotation +} + + +//// [genericReturnTypeFromGetter1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DbSet = void 0; +class DbSet { + _entityType; + get entityType() { return this._entityType; } // used to ICE without return type annotation +} +exports.DbSet = DbSet; diff --git a/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.js.diff b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.js.diff new file mode 100644 index 0000000000..fed7900e73 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.js.diff @@ -0,0 +1,10 @@ +--- old.genericReturnTypeFromGetter1.js ++++ new.genericReturnTypeFromGetter1.js +@@= skipped -14, +14 lines =@@ + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DbSet = void 0; + class DbSet { ++ _entityType; + get entityType() { return this._entityType; } // used to ICE without return type annotation + } + exports.DbSet = DbSet; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.symbols b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.symbols new file mode 100644 index 0000000000..3722433471 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.symbols @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/genericReturnTypeFromGetter1.ts] //// + +=== genericReturnTypeFromGetter1.ts === +export interface A { +>A : Symbol(A, Decl(genericReturnTypeFromGetter1.ts, 0, 0)) +>T : Symbol(T, Decl(genericReturnTypeFromGetter1.ts, 0, 19)) + + new (dbSet: DbSet): T; +>dbSet : Symbol(dbSet, Decl(genericReturnTypeFromGetter1.ts, 1, 8)) +>DbSet : Symbol(DbSet, Decl(genericReturnTypeFromGetter1.ts, 2, 1)) +>T : Symbol(T, Decl(genericReturnTypeFromGetter1.ts, 0, 19)) +>T : Symbol(T, Decl(genericReturnTypeFromGetter1.ts, 0, 19)) +} +export class DbSet { +>DbSet : Symbol(DbSet, Decl(genericReturnTypeFromGetter1.ts, 2, 1)) +>T : Symbol(T, Decl(genericReturnTypeFromGetter1.ts, 3, 19)) + + _entityType: A; +>_entityType : Symbol(DbSet._entityType, Decl(genericReturnTypeFromGetter1.ts, 3, 23)) +>A : Symbol(A, Decl(genericReturnTypeFromGetter1.ts, 0, 0)) + + get entityType() { return this._entityType; } // used to ICE without return type annotation +>entityType : Symbol(DbSet.entityType, Decl(genericReturnTypeFromGetter1.ts, 4, 19)) +>this._entityType : Symbol(DbSet._entityType, Decl(genericReturnTypeFromGetter1.ts, 3, 23)) +>this : Symbol(DbSet, Decl(genericReturnTypeFromGetter1.ts, 2, 1)) +>_entityType : Symbol(DbSet._entityType, Decl(genericReturnTypeFromGetter1.ts, 3, 23)) +} + diff --git a/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.types b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.types new file mode 100644 index 0000000000..c6d8904b05 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/genericReturnTypeFromGetter1.types @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/genericReturnTypeFromGetter1.ts] //// + +=== genericReturnTypeFromGetter1.ts === +export interface A { + new (dbSet: DbSet): T; +>dbSet : DbSet +} +export class DbSet { +>DbSet : DbSet + + _entityType: A; +>_entityType : any + + get entityType() { return this._entityType; } // used to ICE without return type annotation +>entityType : any +>this._entityType : any +>this : this +>_entityType : any +} + diff --git a/testdata/baselines/reference/submodule/compiler/giant.errors.txt b/testdata/baselines/reference/submodule/compiler/giant.errors.txt new file mode 100644 index 0000000000..47c79a67ce --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/giant.errors.txt @@ -0,0 +1,1377 @@ +giant.ts(23,12): error TS2300: Duplicate identifier 'pgF'. +giant.ts(24,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(24,20): error TS1005: '{' expected. +giant.ts(25,12): error TS2300: Duplicate identifier 'psF'. +giant.ts(26,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(26,29): error TS1005: '{' expected. +giant.ts(27,13): error TS2300: Duplicate identifier 'rgF'. +giant.ts(28,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(28,21): error TS1005: '{' expected. +giant.ts(29,13): error TS2300: Duplicate identifier 'rsF'. +giant.ts(30,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(30,30): error TS1005: '{' expected. +giant.ts(33,12): error TS2300: Duplicate identifier 'tsF'. +giant.ts(34,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(34,29): error TS1005: '{' expected. +giant.ts(35,12): error TS2300: Duplicate identifier 'tgF'. +giant.ts(36,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(36,20): error TS1005: '{' expected. +giant.ts(62,5): error TS1021: An index signature must have a type annotation. +giant.ts(63,6): error TS1096: An index signature must have exactly one parameter. +giant.ts(76,5): error TS2386: Overload signatures must all be optional or required. +giant.ts(87,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(88,20): error TS2300: Duplicate identifier 'pgF'. +giant.ts(88,24): error TS1005: '{' expected. +giant.ts(89,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(90,20): error TS2300: Duplicate identifier 'psF'. +giant.ts(90,33): error TS1005: '{' expected. +giant.ts(91,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(92,21): error TS2300: Duplicate identifier 'rgF'. +giant.ts(92,25): error TS1005: '{' expected. +giant.ts(93,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(94,21): error TS2300: Duplicate identifier 'rsF'. +giant.ts(94,34): error TS1005: '{' expected. +giant.ts(97,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(98,20): error TS2300: Duplicate identifier 'tsF'. +giant.ts(98,33): error TS1005: '{' expected. +giant.ts(99,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(100,20): error TS2300: Duplicate identifier 'tgF'. +giant.ts(100,24): error TS1005: '{' expected. +giant.ts(126,9): error TS1021: An index signature must have a type annotation. +giant.ts(127,10): error TS1096: An index signature must have exactly one parameter. +giant.ts(140,9): error TS2386: Overload signatures must all be optional or required. +giant.ts(154,39): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(166,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(167,20): error TS2300: Duplicate identifier 'pgF'. +giant.ts(167,24): error TS1005: '{' expected. +giant.ts(168,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(169,20): error TS2300: Duplicate identifier 'psF'. +giant.ts(169,33): error TS1005: '{' expected. +giant.ts(170,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(171,21): error TS2300: Duplicate identifier 'rgF'. +giant.ts(171,25): error TS1005: '{' expected. +giant.ts(172,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(173,21): error TS2300: Duplicate identifier 'rsF'. +giant.ts(173,34): error TS1005: '{' expected. +giant.ts(176,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(177,20): error TS2300: Duplicate identifier 'tsF'. +giant.ts(177,33): error TS1005: '{' expected. +giant.ts(178,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(179,20): error TS2300: Duplicate identifier 'tgF'. +giant.ts(179,24): error TS1005: '{' expected. +giant.ts(205,9): error TS1021: An index signature must have a type annotation. +giant.ts(206,10): error TS1096: An index signature must have exactly one parameter. +giant.ts(219,9): error TS2386: Overload signatures must all be optional or required. +giant.ts(233,39): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(238,35): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(240,24): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(243,21): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(244,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(245,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(245,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(246,20): error TS2300: Duplicate identifier 'pgF'. +giant.ts(247,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(247,31): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(248,20): error TS2300: Duplicate identifier 'psF'. +giant.ts(249,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(249,23): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(250,21): error TS2300: Duplicate identifier 'rgF'. +giant.ts(251,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(251,32): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(252,21): error TS2300: Duplicate identifier 'rsF'. +giant.ts(254,21): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(255,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(255,31): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(256,20): error TS2300: Duplicate identifier 'tsF'. +giant.ts(257,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(257,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(258,20): error TS2300: Duplicate identifier 'tgF'. +giant.ts(262,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(262,25): error TS1036: Statements are not allowed in ambient contexts. +giant.ts(267,30): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(281,12): error TS2300: Duplicate identifier 'pgF'. +giant.ts(282,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(282,20): error TS1005: '{' expected. +giant.ts(283,12): error TS2300: Duplicate identifier 'psF'. +giant.ts(284,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(284,29): error TS1005: '{' expected. +giant.ts(285,13): error TS2300: Duplicate identifier 'rgF'. +giant.ts(286,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(286,21): error TS1005: '{' expected. +giant.ts(287,13): error TS2300: Duplicate identifier 'rsF'. +giant.ts(288,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(288,30): error TS1005: '{' expected. +giant.ts(291,12): error TS2300: Duplicate identifier 'tsF'. +giant.ts(292,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(292,29): error TS1005: '{' expected. +giant.ts(293,12): error TS2300: Duplicate identifier 'tgF'. +giant.ts(294,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(294,20): error TS1005: '{' expected. +giant.ts(320,5): error TS1021: An index signature must have a type annotation. +giant.ts(321,6): error TS1096: An index signature must have exactly one parameter. +giant.ts(334,5): error TS2386: Overload signatures must all be optional or required. +giant.ts(345,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(346,20): error TS2300: Duplicate identifier 'pgF'. +giant.ts(346,24): error TS1005: '{' expected. +giant.ts(347,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(348,20): error TS2300: Duplicate identifier 'psF'. +giant.ts(348,33): error TS1005: '{' expected. +giant.ts(349,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(350,21): error TS2300: Duplicate identifier 'rgF'. +giant.ts(350,25): error TS1005: '{' expected. +giant.ts(351,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(352,21): error TS2300: Duplicate identifier 'rsF'. +giant.ts(352,34): error TS1005: '{' expected. +giant.ts(355,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(356,20): error TS2300: Duplicate identifier 'tsF'. +giant.ts(356,33): error TS1005: '{' expected. +giant.ts(357,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(358,20): error TS2300: Duplicate identifier 'tgF'. +giant.ts(358,24): error TS1005: '{' expected. +giant.ts(384,9): error TS1021: An index signature must have a type annotation. +giant.ts(385,10): error TS1096: An index signature must have exactly one parameter. +giant.ts(398,9): error TS2386: Overload signatures must all be optional or required. +giant.ts(412,39): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(424,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(425,20): error TS2300: Duplicate identifier 'pgF'. +giant.ts(425,24): error TS1005: '{' expected. +giant.ts(426,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(427,20): error TS2300: Duplicate identifier 'psF'. +giant.ts(427,33): error TS1005: '{' expected. +giant.ts(428,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(429,21): error TS2300: Duplicate identifier 'rgF'. +giant.ts(429,25): error TS1005: '{' expected. +giant.ts(430,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(431,21): error TS2300: Duplicate identifier 'rsF'. +giant.ts(431,34): error TS1005: '{' expected. +giant.ts(434,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(435,20): error TS2300: Duplicate identifier 'tsF'. +giant.ts(435,33): error TS1005: '{' expected. +giant.ts(436,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(437,20): error TS2300: Duplicate identifier 'tgF'. +giant.ts(437,24): error TS1005: '{' expected. +giant.ts(463,9): error TS1021: An index signature must have a type annotation. +giant.ts(464,10): error TS1096: An index signature must have exactly one parameter. +giant.ts(477,9): error TS2386: Overload signatures must all be optional or required. +giant.ts(491,39): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(496,35): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(498,24): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(501,21): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(502,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(503,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(503,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(504,20): error TS2300: Duplicate identifier 'pgF'. +giant.ts(505,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(505,31): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(506,20): error TS2300: Duplicate identifier 'psF'. +giant.ts(507,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(507,23): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(508,21): error TS2300: Duplicate identifier 'rgF'. +giant.ts(509,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(509,32): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(510,21): error TS2300: Duplicate identifier 'rsF'. +giant.ts(512,21): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(513,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(513,31): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(514,20): error TS2300: Duplicate identifier 'tsF'. +giant.ts(515,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(515,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(516,20): error TS2300: Duplicate identifier 'tgF'. +giant.ts(520,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(520,25): error TS1036: Statements are not allowed in ambient contexts. +giant.ts(525,30): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(532,31): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(534,20): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(537,17): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(538,18): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(539,12): error TS2300: Duplicate identifier 'pgF'. +giant.ts(539,18): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(540,16): error TS2300: Duplicate identifier 'pgF'. +giant.ts(541,12): error TS2300: Duplicate identifier 'psF'. +giant.ts(541,27): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(542,16): error TS2300: Duplicate identifier 'psF'. +giant.ts(543,13): error TS2300: Duplicate identifier 'rgF'. +giant.ts(543,19): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(544,17): error TS2300: Duplicate identifier 'rgF'. +giant.ts(545,13): error TS2300: Duplicate identifier 'rsF'. +giant.ts(545,28): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(546,17): error TS2300: Duplicate identifier 'rsF'. +giant.ts(548,17): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(549,12): error TS2300: Duplicate identifier 'tsF'. +giant.ts(549,27): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(550,16): error TS2300: Duplicate identifier 'tsF'. +giant.ts(551,12): error TS2300: Duplicate identifier 'tgF'. +giant.ts(551,18): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(552,16): error TS2300: Duplicate identifier 'tgF'. +giant.ts(556,18): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(556,21): error TS1036: Statements are not allowed in ambient contexts. +giant.ts(558,24): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(561,21): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(563,21): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(588,9): error TS1021: An index signature must have a type annotation. +giant.ts(589,10): error TS1096: An index signature must have exactly one parameter. +giant.ts(602,9): error TS2386: Overload signatures must all be optional or required. +giant.ts(606,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(606,25): error TS1036: Statements are not allowed in ambient contexts. +giant.ts(611,30): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(615,16): error TS1038: A 'declare' modifier cannot be used in an already ambient context. +giant.ts(616,16): error TS1038: A 'declare' modifier cannot be used in an already ambient context. +giant.ts(616,39): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(617,16): error TS1038: A 'declare' modifier cannot be used in an already ambient context. +giant.ts(618,16): error TS1038: A 'declare' modifier cannot be used in an already ambient context. +giant.ts(621,26): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(623,24): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(626,21): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(628,21): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(654,9): error TS1021: An index signature must have a type annotation. +giant.ts(655,10): error TS1096: An index signature must have exactly one parameter. +giant.ts(668,9): error TS2386: Overload signatures must all be optional or required. +giant.ts(672,22): error TS1183: An implementation cannot be declared in ambient contexts. +giant.ts(672,25): error TS1036: Statements are not allowed in ambient contexts. +giant.ts(676,30): error TS1183: An implementation cannot be declared in ambient contexts. + + +==== giant.ts (231 errors) ==== + /* + Prefixes + p -> public + r -> private + i -> import + e -> export + a -> ambient + t -> static + s -> set + g -> get + + MAX DEPTH 3 LEVELS + */ + const p = "propName"; + var V; + function F() { }; + class C { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1005: '{' expected. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1005: '{' expected. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1005: '{' expected. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1005: '{' expected. + static tV; + static tF() { } + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1005: '{' expected. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1005: '{' expected. + } + interface I { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + ~~~~~~~~~~~~~ +!!! error TS1021: An index signature must have a type annotation. + [p2: string, p3: number]; + ~~ +!!! error TS1096: An index signature must have exactly one parameter. + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + ~~ +!!! error TS2386: Overload signatures must all be optional or required. + } + module M { + var V; + function F() { }; + class C { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1005: '{' expected. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1005: '{' expected. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1005: '{' expected. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1005: '{' expected. + static tV; + static tF() { } + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1005: '{' expected. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1005: '{' expected. + } + interface I { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + ~~~~~~~~~~~~~ +!!! error TS1021: An index signature must have a type annotation. + [p2: string, p3: number]; + ~~ +!!! error TS1096: An index signature must have exactly one parameter. + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + ~~ +!!! error TS2386: Overload signatures must all be optional or required. + } + module M { + var V; + function F() { }; + class C { }; + interface I { }; + module M { }; + export var eV; + export function eF() { }; + export class eC { }; + export interface eI { }; + export module eM { }; + export declare var eaV; + export declare function eaF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export declare class eaC { }; + export declare module eaM { }; + } + export var eV; + export function eF() { }; + export class eC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1005: '{' expected. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1005: '{' expected. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1005: '{' expected. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1005: '{' expected. + static tV; + static tF() { } + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1005: '{' expected. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1005: '{' expected. + } + export interface eI { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + ~~~~~~~~~~~~~ +!!! error TS1021: An index signature must have a type annotation. + [p2: string, p3: number]; + ~~ +!!! error TS1096: An index signature must have exactly one parameter. + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + ~~ +!!! error TS2386: Overload signatures must all be optional or required. + } + export module eM { + var V; + function F() { }; + class C { }; + interface I { }; + module M { }; + export var eV; + export function eF() { }; + export class eC { }; + export interface eI { }; + export module eM { }; + export declare var eaV; + export declare function eaF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export declare class eaC { }; + export declare module eaM { }; + } + export declare var eaV; + export declare function eaF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export declare class eaC { + constructor () { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public pV; + private rV; + public pF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private rF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + static tV; + static tF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + } + export declare module eaM { + var V; + function F() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + ~ +!!! error TS1036: Statements are not allowed in ambient contexts. + class C { } + interface I { } + module M { } + export var eV; + export function eF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export class eC { } + export interface eI { } + export module eM { } + } + } + export var eV; + export function eF() { }; + export class eC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1005: '{' expected. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1005: '{' expected. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1005: '{' expected. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1005: '{' expected. + static tV; + static tF() { } + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1005: '{' expected. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1005: '{' expected. + } + export interface eI { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + ~~~~~~~~~~~~~ +!!! error TS1021: An index signature must have a type annotation. + [p2: string, p3: number]; + ~~ +!!! error TS1096: An index signature must have exactly one parameter. + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + ~~ +!!! error TS2386: Overload signatures must all be optional or required. + } + export module eM { + var V; + function F() { }; + class C { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1005: '{' expected. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1005: '{' expected. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1005: '{' expected. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1005: '{' expected. + static tV; + static tF() { } + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1005: '{' expected. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1005: '{' expected. + } + interface I { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + ~~~~~~~~~~~~~ +!!! error TS1021: An index signature must have a type annotation. + [p2: string, p3: number]; + ~~ +!!! error TS1096: An index signature must have exactly one parameter. + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + ~~ +!!! error TS2386: Overload signatures must all be optional or required. + } + module M { + var V; + function F() { }; + class C { }; + interface I { }; + module M { }; + export var eV; + export function eF() { }; + export class eC { }; + export interface eI { }; + export module eM { }; + export declare var eaV; + export declare function eaF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export declare class eaC { }; + export declare module eaM { }; + } + export var eV; + export function eF() { }; + export class eC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1005: '{' expected. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1005: '{' expected. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1005: '{' expected. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1005: '{' expected. + static tV; + static tF() { } + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1005: '{' expected. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1005: '{' expected. + } + export interface eI { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + ~~~~~~~~~~~~~ +!!! error TS1021: An index signature must have a type annotation. + [p2: string, p3: number]; + ~~ +!!! error TS1096: An index signature must have exactly one parameter. + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + ~~ +!!! error TS2386: Overload signatures must all be optional or required. + } + export module eM { + var V; + function F() { }; + class C { }; + interface I { }; + module M { }; + export var eV; + export function eF() { }; + export class eC { }; + export interface eI { }; + export module eM { }; + export declare var eaV; + export declare function eaF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export declare class eaC { }; + export declare module eaM { }; + } + export declare var eaV; + export declare function eaF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export declare class eaC { + constructor () { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public pV; + private rV; + public pF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private rF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + static tV; + static tF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + } + export declare module eaM { + var V; + function F() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + ~ +!!! error TS1036: Statements are not allowed in ambient contexts. + class C { } + interface I { } + module M { } + export var eV; + export function eF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export class eC { } + export interface eI { } + export module eM { } + } + } + export declare var eaV; + export declare function eaF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export declare class eaC { + constructor () { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public pV; + private rV; + public pF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private rF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public pgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public get pgF() + ~~~ +!!! error TS2300: Duplicate identifier 'pgF'. + public psF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public set psF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'psF'. + private rgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private get rgF() + ~~~ +!!! error TS2300: Duplicate identifier 'rgF'. + private rsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + private set rsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'rsF'. + static tV; + static tF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static tsF(param:any) { } + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static set tsF(param:any) + ~~~ +!!! error TS2300: Duplicate identifier 'tsF'. + static tgF() { } + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static get tgF() + ~~~ +!!! error TS2300: Duplicate identifier 'tgF'. + } + export declare module eaM { + var V; + function F() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + ~ +!!! error TS1036: Statements are not allowed in ambient contexts. + class C { + constructor () { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public pV; + private rV; + public pF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static tV; + static tF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + } + interface I { + //Call Signature + (); + (): number; + (p: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + ~~~~~~~~~~~~~ +!!! error TS1021: An index signature must have a type annotation. + [p2: string, p3: number]; + ~~ +!!! error TS1096: An index signature must have exactly one parameter. + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + ~~ +!!! error TS2386: Overload signatures must all be optional or required. + } + module M { + var V; + function F() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + ~ +!!! error TS1036: Statements are not allowed in ambient contexts. + class C { } + interface I { } + module M { } + export var eV; + export function eF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export class eC { } + export interface eI { } + export module eM { } + export declare var eaV + ~~~~~~~ +!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context. + export declare function eaF() { }; + ~~~~~~~ +!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context. + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export declare class eaC { } + ~~~~~~~ +!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context. + export declare module eaM { } + ~~~~~~~ +!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context. + } + export var eV; + export function eF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export class eC { + constructor () { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + public pV; + private rV; + public pF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static tV + static tF() { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + } + export interface eI { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + ~~~~~~~~~~~~~ +!!! error TS1021: An index signature must have a type annotation. + [p2: string, p3: number]; + ~~ +!!! error TS1096: An index signature must have exactly one parameter. + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + ~~ +!!! error TS2386: Overload signatures must all be optional or required. + } + export module eM { + var V; + function F() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + ~ +!!! error TS1036: Statements are not allowed in ambient contexts. + class C { } + module M { } + export var eV; + export function eF() { }; + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + export class eC { } + export interface eI { } + export module eM { } + } + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/giant.js b/testdata/baselines/reference/submodule/compiler/giant.js new file mode 100644 index 0000000000..2965b76c07 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/giant.js @@ -0,0 +1,1216 @@ +//// [tests/cases/compiler/giant.ts] //// + +//// [giant.ts] +/* + Prefixes + p -> public + r -> private + i -> import + e -> export + a -> ambient + t -> static + s -> set + g -> get + + MAX DEPTH 3 LEVELS +*/ +const p = "propName"; +var V; +function F() { }; +class C { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() +} +interface I { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + [p2: string, p3: number]; + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; +} +module M { + var V; + function F() { }; + class C { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() + } + interface I { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + [p2: string, p3: number]; + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + } + module M { + var V; + function F() { }; + class C { }; + interface I { }; + module M { }; + export var eV; + export function eF() { }; + export class eC { }; + export interface eI { }; + export module eM { }; + export declare var eaV; + export declare function eaF() { }; + export declare class eaC { }; + export declare module eaM { }; + } + export var eV; + export function eF() { }; + export class eC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() + } + export interface eI { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + [p2: string, p3: number]; + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + } + export module eM { + var V; + function F() { }; + class C { }; + interface I { }; + module M { }; + export var eV; + export function eF() { }; + export class eC { }; + export interface eI { }; + export module eM { }; + export declare var eaV; + export declare function eaF() { }; + export declare class eaC { }; + export declare module eaM { }; + } + export declare var eaV; + export declare function eaF() { }; + export declare class eaC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() + } + export declare module eaM { + var V; + function F() { }; + class C { } + interface I { } + module M { } + export var eV; + export function eF() { }; + export class eC { } + export interface eI { } + export module eM { } + } +} +export var eV; +export function eF() { }; +export class eC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() +} +export interface eI { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + [p2: string, p3: number]; + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; +} +export module eM { + var V; + function F() { }; + class C { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() + } + interface I { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + [p2: string, p3: number]; + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + } + module M { + var V; + function F() { }; + class C { }; + interface I { }; + module M { }; + export var eV; + export function eF() { }; + export class eC { }; + export interface eI { }; + export module eM { }; + export declare var eaV; + export declare function eaF() { }; + export declare class eaC { }; + export declare module eaM { }; + } + export var eV; + export function eF() { }; + export class eC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() + } + export interface eI { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + [p2: string, p3: number]; + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + } + export module eM { + var V; + function F() { }; + class C { }; + interface I { }; + module M { }; + export var eV; + export function eF() { }; + export class eC { }; + export interface eI { }; + export module eM { }; + export declare var eaV; + export declare function eaF() { }; + export declare class eaC { }; + export declare module eaM { }; + } + export declare var eaV; + export declare function eaF() { }; + export declare class eaC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() + } + export declare module eaM { + var V; + function F() { }; + class C { } + interface I { } + module M { } + export var eV; + export function eF() { }; + export class eC { } + export interface eI { } + export module eM { } + } +} +export declare var eaV; +export declare function eaF() { }; +export declare class eaC { + constructor () { } + public pV; + private rV; + public pF() { } + private rF() { } + public pgF() { } + public get pgF() + public psF(param:any) { } + public set psF(param:any) + private rgF() { } + private get rgF() + private rsF(param:any) { } + private set rsF(param:any) + static tV; + static tF() { } + static tsF(param:any) { } + static set tsF(param:any) + static tgF() { } + static get tgF() +} +export declare module eaM { + var V; + function F() { }; + class C { + constructor () { } + public pV; + private rV; + public pF() { } + static tV; + static tF() { } + } + interface I { + //Call Signature + (); + (): number; + (p: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + [p2: string, p3: number]; + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + } + module M { + var V; + function F() { }; + class C { } + interface I { } + module M { } + export var eV; + export function eF() { }; + export class eC { } + export interface eI { } + export module eM { } + export declare var eaV + export declare function eaF() { }; + export declare class eaC { } + export declare module eaM { } + } + export var eV; + export function eF() { }; + export class eC { + constructor () { } + public pV; + private rV; + public pF() { } + static tV + static tF() { } + } + export interface eI { + //Call Signature + (); + (): number; + (p); + (p1: string); + (p2?: string); + (...p3: any[]); + (p4: string, p5?: string); + (p6: string, ...p7: any[]); + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); + new (p2?: string); + new (...p3: any[]); + new (p4: string, p5?: string); + new (p6: string, ...p7: any[]); + + //Index Signature + [p]; + [p1: string]; + [p2: string, p3: number]; + + //Property Signature + p; + p1?; + p2?: string; + + //Function Signature + p3(); + p4? (); + p5? (): void; + p6(pa1): void; + p7(pa1, pa2): void; + p7? (pa1, pa2): void; + } + export module eM { + var V; + function F() { }; + class C { } + module M { } + export var eV; + export function eF() { }; + export class eC { } + export interface eI { } + export module eM { } + } +} + +//// [giant.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.eM = exports.eC = exports.eV = void 0; +exports.eF = eF; +/* + Prefixes + p -> public + r -> private + i -> import + e -> export + a -> ambient + t -> static + s -> set + g -> get + + MAX DEPTH 3 LEVELS +*/ +const p = "propName"; +var V; +function F() { } +; +class C { + constructor() { } + pV; + rV; + pF() { } + rF() { } + pgF() { } + psF(param) { } + rgF() { } + rsF(param) { } + static tV; + static tF() { } + static tsF(param) { } + static tgF() { } +} +var M; +(function (M_1) { + var V; + function F() { } + ; + class C { + constructor() { } + pV; + rV; + pF() { } + rF() { } + pgF() { } + psF(param) { } + rgF() { } + rsF(param) { } + static tV; + static tF() { } + static tsF(param) { } + static tgF() { } + } + let M; + (function (M) { + var V; + function F() { } + ; + class C { + } + ; + ; + ; + function eF() { } + M.eF = eF; + ; + class eC { + } + M.eC = eC; + ; + ; + ; + ; + ; + ; + })(M || (M = {})); + function eF() { } + M_1.eF = eF; + ; + class eC { + constructor() { } + pV; + rV; + pF() { } + rF() { } + pgF() { } + psF(param) { } + rgF() { } + rsF(param) { } + static tV; + static tF() { } + static tsF(param) { } + static tgF() { } + } + M_1.eC = eC; + let eM; + (function (eM) { + var V; + function F() { } + ; + class C { + } + ; + ; + ; + function eF() { } + eM.eF = eF; + ; + class eC { + } + eM.eC = eC; + ; + ; + ; + ; + ; + ; + })(eM = M_1.eM || (M_1.eM = {})); + ; +})(M || (M = {})); +function eF() { } +; +class eC { + constructor() { } + pV; + rV; + pF() { } + rF() { } + pgF() { } + psF(param) { } + rgF() { } + rsF(param) { } + static tV; + static tF() { } + static tsF(param) { } + static tgF() { } +} +exports.eC = eC; +var eM; +(function (eM_1) { + var V; + function F() { } + ; + class C { + constructor() { } + pV; + rV; + pF() { } + rF() { } + pgF() { } + psF(param) { } + rgF() { } + rsF(param) { } + static tV; + static tF() { } + static tsF(param) { } + static tgF() { } + } + let M; + (function (M) { + var V; + function F() { } + ; + class C { + } + ; + ; + ; + function eF() { } + M.eF = eF; + ; + class eC { + } + M.eC = eC; + ; + ; + ; + ; + ; + ; + })(M || (M = {})); + function eF() { } + eM_1.eF = eF; + ; + class eC { + constructor() { } + pV; + rV; + pF() { } + rF() { } + pgF() { } + psF(param) { } + rgF() { } + rsF(param) { } + static tV; + static tF() { } + static tsF(param) { } + static tgF() { } + } + eM_1.eC = eC; + let eM; + (function (eM) { + var V; + function F() { } + ; + class C { + } + ; + ; + ; + function eF() { } + eM.eF = eF; + ; + class eC { + } + eM.eC = eC; + ; + ; + ; + ; + ; + ; + })(eM = eM_1.eM || (eM_1.eM = {})); + ; +})(eM || (exports.eM = eM = {})); +; + + +//// [giant.d.ts] +declare const p = "propName"; +export declare var eV: any; +export declare function eF(): void; +export declare class eC { + constructor(); + pV: any; + private rV; + pF(): void; + private rF; + pgF(): void; + get pgF(): any; + psF(param: any): void; + set psF(param: any); + private rgF; + private get rgF(); + private rsF; + private set rsF(value); + static tV: any; + static tF(): void; + static tsF(param: any): void; + static set tsF(param: any); + static tgF(): void; + static get tgF(): any; +} +export interface eI { + (): any; + (): number; + (p: any): any; + (p1: string): any; + (p2?: string): any; + (...p3: any[]): any; + (p4: string, p5?: string): any; + (p6: string, ...p7: any[]): any; + new (): any; + new (): number; + new (p: string): any; + new (p2?: string): any; + new (...p3: any[]): any; + new (p4: string, p5?: string): any; + new (p6: string, ...p7: any[]): any; + [p]: any; + [p1: string]: any; + [p2: string, p3: number]: any; + p: any; + p1?: any; + p2?: string; + p3(): any; + p4?(): any; + p5?(): void; + p6(pa1: any): void; + p7(pa1: any, pa2: any): void; + p7?(pa1: any, pa2: any): void; +} +export declare namespace eM { + var eV: any; + function eF(): void; + class eC { + constructor(); + pV: any; + private rV; + pF(): void; + private rF; + pgF(): void; + get pgF(): any; + psF(param: any): void; + set psF(param: any); + private rgF; + private get rgF(); + private rsF; + private set rsF(value); + static tV: any; + static tF(): void; + static tsF(param: any): void; + static set tsF(param: any); + static tgF(): void; + static get tgF(): any; + } + interface eI { + (): any; + (): number; + (p: any): any; + (p1: string): any; + (p2?: string): any; + (...p3: any[]): any; + (p4: string, p5?: string): any; + (p6: string, ...p7: any[]): any; + new (): any; + new (): number; + new (p: string): any; + new (p2?: string): any; + new (...p3: any[]): any; + new (p4: string, p5?: string): any; + new (p6: string, ...p7: any[]): any; + [p]: any; + [p1: string]: any; + [p2: string, p3: number]: any; + p: any; + p1?: any; + p2?: string; + p3(): any; + p4?(): any; + p5?(): void; + p6(pa1: any): void; + p7(pa1: any, pa2: any): void; + p7?(pa1: any, pa2: any): void; + } + namespace eM { + var eV: any; + function eF(): void; + class eC { + } + interface eI { + } + namespace eM { } + var eaV: any; + function eaF(): void; + class eaC { + } + namespace eaM { } + } + var eaV: any; + function eaF(): void; + class eaC { + constructor(); + pV: any; + private rV; + pF(): void; + private rF; + pgF(): void; + get pgF(): any; + psF(param: any): void; + set psF(param: any); + private rgF; + private get rgF(); + private rsF; + private set rsF(value); + static tV: any; + static tF(): void; + static tsF(param: any): void; + static set tsF(param: any); + static tgF(): void; + static get tgF(): any; + } + namespace eaM { + var V: any; + function F(): void; + class C { + } + interface I { + } + namespace M { } + var eV: any; + function eF(): void; + class eC { + } + interface eI { + } + namespace eM { } + } +} +export declare var eaV: any; +export declare function eaF(): void; +export declare class eaC { + constructor(); + pV: any; + private rV; + pF(): void; + private rF; + pgF(): void; + get pgF(): any; + psF(param: any): void; + set psF(param: any); + private rgF; + private get rgF(); + private rsF; + private set rsF(value); + static tV: any; + static tF(): void; + static tsF(param: any): void; + static set tsF(param: any); + static tgF(): void; + static get tgF(): any; +} +export declare namespace eaM { + var V: any; + function F(): void; + class C { + constructor(); + pV: any; + private rV; + pF(): void; + static tV: any; + static tF(): void; + } + interface I { + (): any; + (): number; + (p: string): any; + (p2?: string): any; + (...p3: any[]): any; + (p4: string, p5?: string): any; + (p6: string, ...p7: any[]): any; + new (): any; + new (): number; + new (p: string): any; + new (p2?: string): any; + new (...p3: any[]): any; + new (p4: string, p5?: string): any; + new (p6: string, ...p7: any[]): any; + [p]: any; + [p1: string]: any; + [p2: string, p3: number]: any; + p: any; + p1?: any; + p2?: string; + p3(): any; + p4?(): any; + p5?(): void; + p6(pa1: any): void; + p7(pa1: any, pa2: any): void; + p7?(pa1: any, pa2: any): void; + } + namespace M { + var V: any; + function F(): void; + class C { + } + interface I { + } + namespace M { } + var eV: any; + function eF(): void; + class eC { + } + interface eI { + } + namespace eM { } + var eaV: any; + function eaF(): void; + class eaC { + } + namespace eaM { } + } + var eV: any; + function eF(): void; + class eC { + constructor(); + pV: any; + private rV; + pF(): void; + static tV: any; + static tF(): void; + } + interface eI { + (): any; + (): number; + (p: any): any; + (p1: string): any; + (p2?: string): any; + (...p3: any[]): any; + (p4: string, p5?: string): any; + (p6: string, ...p7: any[]): any; + new (): any; + new (): number; + new (p: string): any; + new (p2?: string): any; + new (...p3: any[]): any; + new (p4: string, p5?: string): any; + new (p6: string, ...p7: any[]): any; + [p]: any; + [p1: string]: any; + [p2: string, p3: number]: any; + p: any; + p1?: any; + p2?: string; + p3(): any; + p4?(): any; + p5?(): void; + p6(pa1: any): void; + p7(pa1: any, pa2: any): void; + p7?(pa1: any, pa2: any): void; + } + namespace eM { + var V: any; + function F(): void; + class C { + } + namespace M { } + var eV: any; + function eF(): void; + class eC { + } + interface eI { + } + namespace eM { } + } +} +export {}; diff --git a/testdata/baselines/reference/submodule/compiler/giant.js.diff b/testdata/baselines/reference/submodule/compiler/giant.js.diff new file mode 100644 index 0000000000..60f469762b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/giant.js.diff @@ -0,0 +1,152 @@ +--- old.giant.js ++++ new.giant.js +@@= skipped -706, +706 lines =@@ + ; + class C { + constructor() { } ++ pV; ++ rV; + pF() { } + rF() { } + pgF() { } +- get pgF() { } + psF(param) { } +- set psF(param) { } + rgF() { } +- get rgF() { } + rsF(param) { } +- set rsF(param) { } ++ static tV; + static tF() { } + static tsF(param) { } +- static set tsF(param) { } + static tgF() { } +- static get tgF() { } + } + var M; + (function (M_1) { +@@= skipped -23, +20 lines =@@ + ; + class C { + constructor() { } ++ pV; ++ rV; + pF() { } + rF() { } + pgF() { } +- get pgF() { } + psF(param) { } +- set psF(param) { } + rgF() { } +- get rgF() { } + rsF(param) { } +- set rsF(param) { } ++ static tV; + static tF() { } + static tsF(param) { } +- static set tsF(param) { } + static tgF() { } +- static get tgF() { } + } + let M; + (function (M) { +@@= skipped -44, +41 lines =@@ + ; + class eC { + constructor() { } ++ pV; ++ rV; + pF() { } + rF() { } + pgF() { } +- get pgF() { } + psF(param) { } +- set psF(param) { } + rgF() { } +- get rgF() { } + rsF(param) { } +- set rsF(param) { } ++ static tV; + static tF() { } + static tsF(param) { } +- static set tsF(param) { } + static tgF() { } +- static get tgF() { } + } + M_1.eC = eC; + let eM; +@@= skipped -46, +43 lines =@@ + ; + class eC { + constructor() { } ++ pV; ++ rV; + pF() { } + rF() { } + pgF() { } +- get pgF() { } + psF(param) { } +- set psF(param) { } + rgF() { } +- get rgF() { } + rsF(param) { } +- set rsF(param) { } ++ static tV; + static tF() { } + static tsF(param) { } +- static set tsF(param) { } + static tgF() { } +- static get tgF() { } + } + exports.eC = eC; + var eM; +@@= skipped -24, +21 lines =@@ + ; + class C { + constructor() { } ++ pV; ++ rV; + pF() { } + rF() { } + pgF() { } +- get pgF() { } + psF(param) { } +- set psF(param) { } + rgF() { } +- get rgF() { } + rsF(param) { } +- set rsF(param) { } ++ static tV; + static tF() { } + static tsF(param) { } +- static set tsF(param) { } + static tgF() { } +- static get tgF() { } + } + let M; + (function (M) { +@@= skipped -44, +41 lines =@@ + ; + class eC { + constructor() { } ++ pV; ++ rV; + pF() { } + rF() { } + pgF() { } +- get pgF() { } + psF(param) { } +- set psF(param) { } + rgF() { } +- get rgF() { } + rsF(param) { } +- set rsF(param) { } ++ static tV; + static tF() { } + static tsF(param) { } +- static set tsF(param) { } + static tgF() { } +- static get tgF() { } + } + eM_1.eC = eC; + let eM; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/giant.symbols b/testdata/baselines/reference/submodule/compiler/giant.symbols new file mode 100644 index 0000000000..0c7d9c2b21 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/giant.symbols @@ -0,0 +1,1789 @@ +//// [tests/cases/compiler/giant.ts] //// + +=== giant.ts === +/* + Prefixes + p -> public + r -> private + i -> import + e -> export + a -> ambient + t -> static + s -> set + g -> get + + MAX DEPTH 3 LEVELS +*/ +const p = "propName"; +>p : Symbol(p, Decl(giant.ts, 13, 5)) + +var V; +>V : Symbol(V, Decl(giant.ts, 14, 3)) + +function F() { }; +>F : Symbol(F, Decl(giant.ts, 14, 6)) + +class C { +>C : Symbol(C, Decl(giant.ts, 15, 17)) + + constructor () { } + public pV; +>pV : Symbol(C.pV, Decl(giant.ts, 17, 22)) + + private rV; +>rV : Symbol(C.rV, Decl(giant.ts, 18, 14)) + + public pF() { } +>pF : Symbol(C.pF, Decl(giant.ts, 19, 15)) + + private rF() { } +>rF : Symbol(C.rF, Decl(giant.ts, 20, 19)) + + public pgF() { } +>pgF : Symbol(C.pgF, Decl(giant.ts, 21, 20)) + + public get pgF() +>pgF : Symbol(C.pgF, Decl(giant.ts, 22, 20)) + + public psF(param:any) { } +>psF : Symbol(C.psF, Decl(giant.ts, 23, 20)) +>param : Symbol(param, Decl(giant.ts, 24, 15)) + + public set psF(param:any) +>psF : Symbol(C.psF, Decl(giant.ts, 24, 29)) +>param : Symbol(param, Decl(giant.ts, 25, 19)) + + private rgF() { } +>rgF : Symbol(C.rgF, Decl(giant.ts, 25, 29)) + + private get rgF() +>rgF : Symbol(C.rgF, Decl(giant.ts, 26, 21)) + + private rsF(param:any) { } +>rsF : Symbol(C.rsF, Decl(giant.ts, 27, 21)) +>param : Symbol(param, Decl(giant.ts, 28, 16)) + + private set rsF(param:any) +>rsF : Symbol(C.rsF, Decl(giant.ts, 28, 30)) +>param : Symbol(param, Decl(giant.ts, 29, 20)) + + static tV; +>tV : Symbol(C.tV, Decl(giant.ts, 29, 30)) + + static tF() { } +>tF : Symbol(C.tF, Decl(giant.ts, 30, 14)) + + static tsF(param:any) { } +>tsF : Symbol(C.tsF, Decl(giant.ts, 31, 19)) +>param : Symbol(param, Decl(giant.ts, 32, 15)) + + static set tsF(param:any) +>tsF : Symbol(C.tsF, Decl(giant.ts, 32, 29)) +>param : Symbol(param, Decl(giant.ts, 33, 19)) + + static tgF() { } +>tgF : Symbol(C.tgF, Decl(giant.ts, 33, 29)) + + static get tgF() +>tgF : Symbol(C.tgF, Decl(giant.ts, 34, 20)) +} +interface I { +>I : Symbol(I, Decl(giant.ts, 36, 1)) + + //Call Signature + (); + (): number; + (p); +>p : Symbol(p, Decl(giant.ts, 41, 5)) + + (p1: string); +>p1 : Symbol(p1, Decl(giant.ts, 42, 5)) + + (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 43, 5)) + + (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 44, 5)) + + (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 45, 5)) +>p5 : Symbol(p5, Decl(giant.ts, 45, 16)) + + (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 46, 5)) +>p7 : Symbol(p7, Decl(giant.ts, 46, 16)) + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : Symbol(p, Decl(giant.ts, 53, 9)) + + new (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 54, 9)) + + new (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 55, 9)) + + new (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 56, 9)) +>p5 : Symbol(p5, Decl(giant.ts, 56, 20)) + + new (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 57, 9)) +>p7 : Symbol(p7, Decl(giant.ts, 57, 20)) + + //Index Signature + [p]; +>[p] : Symbol(I[p], Decl(giant.ts, 57, 35)) +>p : Symbol(p, Decl(giant.ts, 13, 5)) + + [p1: string]; +>p1 : Symbol(p1, Decl(giant.ts, 61, 5)) + + [p2: string, p3: number]; +>p2 : Symbol(p2, Decl(giant.ts, 62, 5)) +>p3 : Symbol(p3, Decl(giant.ts, 62, 16)) + + //Property Signature + p; +>p : Symbol(I.p, Decl(giant.ts, 62, 29)) + + p1?; +>p1 : Symbol(I.p1, Decl(giant.ts, 65, 6)) + + p2?: string; +>p2 : Symbol(I.p2, Decl(giant.ts, 66, 8)) + + //Function Signature + p3(); +>p3 : Symbol(I.p3, Decl(giant.ts, 67, 16)) + + p4? (); +>p4 : Symbol(I.p4, Decl(giant.ts, 70, 9)) + + p5? (): void; +>p5 : Symbol(I.p5, Decl(giant.ts, 71, 11)) + + p6(pa1): void; +>p6 : Symbol(I.p6, Decl(giant.ts, 72, 17)) +>pa1 : Symbol(pa1, Decl(giant.ts, 73, 7)) + + p7(pa1, pa2): void; +>p7 : Symbol(I.p7, Decl(giant.ts, 73, 18), Decl(giant.ts, 74, 23)) +>pa1 : Symbol(pa1, Decl(giant.ts, 74, 7)) +>pa2 : Symbol(pa2, Decl(giant.ts, 74, 11)) + + p7? (pa1, pa2): void; +>p7 : Symbol(I.p7, Decl(giant.ts, 73, 18), Decl(giant.ts, 74, 23)) +>pa1 : Symbol(pa1, Decl(giant.ts, 75, 9)) +>pa2 : Symbol(pa2, Decl(giant.ts, 75, 13)) +} +module M { +>M : Symbol(M, Decl(giant.ts, 76, 1)) + + var V; +>V : Symbol(V, Decl(giant.ts, 78, 7)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 78, 10)) + + class C { +>C : Symbol(C, Decl(giant.ts, 79, 21)) + + constructor () { } + public pV; +>pV : Symbol(C.pV, Decl(giant.ts, 81, 26)) + + private rV; +>rV : Symbol(C.rV, Decl(giant.ts, 82, 18)) + + public pF() { } +>pF : Symbol(C.pF, Decl(giant.ts, 83, 19)) + + private rF() { } +>rF : Symbol(C.rF, Decl(giant.ts, 84, 23)) + + public pgF() { } +>pgF : Symbol(C.pgF, Decl(giant.ts, 85, 24)) + + public get pgF() +>pgF : Symbol(C.pgF, Decl(giant.ts, 86, 24)) + + public psF(param:any) { } +>psF : Symbol(C.psF, Decl(giant.ts, 87, 24)) +>param : Symbol(param, Decl(giant.ts, 88, 19)) + + public set psF(param:any) +>psF : Symbol(C.psF, Decl(giant.ts, 88, 33)) +>param : Symbol(param, Decl(giant.ts, 89, 23)) + + private rgF() { } +>rgF : Symbol(C.rgF, Decl(giant.ts, 89, 33)) + + private get rgF() +>rgF : Symbol(C.rgF, Decl(giant.ts, 90, 25)) + + private rsF(param:any) { } +>rsF : Symbol(C.rsF, Decl(giant.ts, 91, 25)) +>param : Symbol(param, Decl(giant.ts, 92, 20)) + + private set rsF(param:any) +>rsF : Symbol(C.rsF, Decl(giant.ts, 92, 34)) +>param : Symbol(param, Decl(giant.ts, 93, 24)) + + static tV; +>tV : Symbol(C.tV, Decl(giant.ts, 93, 34)) + + static tF() { } +>tF : Symbol(C.tF, Decl(giant.ts, 94, 18)) + + static tsF(param:any) { } +>tsF : Symbol(C.tsF, Decl(giant.ts, 95, 23)) +>param : Symbol(param, Decl(giant.ts, 96, 19)) + + static set tsF(param:any) +>tsF : Symbol(C.tsF, Decl(giant.ts, 96, 33)) +>param : Symbol(param, Decl(giant.ts, 97, 23)) + + static tgF() { } +>tgF : Symbol(C.tgF, Decl(giant.ts, 97, 33)) + + static get tgF() +>tgF : Symbol(C.tgF, Decl(giant.ts, 98, 24)) + } + interface I { +>I : Symbol(I, Decl(giant.ts, 100, 5)) + + //Call Signature + (); + (): number; + (p); +>p : Symbol(p, Decl(giant.ts, 105, 9)) + + (p1: string); +>p1 : Symbol(p1, Decl(giant.ts, 106, 9)) + + (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 107, 9)) + + (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 108, 9)) + + (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 109, 9)) +>p5 : Symbol(p5, Decl(giant.ts, 109, 20)) + + (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 110, 9)) +>p7 : Symbol(p7, Decl(giant.ts, 110, 20)) + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : Symbol(p, Decl(giant.ts, 117, 13)) + + new (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 118, 13)) + + new (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 119, 13)) + + new (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 120, 13)) +>p5 : Symbol(p5, Decl(giant.ts, 120, 24)) + + new (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 121, 13)) +>p7 : Symbol(p7, Decl(giant.ts, 121, 24)) + + //Index Signature + [p]; +>[p] : Symbol(I[p], Decl(giant.ts, 121, 39)) +>p : Symbol(p, Decl(giant.ts, 13, 5)) + + [p1: string]; +>p1 : Symbol(p1, Decl(giant.ts, 125, 9)) + + [p2: string, p3: number]; +>p2 : Symbol(p2, Decl(giant.ts, 126, 9)) +>p3 : Symbol(p3, Decl(giant.ts, 126, 20)) + + //Property Signature + p; +>p : Symbol(I.p, Decl(giant.ts, 126, 33)) + + p1?; +>p1 : Symbol(I.p1, Decl(giant.ts, 129, 10)) + + p2?: string; +>p2 : Symbol(I.p2, Decl(giant.ts, 130, 12)) + + //Function Signature + p3(); +>p3 : Symbol(I.p3, Decl(giant.ts, 131, 20)) + + p4? (); +>p4 : Symbol(I.p4, Decl(giant.ts, 134, 13)) + + p5? (): void; +>p5 : Symbol(I.p5, Decl(giant.ts, 135, 15)) + + p6(pa1): void; +>p6 : Symbol(I.p6, Decl(giant.ts, 136, 21)) +>pa1 : Symbol(pa1, Decl(giant.ts, 137, 11)) + + p7(pa1, pa2): void; +>p7 : Symbol(I.p7, Decl(giant.ts, 137, 22), Decl(giant.ts, 138, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 138, 11)) +>pa2 : Symbol(pa2, Decl(giant.ts, 138, 15)) + + p7? (pa1, pa2): void; +>p7 : Symbol(I.p7, Decl(giant.ts, 137, 22), Decl(giant.ts, 138, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 139, 13)) +>pa2 : Symbol(pa2, Decl(giant.ts, 139, 17)) + } + module M { +>M : Symbol(M, Decl(giant.ts, 140, 5)) + + var V; +>V : Symbol(V, Decl(giant.ts, 142, 11)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 142, 14)) + + class C { }; +>C : Symbol(C, Decl(giant.ts, 143, 25)) + + interface I { }; +>I : Symbol(I, Decl(giant.ts, 144, 20)) + + module M { }; +>M : Symbol(M, Decl(giant.ts, 145, 24)) + + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 147, 18)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 147, 22)) + + export class eC { }; +>eC : Symbol(eC, Decl(giant.ts, 148, 33)) + + export interface eI { }; +>eI : Symbol(eI, Decl(giant.ts, 149, 28)) + + export module eM { }; +>eM : Symbol(eM, Decl(giant.ts, 150, 32)) + + export declare var eaV; +>eaV : Symbol(eaV, Decl(giant.ts, 152, 26)) + + export declare function eaF() { }; +>eaF : Symbol(eaF, Decl(giant.ts, 152, 31)) + + export declare class eaC { }; +>eaC : Symbol(eaC, Decl(giant.ts, 153, 42)) + + export declare module eaM { }; +>eaM : Symbol(eaM, Decl(giant.ts, 154, 37)) + } + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 157, 14)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 157, 18)) + + export class eC { +>eC : Symbol(eC, Decl(giant.ts, 158, 29)) + + constructor () { } + public pV; +>pV : Symbol(eC.pV, Decl(giant.ts, 160, 26)) + + private rV; +>rV : Symbol(eC.rV, Decl(giant.ts, 161, 18)) + + public pF() { } +>pF : Symbol(eC.pF, Decl(giant.ts, 162, 19)) + + private rF() { } +>rF : Symbol(eC.rF, Decl(giant.ts, 163, 23)) + + public pgF() { } +>pgF : Symbol(eC.pgF, Decl(giant.ts, 164, 24)) + + public get pgF() +>pgF : Symbol(eC.pgF, Decl(giant.ts, 165, 24)) + + public psF(param:any) { } +>psF : Symbol(eC.psF, Decl(giant.ts, 166, 24)) +>param : Symbol(param, Decl(giant.ts, 167, 19)) + + public set psF(param:any) +>psF : Symbol(eC.psF, Decl(giant.ts, 167, 33)) +>param : Symbol(param, Decl(giant.ts, 168, 23)) + + private rgF() { } +>rgF : Symbol(eC.rgF, Decl(giant.ts, 168, 33)) + + private get rgF() +>rgF : Symbol(eC.rgF, Decl(giant.ts, 169, 25)) + + private rsF(param:any) { } +>rsF : Symbol(eC.rsF, Decl(giant.ts, 170, 25)) +>param : Symbol(param, Decl(giant.ts, 171, 20)) + + private set rsF(param:any) +>rsF : Symbol(eC.rsF, Decl(giant.ts, 171, 34)) +>param : Symbol(param, Decl(giant.ts, 172, 24)) + + static tV; +>tV : Symbol(eC.tV, Decl(giant.ts, 172, 34)) + + static tF() { } +>tF : Symbol(eC.tF, Decl(giant.ts, 173, 18)) + + static tsF(param:any) { } +>tsF : Symbol(eC.tsF, Decl(giant.ts, 174, 23)) +>param : Symbol(param, Decl(giant.ts, 175, 19)) + + static set tsF(param:any) +>tsF : Symbol(eC.tsF, Decl(giant.ts, 175, 33)) +>param : Symbol(param, Decl(giant.ts, 176, 23)) + + static tgF() { } +>tgF : Symbol(eC.tgF, Decl(giant.ts, 176, 33)) + + static get tgF() +>tgF : Symbol(eC.tgF, Decl(giant.ts, 177, 24)) + } + export interface eI { +>eI : Symbol(eI, Decl(giant.ts, 179, 5)) + + //Call Signature + (); + (): number; + (p); +>p : Symbol(p, Decl(giant.ts, 184, 9)) + + (p1: string); +>p1 : Symbol(p1, Decl(giant.ts, 185, 9)) + + (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 186, 9)) + + (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 187, 9)) + + (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 188, 9)) +>p5 : Symbol(p5, Decl(giant.ts, 188, 20)) + + (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 189, 9)) +>p7 : Symbol(p7, Decl(giant.ts, 189, 20)) + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : Symbol(p, Decl(giant.ts, 196, 13)) + + new (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 197, 13)) + + new (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 198, 13)) + + new (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 199, 13)) +>p5 : Symbol(p5, Decl(giant.ts, 199, 24)) + + new (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 200, 13)) +>p7 : Symbol(p7, Decl(giant.ts, 200, 24)) + + //Index Signature + [p]; +>[p] : Symbol(eI[p], Decl(giant.ts, 200, 39)) +>p : Symbol(p, Decl(giant.ts, 13, 5)) + + [p1: string]; +>p1 : Symbol(p1, Decl(giant.ts, 204, 9)) + + [p2: string, p3: number]; +>p2 : Symbol(p2, Decl(giant.ts, 205, 9)) +>p3 : Symbol(p3, Decl(giant.ts, 205, 20)) + + //Property Signature + p; +>p : Symbol(eI.p, Decl(giant.ts, 205, 33)) + + p1?; +>p1 : Symbol(eI.p1, Decl(giant.ts, 208, 10)) + + p2?: string; +>p2 : Symbol(eI.p2, Decl(giant.ts, 209, 12)) + + //Function Signature + p3(); +>p3 : Symbol(eI.p3, Decl(giant.ts, 210, 20)) + + p4? (); +>p4 : Symbol(eI.p4, Decl(giant.ts, 213, 13)) + + p5? (): void; +>p5 : Symbol(eI.p5, Decl(giant.ts, 214, 15)) + + p6(pa1): void; +>p6 : Symbol(eI.p6, Decl(giant.ts, 215, 21)) +>pa1 : Symbol(pa1, Decl(giant.ts, 216, 11)) + + p7(pa1, pa2): void; +>p7 : Symbol(eI.p7, Decl(giant.ts, 216, 22), Decl(giant.ts, 217, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 217, 11)) +>pa2 : Symbol(pa2, Decl(giant.ts, 217, 15)) + + p7? (pa1, pa2): void; +>p7 : Symbol(eI.p7, Decl(giant.ts, 216, 22), Decl(giant.ts, 217, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 218, 13)) +>pa2 : Symbol(pa2, Decl(giant.ts, 218, 17)) + } + export module eM { +>eM : Symbol(eM, Decl(giant.ts, 219, 5)) + + var V; +>V : Symbol(V, Decl(giant.ts, 221, 11)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 221, 14)) + + class C { }; +>C : Symbol(C, Decl(giant.ts, 222, 25)) + + interface I { }; +>I : Symbol(I, Decl(giant.ts, 223, 20)) + + module M { }; +>M : Symbol(M, Decl(giant.ts, 224, 24)) + + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 226, 18)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 226, 22)) + + export class eC { }; +>eC : Symbol(eC, Decl(giant.ts, 227, 33)) + + export interface eI { }; +>eI : Symbol(eI, Decl(giant.ts, 228, 28)) + + export module eM { }; +>eM : Symbol(eM, Decl(giant.ts, 229, 32)) + + export declare var eaV; +>eaV : Symbol(eaV, Decl(giant.ts, 231, 26)) + + export declare function eaF() { }; +>eaF : Symbol(eaF, Decl(giant.ts, 231, 31)) + + export declare class eaC { }; +>eaC : Symbol(eaC, Decl(giant.ts, 232, 42)) + + export declare module eaM { }; +>eaM : Symbol(eaM, Decl(giant.ts, 233, 37)) + } + export declare var eaV; +>eaV : Symbol(eaV, Decl(giant.ts, 236, 22)) + + export declare function eaF() { }; +>eaF : Symbol(eaF, Decl(giant.ts, 236, 27)) + + export declare class eaC { +>eaC : Symbol(eaC, Decl(giant.ts, 237, 38)) + + constructor () { } + public pV; +>pV : Symbol(eaC.pV, Decl(giant.ts, 239, 26)) + + private rV; +>rV : Symbol(eaC.rV, Decl(giant.ts, 240, 18)) + + public pF() { } +>pF : Symbol(eaC.pF, Decl(giant.ts, 241, 19)) + + private rF() { } +>rF : Symbol(eaC.rF, Decl(giant.ts, 242, 23)) + + public pgF() { } +>pgF : Symbol(eaC.pgF, Decl(giant.ts, 243, 24)) + + public get pgF() +>pgF : Symbol(eaC.pgF, Decl(giant.ts, 244, 24)) + + public psF(param:any) { } +>psF : Symbol(eaC.psF, Decl(giant.ts, 245, 24)) +>param : Symbol(param, Decl(giant.ts, 246, 19)) + + public set psF(param:any) +>psF : Symbol(eaC.psF, Decl(giant.ts, 246, 33)) +>param : Symbol(param, Decl(giant.ts, 247, 23)) + + private rgF() { } +>rgF : Symbol(eaC.rgF, Decl(giant.ts, 247, 33)) + + private get rgF() +>rgF : Symbol(eaC.rgF, Decl(giant.ts, 248, 25)) + + private rsF(param:any) { } +>rsF : Symbol(eaC.rsF, Decl(giant.ts, 249, 25)) +>param : Symbol(param, Decl(giant.ts, 250, 20)) + + private set rsF(param:any) +>rsF : Symbol(eaC.rsF, Decl(giant.ts, 250, 34)) +>param : Symbol(param, Decl(giant.ts, 251, 24)) + + static tV; +>tV : Symbol(eaC.tV, Decl(giant.ts, 251, 34)) + + static tF() { } +>tF : Symbol(eaC.tF, Decl(giant.ts, 252, 18)) + + static tsF(param:any) { } +>tsF : Symbol(eaC.tsF, Decl(giant.ts, 253, 23)) +>param : Symbol(param, Decl(giant.ts, 254, 19)) + + static set tsF(param:any) +>tsF : Symbol(eaC.tsF, Decl(giant.ts, 254, 33)) +>param : Symbol(param, Decl(giant.ts, 255, 23)) + + static tgF() { } +>tgF : Symbol(eaC.tgF, Decl(giant.ts, 255, 33)) + + static get tgF() +>tgF : Symbol(eaC.tgF, Decl(giant.ts, 256, 24)) + } + export declare module eaM { +>eaM : Symbol(eaM, Decl(giant.ts, 258, 5)) + + var V; +>V : Symbol(V, Decl(giant.ts, 260, 11)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 260, 14)) + + class C { } +>C : Symbol(C, Decl(giant.ts, 261, 25)) + + interface I { } +>I : Symbol(I, Decl(giant.ts, 262, 19)) + + module M { } +>M : Symbol(M, Decl(giant.ts, 263, 23)) + + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 265, 18)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 265, 22)) + + export class eC { } +>eC : Symbol(eC, Decl(giant.ts, 266, 33)) + + export interface eI { } +>eI : Symbol(eI, Decl(giant.ts, 267, 27)) + + export module eM { } +>eM : Symbol(eM, Decl(giant.ts, 268, 31)) + } +} +export var eV; +>eV : Symbol(eV, Decl(giant.ts, 272, 10)) + +export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 272, 14)) + +export class eC { +>eC : Symbol(eC, Decl(giant.ts, 273, 25)) + + constructor () { } + public pV; +>pV : Symbol(eC.pV, Decl(giant.ts, 275, 22)) + + private rV; +>rV : Symbol(eC.rV, Decl(giant.ts, 276, 14)) + + public pF() { } +>pF : Symbol(eC.pF, Decl(giant.ts, 277, 15)) + + private rF() { } +>rF : Symbol(eC.rF, Decl(giant.ts, 278, 19)) + + public pgF() { } +>pgF : Symbol(eC.pgF, Decl(giant.ts, 279, 20)) + + public get pgF() +>pgF : Symbol(eC.pgF, Decl(giant.ts, 280, 20)) + + public psF(param:any) { } +>psF : Symbol(eC.psF, Decl(giant.ts, 281, 20)) +>param : Symbol(param, Decl(giant.ts, 282, 15)) + + public set psF(param:any) +>psF : Symbol(eC.psF, Decl(giant.ts, 282, 29)) +>param : Symbol(param, Decl(giant.ts, 283, 19)) + + private rgF() { } +>rgF : Symbol(eC.rgF, Decl(giant.ts, 283, 29)) + + private get rgF() +>rgF : Symbol(eC.rgF, Decl(giant.ts, 284, 21)) + + private rsF(param:any) { } +>rsF : Symbol(eC.rsF, Decl(giant.ts, 285, 21)) +>param : Symbol(param, Decl(giant.ts, 286, 16)) + + private set rsF(param:any) +>rsF : Symbol(eC.rsF, Decl(giant.ts, 286, 30)) +>param : Symbol(param, Decl(giant.ts, 287, 20)) + + static tV; +>tV : Symbol(eC.tV, Decl(giant.ts, 287, 30)) + + static tF() { } +>tF : Symbol(eC.tF, Decl(giant.ts, 288, 14)) + + static tsF(param:any) { } +>tsF : Symbol(eC.tsF, Decl(giant.ts, 289, 19)) +>param : Symbol(param, Decl(giant.ts, 290, 15)) + + static set tsF(param:any) +>tsF : Symbol(eC.tsF, Decl(giant.ts, 290, 29)) +>param : Symbol(param, Decl(giant.ts, 291, 19)) + + static tgF() { } +>tgF : Symbol(eC.tgF, Decl(giant.ts, 291, 29)) + + static get tgF() +>tgF : Symbol(eC.tgF, Decl(giant.ts, 292, 20)) +} +export interface eI { +>eI : Symbol(eI, Decl(giant.ts, 294, 1)) + + //Call Signature + (); + (): number; + (p); +>p : Symbol(p, Decl(giant.ts, 299, 5)) + + (p1: string); +>p1 : Symbol(p1, Decl(giant.ts, 300, 5)) + + (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 301, 5)) + + (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 302, 5)) + + (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 303, 5)) +>p5 : Symbol(p5, Decl(giant.ts, 303, 16)) + + (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 304, 5)) +>p7 : Symbol(p7, Decl(giant.ts, 304, 16)) + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : Symbol(p, Decl(giant.ts, 311, 9)) + + new (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 312, 9)) + + new (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 313, 9)) + + new (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 314, 9)) +>p5 : Symbol(p5, Decl(giant.ts, 314, 20)) + + new (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 315, 9)) +>p7 : Symbol(p7, Decl(giant.ts, 315, 20)) + + //Index Signature + [p]; +>[p] : Symbol(eI[p], Decl(giant.ts, 315, 35)) +>p : Symbol(p, Decl(giant.ts, 13, 5)) + + [p1: string]; +>p1 : Symbol(p1, Decl(giant.ts, 319, 5)) + + [p2: string, p3: number]; +>p2 : Symbol(p2, Decl(giant.ts, 320, 5)) +>p3 : Symbol(p3, Decl(giant.ts, 320, 16)) + + //Property Signature + p; +>p : Symbol(eI.p, Decl(giant.ts, 320, 29)) + + p1?; +>p1 : Symbol(eI.p1, Decl(giant.ts, 323, 6)) + + p2?: string; +>p2 : Symbol(eI.p2, Decl(giant.ts, 324, 8)) + + //Function Signature + p3(); +>p3 : Symbol(eI.p3, Decl(giant.ts, 325, 16)) + + p4? (); +>p4 : Symbol(eI.p4, Decl(giant.ts, 328, 9)) + + p5? (): void; +>p5 : Symbol(eI.p5, Decl(giant.ts, 329, 11)) + + p6(pa1): void; +>p6 : Symbol(eI.p6, Decl(giant.ts, 330, 17)) +>pa1 : Symbol(pa1, Decl(giant.ts, 331, 7)) + + p7(pa1, pa2): void; +>p7 : Symbol(eI.p7, Decl(giant.ts, 331, 18), Decl(giant.ts, 332, 23)) +>pa1 : Symbol(pa1, Decl(giant.ts, 332, 7)) +>pa2 : Symbol(pa2, Decl(giant.ts, 332, 11)) + + p7? (pa1, pa2): void; +>p7 : Symbol(eI.p7, Decl(giant.ts, 331, 18), Decl(giant.ts, 332, 23)) +>pa1 : Symbol(pa1, Decl(giant.ts, 333, 9)) +>pa2 : Symbol(pa2, Decl(giant.ts, 333, 13)) +} +export module eM { +>eM : Symbol(eM, Decl(giant.ts, 334, 1)) + + var V; +>V : Symbol(V, Decl(giant.ts, 336, 7)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 336, 10)) + + class C { +>C : Symbol(C, Decl(giant.ts, 337, 21)) + + constructor () { } + public pV; +>pV : Symbol(C.pV, Decl(giant.ts, 339, 26)) + + private rV; +>rV : Symbol(C.rV, Decl(giant.ts, 340, 18)) + + public pF() { } +>pF : Symbol(C.pF, Decl(giant.ts, 341, 19)) + + private rF() { } +>rF : Symbol(C.rF, Decl(giant.ts, 342, 23)) + + public pgF() { } +>pgF : Symbol(C.pgF, Decl(giant.ts, 343, 24)) + + public get pgF() +>pgF : Symbol(C.pgF, Decl(giant.ts, 344, 24)) + + public psF(param:any) { } +>psF : Symbol(C.psF, Decl(giant.ts, 345, 24)) +>param : Symbol(param, Decl(giant.ts, 346, 19)) + + public set psF(param:any) +>psF : Symbol(C.psF, Decl(giant.ts, 346, 33)) +>param : Symbol(param, Decl(giant.ts, 347, 23)) + + private rgF() { } +>rgF : Symbol(C.rgF, Decl(giant.ts, 347, 33)) + + private get rgF() +>rgF : Symbol(C.rgF, Decl(giant.ts, 348, 25)) + + private rsF(param:any) { } +>rsF : Symbol(C.rsF, Decl(giant.ts, 349, 25)) +>param : Symbol(param, Decl(giant.ts, 350, 20)) + + private set rsF(param:any) +>rsF : Symbol(C.rsF, Decl(giant.ts, 350, 34)) +>param : Symbol(param, Decl(giant.ts, 351, 24)) + + static tV; +>tV : Symbol(C.tV, Decl(giant.ts, 351, 34)) + + static tF() { } +>tF : Symbol(C.tF, Decl(giant.ts, 352, 18)) + + static tsF(param:any) { } +>tsF : Symbol(C.tsF, Decl(giant.ts, 353, 23)) +>param : Symbol(param, Decl(giant.ts, 354, 19)) + + static set tsF(param:any) +>tsF : Symbol(C.tsF, Decl(giant.ts, 354, 33)) +>param : Symbol(param, Decl(giant.ts, 355, 23)) + + static tgF() { } +>tgF : Symbol(C.tgF, Decl(giant.ts, 355, 33)) + + static get tgF() +>tgF : Symbol(C.tgF, Decl(giant.ts, 356, 24)) + } + interface I { +>I : Symbol(I, Decl(giant.ts, 358, 5)) + + //Call Signature + (); + (): number; + (p); +>p : Symbol(p, Decl(giant.ts, 363, 9)) + + (p1: string); +>p1 : Symbol(p1, Decl(giant.ts, 364, 9)) + + (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 365, 9)) + + (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 366, 9)) + + (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 367, 9)) +>p5 : Symbol(p5, Decl(giant.ts, 367, 20)) + + (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 368, 9)) +>p7 : Symbol(p7, Decl(giant.ts, 368, 20)) + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : Symbol(p, Decl(giant.ts, 375, 13)) + + new (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 376, 13)) + + new (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 377, 13)) + + new (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 378, 13)) +>p5 : Symbol(p5, Decl(giant.ts, 378, 24)) + + new (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 379, 13)) +>p7 : Symbol(p7, Decl(giant.ts, 379, 24)) + + //Index Signature + [p]; +>[p] : Symbol(I[p], Decl(giant.ts, 379, 39)) +>p : Symbol(p, Decl(giant.ts, 13, 5)) + + [p1: string]; +>p1 : Symbol(p1, Decl(giant.ts, 383, 9)) + + [p2: string, p3: number]; +>p2 : Symbol(p2, Decl(giant.ts, 384, 9)) +>p3 : Symbol(p3, Decl(giant.ts, 384, 20)) + + //Property Signature + p; +>p : Symbol(I.p, Decl(giant.ts, 384, 33)) + + p1?; +>p1 : Symbol(I.p1, Decl(giant.ts, 387, 10)) + + p2?: string; +>p2 : Symbol(I.p2, Decl(giant.ts, 388, 12)) + + //Function Signature + p3(); +>p3 : Symbol(I.p3, Decl(giant.ts, 389, 20)) + + p4? (); +>p4 : Symbol(I.p4, Decl(giant.ts, 392, 13)) + + p5? (): void; +>p5 : Symbol(I.p5, Decl(giant.ts, 393, 15)) + + p6(pa1): void; +>p6 : Symbol(I.p6, Decl(giant.ts, 394, 21)) +>pa1 : Symbol(pa1, Decl(giant.ts, 395, 11)) + + p7(pa1, pa2): void; +>p7 : Symbol(I.p7, Decl(giant.ts, 395, 22), Decl(giant.ts, 396, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 396, 11)) +>pa2 : Symbol(pa2, Decl(giant.ts, 396, 15)) + + p7? (pa1, pa2): void; +>p7 : Symbol(I.p7, Decl(giant.ts, 395, 22), Decl(giant.ts, 396, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 397, 13)) +>pa2 : Symbol(pa2, Decl(giant.ts, 397, 17)) + } + module M { +>M : Symbol(M, Decl(giant.ts, 398, 5)) + + var V; +>V : Symbol(V, Decl(giant.ts, 400, 11)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 400, 14)) + + class C { }; +>C : Symbol(C, Decl(giant.ts, 401, 25)) + + interface I { }; +>I : Symbol(I, Decl(giant.ts, 402, 20)) + + module M { }; +>M : Symbol(M, Decl(giant.ts, 403, 24)) + + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 405, 18)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 405, 22)) + + export class eC { }; +>eC : Symbol(eC, Decl(giant.ts, 406, 33)) + + export interface eI { }; +>eI : Symbol(eI, Decl(giant.ts, 407, 28)) + + export module eM { }; +>eM : Symbol(eM, Decl(giant.ts, 408, 32)) + + export declare var eaV; +>eaV : Symbol(eaV, Decl(giant.ts, 410, 26)) + + export declare function eaF() { }; +>eaF : Symbol(eaF, Decl(giant.ts, 410, 31)) + + export declare class eaC { }; +>eaC : Symbol(eaC, Decl(giant.ts, 411, 42)) + + export declare module eaM { }; +>eaM : Symbol(eaM, Decl(giant.ts, 412, 37)) + } + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 415, 14)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 415, 18)) + + export class eC { +>eC : Symbol(eC, Decl(giant.ts, 416, 29)) + + constructor () { } + public pV; +>pV : Symbol(eC.pV, Decl(giant.ts, 418, 26)) + + private rV; +>rV : Symbol(eC.rV, Decl(giant.ts, 419, 18)) + + public pF() { } +>pF : Symbol(eC.pF, Decl(giant.ts, 420, 19)) + + private rF() { } +>rF : Symbol(eC.rF, Decl(giant.ts, 421, 23)) + + public pgF() { } +>pgF : Symbol(eC.pgF, Decl(giant.ts, 422, 24)) + + public get pgF() +>pgF : Symbol(eC.pgF, Decl(giant.ts, 423, 24)) + + public psF(param:any) { } +>psF : Symbol(eC.psF, Decl(giant.ts, 424, 24)) +>param : Symbol(param, Decl(giant.ts, 425, 19)) + + public set psF(param:any) +>psF : Symbol(eC.psF, Decl(giant.ts, 425, 33)) +>param : Symbol(param, Decl(giant.ts, 426, 23)) + + private rgF() { } +>rgF : Symbol(eC.rgF, Decl(giant.ts, 426, 33)) + + private get rgF() +>rgF : Symbol(eC.rgF, Decl(giant.ts, 427, 25)) + + private rsF(param:any) { } +>rsF : Symbol(eC.rsF, Decl(giant.ts, 428, 25)) +>param : Symbol(param, Decl(giant.ts, 429, 20)) + + private set rsF(param:any) +>rsF : Symbol(eC.rsF, Decl(giant.ts, 429, 34)) +>param : Symbol(param, Decl(giant.ts, 430, 24)) + + static tV; +>tV : Symbol(eC.tV, Decl(giant.ts, 430, 34)) + + static tF() { } +>tF : Symbol(eC.tF, Decl(giant.ts, 431, 18)) + + static tsF(param:any) { } +>tsF : Symbol(eC.tsF, Decl(giant.ts, 432, 23)) +>param : Symbol(param, Decl(giant.ts, 433, 19)) + + static set tsF(param:any) +>tsF : Symbol(eC.tsF, Decl(giant.ts, 433, 33)) +>param : Symbol(param, Decl(giant.ts, 434, 23)) + + static tgF() { } +>tgF : Symbol(eC.tgF, Decl(giant.ts, 434, 33)) + + static get tgF() +>tgF : Symbol(eC.tgF, Decl(giant.ts, 435, 24)) + } + export interface eI { +>eI : Symbol(eI, Decl(giant.ts, 437, 5)) + + //Call Signature + (); + (): number; + (p); +>p : Symbol(p, Decl(giant.ts, 442, 9)) + + (p1: string); +>p1 : Symbol(p1, Decl(giant.ts, 443, 9)) + + (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 444, 9)) + + (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 445, 9)) + + (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 446, 9)) +>p5 : Symbol(p5, Decl(giant.ts, 446, 20)) + + (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 447, 9)) +>p7 : Symbol(p7, Decl(giant.ts, 447, 20)) + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : Symbol(p, Decl(giant.ts, 454, 13)) + + new (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 455, 13)) + + new (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 456, 13)) + + new (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 457, 13)) +>p5 : Symbol(p5, Decl(giant.ts, 457, 24)) + + new (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 458, 13)) +>p7 : Symbol(p7, Decl(giant.ts, 458, 24)) + + //Index Signature + [p]; +>[p] : Symbol(eI[p], Decl(giant.ts, 458, 39)) +>p : Symbol(p, Decl(giant.ts, 13, 5)) + + [p1: string]; +>p1 : Symbol(p1, Decl(giant.ts, 462, 9)) + + [p2: string, p3: number]; +>p2 : Symbol(p2, Decl(giant.ts, 463, 9)) +>p3 : Symbol(p3, Decl(giant.ts, 463, 20)) + + //Property Signature + p; +>p : Symbol(eI.p, Decl(giant.ts, 463, 33)) + + p1?; +>p1 : Symbol(eI.p1, Decl(giant.ts, 466, 10)) + + p2?: string; +>p2 : Symbol(eI.p2, Decl(giant.ts, 467, 12)) + + //Function Signature + p3(); +>p3 : Symbol(eI.p3, Decl(giant.ts, 468, 20)) + + p4? (); +>p4 : Symbol(eI.p4, Decl(giant.ts, 471, 13)) + + p5? (): void; +>p5 : Symbol(eI.p5, Decl(giant.ts, 472, 15)) + + p6(pa1): void; +>p6 : Symbol(eI.p6, Decl(giant.ts, 473, 21)) +>pa1 : Symbol(pa1, Decl(giant.ts, 474, 11)) + + p7(pa1, pa2): void; +>p7 : Symbol(eI.p7, Decl(giant.ts, 474, 22), Decl(giant.ts, 475, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 475, 11)) +>pa2 : Symbol(pa2, Decl(giant.ts, 475, 15)) + + p7? (pa1, pa2): void; +>p7 : Symbol(eI.p7, Decl(giant.ts, 474, 22), Decl(giant.ts, 475, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 476, 13)) +>pa2 : Symbol(pa2, Decl(giant.ts, 476, 17)) + } + export module eM { +>eM : Symbol(eM, Decl(giant.ts, 477, 5)) + + var V; +>V : Symbol(V, Decl(giant.ts, 479, 11)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 479, 14)) + + class C { }; +>C : Symbol(C, Decl(giant.ts, 480, 25)) + + interface I { }; +>I : Symbol(I, Decl(giant.ts, 481, 20)) + + module M { }; +>M : Symbol(M, Decl(giant.ts, 482, 24)) + + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 484, 18)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 484, 22)) + + export class eC { }; +>eC : Symbol(eC, Decl(giant.ts, 485, 33)) + + export interface eI { }; +>eI : Symbol(eI, Decl(giant.ts, 486, 28)) + + export module eM { }; +>eM : Symbol(eM, Decl(giant.ts, 487, 32)) + + export declare var eaV; +>eaV : Symbol(eaV, Decl(giant.ts, 489, 26)) + + export declare function eaF() { }; +>eaF : Symbol(eaF, Decl(giant.ts, 489, 31)) + + export declare class eaC { }; +>eaC : Symbol(eaC, Decl(giant.ts, 490, 42)) + + export declare module eaM { }; +>eaM : Symbol(eaM, Decl(giant.ts, 491, 37)) + } + export declare var eaV; +>eaV : Symbol(eaV, Decl(giant.ts, 494, 22)) + + export declare function eaF() { }; +>eaF : Symbol(eaF, Decl(giant.ts, 494, 27)) + + export declare class eaC { +>eaC : Symbol(eaC, Decl(giant.ts, 495, 38)) + + constructor () { } + public pV; +>pV : Symbol(eaC.pV, Decl(giant.ts, 497, 26)) + + private rV; +>rV : Symbol(eaC.rV, Decl(giant.ts, 498, 18)) + + public pF() { } +>pF : Symbol(eaC.pF, Decl(giant.ts, 499, 19)) + + private rF() { } +>rF : Symbol(eaC.rF, Decl(giant.ts, 500, 23)) + + public pgF() { } +>pgF : Symbol(eaC.pgF, Decl(giant.ts, 501, 24)) + + public get pgF() +>pgF : Symbol(eaC.pgF, Decl(giant.ts, 502, 24)) + + public psF(param:any) { } +>psF : Symbol(eaC.psF, Decl(giant.ts, 503, 24)) +>param : Symbol(param, Decl(giant.ts, 504, 19)) + + public set psF(param:any) +>psF : Symbol(eaC.psF, Decl(giant.ts, 504, 33)) +>param : Symbol(param, Decl(giant.ts, 505, 23)) + + private rgF() { } +>rgF : Symbol(eaC.rgF, Decl(giant.ts, 505, 33)) + + private get rgF() +>rgF : Symbol(eaC.rgF, Decl(giant.ts, 506, 25)) + + private rsF(param:any) { } +>rsF : Symbol(eaC.rsF, Decl(giant.ts, 507, 25)) +>param : Symbol(param, Decl(giant.ts, 508, 20)) + + private set rsF(param:any) +>rsF : Symbol(eaC.rsF, Decl(giant.ts, 508, 34)) +>param : Symbol(param, Decl(giant.ts, 509, 24)) + + static tV; +>tV : Symbol(eaC.tV, Decl(giant.ts, 509, 34)) + + static tF() { } +>tF : Symbol(eaC.tF, Decl(giant.ts, 510, 18)) + + static tsF(param:any) { } +>tsF : Symbol(eaC.tsF, Decl(giant.ts, 511, 23)) +>param : Symbol(param, Decl(giant.ts, 512, 19)) + + static set tsF(param:any) +>tsF : Symbol(eaC.tsF, Decl(giant.ts, 512, 33)) +>param : Symbol(param, Decl(giant.ts, 513, 23)) + + static tgF() { } +>tgF : Symbol(eaC.tgF, Decl(giant.ts, 513, 33)) + + static get tgF() +>tgF : Symbol(eaC.tgF, Decl(giant.ts, 514, 24)) + } + export declare module eaM { +>eaM : Symbol(eaM, Decl(giant.ts, 516, 5)) + + var V; +>V : Symbol(V, Decl(giant.ts, 518, 11)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 518, 14)) + + class C { } +>C : Symbol(C, Decl(giant.ts, 519, 25)) + + interface I { } +>I : Symbol(I, Decl(giant.ts, 520, 19)) + + module M { } +>M : Symbol(M, Decl(giant.ts, 521, 23)) + + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 523, 18)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 523, 22)) + + export class eC { } +>eC : Symbol(eC, Decl(giant.ts, 524, 33)) + + export interface eI { } +>eI : Symbol(eI, Decl(giant.ts, 525, 27)) + + export module eM { } +>eM : Symbol(eM, Decl(giant.ts, 526, 31)) + } +} +export declare var eaV; +>eaV : Symbol(eaV, Decl(giant.ts, 530, 18)) + +export declare function eaF() { }; +>eaF : Symbol(eaF, Decl(giant.ts, 530, 23)) + +export declare class eaC { +>eaC : Symbol(eaC, Decl(giant.ts, 531, 34)) + + constructor () { } + public pV; +>pV : Symbol(eaC.pV, Decl(giant.ts, 533, 22)) + + private rV; +>rV : Symbol(eaC.rV, Decl(giant.ts, 534, 14)) + + public pF() { } +>pF : Symbol(eaC.pF, Decl(giant.ts, 535, 15)) + + private rF() { } +>rF : Symbol(eaC.rF, Decl(giant.ts, 536, 19)) + + public pgF() { } +>pgF : Symbol(eaC.pgF, Decl(giant.ts, 537, 20)) + + public get pgF() +>pgF : Symbol(eaC.pgF, Decl(giant.ts, 538, 20)) + + public psF(param:any) { } +>psF : Symbol(eaC.psF, Decl(giant.ts, 539, 20)) +>param : Symbol(param, Decl(giant.ts, 540, 15)) + + public set psF(param:any) +>psF : Symbol(eaC.psF, Decl(giant.ts, 540, 29)) +>param : Symbol(param, Decl(giant.ts, 541, 19)) + + private rgF() { } +>rgF : Symbol(eaC.rgF, Decl(giant.ts, 541, 29)) + + private get rgF() +>rgF : Symbol(eaC.rgF, Decl(giant.ts, 542, 21)) + + private rsF(param:any) { } +>rsF : Symbol(eaC.rsF, Decl(giant.ts, 543, 21)) +>param : Symbol(param, Decl(giant.ts, 544, 16)) + + private set rsF(param:any) +>rsF : Symbol(eaC.rsF, Decl(giant.ts, 544, 30)) +>param : Symbol(param, Decl(giant.ts, 545, 20)) + + static tV; +>tV : Symbol(eaC.tV, Decl(giant.ts, 545, 30)) + + static tF() { } +>tF : Symbol(eaC.tF, Decl(giant.ts, 546, 14)) + + static tsF(param:any) { } +>tsF : Symbol(eaC.tsF, Decl(giant.ts, 547, 19)) +>param : Symbol(param, Decl(giant.ts, 548, 15)) + + static set tsF(param:any) +>tsF : Symbol(eaC.tsF, Decl(giant.ts, 548, 29)) +>param : Symbol(param, Decl(giant.ts, 549, 19)) + + static tgF() { } +>tgF : Symbol(eaC.tgF, Decl(giant.ts, 549, 29)) + + static get tgF() +>tgF : Symbol(eaC.tgF, Decl(giant.ts, 550, 20)) +} +export declare module eaM { +>eaM : Symbol(eaM, Decl(giant.ts, 552, 1)) + + var V; +>V : Symbol(V, Decl(giant.ts, 554, 7)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 554, 10)) + + class C { +>C : Symbol(C, Decl(giant.ts, 555, 21)) + + constructor () { } + public pV; +>pV : Symbol(C.pV, Decl(giant.ts, 557, 26)) + + private rV; +>rV : Symbol(C.rV, Decl(giant.ts, 558, 18)) + + public pF() { } +>pF : Symbol(C.pF, Decl(giant.ts, 559, 19)) + + static tV; +>tV : Symbol(C.tV, Decl(giant.ts, 560, 23)) + + static tF() { } +>tF : Symbol(C.tF, Decl(giant.ts, 561, 18)) + } + interface I { +>I : Symbol(I, Decl(giant.ts, 563, 5)) + + //Call Signature + (); + (): number; + (p: string); +>p : Symbol(p, Decl(giant.ts, 568, 9)) + + (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 569, 9)) + + (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 570, 9)) + + (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 571, 9)) +>p5 : Symbol(p5, Decl(giant.ts, 571, 20)) + + (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 572, 9)) +>p7 : Symbol(p7, Decl(giant.ts, 572, 20)) + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : Symbol(p, Decl(giant.ts, 579, 13)) + + new (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 580, 13)) + + new (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 581, 13)) + + new (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 582, 13)) +>p5 : Symbol(p5, Decl(giant.ts, 582, 24)) + + new (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 583, 13)) +>p7 : Symbol(p7, Decl(giant.ts, 583, 24)) + + //Index Signature + [p]; +>[p] : Symbol(I[p], Decl(giant.ts, 583, 39)) +>p : Symbol(p, Decl(giant.ts, 13, 5)) + + [p1: string]; +>p1 : Symbol(p1, Decl(giant.ts, 587, 9)) + + [p2: string, p3: number]; +>p2 : Symbol(p2, Decl(giant.ts, 588, 9)) +>p3 : Symbol(p3, Decl(giant.ts, 588, 20)) + + //Property Signature + p; +>p : Symbol(I.p, Decl(giant.ts, 588, 33)) + + p1?; +>p1 : Symbol(I.p1, Decl(giant.ts, 591, 10)) + + p2?: string; +>p2 : Symbol(I.p2, Decl(giant.ts, 592, 12)) + + //Function Signature + p3(); +>p3 : Symbol(I.p3, Decl(giant.ts, 593, 20)) + + p4? (); +>p4 : Symbol(I.p4, Decl(giant.ts, 596, 13)) + + p5? (): void; +>p5 : Symbol(I.p5, Decl(giant.ts, 597, 15)) + + p6(pa1): void; +>p6 : Symbol(I.p6, Decl(giant.ts, 598, 21)) +>pa1 : Symbol(pa1, Decl(giant.ts, 599, 11)) + + p7(pa1, pa2): void; +>p7 : Symbol(I.p7, Decl(giant.ts, 599, 22), Decl(giant.ts, 600, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 600, 11)) +>pa2 : Symbol(pa2, Decl(giant.ts, 600, 15)) + + p7? (pa1, pa2): void; +>p7 : Symbol(I.p7, Decl(giant.ts, 599, 22), Decl(giant.ts, 600, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 601, 13)) +>pa2 : Symbol(pa2, Decl(giant.ts, 601, 17)) + } + module M { +>M : Symbol(M, Decl(giant.ts, 602, 5)) + + var V; +>V : Symbol(V, Decl(giant.ts, 604, 11)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 604, 14)) + + class C { } +>C : Symbol(C, Decl(giant.ts, 605, 25)) + + interface I { } +>I : Symbol(I, Decl(giant.ts, 606, 19)) + + module M { } +>M : Symbol(M, Decl(giant.ts, 607, 23)) + + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 609, 18)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 609, 22)) + + export class eC { } +>eC : Symbol(eC, Decl(giant.ts, 610, 33)) + + export interface eI { } +>eI : Symbol(eI, Decl(giant.ts, 611, 27)) + + export module eM { } +>eM : Symbol(eM, Decl(giant.ts, 612, 31)) + + export declare var eaV +>eaV : Symbol(eaV, Decl(giant.ts, 614, 26)) + + export declare function eaF() { }; +>eaF : Symbol(eaF, Decl(giant.ts, 614, 30)) + + export declare class eaC { } +>eaC : Symbol(eaC, Decl(giant.ts, 615, 42)) + + export declare module eaM { } +>eaM : Symbol(eaM, Decl(giant.ts, 616, 36)) + } + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 619, 14)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 619, 18)) + + export class eC { +>eC : Symbol(eC, Decl(giant.ts, 620, 29)) + + constructor () { } + public pV; +>pV : Symbol(eC.pV, Decl(giant.ts, 622, 26)) + + private rV; +>rV : Symbol(eC.rV, Decl(giant.ts, 623, 18)) + + public pF() { } +>pF : Symbol(eC.pF, Decl(giant.ts, 624, 19)) + + static tV +>tV : Symbol(eC.tV, Decl(giant.ts, 625, 23)) + + static tF() { } +>tF : Symbol(eC.tF, Decl(giant.ts, 626, 17)) + } + export interface eI { +>eI : Symbol(eI, Decl(giant.ts, 628, 5)) + + //Call Signature + (); + (): number; + (p); +>p : Symbol(p, Decl(giant.ts, 633, 9)) + + (p1: string); +>p1 : Symbol(p1, Decl(giant.ts, 634, 9)) + + (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 635, 9)) + + (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 636, 9)) + + (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 637, 9)) +>p5 : Symbol(p5, Decl(giant.ts, 637, 20)) + + (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 638, 9)) +>p7 : Symbol(p7, Decl(giant.ts, 638, 20)) + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : Symbol(p, Decl(giant.ts, 645, 13)) + + new (p2?: string); +>p2 : Symbol(p2, Decl(giant.ts, 646, 13)) + + new (...p3: any[]); +>p3 : Symbol(p3, Decl(giant.ts, 647, 13)) + + new (p4: string, p5?: string); +>p4 : Symbol(p4, Decl(giant.ts, 648, 13)) +>p5 : Symbol(p5, Decl(giant.ts, 648, 24)) + + new (p6: string, ...p7: any[]); +>p6 : Symbol(p6, Decl(giant.ts, 649, 13)) +>p7 : Symbol(p7, Decl(giant.ts, 649, 24)) + + //Index Signature + [p]; +>[p] : Symbol(eI[p], Decl(giant.ts, 649, 39)) +>p : Symbol(p, Decl(giant.ts, 13, 5)) + + [p1: string]; +>p1 : Symbol(p1, Decl(giant.ts, 653, 9)) + + [p2: string, p3: number]; +>p2 : Symbol(p2, Decl(giant.ts, 654, 9)) +>p3 : Symbol(p3, Decl(giant.ts, 654, 20)) + + //Property Signature + p; +>p : Symbol(eI.p, Decl(giant.ts, 654, 33)) + + p1?; +>p1 : Symbol(eI.p1, Decl(giant.ts, 657, 10)) + + p2?: string; +>p2 : Symbol(eI.p2, Decl(giant.ts, 658, 12)) + + //Function Signature + p3(); +>p3 : Symbol(eI.p3, Decl(giant.ts, 659, 20)) + + p4? (); +>p4 : Symbol(eI.p4, Decl(giant.ts, 662, 13)) + + p5? (): void; +>p5 : Symbol(eI.p5, Decl(giant.ts, 663, 15)) + + p6(pa1): void; +>p6 : Symbol(eI.p6, Decl(giant.ts, 664, 21)) +>pa1 : Symbol(pa1, Decl(giant.ts, 665, 11)) + + p7(pa1, pa2): void; +>p7 : Symbol(eI.p7, Decl(giant.ts, 665, 22), Decl(giant.ts, 666, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 666, 11)) +>pa2 : Symbol(pa2, Decl(giant.ts, 666, 15)) + + p7? (pa1, pa2): void; +>p7 : Symbol(eI.p7, Decl(giant.ts, 665, 22), Decl(giant.ts, 666, 27)) +>pa1 : Symbol(pa1, Decl(giant.ts, 667, 13)) +>pa2 : Symbol(pa2, Decl(giant.ts, 667, 17)) + } + export module eM { +>eM : Symbol(eM, Decl(giant.ts, 668, 5)) + + var V; +>V : Symbol(V, Decl(giant.ts, 670, 11)) + + function F() { }; +>F : Symbol(F, Decl(giant.ts, 670, 14)) + + class C { } +>C : Symbol(C, Decl(giant.ts, 671, 25)) + + module M { } +>M : Symbol(M, Decl(giant.ts, 672, 19)) + + export var eV; +>eV : Symbol(eV, Decl(giant.ts, 674, 18)) + + export function eF() { }; +>eF : Symbol(eF, Decl(giant.ts, 674, 22)) + + export class eC { } +>eC : Symbol(eC, Decl(giant.ts, 675, 33)) + + export interface eI { } +>eI : Symbol(eI, Decl(giant.ts, 676, 27)) + + export module eM { } +>eM : Symbol(eM, Decl(giant.ts, 677, 31)) + } +} diff --git a/testdata/baselines/reference/submodule/compiler/giant.types b/testdata/baselines/reference/submodule/compiler/giant.types new file mode 100644 index 0000000000..61d2019461 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/giant.types @@ -0,0 +1,1710 @@ +//// [tests/cases/compiler/giant.ts] //// + +=== giant.ts === +/* + Prefixes + p -> public + r -> private + i -> import + e -> export + a -> ambient + t -> static + s -> set + g -> get + + MAX DEPTH 3 LEVELS +*/ +const p = "propName"; +>p : "propName" +>"propName" : "propName" + +var V; +>V : any + +function F() { }; +>F : () => void + +class C { +>C : C + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any +} +interface I { + //Call Signature + (); + (): number; + (p); +>p : any + + (p1: string); +>p1 : string + + (p2?: string); +>p2 : string + + (...p3: any[]); +>p3 : any[] + + (p4: string, p5?: string); +>p4 : string +>p5 : string + + (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : string + + new (p2?: string); +>p2 : string + + new (...p3: any[]); +>p3 : any[] + + new (p4: string, p5?: string); +>p4 : string +>p5 : string + + new (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //Index Signature + [p]; +>[p] : any +>p : "propName" + + [p1: string]; +>p1 : string + + [p2: string, p3: number]; +>p2 : string +>p3 : number + + //Property Signature + p; +>p : any + + p1?; +>p1 : any + + p2?: string; +>p2 : string + + //Function Signature + p3(); +>p3 : () => any + + p4? (); +>p4 : () => any + + p5? (): void; +>p5 : () => void + + p6(pa1): void; +>p6 : (pa1: any) => void +>pa1 : any + + p7(pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + + p7? (pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any +} +module M { +>M : typeof M + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { +>C : C + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any + } + interface I { + //Call Signature + (); + (): number; + (p); +>p : any + + (p1: string); +>p1 : string + + (p2?: string); +>p2 : string + + (...p3: any[]); +>p3 : any[] + + (p4: string, p5?: string); +>p4 : string +>p5 : string + + (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : string + + new (p2?: string); +>p2 : string + + new (...p3: any[]); +>p3 : any[] + + new (p4: string, p5?: string); +>p4 : string +>p5 : string + + new (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //Index Signature + [p]; +>[p] : any +>p : "propName" + + [p1: string]; +>p1 : string + + [p2: string, p3: number]; +>p2 : string +>p3 : number + + //Property Signature + p; +>p : any + + p1?; +>p1 : any + + p2?: string; +>p2 : string + + //Function Signature + p3(); +>p3 : () => any + + p4? (); +>p4 : () => any + + p5? (): void; +>p5 : () => void + + p6(pa1): void; +>p6 : (pa1: any) => void +>pa1 : any + + p7(pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + + p7? (pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + } + module M { +>M : typeof M + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { }; +>C : C + + interface I { }; + module M { }; + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { }; +>eC : eC + + export interface eI { }; + export module eM { }; + export declare var eaV; +>eaV : any + + export declare function eaF() { }; +>eaF : () => void + + export declare class eaC { }; +>eaC : eaC + + export declare module eaM { }; + } + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { +>eC : eC + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any + } + export interface eI { + //Call Signature + (); + (): number; + (p); +>p : any + + (p1: string); +>p1 : string + + (p2?: string); +>p2 : string + + (...p3: any[]); +>p3 : any[] + + (p4: string, p5?: string); +>p4 : string +>p5 : string + + (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : string + + new (p2?: string); +>p2 : string + + new (...p3: any[]); +>p3 : any[] + + new (p4: string, p5?: string); +>p4 : string +>p5 : string + + new (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //Index Signature + [p]; +>[p] : any +>p : "propName" + + [p1: string]; +>p1 : string + + [p2: string, p3: number]; +>p2 : string +>p3 : number + + //Property Signature + p; +>p : any + + p1?; +>p1 : any + + p2?: string; +>p2 : string + + //Function Signature + p3(); +>p3 : () => any + + p4? (); +>p4 : () => any + + p5? (): void; +>p5 : () => void + + p6(pa1): void; +>p6 : (pa1: any) => void +>pa1 : any + + p7(pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + + p7? (pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + } + export module eM { +>eM : typeof eM + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { }; +>C : C + + interface I { }; + module M { }; + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { }; +>eC : eC + + export interface eI { }; + export module eM { }; + export declare var eaV; +>eaV : any + + export declare function eaF() { }; +>eaF : () => void + + export declare class eaC { }; +>eaC : eaC + + export declare module eaM { }; + } + export declare var eaV; +>eaV : any + + export declare function eaF() { }; +>eaF : () => void + + export declare class eaC { +>eaC : eaC + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any + } + export declare module eaM { +>eaM : typeof eaM + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { } +>C : C + + interface I { } + module M { } + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { } +>eC : eC + + export interface eI { } + export module eM { } + } +} +export var eV; +>eV : any + +export function eF() { }; +>eF : () => void + +export class eC { +>eC : eC + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any +} +export interface eI { + //Call Signature + (); + (): number; + (p); +>p : any + + (p1: string); +>p1 : string + + (p2?: string); +>p2 : string + + (...p3: any[]); +>p3 : any[] + + (p4: string, p5?: string); +>p4 : string +>p5 : string + + (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : string + + new (p2?: string); +>p2 : string + + new (...p3: any[]); +>p3 : any[] + + new (p4: string, p5?: string); +>p4 : string +>p5 : string + + new (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //Index Signature + [p]; +>[p] : any +>p : "propName" + + [p1: string]; +>p1 : string + + [p2: string, p3: number]; +>p2 : string +>p3 : number + + //Property Signature + p; +>p : any + + p1?; +>p1 : any + + p2?: string; +>p2 : string + + //Function Signature + p3(); +>p3 : () => any + + p4? (); +>p4 : () => any + + p5? (): void; +>p5 : () => void + + p6(pa1): void; +>p6 : (pa1: any) => void +>pa1 : any + + p7(pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + + p7? (pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any +} +export module eM { +>eM : typeof import("giant").eM + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { +>C : C + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any + } + interface I { + //Call Signature + (); + (): number; + (p); +>p : any + + (p1: string); +>p1 : string + + (p2?: string); +>p2 : string + + (...p3: any[]); +>p3 : any[] + + (p4: string, p5?: string); +>p4 : string +>p5 : string + + (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : string + + new (p2?: string); +>p2 : string + + new (...p3: any[]); +>p3 : any[] + + new (p4: string, p5?: string); +>p4 : string +>p5 : string + + new (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //Index Signature + [p]; +>[p] : any +>p : "propName" + + [p1: string]; +>p1 : string + + [p2: string, p3: number]; +>p2 : string +>p3 : number + + //Property Signature + p; +>p : any + + p1?; +>p1 : any + + p2?: string; +>p2 : string + + //Function Signature + p3(); +>p3 : () => any + + p4? (); +>p4 : () => any + + p5? (): void; +>p5 : () => void + + p6(pa1): void; +>p6 : (pa1: any) => void +>pa1 : any + + p7(pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + + p7? (pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + } + module M { +>M : typeof M + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { }; +>C : C + + interface I { }; + module M { }; + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { }; +>eC : eC + + export interface eI { }; + export module eM { }; + export declare var eaV; +>eaV : any + + export declare function eaF() { }; +>eaF : () => void + + export declare class eaC { }; +>eaC : eaC + + export declare module eaM { }; + } + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { +>eC : eC + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any + } + export interface eI { + //Call Signature + (); + (): number; + (p); +>p : any + + (p1: string); +>p1 : string + + (p2?: string); +>p2 : string + + (...p3: any[]); +>p3 : any[] + + (p4: string, p5?: string); +>p4 : string +>p5 : string + + (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : string + + new (p2?: string); +>p2 : string + + new (...p3: any[]); +>p3 : any[] + + new (p4: string, p5?: string); +>p4 : string +>p5 : string + + new (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //Index Signature + [p]; +>[p] : any +>p : "propName" + + [p1: string]; +>p1 : string + + [p2: string, p3: number]; +>p2 : string +>p3 : number + + //Property Signature + p; +>p : any + + p1?; +>p1 : any + + p2?: string; +>p2 : string + + //Function Signature + p3(); +>p3 : () => any + + p4? (); +>p4 : () => any + + p5? (): void; +>p5 : () => void + + p6(pa1): void; +>p6 : (pa1: any) => void +>pa1 : any + + p7(pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + + p7? (pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + } + export module eM { +>eM : typeof eM + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { }; +>C : C + + interface I { }; + module M { }; + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { }; +>eC : eC + + export interface eI { }; + export module eM { }; + export declare var eaV; +>eaV : any + + export declare function eaF() { }; +>eaF : () => void + + export declare class eaC { }; +>eaC : eaC + + export declare module eaM { }; + } + export declare var eaV; +>eaV : any + + export declare function eaF() { }; +>eaF : () => void + + export declare class eaC { +>eaC : eaC + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any + } + export declare module eaM { +>eaM : typeof eaM + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { } +>C : C + + interface I { } + module M { } + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { } +>eC : eC + + export interface eI { } + export module eM { } + } +} +export declare var eaV; +>eaV : any + +export declare function eaF() { }; +>eaF : () => void + +export declare class eaC { +>eaC : eaC + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + private rF() { } +>rF : () => void + + public pgF() { } +>pgF : () => void + + public get pgF() +>pgF : any + + public psF(param:any) { } +>psF : (param: any) => void +>param : any + + public set psF(param:any) +>psF : any +>param : any + + private rgF() { } +>rgF : () => void + + private get rgF() +>rgF : any + + private rsF(param:any) { } +>rsF : (param: any) => void +>param : any + + private set rsF(param:any) +>rsF : any +>param : any + + static tV; +>tV : any + + static tF() { } +>tF : () => void + + static tsF(param:any) { } +>tsF : (param: any) => void +>param : any + + static set tsF(param:any) +>tsF : any +>param : any + + static tgF() { } +>tgF : () => void + + static get tgF() +>tgF : any +} +export declare module eaM { +>eaM : typeof eaM + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { +>C : C + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + static tV; +>tV : any + + static tF() { } +>tF : () => void + } + interface I { + //Call Signature + (); + (): number; + (p: string); +>p : string + + (p2?: string); +>p2 : string + + (...p3: any[]); +>p3 : any[] + + (p4: string, p5?: string); +>p4 : string +>p5 : string + + (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : string + + new (p2?: string); +>p2 : string + + new (...p3: any[]); +>p3 : any[] + + new (p4: string, p5?: string); +>p4 : string +>p5 : string + + new (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //Index Signature + [p]; +>[p] : any +>p : "propName" + + [p1: string]; +>p1 : string + + [p2: string, p3: number]; +>p2 : string +>p3 : number + + //Property Signature + p; +>p : any + + p1?; +>p1 : any + + p2?: string; +>p2 : string + + //Function Signature + p3(); +>p3 : () => any + + p4? (); +>p4 : () => any + + p5? (): void; +>p5 : () => void + + p6(pa1): void; +>p6 : (pa1: any) => void +>pa1 : any + + p7(pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + + p7? (pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + } + module M { +>M : typeof M + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { } +>C : C + + interface I { } + module M { } + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { } +>eC : eC + + export interface eI { } + export module eM { } + export declare var eaV +>eaV : any + + export declare function eaF() { }; +>eaF : () => void + + export declare class eaC { } +>eaC : eaC + + export declare module eaM { } + } + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { +>eC : eC + + constructor () { } + public pV; +>pV : any + + private rV; +>rV : any + + public pF() { } +>pF : () => void + + static tV +>tV : any + + static tF() { } +>tF : () => void + } + export interface eI { + //Call Signature + (); + (): number; + (p); +>p : any + + (p1: string); +>p1 : string + + (p2?: string); +>p2 : string + + (...p3: any[]); +>p3 : any[] + + (p4: string, p5?: string); +>p4 : string +>p5 : string + + (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //(p8?: string, ...p9: any[]); + //(p10:string, p8?: string, ...p9: any[]); + + //Construct Signature + new (); + new (): number; + new (p: string); +>p : string + + new (p2?: string); +>p2 : string + + new (...p3: any[]); +>p3 : any[] + + new (p4: string, p5?: string); +>p4 : string +>p5 : string + + new (p6: string, ...p7: any[]); +>p6 : string +>p7 : any[] + + //Index Signature + [p]; +>[p] : any +>p : "propName" + + [p1: string]; +>p1 : string + + [p2: string, p3: number]; +>p2 : string +>p3 : number + + //Property Signature + p; +>p : any + + p1?; +>p1 : any + + p2?: string; +>p2 : string + + //Function Signature + p3(); +>p3 : () => any + + p4? (); +>p4 : () => any + + p5? (): void; +>p5 : () => void + + p6(pa1): void; +>p6 : (pa1: any) => void +>pa1 : any + + p7(pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + + p7? (pa1, pa2): void; +>p7 : { (pa1: any, pa2: any): void; (pa1: any, pa2: any): void; } +>pa1 : any +>pa2 : any + } + export module eM { +>eM : typeof eM + + var V; +>V : any + + function F() { }; +>F : () => void + + class C { } +>C : C + + module M { } + export var eV; +>eV : any + + export function eF() { }; +>eF : () => void + + export class eC { } +>eC : eC + + export interface eI { } + export module eM { } + } +} diff --git a/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js b/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js index f2d8c25c70..c2662909f9 100644 --- a/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js +++ b/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js @@ -26,9 +26,42 @@ let x2 = ; // Error //// [ignoredJsxAttributes.js] "use strict"; /// +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); // Repro from #44797 -const React = require("react"); +const React = __importStar(require("react")); let props = { foo: "", "data-yadda": 42, // Error diff --git a/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js.diff b/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js.diff index 1dc2a3e2ff..27f718e4f3 100644 --- a/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js.diff @@ -1,11 +1,11 @@ --- old.ignoredJsxAttributes.js +++ new.ignoredJsxAttributes.js -@@= skipped -27, +27 lines =@@ - /// +@@= skipped -60, +60 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); // Repro from #44797 --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); let props = { foo: "", "data-yadda": 42, // Error \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.errors.txt b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.errors.txt new file mode 100644 index 0000000000..12e30795ff --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.errors.txt @@ -0,0 +1,39 @@ +importDeclWithClassModifiers.ts(5,8): error TS1044: 'public' modifier cannot appear on a module or namespace element. +importDeclWithClassModifiers.ts(5,26): error TS2708: Cannot use namespace 'x' as a value. +importDeclWithClassModifiers.ts(5,28): error TS2694: Namespace 'x' has no exported member 'c'. +importDeclWithClassModifiers.ts(6,8): error TS1044: 'private' modifier cannot appear on a module or namespace element. +importDeclWithClassModifiers.ts(6,27): error TS2708: Cannot use namespace 'x' as a value. +importDeclWithClassModifiers.ts(6,29): error TS2694: Namespace 'x' has no exported member 'c'. +importDeclWithClassModifiers.ts(7,8): error TS1044: 'static' modifier cannot appear on a module or namespace element. +importDeclWithClassModifiers.ts(7,26): error TS2708: Cannot use namespace 'x' as a value. +importDeclWithClassModifiers.ts(7,28): error TS2694: Namespace 'x' has no exported member 'c'. + + +==== importDeclWithClassModifiers.ts (9 errors) ==== + namespace x { + interface c { + } + } + export public import a = x.c; + ~~~~~~ +!!! error TS1044: 'public' modifier cannot appear on a module or namespace element. + ~ +!!! error TS2708: Cannot use namespace 'x' as a value. + ~ +!!! error TS2694: Namespace 'x' has no exported member 'c'. + export private import b = x.c; + ~~~~~~~ +!!! error TS1044: 'private' modifier cannot appear on a module or namespace element. + ~ +!!! error TS2708: Cannot use namespace 'x' as a value. + ~ +!!! error TS2694: Namespace 'x' has no exported member 'c'. + export static import c = x.c; + ~~~~~~ +!!! error TS1044: 'static' modifier cannot appear on a module or namespace element. + ~ +!!! error TS2708: Cannot use namespace 'x' as a value. + ~ +!!! error TS2694: Namespace 'x' has no exported member 'c'. + var b: a; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.js b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.js new file mode 100644 index 0000000000..daf66572ad --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/importDeclWithClassModifiers.ts] //// + +//// [importDeclWithClassModifiers.ts] +namespace x { + interface c { + } +} +export public import a = x.c; +export private import b = x.c; +export static import c = x.c; +var b: a; + + +//// [importDeclWithClassModifiers.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var b; diff --git a/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.js.diff b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.js.diff new file mode 100644 index 0000000000..9f03b5ceda --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.js.diff @@ -0,0 +1,11 @@ +--- old.importDeclWithClassModifiers.js ++++ new.importDeclWithClassModifiers.js +@@= skipped -13, +13 lines =@@ + //// [importDeclWithClassModifiers.js] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-exports.c = exports.b = exports.a = void 0; +-exports.a = x.c; +-exports.b = x.c; +-exports.c = x.c; + var b; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.symbols b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.symbols new file mode 100644 index 0000000000..4defa696fb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.symbols @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/importDeclWithClassModifiers.ts] //// + +=== importDeclWithClassModifiers.ts === +namespace x { +>x : Symbol(x, Decl(importDeclWithClassModifiers.ts, 0, 0)) + + interface c { +>c : Symbol(c, Decl(importDeclWithClassModifiers.ts, 0, 13)) + } +} +export public import a = x.c; +>a : Symbol(a, Decl(importDeclWithClassModifiers.ts, 3, 1)) +>x : Symbol(x, Decl(importDeclWithClassModifiers.ts, 0, 0)) + +export private import b = x.c; +>b : Symbol(b, Decl(importDeclWithClassModifiers.ts, 4, 29)) +>x : Symbol(x, Decl(importDeclWithClassModifiers.ts, 0, 0)) + +export static import c = x.c; +>c : Symbol(c, Decl(importDeclWithClassModifiers.ts, 5, 30)) +>x : Symbol(x, Decl(importDeclWithClassModifiers.ts, 0, 0)) + +var b: a; +>b : Symbol(b, Decl(importDeclWithClassModifiers.ts, 7, 3)) +>a : Symbol(a, Decl(importDeclWithClassModifiers.ts, 3, 1)) + diff --git a/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.types b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.types new file mode 100644 index 0000000000..a915e8be3e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importDeclWithClassModifiers.types @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/importDeclWithClassModifiers.ts] //// + +=== importDeclWithClassModifiers.ts === +namespace x { + interface c { + } +} +export public import a = x.c; +>a : any +>x : any +>c : any + +export private import b = x.c; +>b : any +>x : any +>c : any + +export static import c = x.c; +>c : any +>x : any +>c : any + +var b: a; +>b : a + diff --git a/testdata/baselines/reference/submodule/compiler/importHelpers.js b/testdata/baselines/reference/submodule/compiler/importHelpers.js index b6f49b26d4..3f818f167e 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpers.js +++ b/testdata/baselines/reference/submodule/compiler/importHelpers.js @@ -36,7 +36,7 @@ function id(x: T) { const result = id`hello world`; -//// [tslib.d.ts] +//// [index.d.ts] export declare function __extends(d: Function, b: Function): void; export declare function __assign(t: any, ...sources: any[]): any; export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpers.symbols b/testdata/baselines/reference/submodule/compiler/importHelpers.symbols index 89b7a935c4..b5129fc716 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpers.symbols +++ b/testdata/baselines/reference/submodule/compiler/importHelpers.symbols @@ -76,52 +76,52 @@ const result = id`hello world`; >result : Symbol(result, Decl(script.ts, 15, 5)) >id : Symbol(id, Decl(script.ts, 9, 1)) -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; ->__extends : Symbol(__extends, Decl(tslib.d.ts, 0, 0)) ->d : Symbol(d, Decl(tslib.d.ts, 0, 34)) +>__extends : Symbol(__extends, Decl(index.d.ts, 0, 0)) +>d : Symbol(d, Decl(index.d.ts, 0, 34)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->b : Symbol(b, Decl(tslib.d.ts, 0, 46)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __assign(t: any, ...sources: any[]): any; ->__assign : Symbol(__assign, Decl(tslib.d.ts, 0, 66)) ->t : Symbol(t, Decl(tslib.d.ts, 1, 33)) ->sources : Symbol(sources, Decl(tslib.d.ts, 1, 40)) +>__assign : Symbol(__assign, Decl(index.d.ts, 0, 66)) +>t : Symbol(t, Decl(index.d.ts, 1, 33)) +>sources : Symbol(sources, Decl(index.d.ts, 1, 40)) export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; ->__decorate : Symbol(__decorate, Decl(tslib.d.ts, 1, 65)) ->decorators : Symbol(decorators, Decl(tslib.d.ts, 2, 35)) +>__decorate : Symbol(__decorate, Decl(index.d.ts, 1, 65)) +>decorators : Symbol(decorators, Decl(index.d.ts, 2, 35)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->target : Symbol(target, Decl(tslib.d.ts, 2, 58)) ->key : Symbol(key, Decl(tslib.d.ts, 2, 71)) ->desc : Symbol(desc, Decl(tslib.d.ts, 2, 94)) +>target : Symbol(target, Decl(index.d.ts, 2, 58)) +>key : Symbol(key, Decl(index.d.ts, 2, 71)) +>desc : Symbol(desc, Decl(index.d.ts, 2, 94)) export declare function __param(paramIndex: number, decorator: Function): Function; ->__param : Symbol(__param, Decl(tslib.d.ts, 2, 112)) ->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, 3, 32)) ->decorator : Symbol(decorator, Decl(tslib.d.ts, 3, 51)) +>__param : Symbol(__param, Decl(index.d.ts, 2, 112)) +>paramIndex : Symbol(paramIndex, Decl(index.d.ts, 3, 32)) +>decorator : Symbol(decorator, Decl(index.d.ts, 3, 51)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __metadata(metadataKey: any, metadataValue: any): Function; ->__metadata : Symbol(__metadata, Decl(tslib.d.ts, 3, 83)) ->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, 4, 35)) ->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, 4, 52)) +>__metadata : Symbol(__metadata, Decl(index.d.ts, 3, 83)) +>metadataKey : Symbol(metadataKey, Decl(index.d.ts, 4, 35)) +>metadataValue : Symbol(metadataValue, Decl(index.d.ts, 4, 52)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; ->__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, 4, 83)) ->thisArg : Symbol(thisArg, Decl(tslib.d.ts, 5, 34)) ->_arguments : Symbol(_arguments, Decl(tslib.d.ts, 5, 47)) ->P : Symbol(P, Decl(tslib.d.ts, 5, 64)) +>__awaiter : Symbol(__awaiter, Decl(index.d.ts, 4, 83)) +>thisArg : Symbol(thisArg, Decl(index.d.ts, 5, 34)) +>_arguments : Symbol(_arguments, Decl(index.d.ts, 5, 47)) +>P : Symbol(P, Decl(index.d.ts, 5, 64)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->generator : Symbol(generator, Decl(tslib.d.ts, 5, 77)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; ->__makeTemplateObject : Symbol(__makeTemplateObject, Decl(tslib.d.ts, 5, 104)) ->cooked : Symbol(cooked, Decl(tslib.d.ts, 6, 45)) ->raw : Symbol(raw, Decl(tslib.d.ts, 6, 62)) +>__makeTemplateObject : Symbol(__makeTemplateObject, Decl(index.d.ts, 5, 104)) +>cooked : Symbol(cooked, Decl(index.d.ts, 6, 45)) +>raw : Symbol(raw, Decl(index.d.ts, 6, 62)) >TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --)) diff --git a/testdata/baselines/reference/submodule/compiler/importHelpers.symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpers.symbols.diff deleted file mode 100644 index de9c2fe80d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpers.symbols.diff +++ /dev/null @@ -1,77 +0,0 @@ ---- old.importHelpers.symbols -+++ new.importHelpers.symbols -@@= skipped -77, +77 lines =@@ - - === tslib.d.ts === - export declare function __extends(d: Function, b: Function): void; -->__extends : Symbol(__extends, Decl(tslib.d.ts, --, --)) -->d : Symbol(d, Decl(tslib.d.ts, --, --)) -+>__extends : Symbol(__extends, Decl(tslib.d.ts, 0, 0)) -+>d : Symbol(d, Decl(tslib.d.ts, 0, 34)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->b : Symbol(b, Decl(tslib.d.ts, --, --)) -+>b : Symbol(b, Decl(tslib.d.ts, 0, 46)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __assign(t: any, ...sources: any[]): any; -->__assign : Symbol(__assign, Decl(tslib.d.ts, --, --)) -->t : Symbol(t, Decl(tslib.d.ts, --, --)) -->sources : Symbol(sources, Decl(tslib.d.ts, --, --)) -+>__assign : Symbol(__assign, Decl(tslib.d.ts, 0, 66)) -+>t : Symbol(t, Decl(tslib.d.ts, 1, 33)) -+>sources : Symbol(sources, Decl(tslib.d.ts, 1, 40)) - - export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -->__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --)) -->decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) -+>__decorate : Symbol(__decorate, Decl(tslib.d.ts, 1, 65)) -+>decorators : Symbol(decorators, Decl(tslib.d.ts, 2, 35)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->target : Symbol(target, Decl(tslib.d.ts, --, --)) -->key : Symbol(key, Decl(tslib.d.ts, --, --)) -->desc : Symbol(desc, Decl(tslib.d.ts, --, --)) -+>target : Symbol(target, Decl(tslib.d.ts, 2, 58)) -+>key : Symbol(key, Decl(tslib.d.ts, 2, 71)) -+>desc : Symbol(desc, Decl(tslib.d.ts, 2, 94)) - - export declare function __param(paramIndex: number, decorator: Function): Function; -->__param : Symbol(__param, Decl(tslib.d.ts, --, --)) -->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) -->decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) -+>__param : Symbol(__param, Decl(tslib.d.ts, 2, 112)) -+>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, 3, 32)) -+>decorator : Symbol(decorator, Decl(tslib.d.ts, 3, 51)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __metadata(metadataKey: any, metadataValue: any): Function; -->__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --)) -->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) -->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) -+>__metadata : Symbol(__metadata, Decl(tslib.d.ts, 3, 83)) -+>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, 4, 35)) -+>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, 4, 52)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -->__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --)) -->thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) -->_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --)) -->P : Symbol(P, Decl(tslib.d.ts, --, --)) -+>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, 4, 83)) -+>thisArg : Symbol(thisArg, Decl(tslib.d.ts, 5, 34)) -+>_arguments : Symbol(_arguments, Decl(tslib.d.ts, 5, 47)) -+>P : Symbol(P, Decl(tslib.d.ts, 5, 64)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->generator : Symbol(generator, Decl(tslib.d.ts, --, --)) -+>generator : Symbol(generator, Decl(tslib.d.ts, 5, 77)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; -->__makeTemplateObject : Symbol(__makeTemplateObject, Decl(tslib.d.ts, --, --)) -->cooked : Symbol(cooked, Decl(tslib.d.ts, --, --)) -->raw : Symbol(raw, Decl(tslib.d.ts, --, --)) -+>__makeTemplateObject : Symbol(__makeTemplateObject, Decl(tslib.d.ts, 5, 104)) -+>cooked : Symbol(cooked, Decl(tslib.d.ts, 6, 45)) -+>raw : Symbol(raw, Decl(tslib.d.ts, 6, 62)) - >TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --)) diff --git a/testdata/baselines/reference/submodule/compiler/importHelpers.types b/testdata/baselines/reference/submodule/compiler/importHelpers.types index 2027d3c598..55bc2641cf 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpers.types +++ b/testdata/baselines/reference/submodule/compiler/importHelpers.types @@ -76,7 +76,7 @@ const result = id`hello world`; >id : (x: T) => T >`hello world` : "hello world" -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; >__extends : (d: Function, b: Function) => void >d : Function diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersES6.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/importHelpersES6.errors.txt.diff new file mode 100644 index 0000000000..60f9121f02 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importHelpersES6.errors.txt.diff @@ -0,0 +1,30 @@ +--- old.importHelpersES6.errors.txt ++++ new.importHelpersES6.errors.txt +@@= skipped -0, +0 lines =@@ +-a.ts(2,1): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +- +- +-==== a.ts (1 errors) ==== +- declare var dec: any; +- @dec export class A { +- ~~~~ +-!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +- #x: number = 1; +- async f() { this.#x = await this.#x; } +- g(u) { return #x in u; } +- } +- +- const o = { a: 1 }; +- const y = { ...o }; +- +-==== tslib.d.ts (0 errors) ==== +- export declare function __extends(d: Function, b: Function): void; +- export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +- export declare function __param(paramIndex: number, decorator: Function): Function; +- export declare function __metadata(metadataKey: any, metadataValue: any): Function; +- export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +- export declare function __classPrivateFieldGet(a: any, b: any, c: any, d: any): any; +- export declare function __classPrivateFieldSet(a: any, b: any, c: any, d: any, e: any): any; +- export declare function __classPrivateFieldIn(a: any, b: any): boolean; +- ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js index e455c9c63b..c38d01d11f 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js +++ b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js @@ -24,7 +24,7 @@ class C { } } -//// [tslib.d.ts] +//// [index.d.ts] export declare function __extends(d: Function, b: Function): void; export declare function __assign(t: any, ...sources: any[]): any; export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.symbols b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.symbols index 99e81761f9..dd10b49a53 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.symbols +++ b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.symbols @@ -48,46 +48,46 @@ class C { } } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; ->__extends : Symbol(__extends, Decl(tslib.d.ts, 0, 0)) ->d : Symbol(d, Decl(tslib.d.ts, 0, 34)) +>__extends : Symbol(__extends, Decl(index.d.ts, 0, 0)) +>d : Symbol(d, Decl(index.d.ts, 0, 34)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->b : Symbol(b, Decl(tslib.d.ts, 0, 46)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __assign(t: any, ...sources: any[]): any; ->__assign : Symbol(__assign, Decl(tslib.d.ts, 0, 66)) ->t : Symbol(t, Decl(tslib.d.ts, 1, 33)) ->sources : Symbol(sources, Decl(tslib.d.ts, 1, 40)) +>__assign : Symbol(__assign, Decl(index.d.ts, 0, 66)) +>t : Symbol(t, Decl(index.d.ts, 1, 33)) +>sources : Symbol(sources, Decl(index.d.ts, 1, 40)) export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; ->__decorate : Symbol(__decorate, Decl(tslib.d.ts, 1, 65)) ->decorators : Symbol(decorators, Decl(tslib.d.ts, 2, 35)) +>__decorate : Symbol(__decorate, Decl(index.d.ts, 1, 65)) +>decorators : Symbol(decorators, Decl(index.d.ts, 2, 35)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->target : Symbol(target, Decl(tslib.d.ts, 2, 58)) ->key : Symbol(key, Decl(tslib.d.ts, 2, 71)) ->desc : Symbol(desc, Decl(tslib.d.ts, 2, 94)) +>target : Symbol(target, Decl(index.d.ts, 2, 58)) +>key : Symbol(key, Decl(index.d.ts, 2, 71)) +>desc : Symbol(desc, Decl(index.d.ts, 2, 94)) export declare function __param(paramIndex: number, decorator: Function): Function; ->__param : Symbol(__param, Decl(tslib.d.ts, 2, 112)) ->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, 3, 32)) ->decorator : Symbol(decorator, Decl(tslib.d.ts, 3, 51)) +>__param : Symbol(__param, Decl(index.d.ts, 2, 112)) +>paramIndex : Symbol(paramIndex, Decl(index.d.ts, 3, 32)) +>decorator : Symbol(decorator, Decl(index.d.ts, 3, 51)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __metadata(metadataKey: any, metadataValue: any): Function; ->__metadata : Symbol(__metadata, Decl(tslib.d.ts, 3, 83)) ->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, 4, 35)) ->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, 4, 52)) +>__metadata : Symbol(__metadata, Decl(index.d.ts, 3, 83)) +>metadataKey : Symbol(metadataKey, Decl(index.d.ts, 4, 35)) +>metadataValue : Symbol(metadataValue, Decl(index.d.ts, 4, 52)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; ->__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, 4, 83)) ->thisArg : Symbol(thisArg, Decl(tslib.d.ts, 5, 34)) ->_arguments : Symbol(_arguments, Decl(tslib.d.ts, 5, 47)) ->P : Symbol(P, Decl(tslib.d.ts, 5, 64)) +>__awaiter : Symbol(__awaiter, Decl(index.d.ts, 4, 83)) +>thisArg : Symbol(thisArg, Decl(index.d.ts, 5, 34)) +>_arguments : Symbol(_arguments, Decl(index.d.ts, 5, 47)) +>P : Symbol(P, Decl(index.d.ts, 5, 64)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->generator : Symbol(generator, Decl(tslib.d.ts, 5, 77)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.symbols.diff deleted file mode 100644 index c41fc7d7fc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.symbols.diff +++ /dev/null @@ -1,68 +0,0 @@ ---- old.importHelpersInIsolatedModules.symbols -+++ new.importHelpersInIsolatedModules.symbols -@@= skipped -49, +49 lines =@@ - - === tslib.d.ts === - export declare function __extends(d: Function, b: Function): void; -->__extends : Symbol(__extends, Decl(tslib.d.ts, --, --)) -->d : Symbol(d, Decl(tslib.d.ts, --, --)) -+>__extends : Symbol(__extends, Decl(tslib.d.ts, 0, 0)) -+>d : Symbol(d, Decl(tslib.d.ts, 0, 34)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->b : Symbol(b, Decl(tslib.d.ts, --, --)) -+>b : Symbol(b, Decl(tslib.d.ts, 0, 46)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __assign(t: any, ...sources: any[]): any; -->__assign : Symbol(__assign, Decl(tslib.d.ts, --, --)) -->t : Symbol(t, Decl(tslib.d.ts, --, --)) -->sources : Symbol(sources, Decl(tslib.d.ts, --, --)) -+>__assign : Symbol(__assign, Decl(tslib.d.ts, 0, 66)) -+>t : Symbol(t, Decl(tslib.d.ts, 1, 33)) -+>sources : Symbol(sources, Decl(tslib.d.ts, 1, 40)) - - export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -->__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --)) -->decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) -+>__decorate : Symbol(__decorate, Decl(tslib.d.ts, 1, 65)) -+>decorators : Symbol(decorators, Decl(tslib.d.ts, 2, 35)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->target : Symbol(target, Decl(tslib.d.ts, --, --)) -->key : Symbol(key, Decl(tslib.d.ts, --, --)) -->desc : Symbol(desc, Decl(tslib.d.ts, --, --)) -+>target : Symbol(target, Decl(tslib.d.ts, 2, 58)) -+>key : Symbol(key, Decl(tslib.d.ts, 2, 71)) -+>desc : Symbol(desc, Decl(tslib.d.ts, 2, 94)) - - export declare function __param(paramIndex: number, decorator: Function): Function; -->__param : Symbol(__param, Decl(tslib.d.ts, --, --)) -->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) -->decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) -+>__param : Symbol(__param, Decl(tslib.d.ts, 2, 112)) -+>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, 3, 32)) -+>decorator : Symbol(decorator, Decl(tslib.d.ts, 3, 51)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __metadata(metadataKey: any, metadataValue: any): Function; -->__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --)) -->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) -->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) -+>__metadata : Symbol(__metadata, Decl(tslib.d.ts, 3, 83)) -+>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, 4, 35)) -+>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, 4, 52)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -->__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --)) -->thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) -->_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --)) -->P : Symbol(P, Decl(tslib.d.ts, --, --)) -+>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, 4, 83)) -+>thisArg : Symbol(thisArg, Decl(tslib.d.ts, 5, 34)) -+>_arguments : Symbol(_arguments, Decl(tslib.d.ts, 5, 47)) -+>P : Symbol(P, Decl(tslib.d.ts, 5, 64)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->generator : Symbol(generator, Decl(tslib.d.ts, --, --)) -+>generator : Symbol(generator, Decl(tslib.d.ts, 5, 77)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.types b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.types index c90d5e1872..3620f8a01c 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.types +++ b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.types @@ -48,7 +48,7 @@ class C { } } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; >__extends : (d: Function, b: Function) => void >d : Function diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.js b/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.js index bb85abcce9..5541448594 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.js +++ b/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.js @@ -10,7 +10,7 @@ declare var React: any; declare var o: any; const x = -//// [tslib.d.ts] +//// [index.d.ts] export declare function __extends(d: Function, b: Function): void; export declare function __assign(t: any, ...sources: any[]): any; export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.symbols b/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.symbols index 5196660bdb..e6c5d0a6f3 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.symbols +++ b/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.symbols @@ -22,46 +22,46 @@ const x = >x : Symbol(x, Decl(script.tsx, 2, 5)) >o : Symbol(o, Decl(script.tsx, 1, 11)) -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; ->__extends : Symbol(__extends, Decl(tslib.d.ts, 0, 0)) ->d : Symbol(d, Decl(tslib.d.ts, 0, 34)) +>__extends : Symbol(__extends, Decl(index.d.ts, 0, 0)) +>d : Symbol(d, Decl(index.d.ts, 0, 34)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->b : Symbol(b, Decl(tslib.d.ts, 0, 46)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __assign(t: any, ...sources: any[]): any; ->__assign : Symbol(__assign, Decl(tslib.d.ts, 0, 66)) ->t : Symbol(t, Decl(tslib.d.ts, 1, 33)) ->sources : Symbol(sources, Decl(tslib.d.ts, 1, 40)) +>__assign : Symbol(__assign, Decl(index.d.ts, 0, 66)) +>t : Symbol(t, Decl(index.d.ts, 1, 33)) +>sources : Symbol(sources, Decl(index.d.ts, 1, 40)) export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; ->__decorate : Symbol(__decorate, Decl(tslib.d.ts, 1, 65)) ->decorators : Symbol(decorators, Decl(tslib.d.ts, 2, 35)) +>__decorate : Symbol(__decorate, Decl(index.d.ts, 1, 65)) +>decorators : Symbol(decorators, Decl(index.d.ts, 2, 35)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->target : Symbol(target, Decl(tslib.d.ts, 2, 58)) ->key : Symbol(key, Decl(tslib.d.ts, 2, 71)) ->desc : Symbol(desc, Decl(tslib.d.ts, 2, 94)) +>target : Symbol(target, Decl(index.d.ts, 2, 58)) +>key : Symbol(key, Decl(index.d.ts, 2, 71)) +>desc : Symbol(desc, Decl(index.d.ts, 2, 94)) export declare function __param(paramIndex: number, decorator: Function): Function; ->__param : Symbol(__param, Decl(tslib.d.ts, 2, 112)) ->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, 3, 32)) ->decorator : Symbol(decorator, Decl(tslib.d.ts, 3, 51)) +>__param : Symbol(__param, Decl(index.d.ts, 2, 112)) +>paramIndex : Symbol(paramIndex, Decl(index.d.ts, 3, 32)) +>decorator : Symbol(decorator, Decl(index.d.ts, 3, 51)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __metadata(metadataKey: any, metadataValue: any): Function; ->__metadata : Symbol(__metadata, Decl(tslib.d.ts, 3, 83)) ->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, 4, 35)) ->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, 4, 52)) +>__metadata : Symbol(__metadata, Decl(index.d.ts, 3, 83)) +>metadataKey : Symbol(metadataKey, Decl(index.d.ts, 4, 35)) +>metadataValue : Symbol(metadataValue, Decl(index.d.ts, 4, 52)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; ->__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, 4, 83)) ->thisArg : Symbol(thisArg, Decl(tslib.d.ts, 5, 34)) ->_arguments : Symbol(_arguments, Decl(tslib.d.ts, 5, 47)) ->P : Symbol(P, Decl(tslib.d.ts, 5, 64)) +>__awaiter : Symbol(__awaiter, Decl(index.d.ts, 4, 83)) +>thisArg : Symbol(thisArg, Decl(index.d.ts, 5, 34)) +>_arguments : Symbol(_arguments, Decl(index.d.ts, 5, 47)) +>P : Symbol(P, Decl(index.d.ts, 5, 64)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->generator : Symbol(generator, Decl(tslib.d.ts, 5, 77)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.symbols.diff deleted file mode 100644 index 941b519187..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.symbols.diff +++ /dev/null @@ -1,68 +0,0 @@ ---- old.importHelpersInTsx.symbols -+++ new.importHelpersInTsx.symbols -@@= skipped -23, +23 lines =@@ - - === tslib.d.ts === - export declare function __extends(d: Function, b: Function): void; -->__extends : Symbol(__extends, Decl(tslib.d.ts, --, --)) -->d : Symbol(d, Decl(tslib.d.ts, --, --)) -+>__extends : Symbol(__extends, Decl(tslib.d.ts, 0, 0)) -+>d : Symbol(d, Decl(tslib.d.ts, 0, 34)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->b : Symbol(b, Decl(tslib.d.ts, --, --)) -+>b : Symbol(b, Decl(tslib.d.ts, 0, 46)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __assign(t: any, ...sources: any[]): any; -->__assign : Symbol(__assign, Decl(tslib.d.ts, --, --)) -->t : Symbol(t, Decl(tslib.d.ts, --, --)) -->sources : Symbol(sources, Decl(tslib.d.ts, --, --)) -+>__assign : Symbol(__assign, Decl(tslib.d.ts, 0, 66)) -+>t : Symbol(t, Decl(tslib.d.ts, 1, 33)) -+>sources : Symbol(sources, Decl(tslib.d.ts, 1, 40)) - - export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -->__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --)) -->decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) -+>__decorate : Symbol(__decorate, Decl(tslib.d.ts, 1, 65)) -+>decorators : Symbol(decorators, Decl(tslib.d.ts, 2, 35)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->target : Symbol(target, Decl(tslib.d.ts, --, --)) -->key : Symbol(key, Decl(tslib.d.ts, --, --)) -->desc : Symbol(desc, Decl(tslib.d.ts, --, --)) -+>target : Symbol(target, Decl(tslib.d.ts, 2, 58)) -+>key : Symbol(key, Decl(tslib.d.ts, 2, 71)) -+>desc : Symbol(desc, Decl(tslib.d.ts, 2, 94)) - - export declare function __param(paramIndex: number, decorator: Function): Function; -->__param : Symbol(__param, Decl(tslib.d.ts, --, --)) -->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) -->decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) -+>__param : Symbol(__param, Decl(tslib.d.ts, 2, 112)) -+>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, 3, 32)) -+>decorator : Symbol(decorator, Decl(tslib.d.ts, 3, 51)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __metadata(metadataKey: any, metadataValue: any): Function; -->__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --)) -->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) -->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) -+>__metadata : Symbol(__metadata, Decl(tslib.d.ts, 3, 83)) -+>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, 4, 35)) -+>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, 4, 52)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -->__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --)) -->thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) -->_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --)) -->P : Symbol(P, Decl(tslib.d.ts, --, --)) -+>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, 4, 83)) -+>thisArg : Symbol(thisArg, Decl(tslib.d.ts, 5, 34)) -+>_arguments : Symbol(_arguments, Decl(tslib.d.ts, 5, 47)) -+>P : Symbol(P, Decl(tslib.d.ts, 5, 64)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) -->generator : Symbol(generator, Decl(tslib.d.ts, --, --)) -+>generator : Symbol(generator, Decl(tslib.d.ts, 5, 77)) - >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.types b/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.types index e05eea951f..6ad008e20a 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.types +++ b/testdata/baselines/reference/submodule/compiler/importHelpersInTsx.types @@ -26,7 +26,7 @@ const x = >span : any >o : any -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; >__extends : (d: Function, b: Function) => void >d : Function diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.errors.txt.diff deleted file mode 100644 index d8198de297..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.errors.txt.diff +++ /dev/null @@ -1,62 +0,0 @@ ---- old.importHelpersNoHelpers.errors.txt -+++ new.importHelpersNoHelpers.errors.txt -@@= skipped -0, +0 lines =@@ --external.ts(1,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --external.ts(3,16): error TS2343: This syntax requires an imported helper named '__extends' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --external.ts(7,1): error TS2343: This syntax requires an imported helper named '__decorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --external.ts(7,1): error TS2343: This syntax requires an imported helper named '__metadata' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --external.ts(9,12): error TS2343: This syntax requires an imported helper named '__param' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --external.ts(14,13): error TS2343: This syntax requires an imported helper named '__assign' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --external.ts(15,12): error TS2343: This syntax requires an imported helper named '__rest' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== external.ts (7 errors) ==== -- export * from "./other"; -- ~~~~~~~~~~~~~~~~~~~~~~~~ --!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- export class A { } -- export class B extends A { } -- ~~~~~~~~~ --!!! error TS2343: This syntax requires an imported helper named '__extends' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- declare var dec: any; -- -- @dec -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__decorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__metadata' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- class C { -- method(@dec x: number) { -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__param' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- } -- -- const o = { a: 1 }; -- const y = { ...o }; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__assign' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- const { ...x } = y; -- ~ --!!! error TS2343: This syntax requires an imported helper named '__rest' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== other.ts (0 errors) ==== -- export const x = 1; -- --==== script.ts (0 errors) ==== -- class A { } -- class B extends A { } -- -- declare var dec: any; -- -- @dec -- class C { -- method(@dec x: number) { -- } -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.js b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.js deleted file mode 100644 index 67899671f1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.js +++ /dev/null @@ -1,73 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpers.ts] //// - -//// [external.ts] -export * from "./other"; -export class A { } -export class B extends A { } - -declare var dec: any; - -@dec -class C { - method(@dec x: number) { - } -} - -const o = { a: 1 }; -const y = { ...o }; -const { ...x } = y; - -//// [other.ts] -export const x = 1; - -//// [script.ts] -class A { } -class B extends A { } - -declare var dec: any; - -@dec -class C { - method(@dec x: number) { - } -} - -//// [tslib.d.ts] -export {} - - -//// [other.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 1; -//// [external.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.B = exports.A = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./other"), exports); -class A { -} -exports.A = A; -class B extends A { -} -exports.B = B; -@dec -class C { - method(x) { - } -} -const o = { a: 1 }; -const y = tslib_1.__assign({}, o); -const x = tslib_1.__rest(y, []); -//// [script.js] -class A { -} -class B extends A { -} -@dec -class C { - method(x) { - } -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.js.diff deleted file mode 100644 index 0ac6654328..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.js.diff +++ /dev/null @@ -1,77 +0,0 @@ ---- old.importHelpersNoHelpers.js -+++ new.importHelpersNoHelpers.js -@@= skipped -44, +44 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.B = exports.A = void 0; --var tslib_1 = require("tslib"); -+const tslib_1 = require("tslib"); - tslib_1.__exportStar(require("./other"), exports); - class A { - } -@@= skipped -8, +8 lines =@@ - class B extends A { - } - exports.B = B; --let C = (() => { -- let C = class C { -- method(x) { -- } -- }; -- tslib_1.__decorate([ -- tslib_1.__param(0, dec), -- tslib_1.__metadata("design:type", Function), -- tslib_1.__metadata("design:paramtypes", [Number]), -- tslib_1.__metadata("design:returntype", void 0) -- ], C.prototype, "method", null); -- C = tslib_1.__decorate([ -- dec -- ], C); -- return C; --})(); -+@dec -+class C { -+ method(x) { -+ } -+} - const o = { a: 1 }; - const y = tslib_1.__assign({}, o); - const x = tslib_1.__rest(y, []); - //// [script.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class A { - } - class B extends A { - } --let C = (() => { -- let C = class C { -- method(x) { -- } -- }; -- __decorate([ -- __param(0, dec), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Number]), -- __metadata("design:returntype", void 0) -- ], C.prototype, "method", null); -- C = __decorate([ -- dec -- ], C); -- return C; --})(); -+@dec -+class C { -+ method(x) { -+ } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.symbols b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.symbols deleted file mode 100644 index 787d61d0f6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.symbols +++ /dev/null @@ -1,71 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpers.ts] //// - -=== external.ts === -export * from "./other"; -export class A { } ->A : Symbol(A, Decl(external.ts, 0, 24)) - -export class B extends A { } ->B : Symbol(B, Decl(external.ts, 1, 18)) ->A : Symbol(A, Decl(external.ts, 0, 24)) - -declare var dec: any; ->dec : Symbol(dec, Decl(external.ts, 4, 11)) - -@dec ->dec : Symbol(dec, Decl(external.ts, 4, 11)) - -class C { ->C : Symbol(C, Decl(external.ts, 4, 21)) - - method(@dec x: number) { ->method : Symbol(C.method, Decl(external.ts, 7, 9)) ->dec : Symbol(dec, Decl(external.ts, 4, 11)) ->x : Symbol(x, Decl(external.ts, 8, 11)) - } -} - -const o = { a: 1 }; ->o : Symbol(o, Decl(external.ts, 12, 5)) ->a : Symbol(a, Decl(external.ts, 12, 11)) - -const y = { ...o }; ->y : Symbol(y, Decl(external.ts, 13, 5)) ->o : Symbol(o, Decl(external.ts, 12, 5)) - -const { ...x } = y; ->x : Symbol(x, Decl(external.ts, 14, 7)) ->y : Symbol(y, Decl(external.ts, 13, 5)) - -=== other.ts === -export const x = 1; ->x : Symbol(x, Decl(other.ts, 0, 12)) - -=== script.ts === -class A { } ->A : Symbol(A, Decl(script.ts, 0, 0)) - -class B extends A { } ->B : Symbol(B, Decl(script.ts, 0, 11)) ->A : Symbol(A, Decl(script.ts, 0, 0)) - -declare var dec: any; ->dec : Symbol(dec, Decl(script.ts, 3, 11)) - -@dec ->dec : Symbol(dec, Decl(script.ts, 3, 11)) - -class C { ->C : Symbol(C, Decl(script.ts, 3, 21)) - - method(@dec x: number) { ->method : Symbol(C.method, Decl(script.ts, 6, 9)) ->dec : Symbol(dec, Decl(script.ts, 3, 11)) ->x : Symbol(x, Decl(script.ts, 7, 11)) - } -} - -=== tslib.d.ts === - -export {} - diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.types b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.types deleted file mode 100644 index a1fa560625..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpers.types +++ /dev/null @@ -1,75 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpers.ts] //// - -=== external.ts === -export * from "./other"; -export class A { } ->A : A - -export class B extends A { } ->B : B ->A : A - -declare var dec: any; ->dec : any - -@dec ->dec : any - -class C { ->C : C - - method(@dec x: number) { ->method : (x: number) => void ->dec : any ->x : number - } -} - -const o = { a: 1 }; ->o : { a: number; } ->{ a: 1 } : { a: number; } ->a : number ->1 : 1 - -const y = { ...o }; ->y : { a: number; } ->{ ...o } : { a: number; } ->o : { a: number; } - -const { ...x } = y; ->x : { a: number; } ->y : { a: number; } - -=== other.ts === -export const x = 1; ->x : 1 ->1 : 1 - -=== script.ts === -class A { } ->A : A - -class B extends A { } ->B : B ->A : A - -declare var dec: any; ->dec : any - -@dec ->dec : any - -class C { ->C : C - - method(@dec x: number) { ->method : (x: number) => void ->dec : any ->x : number - } -} - -=== tslib.d.ts === - -export {} - diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.errors.txt.diff deleted file mode 100644 index 251577a030..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.errors.txt.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.importHelpersNoHelpersForAsyncGenerators.errors.txt -+++ new.importHelpersNoHelpersForAsyncGenerators.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(1,25): error TS2343: This syntax requires an imported helper named '__asyncGenerator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(1,25): error TS2343: This syntax requires an imported helper named '__await' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(1,25): error TS2343: This syntax requires an imported helper named '__generator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,5): error TS2343: This syntax requires an imported helper named '__asyncDelegator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,5): error TS2343: This syntax requires an imported helper named '__asyncValues' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (5 errors) ==== -- export async function * f() { -- ~ --!!! error TS2343: This syntax requires an imported helper named '__asyncGenerator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~ --!!! error TS2343: This syntax requires an imported helper named '__await' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~ --!!! error TS2343: This syntax requires an imported helper named '__generator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- await 1; -- yield 2; -- yield* [3]; -- ~~~~~ --!!! error TS2343: This syntax requires an imported helper named '__asyncDelegator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~~ --!!! error TS2343: This syntax requires an imported helper named '__asyncValues' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.js b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.js deleted file mode 100644 index 7d563b778a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.js +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts] //// - -//// [main.ts] -export async function * f() { - await 1; - yield 2; - yield* [3]; -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = f; -async function* f() { - await 1; - yield 2; - yield* [3]; -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.js.diff deleted file mode 100644 index 623b1326fc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.js.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.importHelpersNoHelpersForAsyncGenerators.js -+++ new.importHelpersNoHelpersForAsyncGenerators.js -@@= skipped -14, +14 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.f = f; --var tslib_1 = require("tslib"); --function f() { -- return tslib_1.__asyncGenerator(this, arguments, function* f_1() { -- yield tslib_1.__await(1); -- yield yield tslib_1.__await(2); -- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues([3]))); -- }); -+async function* f() { -+ await 1; -+ yield 2; -+ yield* [3]; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.symbols b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.symbols deleted file mode 100644 index 30c0590218..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.symbols +++ /dev/null @@ -1,15 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts] //// - -=== main.ts === -export async function * f() { ->f : Symbol(f, Decl(main.ts, 0, 0)) - - await 1; - yield 2; - yield* [3]; -} - -=== tslib.d.ts === - -export {} - diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.types b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.types deleted file mode 100644 index 3d7e2647df..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForAsyncGenerators.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts] //// - -=== main.ts === -export async function * f() { ->f : () => AsyncGenerator - - await 1; ->await 1 : 1 ->1 : 1 - - yield 2; ->yield 2 : any ->2 : 2 - - yield* [3]; ->yield* [3] : any ->[3] : number[] ->3 : 3 -} - -=== tslib.d.ts === - -export {} - diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.errors.txt.diff deleted file mode 100644 index 631943e825..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.importHelpersNoHelpersForPrivateFields.errors.txt -+++ new.importHelpersNoHelpersForPrivateFields.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(4,9): error TS2343: This syntax requires an imported helper named '__classPrivateFieldSet' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,23): error TS2343: This syntax requires an imported helper named '__classPrivateFieldGet' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(5,9): error TS2343: This syntax requires an imported helper named '__classPrivateFieldIn' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export class Foo { -- #field = true; -- f() { -- this.#field = this.#field; -- ~~~~~~~~~~~ --!!! error TS2343: This syntax requires an imported helper named '__classPrivateFieldSet' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~~~~~~~~ --!!! error TS2343: This syntax requires an imported helper named '__classPrivateFieldGet' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- #field in this; -- ~~~~~~ --!!! error TS2343: This syntax requires an imported helper named '__classPrivateFieldIn' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js deleted file mode 100644 index 47dadd336e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpersForPrivateFields.ts] //// - -//// [main.ts] -export class Foo { - #field = true; - f() { - this.#field = this.#field; - #field in this; - } -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Foo = void 0; -class Foo { - #field = true; - f() { - this.#field = this.#field; - #field in this; - } -} -exports.Foo = Foo; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js.diff deleted file mode 100644 index 21b9d7c63b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.importHelpersNoHelpersForPrivateFields.js -+++ new.importHelpersNoHelpersForPrivateFields.js -@@= skipped -14, +14 lines =@@ - - //// [main.js] - "use strict"; --var _Foo_field; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Foo = void 0; --const tslib_1 = require("tslib"); - class Foo { -- constructor() { -- _Foo_field.set(this, true); -- } -+ #field = true; - f() { -- tslib_1.__classPrivateFieldSet(this, _Foo_field, tslib_1.__classPrivateFieldGet(this, _Foo_field, "f"), "f"); -- tslib_1.__classPrivateFieldIn(_Foo_field, this); -+ this.#field = this.#field; -+ #field in this; - } - } - exports.Foo = Foo; --_Foo_field = new WeakMap(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.symbols b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.symbols deleted file mode 100644 index 6e306866c6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.symbols +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpersForPrivateFields.ts] //// - -=== main.ts === -export class Foo { ->Foo : Symbol(Foo, Decl(main.ts, 0, 0)) - - #field = true; ->#field : Symbol(Foo.#field, Decl(main.ts, 0, 18)) - - f() { ->f : Symbol(Foo.f, Decl(main.ts, 1, 18)) - - this.#field = this.#field; ->this.#field : Symbol(Foo.#field, Decl(main.ts, 0, 18)) ->this : Symbol(Foo, Decl(main.ts, 0, 0)) ->this.#field : Symbol(Foo.#field, Decl(main.ts, 0, 18)) ->this : Symbol(Foo, Decl(main.ts, 0, 0)) - - #field in this; ->#field : Symbol(Foo.#field, Decl(main.ts, 0, 18)) ->this : Symbol(Foo, Decl(main.ts, 0, 0)) - } -} - -=== tslib.d.ts === - -export {} - diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.types b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.types deleted file mode 100644 index 56db496360..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoHelpersForPrivateFields.ts] //// - -=== main.ts === -export class Foo { ->Foo : Foo - - #field = true; ->#field : boolean ->true : true - - f() { ->f : () => void - - this.#field = this.#field; ->this.#field = this.#field : boolean ->this.#field : boolean ->this : this ->this.#field : boolean ->this : this - - #field in this; ->#field in this : boolean ->#field : any ->this : this - } -} - -=== tslib.d.ts === - -export {} - diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.errors.txt.diff deleted file mode 100644 index 7d4467114f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.errors.txt.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.importHelpersNoModule.errors.txt -+++ new.importHelpersNoModule.errors.txt -@@= skipped -0, +0 lines =@@ --external.ts(2,16): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. -- -- --==== external.ts (1 errors) ==== -- export class A { } -- export class B extends A { } -- ~~~~~~~~~ --!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. -- -- declare var dec: any; -- -- @dec -- class C { -- method(@dec x: number) { -- } -- } -- --==== script.ts (0 errors) ==== -- class A { } -- class B extends A { } -- -- declare var dec: any; -- -- @dec -- class C { -- method(@dec x: number) { -- } -- } -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.js b/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.js deleted file mode 100644 index 70c25909d3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.js +++ /dev/null @@ -1,52 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoModule.ts] //// - -//// [external.ts] -export class A { } -export class B extends A { } - -declare var dec: any; - -@dec -class C { - method(@dec x: number) { - } -} - -//// [script.ts] -class A { } -class B extends A { } - -declare var dec: any; - -@dec -class C { - method(@dec x: number) { - } -} - - -//// [external.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.B = exports.A = void 0; -class A { -} -exports.A = A; -class B extends A { -} -exports.B = B; -@dec -class C { - method(x) { - } -} -//// [script.js] -class A { -} -class B extends A { -} -@dec -class C { - method(x) { - } -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.js.diff deleted file mode 100644 index aa0453ed96..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.js.diff +++ /dev/null @@ -1,72 +0,0 @@ ---- old.importHelpersNoModule.js -+++ new.importHelpersNoModule.js -@@= skipped -28, +28 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.B = exports.A = void 0; --var tslib_1 = require("tslib"); - class A { - } - exports.A = A; - class B extends A { - } - exports.B = B; --let C = (() => { -- let C = class C { -- method(x) { -- } -- }; -- tslib_1.__decorate([ -- tslib_1.__param(0, dec), -- tslib_1.__metadata("design:type", Function), -- tslib_1.__metadata("design:paramtypes", [Number]), -- tslib_1.__metadata("design:returntype", void 0) -- ], C.prototype, "method", null); -- C = tslib_1.__decorate([ -- dec -- ], C); -- return C; --})(); -+@dec -+class C { -+ method(x) { -+ } -+} - //// [script.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class A { - } - class B extends A { - } --let C = (() => { -- let C = class C { -- method(x) { -- } -- }; -- __decorate([ -- __param(0, dec), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Number]), -- __metadata("design:returntype", void 0) -- ], C.prototype, "method", null); -- C = __decorate([ -- dec -- ], C); -- return C; --})(); -+@dec -+class C { -+ method(x) { -+ } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.symbols b/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.symbols deleted file mode 100644 index 684f87cd57..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.symbols +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoModule.ts] //// - -=== external.ts === -export class A { } ->A : Symbol(A, Decl(external.ts, 0, 0)) - -export class B extends A { } ->B : Symbol(B, Decl(external.ts, 0, 18)) ->A : Symbol(A, Decl(external.ts, 0, 0)) - -declare var dec: any; ->dec : Symbol(dec, Decl(external.ts, 3, 11)) - -@dec ->dec : Symbol(dec, Decl(external.ts, 3, 11)) - -class C { ->C : Symbol(C, Decl(external.ts, 3, 21)) - - method(@dec x: number) { ->method : Symbol(C.method, Decl(external.ts, 6, 9)) ->dec : Symbol(dec, Decl(external.ts, 3, 11)) ->x : Symbol(x, Decl(external.ts, 7, 11)) - } -} - -=== script.ts === -class A { } ->A : Symbol(A, Decl(script.ts, 0, 0)) - -class B extends A { } ->B : Symbol(B, Decl(script.ts, 0, 11)) ->A : Symbol(A, Decl(script.ts, 0, 0)) - -declare var dec: any; ->dec : Symbol(dec, Decl(script.ts, 3, 11)) - -@dec ->dec : Symbol(dec, Decl(script.ts, 3, 11)) - -class C { ->C : Symbol(C, Decl(script.ts, 3, 21)) - - method(@dec x: number) { ->method : Symbol(C.method, Decl(script.ts, 6, 9)) ->dec : Symbol(dec, Decl(script.ts, 3, 11)) ->x : Symbol(x, Decl(script.ts, 7, 11)) - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.types b/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.types deleted file mode 100644 index fd4e40576b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersNoModule.types +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/compiler/importHelpersNoModule.ts] //// - -=== external.ts === -export class A { } ->A : A - -export class B extends A { } ->B : B ->A : A - -declare var dec: any; ->dec : any - -@dec ->dec : any - -class C { ->C : C - - method(@dec x: number) { ->method : (x: number) => void ->dec : any ->x : number - } -} - -=== script.ts === -class A { } ->A : A - -class B extends A { } ->B : B ->A : A - -declare var dec: any; ->dec : any - -@dec ->dec : any - -class C { ->C : C - - method(@dec x: number) { ->method : (x: number) => void ->dec : any ->x : number - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).js deleted file mode 100644 index 31beae743c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).js +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -//// [a.ts] -export class A { } - -//// [b.ts] -export * as a from "./a"; - -//// [tslib.d.ts] -declare module "tslib" { - function __importStar(m: any): void; -} - -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.A = void 0; -class A { -} -exports.A = A; -//// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = require("./a"); diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols deleted file mode 100644 index 97555e2107..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -export * as a from "./a"; ->a : Symbol(a, Decl(b.ts, 0, 6)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; ->__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 26)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols.diff deleted file mode 100644 index d85648207f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols -+++ new.importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).symbols -@@= skipped -9, +9 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; -->__importStar : Symbol(__importStar, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 26)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).types deleted file mode 100644 index f5df44496d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=commonjs).types +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : A - -=== b.ts === -export * as a from "./a"; ->a : typeof import("a") - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importStar(m: any): void; ->__importStar : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).js deleted file mode 100644 index 68116bf951..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).js +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -//// [a.ts] -export class A { } - -//// [b.ts] -export * as a from "./a"; - -//// [tslib.d.ts] -declare module "tslib" { - function __importStar(m: any): void; -} - -//// [a.js] -export class A { -} -//// [b.js] -import * as a_1 from "./a"; -export { a_1 as a }; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols deleted file mode 100644 index 97555e2107..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -export * as a from "./a"; ->a : Symbol(a, Decl(b.ts, 0, 6)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; ->__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 26)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols.diff deleted file mode 100644 index b9bb3ff358..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols -+++ new.importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).symbols -@@= skipped -9, +9 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; -->__importStar : Symbol(__importStar, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 26)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).types deleted file mode 100644 index f5df44496d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2015).types +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : A - -=== b.ts === -export * as a from "./a"; ->a : typeof import("a") - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importStar(m: any): void; ->__importStar : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).js deleted file mode 100644 index 28e70a903d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).js +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -//// [a.ts] -export class A { } - -//// [b.ts] -export * as a from "./a"; - -//// [tslib.d.ts] -declare module "tslib" { - function __importStar(m: any): void; -} - -//// [a.js] -export class A { -} -//// [b.js] -export * as a from "./a"; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols deleted file mode 100644 index 97555e2107..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -export * as a from "./a"; ->a : Symbol(a, Decl(b.ts, 0, 6)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; ->__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 26)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols.diff deleted file mode 100644 index e3bdde4826..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols -+++ new.importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).symbols -@@= skipped -9, +9 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; -->__importStar : Symbol(__importStar, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 26)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).types deleted file mode 100644 index f5df44496d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithExportStarAs(esmoduleinterop=false,module=es2020).types +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithExportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : A - -=== b.ts === -export * as a from "./a"; ->a : typeof import("a") - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importStar(m: any): void; ->__importStar : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js deleted file mode 100644 index ea14d2e7de..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -//// [a.ts] -export default class { } - -//// [b.ts] -export { default } from "./a"; -export { default as a } from "./a"; -import { default as b } from "./a"; -void b; - -//// [tslib.d.ts] -declare module "tslib" { - function __importDefault(m: any): void; -} - -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class default_1 { -} -exports.default = default_1; -//// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = exports.default = void 0; -const a_1 = require("./a"); -Object.defineProperty(exports, "default", { enumerable: true, get: function () { return a_1.default; } }); -const a_2 = require("./a"); -Object.defineProperty(exports, "a", { enumerable: true, get: function () { return a_2.default; } }); -const a_3 = require("./a"); -void a_3.default; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js.diff deleted file mode 100644 index eb54926434..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js -+++ new.importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).js -@@= skipped -23, +23 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = exports.default = void 0; --var a_1 = require("./a"); -+const a_1 = require("./a"); - Object.defineProperty(exports, "default", { enumerable: true, get: function () { return a_1.default; } }); --var a_2 = require("./a"); -+const a_2 = require("./a"); - Object.defineProperty(exports, "a", { enumerable: true, get: function () { return a_2.default; } }); - const a_3 = require("./a"); - void a_3.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols deleted file mode 100644 index 59499f9085..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -=== a.ts === - -export default class { } - -=== b.ts === -export { default } from "./a"; ->default : Symbol(default, Decl(b.ts, 0, 8)) - -export { default as a } from "./a"; ->default : Symbol(b, Decl(a.ts, 0, 0)) ->a : Symbol(a, Decl(b.ts, 1, 8)) - -import { default as b } from "./a"; ->default : Symbol(b, Decl(a.ts, 0, 0)) ->b : Symbol(b, Decl(b.ts, 2, 8)) - -void b; ->b : Symbol(b, Decl(b.ts, 2, 8)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importDefault(m: any): void; ->__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 29)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols.diff deleted file mode 100644 index 50f126b9d6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols -+++ new.importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).symbols -@@= skipped -20, +20 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importDefault(m: any): void; -->__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 29)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).types deleted file mode 100644 index 8bd28a2027..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=commonjs).types +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -=== a.ts === - -export default class { } - -=== b.ts === -export { default } from "./a"; ->default : typeof b - -export { default as a } from "./a"; ->default : typeof b ->a : typeof b - -import { default as b } from "./a"; ->default : typeof b ->b : typeof b - -void b; ->void b : undefined ->b : typeof b - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importDefault(m: any): void; ->__importDefault : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).js deleted file mode 100644 index cb24120cb6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -//// [a.ts] -export default class { } - -//// [b.ts] -export { default } from "./a"; -export { default as a } from "./a"; -import { default as b } from "./a"; -void b; - -//// [tslib.d.ts] -declare module "tslib" { - function __importDefault(m: any): void; -} - -//// [a.js] -export default class { -} -//// [b.js] -export { default } from "./a"; -export { default as a } from "./a"; -import { default as b } from "./a"; -void b; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols deleted file mode 100644 index 59499f9085..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -=== a.ts === - -export default class { } - -=== b.ts === -export { default } from "./a"; ->default : Symbol(default, Decl(b.ts, 0, 8)) - -export { default as a } from "./a"; ->default : Symbol(b, Decl(a.ts, 0, 0)) ->a : Symbol(a, Decl(b.ts, 1, 8)) - -import { default as b } from "./a"; ->default : Symbol(b, Decl(a.ts, 0, 0)) ->b : Symbol(b, Decl(b.ts, 2, 8)) - -void b; ->b : Symbol(b, Decl(b.ts, 2, 8)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importDefault(m: any): void; ->__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 29)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols.diff deleted file mode 100644 index 3a06a2d40e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols -+++ new.importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).symbols -@@= skipped -20, +20 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importDefault(m: any): void; -->__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 29)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).types deleted file mode 100644 index 8bd28a2027..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2015).types +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -=== a.ts === - -export default class { } - -=== b.ts === -export { default } from "./a"; ->default : typeof b - -export { default as a } from "./a"; ->default : typeof b ->a : typeof b - -import { default as b } from "./a"; ->default : typeof b ->b : typeof b - -void b; ->void b : undefined ->b : typeof b - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importDefault(m: any): void; ->__importDefault : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).js deleted file mode 100644 index cb24120cb6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -//// [a.ts] -export default class { } - -//// [b.ts] -export { default } from "./a"; -export { default as a } from "./a"; -import { default as b } from "./a"; -void b; - -//// [tslib.d.ts] -declare module "tslib" { - function __importDefault(m: any): void; -} - -//// [a.js] -export default class { -} -//// [b.js] -export { default } from "./a"; -export { default as a } from "./a"; -import { default as b } from "./a"; -void b; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols deleted file mode 100644 index 59499f9085..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -=== a.ts === - -export default class { } - -=== b.ts === -export { default } from "./a"; ->default : Symbol(default, Decl(b.ts, 0, 8)) - -export { default as a } from "./a"; ->default : Symbol(b, Decl(a.ts, 0, 0)) ->a : Symbol(a, Decl(b.ts, 1, 8)) - -import { default as b } from "./a"; ->default : Symbol(b, Decl(a.ts, 0, 0)) ->b : Symbol(b, Decl(b.ts, 2, 8)) - -void b; ->b : Symbol(b, Decl(b.ts, 2, 8)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importDefault(m: any): void; ->__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 29)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols.diff deleted file mode 100644 index afbb243031..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols -+++ new.importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).symbols -@@= skipped -20, +20 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importDefault(m: any): void; -->__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importDefault : Symbol(__importDefault, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 29)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).types deleted file mode 100644 index 8bd28a2027..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=es2020).types +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportOrExportDefault.ts] //// - -=== a.ts === - -export default class { } - -=== b.ts === -export { default } from "./a"; ->default : typeof b - -export { default as a } from "./a"; ->default : typeof b ->a : typeof b - -import { default as b } from "./a"; ->default : typeof b ->b : typeof b - -void b; ->void b : undefined ->b : typeof b - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importDefault(m: any): void; ->__importDefault : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).js deleted file mode 100644 index 8ecadfeab3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).js +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -//// [a.ts] -export class A { } - -//// [b.ts] -import * as a from "./a"; -export { a }; - -//// [tslib.d.ts] -declare module "tslib" { - function __importStar(m: any): void; -} - -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.A = void 0; -class A { -} -exports.A = A; -//// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = require("./a"); -exports.a = a; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols deleted file mode 100644 index 06d0f645fd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -import * as a from "./a"; ->a : Symbol(a, Decl(b.ts, 0, 6)) - -export { a }; ->a : Symbol(a, Decl(b.ts, 1, 8)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; ->__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 26)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols.diff deleted file mode 100644 index 76a8ac6ca0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols -+++ new.importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).symbols -@@= skipped -12, +12 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; -->__importStar : Symbol(__importStar, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 26)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).types deleted file mode 100644 index 40e598a9cc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=commonjs).types +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : A - -=== b.ts === -import * as a from "./a"; ->a : typeof a - -export { a }; ->a : typeof a - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importStar(m: any): void; ->__importStar : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).js deleted file mode 100644 index c08ff68957..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).js +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -//// [a.ts] -export class A { } - -//// [b.ts] -import * as a from "./a"; -export { a }; - -//// [tslib.d.ts] -declare module "tslib" { - function __importStar(m: any): void; -} - -//// [a.js] -export class A { -} -//// [b.js] -import * as a from "./a"; -export { a }; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols deleted file mode 100644 index 06d0f645fd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -import * as a from "./a"; ->a : Symbol(a, Decl(b.ts, 0, 6)) - -export { a }; ->a : Symbol(a, Decl(b.ts, 1, 8)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; ->__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 26)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols.diff deleted file mode 100644 index 29b6b9d4b1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols -+++ new.importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).symbols -@@= skipped -12, +12 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; -->__importStar : Symbol(__importStar, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 26)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).types deleted file mode 100644 index 40e598a9cc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2015).types +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : A - -=== b.ts === -import * as a from "./a"; ->a : typeof a - -export { a }; ->a : typeof a - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importStar(m: any): void; ->__importStar : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).js deleted file mode 100644 index c08ff68957..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).js +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -//// [a.ts] -export class A { } - -//// [b.ts] -import * as a from "./a"; -export { a }; - -//// [tslib.d.ts] -declare module "tslib" { - function __importStar(m: any): void; -} - -//// [a.js] -export class A { -} -//// [b.js] -import * as a from "./a"; -export { a }; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols deleted file mode 100644 index 06d0f645fd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -import * as a from "./a"; ->a : Symbol(a, Decl(b.ts, 0, 6)) - -export { a }; ->a : Symbol(a, Decl(b.ts, 1, 8)) - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; ->__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) ->m : Symbol(m, Decl(tslib.d.ts, 1, 26)) -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols.diff deleted file mode 100644 index d59be423e4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols -+++ new.importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).symbols -@@= skipped -12, +12 lines =@@ - - === tslib.d.ts === - declare module "tslib" { -->"tslib" : Symbol("tslib", Decl(tslib.d.ts, --, --)) -+>"tslib" : Symbol("tslib", Decl(tslib.d.ts, 0, 0)) - - function __importStar(m: any): void; -->__importStar : Symbol(__importStar, Decl(tslib.d.ts, --, --)) -->m : Symbol(m, Decl(tslib.d.ts, --, --)) -+>__importStar : Symbol(__importStar, Decl(tslib.d.ts, 0, 24)) -+>m : Symbol(m, Decl(tslib.d.ts, 1, 26)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).types b/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).types deleted file mode 100644 index 40e598a9cc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithImportStarAs(esmoduleinterop=false,module=es2020).types +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/importHelpersWithImportStarAs.ts] //// - -=== a.ts === -export class A { } ->A : A - -=== b.ts === -import * as a from "./a"; ->a : typeof a - -export { a }; ->a : typeof a - -=== tslib.d.ts === -declare module "tslib" { ->"tslib" : typeof import("tslib") - - function __importStar(m: any): void; ->__importStar : (m: any) => void ->m : any -} diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js index 5499da070a..cc1242f528 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js +++ b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js @@ -9,7 +9,7 @@ declare var dec: any, __decorate: any; const o = { a: 1 }; const y = { ...o }; -//// [tslib.d.ts] +//// [index.d.ts] export declare function __extends(d: Function, b: Function): void; export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; export declare function __param(paramIndex: number, decorator: Function): Function; diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js index 36fb70701c..8f7015dcd2 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js +++ b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js @@ -9,7 +9,7 @@ declare var dec: any, __decorate: any; const o = { a: 1 }; const y = { ...o }; -//// [tslib.d.ts] +//// [index.d.ts] export declare function __extends(d: Function, b: Function): void; export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; export declare function __param(paramIndex: number, decorator: Function): Function; diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.errors.txt b/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.errors.txt deleted file mode 100644 index 66f586f133..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -a.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. -b.js(1,10): error TS2596: 'Foo' can only be imported by turning on the 'esModuleInterop' flag and using a default import. -b.js(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export. - - -==== a.ts (1 errors) ==== - class Foo {} - export = Foo; - ~~~~~~~~~~~~~ -!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. - -==== b.js (2 errors) ==== - import { Foo } from './a'; - ~~~ -!!! error TS2596: 'Foo' can only be imported by turning on the 'esModuleInterop' flag and using a default import. - ~~~~~ -!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.symbols b/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.symbols deleted file mode 100644 index 7c5af0d0ca..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.symbols +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember10.ts] //// - -=== a.ts === -class Foo {} ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -export = Foo; ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -=== b.js === -import { Foo } from './a'; ->Foo : Symbol(Foo, Decl(b.js, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.types b/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.types deleted file mode 100644 index c1b3848239..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember10.types +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember10.ts] //// - -=== a.ts === -class Foo {} ->Foo : Foo - -export = Foo; ->Foo : Foo - -=== b.js === -import { Foo } from './a'; ->Foo : any - diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.errors.txt b/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.errors.txt deleted file mode 100644 index d4294bc523..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -b.ts(1,10): error TS2617: 'Foo' can only be imported by using 'import Foo = require("./a")' or by turning on the 'esModuleInterop' flag and using a default import. -b.ts(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export. - - -==== a.ts (0 errors) ==== - class Foo {} - export = Foo; - -==== b.ts (2 errors) ==== - import { Foo } from './a'; - ~~~ -!!! error TS2617: 'Foo' can only be imported by using 'import Foo = require("./a")' or by turning on the 'esModuleInterop' flag and using a default import. - ~~~~~ -!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.js b/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.js deleted file mode 100644 index 89c572f288..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.js +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember4.ts] //// - -//// [a.ts] -class Foo {} -export = Foo; - -//// [b.ts] -import { Foo } from './a'; - -//// [a.js] -"use strict"; -class Foo { -} -module.exports = Foo; -//// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.symbols b/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.symbols deleted file mode 100644 index 7f94a2da7b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.symbols +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember4.ts] //// - -=== a.ts === -class Foo {} ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -export = Foo; ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -=== b.ts === -import { Foo } from './a'; ->Foo : Symbol(Foo, Decl(b.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.types b/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.types deleted file mode 100644 index cedd4d61f8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember4.types +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember4.ts] //// - -=== a.ts === -class Foo {} ->Foo : Foo - -export = Foo; ->Foo : Foo - -=== b.ts === -import { Foo } from './a'; ->Foo : any - diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.errors.txt b/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.errors.txt deleted file mode 100644 index 07938b7690..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -a.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. -b.ts(1,10): error TS2596: 'Foo' can only be imported by turning on the 'esModuleInterop' flag and using a default import. -b.ts(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export. - - -==== a.ts (1 errors) ==== - class Foo {} - export = Foo; - ~~~~~~~~~~~~~ -!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. - -==== b.ts (2 errors) ==== - import { Foo } from './a'; - ~~~ -!!! error TS2596: 'Foo' can only be imported by turning on the 'esModuleInterop' flag and using a default import. - ~~~~~ -!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.js b/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.js deleted file mode 100644 index 8eed26d3c4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.js +++ /dev/null @@ -1,15 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember6.ts] //// - -//// [a.ts] -class Foo {} -export = Foo; - -//// [b.ts] -import { Foo } from './a'; - -//// [a.js] -class Foo { -} -export {}; -//// [b.js] -export {}; diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.symbols b/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.symbols deleted file mode 100644 index fe60c83021..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.symbols +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember6.ts] //// - -=== a.ts === -class Foo {} ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -export = Foo; ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -=== b.ts === -import { Foo } from './a'; ->Foo : Symbol(Foo, Decl(b.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.types b/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.types deleted file mode 100644 index b03c41a7c7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember6.types +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember6.ts] //// - -=== a.ts === -class Foo {} ->Foo : Foo - -export = Foo; ->Foo : Foo - -=== b.ts === -import { Foo } from './a'; ->Foo : any - diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.errors.txt b/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.errors.txt deleted file mode 100644 index 5b9b99ac88..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.errors.txt +++ /dev/null @@ -1,15 +0,0 @@ -b.js(1,10): error TS2617: 'Foo' can only be imported by using 'import Foo = require("./a")' or by turning on the 'esModuleInterop' flag and using a default import. -b.js(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export. - - -==== a.ts (0 errors) ==== - class Foo {} - export = Foo; - -==== b.js (2 errors) ==== - import { Foo } from './a'; - ~~~ -!!! error TS2617: 'Foo' can only be imported by using 'import Foo = require("./a")' or by turning on the 'esModuleInterop' flag and using a default import. - ~~~~~ -!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.symbols b/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.symbols deleted file mode 100644 index 3e39a58b8c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.symbols +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember8.ts] //// - -=== a.ts === -class Foo {} ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -export = Foo; ->Foo : Symbol(Foo, Decl(a.ts, 0, 0)) - -=== b.js === -import { Foo } from './a'; ->Foo : Symbol(Foo, Decl(b.js, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.types b/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.types deleted file mode 100644 index 7a3b7891fc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importNonExportedMember8.types +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/importNonExportedMember8.ts] //// - -=== a.ts === -class Foo {} ->Foo : Foo - -export = Foo; ->Foo : Foo - -=== b.js === -import { Foo } from './a'; ->Foo : any - diff --git a/testdata/baselines/reference/submodule/compiler/importNotElidedWhenNotFound.js b/testdata/baselines/reference/submodule/compiler/importNotElidedWhenNotFound.js index d0c75d19d0..c2d68df4e3 100644 --- a/testdata/baselines/reference/submodule/compiler/importNotElidedWhenNotFound.js +++ b/testdata/baselines/reference/submodule/compiler/importNotElidedWhenNotFound.js @@ -21,16 +21,19 @@ class Q extends Z { //// [importNotElidedWhenNotFound.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const file_1 = require("file"); -const other_file_1 = require("other_file"); +const file_1 = __importDefault(require("file")); +const other_file_1 = __importDefault(require("other_file")); class Y extends other_file_1.default { constructor() { super(file_1.default); } } -const file2_1 = require("file2"); -const file3_1 = require("file3"); +const file2_1 = __importDefault(require("file2")); +const file3_1 = __importDefault(require("file3")); class Q extends other_file_1.default { constructor() { super(file2_1.default, file3_1.default); diff --git a/testdata/baselines/reference/submodule/compiler/importNotElidedWhenNotFound.js.diff b/testdata/baselines/reference/submodule/compiler/importNotElidedWhenNotFound.js.diff index 0e3fd5bab2..a1c8b307f5 100644 --- a/testdata/baselines/reference/submodule/compiler/importNotElidedWhenNotFound.js.diff +++ b/testdata/baselines/reference/submodule/compiler/importNotElidedWhenNotFound.js.diff @@ -1,22 +1,22 @@ --- old.importNotElidedWhenNotFound.js +++ new.importNotElidedWhenNotFound.js -@@= skipped -21, +21 lines =@@ - //// [importNotElidedWhenNotFound.js] - "use strict"; +@@= skipped -24, +24 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var file_1 = require("file"); --var other_file_1 = require("other_file"); -+const file_1 = require("file"); -+const other_file_1 = require("other_file"); +-var file_1 = __importDefault(require("file")); +-var other_file_1 = __importDefault(require("other_file")); ++const file_1 = __importDefault(require("file")); ++const other_file_1 = __importDefault(require("other_file")); class Y extends other_file_1.default { constructor() { super(file_1.default); } } --var file2_1 = require("file2"); --var file3_1 = require("file3"); -+const file2_1 = require("file2"); -+const file3_1 = require("file3"); +-var file2_1 = __importDefault(require("file2")); +-var file3_1 = __importDefault(require("file3")); ++const file2_1 = __importDefault(require("file2")); ++const file3_1 = __importDefault(require("file3")); class Q extends other_file_1.default { constructor() { super(file2_1.default, file3_1.default); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.js b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.js index 334836a3a3..4626869c56 100644 --- a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.js +++ b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.js @@ -29,15 +29,21 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { aIndex: 0 }; //// [test.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const _1 = require("."); -const _2 = require("./"); +const _1 = __importDefault(require(".")); +const _2 = __importDefault(require("./")); _1.default.a; _2.default.aIndex; //// [test.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const __1 = require(".."); -const __2 = require("../"); +const __1 = __importDefault(require("..")); +const __2 = __importDefault(require("../")); __1.default.a; __2.default.aIndex; diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.js.diff b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.js.diff index ae54250a75..930c371999 100644 --- a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.js.diff +++ b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.js.diff @@ -1,21 +1,23 @@ --- old.importWithTrailingSlash.js +++ new.importWithTrailingSlash.js -@@= skipped -29, +29 lines =@@ - //// [test.js] - "use strict"; +@@= skipped -32, +32 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var _1 = require("."); --var _2 = require("./"); -+const _1 = require("."); -+const _2 = require("./"); +-var _1 = __importDefault(require(".")); +-var _2 = __importDefault(require("./")); ++const _1 = __importDefault(require(".")); ++const _2 = __importDefault(require("./")); _1.default.a; _2.default.aIndex; //// [test.js] - "use strict"; +@@= skipped -10, +10 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var __1 = require(".."); --var __2 = require("../"); -+const __1 = require(".."); -+const __2 = require("../"); +-var __1 = __importDefault(require("..")); +-var __2 = __importDefault(require("../")); ++const __1 = __importDefault(require("..")); ++const __2 = __importDefault(require("../")); __1.default.a; __2.default.aIndex; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/incrementalOut.errors.txt b/testdata/baselines/reference/submodule/compiler/incrementalOut.errors.txt deleted file mode 100644 index 387178c402..0000000000 --- a/testdata/baselines/reference/submodule/compiler/incrementalOut.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== incrementalOut.ts (0 errors) ==== - const x = 10; - - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/incrementalOut.symbols b/testdata/baselines/reference/submodule/compiler/incrementalOut.symbols deleted file mode 100644 index 6a32ed5bdd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/incrementalOut.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/incrementalOut.ts] //// - -=== incrementalOut.ts === -const x = 10; ->x : Symbol(x, Decl(incrementalOut.ts, 0, 5)) - - diff --git a/testdata/baselines/reference/submodule/compiler/incrementalOut.types b/testdata/baselines/reference/submodule/compiler/incrementalOut.types deleted file mode 100644 index f1bfa2c6ad..0000000000 --- a/testdata/baselines/reference/submodule/compiler/incrementalOut.types +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/compiler/incrementalOut.ts] //// - -=== incrementalOut.ts === -const x = 10; ->x : 10 ->10 : 10 - - diff --git a/testdata/baselines/reference/submodule/compiler/inferredIndexerOnNamespaceImport.js b/testdata/baselines/reference/submodule/compiler/inferredIndexerOnNamespaceImport.js index 91d9830d45..8e99cd0ce8 100644 --- a/testdata/baselines/reference/submodule/compiler/inferredIndexerOnNamespaceImport.js +++ b/testdata/baselines/reference/submodule/compiler/inferredIndexerOnNamespaceImport.js @@ -21,8 +21,41 @@ exports.x = 3; exports.y = 5; //// [bar.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const foo = require("./foo"); +const foo = __importStar(require("./foo")); function f(map) { // ... } diff --git a/testdata/baselines/reference/submodule/compiler/inferredIndexerOnNamespaceImport.js.diff b/testdata/baselines/reference/submodule/compiler/inferredIndexerOnNamespaceImport.js.diff index 9e0dd6d45f..ae812667a8 100644 --- a/testdata/baselines/reference/submodule/compiler/inferredIndexerOnNamespaceImport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/inferredIndexerOnNamespaceImport.js.diff @@ -1,11 +1,11 @@ --- old.inferredIndexerOnNamespaceImport.js +++ new.inferredIndexerOnNamespaceImport.js -@@= skipped -21, +21 lines =@@ - //// [bar.js] - "use strict"; +@@= skipped -54, +54 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var foo = require("./foo"); -+const foo = require("./foo"); +-var foo = __importStar(require("./foo")); ++const foo = __importStar(require("./foo")); function f(map) { // ... } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.errors.txt b/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.errors.txt deleted file mode 100644 index 6578302a29..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -error TS5053: Option 'mapRoot' cannot be specified with option 'inlineSourceMap'. -error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5053: Option 'mapRoot' cannot be specified with option 'inlineSourceMap'. -!!! error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== inlineSourceMap2.ts (0 errors) ==== - // configuration errors - - var x = 0; - console.log(x); - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.symbols b/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.symbols deleted file mode 100644 index 8cd650b50c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/inlineSourceMap2.ts] //// - -=== inlineSourceMap2.ts === -// configuration errors - -var x = 0; ->x : Symbol(x, Decl(inlineSourceMap2.ts, 2, 3)) - -console.log(x); ->console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->console : Symbol(console, Decl(lib.dom.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->x : Symbol(x, Decl(inlineSourceMap2.ts, 2, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.types b/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.types deleted file mode 100644 index 7dee271a14..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSourceMap2.types +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/inlineSourceMap2.ts] //// - -=== inlineSourceMap2.ts === -// configuration errors - -var x = 0; ->x : number ->0 : 0 - -console.log(x); ->console.log(x) : void ->console.log : (...data: any[]) => void ->console : Console ->log : (...data: any[]) => void ->x : number - diff --git a/testdata/baselines/reference/submodule/compiler/inlineSources.errors.txt b/testdata/baselines/reference/submodule/compiler/inlineSources.errors.txt deleted file mode 100644 index aa0cba9278..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSources.errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - var a = 0; - console.log(a); - -==== b.ts (0 errors) ==== - var b = 0; - console.log(b); - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/inlineSources.symbols b/testdata/baselines/reference/submodule/compiler/inlineSources.symbols deleted file mode 100644 index 5a31c811cc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSources.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/inlineSources.ts] //// - -=== a.ts === -var a = 0; ->a : Symbol(a, Decl(a.ts, 0, 3)) - -console.log(a); ->console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->console : Symbol(console, Decl(lib.dom.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->a : Symbol(a, Decl(a.ts, 0, 3)) - -=== b.ts === -var b = 0; ->b : Symbol(b, Decl(b.ts, 0, 3)) - -console.log(b); ->console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->console : Symbol(console, Decl(lib.dom.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->b : Symbol(b, Decl(b.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/inlineSources.types b/testdata/baselines/reference/submodule/compiler/inlineSources.types deleted file mode 100644 index d6ff6f2c02..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSources.types +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/inlineSources.ts] //// - -=== a.ts === -var a = 0; ->a : number ->0 : 0 - -console.log(a); ->console.log(a) : void ->console.log : (...data: any[]) => void ->console : Console ->log : (...data: any[]) => void ->a : number - -=== b.ts === -var b = 0; ->b : number ->0 : 0 - -console.log(b); ->console.log(b) : void ->console.log : (...data: any[]) => void ->console : Console ->log : (...data: any[]) => void ->b : number - diff --git a/testdata/baselines/reference/submodule/compiler/inlineSources2.errors.txt b/testdata/baselines/reference/submodule/compiler/inlineSources2.errors.txt deleted file mode 100644 index aa0cba9278..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSources2.errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - var a = 0; - console.log(a); - -==== b.ts (0 errors) ==== - var b = 0; - console.log(b); - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/inlineSources2.symbols b/testdata/baselines/reference/submodule/compiler/inlineSources2.symbols deleted file mode 100644 index 9519a2aa4a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSources2.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/inlineSources2.ts] //// - -=== a.ts === -var a = 0; ->a : Symbol(a, Decl(a.ts, 0, 3)) - -console.log(a); ->console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->console : Symbol(console, Decl(lib.dom.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->a : Symbol(a, Decl(a.ts, 0, 3)) - -=== b.ts === -var b = 0; ->b : Symbol(b, Decl(b.ts, 0, 3)) - -console.log(b); ->console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->console : Symbol(console, Decl(lib.dom.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->b : Symbol(b, Decl(b.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/inlineSources2.types b/testdata/baselines/reference/submodule/compiler/inlineSources2.types deleted file mode 100644 index 19444ec813..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inlineSources2.types +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/inlineSources2.ts] //// - -=== a.ts === -var a = 0; ->a : number ->0 : 0 - -console.log(a); ->console.log(a) : void ->console.log : (...data: any[]) => void ->console : Console ->log : (...data: any[]) => void ->a : number - -=== b.ts === -var b = 0; ->b : number ->0 : 0 - -console.log(b); ->console.log(b) : void ->console.log : (...data: any[]) => void ->console : Console ->log : (...data: any[]) => void ->b : number - diff --git a/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.errors.txt b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.errors.txt new file mode 100644 index 0000000000..2c1cad0c9c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.errors.txt @@ -0,0 +1,75 @@ +interfaceDeclaration3.ts(7,16): error TS2416: Property 'item' in type 'C1' is not assignable to the same property in base type 'I1'. + Type 'number' is not assignable to type 'string'. +interfaceDeclaration3.ts(32,16): error TS2416: Property 'item' in type 'C1' is not assignable to the same property in base type 'I1'. + Type 'number' is not assignable to type 'string'. +interfaceDeclaration3.ts(54,11): error TS2430: Interface 'I2' incorrectly extends interface 'I1'. + Types of property 'item' are incompatible. + Type 'string' is not assignable to type 'number'. + + +==== interfaceDeclaration3.ts (3 errors) ==== + interface I1 { item:number; } + + module M1 { + interface I1 { item:string; } + interface I2 { item:number; } + class C1 implements I1 { + public item:number; + ~~~~ +!!! error TS2416: Property 'item' in type 'C1' is not assignable to the same property in base type 'I1'. +!!! error TS2416: Type 'number' is not assignable to type 'string'. + } + class C2 implements I1 { + public item:string; + } + class C3 implements I2 { + public item:number; + } + + class C4 implements M2.I1 { + public item:string; + } + + class C5 implements M2.M3.I1 { + public item:string; + } + } + + export module M2 { + export interface I1 { item:string; } + export interface I2 { item:string; } + export module M3 { + export interface I1 { item:string; } + } + class C1 implements I1 { + public item:number; + ~~~~ +!!! error TS2416: Property 'item' in type 'C1' is not assignable to the same property in base type 'I1'. +!!! error TS2416: Type 'number' is not assignable to type 'string'. + } + class C2 implements I1 { + public item:string; + } + class C3 implements I2 { + public item:string; + } + } + + class C1 implements I1 { + public item:number; + } + + class C2 implements M2.I1 { + public item:string; + } + + class C3 implements M2.M3.I1 { + public item:string; + } + + interface I2 extends I1 { item:string; } + ~~ +!!! error TS2430: Interface 'I2' incorrectly extends interface 'I1'. +!!! error TS2430: Types of property 'item' are incompatible. +!!! error TS2430: Type 'string' is not assignable to type 'number'. + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.js b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.js new file mode 100644 index 0000000000..bbc73c51f6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.js @@ -0,0 +1,102 @@ +//// [tests/cases/compiler/interfaceDeclaration3.ts] //// + +//// [interfaceDeclaration3.ts] +interface I1 { item:number; } + +module M1 { + interface I1 { item:string; } + interface I2 { item:number; } + class C1 implements I1 { + public item:number; + } + class C2 implements I1 { + public item:string; + } + class C3 implements I2 { + public item:number; + } + + class C4 implements M2.I1 { + public item:string; + } + + class C5 implements M2.M3.I1 { + public item:string; + } +} + +export module M2 { + export interface I1 { item:string; } + export interface I2 { item:string; } + export module M3 { + export interface I1 { item:string; } + } + class C1 implements I1 { + public item:number; + } + class C2 implements I1 { + public item:string; + } + class C3 implements I2 { + public item:string; + } +} + +class C1 implements I1 { + public item:number; +} + +class C2 implements M2.I1 { + public item:string; +} + +class C3 implements M2.M3.I1 { + public item:string; +} + +interface I2 extends I1 { item:string; } + + +//// [interfaceDeclaration3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.M2 = void 0; +var M1; +(function (M1) { + class C1 { + item; + } + class C2 { + item; + } + class C3 { + item; + } + class C4 { + item; + } + class C5 { + item; + } +})(M1 || (M1 = {})); +var M2; +(function (M2) { + class C1 { + item; + } + class C2 { + item; + } + class C3 { + item; + } +})(M2 || (exports.M2 = M2 = {})); +class C1 { + item; +} +class C2 { + item; +} +class C3 { + item; +} diff --git a/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.js.diff b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.js.diff new file mode 100644 index 0000000000..45af37db82 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.js.diff @@ -0,0 +1,42 @@ +--- old.interfaceDeclaration3.js ++++ new.interfaceDeclaration3.js +@@= skipped -63, +63 lines =@@ + var M1; + (function (M1) { + class C1 { ++ item; + } + class C2 { ++ item; + } + class C3 { ++ item; + } + class C4 { ++ item; + } + class C5 { ++ item; + } + })(M1 || (M1 = {})); + var M2; + (function (M2) { + class C1 { ++ item; + } + class C2 { ++ item; + } + class C3 { ++ item; + } + })(M2 || (exports.M2 = M2 = {})); + class C1 { ++ item; + } + class C2 { ++ item; + } + class C3 { ++ item; + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.symbols b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.symbols new file mode 100644 index 0000000000..35e3dd71ea --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.symbols @@ -0,0 +1,139 @@ +//// [tests/cases/compiler/interfaceDeclaration3.ts] //// + +=== interfaceDeclaration3.ts === +interface I1 { item:number; } +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 0, 0)) +>item : Symbol(I1.item, Decl(interfaceDeclaration3.ts, 0, 14)) + +module M1 { +>M1 : Symbol(M1, Decl(interfaceDeclaration3.ts, 0, 29)) + + interface I1 { item:string; } +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 2, 11)) +>item : Symbol(I1.item, Decl(interfaceDeclaration3.ts, 3, 18)) + + interface I2 { item:number; } +>I2 : Symbol(I2, Decl(interfaceDeclaration3.ts, 3, 33)) +>item : Symbol(I2.item, Decl(interfaceDeclaration3.ts, 4, 18)) + + class C1 implements I1 { +>C1 : Symbol(C1, Decl(interfaceDeclaration3.ts, 4, 33)) +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 2, 11)) + + public item:number; +>item : Symbol(C1.item, Decl(interfaceDeclaration3.ts, 5, 28)) + } + class C2 implements I1 { +>C2 : Symbol(C2, Decl(interfaceDeclaration3.ts, 7, 5)) +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 2, 11)) + + public item:string; +>item : Symbol(C2.item, Decl(interfaceDeclaration3.ts, 8, 28)) + } + class C3 implements I2 { +>C3 : Symbol(C3, Decl(interfaceDeclaration3.ts, 10, 5)) +>I2 : Symbol(I2, Decl(interfaceDeclaration3.ts, 3, 33)) + + public item:number; +>item : Symbol(C3.item, Decl(interfaceDeclaration3.ts, 11, 28)) + } + + class C4 implements M2.I1 { +>C4 : Symbol(C4, Decl(interfaceDeclaration3.ts, 13, 5)) +>M2.I1 : Symbol(M2.I1, Decl(interfaceDeclaration3.ts, 24, 18)) +>M2 : Symbol(M2, Decl(interfaceDeclaration3.ts, 22, 1)) +>I1 : Symbol(M2.I1, Decl(interfaceDeclaration3.ts, 24, 18)) + + public item:string; +>item : Symbol(C4.item, Decl(interfaceDeclaration3.ts, 15, 31)) + } + + class C5 implements M2.M3.I1 { +>C5 : Symbol(C5, Decl(interfaceDeclaration3.ts, 17, 5)) +>M2.M3.I1 : Symbol(M2.M3.I1, Decl(interfaceDeclaration3.ts, 27, 22)) +>M2.M3 : Symbol(M2.M3, Decl(interfaceDeclaration3.ts, 26, 40)) +>M2 : Symbol(M2, Decl(interfaceDeclaration3.ts, 22, 1)) +>M3 : Symbol(M2.M3, Decl(interfaceDeclaration3.ts, 26, 40)) +>I1 : Symbol(M2.M3.I1, Decl(interfaceDeclaration3.ts, 27, 22)) + + public item:string; +>item : Symbol(C5.item, Decl(interfaceDeclaration3.ts, 19, 34)) + } +} + +export module M2 { +>M2 : Symbol(M2, Decl(interfaceDeclaration3.ts, 22, 1)) + + export interface I1 { item:string; } +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 24, 18)) +>item : Symbol(I1.item, Decl(interfaceDeclaration3.ts, 25, 25)) + + export interface I2 { item:string; } +>I2 : Symbol(I2, Decl(interfaceDeclaration3.ts, 25, 40)) +>item : Symbol(I2.item, Decl(interfaceDeclaration3.ts, 26, 25)) + + export module M3 { +>M3 : Symbol(M3, Decl(interfaceDeclaration3.ts, 26, 40)) + + export interface I1 { item:string; } +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 27, 22)) +>item : Symbol(I1.item, Decl(interfaceDeclaration3.ts, 28, 29)) + } + class C1 implements I1 { +>C1 : Symbol(C1, Decl(interfaceDeclaration3.ts, 29, 5)) +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 24, 18)) + + public item:number; +>item : Symbol(C1.item, Decl(interfaceDeclaration3.ts, 30, 28)) + } + class C2 implements I1 { +>C2 : Symbol(C2, Decl(interfaceDeclaration3.ts, 32, 5)) +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 24, 18)) + + public item:string; +>item : Symbol(C2.item, Decl(interfaceDeclaration3.ts, 33, 28)) + } + class C3 implements I2 { +>C3 : Symbol(C3, Decl(interfaceDeclaration3.ts, 35, 5)) +>I2 : Symbol(I2, Decl(interfaceDeclaration3.ts, 25, 40)) + + public item:string; +>item : Symbol(C3.item, Decl(interfaceDeclaration3.ts, 36, 28)) + } +} + +class C1 implements I1 { +>C1 : Symbol(C1, Decl(interfaceDeclaration3.ts, 39, 1)) +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 0, 0)) + + public item:number; +>item : Symbol(C1.item, Decl(interfaceDeclaration3.ts, 41, 24)) +} + +class C2 implements M2.I1 { +>C2 : Symbol(C2, Decl(interfaceDeclaration3.ts, 43, 1)) +>M2.I1 : Symbol(M2.I1, Decl(interfaceDeclaration3.ts, 24, 18)) +>M2 : Symbol(M2, Decl(interfaceDeclaration3.ts, 22, 1)) +>I1 : Symbol(M2.I1, Decl(interfaceDeclaration3.ts, 24, 18)) + + public item:string; +>item : Symbol(C2.item, Decl(interfaceDeclaration3.ts, 45, 27)) +} + +class C3 implements M2.M3.I1 { +>C3 : Symbol(C3, Decl(interfaceDeclaration3.ts, 47, 1)) +>M2.M3.I1 : Symbol(M2.M3.I1, Decl(interfaceDeclaration3.ts, 27, 22)) +>M2.M3 : Symbol(M2.M3, Decl(interfaceDeclaration3.ts, 26, 40)) +>M2 : Symbol(M2, Decl(interfaceDeclaration3.ts, 22, 1)) +>M3 : Symbol(M2.M3, Decl(interfaceDeclaration3.ts, 26, 40)) +>I1 : Symbol(M2.M3.I1, Decl(interfaceDeclaration3.ts, 27, 22)) + + public item:string; +>item : Symbol(C3.item, Decl(interfaceDeclaration3.ts, 49, 30)) +} + +interface I2 extends I1 { item:string; } +>I2 : Symbol(I2, Decl(interfaceDeclaration3.ts, 51, 1)) +>I1 : Symbol(I1, Decl(interfaceDeclaration3.ts, 0, 0)) +>item : Symbol(I2.item, Decl(interfaceDeclaration3.ts, 53, 25)) + diff --git a/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.types b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.types new file mode 100644 index 0000000000..4fffc4d967 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceDeclaration3.types @@ -0,0 +1,114 @@ +//// [tests/cases/compiler/interfaceDeclaration3.ts] //// + +=== interfaceDeclaration3.ts === +interface I1 { item:number; } +>item : number + +module M1 { +>M1 : typeof M1 + + interface I1 { item:string; } +>item : string + + interface I2 { item:number; } +>item : number + + class C1 implements I1 { +>C1 : C1 + + public item:number; +>item : number + } + class C2 implements I1 { +>C2 : C2 + + public item:string; +>item : string + } + class C3 implements I2 { +>C3 : C3 + + public item:number; +>item : number + } + + class C4 implements M2.I1 { +>C4 : C4 +>M2 : typeof M2 + + public item:string; +>item : string + } + + class C5 implements M2.M3.I1 { +>C5 : C5 +>M2.M3 : any +>M2 : typeof M2 +>M3 : any + + public item:string; +>item : string + } +} + +export module M2 { +>M2 : typeof M2 + + export interface I1 { item:string; } +>item : string + + export interface I2 { item:string; } +>item : string + + export module M3 { + export interface I1 { item:string; } +>item : string + } + class C1 implements I1 { +>C1 : C1 + + public item:number; +>item : number + } + class C2 implements I1 { +>C2 : C2 + + public item:string; +>item : string + } + class C3 implements I2 { +>C3 : C3 + + public item:string; +>item : string + } +} + +class C1 implements I1 { +>C1 : C1 + + public item:number; +>item : number +} + +class C2 implements M2.I1 { +>C2 : C2 +>M2 : typeof M2 + + public item:string; +>item : string +} + +class C3 implements M2.M3.I1 { +>C3 : C3 +>M2.M3 : any +>M2 : typeof M2 +>M3 : any + + public item:string; +>item : string +} + +interface I2 extends I1 { item:string; } +>item : string + diff --git a/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.errors.txt b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.errors.txt new file mode 100644 index 0000000000..ce5a76fbbe --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.errors.txt @@ -0,0 +1,38 @@ +interfaceImplementation6.ts(9,7): error TS2420: Class 'C2' incorrectly implements interface 'I1'. + Property 'item' is private in type 'C2' but not in type 'I1'. +interfaceImplementation6.ts(13,7): error TS2420: Class 'C3' incorrectly implements interface 'I1'. + Property 'item' is missing in type 'C3' but required in type 'I1'. + + +==== interfaceImplementation6.ts (2 errors) ==== + interface I1 { + item:number; + } + + class C1 implements I1 { + public item:number; + } + + class C2 implements I1 { + ~~ +!!! error TS2420: Class 'C2' incorrectly implements interface 'I1'. +!!! error TS2420: Property 'item' is private in type 'C2' but not in type 'I1'. + private item:number; + } + + class C3 implements I1 { + ~~ +!!! error TS2420: Class 'C3' incorrectly implements interface 'I1'. +!!! error TS2420: Property 'item' is missing in type 'C3' but required in type 'I1'. +!!! related TS2728 interfaceImplementation6.ts:2:5: 'item' is declared here. + constructor() { + var item: number; + } + } + + export class Test { + private pt: I1 = { item: 1 }; + } + + + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.js b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.js new file mode 100644 index 0000000000..46c62d1756 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.js @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/interfaceImplementation6.ts] //// + +//// [interfaceImplementation6.ts] +interface I1 { + item:number; +} + +class C1 implements I1 { + public item:number; +} + +class C2 implements I1 { + private item:number; +} + +class C3 implements I1 { + constructor() { + var item: number; + } +} + +export class Test { + private pt: I1 = { item: 1 }; +} + + + + +//// [interfaceImplementation6.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Test = void 0; +class C1 { + item; +} +class C2 { + item; +} +class C3 { + constructor() { + var item; + } +} +class Test { + pt = { item: 1 }; +} +exports.Test = Test; diff --git a/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.js.diff b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.js.diff new file mode 100644 index 0000000000..1a9caca8bc --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.js.diff @@ -0,0 +1,23 @@ +--- old.interfaceImplementation6.js ++++ new.interfaceImplementation6.js +@@= skipped -30, +30 lines =@@ + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Test = void 0; + class C1 { ++ item; + } + class C2 { ++ item; + } + class C3 { + constructor() { +@@= skipped -9, +11 lines =@@ + } + } + class Test { +- constructor() { +- this.pt = { item: 1 }; +- } ++ pt = { item: 1 }; + } + exports.Test = Test; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.symbols b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.symbols new file mode 100644 index 0000000000..fa42f15472 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/interfaceImplementation6.ts] //// + +=== interfaceImplementation6.ts === +interface I1 { +>I1 : Symbol(I1, Decl(interfaceImplementation6.ts, 0, 0)) + + item:number; +>item : Symbol(I1.item, Decl(interfaceImplementation6.ts, 0, 14)) +} + +class C1 implements I1 { +>C1 : Symbol(C1, Decl(interfaceImplementation6.ts, 2, 1)) +>I1 : Symbol(I1, Decl(interfaceImplementation6.ts, 0, 0)) + + public item:number; +>item : Symbol(C1.item, Decl(interfaceImplementation6.ts, 4, 24)) +} + +class C2 implements I1 { +>C2 : Symbol(C2, Decl(interfaceImplementation6.ts, 6, 1)) +>I1 : Symbol(I1, Decl(interfaceImplementation6.ts, 0, 0)) + + private item:number; +>item : Symbol(C2.item, Decl(interfaceImplementation6.ts, 8, 24)) +} + +class C3 implements I1 { +>C3 : Symbol(C3, Decl(interfaceImplementation6.ts, 10, 1)) +>I1 : Symbol(I1, Decl(interfaceImplementation6.ts, 0, 0)) + + constructor() { + var item: number; +>item : Symbol(item, Decl(interfaceImplementation6.ts, 14, 10)) + } +} + +export class Test { +>Test : Symbol(Test, Decl(interfaceImplementation6.ts, 16, 1)) + + private pt: I1 = { item: 1 }; +>pt : Symbol(Test.pt, Decl(interfaceImplementation6.ts, 18, 19)) +>I1 : Symbol(I1, Decl(interfaceImplementation6.ts, 0, 0)) +>item : Symbol(item, Decl(interfaceImplementation6.ts, 19, 22)) +} + + + diff --git a/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.types b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.types new file mode 100644 index 0000000000..8e842c8c5a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/interfaceImplementation6.types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/interfaceImplementation6.ts] //// + +=== interfaceImplementation6.ts === +interface I1 { + item:number; +>item : number +} + +class C1 implements I1 { +>C1 : C1 + + public item:number; +>item : number +} + +class C2 implements I1 { +>C2 : C2 + + private item:number; +>item : number +} + +class C3 implements I1 { +>C3 : C3 + + constructor() { + var item: number; +>item : number + } +} + +export class Test { +>Test : Test + + private pt: I1 = { item: 1 }; +>pt : I1 +>{ item: 1 } : { item: number; } +>item : number +>1 : 1 +} + + + diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt new file mode 100644 index 0000000000..ced31bd01b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt @@ -0,0 +1,35 @@ +internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(1,1): error TS1185: Merge conflict marker encountered. +internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(3,1): error TS1185: Merge conflict marker encountered. +internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(5,1): error TS1185: Merge conflict marker encountered. +internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(7,1): error TS1185: Merge conflict marker encountered. +internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(17,10): error TS2694: Namespace '"internalAliasInterfaceInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. + + +==== internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts (5 errors) ==== + <<<<<<< HEAD + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export module a { + ||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export namespace a { + ======= + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export namespace a { + >>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export interface I { + } + } + + export module c { + import b = a.I; + export var x: b; + } + + var x: c.b; + ~ +!!! error TS2694: Namespace '"internalAliasInterfaceInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js new file mode 100644 index 0000000000..bdb02a7e5d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts] //// + +//// [internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts] +<<<<<<< HEAD +export module a { +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace a { +======= +export namespace a { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface I { + } +} + +export module c { + import b = a.I; + export var x: b; +} + +var x: c.b; + +//// [internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +var c; +(function (c) { + var b = a.I; +})(c || (exports.c = c = {})); +var x; diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js.diff b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js.diff new file mode 100644 index 0000000000..8d05775abd --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js.diff @@ -0,0 +1,9 @@ +--- old.internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js ++++ new.internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js +@@= skipped -24, +24 lines =@@ + exports.c = void 0; + var c; + (function (c) { ++ var b = a.I; + })(c || (exports.c = c = {})); + var x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.symbols b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.symbols new file mode 100644 index 0000000000..ef6118207d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts] //// + +=== internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts === +<<<<<<< HEAD +export module a { +>a : Symbol(a, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 0, 0)) + +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace a { +======= +export namespace a { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface I { +>I : Symbol(I, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 1, 17)) + } +} + +export module c { +>c : Symbol(c, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 9, 1)) + + import b = a.I; +>b : Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 11, 17)) +>a : Symbol(a, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 0, 0)) +>I : Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 1, 17)) + + export var x: b; +>x : Symbol(x, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 13, 14)) +>b : Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 11, 17)) +} + +var x: c.b; +>x : Symbol(x, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 16, 3)) +>c : Symbol(c, Decl(internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts, 9, 1)) +>b : Symbol(c.b) + diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.types b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.types new file mode 100644 index 0000000000..2e52ca27eb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts] //// + +=== internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts === +<<<<<<< HEAD +export module a { +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace a { +======= +export namespace a { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface I { + } +} + +export module c { +>c : typeof c + + import b = a.I; +>b : any +>a : any +>I : b + + export var x: b; +>x : b +} + +var x: c.b; +>x : c.b +>c : any + diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt new file mode 100644 index 0000000000..33c67eae2a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt @@ -0,0 +1,42 @@ +internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(1,1): error TS1185: Merge conflict marker encountered. +internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(4,1): error TS1185: Merge conflict marker encountered. +internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(7,1): error TS1185: Merge conflict marker encountered. +internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(10,1): error TS1185: Merge conflict marker encountered. +internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(24,17): error TS2694: Namespace '"internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. + + +==== internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts (5 errors) ==== + <<<<<<< HEAD + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export module a { + export module b { + ||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export namespace a { + export namespace b { + ======= + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export namespace a { + export namespace b { + >>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export interface I { + foo(); + } + } + } + + export module c { + import b = a.b; + export var x: b.I; + x.foo(); + } + + + export var z: c.b.I; + ~ +!!! error TS2694: Namespace '"internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js new file mode 100644 index 0000000000..ead7ebc3ca --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts] //// + +//// [internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts] +<<<<<<< HEAD +export module a { + export module b { +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace a { + export namespace b { +======= +export namespace a { + export namespace b { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface I { + foo(); + } + } +} + +export module c { + import b = a.b; + export var x: b.I; + x.foo(); +} + + +export var z: c.b.I; + +//// [internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = exports.c = void 0; +var c; +(function (c) { + var b = a.b; + c.x.foo(); +})(c || (exports.c = c = {})); diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js.diff b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js.diff new file mode 100644 index 0000000000..562b363ac5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js.diff @@ -0,0 +1,9 @@ +--- old.internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js ++++ new.internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js +@@= skipped -31, +31 lines =@@ + exports.z = exports.c = void 0; + var c; + (function (c) { ++ var b = a.b; + c.x.foo(); + })(c || (exports.c = c = {})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.symbols b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.symbols new file mode 100644 index 0000000000..2deb9f3148 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts] //// + +=== internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts === +<<<<<<< HEAD +export module a { +>a : Symbol(a, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 0, 0)) + + export module b { +>b : Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 1, 17)) + +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace a { + export namespace b { +======= +export namespace a { + export namespace b { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface I { +>I : Symbol(I, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 2, 21)) + + foo(); +>foo : Symbol(I.foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 10, 28)) + } + } +} + +export module c { +>c : Symbol(c, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 14, 1)) + + import b = a.b; +>b : Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 16, 17)) +>a : Symbol(a, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 0, 0)) +>b : Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 1, 17)) + + export var x: b.I; +>x : Symbol(x, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 18, 14)) +>b : Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 16, 17)) +>I : Symbol(b.I, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 2, 21)) + + x.foo(); +>x.foo : Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 10, 28)) +>x : Symbol(x, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 18, 14)) +>foo : Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 10, 28)) +} + + +export var z: c.b.I; +>z : Symbol(z, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 23, 10)) +>c : Symbol(c, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts, 14, 1)) +>b : Symbol(c.b) +>I : Symbol(c.b.I) + diff --git a/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.types b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.types new file mode 100644 index 0000000000..f9a4162f19 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.types @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts] //// + +=== internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts === +<<<<<<< HEAD +export module a { + export module b { +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace a { + export namespace b { +======= +export namespace a { + export namespace b { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export interface I { + foo(); +>foo : () => any + } + } +} + +export module c { +>c : typeof c + + import b = a.b; +>b : any +>a : any +>b : any + + export var x: b.I; +>x : b.I +>b : any + + x.foo(); +>x.foo() : any +>x.foo : () => any +>x : b.I +>foo : () => any +} + + +export var z: c.b.I; +>z : c.b.I +>c : any +>b : any + diff --git a/testdata/baselines/reference/submodule/compiler/isolatedModulesExportDeclarationType.js b/testdata/baselines/reference/submodule/compiler/isolatedModulesExportDeclarationType.js index 5f68db0689..6b72a0a1e6 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedModulesExportDeclarationType.js +++ b/testdata/baselines/reference/submodule/compiler/isolatedModulesExportDeclarationType.js @@ -39,7 +39,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true }); //// [test4.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); // @ts-expect-error -const doesntexist_1 = require("./doesntexist"); +const doesntexist_1 = __importDefault(require("./doesntexist")); exports.default = doesntexist_1.default; diff --git a/testdata/baselines/reference/submodule/compiler/isolatedModulesExportDeclarationType.js.diff b/testdata/baselines/reference/submodule/compiler/isolatedModulesExportDeclarationType.js.diff index 1e89e725c7..9d7c080d06 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedModulesExportDeclarationType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/isolatedModulesExportDeclarationType.js.diff @@ -1,9 +1,9 @@ --- old.isolatedModulesExportDeclarationType.js +++ new.isolatedModulesExportDeclarationType.js -@@= skipped -40, +40 lines =@@ - "use strict"; +@@= skipped -43, +43 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); // @ts-expect-error --var doesntexist_1 = require("./doesntexist"); -+const doesntexist_1 = require("./doesntexist"); +-var doesntexist_1 = __importDefault(require("./doesntexist")); ++const doesntexist_1 = __importDefault(require("./doesntexist")); exports.default = doesntexist_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/isolatedModulesImportExportElision.js b/testdata/baselines/reference/submodule/compiler/isolatedModulesImportExportElision.js index 43aa3ce8e0..e14f77fb88 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedModulesImportExportElision.js +++ b/testdata/baselines/reference/submodule/compiler/isolatedModulesImportExportElision.js @@ -16,11 +16,44 @@ export var z = x; //// [file1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.z = exports.c1 = void 0; const module_1 = require("module"); const module_2 = require("module"); -const ns = require("module"); +const ns = __importStar(require("module")); class C extends module_2.c2.C { } let x = new module_1.c(); diff --git a/testdata/baselines/reference/submodule/compiler/isolatedModulesImportExportElision.js.diff b/testdata/baselines/reference/submodule/compiler/isolatedModulesImportExportElision.js.diff index dc33b712bd..23c828b364 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedModulesImportExportElision.js.diff +++ b/testdata/baselines/reference/submodule/compiler/isolatedModulesImportExportElision.js.diff @@ -1,15 +1,15 @@ --- old.isolatedModulesImportExportElision.js +++ new.isolatedModulesImportExportElision.js -@@= skipped -17, +17 lines =@@ - "use strict"; +@@= skipped -50, +50 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.z = exports.c1 = void 0; -var module_1 = require("module"); -var module_2 = require("module"); --var ns = require("module"); +-var ns = __importStar(require("module")); +const module_1 = require("module"); +const module_2 = require("module"); -+const ns = require("module"); ++const ns = __importStar(require("module")); class C extends module_2.c2.C { } let x = new module_1.c(); diff --git a/testdata/baselines/reference/submodule/compiler/isolatedModulesReExportType.js b/testdata/baselines/reference/submodule/compiler/isolatedModulesReExportType.js index 896c355db4..eb2df0c95f 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedModulesReExportType.js +++ b/testdata/baselines/reference/submodule/compiler/isolatedModulesReExportType.js @@ -70,11 +70,44 @@ exports.C = C; Object.defineProperty(exports, "__esModule", { value: true }); //// [user.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.NS = exports.C = void 0; // OK, has a value side const exportValue_1 = require("./exportValue"); Object.defineProperty(exports, "C", { enumerable: true, get: function () { return exportValue_1.C; } }); // OK, even though the namespace it exports is only types. -const NS = require("./exportT"); +const NS = __importStar(require("./exportT")); exports.NS = NS; diff --git a/testdata/baselines/reference/submodule/compiler/isolatedModulesReExportType.js.diff b/testdata/baselines/reference/submodule/compiler/isolatedModulesReExportType.js.diff index 0b525d20bd..2aeca4fb61 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedModulesReExportType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/isolatedModulesReExportType.js.diff @@ -1,6 +1,6 @@ --- old.isolatedModulesReExportType.js +++ new.isolatedModulesReExportType.js -@@= skipped -72, +72 lines =@@ +@@= skipped -105, +105 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.NS = exports.C = void 0; // OK, has a value side @@ -8,6 +8,6 @@ +const exportValue_1 = require("./exportValue"); Object.defineProperty(exports, "C", { enumerable: true, get: function () { return exportValue_1.C; } }); // OK, even though the namespace it exports is only types. --var NS = require("./exportT"); -+const NS = require("./exportT"); +-var NS = __importStar(require("./exportT")); ++const NS = __importStar(require("./exportT")); exports.NS = NS; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.errors.txt deleted file mode 100644 index db630a3221..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.errors.txt +++ /dev/null @@ -1,15 +0,0 @@ -error TS5055: Cannot write file 'a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.js (0 errors) ==== - class c { - method(a) { - let x = a => this.method(a); - } - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.symbols deleted file mode 100644 index d79e0966e5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationClassMethodContainingArrowFunction.ts] //// - -=== a.js === -class c { ->c : Symbol(c, Decl(a.js, 0, 0)) - - method(a) { ->method : Symbol(c.method, Decl(a.js, 0, 9)) ->a : Symbol(a, Decl(a.js, 1, 11)) - - let x = a => this.method(a); ->x : Symbol(x, Decl(a.js, 2, 11)) ->a : Symbol(a, Decl(a.js, 2, 15)) ->this.method : Symbol(c.method, Decl(a.js, 0, 9)) ->this : Symbol(c, Decl(a.js, 0, 0)) ->method : Symbol(c.method, Decl(a.js, 0, 9)) ->a : Symbol(a, Decl(a.js, 2, 15)) - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.types deleted file mode 100644 index 9e38800cb6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationClassMethodContainingArrowFunction.types +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationClassMethodContainingArrowFunction.ts] //// - -=== a.js === -class c { ->c : c - - method(a) { ->method : (a: any) => void ->a : any - - let x = a => this.method(a); ->x : (a: any) => void ->a => this.method(a) : (a: any) => void ->a : any ->this.method(a) : void ->this.method : (a: any) => void ->this : this ->method : (a: any) => void ->a : any - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.errors.txt deleted file mode 100644 index e246e2ba5d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -a.ts(1,10): error TS2393: Duplicate function implementation. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== b.js (0 errors) ==== - function foo() { - return 10; - } -==== a.ts (1 errors) ==== - function foo() { - ~~~ -!!! error TS2393: Duplicate function implementation. - return 30; - } - - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.symbols deleted file mode 100644 index 95e1a34d96..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.symbols +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationDuplicateFunctionImplementation.ts] //// - -=== b.js === -function foo() { ->foo : Symbol(foo, Decl(b.js, 0, 0), Decl(a.ts, 0, 0)) - - return 10; -} -=== a.ts === -function foo() { ->foo : Symbol(foo, Decl(b.js, 0, 0), Decl(a.ts, 0, 0)) - - return 30; -} - - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.types deleted file mode 100644 index a12a4b908e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementation.types +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationDuplicateFunctionImplementation.ts] //// - -=== b.js === -function foo() { ->foo : { (): number; (): number; } - - return 10; ->10 : 10 -} -=== a.ts === -function foo() { ->foo : { (): number; (): number; } - - return 30; ->30 : 30 -} - - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt deleted file mode 100644 index 2171b2715c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -a.ts(1,10): error TS2393: Duplicate function implementation. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (1 errors) ==== - function foo() { - ~~~ -!!! error TS2393: Duplicate function implementation. - return 30; - } - -==== b.js (0 errors) ==== - function foo() { - return 10; - } - - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.symbols deleted file mode 100644 index 56a11f9287..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.ts] //// - -=== a.ts === -function foo() { ->foo : Symbol(foo, Decl(a.ts, 0, 0), Decl(b.js, 0, 0)) - - return 30; -} - -=== b.js === -function foo() { ->foo : Symbol(foo, Decl(a.ts, 0, 0), Decl(b.js, 0, 0)) - - return 10; -} - - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.types deleted file mode 100644 index 8cf49d3bd1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.ts] //// - -=== a.ts === -function foo() { ->foo : { (): number; (): number; } - - return 30; ->30 : 30 -} - -=== b.js === -function foo() { ->foo : { (): number; (): number; } - - return 10; ->10 : 10 -} - - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.errors.txt deleted file mode 100644 index 17fcb9ecac..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - var x = 10; - -==== b.js (0 errors) ==== - var x = "hello"; // Error is recorded here, but suppressed because the js file isn't checked - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.symbols deleted file mode 100644 index 6966b38384..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationDuplicateVariable.ts] //// - -=== a.ts === -var x = 10; ->x : Symbol(x, Decl(a.ts, 0, 3), Decl(b.js, 0, 3)) - -=== b.js === -var x = "hello"; // Error is recorded here, but suppressed because the js file isn't checked ->x : Symbol(x, Decl(a.ts, 0, 3), Decl(b.js, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.types deleted file mode 100644 index 0485264641..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariable.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationDuplicateVariable.ts] //// - -=== a.ts === -var x = 10; ->x : number ->10 : 10 - -=== b.js === -var x = "hello"; // Error is recorded here, but suppressed because the js file isn't checked ->x : number ->"hello" : "hello" - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.errors.txt deleted file mode 100644 index 9501bfbd57..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.errors.txt +++ /dev/null @@ -1,18 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -a.ts(1,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'string', but here has type 'number'. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== b.js (0 errors) ==== - var x = "hello"; - -==== a.ts (1 errors) ==== - var x = 10; // Error reported - ~ -!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'string', but here has type 'number'. -!!! related TS6203 b.js:1:5: 'x' was also declared here. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.symbols deleted file mode 100644 index d122fd9ec3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationDuplicateVariableErrorReported.ts] //// - -=== b.js === -var x = "hello"; ->x : Symbol(x, Decl(b.js, 0, 3), Decl(a.ts, 0, 3)) - -=== a.ts === -var x = 10; // Error reported ->x : Symbol(x, Decl(b.js, 0, 3), Decl(a.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.types deleted file mode 100644 index cabb99161d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationDuplicateVariableErrorReported.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationDuplicateVariableErrorReported.ts] //// - -=== b.js === -var x = "hello"; ->x : string ->"hello" : "hello" - -=== a.ts === -var x = 10; // Error reported ->x : string ->10 : 10 - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.errors.txt deleted file mode 100644 index e54b4b5efe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class c { - } - -==== b.js (0 errors) ==== - function foo() { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.symbols deleted file mode 100644 index 427342522f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.symbols +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationEmitDeclarations.ts] //// - -=== a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - -=== b.js === -function foo() { ->foo : Symbol(foo, Decl(b.js, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.types deleted file mode 100644 index 6a130e285c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitDeclarations.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationEmitDeclarations.ts] //// - -=== a.ts === -class c { ->c : c -} - -=== b.js === -function foo() { ->foo : () => void -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.errors.txt deleted file mode 100644 index 31f187a95a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.errors.txt +++ /dev/null @@ -1,25 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5055: Cannot write file 'c.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5055: Cannot write file 'c.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class c { - } - -==== b.js (0 errors) ==== - /// - function foo() { - } - -==== c.js (0 errors) ==== - function bar() { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.symbols deleted file mode 100644 index 587047e774..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.symbols +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationEmitTrippleSlashReference.ts] //// - -=== a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - -=== b.js === -/// -function foo() { ->foo : Symbol(foo, Decl(b.js, 0, 0)) -} - -=== c.js === -function bar() { ->bar : Symbol(bar, Decl(c.js, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.types deleted file mode 100644 index 4c97cbff39..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationEmitTrippleSlashReference.types +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationEmitTrippleSlashReference.ts] //// - -=== a.ts === -class c { ->c : c -} - -=== b.js === -/// -function foo() { ->foo : () => void -} - -=== c.js === -function bar() { ->bar : () => void -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt deleted file mode 100644 index 2d0b682034..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -error TS5055: Cannot write file 'c.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'c.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class c { - } - -==== b.ts (0 errors) ==== - /// - function foo() { - } - -==== c.js (0 errors) ==== - function bar() { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.symbols deleted file mode 100644 index 5f713588b9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.symbols +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.ts] //// - -=== a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - -=== b.ts === -/// -function foo() { ->foo : Symbol(foo, Decl(b.ts, 0, 0)) -} - -=== c.js === -function bar() { ->bar : Symbol(bar, Decl(c.js, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.types deleted file mode 100644 index 7d380f8968..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.types +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.ts] //// - -=== a.ts === -class c { ->c : c -} - -=== b.ts === -/// -function foo() { ->foo : () => void -} - -=== c.js === -function bar() { ->bar : () => void -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.errors.txt deleted file mode 100644 index 71d995fb16..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.errors.txt +++ /dev/null @@ -1,15 +0,0 @@ -error TS5055: Cannot write file 'a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.js (0 errors) ==== - function foo(a) { - for (let a = 0; a < 10; a++) { - // do something - } - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.symbols deleted file mode 100644 index 18994a6597..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.symbols +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationLetBeingRenamed.ts] //// - -=== a.js === -function foo(a) { ->foo : Symbol(foo, Decl(a.js, 0, 0)) ->a : Symbol(a, Decl(a.js, 0, 13)) - - for (let a = 0; a < 10; a++) { ->a : Symbol(a, Decl(a.js, 1, 12)) ->a : Symbol(a, Decl(a.js, 1, 12)) ->a : Symbol(a, Decl(a.js, 1, 12)) - - // do something - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.types deleted file mode 100644 index 0b5c583561..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetBeingRenamed.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationLetBeingRenamed.ts] //// - -=== a.js === -function foo(a) { ->foo : (a: any) => void ->a : any - - for (let a = 0; a < 10; a++) { ->a : number ->0 : 0 ->a < 10 : boolean ->a : number ->10 : 10 ->a++ : number ->a : number - - // do something - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.errors.txt deleted file mode 100644 index b04087814f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== b.js (0 errors) ==== - let a = 10; - b = 30; - -==== a.ts (0 errors) ==== - let b = 30; - a = 10; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.symbols deleted file mode 100644 index e7327adb55..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.symbols +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationLetDeclarationOrder.ts] //// - -=== b.js === -let a = 10; ->a : Symbol(a, Decl(b.js, 0, 3)) - -b = 30; ->b : Symbol(b, Decl(a.ts, 0, 3)) - -=== a.ts === -let b = 30; ->b : Symbol(b, Decl(a.ts, 0, 3)) - -a = 10; ->a : Symbol(a, Decl(b.js, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.types deleted file mode 100644 index e8596b8b46..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder.types +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationLetDeclarationOrder.ts] //// - -=== b.js === -let a = 10; ->a : number ->10 : 10 - -b = 30; ->b = 30 : 30 ->b : number ->30 : 30 - -=== a.ts === -let b = 30; ->b : number ->30 : 30 - -a = 10; ->a = 10 : 10 ->a : number ->10 : 10 - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.errors.txt deleted file mode 100644 index 6fcc471480..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.errors.txt +++ /dev/null @@ -1,15 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - let b = 30; - a = 10; -==== b.js (0 errors) ==== - let a = 10; - b = 30; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.symbols deleted file mode 100644 index 5f8fb8408f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.symbols +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationLetDeclarationOrder2.ts] //// - -=== a.ts === -let b = 30; ->b : Symbol(b, Decl(a.ts, 0, 3)) - -a = 10; ->a : Symbol(a, Decl(b.js, 0, 3)) - -=== b.js === -let a = 10; ->a : Symbol(a, Decl(b.js, 0, 3)) - -b = 30; ->b : Symbol(b, Decl(a.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.types deleted file mode 100644 index 77b87151ee..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationLetDeclarationOrder2.types +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationLetDeclarationOrder2.ts] //// - -=== a.ts === -let b = 30; ->b : number ->30 : 30 - -a = 10; ->a = 10 : 10 ->a : number ->10 : 10 - -=== b.js === -let a = 10; ->a : number ->10 : 10 - -b = 30; ->b = 30 : 30 ->b : number ->30 : 30 - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt deleted file mode 100644 index 0bc8b29be8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -error TS5055: Cannot write file 'c.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'c.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class c { - } - -==== b.ts (0 errors) ==== - /// - //no error on above reference since not emitting declarations - function foo() { - } - -==== c.js (0 errors) ==== - function bar() { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.symbols deleted file mode 100644 index f9a7be2474..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.ts] //// - -=== a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - -=== b.ts === -/// -//no error on above reference since not emitting declarations -function foo() { ->foo : Symbol(foo, Decl(b.ts, 0, 0)) -} - -=== c.js === -function bar() { ->bar : Symbol(bar, Decl(c.js, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.types deleted file mode 100644 index 6347d6b89b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.ts] //// - -=== a.ts === -class c { ->c : c -} - -=== b.ts === -/// -//no error on above reference since not emitting declarations -function foo() { ->foo : () => void -} - -=== c.js === -function bar() { ->bar : () => void -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.errors.txt deleted file mode 100644 index 32c9cb870e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -/src/a.js(1,1): error TS8013: Non-null assertions can only be used in TypeScript files. - - -!!! error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /src/a.js (1 errors) ==== - 0! - ~~ -!!! error TS8013: Non-null assertions can only be used in TypeScript files. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.symbols deleted file mode 100644 index 1804a9bac8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationNonNullAssertion.ts] //// - -=== /src/a.js === - -0! - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.types deleted file mode 100644 index 8d2f97d97b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationNonNullAssertion.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationNonNullAssertion.ts] //// - -=== /src/a.js === -0! ->0! : 0 ->0 : 0 - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.errors.txt deleted file mode 100644 index 0a4d382583..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.errors.txt +++ /dev/null @@ -1,11 +0,0 @@ -error TS5055: Cannot write file 'a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.js (0 errors) ==== - function foo(...a) { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.symbols deleted file mode 100644 index 77e06465c1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationRestParameter.ts] //// - -=== a.js === -function foo(...a) { } ->foo : Symbol(foo, Decl(a.js, 0, 0)) ->a : Symbol(a, Decl(a.js, 0, 13)) - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.types deleted file mode 100644 index ace365e6e6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationRestParameter.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationRestParameter.ts] //// - -=== a.js === -function foo(...a) { } ->foo : (...a: any[]) => void ->a : any[] - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.errors.txt deleted file mode 100644 index d3d29142c5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.errors.txt +++ /dev/null @@ -1,18 +0,0 @@ -error TS5055: Cannot write file 'a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.js (0 errors) ==== - function foo() { - var a = 10; - var b = "Hello"; - return { - a, - b - }; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.symbols deleted file mode 100644 index 4cde6bb927..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationShortHandProperty.ts] //// - -=== a.js === -function foo() { ->foo : Symbol(foo, Decl(a.js, 0, 0)) - - var a = 10; ->a : Symbol(a, Decl(a.js, 1, 7)) - - var b = "Hello"; ->b : Symbol(b, Decl(a.js, 2, 7)) - - return { - a, ->a : Symbol(a, Decl(a.js, 3, 12)) - - b ->b : Symbol(b, Decl(a.js, 4, 10)) - - }; -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.types deleted file mode 100644 index 163af24a00..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationShortHandProperty.types +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationShortHandProperty.ts] //// - -=== a.js === -function foo() { ->foo : () => { a: number; b: string; } - - var a = 10; ->a : number ->10 : 10 - - var b = "Hello"; ->b : string ->"Hello" : "Hello" - - return { ->{ a, b } : { a: number; b: string; } - - a, ->a : number - - b ->b : string - - }; -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.errors.txt deleted file mode 100644 index 852f133911..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -/src/a.js(1,6): error TS8016: Type assertion expressions can only be used in TypeScript files. -/src/a.js(2,10): error TS17008: JSX element 'string' has no corresponding closing tag. -/src/a.js(3,1): error TS1005: 'undefined; - ~~~~~~ -!!! error TS17008: JSX element 'string' has no corresponding closing tag. - - -!!! error TS1005: 'undefined; ->v : Symbol(v, Decl(a.js, 1, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.types deleted file mode 100644 index 161d671433..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationTypeAssertions.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationTypeAssertions.ts] //// - -=== /src/a.js === -0 as number; ->0 as number : number ->0 : 0 - -var v = undefined; ->v : any ->undefined; : any ->string : any - -> : any - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.errors.txt deleted file mode 100644 index e54b4b5efe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class c { - } - -==== b.js (0 errors) ==== - function foo() { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.symbols deleted file mode 100644 index 047a93e777..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.symbols +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationWithEnabledCompositeOption.ts] //// - -=== a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - -=== b.js === -function foo() { ->foo : Symbol(foo, Decl(b.js, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.types deleted file mode 100644 index 1d05fbf535..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithEnabledCompositeOption.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationWithEnabledCompositeOption.ts] //// - -=== a.ts === -class c { ->c : c -} - -=== b.js === -function foo() { ->foo : () => void -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.errors.txt deleted file mode 100644 index e54b4b5efe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class c { - } - -==== b.js (0 errors) ==== - function foo() { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.symbols deleted file mode 100644 index b0a7e0781e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.symbols +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationWithOut.ts] //// - -=== a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - -=== b.js === -function foo() { ->foo : Symbol(foo, Decl(b.js, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.types deleted file mode 100644 index 14a06c2efd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOut.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationWithOut.ts] //// - -=== a.ts === -class c { ->c : c -} - -=== b.js === -function foo() { ->foo : () => void -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt deleted file mode 100644 index d18c2df691..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt +++ /dev/null @@ -1,11 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /a.ts (0 errors) ==== - class c { - } - -==== /b.d.ts (0 errors) ==== - declare function foo(): boolean; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.symbols deleted file mode 100644 index 83307d0418..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.symbols +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.ts] //// - -=== /a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - -=== /b.d.ts === -declare function foo(): boolean; ->foo : Symbol(foo, Decl(b.d.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.types deleted file mode 100644 index 981206ee1f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.ts] //// - -=== /a.ts === -class c { ->c : c -} - -=== /b.d.ts === -declare function foo(): boolean; ->foo : () => boolean - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt deleted file mode 100644 index 863ab21fdb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -error TS5055: Cannot write file '/b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file '/b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /a.ts (0 errors) ==== - class c { - } - -==== /b.js (0 errors) ==== - function foo() { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.symbols b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.symbols deleted file mode 100644 index aa24bde9fe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.symbols +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.ts] //// - -=== /a.ts === -class c { ->c : Symbol(c, Decl(a.ts, 0, 0)) -} - -=== /b.js === -function foo() { ->foo : Symbol(foo, Decl(b.js, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.types b/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.types deleted file mode 100644 index 6003007983..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.ts] //// - -=== /a.ts === -class c { ->c : c -} - -=== /b.js === -function foo() { ->foo : () => void -} - diff --git a/testdata/baselines/reference/submodule/compiler/jsdocInTypeScript.js b/testdata/baselines/reference/submodule/compiler/jsdocInTypeScript.js index 917d6ddac3..b4585c5b55 100644 --- a/testdata/baselines/reference/submodule/compiler/jsdocInTypeScript.js +++ b/testdata/baselines/reference/submodule/compiler/jsdocInTypeScript.js @@ -60,6 +60,39 @@ var v = import(String()); //// [jsdocInTypeScript.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); class T { prop; } @@ -90,4 +123,4 @@ var E = {}; E[""]; // make sure import types in JSDoc are not resolved /** @type {import("should-not-be-resolved").Type} */ -var v = Promise.resolve(`${String()}`).then(s => require(s)); +var v = Promise.resolve(`${String()}`).then(s => __importStar(require(s))); diff --git a/testdata/baselines/reference/submodule/compiler/jsdocInTypeScript.js.diff b/testdata/baselines/reference/submodule/compiler/jsdocInTypeScript.js.diff index afcfd4e612..103c5aba5e 100644 --- a/testdata/baselines/reference/submodule/compiler/jsdocInTypeScript.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsdocInTypeScript.js.diff @@ -1,8 +1,8 @@ --- old.jsdocInTypeScript.js +++ new.jsdocInTypeScript.js -@@= skipped -60, +60 lines =@@ - - //// [jsdocInTypeScript.js] +@@= skipped -93, +93 lines =@@ + }; + })(); class T { + prop; } @@ -21,5 +21,5 @@ E[""]; // make sure import types in JSDoc are not resolved /** @type {import("should-not-be-resolved").Type} */ --var v = Promise.resolve("".concat(String())).then(function (s) { return require(s); }); -+var v = Promise.resolve(`${String()}`).then(s => require(s)); \ No newline at end of file +-var v = Promise.resolve("".concat(String())).then(function (s) { return __importStar(require(s)); }); ++var v = Promise.resolve(`${String()}`).then(s => __importStar(require(s))); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js b/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js index 4f197298a1..f727bbc481 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js +++ b/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js @@ -18,9 +18,42 @@ export const Hoc = ( //// [jsxCallElaborationCheckNoCrash1.js] "use strict"; /// +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Hoc = void 0; -const React = require("react"); +const React = __importStar(require("react")); const Hoc = (TagElement) => { const Component = () => React.createElement(TagElement, null); return Component; diff --git a/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js.diff b/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js.diff index 8e4a0e5e02..7cedd68599 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js.diff @@ -1,11 +1,11 @@ --- old.jsxCallElaborationCheckNoCrash1.js +++ new.jsxCallElaborationCheckNoCrash1.js -@@= skipped -19, +19 lines =@@ - /// +@@= skipped -52, +52 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Hoc = void 0; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const Hoc = (TagElement) => { const Component = () => React.createElement(TagElement, null); return Component; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxChildrenIndividualErrorElaborations.js b/testdata/baselines/reference/submodule/compiler/jsxChildrenIndividualErrorElaborations.js index 9d0abff513..521c173d4f 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxChildrenIndividualErrorElaborations.js +++ b/testdata/baselines/reference/submodule/compiler/jsxChildrenIndividualErrorElaborations.js @@ -80,12 +80,45 @@ var a = //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Blah = Blah; exports.Blah2 = Blah2; exports.Blah3 = Blah3; /// -const React = require("react"); +const React = __importStar(require("react")); function Blah(props) { return React.createElement(React.Fragment, null); } diff --git a/testdata/baselines/reference/submodule/compiler/jsxChildrenIndividualErrorElaborations.js.diff b/testdata/baselines/reference/submodule/compiler/jsxChildrenIndividualErrorElaborations.js.diff index cb4108a499..8e5f62f059 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxChildrenIndividualErrorElaborations.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxChildrenIndividualErrorElaborations.js.diff @@ -1,11 +1,11 @@ --- old.jsxChildrenIndividualErrorElaborations.js +++ new.jsxChildrenIndividualErrorElaborations.js -@@= skipped -84, +84 lines =@@ +@@= skipped -117, +117 lines =@@ exports.Blah2 = Blah2; exports.Blah3 = Blah3; /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function Blah(props) { return React.createElement(React.Fragment, null); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js b/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js index 0730e084b9..bbec75351d 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js +++ b/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js @@ -29,9 +29,42 @@ export class App extends React.Component<{}> { //// [jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js] "use strict"; /// +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.App = void 0; -const React = require("react"); +const React = __importStar(require("react")); function TabLayout(props) { return React.createElement("div", null); } diff --git a/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js.diff b/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js.diff index 9a6bac24b2..8eedc69562 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js.diff @@ -1,11 +1,11 @@ --- old.jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js +++ new.jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js -@@= skipped -30, +30 lines =@@ - /// +@@= skipped -63, +63 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.App = void 0; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function TabLayout(props) { return React.createElement("div", null); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js b/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js index b425a88ebd..f45854f7fc 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js +++ b/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js @@ -624,9 +624,42 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.createReactSingleSelect = createReactSingleSelect; -const React = require("react"); +const React = __importStar(require("react")); function createReactSingleSelect(WrappedComponent) { return (props) => { return (React.createElement(ReactSelectClass, __assign({}, props, { multi: false, autosize: false, value: props.value, onChange: (value) => { diff --git a/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js.diff b/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js.diff index 0cd38d4a45..2af1147c64 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js.diff @@ -1,11 +1,11 @@ --- old.jsxComplexSignatureHasApplicabilityError.js +++ new.jsxComplexSignatureHasApplicabilityError.js -@@= skipped -625, +625 lines =@@ - }; +@@= skipped -658, +658 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.createReactSingleSelect = createReactSingleSelect; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function createReactSingleSelect(WrappedComponent) { return (props) => { return (React.createElement(ReactSelectClass, __assign({}, props, { multi: false, autosize: false, value: props.value, onChange: (value) => { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxElementType.js b/testdata/baselines/reference/submodule/compiler/jsxElementType.js index f1fc1a1f37..06f1f898b7 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxElementType.js +++ b/testdata/baselines/reference/submodule/compiler/jsxElementType.js @@ -116,9 +116,42 @@ declare global { //// [jsxElementType.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); let Component; const RenderElement = ({ title }) => React.createElement("div", null, title); Component = RenderElement; diff --git a/testdata/baselines/reference/submodule/compiler/jsxElementType.js.diff b/testdata/baselines/reference/submodule/compiler/jsxElementType.js.diff index a68ad5ac7d..6e2c151d8f 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxElementType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxElementType.js.diff @@ -1,9 +1,9 @@ --- old.jsxElementType.js +++ new.jsxElementType.js -@@= skipped -115, +115 lines =@@ - - //// [jsxElementType.js] - "use strict"; +@@= skipped -148, +148 lines =@@ + return result; + }; + })(); -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) { @@ -15,8 +15,8 @@ -}; Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); let Component; const RenderElement = ({ title }) => React.createElement("div", null, title); Component = RenderElement; diff --git a/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteral.js b/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteral.js index 8db5f67eed..b4970f18ba 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteral.js +++ b/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteral.js @@ -25,9 +25,42 @@ let c = ; //// [jsxElementTypeLiteral.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); // should be fine - `ElementType` accepts `div` let a = React.createElement("div", null); // should be an error - `ElementType` does not accept `span` diff --git a/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteral.js.diff b/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteral.js.diff index 3e5c4e37d0..0f06438602 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteral.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteral.js.diff @@ -1,11 +1,11 @@ --- old.jsxElementTypeLiteral.js +++ new.jsxElementTypeLiteral.js -@@= skipped -26, +26 lines =@@ - "use strict"; +@@= skipped -59, +59 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); // should be fine - `ElementType` accepts `div` let a = React.createElement("div", null); // should be an error - `ElementType` does not accept `span` \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteralWithGeneric.js b/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteralWithGeneric.js index 4ac375ed69..ff8e83ea53 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteralWithGeneric.js +++ b/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteralWithGeneric.js @@ -26,9 +26,42 @@ let c = ; //// [jsxElementTypeLiteralWithGeneric.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); // should be fine - `ElementType` accepts `div` let a = React.createElement("div", null); // Should be an error. diff --git a/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteralWithGeneric.js.diff b/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteralWithGeneric.js.diff index e24b0f3772..11d529ddee 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteralWithGeneric.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxElementTypeLiteralWithGeneric.js.diff @@ -1,11 +1,11 @@ --- old.jsxElementTypeLiteralWithGeneric.js +++ new.jsxElementTypeLiteralWithGeneric.js -@@= skipped -27, +27 lines =@@ - "use strict"; +@@= skipped -60, +60 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); // should be fine - `ElementType` accepts `div` let a = React.createElement("div", null); // Should be an error. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxEmptyExpressionNotCountedAsChild(jsx=react).js b/testdata/baselines/reference/submodule/compiler/jsxEmptyExpressionNotCountedAsChild(jsx=react).js index 6272ca29c6..182c16e9cc 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxEmptyExpressionNotCountedAsChild(jsx=react).js +++ b/testdata/baselines/reference/submodule/compiler/jsxEmptyExpressionNotCountedAsChild(jsx=react).js @@ -21,9 +21,42 @@ const element = ( //// [jsxEmptyExpressionNotCountedAsChild.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); function Wrapper(props) { return React.createElement("div", null, props.children); } diff --git a/testdata/baselines/reference/submodule/compiler/jsxEmptyExpressionNotCountedAsChild(jsx=react).js.diff b/testdata/baselines/reference/submodule/compiler/jsxEmptyExpressionNotCountedAsChild(jsx=react).js.diff index f92e43abf4..44160b830f 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxEmptyExpressionNotCountedAsChild(jsx=react).js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxEmptyExpressionNotCountedAsChild(jsx=react).js.diff @@ -1,11 +1,11 @@ --- old.jsxEmptyExpressionNotCountedAsChild(jsx=react).js +++ new.jsxEmptyExpressionNotCountedAsChild(jsx=react).js -@@= skipped -22, +22 lines =@@ - "use strict"; +@@= skipped -55, +55 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function Wrapper(props) { return React.createElement("div", null, props.children); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js b/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js index 37a0f7edfd..57e4ea348d 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js +++ b/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js @@ -32,8 +32,41 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const React = require("react"); +const React = __importStar(require("react")); const myHoc = (ComposedComponent) => { const WrapperComponent = null; const props = null; diff --git a/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js.diff b/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js.diff index ab464f6bd5..a25369ea1c 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js.diff @@ -1,11 +1,11 @@ --- old.jsxExcessPropsAndAssignability.js +++ new.jsxExcessPropsAndAssignability.js -@@= skipped -32, +32 lines =@@ - return __assign.apply(this, arguments); - }; +@@= skipped -65, +65 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const myHoc = (ComposedComponent) => { const WrapperComponent = null; const props = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt.diff b/testdata/baselines/reference/submodule/compiler/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt.diff deleted file mode 100644 index c2e0779654..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.jsxFragmentFactoryReference(jsx=react-jsx).errors.txt -+++ new.jsxFragmentFactoryReference(jsx=react-jsx).errors.txt -@@= skipped -0, +0 lines =@@ --jsxFragmentFactoryReference.tsx(3,9): error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+jsxFragmentFactoryReference.tsx(3,9): error TS2875: This JSX tag requires the module path 'react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. - - - ==== jsxFragmentFactoryReference.tsx (1 errors) ==== -@@= skipped -5, +5 lines =@@ - content = () => ( - <> - ~~ --!!! error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2875: This JSX tag requires the module path 'react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. - ) - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt.diff b/testdata/baselines/reference/submodule/compiler/jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt.diff deleted file mode 100644 index cd429f045a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt -+++ new.jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt -@@= skipped -0, +0 lines =@@ --jsxFragmentFactoryReference.tsx(3,9): error TS2792: Cannot find module 'react/jsx-dev-runtime'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+jsxFragmentFactoryReference.tsx(3,9): error TS2875: This JSX tag requires the module path 'react/jsx-dev-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. - - - ==== jsxFragmentFactoryReference.tsx (1 errors) ==== -@@= skipped -5, +5 lines =@@ - content = () => ( - <> - ~~ --!!! error TS2792: Cannot find module 'react/jsx-dev-runtime'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2875: This JSX tag requires the module path 'react/jsx-dev-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. - ) - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxHasLiteralType.js b/testdata/baselines/reference/submodule/compiler/jsxHasLiteralType.js index 3671dbff27..bc5ece570a 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxHasLiteralType.js +++ b/testdata/baselines/reference/submodule/compiler/jsxHasLiteralType.js @@ -12,8 +12,41 @@ const m = //// [jsxHasLiteralType.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const React = require("react"); +const React = __importStar(require("react")); class MyComponent extends React.Component { } const m = React.createElement(MyComponent, { x: "a" }); diff --git a/testdata/baselines/reference/submodule/compiler/jsxHasLiteralType.js.diff b/testdata/baselines/reference/submodule/compiler/jsxHasLiteralType.js.diff index 7be5e063dd..6f12c1b34d 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxHasLiteralType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxHasLiteralType.js.diff @@ -1,11 +1,11 @@ --- old.jsxHasLiteralType.js +++ new.jsxHasLiteralType.js -@@= skipped -12, +12 lines =@@ - //// [jsxHasLiteralType.js] - "use strict"; +@@= skipped -45, +45 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); class MyComponent extends React.Component { } const m = React.createElement(MyComponent, { x: "a" }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxImportForSideEffectsNonExtantNoError.js b/testdata/baselines/reference/submodule/compiler/jsxImportForSideEffectsNonExtantNoError.js index 4b509a3ec5..73e2571bb5 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxImportForSideEffectsNonExtantNoError.js +++ b/testdata/baselines/reference/submodule/compiler/jsxImportForSideEffectsNonExtantNoError.js @@ -11,8 +11,41 @@ const tag =
; //// [jsxImportForSideEffectsNonExtantNoError.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); require("./App.css"); // doesn't actually exist const tag = React.createElement("div", null); diff --git a/testdata/baselines/reference/submodule/compiler/jsxImportForSideEffectsNonExtantNoError.js.diff b/testdata/baselines/reference/submodule/compiler/jsxImportForSideEffectsNonExtantNoError.js.diff index 0cacd6ca78..ed3bb5eda2 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxImportForSideEffectsNonExtantNoError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxImportForSideEffectsNonExtantNoError.js.diff @@ -1,10 +1,10 @@ --- old.jsxImportForSideEffectsNonExtantNoError.js +++ new.jsxImportForSideEffectsNonExtantNoError.js -@@= skipped -12, +12 lines =@@ - "use strict"; +@@= skipped -45, +45 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); require("./App.css"); // doesn't actually exist const tag = React.createElement("div", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxImportInAttribute.js b/testdata/baselines/reference/submodule/compiler/jsxImportInAttribute.js index 98c6fac2ea..94e701f39b 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxImportInAttribute.js +++ b/testdata/baselines/reference/submodule/compiler/jsxImportInAttribute.js @@ -15,8 +15,11 @@ let x = Test; // emit test_1.default //// [consumer.jsx] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); /// -const Test_1 = require("Test"); +const Test_1 = __importDefault(require("Test")); let x = Test_1.default; // emit test_1.default ; // ? diff --git a/testdata/baselines/reference/submodule/compiler/jsxImportInAttribute.js.diff b/testdata/baselines/reference/submodule/compiler/jsxImportInAttribute.js.diff index 2ff8ed15ca..977942d0f5 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxImportInAttribute.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxImportInAttribute.js.diff @@ -1,10 +1,10 @@ --- old.jsxImportInAttribute.js +++ new.jsxImportInAttribute.js -@@= skipped -16, +16 lines =@@ - "use strict"; +@@= skipped -19, +19 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); /// --var Test_1 = require("Test"); -+const Test_1 = require("Test"); +-var Test_1 = __importDefault(require("Test")); ++const Test_1 = __importDefault(require("Test")); let x = Test_1.default; // emit test_1.default ; // ? \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsCompatability.js b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsCompatability.js index 3d7a2b3284..0b02ace26d 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsCompatability.js +++ b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsCompatability.js @@ -14,9 +14,42 @@ function Test(el: T) { //// [jsxIntrinsicElementsCompatability.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); function SomeComponent(props) { // Just so the return value is RectElement, the rendered element doesnt matter return React.createElement("div", null); diff --git a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsCompatability.js.diff b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsCompatability.js.diff index f7b3bea966..c1f63a535c 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsCompatability.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsCompatability.js.diff @@ -1,11 +1,11 @@ --- old.jsxIntrinsicElementsCompatability.js +++ new.jsxIntrinsicElementsCompatability.js -@@= skipped -15, +15 lines =@@ - "use strict"; +@@= skipped -48, +48 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function SomeComponent(props) { // Just so the return value is RectElement, the rendered element doesnt matter return React.createElement("div", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsTypeArgumentErrors.js b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsTypeArgumentErrors.js index 6b3db37414..b54a60b262 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsTypeArgumentErrors.js +++ b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsTypeArgumentErrors.js @@ -33,9 +33,42 @@ const l = />; // existing type argument with no internal issues //// [jsxIntrinsicElementsTypeArgumentErrors.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); // opening + closing const a = React.createElement("div", null); // empty type args const b = React.createElement("div", null); // trailing comma type args diff --git a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsTypeArgumentErrors.js.diff b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsTypeArgumentErrors.js.diff index c67464a392..68d8307b5c 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsTypeArgumentErrors.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicElementsTypeArgumentErrors.js.diff @@ -1,11 +1,11 @@ --- old.jsxIntrinsicElementsTypeArgumentErrors.js +++ new.jsxIntrinsicElementsTypeArgumentErrors.js -@@= skipped -34, +34 lines =@@ - "use strict"; +@@= skipped -67, +67 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); // opening + closing const a = React.createElement("div", null); // empty type args const b = React.createElement("div", null); // trailing comma type args \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js index 95beb17270..3ce4928120 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js +++ b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js @@ -13,7 +13,40 @@ const tag = {"Title"}; //// [jsxIntrinsicUnions.js] "use strict"; /// +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const React = require("react"); +const React = __importStar(require("react")); const El = Math.random() ? 'h1' : 'h2'; const tag = React.createElement(El, { className: "ok", key: "key" }, "Title"); diff --git a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js.diff b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js.diff index b0b95f3946..c54225d8e3 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js.diff @@ -1,10 +1,10 @@ --- old.jsxIntrinsicUnions.js +++ new.jsxIntrinsicUnions.js -@@= skipped -13, +13 lines =@@ - "use strict"; - /// +@@= skipped -46, +46 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const El = Math.random() ? 'h1' : 'h2'; const tag = React.createElement(El, { className: "ok", key: "key" }, "Title"); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js b/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js index d6cfb6507f..899453a487 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js +++ b/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js @@ -29,8 +29,41 @@ const d = ; // Technically OK, but probably //// [jsxIssuesErrorWhenTagExpectsTooManyArguments.js] "use strict"; /// +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const React = require("react"); +const React = __importStar(require("react")); function MyComp4(props, context, bad, verybad) { return React.createElement("div", null); } diff --git a/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js.diff b/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js.diff index 6b15ca0dec..e022900882 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js.diff @@ -1,11 +1,11 @@ --- old.jsxIssuesErrorWhenTagExpectsTooManyArguments.js +++ new.jsxIssuesErrorWhenTagExpectsTooManyArguments.js -@@= skipped -29, +29 lines =@@ - "use strict"; - /// +@@= skipped -62, +62 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function MyComp4(props, context, bad, verybad) { return React.createElement("div", null); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxNamespaceReexports.js b/testdata/baselines/reference/submodule/compiler/jsxNamespaceReexports.js index 0cb4cdfcf2..cb3ef17685 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxNamespaceReexports.js +++ b/testdata/baselines/reference/submodule/compiler/jsxNamespaceReexports.js @@ -22,6 +22,39 @@ exports.createElement = createElement; function createElement(element, props, ...children) { } //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const MyLib = require("./library"); +const MyLib = __importStar(require("./library")); const content = MyLib.createElement("my-element", null); diff --git a/testdata/baselines/reference/submodule/compiler/jsxNamespaceReexports.js.diff b/testdata/baselines/reference/submodule/compiler/jsxNamespaceReexports.js.diff index 2847d547d3..805e5e0081 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxNamespaceReexports.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxNamespaceReexports.js.diff @@ -1,9 +1,9 @@ --- old.jsxNamespaceReexports.js +++ new.jsxNamespaceReexports.js -@@= skipped -22, +22 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -55, +55 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var MyLib = require("./library"); -+const MyLib = require("./library"); +-var MyLib = __importStar(require("./library")); ++const MyLib = __importStar(require("./library")); const content = MyLib.createElement("my-element", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=preserve).js b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=preserve).js index 2d81787afb..77aaffecca 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=preserve).js +++ b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=preserve).js @@ -36,11 +36,44 @@ export * as four from "./four.js"; //// [one.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime classic */ -const React = require("react"); +const React = __importStar(require("react")); const HelloWorld = () =>

Hello world

; exports.HelloWorld = HelloWorld; exports.frag = <>
; @@ -68,21 +101,87 @@ exports.frag = <>
; exports.selfClosing = ; //// [four.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime automatic */ /* @jsxRuntime classic */ -const React = require("react"); +const React = __importStar(require("react")); const HelloWorld = () =>

Hello world

; exports.HelloWorld = HelloWorld; exports.frag = <>
; exports.selfClosing = ; //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.four = exports.three = exports.two = exports.one = void 0; -exports.one = require("./one.js"); -exports.two = require("./two.js"); -exports.three = require("./three.js"); -exports.four = require("./four.js"); +exports.one = __importStar(require("./one.js")); +exports.two = __importStar(require("./two.js")); +exports.three = __importStar(require("./three.js")); +exports.four = __importStar(require("./four.js")); diff --git a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=preserve).js.diff b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=preserve).js.diff index 7e17dd584b..73a6ad4758 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=preserve).js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=preserve).js.diff @@ -1,20 +1,20 @@ --- old.jsxRuntimePragma(jsx=preserve).js +++ new.jsxRuntimePragma(jsx=preserve).js -@@= skipped -39, +39 lines =@@ +@@= skipped -72, +72 lines =@@ exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime classic */ --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const HelloWorld = () =>

Hello world

; exports.HelloWorld = HelloWorld; exports.frag = <>
; -@@= skipped -33, +33 lines =@@ +@@= skipped -66, +66 lines =@@ /// /* @jsxRuntime automatic */ /* @jsxRuntime classic */ --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const HelloWorld = () =>

Hello world

; exports.HelloWorld = HelloWorld; exports.frag = <>
; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react).js b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react).js index 4caa67cbbc..c79fbe1bb0 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react).js +++ b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react).js @@ -36,11 +36,44 @@ export * as four from "./four.js"; //// [one.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime classic */ -const React = require("react"); +const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -71,12 +104,45 @@ exports.frag = jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: jsx_runtime exports.selfClosing = jsx_runtime_1.jsx("img", { src: "./image.png" }); //// [four.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime automatic */ /* @jsxRuntime classic */ -const React = require("react"); +const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -84,9 +150,42 @@ exports.frag = React.createElement(React.Fragment, null, exports.selfClosing = React.createElement("img", { src: "./image.png" }); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.four = exports.three = exports.two = exports.one = void 0; -exports.one = require("./one.js"); -exports.two = require("./two.js"); -exports.three = require("./three.js"); -exports.four = require("./four.js"); +exports.one = __importStar(require("./one.js")); +exports.two = __importStar(require("./two.js")); +exports.three = __importStar(require("./three.js")); +exports.four = __importStar(require("./four.js")); diff --git a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react).js.diff b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react).js.diff index 69d7992f5e..7430a35ab0 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react).js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react).js.diff @@ -1,11 +1,11 @@ --- old.jsxRuntimePragma(jsx=react).js +++ new.jsxRuntimePragma(jsx=react).js -@@= skipped -39, +39 lines =@@ +@@= skipped -72, +72 lines =@@ exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime classic */ --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -42,13 +42,13 @@ +exports.selfClosing = jsx_runtime_1.jsx("img", { src: "./image.png" }); //// [four.js] "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -@@= skipped -26, +26 lines =@@ + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { +@@= skipped -59, +59 lines =@@ /// /* @jsxRuntime automatic */ /* @jsxRuntime classic */ --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsx).js b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsx).js index 4caa67cbbc..c79fbe1bb0 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsx).js +++ b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsx).js @@ -36,11 +36,44 @@ export * as four from "./four.js"; //// [one.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime classic */ -const React = require("react"); +const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -71,12 +104,45 @@ exports.frag = jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: jsx_runtime exports.selfClosing = jsx_runtime_1.jsx("img", { src: "./image.png" }); //// [four.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime automatic */ /* @jsxRuntime classic */ -const React = require("react"); +const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -84,9 +150,42 @@ exports.frag = React.createElement(React.Fragment, null, exports.selfClosing = React.createElement("img", { src: "./image.png" }); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.four = exports.three = exports.two = exports.one = void 0; -exports.one = require("./one.js"); -exports.two = require("./two.js"); -exports.three = require("./three.js"); -exports.four = require("./four.js"); +exports.one = __importStar(require("./one.js")); +exports.two = __importStar(require("./two.js")); +exports.three = __importStar(require("./three.js")); +exports.four = __importStar(require("./four.js")); diff --git a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsx).js.diff b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsx).js.diff index d267f42d42..00892e88c1 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsx).js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsx).js.diff @@ -1,11 +1,11 @@ --- old.jsxRuntimePragma(jsx=react-jsx).js +++ new.jsxRuntimePragma(jsx=react-jsx).js -@@= skipped -39, +39 lines =@@ +@@= skipped -72, +72 lines =@@ exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime classic */ --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -42,13 +42,13 @@ +exports.selfClosing = jsx_runtime_1.jsx("img", { src: "./image.png" }); //// [four.js] "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -@@= skipped -26, +26 lines =@@ + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { +@@= skipped -59, +59 lines =@@ /// /* @jsxRuntime automatic */ /* @jsxRuntime classic */ --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsxdev).js b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsxdev).js index a7b5fb849c..4484e0e4a4 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsxdev).js +++ b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsxdev).js @@ -36,11 +36,44 @@ export * as four from "./four.js"; //// [one.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime classic */ -const React = require("react"); +const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -71,12 +104,45 @@ exports.frag = jsx_dev_runtime_1.jsxDEV(jsx_dev_runtime_1.Fragment, { children: exports.selfClosing = jsx_dev_runtime_1.jsxDEV("img", { src: "./image.png" }); //// [four.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime automatic */ /* @jsxRuntime classic */ -const React = require("react"); +const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -84,9 +150,42 @@ exports.frag = React.createElement(React.Fragment, null, exports.selfClosing = React.createElement("img", { src: "./image.png" }); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.four = exports.three = exports.two = exports.one = void 0; -exports.one = require("./one.js"); -exports.two = require("./two.js"); -exports.three = require("./three.js"); -exports.four = require("./four.js"); +exports.one = __importStar(require("./one.js")); +exports.two = __importStar(require("./two.js")); +exports.three = __importStar(require("./three.js")); +exports.four = __importStar(require("./four.js")); diff --git a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsxdev).js.diff b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsxdev).js.diff index 20bf9be5a4..f62aa3a987 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsxdev).js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxRuntimePragma(jsx=react-jsxdev).js.diff @@ -1,11 +1,11 @@ --- old.jsxRuntimePragma(jsx=react-jsxdev).js +++ new.jsxRuntimePragma(jsx=react-jsxdev).js -@@= skipped -39, +39 lines =@@ +@@= skipped -72, +72 lines =@@ exports.selfClosing = exports.frag = exports.HelloWorld = void 0; /// /* @jsxRuntime classic */ --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, @@ -44,13 +44,13 @@ +exports.selfClosing = jsx_dev_runtime_1.jsxDEV("img", { src: "./image.png" }); //// [four.js] "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -@@= skipped -28, +26 lines =@@ + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { +@@= skipped -61, +59 lines =@@ /// /* @jsxRuntime automatic */ /* @jsxRuntime classic */ --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const HelloWorld = () => React.createElement("h1", null, "Hello world"); exports.HelloWorld = HelloWorld; exports.frag = React.createElement(React.Fragment, null, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxSpreadFirstUnionNoErrors.js b/testdata/baselines/reference/submodule/compiler/jsxSpreadFirstUnionNoErrors.js index 9097b52c01..50a01c92a4 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxSpreadFirstUnionNoErrors.js +++ b/testdata/baselines/reference/submodule/compiler/jsxSpreadFirstUnionNoErrors.js @@ -31,8 +31,11 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const react_1 = require("react"); +const react_1 = __importDefault(require("react")); const Info = (props) => props.status === "hidden" ? react_1.default.createElement("noscript", null) : react_1.default.createElement("div", null, props.content); diff --git a/testdata/baselines/reference/submodule/compiler/jsxSpreadFirstUnionNoErrors.js.diff b/testdata/baselines/reference/submodule/compiler/jsxSpreadFirstUnionNoErrors.js.diff index 09cde7c4ea..a80038ef32 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxSpreadFirstUnionNoErrors.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxSpreadFirstUnionNoErrors.js.diff @@ -1,11 +1,11 @@ --- old.jsxSpreadFirstUnionNoErrors.js +++ new.jsxSpreadFirstUnionNoErrors.js -@@= skipped -31, +31 lines =@@ - return __assign.apply(this, arguments); +@@= skipped -34, +34 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); --var react_1 = require("react"); -+const react_1 = require("react"); +-var react_1 = __importDefault(require("react")); ++const react_1 = __importDefault(require("react")); const Info = (props) => props.status === "hidden" ? react_1.default.createElement("noscript", null) : react_1.default.createElement("div", null, props.content); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxViaImport.2.js b/testdata/baselines/reference/submodule/compiler/jsxViaImport.2.js index 9f21de5897..a79cbaf14b 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxViaImport.2.js +++ b/testdata/baselines/reference/submodule/compiler/jsxViaImport.2.js @@ -24,9 +24,12 @@ class TestComponent extends React.Component { //// [consumer.jsx] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); /// -const BaseComponent_1 = require("BaseComponent"); +const BaseComponent_1 = __importDefault(require("BaseComponent")); class TestComponent extends React.Component { render() { return ; diff --git a/testdata/baselines/reference/submodule/compiler/jsxViaImport.2.js.diff b/testdata/baselines/reference/submodule/compiler/jsxViaImport.2.js.diff index d0bf458454..787ea6cfc7 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxViaImport.2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxViaImport.2.js.diff @@ -1,11 +1,11 @@ --- old.jsxViaImport.2.js +++ new.jsxViaImport.2.js -@@= skipped -25, +25 lines =@@ - "use strict"; +@@= skipped -28, +28 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); /// --var BaseComponent_1 = require("BaseComponent"); -+const BaseComponent_1 = require("BaseComponent"); +-var BaseComponent_1 = __importDefault(require("BaseComponent")); ++const BaseComponent_1 = __importDefault(require("BaseComponent")); class TestComponent extends React.Component { render() { return ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/keyofModuleObjectHasCorrectKeys.js b/testdata/baselines/reference/submodule/compiler/keyofModuleObjectHasCorrectKeys.js index 072752e014..45c8f428c8 100644 --- a/testdata/baselines/reference/submodule/compiler/keyofModuleObjectHasCorrectKeys.js +++ b/testdata/baselines/reference/submodule/compiler/keyofModuleObjectHasCorrectKeys.js @@ -22,6 +22,39 @@ function add(a, b) { } //// [test.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const example = require("./example"); +const example = __importStar(require("./example")); test(example, "default"); diff --git a/testdata/baselines/reference/submodule/compiler/keyofModuleObjectHasCorrectKeys.js.diff b/testdata/baselines/reference/submodule/compiler/keyofModuleObjectHasCorrectKeys.js.diff index 7119f81b44..826f822331 100644 --- a/testdata/baselines/reference/submodule/compiler/keyofModuleObjectHasCorrectKeys.js.diff +++ b/testdata/baselines/reference/submodule/compiler/keyofModuleObjectHasCorrectKeys.js.diff @@ -1,9 +1,9 @@ --- old.keyofModuleObjectHasCorrectKeys.js +++ new.keyofModuleObjectHasCorrectKeys.js -@@= skipped -22, +22 lines =@@ - //// [test.js] - "use strict"; +@@= skipped -55, +55 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var example = require("./example"); -+const example = require("./example"); +-var example = __importStar(require("./example")); ++const example = __importStar(require("./example")); test(example, "default"); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.errors.txt b/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.errors.txt deleted file mode 100644 index e44935216b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== file1.ts (0 errors) ==== - l; - -==== file2.ts (0 errors) ==== - const l = 0; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.symbols b/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.symbols deleted file mode 100644 index c2a27479c6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/letDeclarations-useBeforeDefinition2.ts] //// - -=== file1.ts === -l; ->l : Symbol(l, Decl(file2.ts, 0, 5)) - -=== file2.ts === -const l = 0; ->l : Symbol(l, Decl(file2.ts, 0, 5)) - diff --git a/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.types b/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.types deleted file mode 100644 index ce7d51dafa..0000000000 --- a/testdata/baselines/reference/submodule/compiler/letDeclarations-useBeforeDefinition2.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/letDeclarations-useBeforeDefinition2.ts] //// - -=== file1.ts === -l; ->l : 0 - -=== file2.ts === -const l = 0; ->l : 0 ->0 : 0 - diff --git a/testdata/baselines/reference/submodule/compiler/mergedDeclarations7.js b/testdata/baselines/reference/submodule/compiler/mergedDeclarations7.js index 2b63cdbb81..54a46cd204 100644 --- a/testdata/baselines/reference/submodule/compiler/mergedDeclarations7.js +++ b/testdata/baselines/reference/submodule/compiler/mergedDeclarations7.js @@ -24,6 +24,39 @@ let p: Passport = passport.use(); //// [test.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const passport = require("passport"); +const passport = __importStar(require("passport")); let p = passport.use(); diff --git a/testdata/baselines/reference/submodule/compiler/mergedDeclarations7.js.diff b/testdata/baselines/reference/submodule/compiler/mergedDeclarations7.js.diff index 92d4340508..b05e537355 100644 --- a/testdata/baselines/reference/submodule/compiler/mergedDeclarations7.js.diff +++ b/testdata/baselines/reference/submodule/compiler/mergedDeclarations7.js.diff @@ -1,9 +1,9 @@ --- old.mergedDeclarations7.js +++ new.mergedDeclarations7.js -@@= skipped -24, +24 lines =@@ - //// [test.js] - "use strict"; +@@= skipped -57, +57 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var passport = require("passport"); -+const passport = require("passport"); +-var passport = __importStar(require("passport")); ++const passport = __importStar(require("passport")); let p = passport.use(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js b/testdata/baselines/reference/submodule/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js index 4dfe5b883b..57ed1afddb 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js @@ -50,7 +50,40 @@ Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(require("./file"), exports); //// [augment.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ns = require("./reexport"); +const ns = __importStar(require("./reexport")); const g = ns.Root.A; f.x; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js.diff b/testdata/baselines/reference/submodule/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js.diff index 82f4b126e0..b06f8ba152 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js.diff @@ -1,10 +1,10 @@ --- old.moduleAugmentationDoesNamespaceEnumMergeOfReexport.js +++ new.moduleAugmentationDoesNamespaceEnumMergeOfReexport.js -@@= skipped -50, +50 lines =@@ - //// [augment.js] - "use strict"; +@@= skipped -83, +83 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ns = require("./reexport"); -+const ns = require("./reexport"); +-var ns = __importStar(require("./reexport")); ++const ns = __importStar(require("./reexport")); const g = ns.Root.A; f.x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.errors.txt new file mode 100644 index 0000000000..5baaa2e211 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.errors.txt @@ -0,0 +1,13 @@ +moduleAugmentationGlobal8.ts(2,13): error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. + + +==== moduleAugmentationGlobal8.ts (1 errors) ==== + namespace A { + declare global { + ~~~~~~ +!!! error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. + interface Array { x } + } + } + export {} + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.js b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.js new file mode 100644 index 0000000000..6b4db1bd3f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8.ts] //// + +//// [moduleAugmentationGlobal8.ts] +namespace A { + declare global { + interface Array { x } + } +} +export {} + + +//// [moduleAugmentationGlobal8.js] +export {}; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.symbols b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.symbols new file mode 100644 index 0000000000..5d142e7237 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8.ts] //// + +=== moduleAugmentationGlobal8.ts === +namespace A { +>A : Symbol(A, Decl(moduleAugmentationGlobal8.ts, 0, 0)) + + declare global { +>global : Symbol(global, Decl(moduleAugmentationGlobal8.ts, 0, 13)) + + interface Array { x } +>Array : Symbol(Array, Decl(moduleAugmentationGlobal8.ts, 1, 20)) +>T : Symbol(T, Decl(moduleAugmentationGlobal8.ts, 2, 24)) +>x : Symbol(Array.x, Decl(moduleAugmentationGlobal8.ts, 2, 28)) + } +} +export {} + diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.types b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.types new file mode 100644 index 0000000000..317fdc0790 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8.types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8.ts] //// + +=== moduleAugmentationGlobal8.ts === +namespace A { + declare global { +>global : typeof global + + interface Array { x } +>x : any + } +} +export {} + diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.errors.txt new file mode 100644 index 0000000000..603a7a8196 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.errors.txt @@ -0,0 +1,16 @@ +moduleAugmentationGlobal8_1.ts(2,5): error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. +moduleAugmentationGlobal8_1.ts(2,5): error TS2670: Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context. + + +==== moduleAugmentationGlobal8_1.ts (2 errors) ==== + namespace A { + global { + ~~~~~~ +!!! error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. + ~~~~~~ +!!! error TS2670: Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context. + interface Array { x } + } + } + export {} + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.js b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.js new file mode 100644 index 0000000000..66a7d16991 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8_1.ts] //// + +//// [moduleAugmentationGlobal8_1.ts] +namespace A { + global { + interface Array { x } + } +} +export {} + + +//// [moduleAugmentationGlobal8_1.js] +export {}; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.symbols b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.symbols new file mode 100644 index 0000000000..3d0e3d3b78 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8_1.ts] //// + +=== moduleAugmentationGlobal8_1.ts === +namespace A { +>A : Symbol(A, Decl(moduleAugmentationGlobal8_1.ts, 0, 0)) + + global { +>global : Symbol(global, Decl(moduleAugmentationGlobal8_1.ts, 0, 13)) + + interface Array { x } +>Array : Symbol(Array, Decl(moduleAugmentationGlobal8_1.ts, 1, 12)) +>T : Symbol(T, Decl(moduleAugmentationGlobal8_1.ts, 2, 24)) +>x : Symbol(Array.x, Decl(moduleAugmentationGlobal8_1.ts, 2, 28)) + } +} +export {} + diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.types b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.types new file mode 100644 index 0000000000..d9a98ae928 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationGlobal8_1.types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8_1.ts] //// + +=== moduleAugmentationGlobal8_1.ts === +namespace A { + global { +>global : typeof global + + interface Array { x } +>x : any + } +} +export {} + diff --git a/testdata/baselines/reference/submodule/compiler/moduleExports1.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleExports1.errors.txt new file mode 100644 index 0000000000..94e406a313 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleExports1.errors.txt @@ -0,0 +1,40 @@ +moduleExports1.ts(1,1): error TS1185: Merge conflict marker encountered. +moduleExports1.ts(3,1): error TS1185: Merge conflict marker encountered. +moduleExports1.ts(5,1): error TS1185: Merge conflict marker encountered. +moduleExports1.ts(7,1): error TS1185: Merge conflict marker encountered. +moduleExports1.ts(19,6): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +moduleExports1.ts(19,22): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. + + +==== moduleExports1.ts (6 errors) ==== + <<<<<<< HEAD + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export module TypeScript.Strasse.Street { + ||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export namespace TypeScript.Strasse.Street { + ======= + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export namespace TypeScript.Strasse.Street { + >>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + ~~~~~~~ +!!! error TS1185: Merge conflict marker encountered. + export class Rue { + public address:string; + } + } + + var rue = new TypeScript.Strasse.Street.Rue(); + + rue.address = "1 Main Street"; + + void 0; + + if (!module.exports) module.exports = ""; + ~~~~~~ +!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. + ~~~~~~ +!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleExports1.js b/testdata/baselines/reference/submodule/compiler/moduleExports1.js new file mode 100644 index 0000000000..555986d106 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleExports1.js @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/moduleExports1.ts] //// + +//// [moduleExports1.ts] +<<<<<<< HEAD +export module TypeScript.Strasse.Street { +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace TypeScript.Strasse.Street { +======= +export namespace TypeScript.Strasse.Street { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export class Rue { + public address:string; + } +} + +var rue = new TypeScript.Strasse.Street.Rue(); + +rue.address = "1 Main Street"; + +void 0; + +if (!module.exports) module.exports = ""; + +//// [moduleExports1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeScript = void 0; +var TypeScript; +(function (TypeScript) { + let Strasse; + (function (Strasse) { + let Street; + (function (Street) { + class Rue { + address; + } + Street.Rue = Rue; + })(Street = Strasse.Street || (Strasse.Street = {})); + })(Strasse = TypeScript.Strasse || (TypeScript.Strasse = {})); +})(TypeScript || (exports.TypeScript = TypeScript = {})); +var rue = new TypeScript.Strasse.Street.Rue(); +rue.address = "1 Main Street"; +void 0; +if (!module.exports) + module.exports = ""; diff --git a/testdata/baselines/reference/submodule/compiler/moduleExports1.js.diff b/testdata/baselines/reference/submodule/compiler/moduleExports1.js.diff new file mode 100644 index 0000000000..d4529c088c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleExports1.js.diff @@ -0,0 +1,17 @@ +--- old.moduleExports1.js ++++ new.moduleExports1.js +@@= skipped -26, +26 lines =@@ + exports.TypeScript = void 0; + var TypeScript; + (function (TypeScript) { +- var Strasse; ++ let Strasse; + (function (Strasse) { +- var Street; ++ let Street; + (function (Street) { + class Rue { ++ address; + } + Street.Rue = Rue; + })(Street = Strasse.Street || (Strasse.Street = {})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleExports1.symbols b/testdata/baselines/reference/submodule/compiler/moduleExports1.symbols new file mode 100644 index 0000000000..7a861a27b1 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleExports1.symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/moduleExports1.ts] //// + +=== moduleExports1.ts === +<<<<<<< HEAD +export module TypeScript.Strasse.Street { +>TypeScript : Symbol(TypeScript, Decl(moduleExports1.ts, 0, 0)) +>Strasse : Symbol(Strasse, Decl(moduleExports1.ts, 1, 25)) +>Street : Symbol(Street, Decl(moduleExports1.ts, 1, 33)) + +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace TypeScript.Strasse.Street { +======= +export namespace TypeScript.Strasse.Street { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export class Rue { +>Rue : Symbol(Rue, Decl(moduleExports1.ts, 1, 41)) + + public address:string; +>address : Symbol(Rue.address, Decl(moduleExports1.ts, 7, 19)) + } +} + +var rue = new TypeScript.Strasse.Street.Rue(); +>rue : Symbol(rue, Decl(moduleExports1.ts, 12, 3)) +>TypeScript.Strasse.Street.Rue : Symbol(TypeScript.Strasse.Street.Rue, Decl(moduleExports1.ts, 1, 41)) +>TypeScript.Strasse.Street : Symbol(TypeScript.Strasse.Street, Decl(moduleExports1.ts, 1, 33)) +>TypeScript.Strasse : Symbol(TypeScript.Strasse, Decl(moduleExports1.ts, 1, 25)) +>TypeScript : Symbol(TypeScript, Decl(moduleExports1.ts, 0, 0)) +>Strasse : Symbol(TypeScript.Strasse, Decl(moduleExports1.ts, 1, 25)) +>Street : Symbol(TypeScript.Strasse.Street, Decl(moduleExports1.ts, 1, 33)) +>Rue : Symbol(TypeScript.Strasse.Street.Rue, Decl(moduleExports1.ts, 1, 41)) + +rue.address = "1 Main Street"; +>rue.address : Symbol(TypeScript.Strasse.Street.Rue.address, Decl(moduleExports1.ts, 7, 19)) +>rue : Symbol(rue, Decl(moduleExports1.ts, 12, 3)) +>address : Symbol(TypeScript.Strasse.Street.Rue.address, Decl(moduleExports1.ts, 7, 19)) + +void 0; + +if (!module.exports) module.exports = ""; diff --git a/testdata/baselines/reference/submodule/compiler/moduleExports1.types b/testdata/baselines/reference/submodule/compiler/moduleExports1.types new file mode 100644 index 0000000000..61eade72b3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleExports1.types @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/moduleExports1.ts] //// + +=== moduleExports1.ts === +<<<<<<< HEAD +export module TypeScript.Strasse.Street { +>TypeScript : typeof TypeScript +>Strasse : typeof Strasse +>Street : typeof Street + +||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) +export namespace TypeScript.Strasse.Street { +======= +export namespace TypeScript.Strasse.Street { +>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669)) + export class Rue { +>Rue : Rue + + public address:string; +>address : string + } +} + +var rue = new TypeScript.Strasse.Street.Rue(); +>rue : TypeScript.Strasse.Street.Rue +>new TypeScript.Strasse.Street.Rue() : TypeScript.Strasse.Street.Rue +>TypeScript.Strasse.Street.Rue : typeof TypeScript.Strasse.Street.Rue +>TypeScript.Strasse.Street : typeof TypeScript.Strasse.Street +>TypeScript.Strasse : typeof TypeScript.Strasse +>TypeScript : typeof TypeScript +>Strasse : typeof TypeScript.Strasse +>Street : typeof TypeScript.Strasse.Street +>Rue : typeof TypeScript.Strasse.Street.Rue + +rue.address = "1 Main Street"; +>rue.address = "1 Main Street" : "1 Main Street" +>rue.address : string +>rue : TypeScript.Strasse.Street.Rue +>address : string +>"1 Main Street" : "1 Main Street" + +void 0; +>void 0 : undefined +>0 : 0 + +if (!module.exports) module.exports = ""; +>!module.exports : boolean +>module.exports : any +>module : any +>exports : any +>module.exports = "" : "" +>module.exports : any +>module : any +>exports : any +>"" : "" + diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).errors.txt b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).errors.txt deleted file mode 100644 index 5cddc66587..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -error TS5055: Cannot write file '/b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -/a.ts(1,13): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. - - -!!! error TS5055: Cannot write file '/b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /a.ts (1 errors) ==== - const foo = import("./b"); - ~~~~~~~~~~~~~ -!!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. - -==== /b.js (0 errors) ==== - export default 1; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols deleted file mode 100644 index 2231926bdd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/moduleNoneDynamicImport.ts] //// - -=== /a.ts === -const foo = import("./b"); ->foo : Symbol(foo, Decl(a.ts, 0, 5)) ->"./b" : Symbol("/b", Decl(b.js, 0, 0)) - -=== /b.js === - -export default 1; - diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).types b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).types deleted file mode 100644 index defc0029a8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/moduleNoneDynamicImport.ts] //// - -=== /a.ts === -const foo = import("./b"); ->foo : Promise ->import("./b") : Promise ->"./b" : "./b" - -=== /b.js === - -export default 1; - diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).errors.txt b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).errors.txt deleted file mode 100644 index 5cddc66587..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -error TS5055: Cannot write file '/b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -/a.ts(1,13): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. - - -!!! error TS5055: Cannot write file '/b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /a.ts (1 errors) ==== - const foo = import("./b"); - ~~~~~~~~~~~~~ -!!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. - -==== /b.js (0 errors) ==== - export default 1; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols deleted file mode 100644 index 2231926bdd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/moduleNoneDynamicImport.ts] //// - -=== /a.ts === -const foo = import("./b"); ->foo : Symbol(foo, Decl(a.ts, 0, 5)) ->"./b" : Symbol("/b", Decl(b.js, 0, 0)) - -=== /b.js === - -export default 1; - diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).types b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).types deleted file mode 100644 index defc0029a8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/moduleNoneDynamicImport.ts] //// - -=== /a.ts === -const foo = import("./b"); ->foo : Promise ->import("./b") : Promise ->"./b" : "./b" - -=== /b.js === - -export default 1; - diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneErrors.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleNoneErrors.errors.txt.diff index a7fbd3e07e..8ae217c0e2 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneErrors.errors.txt.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleNoneErrors.errors.txt.diff @@ -1,9 +1,11 @@ --- old.moduleNoneErrors.errors.txt +++ new.moduleNoneErrors.errors.txt @@= skipped -0, +0 lines =@@ +-error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -a.ts(1,14): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'. - - +-!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== a.ts (1 errors) ==== - export class Foo { - ~~~ diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.errors.txt deleted file mode 100644 index 97b0cf2349..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== first.ts (0 errors) ==== - class Foo {} -==== second.ts (0 errors) ==== - class Bar extends Foo {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.symbols b/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.symbols deleted file mode 100644 index e2819b57e4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.symbols +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/moduleNoneOutFile.ts] //// - -=== first.ts === -class Foo {} ->Foo : Symbol(Foo, Decl(first.ts, 0, 0)) - -=== second.ts === -class Bar extends Foo {} ->Bar : Symbol(Bar, Decl(second.ts, 0, 0)) ->Foo : Symbol(Foo, Decl(first.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.types b/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.types deleted file mode 100644 index 865820d1b9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneOutFile.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/moduleNoneOutFile.ts] //// - -=== first.ts === -class Foo {} ->Foo : Foo - -=== second.ts === -class Bar extends Foo {} ->Bar : Bar ->Foo : Foo - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt deleted file mode 100644 index 250f704712..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt +++ /dev/null @@ -1,55 +0,0 @@ -/project/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== /project/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "@shared/*": ["../shared/*"] - } - }, - //"files": ["src/app.ts"] - } -==== /project/src/app.ts (0 errors) ==== - import * as t from "anotherLib"; // Include the lib that recursively includes option as relative module resolution in this directory - import { makeSharedOption } from "@shared/lib/app"; // Includes option as module in shared folder but as module in node_modules folder - -==== /shared/node_modules/troublesome-lib/package.json (0 errors) ==== - { - "name": "troublesome-lib", - "version": "1.17.1" - } -==== /shared/node_modules/troublesome-lib/lib/Compactable.d.ts (0 errors) ==== - import { Option } from './Option'; - export class Compactable { - option: Option; - } -==== /shared/node_modules/troublesome-lib/lib/Option.d.ts (0 errors) ==== - export class Option { - someProperty: string; - } -==== /shared/lib/app.d.ts (0 errors) ==== - import { Option } from "troublesome-lib/lib/Option"; - export class SharedOption extends Option { } - export const makeSharedOption: () => SharedOption; -==== /project/node_modules/anotherLib/index.d.ts (0 errors) ==== - import { Compactable } from "troublesome-lib/lib/Compactable"; // Including this will resolve Option as relative through the imports of compactable -==== /project/node_modules/troublesome-lib/package.json (0 errors) ==== - { - "name": "troublesome-lib", - "version": "1.17.1" - } -==== /project/node_modules/troublesome-lib/lib/Compactable.d.ts (0 errors) ==== - import { Option } from './Option'; - export class Compactable { - option: Option; - } -==== /project/node_modules/troublesome-lib/lib/Option.d.ts (0 errors) ==== - export class Option { - someProperty: string; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.js deleted file mode 100644 index 4c03127615..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.js +++ /dev/null @@ -1,44 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.ts] //// - -//// [package.json] -{ - "name": "troublesome-lib", - "version": "1.17.1" -} -//// [Compactable.d.ts] -import { Option } from './Option'; -export class Compactable { - option: Option; -} -//// [Option.d.ts] -export class Option { - someProperty: string; -} -//// [app.d.ts] -import { Option } from "troublesome-lib/lib/Option"; -export class SharedOption extends Option { } -export const makeSharedOption: () => SharedOption; -//// [index.d.ts] -import { Compactable } from "troublesome-lib/lib/Compactable"; // Including this will resolve Option as relative through the imports of compactable -//// [package.json] -{ - "name": "troublesome-lib", - "version": "1.17.1" -} -//// [Compactable.d.ts] -import { Option } from './Option'; -export class Compactable { - option: Option; -} -//// [Option.d.ts] -export class Option { - someProperty: string; -} -//// [app.ts] -import * as t from "anotherLib"; // Include the lib that recursively includes option as relative module resolution in this directory -import { makeSharedOption } from "@shared/lib/app"; // Includes option as module in shared folder but as module in node_modules folder - - -//// [/project/src/app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.symbols deleted file mode 100644 index 691420388e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.symbols +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.ts] //// - -=== /project/src/app.ts === -import * as t from "anotherLib"; // Include the lib that recursively includes option as relative module resolution in this directory ->t : Symbol(t, Decl(app.ts, 0, 6)) - -import { makeSharedOption } from "@shared/lib/app"; // Includes option as module in shared folder but as module in node_modules folder ->makeSharedOption : Symbol(makeSharedOption, Decl(app.ts, 1, 8)) - -=== /shared/node_modules/troublesome-lib/lib/Option.d.ts === -export class Option { ->Option : Symbol(Option, Decl(Option.d.ts, 0, 0)) - - someProperty: string; ->someProperty : Symbol(Option.someProperty, Decl(Option.d.ts, 0, 21)) -} -=== /shared/lib/app.d.ts === -import { Option } from "troublesome-lib/lib/Option"; ->Option : Symbol(Option, Decl(app.d.ts, 0, 8)) - -export class SharedOption extends Option { } ->SharedOption : Symbol(SharedOption, Decl(app.d.ts, 0, 52)) ->Option : Symbol(Option, Decl(app.d.ts, 0, 8)) - -export const makeSharedOption: () => SharedOption; ->makeSharedOption : Symbol(makeSharedOption, Decl(app.d.ts, 2, 12)) ->SharedOption : Symbol(SharedOption, Decl(app.d.ts, 0, 52)) - -=== /project/node_modules/anotherLib/index.d.ts === -import { Compactable } from "troublesome-lib/lib/Compactable"; // Including this will resolve Option as relative through the imports of compactable ->Compactable : Symbol(Compactable, Decl(index.d.ts, 0, 8)) - -=== /project/node_modules/troublesome-lib/lib/Compactable.d.ts === -import { Option } from './Option'; ->Option : Symbol(Option, Decl(Compactable.d.ts, 0, 8)) - -export class Compactable { ->Compactable : Symbol(Compactable, Decl(Compactable.d.ts, 0, 34)) - - option: Option; ->option : Symbol(Compactable.option, Decl(Compactable.d.ts, 1, 26)) ->Option : Symbol(Option, Decl(Compactable.d.ts, 0, 8)) -} -=== /project/node_modules/troublesome-lib/lib/Option.d.ts === -export class Option { ->Option : Symbol(Option, Decl(Option.d.ts, 0, 0)) - - someProperty: string; ->someProperty : Symbol(Option.someProperty, Decl(Option.d.ts, 0, 21)) -} diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json deleted file mode 100644 index 86fe2a3b9f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json +++ /dev/null @@ -1,80 +0,0 @@ -======== Resolving module 'anotherLib' from '/project/src/app.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'anotherLib'. -File '/project/src/package.json' does not exist. -File '/project/package.json' does not exist. -File '/package.json' does not exist. -Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/project/src/node_modules/@types' does not exist, skipping all lookups in it. -File '/project/node_modules/anotherLib/package.json' does not exist. -File '/project/node_modules/anotherLib.ts' does not exist. -File '/project/node_modules/anotherLib.tsx' does not exist. -File '/project/node_modules/anotherLib.d.ts' does not exist. -File '/project/node_modules/anotherLib/index.ts' does not exist. -File '/project/node_modules/anotherLib/index.tsx' does not exist. -File '/project/node_modules/anotherLib/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/project/node_modules/anotherLib/index.d.ts', result '/project/node_modules/anotherLib/index.d.ts'. -======== Module name 'anotherLib' was successfully resolved to '/project/node_modules/anotherLib/index.d.ts'. ======== -======== Resolving module '@shared/lib/app' from '/project/src/app.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '@shared/lib/app'. -Module name '@shared/lib/app', matched pattern '@shared/*'. -Trying substitution '../shared/*', candidate module location: '../shared/lib/app'. -Loading module as file / folder, candidate module location '/shared/lib/app', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/shared/lib/app.ts' does not exist. -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'. ======== -======== Resolving module 'troublesome-lib/lib/Compactable' from '/project/node_modules/anotherLib/index.d.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Compactable'. -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. -Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/project/node_modules/anotherLib/node_modules' does not exist, skipping all lookups in it. -Directory '/project/node_modules/anotherLib/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/project/node_modules/troublesome-lib/package.json'. -'package.json' does not have a 'typesVersions' field. -File '/project/node_modules/troublesome-lib/lib/Compactable.ts' does not exist. -File '/project/node_modules/troublesome-lib/lib/Compactable.tsx' does not exist. -File '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -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@1.17.1'. ======== -======== Resolving module './Option' from '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/project/node_modules/troublesome-lib/lib/Option.ts' does not exist. -File '/project/node_modules/troublesome-lib/lib/Option.tsx' does not exist. -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. -'package.json' does not have a 'peerDependencies' field. -======== 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'. ======== -======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Option'. -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. -Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/shared/lib/node_modules' does not exist, skipping all lookups in it. -Directory '/shared/lib/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/shared/node_modules/troublesome-lib/package.json'. -'package.json' does not have a 'typesVersions' field. -File '/shared/node_modules/troublesome-lib/lib/Option.ts' does not exist. -File '/shared/node_modules/troublesome-lib/lib/Option.tsx' does not exist. -File '/shared/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -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@1.17.1'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.types deleted file mode 100644 index af8a45085d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.ts] //// - -=== /project/src/app.ts === -import * as t from "anotherLib"; // Include the lib that recursively includes option as relative module resolution in this directory ->t : typeof t - -import { makeSharedOption } from "@shared/lib/app"; // Includes option as module in shared folder but as module in node_modules folder ->makeSharedOption : () => import("/shared/lib/app").SharedOption - -=== /shared/node_modules/troublesome-lib/lib/Option.d.ts === -export class Option { ->Option : Option - - someProperty: string; ->someProperty : string -} -=== /shared/lib/app.d.ts === -import { Option } from "troublesome-lib/lib/Option"; ->Option : typeof Option - -export class SharedOption extends Option { } ->SharedOption : SharedOption ->Option : Option - -export const makeSharedOption: () => SharedOption; ->makeSharedOption : () => SharedOption - -=== /project/node_modules/anotherLib/index.d.ts === -import { Compactable } from "troublesome-lib/lib/Compactable"; // Including this will resolve Option as relative through the imports of compactable ->Compactable : typeof Compactable - -=== /project/node_modules/troublesome-lib/lib/Compactable.d.ts === -import { Option } from './Option'; ->Option : typeof Option - -export class Compactable { ->Compactable : Compactable - - option: Option; ->option : Option -} -=== /project/node_modules/troublesome-lib/lib/Option.d.ts === -export class Option { ->Option : Option - - someProperty: string; ->someProperty : string -} diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.errors.txt deleted file mode 100644 index cba7d17cba..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.errors.txt +++ /dev/null @@ -1,51 +0,0 @@ -/tsconfig.json(6,3): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -/tsconfig.json(11,14): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== /tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "outDir": "lib", - "target": "ES6", - "module": "ES6", - "baseUrl": "/", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "moduleResolution": "Node", - "noImplicitAny": true, - "traceResolution": true, - "paths": { - "foo/*": ["node_modules/foo/lib/*"] - ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } - -==== /relative.d.ts (0 errors) ==== - export declare function relative(): void; - - -==== /test.ts (0 errors) ==== - import { test } from "foo/test.js"; - import { test as test2 } from "foo/test"; - import { relative } from "./relative.js"; - import { relative as relative2 } from "./relative"; - - - -==== /node_modules/foo/lib/test.js (0 errors) ==== - export function test() { - console.log("test"); - } - -==== /node_modules/foo/lib/test.d.ts (0 errors) ==== - export declare function test(): void; - -==== /relative.js (0 errors) ==== - export function relative() { - console.log("test"); - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.js deleted file mode 100644 index 58d7c51bba..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.js +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithExtensions_withPaths.ts] //// - -//// [test.js] -export function test() { - console.log("test"); -} - -//// [test.d.ts] -export declare function test(): void; - -//// [relative.js] -export function relative() { - console.log("test"); -} - -//// [relative.d.ts] -export declare function relative(): void; - - -//// [test.ts] -import { test } from "foo/test.js"; -import { test as test2 } from "foo/test"; -import { relative } from "./relative.js"; -import { relative as relative2 } from "./relative"; - - - - -//// [test.js] -export {}; diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.symbols deleted file mode 100644 index 3589237093..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.symbols +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithExtensions_withPaths.ts] //// - -=== /relative.d.ts === -export declare function relative(): void; ->relative : Symbol(relative, Decl(relative.d.ts, 0, 0)) - - -=== /test.ts === -import { test } from "foo/test.js"; ->test : Symbol(test, Decl(test.ts, 0, 8)) - -import { test as test2 } from "foo/test"; ->test : Symbol(test, Decl(test.d.ts, 0, 0)) ->test2 : Symbol(test2, Decl(test.ts, 1, 8)) - -import { relative } from "./relative.js"; ->relative : Symbol(relative, Decl(test.ts, 2, 8)) - -import { relative as relative2 } from "./relative"; ->relative : Symbol(relative, Decl(relative.d.ts, 0, 0)) ->relative2 : Symbol(relative2, Decl(test.ts, 3, 8)) - - - -=== /node_modules/foo/lib/test.d.ts === -export declare function test(): void; ->test : Symbol(test, Decl(test.d.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json deleted file mode 100644 index 435b434945..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json +++ /dev/null @@ -1,44 +0,0 @@ -======== Resolving module 'foo/test.js' from '/test.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -'paths' option is specified, looking for a pattern to match module name 'foo/test.js'. -Module name 'foo/test.js', matched pattern 'foo/*'. -Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test.js'. -Loading module as file / folder, candidate module location '/node_modules/foo/lib/test.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/node_modules/foo/lib/test.js' has a '.js' extension - stripping it. -File '/node_modules/foo/lib/test.ts' does not exist. -File '/node_modules/foo/lib/test.tsx' does not exist. -File '/node_modules/foo/lib/test.d.ts' exists - use it as a name resolution result. -File '/node_modules/foo/package.json' does not exist. -Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. -======== Module name 'foo/test.js' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ======== -======== Resolving module 'foo/test' from '/test.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -'paths' option is specified, looking for a pattern to match module name 'foo/test'. -Module name 'foo/test', matched pattern 'foo/*'. -Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test'. -Loading module as file / folder, candidate module location '/node_modules/foo/lib/test', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/node_modules/foo/lib/test.ts' does not exist according to earlier cached lookups. -File '/node_modules/foo/lib/test.tsx' does not exist according to earlier cached lookups. -File '/node_modules/foo/lib/test.d.ts' exists - use it as a name resolution result. -File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. -Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. -======== Module name 'foo/test' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ======== -======== Resolving module './relative.js' from '/test.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -Loading module as file / folder, candidate module location '/relative.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/relative.js' has a '.js' extension - stripping it. -File '/relative.ts' does not exist. -File '/relative.tsx' does not exist. -File '/relative.d.ts' exists - use it as a name resolution result. -======== Module name './relative.js' was successfully resolved to '/relative.d.ts'. ======== -======== Resolving module './relative' from '/test.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -Loading module as file / folder, candidate module location '/relative', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/relative.ts' does not exist according to earlier cached lookups. -File '/relative.tsx' does not exist according to earlier cached lookups. -File '/relative.d.ts' exists - use it as a name resolution result. -======== Module name './relative' was successfully resolved to '/relative.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.types deleted file mode 100644 index d3f3b60fec..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.types +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithExtensions_withPaths.ts] //// - -=== /relative.d.ts === -export declare function relative(): void; ->relative : () => void - - -=== /test.ts === -import { test } from "foo/test.js"; ->test : () => void - -import { test as test2 } from "foo/test"; ->test : () => void ->test2 : () => void - -import { relative } from "./relative.js"; ->relative : () => void - -import { relative as relative2 } from "./relative"; ->relative : () => void ->relative2 : () => void - - - -=== /node_modules/foo/lib/test.d.ts === -export declare function test(): void; ->test : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js index 92b7e88696..2d0c7b4607 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js @@ -14,6 +14,39 @@ p.thing(); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const p = require("pkg"); +const p = __importStar(require("pkg")); p.thing(); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js.diff index 2b6445c6b9..6f55d28d96 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js.diff @@ -1,9 +1,9 @@ --- old.moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js +++ new.moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js -@@= skipped -14, +14 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -47, +47 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var p = require("pkg"); -+const p = require("pkg"); +-var p = __importStar(require("pkg")); ++const p = __importStar(require("pkg")); p.thing(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js index 92b7e88696..2d0c7b4607 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js @@ -14,6 +14,39 @@ p.thing(); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const p = require("pkg"); +const p = __importStar(require("pkg")); p.thing(); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js.diff index 08e045bf15..46069cbb45 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js.diff @@ -1,9 +1,9 @@ --- old.moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js +++ new.moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js -@@= skipped -14, +14 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -47, +47 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var p = require("pkg"); -+const p = require("pkg"); +-var p = __importStar(require("pkg")); ++const p = __importStar(require("pkg")); p.thing(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.errors.txt.diff deleted file mode 100644 index 2f2399daf6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.errors.txt.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.moduleResolutionWithSuffixes_empty.errors.txt -+++ new.moduleResolutionWithSuffixes_empty.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [] -- } -- } --==== /index.ts (0 errors) ==== -- import { base } from "./foo"; --==== /foo.ts (0 errors) ==== -- export function base() {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.js deleted file mode 100644 index fe0c228e0a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_empty.ts] //// - -//// [index.ts] -import { base } from "./foo"; -//// [foo.ts] -export function base() {} - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.symbols deleted file mode 100644 index dfa3119003..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_empty.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : Symbol(base, Decl(index.ts, 0, 8)) - -=== /foo.ts === -export function base() {} ->base : Symbol(base, Decl(foo.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json deleted file mode 100644 index 12c67c71be..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json +++ /dev/null @@ -1,6 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo.ts' exists - use it as a name resolution result. -======== Module name './foo' was successfully resolved to '/foo.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.types deleted file mode 100644 index f210f8649f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_empty.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : () => void - -=== /foo.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.errors.txt.diff deleted file mode 100644 index 2f26d2d13f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.moduleResolutionWithSuffixes_notSpecified.errors.txt -+++ new.moduleResolutionWithSuffixes_notSpecified.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- } -- } --==== /index.ts (0 errors) ==== -- import { base } from "./foo"; --==== /foo.ts (0 errors) ==== -- export function base() {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.js deleted file mode 100644 index 8e860a1ce8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_notSpecified.ts] //// - -//// [index.ts] -import { base } from "./foo"; -//// [foo.ts] -export function base() {} - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.symbols deleted file mode 100644 index 80f67af597..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_notSpecified.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : Symbol(base, Decl(index.ts, 0, 8)) - -=== /foo.ts === -export function base() {} ->base : Symbol(base, Decl(foo.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json deleted file mode 100644 index 12c67c71be..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json +++ /dev/null @@ -1,6 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo.ts' exists - use it as a name resolution result. -======== Module name './foo' was successfully resolved to '/foo.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.types deleted file mode 100644 index a4a74f5246..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_notSpecified.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : () => void - -=== /foo.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.errors.txt.diff deleted file mode 100644 index 7965155fa6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one.errors.txt -+++ new.moduleResolutionWithSuffixes_one.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [".ios"] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { ios } from "./foo"; --==== /foo.ios.ts (0 errors) ==== -- export function ios() {} --==== /foo.ts (0 errors) ==== -- export function base() {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.js deleted file mode 100644 index ee45cc67bd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.js +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one.ts] //// - -//// [index.ts] -import { ios } from "./foo"; -//// [foo.ios.ts] -export function ios() {} -//// [foo.ts] -export function base() {} - - -//// [foo.ios.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ios = ios; -function ios() { } -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.symbols deleted file mode 100644 index 72edd0513e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one.ts] //// - -=== /index.ts === -import { ios } from "./foo"; ->ios : Symbol(ios, Decl(index.ts, 0, 8)) - -=== /foo.ios.ts === -export function ios() {} ->ios : Symbol(ios, Decl(foo.ios.ts, 0, 0)) - -=== /foo.ts === -export function base() {} ->base : Symbol(base, Decl(foo.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json deleted file mode 100644 index bbef3f7e73..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json +++ /dev/null @@ -1,6 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo.ios.ts' exists - use it as a name resolution result. -======== Module name './foo' was successfully resolved to '/foo.ios.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.types deleted file mode 100644 index 090f888b93..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one.ts] //// - -=== /index.ts === -import { ios } from "./foo"; ->ios : () => void - -=== /foo.ios.ts === -export function ios() {} ->ios : () => void - -=== /foo.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.errors.txt.diff deleted file mode 100644 index b4268cd42f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.moduleResolutionWithSuffixes_oneBlank.errors.txt -+++ new.moduleResolutionWithSuffixes_oneBlank.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [""] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { base } from "./foo"; --==== /foo.ts (0 errors) ==== -- export function base() {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.js deleted file mode 100644 index e8fb849aa9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_oneBlank.ts] //// - -//// [index.ts] -import { base } from "./foo"; -//// [foo.ts] -export function base() {} - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.symbols deleted file mode 100644 index cfbb8914ee..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_oneBlank.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : Symbol(base, Decl(index.ts, 0, 8)) - -=== /foo.ts === -export function base() {} ->base : Symbol(base, Decl(foo.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json deleted file mode 100644 index 12c67c71be..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json +++ /dev/null @@ -1,6 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo.ts' exists - use it as a name resolution result. -======== Module name './foo' was successfully resolved to '/foo.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.types deleted file mode 100644 index 21c3433b19..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_oneBlank.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : () => void - -=== /foo.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.errors.txt deleted file mode 100644 index 92a8d1f8ac..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.errors.txt +++ /dev/null @@ -1,19 +0,0 @@ -/index.ts(1,21): error TS2307: Cannot find module './foo' or its corresponding type declarations. - - -==== /tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "moduleResolution": "node", - "traceResolution": true, - "moduleSuffixes": [".ios"] - } - } - -==== /index.ts (1 errors) ==== - import { ios } from "./foo"; - ~~~~~~~ -!!! error TS2307: Cannot find module './foo' or its corresponding type declarations. -==== /foo.ts (0 errors) ==== - export function base() {} - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.errors.txt.diff deleted file mode 100644 index 779eeea7dd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.moduleResolutionWithSuffixes_oneNotFound.errors.txt -+++ new.moduleResolutionWithSuffixes_oneNotFound.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - /index.ts(1,21): error TS2307: Cannot find module './foo' or its corresponding type declarations. - - --==== /tsconfig.json (1 errors) ==== -+==== /tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - "traceResolution": true, - "moduleSuffixes": [".ios"] - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.js deleted file mode 100644 index 26b76060fe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_oneNotFound.ts] //// - -//// [index.ts] -import { ios } from "./foo"; -//// [foo.ts] -export function base() {} - - -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.symbols deleted file mode 100644 index fa260c509d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_oneNotFound.ts] //// - -=== /index.ts === -import { ios } from "./foo"; ->ios : Symbol(ios, Decl(index.ts, 0, 8)) - -=== /foo.ts === -export function base() {} ->base : Symbol(base, Decl(foo.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json deleted file mode 100644 index 7c6529e6a9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json +++ /dev/null @@ -1,11 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo.ios.ts' does not exist. -File '/foo.ios.tsx' does not exist. -File '/foo.ios.d.ts' does not exist. -File '/foo.ios.js' does not exist. -File '/foo.ios.jsx' does not exist. -Directory '/foo' does not exist, skipping all lookups in it. -======== Module name './foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.types deleted file mode 100644 index 017e6098e0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_oneNotFound.ts] //// - -=== /index.ts === -import { ios } from "./foo"; ->ios : any - -=== /foo.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt.diff deleted file mode 100644 index 69ab38bf7a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt -+++ new.moduleResolutionWithSuffixes_one_dirModuleWithIndex.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [".ios"] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { ios } from "./foo"; --==== /foo/index.ios.ts (0 errors) ==== -- export function ios() {} --==== /foo/index.ts (0 errors) ==== -- export function base() {} -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.js deleted file mode 100644 index c23ebd5087..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.js +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.ts] //// - -//// [index.ts] -import { ios } from "./foo"; -//// [index.ios.ts] -export function ios() {} -//// [index.ts] -export function base() {} - -//// [index.ios.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ios = ios; -function ios() { } -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.symbols deleted file mode 100644 index 986c9710b2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.ts] //// - -=== /index.ts === -import { ios } from "./foo"; ->ios : Symbol(ios, Decl(index.ts, 0, 8)) - -=== /foo/index.ios.ts === -export function ios() {} ->ios : Symbol(ios, Decl(index.ios.ts, 0, 0)) - -=== /foo/index.ts === -export function base() {} ->base : Symbol(base, Decl(index.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json deleted file mode 100644 index f8e9732928..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json +++ /dev/null @@ -1,12 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo.ios.ts' does not exist. -File '/foo.ios.tsx' does not exist. -File '/foo.ios.d.ts' does not exist. -File '/foo.ios.js' does not exist. -File '/foo.ios.jsx' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.types deleted file mode 100644 index 18e251079c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.ts] //// - -=== /index.ts === -import { ios } from "./foo"; ->ios : () => void - -=== /foo/index.ios.ts === -export function ios() {} ->ios : () => void - -=== /foo/index.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.errors.txt.diff deleted file mode 100644 index e85122c087..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.errors.txt.diff +++ /dev/null @@ -1,39 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_externalModule.errors.txt -+++ new.moduleResolutionWithSuffixes_one_externalModule.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "allowJs": true, -- "checkJs": false, -- "outDir": "bin", -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [".ios"] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { ios } from "some-library"; -- --==== /node_modules/some-library/index.ios.js (0 errors) ==== -- "use strict"; -- exports.__esModule = true; -- function ios() {} -- exports.ios = ios; --==== /node_modules/some-library/index.ios.d.ts (0 errors) ==== -- export declare function ios(): void; --==== /node_modules/some-library/index.js (0 errors) ==== -- "use strict"; -- exports.__esModule = true; -- function base() {} -- exports.base = base; --==== /node_modules/some-library/index.d.ts (0 errors) ==== -- export declare function base(): void; -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.js deleted file mode 100644 index 941ca24626..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModule.ts] //// - -//// [index.ios.js] -"use strict"; -exports.__esModule = true; -function ios() {} -exports.ios = ios; -//// [index.ios.d.ts] -export declare function ios(): void; -//// [index.js] -"use strict"; -exports.__esModule = true; -function base() {} -exports.base = base; -//// [index.d.ts] -export declare function base(): void; - -//// [index.ts] -import { ios } from "some-library"; - - -//// [/bin/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.symbols deleted file mode 100644 index b4238f8b64..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModule.ts] //// - -=== /index.ts === -import { ios } from "some-library"; ->ios : Symbol(ios, Decl(index.ts, 0, 8)) - -=== /node_modules/some-library/index.ios.d.ts === -export declare function ios(): void; ->ios : Symbol(ios, Decl(index.ios.d.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json deleted file mode 100644 index fc40eb09fd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json +++ /dev/null @@ -1,15 +0,0 @@ -======== Resolving module 'some-library' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. -Loading module 'some-library' 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/some-library/package.json' does not exist. -File '/node_modules/some-library.ios.ts' does not exist. -File '/node_modules/some-library.ios.tsx' does not exist. -File '/node_modules/some-library.ios.d.ts' does not exist. -File '/node_modules/some-library/index.ios.ts' does not exist. -File '/node_modules/some-library/index.ios.tsx' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.types deleted file mode 100644 index 3638314748..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModule.ts] //// - -=== /index.ts === -import { ios } from "some-library"; ->ios : () => void - -=== /node_modules/some-library/index.ios.d.ts === -export declare function ios(): void; ->ios : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.errors.txt.diff deleted file mode 100644 index c3459b508b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.errors.txt.diff +++ /dev/null @@ -1,39 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_externalModulePath.errors.txt -+++ new.moduleResolutionWithSuffixes_one_externalModulePath.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "allowJs": true, -- "checkJs": false, -- "outDir": "bin", -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [".ios"] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { iosfoo } from "some-library/foo"; -- --==== /node_modules/some-library/foo.ios.js (0 errors) ==== -- "use strict"; -- exports.__esModule = true; -- function iosfoo() {} -- exports.iosfoo = iosfoo; --==== /node_modules/some-library/foo.ios.d.ts (0 errors) ==== -- export declare function iosfoo(): void; --==== /node_modules/some-library/foo.js (0 errors) ==== -- "use strict"; -- exports.__esModule = true; -- function basefoo() {} -- exports.basefoo = basefoo; --==== /node_modules/some-library/foo.d.ts (0 errors) ==== -- export declare function basefoo(): void; -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.js deleted file mode 100644 index d3f78b40b3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModulePath.ts] //// - -//// [foo.ios.js] -"use strict"; -exports.__esModule = true; -function iosfoo() {} -exports.iosfoo = iosfoo; -//// [foo.ios.d.ts] -export declare function iosfoo(): void; -//// [foo.js] -"use strict"; -exports.__esModule = true; -function basefoo() {} -exports.basefoo = basefoo; -//// [foo.d.ts] -export declare function basefoo(): void; - -//// [index.ts] -import { iosfoo } from "some-library/foo"; - - -//// [/bin/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.symbols deleted file mode 100644 index bdfe1a8196..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModulePath.ts] //// - -=== /index.ts === -import { iosfoo } from "some-library/foo"; ->iosfoo : Symbol(iosfoo, Decl(index.ts, 0, 8)) - -=== /node_modules/some-library/foo.ios.d.ts === -export declare function iosfoo(): void; ->iosfoo : Symbol(iosfoo, Decl(foo.ios.d.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json deleted file mode 100644 index ea9a1c0669..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json +++ /dev/null @@ -1,12 +0,0 @@ -======== Resolving module 'some-library/foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. -Loading module 'some-library/foo' 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/some-library/package.json' does not exist. -File '/node_modules/some-library/foo.ios.ts' does not exist. -File '/node_modules/some-library/foo.ios.tsx' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.types deleted file mode 100644 index 2bbf292c49..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModulePath.ts] //// - -=== /index.ts === -import { iosfoo } from "some-library/foo"; ->iosfoo : () => void - -=== /node_modules/some-library/foo.ios.d.ts === -export declare function iosfoo(): void; ->iosfoo : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt deleted file mode 100644 index 8772601eba..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -/tsconfig.json(9,3): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -/tsconfig.json(11,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -/tsconfig.json(12,23): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== /tsconfig.json (3 errors) ==== - { - "compilerOptions": { - "allowJs": true, - "checkJs": false, - "outDir": "bin", - "moduleResolution": "node", - "traceResolution": true, - "moduleSuffixes": [".ios"], - "baseUrl": "/", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "some-library": ["node_modules/some-library/lib"], - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - "some-library/*": ["node_modules/some-library/lib/*"] - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } - -==== /test.ts (0 errors) ==== - import { ios } from "some-library"; - import { ios as ios2 } from "some-library/index"; - import { ios as ios3 } from "some-library/index.js"; - -==== /node_modules/some-library/lib/index.ios.js (0 errors) ==== - "use strict"; - exports.__esModule = true; - function ios() {} - exports.ios = ios; -==== /node_modules/some-library/lib/index.ios.d.ts (0 errors) ==== - export declare function ios(): void; -==== /node_modules/some-library/lib/index.js (0 errors) ==== - "use strict"; - exports.__esModule = true; - function base() {} - exports.base = base; -==== /node_modules/some-library/lib/index.d.ts (0 errors) ==== - export declare function base(): void; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.js deleted file mode 100644 index afa58b8bd3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.js +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.ts] //// - -//// [index.ios.js] -"use strict"; -exports.__esModule = true; -function ios() {} -exports.ios = ios; -//// [index.ios.d.ts] -export declare function ios(): void; -//// [index.js] -"use strict"; -exports.__esModule = true; -function base() {} -exports.base = base; -//// [index.d.ts] -export declare function base(): void; - -//// [test.ts] -import { ios } from "some-library"; -import { ios as ios2 } from "some-library/index"; -import { ios as ios3 } from "some-library/index.js"; - - -//// [/bin/test.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.symbols deleted file mode 100644 index 9f119e9b43..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.symbols +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.ts] //// - -=== /test.ts === -import { ios } from "some-library"; ->ios : Symbol(ios, Decl(test.ts, 0, 8)) - -import { ios as ios2 } from "some-library/index"; ->ios : Symbol(ios, Decl(index.ios.d.ts, 0, 0)) ->ios2 : Symbol(ios2, Decl(test.ts, 1, 8)) - -import { ios as ios3 } from "some-library/index.js"; ->ios : Symbol(ios, Decl(index.ios.d.ts, 0, 0)) ->ios3 : Symbol(ios3, Decl(test.ts, 2, 8)) - -=== /node_modules/some-library/lib/index.ios.d.ts === -export declare function ios(): void; ->ios : Symbol(ios, Decl(index.ios.d.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json deleted file mode 100644 index 5163c0b99c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json +++ /dev/null @@ -1,45 +0,0 @@ -======== Resolving module 'some-library' from '/test.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'some-library'. -Module name 'some-library', matched pattern 'some-library'. -Trying substitution 'node_modules/some-library/lib', candidate module location: 'node_modules/some-library/lib'. -Loading module as file / folder, candidate module location '/node_modules/some-library/lib', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/node_modules/some-library/lib.ios.ts' does not exist. -File '/node_modules/some-library/lib.ios.tsx' does not exist. -File '/node_modules/some-library/lib.ios.d.ts' does not exist. -File '/node_modules/some-library/lib.ios.js' does not exist. -File '/node_modules/some-library/lib.ios.jsx' does not exist. -File '/node_modules/some-library/lib/package.json' does not exist. -File '/node_modules/some-library/lib/index.ios.ts' does not exist. -File '/node_modules/some-library/lib/index.ios.tsx' does not exist. -File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. -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' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== -======== Resolving module 'some-library/index' from '/test.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'some-library/index'. -Module name 'some-library/index', matched pattern 'some-library/*'. -Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index'. -Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/node_modules/some-library/lib/index.ios.ts' does not exist according to earlier cached lookups. -File '/node_modules/some-library/lib/index.ios.tsx' does not exist according to earlier cached lookups. -File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. -File '/node_modules/some-library/package.json' does not exist. -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' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== -======== Resolving module 'some-library/index.js' from '/test.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'some-library/index.js'. -Module name 'some-library/index.js', matched pattern 'some-library/*'. -Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index.js'. -Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/node_modules/some-library/lib/index.js' has a '.js' extension - stripping it. -File '/node_modules/some-library/lib/index.ios.ts' does not exist according to earlier cached lookups. -File '/node_modules/some-library/lib/index.ios.tsx' does not exist according to earlier cached lookups. -File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.types deleted file mode 100644 index f88a6fa909..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.types +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.ts] //// - -=== /test.ts === -import { ios } from "some-library"; ->ios : () => void - -import { ios as ios2 } from "some-library/index"; ->ios : () => void ->ios2 : () => void - -import { ios as ios3 } from "some-library/index.js"; ->ios : () => void ->ios3 : () => void - -=== /node_modules/some-library/lib/index.ios.d.ts === -export declare function ios(): void; ->ios : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.errors.txt.diff deleted file mode 100644 index 156fb025fd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.errors.txt.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_externalTSModule.errors.txt -+++ new.moduleResolutionWithSuffixes_one_externalTSModule.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(4,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "outDir": "bin", -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [".ios"] -- } -- } -- --==== /test.ts (0 errors) ==== -- import { ios } from "some-library"; -- --==== /node_modules/some-library/index.ios.ts (0 errors) ==== -- export function ios() {} --==== /node_modules/some-library/index.ts (0 errors) ==== -- export function base() {} -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.js deleted file mode 100644 index 2214eef0d9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.js +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalTSModule.ts] //// - -//// [index.ios.ts] -export function ios() {} -//// [index.ts] -export function base() {} -//// [test.ts] -import { ios } from "some-library"; - - -//// [/bin/test.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.symbols deleted file mode 100644 index 7c33346870..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalTSModule.ts] //// - -=== /test.ts === -import { ios } from "some-library"; ->ios : Symbol(ios, Decl(test.ts, 0, 8)) - -=== /node_modules/some-library/index.ios.ts === -export function ios() {} ->ios : Symbol(ios, Decl(index.ios.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json deleted file mode 100644 index a468e7dde0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json +++ /dev/null @@ -1,13 +0,0 @@ -======== Resolving module 'some-library' from '/test.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. -Loading module 'some-library' 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/some-library/package.json' does not exist. -File '/node_modules/some-library.ios.ts' does not exist. -File '/node_modules/some-library.ios.tsx' does not exist. -File '/node_modules/some-library.ios.d.ts' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.types deleted file mode 100644 index a61668c71e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_externalTSModule.ts] //// - -=== /test.ts === -import { ios } from "some-library"; ->ios : () => void - -=== /node_modules/some-library/index.ios.ts === -export function ios() {} ->ios : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.js deleted file mode 100644 index 654acf2465..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.js +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_jsModule.ts] //// - -//// [index.ts] -import { ios } from "./foo.js"; -//// [foo.ios.js] -"use strict"; -exports.__esModule = true; -function ios() {} -exports.ios = ios; -//// [foo.js] -"use strict"; -exports.__esModule = true; -function base() {} -exports.base = base; - - -//// [/bin/foo.ios.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -export var __esModule = true; -exports.__esModule = true; -function ios() { } -export var ios = ios; -exports.ios = ios; -//// [/bin/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [/bin/foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -export var __esModule = true; -exports.__esModule = true; -function base() { } -export var base = base; -exports.base = base; diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.js.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.js.diff deleted file mode 100644 index 3a918de7c9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_jsModule.js -+++ new.moduleResolutionWithSuffixes_one_jsModule.js -@@= skipped -15, +15 lines =@@ - - //// [/bin/foo.ios.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); -+export var __esModule = true; - exports.__esModule = true; - function ios() { } -+export var ios = ios; - exports.ios = ios; - //// [/bin/index.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - //// [/bin/foo.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); -+export var __esModule = true; - exports.__esModule = true; - function base() { } -+export var base = base; - exports.base = base; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.symbols deleted file mode 100644 index 983b83441e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_jsModule.ts] //// - -=== /index.ts === -import { ios } from "./foo.js"; ->ios : Symbol(ios, Decl(index.ts, 0, 8)) - -=== /foo.ios.js === -"use strict"; -exports.__esModule = true; ->exports.__esModule : Symbol(__esModule, Decl(foo.ios.js, 0, 13)) ->exports : Symbol("/foo.ios", Decl(foo.ios.js, 0, 0)) ->__esModule : Symbol(__esModule, Decl(foo.ios.js, 0, 13)) - -function ios() {} ->ios : Symbol(ios, Decl(foo.ios.js, 1, 26)) - -exports.ios = ios; ->exports.ios : Symbol(ios, Decl(foo.ios.js, 2, 17)) ->exports : Symbol("/foo.ios", Decl(foo.ios.js, 0, 0)) ->ios : Symbol(ios, Decl(foo.ios.js, 2, 17)) ->ios : Symbol(ios, Decl(foo.ios.js, 1, 26)) - -=== /foo.js === -"use strict"; -exports.__esModule = true; ->exports.__esModule : Symbol(__esModule, Decl(foo.js, 0, 13)) ->exports : Symbol("/foo", Decl(foo.js, 0, 0)) ->__esModule : Symbol(__esModule, Decl(foo.js, 0, 13)) - -function base() {} ->base : Symbol(base, Decl(foo.js, 1, 26)) - -exports.base = base; ->exports.base : Symbol(base, Decl(foo.js, 2, 18)) ->exports : Symbol("/foo", Decl(foo.js, 0, 0)) ->base : Symbol(base, Decl(foo.js, 2, 18)) ->base : Symbol(base, Decl(foo.js, 1, 26)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.symbols.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.symbols.diff deleted file mode 100644 index f16dc8a3fe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.symbols.diff +++ /dev/null @@ -1,37 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_jsModule.symbols -+++ new.moduleResolutionWithSuffixes_one_jsModule.symbols -@@= skipped -7, +7 lines =@@ - "use strict"; - exports.__esModule = true; - >exports.__esModule : Symbol(__esModule, Decl(foo.ios.js, 0, 13)) -->exports : Symbol(__esModule, Decl(foo.ios.js, 0, 13)) -+>exports : Symbol("/foo.ios", Decl(foo.ios.js, 0, 0)) - >__esModule : Symbol(__esModule, Decl(foo.ios.js, 0, 13)) - - function ios() {} -@@= skipped -8, +8 lines =@@ - - exports.ios = ios; - >exports.ios : Symbol(ios, Decl(foo.ios.js, 2, 17)) -->exports : Symbol(ios, Decl(foo.ios.js, 2, 17)) -+>exports : Symbol("/foo.ios", Decl(foo.ios.js, 0, 0)) - >ios : Symbol(ios, Decl(foo.ios.js, 2, 17)) - >ios : Symbol(ios, Decl(foo.ios.js, 1, 26)) - -@@= skipped -8, +8 lines =@@ - "use strict"; - exports.__esModule = true; - >exports.__esModule : Symbol(__esModule, Decl(foo.js, 0, 13)) -->exports : Symbol(__esModule, Decl(foo.js, 0, 13)) -+>exports : Symbol("/foo", Decl(foo.js, 0, 0)) - >__esModule : Symbol(__esModule, Decl(foo.js, 0, 13)) - - function base() {} -@@= skipped -8, +8 lines =@@ - - exports.base = base; - >exports.base : Symbol(base, Decl(foo.js, 2, 18)) -->exports : Symbol(base, Decl(foo.js, 2, 18)) -+>exports : Symbol("/foo", Decl(foo.js, 0, 0)) - >base : Symbol(base, Decl(foo.js, 2, 18)) - >base : Symbol(base, Decl(foo.js, 1, 26)) diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json deleted file mode 100644 index 60619ae53c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json +++ /dev/null @@ -1,10 +0,0 @@ -======== Resolving module './foo.js' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/foo.js' has a '.js' extension - stripping it. -File '/foo.ios.ts' does not exist. -File '/foo.ios.tsx' does not exist. -File '/foo.ios.d.ts' does not exist. -File '/foo.ios.js' exists - use it as a name resolution result. -======== Module name './foo.js' was successfully resolved to '/foo.ios.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.types deleted file mode 100644 index 8638ec5dbb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_jsModule.ts] //// - -=== /index.ts === -import { ios } from "./foo.js"; ->ios : () => void - -=== /foo.ios.js === -"use strict"; ->"use strict" : "use strict" - -exports.__esModule = true; ->exports.__esModule = true : true ->exports.__esModule : true ->exports : typeof import("/foo.ios") ->__esModule : true ->true : true - -function ios() {} ->ios : () => void - -exports.ios = ios; ->exports.ios = ios : () => void ->exports.ios : () => void ->exports : typeof import("/foo.ios") ->ios : () => void ->ios : () => void - -=== /foo.js === -"use strict"; ->"use strict" : "use strict" - -exports.__esModule = true; ->exports.__esModule = true : true ->exports.__esModule : true ->exports : typeof import("/foo") ->__esModule : true ->true : true - -function base() {} ->base : () => void - -exports.base = base; ->exports.base = base : () => void ->exports.base : () => void ->exports : typeof import("/foo") ->base : () => void ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.errors.txt.diff deleted file mode 100644 index cada164092..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.errors.txt.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_jsonModule.errors.txt -+++ new.moduleResolutionWithSuffixes_one_jsonModule.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "esModuleInterop": true, -- "resolveJsonModule": true, -- "outDir": "bin", -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [".ios"] -- } -- } -- --==== /index.ts (0 errors) ==== -- import foo from "./foo.json"; -- console.log(foo.ios); --==== /foo.ios.json (0 errors) ==== -- { -- "ios": "platform ios" -- } --==== /foo.json (0 errors) ==== -- { -- "base": "platform base" -- } -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.js deleted file mode 100644 index a22779d268..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.js +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_jsonModule.ts] //// - -//// [foo.ios.json] -{ - "ios": "platform ios" -} -//// [foo.json] -{ - "base": "platform base" -} - -//// [index.ts] -import foo from "./foo.json"; -console.log(foo.ios); - -//// [/bin/foo.ios.json] -{ - "ios": "platform ios" -} -//// [/bin/index.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const foo_json_1 = __importDefault(require("./foo.json")); -console.log(foo_json_1.default.ios); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.js.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.js.diff deleted file mode 100644 index a468c3ba06..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.js.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_jsonModule.js -+++ new.moduleResolutionWithSuffixes_one_jsonModule.js -@@= skipped -22, +22 lines =@@ - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - Object.defineProperty(exports, "__esModule", { value: true }); --var foo_json_1 = __importDefault(require("./foo.json")); -+const foo_json_1 = __importDefault(require("./foo.json")); - console.log(foo_json_1.default.ios); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.symbols deleted file mode 100644 index 96b841a812..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_jsonModule.ts] //// - -=== /index.ts === -import foo from "./foo.json"; ->foo : Symbol(foo, Decl(index.ts, 0, 6)) - -console.log(foo.ios); ->console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->console : Symbol(console, Decl(lib.dom.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->foo.ios : Symbol("ios", Decl(foo.ios.json, 0, 1)) ->foo : Symbol(foo, Decl(index.ts, 0, 6)) ->ios : Symbol("ios", Decl(foo.ios.json, 0, 1)) - -=== /foo.ios.json === -{ - "ios": "platform ios" ->"ios" : Symbol("ios", Decl(foo.ios.json, 0, 1)) -} diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json deleted file mode 100644 index fd456e1ae6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json +++ /dev/null @@ -1,8 +0,0 @@ -======== Resolving module './foo.json' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/foo.json' has a '.json' extension - stripping it. -File '/foo.d.json.ios.ts' does not exist. -File '/foo.ios.json' exists - use it as a name resolution result. -======== Module name './foo.json' was successfully resolved to '/foo.ios.json'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.types deleted file mode 100644 index 5e4d6ac4eb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.types +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_one_jsonModule.ts] //// - -=== /index.ts === -import foo from "./foo.json"; ->foo : { ios: string; } - -console.log(foo.ios); ->console.log(foo.ios) : void ->console.log : (...data: any[]) => void ->console : Console ->log : (...data: any[]) => void ->foo.ios : string ->foo : { ios: string; } ->ios : string - -=== /foo.ios.json === -{ ->{ "ios": "platform ios"} : { ios: string; } - - "ios": "platform ios" ->"ios" : string ->"platform ios" : "platform ios" -} diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt.diff deleted file mode 100644 index 35f61639d6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt -+++ new.moduleResolutionWithSuffixes_threeLastIsBlank1.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": ["-ios", "__native", ""] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { ios } from "./foo"; --==== /foo-ios.ts (0 errors) ==== -- export function ios() {} --==== /foo__native.ts (0 errors) ==== -- export function native() {} --==== /foo.ts (0 errors) ==== -- export function base() {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.js deleted file mode 100644 index 2edefb4458..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.js +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.ts] //// - -//// [index.ts] -import { ios } from "./foo"; -//// [foo-ios.ts] -export function ios() {} -//// [foo__native.ts] -export function native() {} -//// [foo.ts] -export function base() {} - - -//// [foo-ios.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ios = ios; -function ios() { } -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [foo__native.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.native = native; -function native() { } -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.symbols deleted file mode 100644 index 389b869f6c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.symbols +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.ts] //// - -=== /index.ts === -import { ios } from "./foo"; ->ios : Symbol(ios, Decl(index.ts, 0, 8)) - -=== /foo-ios.ts === -export function ios() {} ->ios : Symbol(ios, Decl(foo-ios.ts, 0, 0)) - -=== /foo__native.ts === -export function native() {} ->native : Symbol(native, Decl(foo__native.ts, 0, 0)) - -=== /foo.ts === -export function base() {} ->base : Symbol(base, Decl(foo.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json deleted file mode 100644 index 721a88d1e6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json +++ /dev/null @@ -1,6 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo-ios.ts' exists - use it as a name resolution result. -======== Module name './foo' was successfully resolved to '/foo-ios.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.types deleted file mode 100644 index df92c8f19d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.types +++ /dev/null @@ -1,18 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.ts] //// - -=== /index.ts === -import { ios } from "./foo"; ->ios : () => void - -=== /foo-ios.ts === -export function ios() {} ->ios : () => void - -=== /foo__native.ts === -export function native() {} ->native : () => void - -=== /foo.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt.diff deleted file mode 100644 index 978953794a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt -+++ new.moduleResolutionWithSuffixes_threeLastIsBlank2.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": ["-ios", "__native", ""] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { native } from "./foo"; --==== /foo__native.ts (0 errors) ==== -- export function native() {} --==== /foo.ts (0 errors) ==== -- export function base() {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.js deleted file mode 100644 index 4e6791c103..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.js +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.ts] //// - -//// [index.ts] -import { native } from "./foo"; -//// [foo__native.ts] -export function native() {} -//// [foo.ts] -export function base() {} - - -//// [foo__native.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.native = native; -function native() { } -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.symbols deleted file mode 100644 index 54dd21f5e3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.ts] //// - -=== /index.ts === -import { native } from "./foo"; ->native : Symbol(native, Decl(index.ts, 0, 8)) - -=== /foo__native.ts === -export function native() {} ->native : Symbol(native, Decl(foo__native.ts, 0, 0)) - -=== /foo.ts === -export function base() {} ->base : Symbol(base, Decl(foo.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json deleted file mode 100644 index f6e7ec2000..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json +++ /dev/null @@ -1,7 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.types deleted file mode 100644 index e9192913bb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.ts] //// - -=== /index.ts === -import { native } from "./foo"; ->native : () => void - -=== /foo__native.ts === -export function native() {} ->native : () => void - -=== /foo.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt.diff deleted file mode 100644 index 1672bb7aa0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt -+++ new.moduleResolutionWithSuffixes_threeLastIsBlank3.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": ["-ios", "__native", ""] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { base } from "./foo"; --==== /foo.ts (0 errors) ==== -- export function base() {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.js deleted file mode 100644 index 7418afd333..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.ts] //// - -//// [index.ts] -import { base } from "./foo"; -//// [foo.ts] -export function base() {} - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base = base; -function base() { } -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.symbols deleted file mode 100644 index 276000be9f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : Symbol(base, Decl(index.ts, 0, 8)) - -=== /foo.ts === -export function base() {} ->base : Symbol(base, Decl(foo.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json deleted file mode 100644 index 82b0a57168..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json +++ /dev/null @@ -1,8 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo-ios.ts' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.types deleted file mode 100644 index 5a35c481f5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : () => void - -=== /foo.ts === -export function base() {} ->base : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt deleted file mode 100644 index 0a329aac3f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -/index.ts(1,22): error TS2307: Cannot find module './foo' or its corresponding type declarations. - - -==== /tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "moduleResolution": "node", - "traceResolution": true, - "moduleSuffixes": ["-ios", "__native", ""] - } - } - -==== /index.ts (1 errors) ==== - import { base } from "./foo"; - ~~~~~~~ -!!! error TS2307: Cannot find module './foo' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt.diff deleted file mode 100644 index 79da8b925c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt -+++ new.moduleResolutionWithSuffixes_threeLastIsBlank4.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - /index.ts(1,22): error TS2307: Cannot find module './foo' or its corresponding type declarations. - - --==== /tsconfig.json (1 errors) ==== -+==== /tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - "traceResolution": true, - "moduleSuffixes": ["-ios", "__native", ""] - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.js deleted file mode 100644 index 40de3b226d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.js +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.ts] //// - -//// [index.ts] -import { base } from "./foo"; - - -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.symbols deleted file mode 100644 index 5b76b5b678..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : Symbol(base, Decl(index.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json deleted file mode 100644 index 3239f2986b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json +++ /dev/null @@ -1,21 +0,0 @@ -======== Resolving module './foo' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo-ios.ts' does not exist. -File '/foo__native.ts' does not exist. -File '/foo.ts' does not exist. -File '/foo-ios.tsx' does not exist. -File '/foo__native.tsx' does not exist. -File '/foo.tsx' does not exist. -File '/foo-ios.d.ts' does not exist. -File '/foo__native.d.ts' does not exist. -File '/foo.d.ts' does not exist. -File '/foo-ios.js' does not exist. -File '/foo__native.js' does not exist. -File '/foo.js' does not exist. -File '/foo-ios.jsx' does not exist. -File '/foo__native.jsx' does not exist. -File '/foo.jsx' does not exist. -Directory '/foo' does not exist, skipping all lookups in it. -======== Module name './foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.types b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.types deleted file mode 100644 index 270ef7ce1a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.types +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.ts] //// - -=== /index.ts === -import { base } from "./foo"; ->base : any - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.errors.txt b/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.errors.txt deleted file mode 100644 index 1db2d6ee03..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -/dir1/dir2/dir3/index.ts(1,15): error TS2307: Cannot find module 'a' or its corresponding type declarations. - - -==== /dir1/dir2/dir3/a.js (0 errors) ==== - export default "dir1/dir2/dir3/a.js"; - -==== /dir1/dir2/a.ts (0 errors) ==== - export default "dir1/dir2/a.ts"; - -==== /dir1/dir2/dir3/index.ts (1 errors) ==== - import a from "a"; - ~~~ -!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.symbols b/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.symbols deleted file mode 100644 index 49d831f4ec..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/moduleResolution_classicPrefersTs.ts] //// - -=== /dir1/dir2/dir3/a.js === - -export default "dir1/dir2/dir3/a.js"; - -=== /dir1/dir2/a.ts === - -export default "dir1/dir2/a.ts"; - -=== /dir1/dir2/dir3/index.ts === -import a from "a"; ->a : Symbol(a, Decl(index.ts, 0, 6)) - diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.types b/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.types deleted file mode 100644 index 3b33adc544..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_classicPrefersTs.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/moduleResolution_classicPrefersTs.ts] //// - -=== /dir1/dir2/dir3/a.js === - -export default "dir1/dir2/dir3/a.js"; - -=== /dir1/dir2/a.ts === - -export default "dir1/dir2/a.ts"; - -=== /dir1/dir2/dir3/index.ts === -import a from "a"; ->a : any - diff --git a/testdata/baselines/reference/submodule/compiler/narrowedImports.js b/testdata/baselines/reference/submodule/compiler/narrowedImports.js index 32fd2f9202..c92a35a11b 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowedImports.js +++ b/testdata/baselines/reference/submodule/compiler/narrowedImports.js @@ -26,9 +26,42 @@ if (b1) x = b1; //// [x.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); -const b0 = require("./b"); +const a_1 = __importStar(require("./a")); +const b0 = __importStar(require("./b")); const b1 = require("./b"); let x; if (a_1.default) diff --git a/testdata/baselines/reference/submodule/compiler/narrowedImports.js.diff b/testdata/baselines/reference/submodule/compiler/narrowedImports.js.diff index 3f7754832c..445cfaaaad 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowedImports.js.diff +++ b/testdata/baselines/reference/submodule/compiler/narrowedImports.js.diff @@ -1,14 +1,14 @@ --- old.narrowedImports.js +++ new.narrowedImports.js -@@= skipped -26, +26 lines =@@ - //// [x.js] - "use strict"; +@@= skipped -59, +59 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); --var b0 = require("./b"); +-var a_1 = __importStar(require("./a")); +-var b0 = __importStar(require("./b")); -var b1 = require("./b"); -+const a_1 = require("./a"); -+const b0 = require("./b"); ++const a_1 = __importStar(require("./a")); ++const b0 = __importStar(require("./b")); +const b1 = require("./b"); let x; if (a_1.default) diff --git a/testdata/baselines/reference/submodule/compiler/newAbstractInstance2.js b/testdata/baselines/reference/submodule/compiler/newAbstractInstance2.js index a875045757..68b3191ea4 100644 --- a/testdata/baselines/reference/submodule/compiler/newAbstractInstance2.js +++ b/testdata/baselines/reference/submodule/compiler/newAbstractInstance2.js @@ -16,6 +16,9 @@ class default_1 { exports.default = default_1; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); new a_1.default(); diff --git a/testdata/baselines/reference/submodule/compiler/newAbstractInstance2.js.diff b/testdata/baselines/reference/submodule/compiler/newAbstractInstance2.js.diff index 5aab015da1..3b6a5222a9 100644 --- a/testdata/baselines/reference/submodule/compiler/newAbstractInstance2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/newAbstractInstance2.js.diff @@ -1,9 +1,9 @@ --- old.newAbstractInstance2.js +++ new.newAbstractInstance2.js -@@= skipped -16, +16 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -19, +19 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); new a_1.default(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/noCrashOnImportShadowing.js b/testdata/baselines/reference/submodule/compiler/noCrashOnImportShadowing.js index 52185d40e2..2ef0e9f65b 100644 --- a/testdata/baselines/reference/submodule/compiler/noCrashOnImportShadowing.js +++ b/testdata/baselines/reference/submodule/compiler/noCrashOnImportShadowing.js @@ -33,18 +33,84 @@ exports.zzz = void 0; exports.zzz = 123; //// [a.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.B = void 0; -const B = require("./b"); +const B = __importStar(require("./b")); exports.B = B; const x = { x: "" }; B.zzz; //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const a_1 = require("./a"); const x = { x: "" }; a_1.B.zzz; -const OriginalB = require("./b"); +const OriginalB = __importStar(require("./b")); OriginalB.zzz; const y = x; diff --git a/testdata/baselines/reference/submodule/compiler/noCrashOnImportShadowing.js.diff b/testdata/baselines/reference/submodule/compiler/noCrashOnImportShadowing.js.diff index a6b80d575c..6e713867a7 100644 --- a/testdata/baselines/reference/submodule/compiler/noCrashOnImportShadowing.js.diff +++ b/testdata/baselines/reference/submodule/compiler/noCrashOnImportShadowing.js.diff @@ -1,22 +1,23 @@ --- old.noCrashOnImportShadowing.js +++ new.noCrashOnImportShadowing.js -@@= skipped -34, +34 lines =@@ - "use strict"; +@@= skipped -67, +67 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.B = void 0; --var B = require("./b"); -+const B = require("./b"); +-var B = __importStar(require("./b")); ++const B = __importStar(require("./b")); exports.B = B; const x = { x: "" }; B.zzz; - //// [index.js] - "use strict"; +@@= skipped -40, +40 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); -var a_1 = require("./a"); +const a_1 = require("./a"); const x = { x: "" }; a_1.B.zzz; --var OriginalB = require("./b"); -+const OriginalB = require("./b"); +-var OriginalB = __importStar(require("./b")); ++const OriginalB = __importStar(require("./b")); OriginalB.zzz; const y = x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt.diff new file mode 100644 index 0000000000..0229a14ee6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt.diff @@ -0,0 +1,11 @@ +--- old.noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt ++++ new.noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt +@@= skipped -0, +0 lines =@@ +-error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +- +- +-!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +-==== 0.d.ts (0 errors) ==== +- export = a; +- declare var a: number; ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt.diff index 0bd989fdba..23c18fa4be 100644 --- a/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt.diff +++ b/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt.diff @@ -1,9 +1,11 @@ --- old.noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt +++ new.noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt @@= skipped -0, +0 lines =@@ +-error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'. - - +-!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== 1.ts (1 errors) ==== - export var j = "hello"; // error - ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt.diff index 5c1fdb1f38..ec48d57425 100644 --- a/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt.diff +++ b/testdata/baselines/reference/submodule/compiler/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt.diff @@ -1,9 +1,11 @@ --- old.noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt +++ new.noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt @@= skipped -0, +0 lines =@@ +-error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'. - - +-!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== 0.d.ts (0 errors) ==== - export = a; - declare var a: number; diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.js b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.js index 33efcbc498..36fc6525f6 100644 --- a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.js +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.js @@ -26,6 +26,39 @@ console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) //// [main.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ph = require("node:ph"); +const ph = __importStar(require("node:ph")); console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE); diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.js.diff b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.js.diff index a585c3e46c..f3b5ad4a12 100644 --- a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.js.diff +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.js.diff @@ -1,9 +1,9 @@ --- old.nodeColonModuleResolution.js +++ new.nodeColonModuleResolution.js -@@= skipped -26, +26 lines =@@ - //// [main.js] - "use strict"; +@@= skipped -59, +59 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ph = require("node:ph"); -+const ph = require("node:ph"); +-var ph = __importStar(require("node:ph")); ++const ph = __importStar(require("node:ph")); console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.js b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.js index 84f8e17559..83baae6aaf 100644 --- a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.js +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.js @@ -21,6 +21,39 @@ console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) //// [main.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ph = require("fake:thing"); +const ph = __importStar(require("fake:thing")); console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE); diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.js.diff b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.js.diff index dc2ee6585d..de0f484079 100644 --- a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.js.diff @@ -1,9 +1,9 @@ --- old.nodeColonModuleResolution2.js +++ new.nodeColonModuleResolution2.js -@@= skipped -21, +21 lines =@@ - //// [main.js] - "use strict"; +@@= skipped -54, +54 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ph = require("fake:thing"); -+const ph = require("fake:thing"); +-var ph = __importStar(require("fake:thing")); ++const ph = __importStar(require("fake:thing")); console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.errors.txt b/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.errors.txt deleted file mode 100644 index 1b6c912420..0000000000 --- a/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.errors.txt +++ /dev/null @@ -1,7 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== optionsOutAndNoModuleGen.ts (0 errors) ==== - export var x = 10; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.symbols b/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.symbols deleted file mode 100644 index 1bd751e79e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/optionsOutAndNoModuleGen.ts] //// - -=== optionsOutAndNoModuleGen.ts === -export var x = 10; ->x : Symbol(x, Decl(optionsOutAndNoModuleGen.ts, 0, 10)) - diff --git a/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.types b/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.types deleted file mode 100644 index 2bfbe2dac2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/optionsOutAndNoModuleGen.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/optionsOutAndNoModuleGen.ts] //// - -=== optionsOutAndNoModuleGen.ts === -export var x = 10; ->x : number ->10 : 10 - diff --git a/testdata/baselines/reference/submodule/compiler/out-flag2.errors.txt b/testdata/baselines/reference/submodule/compiler/out-flag2.errors.txt deleted file mode 100644 index 56912a9b11..0000000000 --- a/testdata/baselines/reference/submodule/compiler/out-flag2.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class A { } - -==== b.ts (0 errors) ==== - class B { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/out-flag2.symbols b/testdata/baselines/reference/submodule/compiler/out-flag2.symbols deleted file mode 100644 index 705820e3b4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/out-flag2.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/out-flag2.ts] //// - -=== a.ts === -class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -class B { } ->B : Symbol(B, Decl(b.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/out-flag2.types b/testdata/baselines/reference/submodule/compiler/out-flag2.types deleted file mode 100644 index 9377348a5a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/out-flag2.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/out-flag2.ts] //// - -=== a.ts === -class A { } ->A : A - -=== b.ts === -class B { } ->B : B - diff --git a/testdata/baselines/reference/submodule/compiler/out-flag3.errors.txt b/testdata/baselines/reference/submodule/compiler/out-flag3.errors.txt deleted file mode 100644 index 56912a9b11..0000000000 --- a/testdata/baselines/reference/submodule/compiler/out-flag3.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - class A { } - -==== b.ts (0 errors) ==== - class B { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/out-flag3.symbols b/testdata/baselines/reference/submodule/compiler/out-flag3.symbols deleted file mode 100644 index 4a70037a37..0000000000 --- a/testdata/baselines/reference/submodule/compiler/out-flag3.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/out-flag3.ts] //// - -=== a.ts === -class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -class B { } ->B : Symbol(B, Decl(b.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/out-flag3.types b/testdata/baselines/reference/submodule/compiler/out-flag3.types deleted file mode 100644 index 83cc4a4e88..0000000000 --- a/testdata/baselines/reference/submodule/compiler/out-flag3.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/out-flag3.ts] //// - -=== a.ts === -class A { } ->A : A - -=== b.ts === -class B { } ->B : B - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.errors.txt b/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.errors.txt deleted file mode 100644 index 59d09f8ab4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.errors.txt +++ /dev/null @@ -1,11 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== ref/a.ts (0 errors) ==== - export class A { } - -==== b.ts (0 errors) ==== - import {A} from "./ref/a"; - export class B extends A { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.symbols b/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.symbols deleted file mode 100644 index a79dd18231..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatCommonjs.ts] //// - -=== ref/a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -import {A} from "./ref/a"; ->A : Symbol(A, Decl(b.ts, 0, 8)) - -export class B extends A { } ->B : Symbol(B, Decl(b.ts, 0, 26)) ->A : Symbol(A, Decl(b.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.types b/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.types deleted file mode 100644 index 449c2327c0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjs.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatCommonjs.ts] //// - -=== ref/a.ts === -export class A { } ->A : A - -=== b.ts === -import {A} from "./ref/a"; ->A : typeof A - -export class B extends A { } ->B : B ->A : A - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.errors.txt b/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.errors.txt deleted file mode 100644 index 59d09f8ab4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.errors.txt +++ /dev/null @@ -1,11 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== ref/a.ts (0 errors) ==== - export class A { } - -==== b.ts (0 errors) ==== - import {A} from "./ref/a"; - export class B extends A { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.symbols b/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.symbols deleted file mode 100644 index e352a0e06a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts] //// - -=== ref/a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -import {A} from "./ref/a"; ->A : Symbol(A, Decl(b.ts, 0, 8)) - -export class B extends A { } ->B : Symbol(B, Decl(b.ts, 0, 26)) ->A : Symbol(A, Decl(b.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.types b/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.types deleted file mode 100644 index 3fda6678c1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatCommonjsDeclarationOnly.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts] //// - -=== ref/a.ts === -export class A { } ->A : A - -=== b.ts === -import {A} from "./ref/a"; ->A : typeof A - -export class B extends A { } ->B : B ->A : A - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.errors.txt b/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.errors.txt deleted file mode 100644 index 080343cb99..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== ref/a.ts (0 errors) ==== - export class A { } - -==== b.ts (0 errors) ==== - import {A} from "./ref/a"; - export class B extends A { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.symbols b/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.symbols deleted file mode 100644 index af62807ad9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatES6.ts] //// - -=== ref/a.ts === -export class A { } ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -import {A} from "./ref/a"; ->A : Symbol(A, Decl(b.ts, 0, 8)) - -export class B extends A { } ->B : Symbol(B, Decl(b.ts, 0, 26)) ->A : Symbol(A, Decl(b.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.types b/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.types deleted file mode 100644 index d3eb03be1d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatES6.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatES6.ts] //// - -=== ref/a.ts === -export class A { } ->A : A - -=== b.ts === -import {A} from "./ref/a"; ->A : typeof A - -export class B extends A { } ->B : B ->A : A - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.errors.txt b/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.errors.txt deleted file mode 100644 index cff51678ba..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - export class A { } // module - -==== b.ts (0 errors) ==== - var x = 0; // global \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.symbols b/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.symbols deleted file mode 100644 index 857c186146..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts] //// - -=== a.ts === -export class A { } // module ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -var x = 0; // global ->x : Symbol(x, Decl(b.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.types b/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.types deleted file mode 100644 index fa04fc4a1b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKind.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts] //// - -=== a.ts === -export class A { } // module ->A : A - -=== b.ts === -var x = 0; // global ->x : number ->0 : 0 - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt b/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt deleted file mode 100644 index 6993b8737b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - export class A { } // module - -==== b.ts (0 errors) ==== - var x = 0; // global - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.symbols b/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.symbols deleted file mode 100644 index 8e8ce431bc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.ts] //// - -=== a.ts === -export class A { } // module ->A : Symbol(A, Decl(a.ts, 0, 0)) - -=== b.ts === -var x = 0; // global ->x : Symbol(x, Decl(b.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.types b/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.types deleted file mode 100644 index 8530681d6a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.ts] //// - -=== a.ts === -export class A { } // module ->A : A - -=== b.ts === -var x = 0; // global ->x : number ->0 : 0 - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.errors.txt deleted file mode 100644 index bfa464e63f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.errors.txt +++ /dev/null @@ -1,28 +0,0 @@ -root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./src/*"]}' instead. -root/tsconfig.json(5,13): error TS5061: Pattern '*1*' can have at most one '*' character. -root/tsconfig.json(5,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character. -root/tsconfig.json(5,22): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== root/tsconfig.json (4 errors) ==== - { - "compilerOptions": { - "baseUrl": "./src", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./src/*"]}' instead. - "paths": { - "*1*": [ "*2*" ] - ~~~~~ -!!! error TS5061: Pattern '*1*' can have at most one '*' character. - ~~~~~ -!!! error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character. - ~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } - -==== root/src/folder1/file1.ts (0 errors) ==== - export var x = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.js deleted file mode 100644 index 977ce98f6a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.js +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution2_node.ts] //// - -//// [file1.ts] -export var x = 1; - -//// [file1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 1; diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.symbols deleted file mode 100644 index 088a7afbd6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution2_node.ts] //// - -=== root/src/folder1/file1.ts === -export var x = 1; ->x : Symbol(x, Decl(file1.ts, 0, 10)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.types deleted file mode 100644 index 86e6008d9e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution2_node.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution2_node.ts] //// - -=== root/src/folder1/file1.ts === -export var x = 1; ->x : number ->1 : 1 - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.errors.txt deleted file mode 100644 index e0aae7ab26..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -c:/root/folder1/file1.ts(1,17): error TS2307: Cannot find module 'folder2/file2' or its corresponding type declarations. - - -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -==== c:/root/folder1/file1.ts (1 errors) ==== - import {x} from "folder2/file2" - ~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'folder2/file2' or its corresponding type declarations. - declare function use(a: any): void; - use(x.toExponential()); - -==== c:/root/folder2/file2.ts (0 errors) ==== - import {x as a} from "./file3" // found with baseurl - import {y as b} from "file4" // found with fallback - export var x = a + b; - -==== c:/root/folder2/file3.ts (0 errors) ==== - export var x = 1; - -==== c:/node_modules/file4/index.d.ts (0 errors) ==== - export var y: number; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.js deleted file mode 100644 index f35b765898..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.js +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution3_node.ts] //// - -//// [file1.ts] -import {x} from "folder2/file2" -declare function use(a: any): void; -use(x.toExponential()); - -//// [file2.ts] -import {x as a} from "./file3" // found with baseurl -import {y as b} from "file4" // found with fallback -export var x = a + b; - -//// [file3.ts] -export var x = 1; - -//// [index.d.ts] -export var y: number; - -//// [file1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const file2_1 = require("folder2/file2"); -use(file2_1.x.toExponential()); -//// [file3.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 1; -//// [file2.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -const file3_1 = require("./file3"); // found with baseurl -const file4_1 = require("file4"); // found with fallback -exports.x = file3_1.x + file4_1.y; diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.js.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.js.diff deleted file mode 100644 index 84ef9de58b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.js.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.pathMappingBasedModuleResolution3_node.js -+++ new.pathMappingBasedModuleResolution3_node.js -@@= skipped -15, +15 lines =@@ - //// [index.d.ts] - export var y: number; - -+//// [file1.js] -+"use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); -+const file2_1 = require("folder2/file2"); -+use(file2_1.x.toExponential()); - //// [file3.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -@@= skipped -9, +14 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; --var file3_1 = require("./file3"); // found with baseurl --var file4_1 = require("file4"); // found with fallback -+const file3_1 = require("./file3"); // found with baseurl -+const file4_1 = require("file4"); // found with fallback - exports.x = file3_1.x + file4_1.y; --//// [file1.js] --"use strict"; --Object.defineProperty(exports, "__esModule", { value: true }); --var file2_1 = require("folder2/file2"); --use(file2_1.x.toExponential()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.symbols deleted file mode 100644 index 76c1e12b4e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.symbols +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution3_node.ts] //// - -=== c:/root/folder1/file1.ts === -import {x} from "folder2/file2" ->x : Symbol(x, Decl(file1.ts, 0, 8)) - -declare function use(a: any): void; ->use : Symbol(use, Decl(file1.ts, 0, 31)) ->a : Symbol(a, Decl(file1.ts, 1, 21)) - -use(x.toExponential()); ->use : Symbol(use, Decl(file1.ts, 0, 31)) ->x : Symbol(x, Decl(file1.ts, 0, 8)) - -=== c:/root/folder2/file2.ts === -import {x as a} from "./file3" // found with baseurl ->x : Symbol(a, Decl(file3.ts, 0, 10)) ->a : Symbol(a, Decl(file2.ts, 0, 8)) - -import {y as b} from "file4" // found with fallback ->y : Symbol(b, Decl(index.d.ts, 0, 10)) ->b : Symbol(b, Decl(file2.ts, 1, 8)) - -export var x = a + b; ->x : Symbol(x, Decl(file2.ts, 2, 10)) ->a : Symbol(a, Decl(file2.ts, 0, 8)) ->b : Symbol(b, Decl(file2.ts, 1, 8)) - -=== c:/root/folder2/file3.ts === -export var x = 1; ->x : Symbol(x, Decl(file3.ts, 0, 10)) - -=== c:/node_modules/file4/index.d.ts === -export var y: number; ->y : Symbol(y, Decl(index.d.ts, 0, 10)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.symbols.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.symbols.diff deleted file mode 100644 index 95a0bf63bc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.symbols.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.pathMappingBasedModuleResolution3_node.symbols -+++ new.pathMappingBasedModuleResolution3_node.symbols -@@= skipped -9, +9 lines =@@ - - use(x.toExponential()); - >use : Symbol(use, Decl(file1.ts, 0, 31)) -->x.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) - >x : Symbol(x, Decl(file1.ts, 0, 8)) -->toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) - - === c:/root/folder2/file2.ts === - import {x as a} from "./file3" // found with baseurl \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json deleted file mode 100644 index b57204c2f5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json +++ /dev/null @@ -1,44 +0,0 @@ -======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File 'c:/root/folder1/package.json' does not exist. -File 'c:/root/package.json' does not exist. -File 'c:/package.json' does not exist. -Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory 'c:/root/folder1/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 'folder2/file2' was not resolved. ======== -======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. -======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ======== -======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -File 'c:/node_modules/file4/package.json' does not exist. -File 'c:/node_modules/file4.ts' does not exist. -File 'c:/node_modules/file4.tsx' does not exist. -File 'c:/node_modules/file4.d.ts' does not exist. -File 'c:/node_modules/file4/index.ts' does not exist. -File 'c:/node_modules/file4/index.tsx' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.types deleted file mode 100644 index d887ab6acc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution3_node.ts] //// - -=== c:/root/folder1/file1.ts === -import {x} from "folder2/file2" ->x : any - -declare function use(a: any): void; ->use : (a: any) => void ->a : any - -use(x.toExponential()); ->use(x.toExponential()) : void ->use : (a: any) => void ->x.toExponential() : any ->x.toExponential : any ->x : any ->toExponential : any - -=== c:/root/folder2/file2.ts === -import {x as a} from "./file3" // found with baseurl ->x : number ->a : number - -import {y as b} from "file4" // found with fallback ->y : number ->b : number - -export var x = a + b; ->x : number ->a + b : number ->a : number ->b : number - -=== c:/root/folder2/file3.ts === -export var x = 1; ->x : number ->1 : 1 - -=== c:/node_modules/file4/index.d.ts === -export var y: number; ->y : number - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.types.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.types.diff deleted file mode 100644 index 8807bc71ee..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.types.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.pathMappingBasedModuleResolution3_node.types -+++ new.pathMappingBasedModuleResolution3_node.types -@@= skipped -1, +1 lines =@@ - - === c:/root/folder1/file1.ts === - import {x} from "folder2/file2" -->x : number -+>x : any - - declare function use(a: any): void; - >use : (a: any) => void -@@= skipped -9, +9 lines =@@ - use(x.toExponential()); - >use(x.toExponential()) : void - >use : (a: any) => void -->x.toExponential() : string -->x.toExponential : (fractionDigits?: number) => string -->x : number -->toExponential : (fractionDigits?: number) => string -+>x.toExponential() : any -+>x.toExponential : any -+>x : any -+>toExponential : any - - === c:/root/folder2/file2.ts === - import {x as a} from "./file3" // found with baseurl \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.errors.txt deleted file mode 100644 index 8278d6e82b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -c:/root/folder1/file1.ts(1,17): error TS2307: Cannot find module 'folder2/file2' or its corresponding type declarations. -c:/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== c:/root/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "baseUrl": "." - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - } - } - -==== c:/root/folder1/file1.ts (1 errors) ==== - import {x} from "folder2/file2" - ~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'folder2/file2' or its corresponding type declarations. - declare function use(a: any): void; - use(x.toExponential()); - -==== c:/root/folder2/file2.ts (0 errors) ==== - import {x as a} from "./file3" // found with baseurl - import {y as b} from "file4" // found with fallback - export var x = a + b; - -==== c:/root/folder2/file3.ts (0 errors) ==== - export var x = 1; - -==== c:/node_modules/file4/index.d.ts (0 errors) ==== - export var y: number; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.js deleted file mode 100644 index 07bb89bf7a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.js +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution4_node.ts] //// - -//// [index.d.ts] -export var y: number; -//// [file1.ts] -import {x} from "folder2/file2" -declare function use(a: any): void; -use(x.toExponential()); - -//// [file2.ts] -import {x as a} from "./file3" // found with baseurl -import {y as b} from "file4" // found with fallback -export var x = a + b; - -//// [file3.ts] -export var x = 1; - - -//// [file1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const file2_1 = require("folder2/file2"); -use(file2_1.x.toExponential()); -//// [file3.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 1; -//// [file2.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -const file3_1 = require("./file3"); // found with baseurl -const file4_1 = require("file4"); // found with fallback -exports.x = file3_1.x + file4_1.y; diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.js.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.js.diff deleted file mode 100644 index 940f7723c7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.js.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.pathMappingBasedModuleResolution4_node.js -+++ new.pathMappingBasedModuleResolution4_node.js -@@= skipped -15, +15 lines =@@ - export var x = 1; - - -+//// [file1.js] -+"use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); -+const file2_1 = require("folder2/file2"); -+use(file2_1.x.toExponential()); - //// [file3.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -@@= skipped -9, +14 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; --var file3_1 = require("./file3"); // found with baseurl --var file4_1 = require("file4"); // found with fallback -+const file3_1 = require("./file3"); // found with baseurl -+const file4_1 = require("file4"); // found with fallback - exports.x = file3_1.x + file4_1.y; --//// [file1.js] --"use strict"; --Object.defineProperty(exports, "__esModule", { value: true }); --var file2_1 = require("folder2/file2"); --use(file2_1.x.toExponential()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.symbols deleted file mode 100644 index d4496f7688..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.symbols +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution4_node.ts] //// - -=== c:/root/folder1/file1.ts === -import {x} from "folder2/file2" ->x : Symbol(x, Decl(file1.ts, 0, 8)) - -declare function use(a: any): void; ->use : Symbol(use, Decl(file1.ts, 0, 31)) ->a : Symbol(a, Decl(file1.ts, 1, 21)) - -use(x.toExponential()); ->use : Symbol(use, Decl(file1.ts, 0, 31)) ->x : Symbol(x, Decl(file1.ts, 0, 8)) - -=== c:/root/folder2/file2.ts === -import {x as a} from "./file3" // found with baseurl ->x : Symbol(a, Decl(file3.ts, 0, 10)) ->a : Symbol(a, Decl(file2.ts, 0, 8)) - -import {y as b} from "file4" // found with fallback ->y : Symbol(b, Decl(index.d.ts, 0, 10)) ->b : Symbol(b, Decl(file2.ts, 1, 8)) - -export var x = a + b; ->x : Symbol(x, Decl(file2.ts, 2, 10)) ->a : Symbol(a, Decl(file2.ts, 0, 8)) ->b : Symbol(b, Decl(file2.ts, 1, 8)) - -=== c:/root/folder2/file3.ts === -export var x = 1; ->x : Symbol(x, Decl(file3.ts, 0, 10)) - -=== c:/node_modules/file4/index.d.ts === -export var y: number; ->y : Symbol(y, Decl(index.d.ts, 0, 10)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.symbols.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.symbols.diff deleted file mode 100644 index 198e6d00f9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.symbols.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.pathMappingBasedModuleResolution4_node.symbols -+++ new.pathMappingBasedModuleResolution4_node.symbols -@@= skipped -9, +9 lines =@@ - - use(x.toExponential()); - >use : Symbol(use, Decl(file1.ts, 0, 31)) -->x.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) - >x : Symbol(x, Decl(file1.ts, 0, 8)) -->toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) - - === c:/root/folder2/file2.ts === - import {x as a} from "./file3" // found with baseurl \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json deleted file mode 100644 index b57204c2f5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json +++ /dev/null @@ -1,44 +0,0 @@ -======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File 'c:/root/folder1/package.json' does not exist. -File 'c:/root/package.json' does not exist. -File 'c:/package.json' does not exist. -Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory 'c:/root/folder1/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 'folder2/file2' was not resolved. ======== -======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. -======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ======== -======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -File 'c:/node_modules/file4/package.json' does not exist. -File 'c:/node_modules/file4.ts' does not exist. -File 'c:/node_modules/file4.tsx' does not exist. -File 'c:/node_modules/file4.d.ts' does not exist. -File 'c:/node_modules/file4/index.ts' does not exist. -File 'c:/node_modules/file4/index.tsx' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.types deleted file mode 100644 index 805143c14c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution4_node.ts] //// - -=== c:/root/folder1/file1.ts === -import {x} from "folder2/file2" ->x : any - -declare function use(a: any): void; ->use : (a: any) => void ->a : any - -use(x.toExponential()); ->use(x.toExponential()) : void ->use : (a: any) => void ->x.toExponential() : any ->x.toExponential : any ->x : any ->toExponential : any - -=== c:/root/folder2/file2.ts === -import {x as a} from "./file3" // found with baseurl ->x : number ->a : number - -import {y as b} from "file4" // found with fallback ->y : number ->b : number - -export var x = a + b; ->x : number ->a + b : number ->a : number ->b : number - -=== c:/root/folder2/file3.ts === -export var x = 1; ->x : number ->1 : 1 - -=== c:/node_modules/file4/index.d.ts === -export var y: number; ->y : number - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.types.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.types.diff deleted file mode 100644 index d578680356..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.types.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.pathMappingBasedModuleResolution4_node.types -+++ new.pathMappingBasedModuleResolution4_node.types -@@= skipped -1, +1 lines =@@ - - === c:/root/folder1/file1.ts === - import {x} from "folder2/file2" -->x : number -+>x : any - - declare function use(a: any): void; - >use : (a: any) => void -@@= skipped -9, +9 lines =@@ - use(x.toExponential()); - >use(x.toExponential()) : void - >use : (a: any) => void -->x.toExponential() : string -->x.toExponential : (fractionDigits?: number) => string -->x : number -->toExponential : (fractionDigits?: number) => string -+>x.toExponential() : any -+>x.toExponential : any -+>x : any -+>toExponential : any - - === c:/root/folder2/file2.ts === - import {x as a} from "./file3" // found with baseurl \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.errors.txt deleted file mode 100644 index f8c7322538..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.errors.txt +++ /dev/null @@ -1,56 +0,0 @@ -c:/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -c:/root/tsconfig.json(6,17): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -c:/root/tsconfig.json(7,17): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -c:/root/tsconfig.json(10,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== c:/root/tsconfig.json (4 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": [ - "*", - ~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - "generated/*" - ~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - ], - "components/*": [ - "shared/components/*" - ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - ] - } - } - } -==== c:/root/folder1/file1.ts (0 errors) ==== - import {x} from "folder2/file1" - import {y} from "folder3/file2" - import {z} from "components/file3" - import {z1} from "file4" - - declare function use(a: any): void; - - use(x.toExponential()); - use(y.toExponential()); - use(z.toExponential()); - use(z1.toExponential()); - -==== c:/root/folder2/file1.ts (0 errors) ==== - export var x = 1; - -==== c:/root/generated/folder3/file2.ts (0 errors) ==== - export var y = 1; - -==== c:/root/shared/components/file3/index.d.ts (0 errors) ==== - export var z: number; - -==== c:/node_modules/file4.ts (0 errors) ==== - export var z1 = 1; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.js deleted file mode 100644 index c3509f8138..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.js +++ /dev/null @@ -1,49 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts] //// - -//// [file4.ts] -export var z1 = 1; - -//// [file1.ts] -import {x} from "folder2/file1" -import {y} from "folder3/file2" -import {z} from "components/file3" -import {z1} from "file4" - -declare function use(a: any): void; - -use(x.toExponential()); -use(y.toExponential()); -use(z.toExponential()); -use(z1.toExponential()); - -//// [file1.ts] -export var x = 1; - -//// [file2.ts] -export var y = 1; - -//// [index.d.ts] -export var z: number; - - -//// [file1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 1; -//// [file2.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = 1; -//// [file1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const file1_1 = require("folder2/file1"); -const file2_1 = require("folder3/file2"); -const file3_1 = require("components/file3"); -const file4_1 = require("file4"); -use(file1_1.x.toExponential()); -use(file2_1.y.toExponential()); -use(file3_1.z.toExponential()); -use(file4_1.z1.toExponential()); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.js.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.js.diff deleted file mode 100644 index cdddb9efb5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.js.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.pathMappingBasedModuleResolution5_node.js -+++ new.pathMappingBasedModuleResolution5_node.js -@@= skipped -38, +38 lines =@@ - //// [file1.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --var file1_1 = require("folder2/file1"); --var file2_1 = require("folder3/file2"); --var file3_1 = require("components/file3"); --var file4_1 = require("file4"); -+const file1_1 = require("folder2/file1"); -+const file2_1 = require("folder3/file2"); -+const file3_1 = require("components/file3"); -+const file4_1 = require("file4"); - use(file1_1.x.toExponential()); - use(file2_1.y.toExponential()); - use(file3_1.z.toExponential()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.symbols deleted file mode 100644 index c1bf7479be..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.symbols +++ /dev/null @@ -1,59 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts] //// - -=== c:/root/folder1/file1.ts === -import {x} from "folder2/file1" ->x : Symbol(x, Decl(file1.ts, 0, 8)) - -import {y} from "folder3/file2" ->y : Symbol(y, Decl(file1.ts, 1, 8)) - -import {z} from "components/file3" ->z : Symbol(z, Decl(file1.ts, 2, 8)) - -import {z1} from "file4" ->z1 : Symbol(z1, Decl(file1.ts, 3, 8)) - -declare function use(a: any): void; ->use : Symbol(use, Decl(file1.ts, 3, 24)) ->a : Symbol(a, Decl(file1.ts, 5, 21)) - -use(x.toExponential()); ->use : Symbol(use, Decl(file1.ts, 3, 24)) ->x.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) ->x : Symbol(x, Decl(file1.ts, 0, 8)) ->toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) - -use(y.toExponential()); ->use : Symbol(use, Decl(file1.ts, 3, 24)) ->y.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) ->y : Symbol(y, Decl(file1.ts, 1, 8)) ->toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) - -use(z.toExponential()); ->use : Symbol(use, Decl(file1.ts, 3, 24)) ->z.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) ->z : Symbol(z, Decl(file1.ts, 2, 8)) ->toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) - -use(z1.toExponential()); ->use : Symbol(use, Decl(file1.ts, 3, 24)) ->z1.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) ->z1 : Symbol(z1, Decl(file1.ts, 3, 8)) ->toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) - -=== c:/root/folder2/file1.ts === -export var x = 1; ->x : Symbol(x, Decl(file1.ts, 0, 10)) - -=== c:/root/generated/folder3/file2.ts === -export var y = 1; ->y : Symbol(y, Decl(file2.ts, 0, 10)) - -=== c:/root/shared/components/file3/index.d.ts === -export var z: number; ->z : Symbol(z, Decl(index.d.ts, 0, 10)) - -=== c:/node_modules/file4.ts === -export var z1 = 1; ->z1 : Symbol(z1, Decl(file4.ts, 0, 10)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json deleted file mode 100644 index baa2b61635..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json +++ /dev/null @@ -1,70 +0,0 @@ -======== Resolving module 'folder2/file1' from 'c:/root/folder1/file1.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'folder2/file1'. -Module name 'folder2/file1', matched pattern '*'. -Trying substitution '*', candidate module location: 'folder2/file1'. -Loading module as file / folder, candidate module location 'c:/root/folder2/file1', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/folder2/file1.ts' exists - use it as a name resolution result. -======== Module name 'folder2/file1' was successfully resolved to 'c:/root/folder2/file1.ts'. ======== -======== Resolving module 'folder3/file2' from 'c:/root/folder1/file1.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'folder3/file2'. -Module name 'folder3/file2', matched pattern '*'. -Trying substitution '*', candidate module location: 'folder3/file2'. -Loading module as file / folder, candidate module location 'c:/root/folder3/file2', target file types: TypeScript, JavaScript, Declaration, JSON. -Trying substitution 'generated/*', candidate module location: 'generated/folder3/file2'. -Loading module as file / folder, candidate module location 'c:/root/generated/folder3/file2', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/generated/folder3/file2.ts' exists - use it as a name resolution result. -======== Module name 'folder3/file2' was successfully resolved to 'c:/root/generated/folder3/file2.ts'. ======== -======== Resolving module 'components/file3' from 'c:/root/folder1/file1.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'components/file3'. -Module name 'components/file3', matched pattern 'components/*'. -Trying substitution 'shared/components/*', candidate module location: 'shared/components/file3'. -Loading module as file / folder, candidate module location 'c:/root/shared/components/file3', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/shared/components/file3.ts' does not exist. -File 'c:/root/shared/components/file3.tsx' does not exist. -File 'c:/root/shared/components/file3.d.ts' does not exist. -File 'c:/root/shared/components/file3.js' does not exist. -File 'c:/root/shared/components/file3.jsx' does not exist. -File 'c:/root/shared/components/file3/package.json' does not exist. -File 'c:/root/shared/components/file3/index.ts' does not exist. -File 'c:/root/shared/components/file3/index.tsx' does not exist. -File 'c:/root/shared/components/file3/index.d.ts' exists - use it as a name resolution result. -======== Module name 'components/file3' was successfully resolved to 'c:/root/shared/components/file3/index.d.ts'. ======== -======== Resolving module 'file4' from 'c:/root/folder1/file1.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'file4'. -Module name 'file4', matched pattern '*'. -Trying substitution '*', candidate module location: 'file4'. -Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/file4.ts' does not exist. -File 'c:/root/file4.tsx' does not exist. -File 'c:/root/file4.d.ts' does not exist. -File 'c:/root/file4.js' does not exist. -File 'c:/root/file4.jsx' does not exist. -Directory 'c:/root/file4' does not exist, skipping all lookups in it. -Trying substitution 'generated/*', candidate module location: 'generated/file4'. -Loading module as file / folder, candidate module location 'c:/root/generated/file4', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/generated/file4.ts' does not exist. -File 'c:/root/generated/file4.tsx' does not exist. -File 'c:/root/generated/file4.d.ts' does not exist. -File 'c:/root/generated/file4.js' does not exist. -File 'c:/root/generated/file4.jsx' does not exist. -Directory 'c:/root/generated/file4' does not exist, skipping all lookups in it. -File 'c:/root/folder1/package.json' does not exist. -File 'c:/root/package.json' does not exist. -File 'c:/package.json' does not exist. -Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.types deleted file mode 100644 index a05ebc3137..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.types +++ /dev/null @@ -1,70 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts] //// - -=== c:/root/folder1/file1.ts === -import {x} from "folder2/file1" ->x : number - -import {y} from "folder3/file2" ->y : number - -import {z} from "components/file3" ->z : number - -import {z1} from "file4" ->z1 : number - -declare function use(a: any): void; ->use : (a: any) => void ->a : any - -use(x.toExponential()); ->use(x.toExponential()) : void ->use : (a: any) => void ->x.toExponential() : string ->x.toExponential : (fractionDigits?: number) => string ->x : number ->toExponential : (fractionDigits?: number) => string - -use(y.toExponential()); ->use(y.toExponential()) : void ->use : (a: any) => void ->y.toExponential() : string ->y.toExponential : (fractionDigits?: number) => string ->y : number ->toExponential : (fractionDigits?: number) => string - -use(z.toExponential()); ->use(z.toExponential()) : void ->use : (a: any) => void ->z.toExponential() : string ->z.toExponential : (fractionDigits?: number) => string ->z : number ->toExponential : (fractionDigits?: number) => string - -use(z1.toExponential()); ->use(z1.toExponential()) : void ->use : (a: any) => void ->z1.toExponential() : string ->z1.toExponential : (fractionDigits?: number) => string ->z1 : number ->toExponential : (fractionDigits?: number) => string - -=== c:/root/folder2/file1.ts === -export var x = 1; ->x : number ->1 : 1 - -=== c:/root/generated/folder3/file2.ts === -export var y = 1; ->y : number ->1 : 1 - -=== c:/root/shared/components/file3/index.d.ts === -export var z: number; ->z : number - -=== c:/node_modules/file4.ts === -export var z1 = 1; ->z1 : number ->1 : 1 - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.errors.txt deleted file mode 100644 index bd1f1ab3f4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.errors.txt +++ /dev/null @@ -1,63 +0,0 @@ -c:/root/generated/src/project/file2.ts(2,17): error TS2307: Cannot find module 'templates/module2' or its corresponding type declarations. -c:/root/src/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./../*"]}' instead. -c:/root/src/tsconfig.json(6,17): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -c:/root/src/tsconfig.json(10,17): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== c:/root/src/tsconfig.json (3 errors) ==== - { - "compilerOptions": { - "baseUrl": "../", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./../*"]}' instead. - "paths": { - "*": [ - "*", - ~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - "c:/shared/*" - ], - "templates/*": [ - "generated/src/templates/*" - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - ] - }, - "rootDirs": [ - ".", - "../generated/src" - ] - } - } - -==== c:/root/src/file1.ts (0 errors) ==== - import {x} from "./project/file2"; - import {y} from "module3"; - - declare function use(x: string); - use(x.toFixed()); - use(y.toFixed()); - -==== c:/root/src/file3/index.d.ts (0 errors) ==== - export let x: number; - -==== c:/root/generated/src/project/file2.ts (1 errors) ==== - import {a} from "module1"; - import {b} from "templates/module2"; - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module 'templates/module2' or its corresponding type declarations. - import {x as c} from "../file3"; - export let x = a + b + c; - -==== c:/shared/module1/index.d.ts (0 errors) ==== - export let a: number - -==== c:/root/generated/src/templates/module2.ts (0 errors) ==== - export let b: number; - -==== c:/node_modules/module3.d.ts (0 errors) ==== - export let y: number; - - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.js deleted file mode 100644 index 34dd765ef2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.js +++ /dev/null @@ -1,45 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts] //// - -//// [file2.ts] -import {a} from "module1"; -import {b} from "templates/module2"; -import {x as c} from "../file3"; -export let x = a + b + c; - -//// [index.d.ts] -export let a: number - -//// [module2.ts] -export let b: number; - -//// [module3.d.ts] -export let y: number; - - -//// [file1.ts] -import {x} from "./project/file2"; -import {y} from "module3"; - -declare function use(x: string); -use(x.toFixed()); -use(y.toFixed()); - -//// [index.d.ts] -export let x: number; - - -//// [file2.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -const module1_1 = require("module1"); -const module2_1 = require("templates/module2"); -const file3_1 = require("../file3"); -exports.x = module1_1.a + module2_1.b + file3_1.x; -//// [file1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const file2_1 = require("./project/file2"); -const module3_1 = require("module3"); -use(file2_1.x.toFixed()); -use(module3_1.y.toFixed()); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.js.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.js.diff deleted file mode 100644 index 10e38f31a2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.pathMappingBasedModuleResolution7_node.js -+++ new.pathMappingBasedModuleResolution7_node.js -@@= skipped -27, +27 lines =@@ - export let x: number; - - --//// [module2.js] --"use strict"; --Object.defineProperty(exports, "__esModule", { value: true }); --exports.b = void 0; - //// [file2.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; --var module1_1 = require("module1"); --var module2_1 = require("templates/module2"); --var file3_1 = require("../file3"); -+const module1_1 = require("module1"); -+const module2_1 = require("templates/module2"); -+const file3_1 = require("../file3"); - exports.x = module1_1.a + module2_1.b + file3_1.x; - //// [file1.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --var file2_1 = require("./project/file2"); --var module3_1 = require("module3"); -+const file2_1 = require("./project/file2"); -+const module3_1 = require("module3"); - use(file2_1.x.toFixed()); - use(module3_1.y.toFixed()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.symbols deleted file mode 100644 index 50a1a8b1cf..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.symbols +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts] //// - -=== c:/root/src/file1.ts === -import {x} from "./project/file2"; ->x : Symbol(x, Decl(file1.ts, 0, 8)) - -import {y} from "module3"; ->y : Symbol(y, Decl(file1.ts, 1, 8)) - -declare function use(x: string); ->use : Symbol(use, Decl(file1.ts, 1, 26)) ->x : Symbol(x, Decl(file1.ts, 3, 21)) - -use(x.toFixed()); ->use : Symbol(use, Decl(file1.ts, 1, 26)) ->x : Symbol(x, Decl(file1.ts, 0, 8)) - -use(y.toFixed()); ->use : Symbol(use, Decl(file1.ts, 1, 26)) ->y.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) ->y : Symbol(y, Decl(file1.ts, 1, 8)) ->toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) - -=== c:/root/src/file3/index.d.ts === -export let x: number; ->x : Symbol(x, Decl(index.d.ts, 0, 10)) - -=== c:/root/generated/src/project/file2.ts === -import {a} from "module1"; ->a : Symbol(a, Decl(file2.ts, 0, 8)) - -import {b} from "templates/module2"; ->b : Symbol(b, Decl(file2.ts, 1, 8)) - -import {x as c} from "../file3"; ->x : Symbol(c, Decl(index.d.ts, 0, 10)) ->c : Symbol(c, Decl(file2.ts, 2, 8)) - -export let x = a + b + c; ->x : Symbol(x, Decl(file2.ts, 3, 10)) ->a : Symbol(a, Decl(file2.ts, 0, 8)) ->b : Symbol(b, Decl(file2.ts, 1, 8)) ->c : Symbol(c, Decl(file2.ts, 2, 8)) - -=== c:/shared/module1/index.d.ts === -export let a: number ->a : Symbol(a, Decl(index.d.ts, 0, 10)) - -=== c:/node_modules/module3.d.ts === -export let y: number; ->y : Symbol(y, Decl(module3.d.ts, 0, 10)) - - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.symbols.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.symbols.diff deleted file mode 100644 index 1ddc71801f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.symbols.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.pathMappingBasedModuleResolution7_node.symbols -+++ new.pathMappingBasedModuleResolution7_node.symbols -@@= skipped -12, +12 lines =@@ - - use(x.toFixed()); - >use : Symbol(use, Decl(file1.ts, 1, 26)) -->x.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) - >x : Symbol(x, Decl(file1.ts, 0, 8)) -->toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) - - use(y.toFixed()); - >use : Symbol(use, Decl(file1.ts, 1, 26)) -@@= skipped -34, +32 lines =@@ - === c:/shared/module1/index.d.ts === - export let a: number - >a : Symbol(a, Decl(index.d.ts, 0, 10)) -- --=== c:/root/generated/src/templates/module2.ts === --export let b: number; -->b : Symbol(b, Decl(module2.ts, 0, 10)) - - === c:/node_modules/module3.d.ts === - export let y: number; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json deleted file mode 100644 index c7c733b635..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json +++ /dev/null @@ -1,132 +0,0 @@ -======== Resolving module './project/file2' from 'c:/root/src/file1.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'rootDirs' option is set, using it to resolve relative module name './project/file2'. -Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'true'. -Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'false'. -Longest matching prefix for 'c:/root/src/project/file2' is 'c:/root/src/'. -Loading 'project/file2' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file2'. -Loading module as file / folder, candidate module location 'c:/root/src/project/file2', target file types: TypeScript, JavaScript, Declaration, JSON. -Directory 'c:/root/src/project' does not exist, skipping all lookups in it. -Trying other entries in 'rootDirs'. -Loading 'project/file2' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file2'. -Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file2', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/generated/src/project/file2.ts' exists - use it as a name resolution result. -======== Module name './project/file2' was successfully resolved to 'c:/root/generated/src/project/file2.ts'. ======== -======== Resolving module 'module3' from 'c:/root/src/file1.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'module3'. -Module name 'module3', matched pattern '*'. -Trying substitution '*', candidate module location: 'module3'. -Loading module as file / folder, candidate module location 'c:/root/src/module3', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/src/module3.ts' does not exist. -File 'c:/root/src/module3.tsx' does not exist. -File 'c:/root/src/module3.d.ts' does not exist. -File 'c:/root/src/module3.js' does not exist. -File 'c:/root/src/module3.jsx' does not exist. -Directory 'c:/root/src/module3' does not exist, skipping all lookups in it. -Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module3'. -Loading module as file / folder, candidate module location 'c:/shared/module3', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/shared/module3.ts' does not exist. -File 'c:/shared/module3.tsx' does not exist. -File 'c:/shared/module3.d.ts' does not exist. -File 'c:/shared/module3.js' does not exist. -File 'c:/shared/module3.jsx' does not exist. -Directory 'c:/shared/module3' does not exist, skipping all lookups in it. -File 'c:/root/src/package.json' does not exist. -File 'c:/root/package.json' does not exist. -File 'c:/package.json' does not exist. -Loading module 'module3' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -File 'c:/node_modules/module3.ts' does not exist. -File 'c:/node_modules/module3.tsx' does not exist. -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'. ======== -======== Resolving module 'module1' from 'c:/root/generated/src/project/file2.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'module1'. -Module name 'module1', matched pattern '*'. -Trying substitution '*', candidate module location: 'module1'. -Loading module as file / folder, candidate module location 'c:/root/src/module1', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/src/module1.ts' does not exist. -File 'c:/root/src/module1.tsx' does not exist. -File 'c:/root/src/module1.d.ts' does not exist. -File 'c:/root/src/module1.js' does not exist. -File 'c:/root/src/module1.jsx' does not exist. -Directory 'c:/root/src/module1' does not exist, skipping all lookups in it. -Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module1'. -Loading module as file / folder, candidate module location 'c:/shared/module1', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/shared/module1.ts' does not exist. -File 'c:/shared/module1.tsx' does not exist. -File 'c:/shared/module1.d.ts' does not exist. -File 'c:/shared/module1.js' does not exist. -File 'c:/shared/module1.jsx' does not exist. -File 'c:/shared/module1/package.json' does not exist. -File 'c:/shared/module1/index.ts' does not exist. -File 'c:/shared/module1/index.tsx' does not exist. -File 'c:/shared/module1/index.d.ts' exists - use it as a name resolution result. -======== Module name 'module1' was successfully resolved to 'c:/shared/module1/index.d.ts'. ======== -======== Resolving module 'templates/module2' from 'c:/root/generated/src/project/file2.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'templates/module2'. -Module name 'templates/module2', matched pattern 'templates/*'. -Trying substitution 'generated/src/templates/*', candidate module location: 'generated/src/templates/module2'. -Loading module as file / folder, candidate module location 'c:/root/src/generated/src/templates/module2', target file types: TypeScript, JavaScript, Declaration, JSON. -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. -Loading module 'templates/module2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory 'c:/root/generated/src/project/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/generated/src/project/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/generated/src/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/generated/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/generated/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/generated/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory 'c:/root/generated/src/project/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/generated/src/node_modules' does not exist, skipping all lookups in it. -Directory 'c:/root/generated/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 'templates/module2' was not resolved. ======== -======== Resolving module '../file3' from 'c:/root/generated/src/project/file2.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'rootDirs' option is set, using it to resolve relative module name '../file3'. -Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'false'. -Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'true'. -Longest matching prefix for 'c:/root/generated/src/file3' is 'c:/root/generated/src/'. -Loading 'file3' from the root dir 'c:/root/generated/src/', candidate location 'c:/root/generated/src/file3'. -Loading module as file / folder, candidate module location 'c:/root/generated/src/file3', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/generated/src/file3.ts' does not exist. -File 'c:/root/generated/src/file3.tsx' does not exist. -File 'c:/root/generated/src/file3.d.ts' does not exist. -File 'c:/root/generated/src/file3.js' does not exist. -File 'c:/root/generated/src/file3.jsx' does not exist. -Directory 'c:/root/generated/src/file3' does not exist, skipping all lookups in it. -Trying other entries in 'rootDirs'. -Loading 'file3' from the root dir 'c:/root/src', candidate location 'c:/root/src/file3'. -Loading module as file / folder, candidate module location 'c:/root/src/file3', target file types: TypeScript, JavaScript, Declaration, JSON. -File 'c:/root/src/file3.ts' does not exist. -File 'c:/root/src/file3.tsx' does not exist. -File 'c:/root/src/file3.d.ts' does not exist. -File 'c:/root/src/file3.js' does not exist. -File 'c:/root/src/file3.jsx' does not exist. -File 'c:/root/src/file3/package.json' does not exist. -File 'c:/root/src/file3/index.ts' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.types deleted file mode 100644 index ab0a2262b7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.types +++ /dev/null @@ -1,61 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts] //// - -=== c:/root/src/file1.ts === -import {x} from "./project/file2"; ->x : any - -import {y} from "module3"; ->y : number - -declare function use(x: string); ->use : (x: string) => any ->x : string - -use(x.toFixed()); ->use(x.toFixed()) : any ->use : (x: string) => any ->x.toFixed() : any ->x.toFixed : any ->x : any ->toFixed : any - -use(y.toFixed()); ->use(y.toFixed()) : any ->use : (x: string) => any ->y.toFixed() : string ->y.toFixed : (fractionDigits?: number) => string ->y : number ->toFixed : (fractionDigits?: number) => string - -=== c:/root/src/file3/index.d.ts === -export let x: number; ->x : number - -=== c:/root/generated/src/project/file2.ts === -import {a} from "module1"; ->a : number - -import {b} from "templates/module2"; ->b : any - -import {x as c} from "../file3"; ->x : number ->c : number - -export let x = a + b + c; ->x : any ->a + b + c : any ->a + b : any ->a : number ->b : any ->c : number - -=== c:/shared/module1/index.d.ts === -export let a: number ->a : number - -=== c:/node_modules/module3.d.ts === -export let y: number; ->y : number - - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.types.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.types.diff deleted file mode 100644 index 29d5328fcc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.types.diff +++ /dev/null @@ -1,59 +0,0 @@ ---- old.pathMappingBasedModuleResolution7_node.types -+++ new.pathMappingBasedModuleResolution7_node.types -@@= skipped -1, +1 lines =@@ - - === c:/root/src/file1.ts === - import {x} from "./project/file2"; -->x : number -+>x : any - - import {y} from "module3"; - >y : number -@@= skipped -12, +12 lines =@@ - use(x.toFixed()); - >use(x.toFixed()) : any - >use : (x: string) => any -->x.toFixed() : string -->x.toFixed : (fractionDigits?: number) => string -->x : number -->toFixed : (fractionDigits?: number) => string -+>x.toFixed() : any -+>x.toFixed : any -+>x : any -+>toFixed : any - - use(y.toFixed()); - >use(y.toFixed()) : any -@@= skipped -22, +22 lines =@@ - >a : number - - import {b} from "templates/module2"; -->b : number -+>b : any - - import {x as c} from "../file3"; - >x : number - >c : number - - export let x = a + b + c; -->x : number -->a + b + c : number -->a + b : number -+>x : any -+>a + b + c : any -+>a + b : any - >a : number -->b : number -+>b : any - >c : number - - === c:/shared/module1/index.d.ts === - export let a: number - >a : number -- --=== c:/root/generated/src/templates/module2.ts === --export let b: number; -->b : number - - === c:/node_modules/module3.d.ts === - export let y: number; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.errors.txt deleted file mode 100644 index 2451485e85..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.errors.txt +++ /dev/null @@ -1,28 +0,0 @@ -c:/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -c:/root/tsconfig.json(6,16): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== c:/root/tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "@speedy/*/testing": [ - "*/dist/index.ts" - ~~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - ] - } - } - } - -==== c:/root/index.ts (0 errors) ==== - import {x} from "@speedy/folder1/testing" - -==== c:/root/folder1/dist/index.ts (0 errors) ==== - export const x = 1 + 2; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.js deleted file mode 100644 index e727b75ca6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.js +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution8_node.ts] //// - -//// [index.ts] -import {x} from "@speedy/folder1/testing" - -//// [index.ts] -export const x = 1 + 2; - - -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 1 + 2; -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.symbols deleted file mode 100644 index 2b889dc6cb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution8_node.ts] //// - -=== c:/root/index.ts === -import {x} from "@speedy/folder1/testing" ->x : Symbol(x, Decl(index.ts, 0, 8)) - -=== c:/root/folder1/dist/index.ts === -export const x = 1 + 2; ->x : Symbol(x, Decl(index.ts, 0, 12)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json deleted file mode 100644 index db03ff8304..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json +++ /dev/null @@ -1,8 +0,0 @@ -======== Resolving module '@speedy/folder1/testing' from 'c:/root/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '@speedy/folder1/testing'. -Module name '@speedy/folder1/testing', matched pattern '@speedy/*/testing'. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.types deleted file mode 100644 index abeeeb2299..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.types +++ /dev/null @@ -1,13 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution8_node.ts] //// - -=== c:/root/index.ts === -import {x} from "@speedy/folder1/testing" ->x : number - -=== c:/root/folder1/dist/index.ts === -export const x = 1 + 2; ->x : number ->1 + 2 : number ->1 : 1 ->2 : 2 - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt deleted file mode 100644 index 9b4240c53e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== /root/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "/*": ["./src/*"] - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /root/src/foo.ts (0 errors) ==== - export function foo() {} - -==== /root/src/bar.js (0 errors) ==== - export function bar() {} - -==== /root/a.ts (0 errors) ==== - import { foo } from "/foo"; - import { bar } from "/bar"; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.js deleted file mode 100644 index 5d30186345..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.js +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.ts] //// - -//// [foo.ts] -export function foo() {} - -//// [bar.js] -export function bar() {} - -//// [a.ts] -import { foo } from "/foo"; -import { bar } from "/bar"; - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.symbols deleted file mode 100644 index 8a3f6ffe65..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.ts] //// - -=== /root/src/foo.ts === -export function foo() {} ->foo : Symbol(foo, Decl(foo.ts, 0, 0)) - -=== /root/src/bar.js === -export function bar() {} ->bar : Symbol(bar, Decl(bar.js, 0, 0)) - -=== /root/a.ts === -import { foo } from "/foo"; ->foo : Symbol(foo, Decl(a.ts, 0, 8)) - -import { bar } from "/bar"; ->bar : Symbol(bar, Decl(a.ts, 1, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json deleted file mode 100644 index 9bd8d21bcc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json +++ /dev/null @@ -1,21 +0,0 @@ -======== Resolving module '/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/foo'. -Module name '/foo', matched pattern '/*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module '/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/bar'. -Module name '/bar', matched pattern '/*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.types deleted file mode 100644 index 5a11fb4294..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.ts] //// - -=== /root/src/foo.ts === -export function foo() {} ->foo : () => void - -=== /root/src/bar.js === -export function bar() {} ->bar : () => void - -=== /root/a.ts === -import { foo } from "/foo"; ->foo : () => void - -import { bar } from "/bar"; ->bar : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt deleted file mode 100644 index a3a5b6a83b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt +++ /dev/null @@ -1,53 +0,0 @@ -/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== /root/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "/*": ["./src/*"], - "c:/*": ["./src/*"], - "c:\\*": ["./src/*"], - "//server/*": ["./src/*"], - "\\\\server\\*": ["./src/*"], - "file:///*": ["./src/*"], - "file://c:/*": ["./src/*"], - "file://server/*": ["./src/*"], - "http://server/*": ["./src/*"] - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /root/src/foo.ts (0 errors) ==== - export function foo() {} - -==== /root/src/bar.js (0 errors) ==== - export function bar() {} - -==== /root/a.ts (0 errors) ==== - import { foo as foo1 } from "/foo"; - import { bar as bar1 } from "/bar"; - import { foo as foo2 } from "c:/foo"; - import { bar as bar2 } from "c:/bar"; - import { foo as foo3 } from "c:\\foo"; - import { bar as bar3 } from "c:\\bar"; - import { foo as foo4 } from "//server/foo"; - import { bar as bar4 } from "//server/bar"; - import { foo as foo5 } from "\\\\server\\foo"; - import { bar as bar5 } from "\\\\server\\bar"; - import { foo as foo6 } from "file:///foo"; - import { bar as bar6 } from "file:///bar"; - import { foo as foo7 } from "file://c:/foo"; - import { bar as bar7 } from "file://c:/bar"; - import { foo as foo8 } from "file://server/foo"; - import { bar as bar8 } from "file://server/bar"; - import { foo as foo9 } from "http://server/foo"; - import { bar as bar9 } from "http://server/bar"; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.js deleted file mode 100644 index 3a328d664b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.ts] //// - -//// [foo.ts] -export function foo() {} - -//// [bar.js] -export function bar() {} - -//// [a.ts] -import { foo as foo1 } from "/foo"; -import { bar as bar1 } from "/bar"; -import { foo as foo2 } from "c:/foo"; -import { bar as bar2 } from "c:/bar"; -import { foo as foo3 } from "c:\\foo"; -import { bar as bar3 } from "c:\\bar"; -import { foo as foo4 } from "//server/foo"; -import { bar as bar4 } from "//server/bar"; -import { foo as foo5 } from "\\\\server\\foo"; -import { bar as bar5 } from "\\\\server\\bar"; -import { foo as foo6 } from "file:///foo"; -import { bar as bar6 } from "file:///bar"; -import { foo as foo7 } from "file://c:/foo"; -import { bar as bar7 } from "file://c:/bar"; -import { foo as foo8 } from "file://server/foo"; -import { bar as bar8 } from "file://server/bar"; -import { foo as foo9 } from "http://server/foo"; -import { bar as bar9 } from "http://server/bar"; - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.symbols deleted file mode 100644 index 8b00c716a9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.symbols +++ /dev/null @@ -1,83 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.ts] //// - -=== /root/src/foo.ts === -export function foo() {} ->foo : Symbol(foo, Decl(foo.ts, 0, 0)) - -=== /root/src/bar.js === -export function bar() {} ->bar : Symbol(bar, Decl(bar.js, 0, 0)) - -=== /root/a.ts === -import { foo as foo1 } from "/foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo1 : Symbol(foo1, Decl(a.ts, 0, 8)) - -import { bar as bar1 } from "/bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar1 : Symbol(bar1, Decl(a.ts, 1, 8)) - -import { foo as foo2 } from "c:/foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo2 : Symbol(foo2, Decl(a.ts, 2, 8)) - -import { bar as bar2 } from "c:/bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar2 : Symbol(bar2, Decl(a.ts, 3, 8)) - -import { foo as foo3 } from "c:\\foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo3 : Symbol(foo3, Decl(a.ts, 4, 8)) - -import { bar as bar3 } from "c:\\bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar3 : Symbol(bar3, Decl(a.ts, 5, 8)) - -import { foo as foo4 } from "//server/foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo4 : Symbol(foo4, Decl(a.ts, 6, 8)) - -import { bar as bar4 } from "//server/bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar4 : Symbol(bar4, Decl(a.ts, 7, 8)) - -import { foo as foo5 } from "\\\\server\\foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo5 : Symbol(foo5, Decl(a.ts, 8, 8)) - -import { bar as bar5 } from "\\\\server\\bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar5 : Symbol(bar5, Decl(a.ts, 9, 8)) - -import { foo as foo6 } from "file:///foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo6 : Symbol(foo6, Decl(a.ts, 10, 8)) - -import { bar as bar6 } from "file:///bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar6 : Symbol(bar6, Decl(a.ts, 11, 8)) - -import { foo as foo7 } from "file://c:/foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo7 : Symbol(foo7, Decl(a.ts, 12, 8)) - -import { bar as bar7 } from "file://c:/bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar7 : Symbol(bar7, Decl(a.ts, 13, 8)) - -import { foo as foo8 } from "file://server/foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo8 : Symbol(foo8, Decl(a.ts, 14, 8)) - -import { bar as bar8 } from "file://server/bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar8 : Symbol(bar8, Decl(a.ts, 15, 8)) - -import { foo as foo9 } from "http://server/foo"; ->foo : Symbol(foo1, Decl(foo.ts, 0, 0)) ->foo9 : Symbol(foo9, Decl(a.ts, 16, 8)) - -import { bar as bar9 } from "http://server/bar"; ->bar : Symbol(bar1, Decl(bar.js, 0, 0)) ->bar9 : Symbol(bar9, Decl(a.ts, 17, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json deleted file mode 100644 index 3f6ee633c0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json +++ /dev/null @@ -1,189 +0,0 @@ -======== Resolving module '/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/foo'. -Module name '/foo', matched pattern '/*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module '/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/bar'. -Module name '/bar', matched pattern '/*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== -======== Resolving module 'c:/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'c:/foo'. -Module name 'c:/foo', matched pattern 'c:/*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name 'c:/foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module 'c:/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'c:/bar'. -Module name 'c:/bar', matched pattern 'c:/*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.tsx' does not exist according to earlier cached lookups. -File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name 'c:/bar' was successfully resolved to '/root/src/bar.js'. ======== -======== Resolving module 'c:\foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'c:\foo'. -Module name 'c:\foo', matched pattern 'c:\*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name 'c:\foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module 'c:\bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'c:\bar'. -Module name 'c:\bar', matched pattern 'c:\*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.tsx' does not exist according to earlier cached lookups. -File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name 'c:\bar' was successfully resolved to '/root/src/bar.js'. ======== -======== Resolving module '//server/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '//server/foo'. -Module name '//server/foo', matched pattern '//server/*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name '//server/foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module '//server/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '//server/bar'. -Module name '//server/bar', matched pattern '//server/*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.tsx' does not exist according to earlier cached lookups. -File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name '//server/bar' was successfully resolved to '/root/src/bar.js'. ======== -======== Resolving module '\\server\foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '\\server\foo'. -Module name '\\server\foo', matched pattern '\\server\*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name '\\server\foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module '\\server\bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '\\server\bar'. -Module name '\\server\bar', matched pattern '\\server\*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.tsx' does not exist according to earlier cached lookups. -File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name '\\server\bar' was successfully resolved to '/root/src/bar.js'. ======== -======== Resolving module 'file:///foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'file:///foo'. -Module name 'file:///foo', matched pattern 'file:///*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name 'file:///foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module 'file:///bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'file:///bar'. -Module name 'file:///bar', matched pattern 'file:///*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.tsx' does not exist according to earlier cached lookups. -File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name 'file:///bar' was successfully resolved to '/root/src/bar.js'. ======== -======== Resolving module 'file://c:/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'file://c:/foo'. -Module name 'file://c:/foo', matched pattern 'file://c:/*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name 'file://c:/foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module 'file://c:/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'. -Module name 'file://c:/bar', matched pattern 'file://c:/*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.tsx' does not exist according to earlier cached lookups. -File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name 'file://c:/bar' was successfully resolved to '/root/src/bar.js'. ======== -======== Resolving module 'file://server/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'file://server/foo'. -Module name 'file://server/foo', matched pattern 'file://server/*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name 'file://server/foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module 'file://server/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'file://server/bar'. -Module name 'file://server/bar', matched pattern 'file://server/*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.tsx' does not exist according to earlier cached lookups. -File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name 'file://server/bar' was successfully resolved to '/root/src/bar.js'. ======== -======== Resolving module 'http://server/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'http://server/foo'. -Module name 'http://server/foo', matched pattern 'http://server/*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name 'http://server/foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module 'http://server/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'http://server/bar'. -Module name 'http://server/bar', matched pattern 'http://server/*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist according to earlier cached lookups. -File '/root/src/bar.tsx' does not exist according to earlier cached lookups. -File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.types deleted file mode 100644 index 67da661c15..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.types +++ /dev/null @@ -1,83 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.ts] //// - -=== /root/src/foo.ts === -export function foo() {} ->foo : () => void - -=== /root/src/bar.js === -export function bar() {} ->bar : () => void - -=== /root/a.ts === -import { foo as foo1 } from "/foo"; ->foo : () => void ->foo1 : () => void - -import { bar as bar1 } from "/bar"; ->bar : () => void ->bar1 : () => void - -import { foo as foo2 } from "c:/foo"; ->foo : () => void ->foo2 : () => void - -import { bar as bar2 } from "c:/bar"; ->bar : () => void ->bar2 : () => void - -import { foo as foo3 } from "c:\\foo"; ->foo : () => void ->foo3 : () => void - -import { bar as bar3 } from "c:\\bar"; ->bar : () => void ->bar3 : () => void - -import { foo as foo4 } from "//server/foo"; ->foo : () => void ->foo4 : () => void - -import { bar as bar4 } from "//server/bar"; ->bar : () => void ->bar4 : () => void - -import { foo as foo5 } from "\\\\server\\foo"; ->foo : () => void ->foo5 : () => void - -import { bar as bar5 } from "\\\\server\\bar"; ->bar : () => void ->bar5 : () => void - -import { foo as foo6 } from "file:///foo"; ->foo : () => void ->foo6 : () => void - -import { bar as bar6 } from "file:///bar"; ->bar : () => void ->bar6 : () => void - -import { foo as foo7 } from "file://c:/foo"; ->foo : () => void ->foo7 : () => void - -import { bar as bar7 } from "file://c:/bar"; ->bar : () => void ->bar7 : () => void - -import { foo as foo8 } from "file://server/foo"; ->foo : () => void ->foo8 : () => void - -import { bar as bar8 } from "file://server/bar"; ->bar : () => void ->bar8 : () => void - -import { foo as foo9 } from "http://server/foo"; ->foo : () => void ->foo9 : () => void - -import { bar as bar9 } from "http://server/bar"; ->bar : () => void ->bar9 : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt deleted file mode 100644 index 0d3551d2c4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== /root/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "/client/*": ["./client/*"], - "/import/*": ["./import/*"] - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /root/import/foo.ts (0 errors) ==== - export function foo() {} - -==== /root/client/bar.js (0 errors) ==== - export function bar() {} - -==== /root/src/a.ts (0 errors) ==== - import { foo } from "/import/foo"; - import { bar } from "/client/bar"; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.js deleted file mode 100644 index 1e82815314..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.js +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.ts] //// - -//// [foo.ts] -export function foo() {} - -//// [bar.js] -export function bar() {} - -//// [a.ts] -import { foo } from "/import/foo"; -import { bar } from "/client/bar"; - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.symbols deleted file mode 100644 index 2be8402c4e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.ts] //// - -=== /root/import/foo.ts === -export function foo() {} ->foo : Symbol(foo, Decl(foo.ts, 0, 0)) - -=== /root/client/bar.js === -export function bar() {} ->bar : Symbol(bar, Decl(bar.js, 0, 0)) - -=== /root/src/a.ts === -import { foo } from "/import/foo"; ->foo : Symbol(foo, Decl(a.ts, 0, 8)) - -import { bar } from "/client/bar"; ->bar : Symbol(bar, Decl(a.ts, 1, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json deleted file mode 100644 index 04ef899b76..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json +++ /dev/null @@ -1,21 +0,0 @@ -======== Resolving module '/import/foo' from '/root/src/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/import/foo'. -Module name '/import/foo', matched pattern '/import/*'. -Trying substitution './import/*', candidate module location: './import/foo'. -Loading module as file / folder, candidate module location '/root/import/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/import/foo.ts' exists - use it as a name resolution result. -======== Module name '/import/foo' was successfully resolved to '/root/import/foo.ts'. ======== -======== Resolving module '/client/bar' from '/root/src/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/client/bar'. -Module name '/client/bar', matched pattern '/client/*'. -Trying substitution './client/*', candidate module location: './client/bar'. -Loading module as file / folder, candidate module location '/root/client/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/client/bar.ts' does not exist. -File '/root/client/bar.tsx' does not exist. -File '/root/client/bar.d.ts' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.types deleted file mode 100644 index 46f1855085..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.ts] //// - -=== /root/import/foo.ts === -export function foo() {} ->foo : () => void - -=== /root/client/bar.js === -export function bar() {} ->bar : () => void - -=== /root/src/a.ts === -import { foo } from "/import/foo"; ->foo : () => void - -import { bar } from "/client/bar"; ->bar : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt deleted file mode 100644 index 8d8000f267..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== /root/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "/*": ["./src/*"] - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /root/a.ts (0 errors) ==== - import { foo } from "/foo"; - import { bar } from "/bar"; - -==== /foo.ts (0 errors) ==== - export function foo() {} - -==== /bar.js (0 errors) ==== - export function bar() {} - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.js deleted file mode 100644 index 194e02979d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.js +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.ts] //// - -//// [foo.ts] -export function foo() {} - -//// [bar.js] -export function bar() {} - -//// [a.ts] -import { foo } from "/foo"; -import { bar } from "/bar"; - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.symbols deleted file mode 100644 index 6e0b0e75fc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.ts] //// - -=== /root/a.ts === -import { foo } from "/foo"; ->foo : Symbol(foo, Decl(a.ts, 0, 8)) - -import { bar } from "/bar"; ->bar : Symbol(bar, Decl(a.ts, 1, 8)) - -=== /foo.ts === -export function foo() {} ->foo : Symbol(foo, Decl(foo.ts, 0, 0)) - -=== /bar.js === -export function bar() {} ->bar : Symbol(bar, Decl(bar.js, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json deleted file mode 100644 index 4f68837ad7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json +++ /dev/null @@ -1,23 +0,0 @@ -======== Resolving module '/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/foo'. -Module name '/foo', matched pattern '/*'. -Trying substitution './src/*', candidate module location: './src/foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo.ts' exists - use it as a name resolution result. -======== Module name '/foo' was successfully resolved to '/foo.ts'. ======== -======== Resolving module '/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/bar'. -Module name '/bar', matched pattern '/*'. -Trying substitution './src/*', candidate module location: './src/bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/bar.ts' does not exist. -File '/bar.tsx' does not exist. -File '/bar.d.ts' does not exist. -File '/bar.js' exists - use it as a name resolution result. -======== Module name '/bar' was successfully resolved to '/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.types deleted file mode 100644 index e189dff5ab..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.ts] //// - -=== /root/a.ts === -import { foo } from "/foo"; ->foo : () => void - -import { bar } from "/bar"; ->bar : () => void - -=== /foo.ts === -export function foo() {} ->foo : () => void - -=== /bar.js === -export function bar() {} ->bar : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt deleted file mode 100644 index 04131f0fd1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== /root/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": ["./src/*"] - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /root/src/foo.ts (0 errors) ==== - export function foo() {} - -==== /root/src/bar.js (0 errors) ==== - export function bar() {} - -==== /root/a.ts (0 errors) ==== - import { foo } from "/foo"; - import { bar } from "/bar"; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.js deleted file mode 100644 index aa1d13db71..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.js +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.ts] //// - -//// [foo.ts] -export function foo() {} - -//// [bar.js] -export function bar() {} - -//// [a.ts] -import { foo } from "/foo"; -import { bar } from "/bar"; - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.symbols deleted file mode 100644 index e5d724a080..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.ts] //// - -=== /root/src/foo.ts === -export function foo() {} ->foo : Symbol(foo, Decl(foo.ts, 0, 0)) - -=== /root/src/bar.js === -export function bar() {} ->bar : Symbol(bar, Decl(bar.js, 0, 0)) - -=== /root/a.ts === -import { foo } from "/foo"; ->foo : Symbol(foo, Decl(a.ts, 0, 8)) - -import { bar } from "/bar"; ->bar : Symbol(bar, Decl(a.ts, 1, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json deleted file mode 100644 index 950910be01..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json +++ /dev/null @@ -1,21 +0,0 @@ -======== Resolving module '/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/foo'. -Module name '/foo', matched pattern '*'. -Trying substitution './src/*', candidate module location: './src//foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/foo.ts' exists - use it as a name resolution result. -======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== -======== Resolving module '/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/bar'. -Module name '/bar', matched pattern '*'. -Trying substitution './src/*', candidate module location: './src//bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. -File '/root/src/bar.js' exists - use it as a name resolution result. -======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.types deleted file mode 100644 index cd61a9513e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.ts] //// - -=== /root/src/foo.ts === -export function foo() {} ->foo : () => void - -=== /root/src/bar.js === -export function bar() {} ->bar : () => void - -=== /root/a.ts === -import { foo } from "/foo"; ->foo : () => void - -import { bar } from "/bar"; ->bar : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt deleted file mode 100644 index b5258b6653..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. - - -==== /root/tsconfig.json (1 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": ["./src/*"] - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /root/a.ts (0 errors) ==== - import { foo } from "/foo"; - import { bar } from "/bar"; - -==== /foo.ts (0 errors) ==== - export function foo() {} - -==== /bar.js (0 errors) ==== - export function bar() {} - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.js deleted file mode 100644 index 27ea060dd7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.js +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.ts] //// - -//// [foo.ts] -export function foo() {} - -//// [bar.js] -export function bar() {} - -//// [a.ts] -import { foo } from "/foo"; -import { bar } from "/bar"; - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.symbols deleted file mode 100644 index d048de95e6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.ts] //// - -=== /root/a.ts === -import { foo } from "/foo"; ->foo : Symbol(foo, Decl(a.ts, 0, 8)) - -import { bar } from "/bar"; ->bar : Symbol(bar, Decl(a.ts, 1, 8)) - -=== /foo.ts === -export function foo() {} ->foo : Symbol(foo, Decl(foo.ts, 0, 0)) - -=== /bar.js === -export function bar() {} ->bar : Symbol(bar, Decl(bar.js, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json deleted file mode 100644 index 610a3b617f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json +++ /dev/null @@ -1,23 +0,0 @@ -======== Resolving module '/foo' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/foo'. -Module name '/foo', matched pattern '*'. -Trying substitution './src/*', candidate module location: './src//foo'. -Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/foo.ts' exists - use it as a name resolution result. -======== Module name '/foo' was successfully resolved to '/foo.ts'. ======== -======== Resolving module '/bar' from '/root/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '/bar'. -Module name '/bar', matched pattern '*'. -Trying substitution './src/*', candidate module location: './src//bar'. -Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/bar.ts' does not exist. -File '/bar.tsx' does not exist. -File '/bar.d.ts' does not exist. -File '/bar.js' exists - use it as a name resolution result. -======== Module name '/bar' was successfully resolved to '/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.types deleted file mode 100644 index 54630514ac..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.ts] //// - -=== /root/a.ts === -import { foo } from "/foo"; ->foo : () => void - -import { bar } from "/bar"; ->bar : () => void - -=== /foo.ts === -export function foo() {} ->foo : () => void - -=== /bar.js === -export function bar() {} ->bar : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.errors.txt deleted file mode 100644 index 96771109f5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.errors.txt +++ /dev/null @@ -1,36 +0,0 @@ -/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -/tsconfig.json(5,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -/tsconfig.json(6,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== /tsconfig.json (3 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "foo": ["foo/foo.ts"], - ~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - "bar": ["bar/bar.js"] - ~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /foo/foo.ts (0 errors) ==== - export function foo() {} - -==== /bar/bar.js (0 errors) ==== - export function bar() {} - -==== /a.ts (0 errors) ==== - import { foo } from "foo"; - import { bar } from "bar"; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.js deleted file mode 100644 index bf7852b116..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.js +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension.ts] //// - -//// [foo.ts] -export function foo() {} - -//// [bar.js] -export function bar() {} - -//// [a.ts] -import { foo } from "foo"; -import { bar } from "bar"; - - -//// [foo.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.symbols deleted file mode 100644 index c657460d53..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension.ts] //// - -=== /foo/foo.ts === -export function foo() {} ->foo : Symbol(foo, Decl(foo.ts, 0, 0)) - -=== /bar/bar.js === -export function bar() {} ->bar : Symbol(bar, Decl(bar.js, 0, 0)) - -=== /a.ts === -import { foo } from "foo"; ->foo : Symbol(foo, Decl(a.ts, 0, 8)) - -import { bar } from "bar"; ->bar : Symbol(bar, Decl(a.ts, 1, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json deleted file mode 100644 index e06bc1c1c9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json +++ /dev/null @@ -1,16 +0,0 @@ -======== Resolving module 'foo' from '/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'foo'. -Module name 'foo', matched pattern 'foo'. -Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. -File '/foo/foo.ts' exists - use it as a name resolution result. -======== Module name 'foo' was successfully resolved to '/foo/foo.ts'. ======== -======== Resolving module 'bar' from '/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'bar'. -Module name 'bar', matched pattern 'bar'. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.types deleted file mode 100644 index f93c07e2cc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension.ts] //// - -=== /foo/foo.ts === -export function foo() {} ->foo : () => void - -=== /bar/bar.js === -export function bar() {} ->bar : () => void - -=== /a.ts === -import { foo } from "foo"; ->foo : () => void - -import { bar } from "bar"; ->bar : () => void - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.errors.txt deleted file mode 100644 index 85662d2c56..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -/tsconfig.json(5,19): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== /tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": ["foo/*"] - ~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } - -==== /foo/zone.js/index.d.ts (0 errors) ==== - export const x: number; - -==== /foo/zone.tsx/index.d.ts (0 errors) ==== - export const y: number; - -==== /a.ts (0 errors) ==== - import { x } from "zone.js"; - import { y } from "zone.tsx"; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.js deleted file mode 100644 index 2eda1e8391..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtensionInName.ts] //// - -//// [index.d.ts] -export const x: number; - -//// [index.d.ts] -export const y: number; - -//// [a.ts] -import { x } from "zone.js"; -import { y } from "zone.tsx"; - - -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.symbols deleted file mode 100644 index 8dd5a45ab7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtensionInName.ts] //// - -=== /foo/zone.js/index.d.ts === -export const x: number; ->x : Symbol(x, Decl(index.d.ts, 0, 12)) - -=== /foo/zone.tsx/index.d.ts === -export const y: number; ->y : Symbol(y, Decl(index.d.ts, 0, 12)) - -=== /a.ts === -import { x } from "zone.js"; ->x : Symbol(x, Decl(a.ts, 0, 8)) - -import { y } from "zone.tsx"; ->y : Symbol(y, Decl(a.ts, 1, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json deleted file mode 100644 index 6d82934790..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json +++ /dev/null @@ -1,46 +0,0 @@ -======== Resolving module 'zone.js' from '/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'zone.js'. -Module name 'zone.js', matched pattern '*'. -Trying substitution 'foo/*', candidate module location: 'foo/zone.js'. -Loading module as file / folder, candidate module location '/foo/zone.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/foo/zone.js' has a '.js' extension - stripping it. -File '/foo/zone.ts' does not exist. -File '/foo/zone.tsx' does not exist. -File '/foo/zone.d.ts' does not exist. -File '/foo/zone.js' does not exist. -File '/foo/zone.jsx' does not exist. -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.js' does not exist. -File '/foo/zone.js.jsx' does not exist. -File '/foo/zone.js/package.json' does not exist. -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. -======== Module name 'zone.js' was successfully resolved to '/foo/zone.js/index.d.ts'. ======== -======== Resolving module 'zone.tsx' from '/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'zone.tsx'. -Module name 'zone.tsx', matched pattern '*'. -Trying substitution 'foo/*', candidate module location: 'foo/zone.tsx'. -Loading module as file / folder, candidate module location '/foo/zone.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/foo/zone.tsx' has a '.tsx' extension - stripping it. -File '/foo/zone.tsx' does not exist according to earlier cached lookups. -File '/foo/zone.ts' does not exist according to earlier cached lookups. -File '/foo/zone.d.ts' does not exist according to earlier cached lookups. -File '/foo/zone.jsx' does not exist according to earlier cached lookups. -File '/foo/zone.js' does not exist according to earlier cached lookups. -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.js' does not exist. -File '/foo/zone.tsx.jsx' does not exist. -File '/foo/zone.tsx/package.json' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.types deleted file mode 100644 index 5b5ac12335..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtensionInName.ts] //// - -=== /foo/zone.js/index.d.ts === -export const x: number; ->x : number - -=== /foo/zone.tsx/index.d.ts === -export const y: number; ->y : number - -=== /a.ts === -import { x } from "zone.js"; ->x : number - -import { y } from "zone.tsx"; ->y : number - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt deleted file mode 100644 index 77e996ed4f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -/tsconfig.json(5,19): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -/tsconfig.json(5,37): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== /tsconfig.json (3 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": ["node_modules/*", "src/types"] - ~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - ~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /a.ts (0 errors) ==== - import foobar from "foo/bar/foobar.js"; - -==== /node_modules/foo/bar/foobar.js (0 errors) ==== - module.exports = { a: 10 }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.js deleted file mode 100644 index 520f8bf8d8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.js +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts] //// - -//// [foobar.js] -module.exports = { a: 10 }; - -//// [a.ts] -import foobar from "foo/bar/foobar.js"; - - -//// [/bin/a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.symbols deleted file mode 100644 index 14c6b607be..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts] //// - -=== /a.ts === -import foobar from "foo/bar/foobar.js"; ->foobar : Symbol(foobar, Decl(a.ts, 0, 6)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json deleted file mode 100644 index 1eeb6b8fee..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json +++ /dev/null @@ -1,15 +0,0 @@ -======== Resolving module 'foo/bar/foobar.js' from '/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'. -Module name 'foo/bar/foobar.js', matched pattern '*'. -Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.js'. -Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. -File '/node_modules/foo/bar/foobar.ts' does not exist. -File '/node_modules/foo/bar/foobar.tsx' does not exist. -File '/node_modules/foo/bar/foobar.d.ts' does not exist. -File '/node_modules/foo/bar/foobar.js' exists - use it as a name resolution result. -File '/node_modules/foo/package.json' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.types deleted file mode 100644 index dcb8d2d2bb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.types +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts] //// - -=== /a.ts === -import foobar from "foo/bar/foobar.js"; ->foobar : any - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt deleted file mode 100644 index f0a653aaa8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt +++ /dev/null @@ -1,26 +0,0 @@ -/a.ts(1,21): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -/tsconfig.json(5,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== /tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "foo": ["foo/foo.ts"] - ~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } - -==== /a.ts (1 errors) ==== - import { foo } from "foo"; - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.js b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.js deleted file mode 100644 index aeb2102666..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.js +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.ts] //// - -//// [a.ts] -import { foo } from "foo"; - - -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.symbols b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.symbols deleted file mode 100644 index 08ccab783c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.ts] //// - -=== /a.ts === -import { foo } from "foo"; ->foo : Symbol(foo, Decl(a.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json deleted file mode 100644 index 7be5ad8451..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json +++ /dev/null @@ -1,17 +0,0 @@ -======== Resolving module 'foo' from '/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'foo'. -Module name 'foo', matched pattern 'foo'. -Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. -File '/foo/foo.ts' does not exist. -Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/foo/foo.ts' has a '.ts' extension - stripping it. -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. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/node_modules' does not exist, skipping all lookups in it. -======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.types b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.types deleted file mode 100644 index 56e8885776..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.types +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.ts] //// - -=== /a.ts === -import { foo } from "foo"; ->foo : any - diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.errors.txt b/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.errors.txt deleted file mode 100644 index 958098f4fa..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -/project/index.ts(1,20): error TS2307: Cannot find module 'p1' or its corresponding type declarations. -/project/tsconfig.json(3,3): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["../other/*"]}' instead. - - -==== /project/tsconfig.json (1 errors) ==== - { - "extends": "../other/tsconfig.base.json", - "compilerOptions": { - ~~~~~~~~~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["../other/*"]}' instead. - "module": "commonjs", - "paths": { - "p1": ["./lib/p1"] - } - } - } - -==== /project/index.ts (1 errors) ==== - import { p1 } from "p1"; - ~~~~ -!!! error TS2307: Cannot find module 'p1' or its corresponding type declarations. - -==== /other/tsconfig.base.json (0 errors) ==== - { - "compilerOptions": { - "baseUrl": "." - } - } - -==== /other/lib/p1/index.ts (0 errors) ==== - export const p1 = 0; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.js b/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.js deleted file mode 100644 index b96fa9697f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.js +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/compiler/pathMappingInheritedBaseUrl.ts] //// - -//// [tsconfig.base.json] -{ - "compilerOptions": { - "baseUrl": "." - } -} - -//// [index.ts] -export const p1 = 0; - -//// [index.ts] -import { p1 } from "p1"; - - -//// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.js.diff b/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.js.diff deleted file mode 100644 index c781082f03..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingInheritedBaseUrl.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.pathMappingInheritedBaseUrl.js -+++ new.pathMappingInheritedBaseUrl.js -@@= skipped -16, +16 lines =@@ - //// [index.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --exports.p1 = void 0; --exports.p1 = 0; --//// [index.js] --"use strict"; --Object.defineProperty(exports, "__esModule", { value: true }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation1.errors.txt b/testdata/baselines/reference/submodule/compiler/pathsValidation1.errors.txt deleted file mode 100644 index 4dff2cb6b5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation1.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -tsconfig.json(5,18): error TS5063: Substitutions for pattern '*' should be an array. - - -==== tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": "*" - ~~~ -!!! error TS5063: Substitutions for pattern '*' should be an array. - } - } - } -==== a.ts (0 errors) ==== - let x = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation1.js b/testdata/baselines/reference/submodule/compiler/pathsValidation1.js deleted file mode 100644 index 291a7f71e8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation1.js +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/pathsValidation1.ts] //// - -//// [a.ts] -let x = 1; - -//// [a.js] -let x = 1; diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation1.symbols b/testdata/baselines/reference/submodule/compiler/pathsValidation1.symbols deleted file mode 100644 index 34019f8d99..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation1.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/pathsValidation1.ts] //// - -=== a.ts === -let x = 1; ->x : Symbol(x, Decl(a.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation1.types b/testdata/baselines/reference/submodule/compiler/pathsValidation1.types deleted file mode 100644 index e1af137994..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation1.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/pathsValidation1.ts] //// - -=== a.ts === -let x = 1; ->x : number ->1 : 1 - diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation2.errors.txt b/testdata/baselines/reference/submodule/compiler/pathsValidation2.errors.txt deleted file mode 100644 index f378a3c33b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation2.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -tsconfig.json(5,18): error TS5066: Substitutions for pattern '*' shouldn't be an empty array. - - -==== tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": [1] - ~~~ -!!! error TS5066: Substitutions for pattern '*' shouldn't be an empty array. - } - } - } -==== a.ts (0 errors) ==== - let x = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation2.js b/testdata/baselines/reference/submodule/compiler/pathsValidation2.js deleted file mode 100644 index 29a0f84058..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation2.js +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/pathsValidation2.ts] //// - -//// [a.ts] -let x = 1; - -//// [a.js] -let x = 1; diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation2.symbols b/testdata/baselines/reference/submodule/compiler/pathsValidation2.symbols deleted file mode 100644 index 6b4bc84e59..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation2.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/pathsValidation2.ts] //// - -=== a.ts === -let x = 1; ->x : Symbol(x, Decl(a.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation2.types b/testdata/baselines/reference/submodule/compiler/pathsValidation2.types deleted file mode 100644 index 2bca41ec6f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation2.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/pathsValidation2.ts] //// - -=== a.ts === -let x = 1; ->x : number ->1 : 1 - diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation3.errors.txt b/testdata/baselines/reference/submodule/compiler/pathsValidation3.errors.txt deleted file mode 100644 index 47d1320e2a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation3.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -tsconfig.json(5,20): error TS5066: Substitutions for pattern 'foo' shouldn't be an empty array. - - -==== tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "foo": [] - ~~ -!!! error TS5066: Substitutions for pattern 'foo' shouldn't be an empty array. - } - } - } - -==== a.ts (0 errors) ==== - let x = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation3.js b/testdata/baselines/reference/submodule/compiler/pathsValidation3.js deleted file mode 100644 index 1ae46a4131..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation3.js +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/pathsValidation3.ts] //// - -//// [a.ts] -let x = 1; - -//// [a.js] -let x = 1; diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation3.symbols b/testdata/baselines/reference/submodule/compiler/pathsValidation3.symbols deleted file mode 100644 index 1667faf056..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation3.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/pathsValidation3.ts] //// - -=== a.ts === -let x = 1; ->x : Symbol(x, Decl(a.ts, 0, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation3.types b/testdata/baselines/reference/submodule/compiler/pathsValidation3.types deleted file mode 100644 index 4a0bce98f1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation3.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/compiler/pathsValidation3.ts] //// - -=== a.ts === -let x = 1; ->x : number ->1 : 1 - diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation4.errors.txt b/testdata/baselines/reference/submodule/compiler/pathsValidation4.errors.txt deleted file mode 100644 index cb2d81b0d8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation4.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -tsconfig.json(4,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./src/*"]}' instead. -tsconfig.json(6,11): error TS5061: Pattern '@interface/**/*' can have at most one '*' character. -tsconfig.json(7,11): error TS5061: Pattern '@service/**/*' can have at most one '*' character. -tsconfig.json(7,29): error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character. -tsconfig.json(8,29): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== tsconfig.json (5 errors) ==== - { - "compilerOptions": { - "traceResolution": true, - "baseUrl": "./src", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./src/*"]}' instead. - "paths": { - "@interface/**/*" : ["./src/interface/*"], - ~~~~~~~~~~~~~~~~~ -!!! error TS5061: Pattern '@interface/**/*' can have at most one '*' character. - "@service/**/*": ["./src/service/**/*"], - ~~~~~~~~~~~~~~~ -!!! error TS5061: Pattern '@service/**/*' can have at most one '*' character. - ~~~~~~~~~~~~~~~~~~~~ -!!! error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character. - "@controller/*": ["controller/*"], - ~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } - -==== src/main.ts (0 errors) ==== - import 'someModule'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation4.js b/testdata/baselines/reference/submodule/compiler/pathsValidation4.js deleted file mode 100644 index 86d8dac6a5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation4.js +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/compiler/pathsValidation4.ts] //// - -//// [main.ts] -import 'someModule'; - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -require("someModule"); diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json b/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json deleted file mode 100644 index 3e08aef365..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json +++ /dev/null @@ -1,20 +0,0 @@ -======== Resolving module 'someModule' from '/.src/src/main.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'someModule'. -File '/.src/src/package.json' does not exist. -File '/.src/package.json' does not exist. -File '/package.json' does not exist. -Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. -Directory '/.src/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/.src/node_modules' does not exist, skipping all lookups in it. -Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/.src/src/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 'someModule' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt new file mode 100644 index 0000000000..eeb5964c4b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt @@ -0,0 +1,54 @@ +privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts(15,12): error TS2323: Cannot redeclare exported variable 'publicUse_im_private_mi_public'. +privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts(17,12): error TS2323: Cannot redeclare exported variable 'publicUse_im_private_mi_public'. + + +==== privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts (2 errors) ==== + /// + /// + // Privacy errors - importing private elements + import im_private_mi_private = require("m"); + import im_private_mu_private = require("m2"); + import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); + import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); + + // Usage of privacy error imports + var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); + export var publicUse_im_private_mi_private = new im_private_mi_private.c_private(); + var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); + export var publicUse_im_private_mu_private = new im_private_mu_private.c_private(); + var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); + export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2323: Cannot redeclare exported variable 'publicUse_im_private_mi_public'. + var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); + export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2323: Cannot redeclare exported variable 'publicUse_im_private_mi_public'. + +==== privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts (0 errors) ==== + // Public elements + export class c_public { + foo: string; + } + +==== privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts (0 errors) ==== + export class c_public { + bar: string; + } + +==== privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts (0 errors) ==== + // private elements + // Export - Error ambient modules allowed only in global + declare module 'm' { + export class c_private { + baz: string + } + } + +==== privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts (0 errors) ==== + declare module 'm2' { + export class c_private { + bing: string; + } + } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.js b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.js new file mode 100644 index 0000000000..c683d169a3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.js @@ -0,0 +1,117 @@ +//// [tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.ts] //// + +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts] +// Public elements +export class c_public { + foo: string; +} + +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts] +export class c_public { + bar: string; +} + +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts] +// private elements +// Export - Error ambient modules allowed only in global +declare module 'm' { + export class c_private { + baz: string + } +} + +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts] +declare module 'm2' { + export class c_private { + bing: string; + } +} + +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts] +/// +/// +// Privacy errors - importing private elements +import im_private_mi_private = require("m"); +import im_private_mu_private = require("m2"); +import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); +import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); + +// Usage of privacy error imports +var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); +export var publicUse_im_private_mi_private = new im_private_mi_private.c_private(); +var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); +export var publicUse_im_private_mu_private = new im_private_mu_private.c_private(); +var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); +export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); +var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); +export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); + + +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.js] +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.js] +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c_public = void 0; +// Public elements +class c_public { + foo; +} +exports.c_public = c_public; +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c_public = void 0; +class c_public { + bar; +} +exports.c_public = c_public; +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.publicUse_im_private_mi_public = exports.publicUse_im_private_mu_private = exports.publicUse_im_private_mi_private = void 0; +/// +/// +// Privacy errors - importing private elements +const im_private_mi_private = require("m"); +const im_private_mu_private = require("m2"); +const im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); +// Usage of privacy error imports +var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); +exports.publicUse_im_private_mi_private = new im_private_mi_private.c_private(); +var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); +exports.publicUse_im_private_mu_private = new im_private_mu_private.c_private(); +var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); +exports.publicUse_im_private_mi_public = new im_private_mi_public.c_public(); +var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); +exports.publicUse_im_private_mi_public = new im_private_mi_public.c_public(); + + +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.d.ts] +declare module 'm' { + class c_private { + baz: string; + } +} +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.d.ts] +declare module 'm2' { + class c_private { + bing: string; + } +} +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require.d.ts] +export declare class c_public { + foo: string; +} +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.d.ts] +export declare class c_public { + bar: string; +} +//// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.d.ts] +import im_private_mi_private = require("m"); +import im_private_mu_private = require("m2"); +import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); +export declare var publicUse_im_private_mi_private: im_private_mi_private.c_private; +export declare var publicUse_im_private_mu_private: im_private_mu_private.c_private; +export declare var publicUse_im_private_mi_public: im_private_mi_public.c_public; +export declare var publicUse_im_private_mi_public: im_private_mi_public.c_public; diff --git a/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.js.diff b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.js.diff new file mode 100644 index 0000000000..eaded90b5d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.js.diff @@ -0,0 +1,31 @@ +--- old.privacyTopLevelAmbientExternalModuleImportWithoutExport.js ++++ new.privacyTopLevelAmbientExternalModuleImportWithoutExport.js +@@= skipped -54, +54 lines =@@ + exports.c_public = void 0; + // Public elements + class c_public { ++ foo; + } + exports.c_public = c_public; + //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.js] +@@= skipped -7, +8 lines =@@ + Object.defineProperty(exports, "__esModule", { value: true }); + exports.c_public = void 0; + class c_public { ++ bar; + } + exports.c_public = c_public; + //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.js] +@@= skipped -9, +10 lines =@@ + /// + /// + // Privacy errors - importing private elements +-var im_private_mi_private = require("m"); +-var im_private_mu_private = require("m2"); +-var im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); ++const im_private_mi_private = require("m"); ++const im_private_mu_private = require("m2"); ++const im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); + // Usage of privacy error imports + var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); + exports.publicUse_im_private_mi_private = new im_private_mi_private.c_private(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols new file mode 100644 index 0000000000..a3d75551a3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols @@ -0,0 +1,110 @@ +//// [tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.ts] //// + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts === +/// +/// +// Privacy errors - importing private elements +import im_private_mi_private = require("m"); +>im_private_mi_private : Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) + +import im_private_mu_private = require("m2"); +>im_private_mu_private : Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) + +import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); +>im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) + +import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); +>im_private_mu_public : Symbol(im_private_mu_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 5, 107)) + +// Usage of privacy error imports +var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); +>privateUse_im_private_mi_private : Symbol(privateUse_im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 9, 3)) +>im_private_mi_private.c_private : Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) +>im_private_mi_private : Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) +>c_private : Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) + +export var publicUse_im_private_mi_private = new im_private_mi_private.c_private(); +>publicUse_im_private_mi_private : Symbol(publicUse_im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 10, 10)) +>im_private_mi_private.c_private : Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) +>im_private_mi_private : Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) +>c_private : Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) + +var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); +>privateUse_im_private_mu_private : Symbol(privateUse_im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 11, 3)) +>im_private_mu_private.c_private : Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) +>im_private_mu_private : Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) +>c_private : Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) + +export var publicUse_im_private_mu_private = new im_private_mu_private.c_private(); +>publicUse_im_private_mu_private : Symbol(publicUse_im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 12, 10)) +>im_private_mu_private.c_private : Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) +>im_private_mu_private : Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) +>c_private : Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) + +var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); +>privateUse_im_private_mi_public : Symbol(privateUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 15, 3)) +>im_private_mi_public.c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) +>im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) +>c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) + +export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); +>publicUse_im_private_mi_public : Symbol(publicUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 16, 10)) +>im_private_mi_public.c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) +>im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) +>c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) + +var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); +>privateUse_im_private_mi_public : Symbol(privateUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 15, 3)) +>im_private_mi_public.c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) +>im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) +>c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) + +export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); +>publicUse_im_private_mi_public : Symbol(publicUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 16, 10)) +>im_private_mi_public.c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) +>im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) +>c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts === +// Public elements +export class c_public { +>c_public : Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) + + foo: string; +>foo : Symbol(c_public.foo, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 1, 23)) +} + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts === +export class c_public { +>c_public : Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts, 0, 0)) + + bar: string; +>bar : Symbol(c_public.bar, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts, 0, 23)) +} + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts === +// private elements +// Export - Error ambient modules allowed only in global +declare module 'm' { +>'m' : Symbol("m", Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 0, 0)) + + export class c_private { +>c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) + + baz: string +>baz : Symbol(c_private.baz, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 3, 28)) + } +} + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts === +declare module 'm2' { +>'m2' : Symbol("m2", Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 0)) + + export class c_private { +>c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) + + bing: string; +>bing : Symbol(c_private.bing, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 1, 28)) + } +} + diff --git a/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.types b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.types new file mode 100644 index 0000000000..8a4d58b1fc --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.types @@ -0,0 +1,118 @@ +//// [tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.ts] //// + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts === +/// +/// +// Privacy errors - importing private elements +import im_private_mi_private = require("m"); +>im_private_mi_private : typeof im_private_mi_private + +import im_private_mu_private = require("m2"); +>im_private_mu_private : typeof im_private_mu_private + +import im_private_mi_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); +>im_private_mi_public : typeof im_private_mi_public + +import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); +>im_private_mu_public : typeof im_private_mu_public + +// Usage of privacy error imports +var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); +>privateUse_im_private_mi_private : im_private_mi_private.c_private +>new im_private_mi_private.c_private() : im_private_mi_private.c_private +>im_private_mi_private.c_private : typeof im_private_mi_private.c_private +>im_private_mi_private : typeof im_private_mi_private +>c_private : typeof im_private_mi_private.c_private + +export var publicUse_im_private_mi_private = new im_private_mi_private.c_private(); +>publicUse_im_private_mi_private : im_private_mi_private.c_private +>new im_private_mi_private.c_private() : im_private_mi_private.c_private +>im_private_mi_private.c_private : typeof im_private_mi_private.c_private +>im_private_mi_private : typeof im_private_mi_private +>c_private : typeof im_private_mi_private.c_private + +var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); +>privateUse_im_private_mu_private : im_private_mu_private.c_private +>new im_private_mu_private.c_private() : im_private_mu_private.c_private +>im_private_mu_private.c_private : typeof im_private_mu_private.c_private +>im_private_mu_private : typeof im_private_mu_private +>c_private : typeof im_private_mu_private.c_private + +export var publicUse_im_private_mu_private = new im_private_mu_private.c_private(); +>publicUse_im_private_mu_private : im_private_mu_private.c_private +>new im_private_mu_private.c_private() : im_private_mu_private.c_private +>im_private_mu_private.c_private : typeof im_private_mu_private.c_private +>im_private_mu_private : typeof im_private_mu_private +>c_private : typeof im_private_mu_private.c_private + +var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); +>privateUse_im_private_mi_public : im_private_mi_public.c_public +>new im_private_mi_public.c_public() : im_private_mi_public.c_public +>im_private_mi_public.c_public : typeof im_private_mi_public.c_public +>im_private_mi_public : typeof im_private_mi_public +>c_public : typeof im_private_mi_public.c_public + +export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); +>publicUse_im_private_mi_public : im_private_mi_public.c_public +>new im_private_mi_public.c_public() : im_private_mi_public.c_public +>im_private_mi_public.c_public : typeof im_private_mi_public.c_public +>im_private_mi_public : typeof im_private_mi_public +>c_public : typeof im_private_mi_public.c_public + +var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); +>privateUse_im_private_mi_public : im_private_mi_public.c_public +>new im_private_mi_public.c_public() : im_private_mi_public.c_public +>im_private_mi_public.c_public : typeof im_private_mi_public.c_public +>im_private_mi_public : typeof im_private_mi_public +>c_public : typeof im_private_mi_public.c_public + +export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); +>publicUse_im_private_mi_public : im_private_mi_public.c_public +>new im_private_mi_public.c_public() : im_private_mi_public.c_public +>im_private_mi_public.c_public : typeof im_private_mi_public.c_public +>im_private_mi_public : typeof im_private_mi_public +>c_public : typeof im_private_mi_public.c_public + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts === +// Public elements +export class c_public { +>c_public : c_public + + foo: string; +>foo : string +} + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts === +export class c_public { +>c_public : c_public + + bar: string; +>bar : string +} + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts === +// private elements +// Export - Error ambient modules allowed only in global +declare module 'm' { +>'m' : typeof import("m") + + export class c_private { +>c_private : c_private + + baz: string +>baz : string + } +} + +=== privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts === +declare module 'm2' { +>'m2' : typeof import("m2") + + export class c_private { +>c_private : c_private + + bing: string; +>bing : string + } +} + diff --git a/testdata/baselines/reference/submodule/compiler/propTypeValidatorInference.js b/testdata/baselines/reference/submodule/compiler/propTypeValidatorInference.js index 08487d20b5..50643f7024 100644 --- a/testdata/baselines/reference/submodule/compiler/propTypeValidatorInference.js +++ b/testdata/baselines/reference/submodule/compiler/propTypeValidatorInference.js @@ -91,8 +91,41 @@ const x: true = (null as any as ExtractPropsMatch); //// [file.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const PropTypes = require("prop-types"); +const PropTypes = __importStar(require("prop-types")); const innerProps = { foo: PropTypes.string.isRequired, bar: PropTypes.bool, diff --git a/testdata/baselines/reference/submodule/compiler/propTypeValidatorInference.js.diff b/testdata/baselines/reference/submodule/compiler/propTypeValidatorInference.js.diff index 4504bc62e8..43a943b68f 100644 --- a/testdata/baselines/reference/submodule/compiler/propTypeValidatorInference.js.diff +++ b/testdata/baselines/reference/submodule/compiler/propTypeValidatorInference.js.diff @@ -1,11 +1,11 @@ --- old.propTypeValidatorInference.js +++ new.propTypeValidatorInference.js -@@= skipped -91, +91 lines =@@ - //// [file.js] - "use strict"; +@@= skipped -124, +124 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var PropTypes = require("prop-types"); -+const PropTypes = require("prop-types"); +-var PropTypes = __importStar(require("prop-types")); ++const PropTypes = __importStar(require("prop-types")); const innerProps = { foo: PropTypes.string.isRequired, bar: PropTypes.bool, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.errors.txt b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.errors.txt new file mode 100644 index 0000000000..74353bba9b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.errors.txt @@ -0,0 +1,36 @@ +propertyIdentityWithPrivacyMismatch_1.ts(5,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'Foo', but here has type 'Foo'. +propertyIdentityWithPrivacyMismatch_1.ts(13,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'y' must be of type 'Foo1', but here has type 'Foo2'. + + +==== propertyIdentityWithPrivacyMismatch_1.ts (2 errors) ==== + /// + import m1 = require('mod1'); + import m2 = require('mod2'); + var x: m1.Foo; + var x: m2.Foo; // Should be error (mod1.Foo !== mod2.Foo) + ~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'Foo', but here has type 'Foo'. +!!! related TS6203 propertyIdentityWithPrivacyMismatch_1.ts:4:5: 'x' was also declared here. + class Foo1 { + private n; + } + class Foo2 { + private n; + } + var y: Foo1; + var y: Foo2; + ~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'y' must be of type 'Foo1', but here has type 'Foo2'. +!!! related TS6203 propertyIdentityWithPrivacyMismatch_1.ts:12:5: 'y' was also declared here. +==== propertyIdentityWithPrivacyMismatch_0.ts (0 errors) ==== + declare module 'mod1' { + class Foo { + private n; + } + } + declare module 'mod2' { + class Foo { + private n; + } + } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.js b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.js new file mode 100644 index 0000000000..3053609d1f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.js @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts] //// + +//// [propertyIdentityWithPrivacyMismatch_0.ts] +declare module 'mod1' { + class Foo { + private n; + } +} +declare module 'mod2' { + class Foo { + private n; + } +} + +//// [propertyIdentityWithPrivacyMismatch_1.ts] +/// +import m1 = require('mod1'); +import m2 = require('mod2'); +var x: m1.Foo; +var x: m2.Foo; // Should be error (mod1.Foo !== mod2.Foo) +class Foo1 { + private n; +} +class Foo2 { + private n; +} +var y: Foo1; +var y: Foo2; + +//// [propertyIdentityWithPrivacyMismatch_0.js] +//// [propertyIdentityWithPrivacyMismatch_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var x; +var x; // Should be error (mod1.Foo !== mod2.Foo) +class Foo1 { + n; +} +class Foo2 { + n; +} +var y; +var y; diff --git a/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.js.diff b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.js.diff new file mode 100644 index 0000000000..46c3178dc3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.js.diff @@ -0,0 +1,13 @@ +--- old.propertyIdentityWithPrivacyMismatch.js ++++ new.propertyIdentityWithPrivacyMismatch.js +@@= skipped -33, +33 lines =@@ + var x; + var x; // Should be error (mod1.Foo !== mod2.Foo) + class Foo1 { ++ n; + } + class Foo2 { ++ n; + } + var y; + var y; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.symbols b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.symbols new file mode 100644 index 0000000000..307638c665 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.symbols @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts] //// + +=== propertyIdentityWithPrivacyMismatch_1.ts === +/// +import m1 = require('mod1'); +>m1 : Symbol(m1, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 0, 0)) + +import m2 = require('mod2'); +>m2 : Symbol(m2, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 1, 28)) + +var x: m1.Foo; +>x : Symbol(x, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 3, 3), Decl(propertyIdentityWithPrivacyMismatch_1.ts, 4, 3)) +>m1 : Symbol(m1, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 0, 0)) +>Foo : Symbol(m1.Foo, Decl(propertyIdentityWithPrivacyMismatch_0.ts, 0, 23)) + +var x: m2.Foo; // Should be error (mod1.Foo !== mod2.Foo) +>x : Symbol(x, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 3, 3), Decl(propertyIdentityWithPrivacyMismatch_1.ts, 4, 3)) +>m2 : Symbol(m2, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 1, 28)) +>Foo : Symbol(m2.Foo, Decl(propertyIdentityWithPrivacyMismatch_0.ts, 5, 23)) + +class Foo1 { +>Foo1 : Symbol(Foo1, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 4, 14)) + + private n; +>n : Symbol(Foo1.n, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 5, 12)) +} +class Foo2 { +>Foo2 : Symbol(Foo2, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 7, 1)) + + private n; +>n : Symbol(Foo2.n, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 8, 12)) +} +var y: Foo1; +>y : Symbol(y, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 11, 3), Decl(propertyIdentityWithPrivacyMismatch_1.ts, 12, 3)) +>Foo1 : Symbol(Foo1, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 4, 14)) + +var y: Foo2; +>y : Symbol(y, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 11, 3), Decl(propertyIdentityWithPrivacyMismatch_1.ts, 12, 3)) +>Foo2 : Symbol(Foo2, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 7, 1)) + +=== propertyIdentityWithPrivacyMismatch_0.ts === +declare module 'mod1' { +>'mod1' : Symbol("mod1", Decl(propertyIdentityWithPrivacyMismatch_0.ts, 0, 0)) + + class Foo { +>Foo : Symbol(Foo, Decl(propertyIdentityWithPrivacyMismatch_0.ts, 0, 23)) + + private n; +>n : Symbol(Foo.n, Decl(propertyIdentityWithPrivacyMismatch_0.ts, 1, 15)) + } +} +declare module 'mod2' { +>'mod2' : Symbol("mod2", Decl(propertyIdentityWithPrivacyMismatch_0.ts, 4, 1)) + + class Foo { +>Foo : Symbol(Foo, Decl(propertyIdentityWithPrivacyMismatch_0.ts, 5, 23)) + + private n; +>n : Symbol(Foo.n, Decl(propertyIdentityWithPrivacyMismatch_0.ts, 6, 15)) + } +} + diff --git a/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.types b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.types new file mode 100644 index 0000000000..601f58df5d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/propertyIdentityWithPrivacyMismatch.types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts] //// + +=== propertyIdentityWithPrivacyMismatch_1.ts === +/// +import m1 = require('mod1'); +>m1 : typeof m1 + +import m2 = require('mod2'); +>m2 : typeof m2 + +var x: m1.Foo; +>x : m1.Foo +>m1 : any + +var x: m2.Foo; // Should be error (mod1.Foo !== mod2.Foo) +>x : m1.Foo +>m2 : any + +class Foo1 { +>Foo1 : Foo1 + + private n; +>n : any +} +class Foo2 { +>Foo2 : Foo2 + + private n; +>n : any +} +var y: Foo1; +>y : Foo1 + +var y: Foo2; +>y : Foo1 + +=== propertyIdentityWithPrivacyMismatch_0.ts === +declare module 'mod1' { +>'mod1' : typeof import("mod1") + + class Foo { +>Foo : Foo + + private n; +>n : any + } +} +declare module 'mod2' { +>'mod2' : typeof import("mod2") + + class Foo { +>Foo : Foo + + private n; +>n : any + } +} + diff --git a/testdata/baselines/reference/submodule/compiler/reactNamespaceImportPresevation.js b/testdata/baselines/reference/submodule/compiler/reactNamespaceImportPresevation.js index 8bb4b4f41a..04a7c867f5 100644 --- a/testdata/baselines/reference/submodule/compiler/reactNamespaceImportPresevation.js +++ b/testdata/baselines/reference/submodule/compiler/reactNamespaceImportPresevation.js @@ -15,6 +15,39 @@ declare var foo: any; //// [test.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const myReactLib = require("my-React-Lib"); // should not be elided +const myReactLib = __importStar(require("my-React-Lib")); // should not be elided ; diff --git a/testdata/baselines/reference/submodule/compiler/reactNamespaceImportPresevation.js.diff b/testdata/baselines/reference/submodule/compiler/reactNamespaceImportPresevation.js.diff index 776d5b8eac..d731b430e4 100644 --- a/testdata/baselines/reference/submodule/compiler/reactNamespaceImportPresevation.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactNamespaceImportPresevation.js.diff @@ -1,9 +1,9 @@ --- old.reactNamespaceImportPresevation.js +++ new.reactNamespaceImportPresevation.js -@@= skipped -15, +15 lines =@@ - //// [test.jsx] - "use strict"; +@@= skipped -48, +48 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var myReactLib = require("my-React-Lib"); // should not be elided -+const myReactLib = require("my-React-Lib"); // should not be elided +-var myReactLib = __importStar(require("my-React-Lib")); // should not be elided ++const myReactLib = __importStar(require("my-React-Lib")); // should not be elided ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactReadonlyHOCAssignabilityReal.js b/testdata/baselines/reference/submodule/compiler/reactReadonlyHOCAssignabilityReal.js index 398c6067ee..8c22bda6f0 100644 --- a/testdata/baselines/reference/submodule/compiler/reactReadonlyHOCAssignabilityReal.js +++ b/testdata/baselines/reference/submodule/compiler/reactReadonlyHOCAssignabilityReal.js @@ -25,9 +25,42 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); function myHigherOrderComponent(Inner) { return class OuterComponent extends React.Component { render() { diff --git a/testdata/baselines/reference/submodule/compiler/reactReadonlyHOCAssignabilityReal.js.diff b/testdata/baselines/reference/submodule/compiler/reactReadonlyHOCAssignabilityReal.js.diff index ced1b236d8..e89557ca64 100644 --- a/testdata/baselines/reference/submodule/compiler/reactReadonlyHOCAssignabilityReal.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactReadonlyHOCAssignabilityReal.js.diff @@ -1,11 +1,11 @@ --- old.reactReadonlyHOCAssignabilityReal.js +++ new.reactReadonlyHOCAssignabilityReal.js -@@= skipped -26, +26 lines =@@ - }; +@@= skipped -59, +59 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function myHigherOrderComponent(Inner) { return class OuterComponent extends React.Component { render() { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js b/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js index 366d48ac9a..ff6d8e7375 100644 --- a/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js +++ b/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js @@ -30,8 +30,41 @@ const RandomComponent: React.SFC = () => { //// [reactSFCAndFunctionResolvable.js] "use strict"; /// +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const React = require("react"); +const React = __importStar(require("react")); const RandomComponent = () => { const Component = condition1 ? Radio diff --git a/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js.diff b/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js.diff index 6d6fd84e25..5b9e54d964 100644 --- a/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js.diff @@ -1,11 +1,11 @@ --- old.reactSFCAndFunctionResolvable.js +++ new.reactSFCAndFunctionResolvable.js -@@= skipped -30, +30 lines =@@ - "use strict"; - /// +@@= skipped -63, +63 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const RandomComponent = () => { const Component = condition1 ? Radio \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js index 07eb8f5ce7..273bd624d0 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js +++ b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js @@ -27,8 +27,41 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const React = require("react"); +const React = __importStar(require("react")); const classes = ""; const rest = {}; const children = []; diff --git a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js.diff b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js.diff index 95bdd6f6ec..b5ae67ef8e 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js.diff @@ -1,11 +1,11 @@ --- old.reactTagNameComponentWithPropsNoOOM.js +++ new.reactTagNameComponentWithPropsNoOOM.js -@@= skipped -27, +27 lines =@@ - return __assign.apply(this, arguments); - }; +@@= skipped -60, +60 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const classes = ""; const rest = {}; const children = []; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js index f7ab3ffc65..cf42e0f0f0 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js +++ b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js @@ -27,8 +27,41 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const React = require("react"); +const React = __importStar(require("react")); const classes = ""; const rest = {}; const children = []; diff --git a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js.diff b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js.diff index ccc77b4289..9c224671ac 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js.diff @@ -1,11 +1,11 @@ --- old.reactTagNameComponentWithPropsNoOOM2.js +++ new.reactTagNameComponentWithPropsNoOOM2.js -@@= skipped -27, +27 lines =@@ - return __assign.apply(this, arguments); - }; +@@= skipped -60, +60 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const classes = ""; const rest = {}; const children = []; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactTransitiveImportHasValidDeclaration.js b/testdata/baselines/reference/submodule/compiler/reactTransitiveImportHasValidDeclaration.js index 84e33dbff6..e9f66549cb 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTransitiveImportHasValidDeclaration.js +++ b/testdata/baselines/reference/submodule/compiler/reactTransitiveImportHasValidDeclaration.js @@ -36,8 +36,11 @@ export default Form //// [index.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const react_emotion_1 = require("react-emotion"); +const react_emotion_1 = __importDefault(require("react-emotion")); const Form = (0, react_emotion_1.default)('div')({ color: "red" }); exports.default = Form; diff --git a/testdata/baselines/reference/submodule/compiler/reactTransitiveImportHasValidDeclaration.js.diff b/testdata/baselines/reference/submodule/compiler/reactTransitiveImportHasValidDeclaration.js.diff index 451a16d8c8..2ce025d9bf 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTransitiveImportHasValidDeclaration.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactTransitiveImportHasValidDeclaration.js.diff @@ -1,10 +1,10 @@ --- old.reactTransitiveImportHasValidDeclaration.js +++ new.reactTransitiveImportHasValidDeclaration.js -@@= skipped -36, +36 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -39, +39 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var react_emotion_1 = require("react-emotion"); -+const react_emotion_1 = require("react-emotion"); +-var react_emotion_1 = __importDefault(require("react-emotion")); ++const react_emotion_1 = __importDefault(require("react-emotion")); const Form = (0, react_emotion_1.default)('div')({ color: "red" }); exports.default = Form; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.errors.txt b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.errors.txt new file mode 100644 index 0000000000..54f4c6840e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.errors.txt @@ -0,0 +1,23 @@ +recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts(3,5): error TS2303: Circular definition of import alias 'self'. + + +==== recursiveExportAssignmentAndFindAliasedType1_moduleA.ts (0 errors) ==== + /// + import moduleC = require("moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); + export var b: ClassB; // This should result in type ClassB +==== recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts (2 errors) ==== + declare module "moduleC" { + import self = require("moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + } + +==== recursiveExportAssignmentAndFindAliasedType1_moduleB.ts (0 errors) ==== + class ClassB { } + export = ClassB; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.errors.txt.diff new file mode 100644 index 0000000000..3176798bca --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.errors.txt.diff @@ -0,0 +1,24 @@ +--- old.recursiveExportAssignmentAndFindAliasedType1.errors.txt ++++ new.recursiveExportAssignmentAndFindAliasedType1.errors.txt +@@= skipped -0, +0 lines =@@ + recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts(3,5): error TS2303: Circular definition of import alias 'self'. + + + ==== recursiveExportAssignmentAndFindAliasedType1_moduleA.ts (0 errors) ==== +@@= skipped -5, +6 lines =@@ + import moduleC = require("moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); + export var b: ClassB; // This should result in type ClassB +-==== recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts (1 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts (2 errors) ==== + declare module "moduleC" { + import self = require("moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + !!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + } + + ==== recursiveExportAssignmentAndFindAliasedType1_moduleB.ts (0 errors) ==== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.js b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.js new file mode 100644 index 0000000000..dd5d73bf8e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.js @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType1.ts] //// + +//// [recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts] +declare module "moduleC" { + import self = require("moduleC"); + export = self; +} + +//// [recursiveExportAssignmentAndFindAliasedType1_moduleB.ts] +class ClassB { } +export = ClassB; + +//// [recursiveExportAssignmentAndFindAliasedType1_moduleA.ts] +/// +import moduleC = require("moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); +export var b: ClassB; // This should result in type ClassB + +//// [recursiveExportAssignmentAndFindAliasedType1_moduleB.js] +"use strict"; +class ClassB { +} +module.exports = ClassB; +//// [recursiveExportAssignmentAndFindAliasedType1_moduleA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.symbols b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.symbols new file mode 100644 index 0000000000..39da715015 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType1.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType1_moduleA.ts === +/// +import moduleC = require("moduleC"); +>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleA.ts, 0, 0)) + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleA.ts, 1, 36)) + +export var b: ClassB; // This should result in type ClassB +>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleA.ts, 3, 10)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleA.ts, 1, 36)) + +=== recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts === +declare module "moduleC" { +>"moduleC" : Symbol("moduleC", Decl(recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts, 0, 0)) + + import self = require("moduleC"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts, 0, 26)) + + export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts, 0, 26)) +} + +=== recursiveExportAssignmentAndFindAliasedType1_moduleB.ts === +class ClassB { } +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleB.ts, 0, 0)) + +export = ClassB; +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleB.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.types b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.types new file mode 100644 index 0000000000..36005ae3a6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType1.types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType1.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType1_moduleA.ts === +/// +import moduleC = require("moduleC"); +>moduleC : any + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); +>ClassB : typeof ClassB + +export var b: ClassB; // This should result in type ClassB +>b : ClassB + +=== recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts === +declare module "moduleC" { +>"moduleC" : typeof import("moduleC") + + import self = require("moduleC"); +>self : any + + export = self; +>self : any +} + +=== recursiveExportAssignmentAndFindAliasedType1_moduleB.ts === +class ClassB { } +>ClassB : ClassB + +export = ClassB; +>ClassB : ClassB + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.errors.txt b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.errors.txt new file mode 100644 index 0000000000..8366d3ed78 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.errors.txt @@ -0,0 +1,33 @@ +recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(3,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(6,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(7,5): error TS2303: Circular definition of import alias 'self'. + + +==== recursiveExportAssignmentAndFindAliasedType2_moduleA.ts (0 errors) ==== + /// + import moduleC = require("moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); + export var b: ClassB; // This should result in type ClassB +==== recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts (4 errors) ==== + declare module "moduleC" { + import self = require("moduleD"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + } + declare module "moduleD" { + import self = require("moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + } + +==== recursiveExportAssignmentAndFindAliasedType2_moduleB.ts (0 errors) ==== + class ClassB { } + export = ClassB; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.errors.txt.diff new file mode 100644 index 0000000000..a686e629a5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.errors.txt.diff @@ -0,0 +1,34 @@ +--- old.recursiveExportAssignmentAndFindAliasedType2.errors.txt ++++ new.recursiveExportAssignmentAndFindAliasedType2.errors.txt +@@= skipped -0, +0 lines =@@ + recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(3,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(6,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(7,5): error TS2303: Circular definition of import alias 'self'. + + + ==== recursiveExportAssignmentAndFindAliasedType2_moduleA.ts (0 errors) ==== +@@= skipped -5, +8 lines =@@ + import moduleC = require("moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); + export var b: ClassB; // This should result in type ClassB +-==== recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts (1 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts (4 errors) ==== + declare module "moduleC" { + import self = require("moduleD"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + !!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + } + declare module "moduleD" { + import self = require("moduleC"); ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + } + + ==== recursiveExportAssignmentAndFindAliasedType2_moduleB.ts (0 errors) ==== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.js b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.js new file mode 100644 index 0000000000..da82910967 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2.ts] //// + +//// [recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts] +declare module "moduleC" { + import self = require("moduleD"); + export = self; +} +declare module "moduleD" { + import self = require("moduleC"); + export = self; +} + +//// [recursiveExportAssignmentAndFindAliasedType2_moduleB.ts] +class ClassB { } +export = ClassB; + +//// [recursiveExportAssignmentAndFindAliasedType2_moduleA.ts] +/// +import moduleC = require("moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); +export var b: ClassB; // This should result in type ClassB + +//// [recursiveExportAssignmentAndFindAliasedType2_moduleB.js] +"use strict"; +class ClassB { +} +module.exports = ClassB; +//// [recursiveExportAssignmentAndFindAliasedType2_moduleA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.symbols b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.symbols new file mode 100644 index 0000000000..54bd6aae65 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.symbols @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType2_moduleA.ts === +/// +import moduleC = require("moduleC"); +>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleA.ts, 0, 0)) + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleA.ts, 1, 36)) + +export var b: ClassB; // This should result in type ClassB +>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleA.ts, 3, 10)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleA.ts, 1, 36)) + +=== recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts === +declare module "moduleC" { +>"moduleC" : Symbol("moduleC", Decl(recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts, 0, 0)) + + import self = require("moduleD"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts, 0, 26)) + + export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts, 0, 26)) +} +declare module "moduleD" { +>"moduleD" : Symbol("moduleD", Decl(recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts, 3, 1)) + + import self = require("moduleC"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts, 4, 26)) + + export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts, 4, 26)) +} + +=== recursiveExportAssignmentAndFindAliasedType2_moduleB.ts === +class ClassB { } +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleB.ts, 0, 0)) + +export = ClassB; +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleB.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.types b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.types new file mode 100644 index 0000000000..a90db40780 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType2.types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType2_moduleA.ts === +/// +import moduleC = require("moduleC"); +>moduleC : any + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); +>ClassB : typeof ClassB + +export var b: ClassB; // This should result in type ClassB +>b : ClassB + +=== recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts === +declare module "moduleC" { +>"moduleC" : typeof import("moduleC") + + import self = require("moduleD"); +>self : any + + export = self; +>self : any +} +declare module "moduleD" { +>"moduleD" : typeof import("moduleD") + + import self = require("moduleC"); +>self : any + + export = self; +>self : any +} + +=== recursiveExportAssignmentAndFindAliasedType2_moduleB.ts === +class ClassB { } +>ClassB : ClassB + +export = ClassB; +>ClassB : ClassB + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.errors.txt b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.errors.txt new file mode 100644 index 0000000000..45e03abe17 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.errors.txt @@ -0,0 +1,43 @@ +recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(3,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(6,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(7,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(10,5): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(11,5): error TS2303: Circular definition of import alias 'self'. + + +==== recursiveExportAssignmentAndFindAliasedType3_moduleA.ts (0 errors) ==== + /// + import moduleC = require("moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); + export var b: ClassB; // This should result in type ClassB +==== recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts (6 errors) ==== + declare module "moduleC" { + import self = require("moduleD"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + } + declare module "moduleD" { + import self = require("moduleE"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + } + declare module "moduleE" { + import self = require("moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + } + +==== recursiveExportAssignmentAndFindAliasedType3_moduleB.ts (0 errors) ==== + class ClassB { } + export = ClassB; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.errors.txt.diff new file mode 100644 index 0000000000..c4ef8f002b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.errors.txt.diff @@ -0,0 +1,44 @@ +--- old.recursiveExportAssignmentAndFindAliasedType3.errors.txt ++++ new.recursiveExportAssignmentAndFindAliasedType3.errors.txt +@@= skipped -0, +0 lines =@@ + recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(3,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(6,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(7,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(10,5): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(11,5): error TS2303: Circular definition of import alias 'self'. + + + ==== recursiveExportAssignmentAndFindAliasedType3_moduleA.ts (0 errors) ==== +@@= skipped -5, +10 lines =@@ + import moduleC = require("moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); + export var b: ClassB; // This should result in type ClassB +-==== recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts (1 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts (6 errors) ==== + declare module "moduleC" { + import self = require("moduleD"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + !!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + } + declare module "moduleD" { + import self = require("moduleE"); ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + } + declare module "moduleE" { + import self = require("moduleC"); ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + } + + ==== recursiveExportAssignmentAndFindAliasedType3_moduleB.ts (0 errors) ==== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.js b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.js new file mode 100644 index 0000000000..97fd3d5538 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType3.ts] //// + +//// [recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts] +declare module "moduleC" { + import self = require("moduleD"); + export = self; +} +declare module "moduleD" { + import self = require("moduleE"); + export = self; +} +declare module "moduleE" { + import self = require("moduleC"); + export = self; +} + +//// [recursiveExportAssignmentAndFindAliasedType3_moduleB.ts] +class ClassB { } +export = ClassB; + +//// [recursiveExportAssignmentAndFindAliasedType3_moduleA.ts] +/// +import moduleC = require("moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); +export var b: ClassB; // This should result in type ClassB + +//// [recursiveExportAssignmentAndFindAliasedType3_moduleB.js] +"use strict"; +class ClassB { +} +module.exports = ClassB; +//// [recursiveExportAssignmentAndFindAliasedType3_moduleA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.symbols b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.symbols new file mode 100644 index 0000000000..9198693250 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType3.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType3_moduleA.ts === +/// +import moduleC = require("moduleC"); +>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleA.ts, 0, 0)) + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleA.ts, 1, 36)) + +export var b: ClassB; // This should result in type ClassB +>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleA.ts, 3, 10)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleA.ts, 1, 36)) + +=== recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts === +declare module "moduleC" { +>"moduleC" : Symbol("moduleC", Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 0, 0)) + + import self = require("moduleD"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 0, 26)) + + export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 0, 26)) +} +declare module "moduleD" { +>"moduleD" : Symbol("moduleD", Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 3, 1)) + + import self = require("moduleE"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 4, 26)) + + export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 4, 26)) +} +declare module "moduleE" { +>"moduleE" : Symbol("moduleE", Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 7, 1)) + + import self = require("moduleC"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 8, 26)) + + export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts, 8, 26)) +} + +=== recursiveExportAssignmentAndFindAliasedType3_moduleB.ts === +class ClassB { } +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleB.ts, 0, 0)) + +export = ClassB; +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleB.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.types b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.types new file mode 100644 index 0000000000..6372d180ee --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType3.types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType3.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType3_moduleA.ts === +/// +import moduleC = require("moduleC"); +>moduleC : any + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); +>ClassB : typeof ClassB + +export var b: ClassB; // This should result in type ClassB +>b : ClassB + +=== recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts === +declare module "moduleC" { +>"moduleC" : typeof import("moduleC") + + import self = require("moduleD"); +>self : any + + export = self; +>self : any +} +declare module "moduleD" { +>"moduleD" : typeof import("moduleD") + + import self = require("moduleE"); +>self : any + + export = self; +>self : any +} +declare module "moduleE" { +>"moduleE" : typeof import("moduleE") + + import self = require("moduleC"); +>self : any + + export = self; +>self : any +} + +=== recursiveExportAssignmentAndFindAliasedType3_moduleB.ts === +class ClassB { } +>ClassB : ClassB + +export = ClassB; +>ClassB : ClassB + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.errors.txt b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.errors.txt new file mode 100644 index 0000000000..27a0b13e2b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.errors.txt @@ -0,0 +1,20 @@ +recursiveExportAssignmentAndFindAliasedType4_moduleC.ts(1,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType4_moduleC.ts(2,1): error TS2303: Circular definition of import alias 'self'. + + +==== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts (0 errors) ==== + import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB"); + export var b: ClassB; // This should result in type ClassB +==== recursiveExportAssignmentAndFindAliasedType4_moduleC.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + +==== recursiveExportAssignmentAndFindAliasedType4_moduleB.ts (0 errors) ==== + class ClassB { } + export = ClassB; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.errors.txt.diff new file mode 100644 index 0000000000..72fe0ce09a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.errors.txt.diff @@ -0,0 +1,22 @@ +--- old.recursiveExportAssignmentAndFindAliasedType4.errors.txt ++++ new.recursiveExportAssignmentAndFindAliasedType4.errors.txt +@@= skipped -0, +0 lines =@@ + recursiveExportAssignmentAndFindAliasedType4_moduleC.ts(1,1): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType4_moduleC.ts(2,1): error TS2303: Circular definition of import alias 'self'. + + + ==== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts (0 errors) ==== + import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB"); + export var b: ClassB; // This should result in type ClassB +-==== recursiveExportAssignmentAndFindAliasedType4_moduleC.ts (1 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType4_moduleC.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + !!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + + ==== recursiveExportAssignmentAndFindAliasedType4_moduleB.ts (0 errors) ==== + class ClassB { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.js b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.js new file mode 100644 index 0000000000..d71f2af0f1 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.js @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] //// + +//// [recursiveExportAssignmentAndFindAliasedType4_moduleC.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +export = self; + +//// [recursiveExportAssignmentAndFindAliasedType4_moduleB.ts] +class ClassB { } +export = ClassB; + +//// [recursiveExportAssignmentAndFindAliasedType4_moduleA.ts] +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB"); +export var b: ClassB; // This should result in type ClassB + +//// [recursiveExportAssignmentAndFindAliasedType4_moduleC.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +module.exports = self; +//// [recursiveExportAssignmentAndFindAliasedType4_moduleB.js] +"use strict"; +class ClassB { +} +module.exports = ClassB; +//// [recursiveExportAssignmentAndFindAliasedType4_moduleA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.js.diff new file mode 100644 index 0000000000..fdee67c32e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.js.diff @@ -0,0 +1,11 @@ +--- old.recursiveExportAssignmentAndFindAliasedType4.js ++++ new.recursiveExportAssignmentAndFindAliasedType4.js +@@= skipped -14, +14 lines =@@ + + //// [recursiveExportAssignmentAndFindAliasedType4_moduleC.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); + module.exports = self; + //// [recursiveExportAssignmentAndFindAliasedType4_moduleB.js] + "use strict"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.symbols b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.symbols new file mode 100644 index 0000000000..be2c5d433a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts === +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 0)) + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB"); +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 83)) + +export var b: ClassB; // This should result in type ClassB +>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 2, 10)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 83)) + +=== recursiveExportAssignmentAndFindAliasedType4_moduleC.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleC.ts, 0, 0)) + +export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleC.ts, 0, 0)) + +=== recursiveExportAssignmentAndFindAliasedType4_moduleB.ts === +class ClassB { } +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleB.ts, 0, 0)) + +export = ClassB; +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleB.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.types b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.types new file mode 100644 index 0000000000..efeacd4c08 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType4.types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts === +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +>moduleC : any + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB"); +>ClassB : typeof ClassB + +export var b: ClassB; // This should result in type ClassB +>b : ClassB + +=== recursiveExportAssignmentAndFindAliasedType4_moduleC.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +>self : any + +export = self; +>self : any + +=== recursiveExportAssignmentAndFindAliasedType4_moduleB.ts === +class ClassB { } +>ClassB : ClassB + +export = ClassB; +>ClassB : ClassB + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.errors.txt b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.errors.txt new file mode 100644 index 0000000000..5920c89151 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.errors.txt @@ -0,0 +1,30 @@ +recursiveExportAssignmentAndFindAliasedType5_moduleC.ts(1,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType5_moduleC.ts(2,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType5_moduleD.ts(1,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType5_moduleD.ts(2,1): error TS2303: Circular definition of import alias 'self'. + + +==== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts (0 errors) ==== + import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB"); + export var b: ClassB; // This should result in type ClassB +==== recursiveExportAssignmentAndFindAliasedType5_moduleC.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + +==== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + +==== recursiveExportAssignmentAndFindAliasedType5_moduleB.ts (0 errors) ==== + class ClassB { } + export = ClassB; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.errors.txt.diff new file mode 100644 index 0000000000..688a30932e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.errors.txt.diff @@ -0,0 +1,33 @@ +--- old.recursiveExportAssignmentAndFindAliasedType5.errors.txt ++++ new.recursiveExportAssignmentAndFindAliasedType5.errors.txt +@@= skipped -0, +0 lines =@@ ++recursiveExportAssignmentAndFindAliasedType5_moduleC.ts(1,1): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType5_moduleC.ts(2,1): error TS2303: Circular definition of import alias 'self'. + recursiveExportAssignmentAndFindAliasedType5_moduleD.ts(1,1): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType5_moduleD.ts(2,1): error TS2303: Circular definition of import alias 'self'. + + + ==== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts (0 errors) ==== + import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB"); + export var b: ClassB; // This should result in type ClassB +-==== recursiveExportAssignmentAndFindAliasedType5_moduleC.ts (0 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType5_moduleC.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + +-==== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts (1 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + !!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + + ==== recursiveExportAssignmentAndFindAliasedType5_moduleB.ts (0 errors) ==== + class ClassB { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.js b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.js new file mode 100644 index 0000000000..c910426875 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] //// + +//// [recursiveExportAssignmentAndFindAliasedType5_moduleC.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); +export = self; + +//// [recursiveExportAssignmentAndFindAliasedType5_moduleD.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +export = self; + +//// [recursiveExportAssignmentAndFindAliasedType5_moduleB.ts] +class ClassB { } +export = ClassB; + +//// [recursiveExportAssignmentAndFindAliasedType5_moduleA.ts] +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB"); +export var b: ClassB; // This should result in type ClassB + +//// [recursiveExportAssignmentAndFindAliasedType5_moduleD.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +module.exports = self; +//// [recursiveExportAssignmentAndFindAliasedType5_moduleC.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); +module.exports = self; +//// [recursiveExportAssignmentAndFindAliasedType5_moduleB.js] +"use strict"; +class ClassB { +} +module.exports = ClassB; +//// [recursiveExportAssignmentAndFindAliasedType5_moduleA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.js.diff new file mode 100644 index 0000000000..b73424c230 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.js.diff @@ -0,0 +1,16 @@ +--- old.recursiveExportAssignmentAndFindAliasedType5.js ++++ new.recursiveExportAssignmentAndFindAliasedType5.js +@@= skipped -18, +18 lines =@@ + + //// [recursiveExportAssignmentAndFindAliasedType5_moduleD.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); + module.exports = self; + //// [recursiveExportAssignmentAndFindAliasedType5_moduleC.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); + module.exports = self; + //// [recursiveExportAssignmentAndFindAliasedType5_moduleB.js] + "use strict"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.symbols b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.symbols new file mode 100644 index 0000000000..45145f3995 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts === +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 0)) + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB"); +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 83)) + +export var b: ClassB; // This should result in type ClassB +>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 2, 10)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 83)) + +=== recursiveExportAssignmentAndFindAliasedType5_moduleC.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleC.ts, 0, 0)) + +export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleC.ts, 0, 0)) + +=== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleD.ts, 0, 0)) + +export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleD.ts, 0, 0)) + +=== recursiveExportAssignmentAndFindAliasedType5_moduleB.ts === +class ClassB { } +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleB.ts, 0, 0)) + +export = ClassB; +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleB.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.types b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.types new file mode 100644 index 0000000000..245a557d13 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType5.types @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts === +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +>moduleC : any + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB"); +>ClassB : typeof ClassB + +export var b: ClassB; // This should result in type ClassB +>b : ClassB + +=== recursiveExportAssignmentAndFindAliasedType5_moduleC.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); +>self : any + +export = self; +>self : any + +=== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +>self : any + +export = self; +>self : any + +=== recursiveExportAssignmentAndFindAliasedType5_moduleB.ts === +class ClassB { } +>ClassB : ClassB + +export = ClassB; +>ClassB : ClassB + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.errors.txt b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.errors.txt new file mode 100644 index 0000000000..431089345f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.errors.txt @@ -0,0 +1,40 @@ +recursiveExportAssignmentAndFindAliasedType6_moduleC.ts(1,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType6_moduleC.ts(2,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType6_moduleD.ts(1,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType6_moduleD.ts(2,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType6_moduleE.ts(1,1): error TS2303: Circular definition of import alias 'self'. +recursiveExportAssignmentAndFindAliasedType6_moduleE.ts(2,1): error TS2303: Circular definition of import alias 'self'. + + +==== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts (0 errors) ==== + import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB"); + export var b: ClassB; // This should result in type ClassB +==== recursiveExportAssignmentAndFindAliasedType6_moduleC.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + +==== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + +==== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + export = self; + ~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'self'. + +==== recursiveExportAssignmentAndFindAliasedType6_moduleB.ts (0 errors) ==== + class ClassB { } + export = ClassB; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.errors.txt.diff new file mode 100644 index 0000000000..e6311ffd5f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.errors.txt.diff @@ -0,0 +1,44 @@ +--- old.recursiveExportAssignmentAndFindAliasedType6.errors.txt ++++ new.recursiveExportAssignmentAndFindAliasedType6.errors.txt +@@= skipped -0, +0 lines =@@ ++recursiveExportAssignmentAndFindAliasedType6_moduleC.ts(1,1): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType6_moduleC.ts(2,1): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType6_moduleD.ts(1,1): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType6_moduleD.ts(2,1): error TS2303: Circular definition of import alias 'self'. + recursiveExportAssignmentAndFindAliasedType6_moduleE.ts(1,1): error TS2303: Circular definition of import alias 'self'. ++recursiveExportAssignmentAndFindAliasedType6_moduleE.ts(2,1): error TS2303: Circular definition of import alias 'self'. + + + ==== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts (0 errors) ==== + import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB"); + export var b: ClassB; // This should result in type ClassB +-==== recursiveExportAssignmentAndFindAliasedType6_moduleC.ts (0 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType6_moduleC.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + +-==== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts (0 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + +-==== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts (1 errors) ==== ++==== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts (2 errors) ==== + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + !!! error TS2303: Circular definition of import alias 'self'. + export = self; ++ ~~~~~~~~~~~~~~ ++!!! error TS2303: Circular definition of import alias 'self'. + + ==== recursiveExportAssignmentAndFindAliasedType6_moduleB.ts (0 errors) ==== + class ClassB { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.js b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.js new file mode 100644 index 0000000000..ee08185a0c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.js @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] //// + +//// [recursiveExportAssignmentAndFindAliasedType6_moduleC.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); +export = self; + +//// [recursiveExportAssignmentAndFindAliasedType6_moduleD.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); +export = self; + +//// [recursiveExportAssignmentAndFindAliasedType6_moduleE.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +export = self; + +//// [recursiveExportAssignmentAndFindAliasedType6_moduleB.ts] +class ClassB { } +export = ClassB; + +//// [recursiveExportAssignmentAndFindAliasedType6_moduleA.ts] +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB"); +export var b: ClassB; // This should result in type ClassB + +//// [recursiveExportAssignmentAndFindAliasedType6_moduleE.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +module.exports = self; +//// [recursiveExportAssignmentAndFindAliasedType6_moduleD.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); +module.exports = self; +//// [recursiveExportAssignmentAndFindAliasedType6_moduleC.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); +module.exports = self; +//// [recursiveExportAssignmentAndFindAliasedType6_moduleB.js] +"use strict"; +class ClassB { +} +module.exports = ClassB; +//// [recursiveExportAssignmentAndFindAliasedType6_moduleA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.js.diff new file mode 100644 index 0000000000..b8f781b0a0 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.js.diff @@ -0,0 +1,21 @@ +--- old.recursiveExportAssignmentAndFindAliasedType6.js ++++ new.recursiveExportAssignmentAndFindAliasedType6.js +@@= skipped -22, +22 lines =@@ + + //// [recursiveExportAssignmentAndFindAliasedType6_moduleE.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); + module.exports = self; + //// [recursiveExportAssignmentAndFindAliasedType6_moduleD.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); + module.exports = self; + //// [recursiveExportAssignmentAndFindAliasedType6_moduleC.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); + module.exports = self; + //// [recursiveExportAssignmentAndFindAliasedType6_moduleB.js] + "use strict"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.symbols b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.symbols new file mode 100644 index 0000000000..55f08c9021 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.symbols @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts === +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 0)) + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB"); +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 83)) + +export var b: ClassB; // This should result in type ClassB +>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 2, 10)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 83)) + +=== recursiveExportAssignmentAndFindAliasedType6_moduleC.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleC.ts, 0, 0)) + +export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleC.ts, 0, 0)) + +=== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleD.ts, 0, 0)) + +export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleD.ts, 0, 0)) + +=== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleE.ts, 0, 0)) + +export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleE.ts, 0, 0)) + +=== recursiveExportAssignmentAndFindAliasedType6_moduleB.ts === +class ClassB { } +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleB.ts, 0, 0)) + +export = ClassB; +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleB.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.types b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.types new file mode 100644 index 0000000000..4127407217 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType6.types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts === +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +>moduleC : any + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB"); +>ClassB : typeof ClassB + +export var b: ClassB; // This should result in type ClassB +>b : ClassB + +=== recursiveExportAssignmentAndFindAliasedType6_moduleC.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); +>self : any + +export = self; +>self : any + +=== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); +>self : any + +export = self; +>self : any + +=== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +>self : any + +export = self; +>self : any + +=== recursiveExportAssignmentAndFindAliasedType6_moduleB.ts === +class ClassB { } +>ClassB : ClassB + +export = ClassB; +>ClassB : ClassB + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.js b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.js new file mode 100644 index 0000000000..e98e380bb5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.js @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] //// + +//// [recursiveExportAssignmentAndFindAliasedType7_moduleC.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); +var selfVar = self; +export = selfVar; + +//// [recursiveExportAssignmentAndFindAliasedType7_moduleD.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); +export = self; + +//// [recursiveExportAssignmentAndFindAliasedType7_moduleE.ts] +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +export = self; + +//// [recursiveExportAssignmentAndFindAliasedType7_moduleB.ts] +class ClassB { } +export = ClassB; + +//// [recursiveExportAssignmentAndFindAliasedType7_moduleA.ts] +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB"); +export var b: ClassB; // This should result in type ClassB + +//// [recursiveExportAssignmentAndFindAliasedType7_moduleE.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +module.exports = self; +//// [recursiveExportAssignmentAndFindAliasedType7_moduleD.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); +module.exports = self; +//// [recursiveExportAssignmentAndFindAliasedType7_moduleC.js] +"use strict"; +const self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); +var selfVar = self; +module.exports = selfVar; +//// [recursiveExportAssignmentAndFindAliasedType7_moduleB.js] +"use strict"; +class ClassB { +} +module.exports = ClassB; +//// [recursiveExportAssignmentAndFindAliasedType7_moduleA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.js.diff new file mode 100644 index 0000000000..e1ed8ec84e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.js.diff @@ -0,0 +1,21 @@ +--- old.recursiveExportAssignmentAndFindAliasedType7.js ++++ new.recursiveExportAssignmentAndFindAliasedType7.js +@@= skipped -23, +23 lines =@@ + + //// [recursiveExportAssignmentAndFindAliasedType7_moduleE.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); + module.exports = self; + //// [recursiveExportAssignmentAndFindAliasedType7_moduleD.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); + module.exports = self; + //// [recursiveExportAssignmentAndFindAliasedType7_moduleC.js] + "use strict"; +-var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); ++const self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); + var selfVar = self; + module.exports = selfVar; + //// [recursiveExportAssignmentAndFindAliasedType7_moduleB.js] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.symbols b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.symbols new file mode 100644 index 0000000000..e9095b64c9 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType7_moduleA.ts === +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +>moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 0)) + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB"); +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 83)) + +export var b: ClassB; // This should result in type ClassB +>b : Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 2, 10)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 83)) + +=== recursiveExportAssignmentAndFindAliasedType7_moduleC.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 0, 0)) + +var selfVar = self; +>selfVar : Symbol(selfVar, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 1, 3)) +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 0, 0)) + +export = selfVar; +>selfVar : Symbol(selfVar, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 1, 3)) + +=== recursiveExportAssignmentAndFindAliasedType7_moduleD.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleD.ts, 0, 0)) + +export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleD.ts, 0, 0)) + +=== recursiveExportAssignmentAndFindAliasedType7_moduleE.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleE.ts, 0, 0)) + +export = self; +>self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleE.ts, 0, 0)) + +=== recursiveExportAssignmentAndFindAliasedType7_moduleB.ts === +class ClassB { } +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleB.ts, 0, 0)) + +export = ClassB; +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleB.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.types b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.types new file mode 100644 index 0000000000..5ae57520bb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/recursiveExportAssignmentAndFindAliasedType7.types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] //// + +=== recursiveExportAssignmentAndFindAliasedType7_moduleA.ts === +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +>moduleC : any + +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB"); +>ClassB : typeof ClassB + +export var b: ClassB; // This should result in type ClassB +>b : ClassB + +=== recursiveExportAssignmentAndFindAliasedType7_moduleC.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); +>self : any + +var selfVar = self; +>selfVar : any +>self : any + +export = selfVar; +>selfVar : any + +=== recursiveExportAssignmentAndFindAliasedType7_moduleD.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); +>self : any + +export = self; +>self : any + +=== recursiveExportAssignmentAndFindAliasedType7_moduleE.ts === +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +>self : any + +export = self; +>self : any + +=== recursiveExportAssignmentAndFindAliasedType7_moduleB.ts === +class ClassB { } +>ClassB : ClassB + +export = ClassB; +>ClassB : ClassB + diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault.js b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault.js index d8c5df7475..eeb1843da4 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault.js +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault.js @@ -14,9 +14,12 @@ exports.b = void 0; exports.b = null; //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.b = void 0; const b_1 = require("./b"); Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); const b_2 = require("./b"); -Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } }); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault.js.diff b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault.js.diff index 13d23aeb8a..3c2ca96322 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault.js.diff @@ -1,7 +1,7 @@ --- old.reexportMissingDefault.js +++ new.reexportMissingDefault.js -@@= skipped -15, +15 lines =@@ - "use strict"; +@@= skipped -18, +18 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.b = void 0; -var b_1 = require("./b"); @@ -9,4 +9,4 @@ Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); -var b_2 = require("./b"); +const b_2 = require("./b"); - Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } }); \ No newline at end of file + Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault2.js b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault2.js index 4596eb2b92..50c3bc4ec2 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault2.js +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault2.js @@ -14,9 +14,12 @@ exports.b = void 0; exports.b = null; //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.b = void 0; const b_1 = require("./b"); Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); const b_2 = require("./b"); -Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } }); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault2.js.diff b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault2.js.diff index af6a54130b..d799ddcaf3 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault2.js.diff @@ -1,7 +1,7 @@ --- old.reexportMissingDefault2.js +++ new.reexportMissingDefault2.js -@@= skipped -15, +15 lines =@@ - "use strict"; +@@= skipped -18, +18 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.b = void 0; -var b_1 = require("./b"); @@ -9,4 +9,4 @@ Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); -var b_2 = require("./b"); +const b_2 = require("./b"); - Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } }); \ No newline at end of file + Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault3.js b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault3.js index af97ed84bf..02b0c77c6a 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault3.js +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault3.js @@ -14,9 +14,12 @@ exports.b = void 0; exports.b = null; //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = exports.b = void 0; const b_1 = require("./b"); Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); const b_2 = require("./b"); -Object.defineProperty(exports, "a", { enumerable: true, get: function () { return b_2.default; } }); +Object.defineProperty(exports, "a", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault3.js.diff b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault3.js.diff index bee0f9c010..ab0ae7ccdb 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault3.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault3.js.diff @@ -1,7 +1,7 @@ --- old.reexportMissingDefault3.js +++ new.reexportMissingDefault3.js -@@= skipped -15, +15 lines =@@ - "use strict"; +@@= skipped -18, +18 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = exports.b = void 0; -var b_1 = require("./b"); @@ -9,4 +9,4 @@ Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); -var b_2 = require("./b"); +const b_2 = require("./b"); - Object.defineProperty(exports, "a", { enumerable: true, get: function () { return b_2.default; } }); \ No newline at end of file + Object.defineProperty(exports, "a", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault4.js b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault4.js index 9c0661aeb4..e0904b28a0 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault4.js +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault4.js @@ -10,9 +10,12 @@ export { default } from "./b"; //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.b = void 0; const b_1 = require("./b"); Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); const b_2 = require("./b"); -Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } }); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault4.js.diff b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault4.js.diff index b887685474..b423665146 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault4.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault4.js.diff @@ -1,7 +1,7 @@ --- old.reexportMissingDefault4.js +++ new.reexportMissingDefault4.js -@@= skipped -11, +11 lines =@@ - "use strict"; +@@= skipped -14, +14 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.b = void 0; -var b_1 = require("./b"); @@ -9,4 +9,4 @@ Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); -var b_2 = require("./b"); +const b_2 = require("./b"); - Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } }); \ No newline at end of file + Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault6.js b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault6.js index 9ff07b1c74..f778c22f6f 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault6.js +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault6.js @@ -14,9 +14,12 @@ exports.b = void 0; exports.b = null; //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.b = void 0; const b_1 = require("./b"); Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); const b_2 = require("./b"); -Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } }); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); diff --git a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault6.js.diff b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault6.js.diff index 606630a091..fdf3a34e67 100644 --- a/testdata/baselines/reference/submodule/compiler/reexportMissingDefault6.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reexportMissingDefault6.js.diff @@ -1,7 +1,7 @@ --- old.reexportMissingDefault6.js +++ new.reexportMissingDefault6.js -@@= skipped -15, +15 lines =@@ - "use strict"; +@@= skipped -18, +18 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.b = void 0; -var b_1 = require("./b"); @@ -9,4 +9,4 @@ Object.defineProperty(exports, "b", { enumerable: true, get: function () { return b_1.b; } }); -var b_2 = require("./b"); +const b_2 = require("./b"); - Object.defineProperty(exports, "default", { enumerable: true, get: function () { return b_2.default; } }); \ No newline at end of file + Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(b_2).default; } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/requireAsFunctionInExternalModule.js b/testdata/baselines/reference/submodule/compiler/requireAsFunctionInExternalModule.js index 268febfd36..142b96dc67 100644 --- a/testdata/baselines/reference/submodule/compiler/requireAsFunctionInExternalModule.js +++ b/testdata/baselines/reference/submodule/compiler/requireAsFunctionInExternalModule.js @@ -25,9 +25,42 @@ function require(a) { } function has(a) { return true; } //// [m.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.hello = hello; -const c_1 = require("./c"); +const c_1 = __importStar(require("./c")); function hello() { } if ((0, c_1.has)('ember-debug')) { (0, c_1.default)('ember-debug'); diff --git a/testdata/baselines/reference/submodule/compiler/requireAsFunctionInExternalModule.js.diff b/testdata/baselines/reference/submodule/compiler/requireAsFunctionInExternalModule.js.diff index 93d1ef728f..2d51aecbe8 100644 --- a/testdata/baselines/reference/submodule/compiler/requireAsFunctionInExternalModule.js.diff +++ b/testdata/baselines/reference/submodule/compiler/requireAsFunctionInExternalModule.js.diff @@ -1,11 +1,11 @@ --- old.requireAsFunctionInExternalModule.js +++ new.requireAsFunctionInExternalModule.js -@@= skipped -26, +26 lines =@@ - "use strict"; +@@= skipped -59, +59 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.hello = hello; --var c_1 = require("./c"); -+const c_1 = require("./c"); +-var c_1 = __importStar(require("./c")); ++const c_1 = __importStar(require("./c")); function hello() { } if ((0, c_1.has)('ember-debug')) { (0, c_1.default)('ember-debug'); diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithModuleEmitNone.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithModuleEmitNone.errors.txt.diff index 199bdfdb7c..8d2d9a075c 100644 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithModuleEmitNone.errors.txt.diff +++ b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithModuleEmitNone.errors.txt.diff @@ -2,10 +2,12 @@ +++ new.requireOfJsonFileWithModuleEmitNone.errors.txt @@= skipped -0, +0 lines =@@ -error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. +-error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -file1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'. - - -!!! error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. +-!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== file1.ts (1 errors) ==== - import * as b from './b.json'; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt.diff index ced70dff4b..65a0d5622f 100644 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt.diff +++ b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt.diff @@ -3,11 +3,13 @@ @@= skipped -0, +0 lines =@@ -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', 'commonjs', or 'es2015' or later. +-error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -file1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'. - - -!!! 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', 'commonjs', or 'es2015' or later. +-!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== file1.ts (1 errors) ==== - import * as b from './b.json'; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt deleted file mode 100644 index 9d76c9120c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -/a.ts(1,20): error TS2732: Cannot find module 'foo/bar/foobar.json'. Consider using '--resolveJsonModule' to import module with '.json' extension. -/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -/tsconfig.json(5,19): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -/tsconfig.json(5,37): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== /tsconfig.json (3 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": ["node_modules/*", "src/types"] - ~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - ~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /a.ts (1 errors) ==== - import foobar from "foo/bar/foobar.json"; - ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2732: Cannot find module 'foo/bar/foobar.json'. Consider using '--resolveJsonModule' to import module with '.json' extension. - -==== /node_modules/foo/bar/foobar.json (0 errors) ==== - { "a": 10 } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.js b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.js deleted file mode 100644 index 93cfba254a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.js +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.ts] //// - -//// [foobar.json] -{ "a": 10 } - -//// [a.ts] -import foobar from "foo/bar/foobar.json"; - - -//// [/bin/a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.symbols b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.symbols deleted file mode 100644 index 74f2e4cd7d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.ts] //// - -=== /a.ts === -import foobar from "foo/bar/foobar.json"; ->foobar : Symbol(foobar, Decl(a.ts, 0, 6)) - diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json deleted file mode 100644 index 0767776327..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json +++ /dev/null @@ -1,34 +0,0 @@ -======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. -Module name 'foo/bar/foobar.json', matched pattern '*'. -Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. -Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, JavaScript, Declaration. -File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. -File '/node_modules/foo/bar/foobar.json.ts' does not exist. -File '/node_modules/foo/bar/foobar.json.tsx' does not exist. -File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. -File '/node_modules/foo/bar/foobar.json.js' does not exist. -File '/node_modules/foo/bar/foobar.json.jsx' does not exist. -Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it. -Trying substitution 'src/types', candidate module location: 'src/types'. -Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, JavaScript, Declaration. -File '/package.json' does not exist. -Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/foo/package.json' does not exist. -File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -File '/node_modules/foo/bar/foobar.d.json.ts' does not exist according to earlier cached lookups. -File '/node_modules/foo/bar/foobar.json.ts' does not exist according to earlier cached lookups. -File '/node_modules/foo/bar/foobar.json.tsx' does not exist according to earlier cached lookups. -File '/node_modules/foo/bar/foobar.json.d.ts' does not exist according to earlier cached lookups. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. -File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -File '/node_modules/foo/bar/foobar.json.js' does not exist according to earlier cached lookups. -File '/node_modules/foo/bar/foobar.json.jsx' does not exist according to earlier cached lookups. -======== Module name 'foo/bar/foobar.json' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.types b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.types deleted file mode 100644 index 65462e500d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.types +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.ts] //// - -=== /a.ts === -import foobar from "foo/bar/foobar.json"; ->foobar : any - diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.errors.txt b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.errors.txt deleted file mode 100644 index 7c9d28533e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. - Use '"paths": {"*": ["./*"]}' instead. -/tsconfig.json(5,19): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -/tsconfig.json(5,37): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - - -==== /tsconfig.json (3 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", - ~~~~~~~~~ -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": ["node_modules/*", "src/types"] - ~~~~~~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - ~~~~~~~~~~~ -!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - }, - "allowJs": true, - "outDir": "bin" - } - } - -==== /a.ts (0 errors) ==== - import foobar from "foo/bar/foobar.json"; - -==== /node_modules/foo/bar/foobar.json (0 errors) ==== - { "a": 10 } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.js b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.js deleted file mode 100644 index 88eb73fa87..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.js +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/requireOfJsonFile_PathMapping.ts] //// - -//// [foobar.json] -{ "a": 10 } - -//// [a.ts] -import foobar from "foo/bar/foobar.json"; - - -//// [/bin/a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.symbols b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.symbols deleted file mode 100644 index 2aa0a38360..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/compiler/requireOfJsonFile_PathMapping.ts] //// - -=== /a.ts === -import foobar from "foo/bar/foobar.json"; ->foobar : Symbol(foobar, Decl(a.ts, 0, 6)) - -=== /node_modules/foo/bar/foobar.json === -{ "a": 10 } ->"a" : Symbol("a", Decl(foobar.json, 0, 1)) - diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json deleted file mode 100644 index 1c02ac1083..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json +++ /dev/null @@ -1,13 +0,0 @@ -======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. -Module name 'foo/bar/foobar.json', matched pattern '*'. -Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. -Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. -File '/node_modules/foo/bar/foobar.json' exists - use it as a name resolution result. -File '/node_modules/foo/package.json' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.types b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.types deleted file mode 100644 index 93b10048df..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.types +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/compiler/requireOfJsonFile_PathMapping.ts] //// - -=== /a.ts === -import foobar from "foo/bar/foobar.json"; ->foobar : { a: number; } - -=== /node_modules/foo/bar/foobar.json === -{ "a": 10 } ->{ "a": 10 } : { a: number; } ->"a" : number ->10 : 10 - diff --git a/testdata/baselines/reference/submodule/compiler/returnTypePredicateIsInstantiateInContextOfTarget.js b/testdata/baselines/reference/submodule/compiler/returnTypePredicateIsInstantiateInContextOfTarget.js index 9aa3fb3d00..523f5e1949 100644 --- a/testdata/baselines/reference/submodule/compiler/returnTypePredicateIsInstantiateInContextOfTarget.js +++ b/testdata/baselines/reference/submodule/compiler/returnTypePredicateIsInstantiateInContextOfTarget.js @@ -18,9 +18,42 @@ const TestRender = () => ; //// [returnTypePredicateIsInstantiateInContextOfTarget.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); class TestComponent extends React.Component { static defaultProps = { isAny: TestComponent.isAny diff --git a/testdata/baselines/reference/submodule/compiler/returnTypePredicateIsInstantiateInContextOfTarget.js.diff b/testdata/baselines/reference/submodule/compiler/returnTypePredicateIsInstantiateInContextOfTarget.js.diff index f3efdc8b6f..9f21aac6f4 100644 --- a/testdata/baselines/reference/submodule/compiler/returnTypePredicateIsInstantiateInContextOfTarget.js.diff +++ b/testdata/baselines/reference/submodule/compiler/returnTypePredicateIsInstantiateInContextOfTarget.js.diff @@ -1,10 +1,10 @@ --- old.returnTypePredicateIsInstantiateInContextOfTarget.js +++ new.returnTypePredicateIsInstantiateInContextOfTarget.js -@@= skipped -19, +19 lines =@@ - "use strict"; +@@= skipped -52, +52 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); +-var React = __importStar(require("react")); -let TestComponent = (() => { - class TestComponent extends React.Component { - // Type guard is defined as a static class property @@ -13,7 +13,7 @@ - } - } - TestComponent.defaultProps = { -+const React = require("react"); ++const React = __importStar(require("react")); +class TestComponent extends React.Component { + static defaultProps = { isAny: TestComponent.isAny diff --git a/testdata/baselines/reference/submodule/compiler/selfReferentialDefaultNoStackOverflow.js b/testdata/baselines/reference/submodule/compiler/selfReferentialDefaultNoStackOverflow.js index f032036b05..9d9f1b248a 100644 --- a/testdata/baselines/reference/submodule/compiler/selfReferentialDefaultNoStackOverflow.js +++ b/testdata/baselines/reference/submodule/compiler/selfReferentialDefaultNoStackOverflow.js @@ -11,8 +11,11 @@ export default { //// [QSpinner.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const QSpinner_1 = require("./QSpinner"); +const QSpinner_1 = __importDefault(require("./QSpinner")); exports.default = { mixins: [QSpinner_1.default], name: 'QSpinner' diff --git a/testdata/baselines/reference/submodule/compiler/selfReferentialDefaultNoStackOverflow.js.diff b/testdata/baselines/reference/submodule/compiler/selfReferentialDefaultNoStackOverflow.js.diff index a5edb40db3..665e8fc4e5 100644 --- a/testdata/baselines/reference/submodule/compiler/selfReferentialDefaultNoStackOverflow.js.diff +++ b/testdata/baselines/reference/submodule/compiler/selfReferentialDefaultNoStackOverflow.js.diff @@ -1,11 +1,11 @@ --- old.selfReferentialDefaultNoStackOverflow.js +++ new.selfReferentialDefaultNoStackOverflow.js -@@= skipped -11, +11 lines =@@ - //// [QSpinner.js] - "use strict"; +@@= skipped -14, +14 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var QSpinner_1 = require("./QSpinner"); -+const QSpinner_1 = require("./QSpinner"); +-var QSpinner_1 = __importDefault(require("./QSpinner")); ++const QSpinner_1 = __importDefault(require("./QSpinner")); exports.default = { mixins: [QSpinner_1.default], name: 'QSpinner' \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/shorthand-property-es5-es6.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/shorthand-property-es5-es6.errors.txt.diff deleted file mode 100644 index d9e4756b65..0000000000 --- a/testdata/baselines/reference/submodule/compiler/shorthand-property-es5-es6.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.shorthand-property-es5-es6.errors.txt -+++ new.shorthand-property-es5-es6.errors.txt -@@= skipped -0, +0 lines =@@ --test.ts(1,19): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+test.ts(1,19): error TS2307: Cannot find module './foo' or its corresponding type declarations. - - - ==== test.ts (1 errors) ==== - import {foo} from './foo'; - ~~~~~~~ --!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module './foo' or its corresponding type declarations. - const baz = 42; - const bar = { foo, baz }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/shorthand-property-es6-es6.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/shorthand-property-es6-es6.errors.txt.diff deleted file mode 100644 index 58bc337ca6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/shorthand-property-es6-es6.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.shorthand-property-es6-es6.errors.txt -+++ new.shorthand-property-es6-es6.errors.txt -@@= skipped -0, +0 lines =@@ --test.ts(1,19): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+test.ts(1,19): error TS2307: Cannot find module './foo' or its corresponding type declarations. - - - ==== test.ts (1 errors) ==== - import {foo} from './foo'; - ~~~~~~~ --!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module './foo' or its corresponding type declarations. - const baz = 42; - const bar = { foo, baz }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.errors.txt b/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.errors.txt deleted file mode 100644 index ea595a3390..0000000000 --- a/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -error TS5055: Cannot write file 'jsDocOptionality.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'jsDocOptionality.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== jsDocOptionality.js (0 errors) ==== - function MyClass() { - this.prop = null; - } - /** - * @param {string} required - * @param {string} [notRequired] - * @returns {MyClass} - */ - MyClass.prototype.optionalParam = function(required, notRequired) { - return this; - }; - let pInst = new MyClass(); - let c1 = pInst.optionalParam('hello') - let c2 = pInst.optionalParam('hello', null) - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.symbols b/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.symbols deleted file mode 100644 index 8d03715858..0000000000 --- a/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.symbols +++ /dev/null @@ -1,34 +0,0 @@ -//// [tests/cases/compiler/signaturesUseJSDocForOptionalParameters.ts] //// - -=== jsDocOptionality.js === -function MyClass() { ->MyClass : Symbol(MyClass, Decl(jsDocOptionality.js, 0, 0)) - - this.prop = null; -} -/** - * @param {string} required - * @param {string} [notRequired] - * @returns {MyClass} - */ -MyClass.prototype.optionalParam = function(required, notRequired) { ->MyClass.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->MyClass : Symbol(MyClass, Decl(jsDocOptionality.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->required : Symbol(required, Decl(jsDocOptionality.js, 8, 43)) ->notRequired : Symbol(notRequired, Decl(jsDocOptionality.js, 8, 52)) - - return this; -}; -let pInst = new MyClass(); ->pInst : Symbol(pInst, Decl(jsDocOptionality.js, 11, 3)) ->MyClass : Symbol(MyClass, Decl(jsDocOptionality.js, 0, 0)) - -let c1 = pInst.optionalParam('hello') ->c1 : Symbol(c1, Decl(jsDocOptionality.js, 12, 3)) ->pInst : Symbol(pInst, Decl(jsDocOptionality.js, 11, 3)) - -let c2 = pInst.optionalParam('hello', null) ->c2 : Symbol(c2, Decl(jsDocOptionality.js, 13, 3)) ->pInst : Symbol(pInst, Decl(jsDocOptionality.js, 11, 3)) - diff --git a/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.symbols.diff b/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.symbols.diff deleted file mode 100644 index fe6ac218ee..0000000000 --- a/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.symbols.diff +++ /dev/null @@ -1,43 +0,0 @@ ---- old.signaturesUseJSDocForOptionalParameters.symbols -+++ new.signaturesUseJSDocForOptionalParameters.symbols -@@= skipped -4, +4 lines =@@ - >MyClass : Symbol(MyClass, Decl(jsDocOptionality.js, 0, 0)) - - this.prop = null; -->this.prop : Symbol(MyClass.prop, Decl(jsDocOptionality.js, 0, 20)) -->this : Symbol(MyClass, Decl(jsDocOptionality.js, 0, 0)) -->prop : Symbol(MyClass.prop, Decl(jsDocOptionality.js, 0, 20)) - } - /** - * @param {string} required -@@= skipped -10, +7 lines =@@ - * @returns {MyClass} - */ - MyClass.prototype.optionalParam = function(required, notRequired) { -->MyClass.prototype : Symbol(MyClass.optionalParam, Decl(jsDocOptionality.js, 2, 1)) -+>MyClass.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >MyClass : Symbol(MyClass, Decl(jsDocOptionality.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->optionalParam : Symbol(MyClass.optionalParam, Decl(jsDocOptionality.js, 2, 1)) - >required : Symbol(required, Decl(jsDocOptionality.js, 8, 43)) - >notRequired : Symbol(notRequired, Decl(jsDocOptionality.js, 8, 52)) - - return this; -->this : Symbol(MyClass, Decl(jsDocOptionality.js, 0, 0)) -- - }; - let pInst = new MyClass(); - >pInst : Symbol(pInst, Decl(jsDocOptionality.js, 11, 3)) -@@= skipped -17, +14 lines =@@ - - let c1 = pInst.optionalParam('hello') - >c1 : Symbol(c1, Decl(jsDocOptionality.js, 12, 3)) -->pInst.optionalParam : Symbol(MyClass.optionalParam, Decl(jsDocOptionality.js, 2, 1)) - >pInst : Symbol(pInst, Decl(jsDocOptionality.js, 11, 3)) -->optionalParam : Symbol(MyClass.optionalParam, Decl(jsDocOptionality.js, 2, 1)) - - let c2 = pInst.optionalParam('hello', null) - >c2 : Symbol(c2, Decl(jsDocOptionality.js, 13, 3)) -->pInst.optionalParam : Symbol(MyClass.optionalParam, Decl(jsDocOptionality.js, 2, 1)) - >pInst : Symbol(pInst, Decl(jsDocOptionality.js, 11, 3)) -->optionalParam : Symbol(MyClass.optionalParam, Decl(jsDocOptionality.js, 2, 1)) diff --git a/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.types b/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.types deleted file mode 100644 index c149ffbcea..0000000000 --- a/testdata/baselines/reference/submodule/compiler/signaturesUseJSDocForOptionalParameters.types +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/compiler/signaturesUseJSDocForOptionalParameters.ts] //// - -=== jsDocOptionality.js === -function MyClass() { ->MyClass : () => void - - this.prop = null; ->this.prop = null : null ->this.prop : any ->this : any ->prop : any -} -/** - * @param {string} required - * @param {string} [notRequired] - * @returns {MyClass} - */ -MyClass.prototype.optionalParam = function(required, notRequired) { ->MyClass.prototype.optionalParam = function(required, notRequired) { return this;} : (required: any, notRequired: any) => any ->MyClass.prototype.optionalParam : any ->MyClass.prototype : any ->MyClass : () => void ->prototype : any ->optionalParam : any ->function(required, notRequired) { return this;} : (required: any, notRequired: any) => any ->required : any ->notRequired : any - - return this; ->this : any - -}; -let pInst = new MyClass(); ->pInst : any ->new MyClass() : any ->MyClass : () => void - -let c1 = pInst.optionalParam('hello') ->c1 : any ->pInst.optionalParam('hello') : any ->pInst.optionalParam : any ->pInst : any ->optionalParam : any ->'hello' : "hello" - -let c2 = pInst.optionalParam('hello', null) ->c2 : any ->pInst.optionalParam('hello', null) : any ->pInst.optionalParam : any ->pInst : any ->optionalParam : any ->'hello' : "hello" - diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.errors.txt b/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.errors.txt deleted file mode 100644 index fed15e5aea..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== testFiles/app.ts (0 errors) ==== - // Note in the out result we are using same folder name only different in casing - // Since this is case sensitive, the folders are different and hence the relative paths in sourcemap shouldn't be just app.ts or app2.ts - class c { - } - -==== testFiles/app2.ts (0 errors) ==== - class d { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.symbols b/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.symbols deleted file mode 100644 index 8a0d31eee9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/sourceMapWithCaseSensitiveFileNames.ts] //// - -=== testFiles/app.ts === -// Note in the out result we are using same folder name only different in casing -// Since this is case sensitive, the folders are different and hence the relative paths in sourcemap shouldn't be just app.ts or app2.ts -class c { ->c : Symbol(c, Decl(app.ts, 0, 0)) -} - -=== testFiles/app2.ts === -class d { ->d : Symbol(d, Decl(app2.ts, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.types b/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.types deleted file mode 100644 index 4e8a446571..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithCaseSensitiveFileNames.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/sourceMapWithCaseSensitiveFileNames.ts] //// - -=== testFiles/app.ts === -// Note in the out result we are using same folder name only different in casing -// Since this is case sensitive, the folders are different and hence the relative paths in sourcemap shouldn't be just app.ts or app2.ts -class c { ->c : c -} - -=== testFiles/app2.ts === -class d { ->d : d -} - diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.errors.txt b/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.errors.txt deleted file mode 100644 index 06b9e85842..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== b.ts (0 errors) ==== - /*-------------------------------------------------------------------------- - Copyright - ---------------------------------------------------------------------------*/ - - /// - var y = x; - -==== a.ts (0 errors) ==== - /*-------------------------------------------------------------------------- - Copyright - ---------------------------------------------------------------------------*/ - - var x = { - a: 10, - b: 20 - }; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.symbols b/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.symbols deleted file mode 100644 index ff6c988f34..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.symbols +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/compiler/sourceMapWithMultipleFilesWithCopyright.ts] //// - -=== b.ts === -/*-------------------------------------------------------------------------- -Copyright ----------------------------------------------------------------------------*/ - -/// -var y = x; ->y : Symbol(y, Decl(b.ts, 5, 3)) ->x : Symbol(x, Decl(a.ts, 4, 3)) - -=== a.ts === -/*-------------------------------------------------------------------------- -Copyright ----------------------------------------------------------------------------*/ - -var x = { ->x : Symbol(x, Decl(a.ts, 4, 3)) - - a: 10, ->a : Symbol(a, Decl(a.ts, 4, 9)) - - b: 20 ->b : Symbol(b, Decl(a.ts, 5, 10)) - -}; - diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.types b/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.types deleted file mode 100644 index 70010a3329..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithCopyright.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/compiler/sourceMapWithMultipleFilesWithCopyright.ts] //// - -=== b.ts === -/*-------------------------------------------------------------------------- -Copyright ----------------------------------------------------------------------------*/ - -/// -var y = x; ->y : { a: number; b: number; } ->x : { a: number; b: number; } - -=== a.ts === -/*-------------------------------------------------------------------------- -Copyright ----------------------------------------------------------------------------*/ - -var x = { ->x : { a: number; b: number; } ->{ a: 10, b: 20} : { a: number; b: number; } - - a: 10, ->a : number ->10 : 10 - - b: 20 ->b : number ->20 : 20 - -}; - diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt b/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt deleted file mode 100644 index d70b2c5374..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.ts (0 errors) ==== - module M { - export var X = 1; - } - interface Navigator { - getGamepads(func?: any): any; - webkitGetGamepads(func?: any): any - msGetGamepads(func?: any): any; - webkitGamepads(func?: any): any; - } - -==== b.ts (0 errors) ==== - module m1 { - export class c1 { - } - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.symbols b/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.symbols deleted file mode 100644 index b98896057b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.ts] //// - -=== a.ts === -module M { ->M : Symbol(M, Decl(a.ts, 0, 0)) - - export var X = 1; ->X : Symbol(X, Decl(a.ts, 1, 14)) -} -interface Navigator { ->Navigator : Symbol(Navigator, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(a.ts, 2, 1)) - - getGamepads(func?: any): any; ->getGamepads : Symbol(Navigator.getGamepads, Decl(lib.dom.d.ts, --, --), Decl(a.ts, 3, 21)) ->func : Symbol(func, Decl(a.ts, 4, 16)) - - webkitGetGamepads(func?: any): any ->webkitGetGamepads : Symbol(Navigator.webkitGetGamepads, Decl(a.ts, 4, 33)) ->func : Symbol(func, Decl(a.ts, 5, 22)) - - msGetGamepads(func?: any): any; ->msGetGamepads : Symbol(Navigator.msGetGamepads, Decl(a.ts, 5, 38)) ->func : Symbol(func, Decl(a.ts, 6, 18)) - - webkitGamepads(func?: any): any; ->webkitGamepads : Symbol(Navigator.webkitGamepads, Decl(a.ts, 6, 35)) ->func : Symbol(func, Decl(a.ts, 7, 19)) -} - -=== b.ts === -module m1 { ->m1 : Symbol(m1, Decl(b.ts, 0, 0)) - - export class c1 { ->c1 : Symbol(c1, Decl(b.ts, 0, 11)) - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.types b/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.types deleted file mode 100644 index ab77620e97..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.types +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.ts] //// - -=== a.ts === -module M { ->M : typeof M - - export var X = 1; ->X : number ->1 : 1 -} -interface Navigator { - getGamepads(func?: any): any; ->getGamepads : { (): Gamepad[]; (func?: any): any; } ->func : any - - webkitGetGamepads(func?: any): any ->webkitGetGamepads : (func?: any) => any ->func : any - - msGetGamepads(func?: any): any; ->msGetGamepads : (func?: any) => any ->func : any - - webkitGamepads(func?: any): any; ->webkitGamepads : (func?: any) => any ->func : any -} - -=== b.ts === -module m1 { ->m1 : typeof m1 - - export class c1 { ->c1 : c1 - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.types.diff b/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.types.diff deleted file mode 100644 index 28511c9649..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.types.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.sourceMapWithMultipleFilesWithFileEndingWithInterface.types -+++ new.sourceMapWithMultipleFilesWithFileEndingWithInterface.types -@@= skipped -9, +9 lines =@@ - } - interface Navigator { - getGamepads(func?: any): any; -->getGamepads : { (): (Gamepad | null)[]; (func?: any): any; } -+>getGamepads : { (): Gamepad[]; (func?: any): any; } - >func : any - - webkitGetGamepads(func?: any): any \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.errors.txt b/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.errors.txt deleted file mode 100644 index 7702c5314e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== testFiles/app.ts (0 errors) ==== - // Note in the out result we are using same folder name only different in casing - // Since this is non case sensitive, the relative paths should be just app.ts and app2.ts in the sourcemap - class c { - } - -==== testFiles/app2.ts (0 errors) ==== - class d { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.symbols b/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.symbols deleted file mode 100644 index 2b39131908..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.symbols +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/sourceMapWithNonCaseSensitiveFileNames.ts] //// - -=== testFiles/app.ts === -// Note in the out result we are using same folder name only different in casing -// Since this is non case sensitive, the relative paths should be just app.ts and app2.ts in the sourcemap -class c { ->c : Symbol(c, Decl(app.ts, 0, 0)) -} - -=== testFiles/app2.ts === -class d { ->d : Symbol(d, Decl(app2.ts, 0, 0)) -} - diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.types b/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.types deleted file mode 100644 index 5cd56b3263..0000000000 --- a/testdata/baselines/reference/submodule/compiler/sourceMapWithNonCaseSensitiveFileNames.types +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/compiler/sourceMapWithNonCaseSensitiveFileNames.ts] //// - -=== testFiles/app.ts === -// Note in the out result we are using same folder name only different in casing -// Since this is non case sensitive, the relative paths should be just app.ts and app2.ts in the sourcemap -class c { ->c : c -} - -=== testFiles/app2.ts === -class d { ->d : d -} - diff --git a/testdata/baselines/reference/submodule/compiler/spellingSuggestionJSXAttribute.js b/testdata/baselines/reference/submodule/compiler/spellingSuggestionJSXAttribute.js index 84a1006910..1a3b3be308 100644 --- a/testdata/baselines/reference/submodule/compiler/spellingSuggestionJSXAttribute.js +++ b/testdata/baselines/reference/submodule/compiler/spellingSuggestionJSXAttribute.js @@ -20,9 +20,42 @@ class MyComp extends React.Component<{ className?: string, htmlFor?: string }> { //// [spellingSuggestionJSXAttribute.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const React = require("react"); +const React = __importStar(require("react")); function MyComp2(props) { return null; } diff --git a/testdata/baselines/reference/submodule/compiler/spellingSuggestionJSXAttribute.js.diff b/testdata/baselines/reference/submodule/compiler/spellingSuggestionJSXAttribute.js.diff index c7ab83af1e..32fd03e8e4 100644 --- a/testdata/baselines/reference/submodule/compiler/spellingSuggestionJSXAttribute.js.diff +++ b/testdata/baselines/reference/submodule/compiler/spellingSuggestionJSXAttribute.js.diff @@ -1,11 +1,11 @@ --- old.spellingSuggestionJSXAttribute.js +++ new.spellingSuggestionJSXAttribute.js -@@= skipped -21, +21 lines =@@ - "use strict"; +@@= skipped -54, +54 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function MyComp2(props) { return null; } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js index 58620e049f..b3975a1093 100644 --- a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js +++ b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js @@ -61,8 +61,41 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const stuff = require("./spreadExpressionContextualTypeWithNamespace_0"); +const stuff = __importStar(require("./spreadExpressionContextualTypeWithNamespace_0")); stuff.func; stuff.klass; stuff.obj; diff --git a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js.diff b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js.diff index c8f0893e6d..fd019f673b 100644 --- a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js.diff +++ b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js.diff @@ -1,11 +1,11 @@ --- old.spreadExpressionContextualTypeWithNamespace.js +++ new.spreadExpressionContextualTypeWithNamespace.js -@@= skipped -61, +61 lines =@@ - return __assign.apply(this, arguments); - }; +@@= skipped -94, +94 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var stuff = require("./spreadExpressionContextualTypeWithNamespace_0"); -+const stuff = require("./spreadExpressionContextualTypeWithNamespace_0"); +-var stuff = __importStar(require("./spreadExpressionContextualTypeWithNamespace_0")); ++const stuff = __importStar(require("./spreadExpressionContextualTypeWithNamespace_0")); stuff.func; stuff.klass; stuff.obj; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/stackDepthLimitCastingType.js b/testdata/baselines/reference/submodule/compiler/stackDepthLimitCastingType.js index f284560d85..0aeb812b6a 100644 --- a/testdata/baselines/reference/submodule/compiler/stackDepthLimitCastingType.js +++ b/testdata/baselines/reference/submodule/compiler/stackDepthLimitCastingType.js @@ -41,7 +41,40 @@ hoge.fetch(null as any); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const Backbone = require("backbone"); +const Backbone = __importStar(require("backbone")); const hoge = new Backbone.Model(); hoge.fetch(null); diff --git a/testdata/baselines/reference/submodule/compiler/stackDepthLimitCastingType.js.diff b/testdata/baselines/reference/submodule/compiler/stackDepthLimitCastingType.js.diff index 441eee163b..04e95c6e1b 100644 --- a/testdata/baselines/reference/submodule/compiler/stackDepthLimitCastingType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/stackDepthLimitCastingType.js.diff @@ -1,10 +1,10 @@ --- old.stackDepthLimitCastingType.js +++ new.stackDepthLimitCastingType.js -@@= skipped -41, +41 lines =@@ - //// [index.js] - "use strict"; +@@= skipped -74, +74 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var Backbone = require("backbone"); -+const Backbone = require("backbone"); +-var Backbone = __importStar(require("backbone")); ++const Backbone = __importStar(require("backbone")); const hoge = new Backbone.Model(); hoge.fetch(null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.errors.txt b/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.errors.txt new file mode 100644 index 0000000000..d44a6f4221 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.errors.txt @@ -0,0 +1,26 @@ +staticInstanceResolution5_1.ts(4,14): error TS2709: Cannot use namespace 'WinJS' as a type. +staticInstanceResolution5_1.ts(5,23): error TS2709: Cannot use namespace 'WinJS' as a type. +staticInstanceResolution5_1.ts(6,16): error TS2709: Cannot use namespace 'WinJS' as a type. + + +==== staticInstanceResolution5_1.ts (3 errors) ==== + import WinJS = require('./staticInstanceResolution5_0'); + + // these 3 should be errors + var x = (w1: WinJS) => { }; + ~~~~~ +!!! error TS2709: Cannot use namespace 'WinJS' as a type. + var y = function (w2: WinJS) { } + ~~~~~ +!!! error TS2709: Cannot use namespace 'WinJS' as a type. + function z(w3: WinJS) { } + ~~~~~ +!!! error TS2709: Cannot use namespace 'WinJS' as a type. + +==== staticInstanceResolution5_0.ts (0 errors) ==== + export class Promise { + static timeout(delay: number): Promise { + return null; + } + } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.js b/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.js new file mode 100644 index 0000000000..f297e0196b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/staticInstanceResolution5.ts] //// + +//// [staticInstanceResolution5_0.ts] +export class Promise { + static timeout(delay: number): Promise { + return null; + } +} + +//// [staticInstanceResolution5_1.ts] +import WinJS = require('./staticInstanceResolution5_0'); + +// these 3 should be errors +var x = (w1: WinJS) => { }; +var y = function (w2: WinJS) { } +function z(w3: WinJS) { } + + +//// [staticInstanceResolution5_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Promise = void 0; +class Promise { + static timeout(delay) { + return null; + } +} +exports.Promise = Promise; +//// [staticInstanceResolution5_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// these 3 should be errors +var x = (w1) => { }; +var y = function (w2) { }; +function z(w3) { } diff --git a/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.symbols b/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.symbols new file mode 100644 index 0000000000..60e1997492 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/staticInstanceResolution5.ts] //// + +=== staticInstanceResolution5_1.ts === +import WinJS = require('./staticInstanceResolution5_0'); +>WinJS : Symbol(WinJS, Decl(staticInstanceResolution5_1.ts, 0, 0)) + +// these 3 should be errors +var x = (w1: WinJS) => { }; +>x : Symbol(x, Decl(staticInstanceResolution5_1.ts, 3, 3)) +>w1 : Symbol(w1, Decl(staticInstanceResolution5_1.ts, 3, 9)) +>WinJS : Symbol(WinJS) + +var y = function (w2: WinJS) { } +>y : Symbol(y, Decl(staticInstanceResolution5_1.ts, 4, 3)) +>w2 : Symbol(w2, Decl(staticInstanceResolution5_1.ts, 4, 18)) +>WinJS : Symbol(WinJS) + +function z(w3: WinJS) { } +>z : Symbol(z, Decl(staticInstanceResolution5_1.ts, 4, 32)) +>w3 : Symbol(w3, Decl(staticInstanceResolution5_1.ts, 5, 11)) +>WinJS : Symbol(WinJS) + +=== staticInstanceResolution5_0.ts === +export class Promise { +>Promise : Symbol(Promise, Decl(staticInstanceResolution5_0.ts, 0, 0)) + + static timeout(delay: number): Promise { +>timeout : Symbol(Promise.timeout, Decl(staticInstanceResolution5_0.ts, 0, 22)) +>delay : Symbol(delay, Decl(staticInstanceResolution5_0.ts, 1, 19)) +>Promise : Symbol(Promise, Decl(staticInstanceResolution5_0.ts, 0, 0)) + + return null; + } +} + diff --git a/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.types b/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.types new file mode 100644 index 0000000000..b7a0919b43 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/staticInstanceResolution5.types @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/staticInstanceResolution5.ts] //// + +=== staticInstanceResolution5_1.ts === +import WinJS = require('./staticInstanceResolution5_0'); +>WinJS : typeof WinJS + +// these 3 should be errors +var x = (w1: WinJS) => { }; +>x : (w1: WinJS) => void +>(w1: WinJS) => { } : (w1: WinJS) => void +>w1 : WinJS + +var y = function (w2: WinJS) { } +>y : (w2: WinJS) => void +>function (w2: WinJS) { } : (w2: WinJS) => void +>w2 : WinJS + +function z(w3: WinJS) { } +>z : (w3: WinJS) => void +>w3 : WinJS + +=== staticInstanceResolution5_0.ts === +export class Promise { +>Promise : Promise + + static timeout(delay: number): Promise { +>timeout : (delay: number) => Promise +>delay : number + + return null; + } +} + diff --git a/testdata/baselines/reference/submodule/compiler/strictModeWordInImportDeclaration.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/strictModeWordInImportDeclaration.errors.txt.diff deleted file mode 100644 index 130c0b36f6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/strictModeWordInImportDeclaration.errors.txt.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.strictModeWordInImportDeclaration.errors.txt -+++ new.strictModeWordInImportDeclaration.errors.txt -@@= skipped -0, +0 lines =@@ - strictModeWordInImportDeclaration.ts(2,13): error TS1214: Identifier expected. 'package' is a reserved word in strict mode. Modules are automatically in strict mode. --strictModeWordInImportDeclaration.ts(2,26): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+strictModeWordInImportDeclaration.ts(2,26): error TS2307: Cannot find module './1' or its corresponding type declarations. - strictModeWordInImportDeclaration.ts(3,16): error TS1214: Identifier expected. 'private' is a reserved word in strict mode. Modules are automatically in strict mode. --strictModeWordInImportDeclaration.ts(3,30): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+strictModeWordInImportDeclaration.ts(3,30): error TS2307: Cannot find module './1' or its corresponding type declarations. - strictModeWordInImportDeclaration.ts(4,8): error TS1214: Identifier expected. 'public' is a reserved word in strict mode. Modules are automatically in strict mode. --strictModeWordInImportDeclaration.ts(4,20): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+strictModeWordInImportDeclaration.ts(4,20): error TS2307: Cannot find module './1' or its corresponding type declarations. - - - ==== strictModeWordInImportDeclaration.ts (6 errors) ==== -@@= skipped -11, +11 lines =@@ - ~~~~~~~ - !!! error TS1214: Identifier expected. 'package' is a reserved word in strict mode. Modules are automatically in strict mode. - ~~~~~ --!!! error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module './1' or its corresponding type declarations. - import {foo as private} from "./1" - ~~~~~~~ - !!! error TS1214: Identifier expected. 'private' is a reserved word in strict mode. Modules are automatically in strict mode. - ~~~~~ --!!! error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module './1' or its corresponding type declarations. - import public from "./1" - ~~~~~~ - !!! error TS1214: Identifier expected. 'public' is a reserved word in strict mode. Modules are automatically in strict mode. - ~~~~~ --!!! error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module './1' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js index 59acfb4178..f86e06bd9b 100644 --- a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js +++ b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js @@ -29,9 +29,42 @@ export const a = pkg.invoke(); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; -const pkg = require("package-b"); +const pkg = __importStar(require("package-b")); exports.a = pkg.invoke(); diff --git a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js.diff b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js.diff index ef5b9496f8..9abad200ba 100644 --- a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js.diff +++ b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js.diff @@ -1,11 +1,11 @@ --- old.symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js +++ new.symlinkedWorkspaceDependenciesNoDirectLinkGeneratesNonrelativeName.js -@@= skipped -30, +30 lines =@@ - "use strict"; +@@= skipped -63, +63 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; --var pkg = require("package-b"); -+const pkg = require("package-b"); +-var pkg = __importStar(require("package-b")); ++const pkg = __importStar(require("package-b")); exports.a = pkg.invoke(); diff --git a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js index fe24bc8f2a..d638053907 100644 --- a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js +++ b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js @@ -31,9 +31,42 @@ export const a = pkg.invoke(); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; -const pkg = require("package-b"); +const pkg = __importStar(require("package-b")); exports.a = pkg.invoke(); diff --git a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js.diff b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js.diff index 32ff6fc95c..5cc3323b49 100644 --- a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js.diff +++ b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js.diff @@ -1,11 +1,11 @@ --- old.symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js +++ new.symlinkedWorkspaceDependenciesNoDirectLinkOptionalGeneratesNonrelativeName.js -@@= skipped -32, +32 lines =@@ - "use strict"; +@@= skipped -65, +65 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; --var pkg = require("package-b"); -+const pkg = require("package-b"); +-var pkg = __importStar(require("package-b")); ++const pkg = __importStar(require("package-b")); exports.a = pkg.invoke(); diff --git a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js index f1715cc27c..1e8b592fdc 100644 --- a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js +++ b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js @@ -31,9 +31,42 @@ export const a = pkg.invoke(); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; -const pkg = require("package-b"); +const pkg = __importStar(require("package-b")); exports.a = pkg.invoke(); diff --git a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js.diff b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js.diff index be48d6757d..6289240d1e 100644 --- a/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js.diff +++ b/testdata/baselines/reference/submodule/compiler/symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js.diff @@ -1,11 +1,11 @@ --- old.symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js +++ new.symlinkedWorkspaceDependenciesNoDirectLinkPeerGeneratesNonrelativeName.js -@@= skipped -32, +32 lines =@@ - "use strict"; +@@= skipped -65, +65 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; --var pkg = require("package-b"); -+const pkg = require("package-b"); +-var pkg = __importStar(require("package-b")); ++const pkg = __importStar(require("package-b")); exports.a = pkg.invoke(); diff --git a/testdata/baselines/reference/submodule/compiler/topLevelLambda4.errors.txt b/testdata/baselines/reference/submodule/compiler/topLevelLambda4.errors.txt new file mode 100644 index 0000000000..588cf7e944 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/topLevelLambda4.errors.txt @@ -0,0 +1,7 @@ +topLevelLambda4.ts(1,22): error TS2532: Object is possibly 'undefined'. + + +==== topLevelLambda4.ts (1 errors) ==== + export var x = () => this.window; + ~~~~ +!!! error TS2532: Object is possibly 'undefined'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/topLevelLambda4.js b/testdata/baselines/reference/submodule/compiler/topLevelLambda4.js new file mode 100644 index 0000000000..81cf5783eb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/topLevelLambda4.js @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/topLevelLambda4.ts] //// + +//// [topLevelLambda4.ts] +export var x = () => this.window; + +//// [topLevelLambda4.js] +export var x = () => this.window; diff --git a/testdata/baselines/reference/submodule/compiler/topLevelLambda4.symbols b/testdata/baselines/reference/submodule/compiler/topLevelLambda4.symbols new file mode 100644 index 0000000000..3b05f7ae64 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/topLevelLambda4.symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/topLevelLambda4.ts] //// + +=== topLevelLambda4.ts === +export var x = () => this.window; +>x : Symbol(x, Decl(topLevelLambda4.ts, 0, 10)) + diff --git a/testdata/baselines/reference/submodule/compiler/topLevelLambda4.types b/testdata/baselines/reference/submodule/compiler/topLevelLambda4.types new file mode 100644 index 0000000000..225d2424d4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/topLevelLambda4.types @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/topLevelLambda4.ts] //// + +=== topLevelLambda4.ts === +export var x = () => this.window; +>x : () => any +>() => this.window : () => any +>this.window : any +>this : undefined +>window : any + diff --git a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.errors.txt.diff new file mode 100644 index 0000000000..af95e509c7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.errors.txt.diff @@ -0,0 +1,39 @@ +--- old.transformNestedGeneratorsWithTry.errors.txt ++++ new.transformNestedGeneratorsWithTry.errors.txt +@@= skipped -0, +0 lines =@@ +-main.ts(3,21): error TS1055: Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value. +- Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' provides no match for the signature 'new (executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void): PromiseLike'. +-main.ts(5,35): error TS1055: Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value. +- Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' provides no match for the signature 'new (executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void): PromiseLike'. +- +- +-==== main.ts (2 errors) ==== +- // https://github.com/Microsoft/TypeScript/issues/11177 +- import * as Bluebird from 'bluebird'; +- async function a(): Bluebird { +- ~~~~~~~~~~~~~~ +-!!! error TS1055: Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value. +-!!! error TS1055: Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' provides no match for the signature 'new (executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void): PromiseLike'. +-!!! related TS7038 main.ts:2:1: Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead. +- try { +- const b = async function b(): Bluebird { +- ~~~~~~~~~~~~~~ +-!!! error TS1055: Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value. +-!!! error TS1055: Type '{ all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; }' provides no match for the signature 'new (executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void): PromiseLike'. +-!!! related TS7038 main.ts:2:1: Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead. +- try { +- await Bluebird.resolve(); // -- remove this and it compiles +- } catch (error) { } +- }; +- +- await b(); // -- or remove this and it compiles +- } catch (error) { } +- } +- +-==== bluebird.d.ts (0 errors) ==== +- declare module "bluebird" { +- type Bluebird = Promise; +- const Bluebird: typeof Promise; +- export = Bluebird; +- } ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js index 18e2b0214c..2effb1d607 100644 --- a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js +++ b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js @@ -24,9 +24,42 @@ declare module "bluebird" { //// [main.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); // https://github.com/Microsoft/TypeScript/issues/11177 -const Bluebird = require("bluebird"); +const Bluebird = __importStar(require("bluebird")); async function a() { try { const b = async function b() { diff --git a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js.diff b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js.diff index 3f210b9299..90b41568bf 100644 --- a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js.diff +++ b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js.diff @@ -1,9 +1,9 @@ --- old.transformNestedGeneratorsWithTry.js +++ new.transformNestedGeneratorsWithTry.js -@@= skipped -23, +23 lines =@@ - - //// [main.js] - "use strict"; +@@= skipped -56, +56 lines =@@ + return result; + }; + })(); -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) { @@ -15,12 +15,12 @@ -}; Object.defineProperty(exports, "__esModule", { value: true }); // https://github.com/Microsoft/TypeScript/issues/11177 --var Bluebird = require("bluebird"); +-var Bluebird = __importStar(require("bluebird")); -function a() { -- return __awaiter(this, void 0, Bluebird, function* () { +- return __awaiter(this, void 0, void 0, function* () { - try { - const b = function b() { -- return __awaiter(this, void 0, Bluebird, function* () { +- return __awaiter(this, void 0, void 0, function* () { - try { - yield Bluebird.resolve(); // -- remove this and it compiles - } @@ -31,7 +31,7 @@ - } - catch (error) { } - }); -+const Bluebird = require("bluebird"); ++const Bluebird = __importStar(require("bluebird")); +async function a() { + try { + const b = async function b() { diff --git a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.types b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.types index e2a5f3ce0d..2afc5b3098 100644 --- a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.types +++ b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.types @@ -3,7 +3,7 @@ === main.ts === // https://github.com/Microsoft/TypeScript/issues/11177 import * as Bluebird from 'bluebird'; ->Bluebird : PromiseConstructor +>Bluebird : { all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; } async function a(): Bluebird { >a : () => Bluebird @@ -19,7 +19,7 @@ async function a(): Bluebird { >await Bluebird.resolve() : void >Bluebird.resolve() : Promise >Bluebird.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } ->Bluebird : PromiseConstructor +>Bluebird : { all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; default: PromiseConstructor; } >resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } } catch (error) { } diff --git a/testdata/baselines/reference/submodule/compiler/tsxDeepAttributeAssignabilityError.js b/testdata/baselines/reference/submodule/compiler/tsxDeepAttributeAssignabilityError.js index bcb2cfc921..d5990c8852 100644 --- a/testdata/baselines/reference/submodule/compiler/tsxDeepAttributeAssignabilityError.js +++ b/testdata/baselines/reference/submodule/compiler/tsxDeepAttributeAssignabilityError.js @@ -27,17 +27,83 @@ export const result =
; function testComponent(props) { return ; diff --git a/testdata/baselines/reference/submodule/compiler/tsxNoTypeAnnotatedSFC.js.diff b/testdata/baselines/reference/submodule/compiler/tsxNoTypeAnnotatedSFC.js.diff index c01b41de14..e3c4cc6c5a 100644 --- a/testdata/baselines/reference/submodule/compiler/tsxNoTypeAnnotatedSFC.js.diff +++ b/testdata/baselines/reference/submodule/compiler/tsxNoTypeAnnotatedSFC.js.diff @@ -1,11 +1,11 @@ --- old.tsxNoTypeAnnotatedSFC.js +++ new.tsxNoTypeAnnotatedSFC.js -@@= skipped -13, +13 lines =@@ - "use strict"; +@@= skipped -46, +46 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); // not _actually_ making react available in this test to regression test #22948 --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); const Test123 = () =>
; function testComponent(props) { return ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.errors.txt b/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.errors.txt new file mode 100644 index 0000000000..fea09b9ba2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.errors.txt @@ -0,0 +1,9 @@ +typeAliasDeclarationEmit.ts(3,37): error TS2314: Generic type 'callback' requires 1 type argument(s). + + +==== typeAliasDeclarationEmit.ts (1 errors) ==== + export type callback = () => T; + + export type CallbackArray = () => T; + ~~~~~~~~ +!!! error TS2314: Generic type 'callback' requires 1 type argument(s). \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.js b/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.js new file mode 100644 index 0000000000..8413241fab --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit.ts] //// + +//// [typeAliasDeclarationEmit.ts] +export type callback = () => T; + +export type CallbackArray = () => T; + +//// [typeAliasDeclarationEmit.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + +//// [typeAliasDeclarationEmit.d.ts] +export type callback = () => T; +export type CallbackArray = () => T; diff --git a/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.symbols b/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.symbols new file mode 100644 index 0000000000..f07f6a2727 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit.ts] //// + +=== typeAliasDeclarationEmit.ts === +export type callback = () => T; +>callback : Symbol(callback, Decl(typeAliasDeclarationEmit.ts, 0, 0)) +>T : Symbol(T, Decl(typeAliasDeclarationEmit.ts, 0, 21)) +>T : Symbol(T, Decl(typeAliasDeclarationEmit.ts, 0, 21)) + +export type CallbackArray = () => T; +>CallbackArray : Symbol(CallbackArray, Decl(typeAliasDeclarationEmit.ts, 0, 34)) +>T : Symbol(T, Decl(typeAliasDeclarationEmit.ts, 2, 26)) +>callback : Symbol(callback, Decl(typeAliasDeclarationEmit.ts, 0, 0)) +>T : Symbol(T, Decl(typeAliasDeclarationEmit.ts, 2, 26)) + diff --git a/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.types b/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.types new file mode 100644 index 0000000000..d586ada266 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeAliasDeclarationEmit.types @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit.ts] //// + +=== typeAliasDeclarationEmit.ts === +export type callback = () => T; +>callback : callback + +export type CallbackArray = () => T; +>CallbackArray : CallbackArray + diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.errors.txt b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.errors.txt deleted file mode 100644 index 59a7ac20e7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /mod2.ts (0 errors) ==== - import {foo} from "./mod1"; - export const bar = foo(); - -==== /types/lib/index.d.ts (0 errors) ==== - interface Lib { x } - -==== /mod1.ts (0 errors) ==== - export function foo(): Lib { return {x: 1} } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.symbols b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.symbols deleted file mode 100644 index 0eb7bfda6d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.symbols +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/compiler/typeReferenceDirectives11.ts] //// - -=== /mod2.ts === -import {foo} from "./mod1"; ->foo : Symbol(foo, Decl(mod2.ts, 0, 8)) - -export const bar = foo(); ->bar : Symbol(bar, Decl(mod2.ts, 1, 12)) ->foo : Symbol(foo, Decl(mod2.ts, 0, 8)) - -=== /types/lib/index.d.ts === -interface Lib { x } ->Lib : Symbol(Lib, Decl(index.d.ts, 0, 0)) ->x : Symbol(Lib.x, Decl(index.d.ts, 0, 15)) - -=== /mod1.ts === -export function foo(): Lib { return {x: 1} } ->foo : Symbol(foo, Decl(mod1.ts, 0, 0)) ->Lib : Symbol(Lib, Decl(index.d.ts, 0, 0)) ->x : Symbol(x, Decl(mod1.ts, 0, 37)) - diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json deleted file mode 100644 index 3f7b1d3736..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json +++ /dev/null @@ -1,13 +0,0 @@ -======== Resolving module './mod1' from '/mod2.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/mod1.ts' exists - use it as a name resolution result. -======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== -======== 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. -File '/types/lib/package.json' does not exist. -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. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.types b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.types deleted file mode 100644 index 83f1a103db..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.types +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/typeReferenceDirectives11.ts] //// - -=== /mod2.ts === -import {foo} from "./mod1"; ->foo : () => Lib - -export const bar = foo(); ->bar : Lib ->foo() : Lib ->foo : () => Lib - -=== /types/lib/index.d.ts === -interface Lib { x } ->x : any - -=== /mod1.ts === -export function foo(): Lib { return {x: 1} } ->foo : () => Lib ->{x: 1} : { x: number; } ->x : number ->1 : 1 - diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.errors.txt b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.errors.txt deleted file mode 100644 index e2f5348459..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /mod2.ts (0 errors) ==== - import { Cls } from "./main"; - import "./mod1"; - - export const cls = Cls; - export const foo = new Cls().foo(); - export const bar = Cls.bar(); - -==== /types/lib/index.d.ts (0 errors) ==== - interface Lib { x } - -==== /main.ts (0 errors) ==== - export class Cls { - x - } - -==== /mod1.ts (0 errors) ==== - /// - - import {Cls} from "./main"; - Cls.prototype.foo = function() { return undefined; } - - declare module "./main" { - interface Cls { - foo(): Lib; - } - namespace Cls { - function bar(): Lib; - } - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.symbols b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.symbols deleted file mode 100644 index 0eb38dab99..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.symbols +++ /dev/null @@ -1,70 +0,0 @@ -//// [tests/cases/compiler/typeReferenceDirectives12.ts] //// - -=== /mod2.ts === -import { Cls } from "./main"; ->Cls : Symbol(Cls, Decl(mod2.ts, 0, 8)) - -import "./mod1"; - -export const cls = Cls; ->cls : Symbol(cls, Decl(mod2.ts, 3, 12)) ->Cls : Symbol(Cls, Decl(mod2.ts, 0, 8)) - -export const foo = new Cls().foo(); ->foo : Symbol(foo, Decl(mod2.ts, 4, 12)) ->new Cls().foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) ->Cls : Symbol(Cls, Decl(mod2.ts, 0, 8)) ->foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) - -export const bar = Cls.bar(); ->bar : Symbol(bar, Decl(mod2.ts, 5, 12)) ->Cls.bar : Symbol(Cls.bar, Decl(mod1.ts, 9, 19)) ->Cls : Symbol(Cls, Decl(mod2.ts, 0, 8)) ->bar : Symbol(Cls.bar, Decl(mod1.ts, 9, 19)) - -=== /types/lib/index.d.ts === -interface Lib { x } ->Lib : Symbol(Lib, Decl(index.d.ts, 0, 0)) ->x : Symbol(Lib.x, Decl(index.d.ts, 0, 15)) - -=== /main.ts === -export class Cls { ->Cls : Symbol(Cls, Decl(main.ts, 0, 0), Decl(mod1.ts, 5, 25), Decl(mod1.ts, 8, 5)) - - x ->x : Symbol(Cls.x, Decl(main.ts, 0, 18)) -} - -=== /mod1.ts === -/// - -import {Cls} from "./main"; ->Cls : Symbol(Cls, Decl(mod1.ts, 2, 8)) - -Cls.prototype.foo = function() { return undefined; } ->Cls.prototype.foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) ->Cls.prototype : Symbol(Cls.prototype) ->Cls : Symbol(Cls, Decl(mod1.ts, 2, 8)) ->prototype : Symbol(Cls.prototype) ->foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) ->undefined : Symbol(undefined) - -declare module "./main" { ->"./main" : Symbol("/main", Decl(main.ts, 0, 0), Decl(mod1.ts, 3, 52)) - - interface Cls { ->Cls : Symbol(Cls, Decl(main.ts, 0, 0), Decl(mod1.ts, 5, 25), Decl(mod1.ts, 8, 5)) - - foo(): Lib; ->foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) ->Lib : Symbol(Lib, Decl(index.d.ts, 0, 0)) - } - namespace Cls { ->Cls : Symbol(Cls, Decl(main.ts, 0, 0), Decl(mod1.ts, 5, 25), Decl(mod1.ts, 8, 5)) - - function bar(): Lib; ->bar : Symbol(bar, Decl(mod1.ts, 9, 19)) ->Lib : Symbol(Lib, Decl(index.d.ts, 0, 0)) - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json deleted file mode 100644 index 87b47e2ca4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json +++ /dev/null @@ -1,38 +0,0 @@ -======== Resolving module './main' from '/mod2.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/main.ts' exists - use it as a name resolution result. -======== Module name './main' was successfully resolved to '/main.ts'. ======== -======== Resolving module './mod1' from '/mod2.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/mod1.ts' exists - use it as a name resolution result. -======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== -======== 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. -File '/types/lib/package.json' does not exist. -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. ======== -======== Resolving module './main' from '/mod1.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/main.ts' exists - use it as a name resolution result. -======== Module name './main' was successfully resolved to '/main.ts'. ======== -======== Resolving module './main' from '/mod1.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/main.ts' exists - use it as a name resolution result. -======== Module name './main' was successfully resolved to '/main.ts'. ======== -======== 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 according to earlier cached lookups. -File '/types/lib/package.json' does not exist according to earlier cached lookups. -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. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.types b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.types deleted file mode 100644 index 13ed09d5f9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.types +++ /dev/null @@ -1,70 +0,0 @@ -//// [tests/cases/compiler/typeReferenceDirectives12.ts] //// - -=== /mod2.ts === -import { Cls } from "./main"; ->Cls : typeof Cls - -import "./mod1"; - -export const cls = Cls; ->cls : typeof Cls ->Cls : typeof Cls - -export const foo = new Cls().foo(); ->foo : Lib ->new Cls().foo() : Lib ->new Cls().foo : () => Lib ->new Cls() : Cls ->Cls : typeof Cls ->foo : () => Lib - -export const bar = Cls.bar(); ->bar : Lib ->Cls.bar() : Lib ->Cls.bar : () => Lib ->Cls : typeof Cls ->bar : () => Lib - -=== /types/lib/index.d.ts === -interface Lib { x } ->x : any - -=== /main.ts === -export class Cls { ->Cls : Cls - - x ->x : any -} - -=== /mod1.ts === -/// - -import {Cls} from "./main"; ->Cls : typeof Cls - -Cls.prototype.foo = function() { return undefined; } ->Cls.prototype.foo = function() { return undefined; } : () => any ->Cls.prototype.foo : () => Lib ->Cls.prototype : Cls ->Cls : typeof Cls ->prototype : Cls ->foo : () => Lib ->function() { return undefined; } : () => any ->undefined : undefined - -declare module "./main" { ->"./main" : typeof import("/main") - - interface Cls { - foo(): Lib; ->foo : () => Lib - } - namespace Cls { ->Cls : typeof Cls - - function bar(): Lib; ->bar : () => Lib - } -} - diff --git a/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.errors.txt b/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.errors.txt new file mode 100644 index 0000000000..76f4d379db --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.errors.txt @@ -0,0 +1,28 @@ +world.ts(4,1): error TS2693: 'HelloInterface' only refers to a type, but is being used as a value here. +world.ts(5,1): error TS2708: Cannot use namespace 'HelloNamespace' as a value. + + +==== world.ts (2 errors) ==== + import HelloInterface = require("./helloInterface"); + import HelloNamespace = require("./helloNamespace"); + + HelloInterface.world; + ~~~~~~~~~~~~~~ +!!! error TS2693: 'HelloInterface' only refers to a type, but is being used as a value here. + HelloNamespace.world; + ~~~~~~~~~~~~~~ +!!! error TS2708: Cannot use namespace 'HelloNamespace' as a value. +==== helloInterface.ts (0 errors) ==== + interface HelloInterface { + world: any; + } + + export = HelloInterface; + +==== helloNamespace.ts (0 errors) ==== + namespace HelloNamespace { + export type world = any; + } + + export = HelloNamespace; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.js b/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.js new file mode 100644 index 0000000000..4e69754c6e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.js @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/typeUsedAsValueError2.ts] //// + +//// [helloInterface.ts] +interface HelloInterface { + world: any; +} + +export = HelloInterface; + +//// [helloNamespace.ts] +namespace HelloNamespace { + export type world = any; +} + +export = HelloNamespace; + +//// [world.ts] +import HelloInterface = require("./helloInterface"); +import HelloNamespace = require("./helloNamespace"); + +HelloInterface.world; +HelloNamespace.world; + +//// [helloInterface.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [helloNamespace.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [world.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +HelloInterface.world; +HelloNamespace.world; diff --git a/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.symbols b/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.symbols new file mode 100644 index 0000000000..2675ab57ab --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/typeUsedAsValueError2.ts] //// + +=== world.ts === +import HelloInterface = require("./helloInterface"); +>HelloInterface : Symbol(HelloInterface, Decl(world.ts, 0, 0)) + +import HelloNamespace = require("./helloNamespace"); +>HelloNamespace : Symbol(HelloNamespace, Decl(world.ts, 0, 52)) + +HelloInterface.world; +HelloNamespace.world; +=== helloInterface.ts === +interface HelloInterface { +>HelloInterface : Symbol(HelloInterface, Decl(helloInterface.ts, 0, 0)) + + world: any; +>world : Symbol(HelloInterface.world, Decl(helloInterface.ts, 0, 26)) +} + +export = HelloInterface; +>HelloInterface : Symbol(HelloInterface, Decl(helloInterface.ts, 0, 0)) + +=== helloNamespace.ts === +namespace HelloNamespace { +>HelloNamespace : Symbol(HelloNamespace, Decl(helloNamespace.ts, 0, 0)) + + export type world = any; +>world : Symbol(world, Decl(helloNamespace.ts, 0, 26)) +} + +export = HelloNamespace; +>HelloNamespace : Symbol(HelloNamespace, Decl(helloNamespace.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.types b/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.types new file mode 100644 index 0000000000..b904333f88 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeUsedAsValueError2.types @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/typeUsedAsValueError2.ts] //// + +=== world.ts === +import HelloInterface = require("./helloInterface"); +>HelloInterface : any + +import HelloNamespace = require("./helloNamespace"); +>HelloNamespace : any + +HelloInterface.world; +>HelloInterface.world : any +>HelloInterface : any +>world : any + +HelloNamespace.world; +>HelloNamespace.world : any +>HelloNamespace : any +>world : any + +=== helloInterface.ts === +interface HelloInterface { + world: any; +>world : any +} + +export = HelloInterface; +>HelloInterface : HelloInterface + +=== helloNamespace.ts === +namespace HelloNamespace { + export type world = any; +>world : any +} + +export = HelloNamespace; +>HelloNamespace : any + diff --git a/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.errors.txt b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.errors.txt new file mode 100644 index 0000000000..2960755565 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.errors.txt @@ -0,0 +1,29 @@ +undeclaredModuleError.ts(1,21): error TS2307: Cannot find module 'fs' or its corresponding type declarations. +undeclaredModuleError.ts(8,29): error TS2345: Argument of type '() => void' is not assignable to parameter of type '(stat: fs.Stats, name: string) => boolean'. + Type 'void' is not assignable to type 'boolean'. +undeclaredModuleError.ts(11,41): error TS2304: Cannot find name 'IDoNotExist'. + + +==== undeclaredModuleError.ts (3 errors) ==== + import fs = require('fs'); + ~~~~ +!!! error TS2307: Cannot find module 'fs' or its corresponding type declarations. + function readdir(path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void ) {} + + function join(...paths: string[]) {} + + function instrumentFile(covFileDir: string, covFileName: string, originalFilePath: string) { + fs.readFile(originalFilePath, () => { + readdir(covFileDir, () => { + ~~~~~~~ +!!! error TS2345: Argument of type '() => void' is not assignable to parameter of type '(stat: fs.Stats, name: string) => boolean'. +!!! error TS2345: Type 'void' is not assignable to type 'boolean'. + } , (error: Error, files: {}[]) => { + files.forEach((file) => { + var fullPath = join(IDoNotExist); + ~~~~~~~~~~~ +!!! error TS2304: Cannot find name 'IDoNotExist'. + } ); + } ); + } ); + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js new file mode 100644 index 0000000000..1ae60cc8f4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/undeclaredModuleError.ts] //// + +//// [undeclaredModuleError.ts] +import fs = require('fs'); +function readdir(path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void ) {} + +function join(...paths: string[]) {} + +function instrumentFile(covFileDir: string, covFileName: string, originalFilePath: string) { + fs.readFile(originalFilePath, () => { + readdir(covFileDir, () => { + } , (error: Error, files: {}[]) => { + files.forEach((file) => { + var fullPath = join(IDoNotExist); + } ); + } ); + } ); +} + +//// [undeclaredModuleError.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fs = require("fs"); +function readdir(path, accept, callback) { } +function join(...paths) { } +function instrumentFile(covFileDir, covFileName, originalFilePath) { + fs.readFile(originalFilePath, () => { + readdir(covFileDir, () => { + }, (error, files) => { + files.forEach((file) => { + var fullPath = join(IDoNotExist); + }); + }); + }); +} diff --git a/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js.diff b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js.diff new file mode 100644 index 0000000000..9866ffc5f5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js.diff @@ -0,0 +1,11 @@ +--- old.undeclaredModuleError.js ++++ new.undeclaredModuleError.js +@@= skipped -19, +19 lines =@@ + //// [undeclaredModuleError.js] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-var fs = require("fs"); ++const fs = require("fs"); + function readdir(path, accept, callback) { } + function join(...paths) { } + function instrumentFile(covFileDir, covFileName, originalFilePath) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.symbols b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.symbols new file mode 100644 index 0000000000..d4cbbddd7f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.symbols @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/undeclaredModuleError.ts] //// + +=== undeclaredModuleError.ts === +import fs = require('fs'); +>fs : Symbol(fs, Decl(undeclaredModuleError.ts, 0, 0)) + +function readdir(path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void ) {} +>readdir : Symbol(readdir, Decl(undeclaredModuleError.ts, 0, 26)) +>path : Symbol(path, Decl(undeclaredModuleError.ts, 1, 17)) +>accept : Symbol(accept, Decl(undeclaredModuleError.ts, 1, 30)) +>stat : Symbol(stat, Decl(undeclaredModuleError.ts, 1, 40)) +>fs : Symbol(fs, Decl(undeclaredModuleError.ts, 0, 0)) +>Stats : Symbol(fs.Stats) +>name : Symbol(name, Decl(undeclaredModuleError.ts, 1, 55)) +>callback : Symbol(callback, Decl(undeclaredModuleError.ts, 1, 81)) +>error : Symbol(error, Decl(undeclaredModuleError.ts, 1, 93)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>results : Symbol(results, Decl(undeclaredModuleError.ts, 1, 106)) +>name : Symbol(name, Decl(undeclaredModuleError.ts, 1, 117)) +>stat : Symbol(stat, Decl(undeclaredModuleError.ts, 1, 131)) +>fs : Symbol(fs, Decl(undeclaredModuleError.ts, 0, 0)) +>Stats : Symbol(fs.Stats) + +function join(...paths: string[]) {} +>join : Symbol(join, Decl(undeclaredModuleError.ts, 1, 165)) +>paths : Symbol(paths, Decl(undeclaredModuleError.ts, 3, 14)) + +function instrumentFile(covFileDir: string, covFileName: string, originalFilePath: string) { +>instrumentFile : Symbol(instrumentFile, Decl(undeclaredModuleError.ts, 3, 36)) +>covFileDir : Symbol(covFileDir, Decl(undeclaredModuleError.ts, 5, 24)) +>covFileName : Symbol(covFileName, Decl(undeclaredModuleError.ts, 5, 43)) +>originalFilePath : Symbol(originalFilePath, Decl(undeclaredModuleError.ts, 5, 64)) + + fs.readFile(originalFilePath, () => { +>fs : Symbol(fs, Decl(undeclaredModuleError.ts, 0, 0)) +>originalFilePath : Symbol(originalFilePath, Decl(undeclaredModuleError.ts, 5, 64)) + + readdir(covFileDir, () => { +>readdir : Symbol(readdir, Decl(undeclaredModuleError.ts, 0, 26)) +>covFileDir : Symbol(covFileDir, Decl(undeclaredModuleError.ts, 5, 24)) + + } , (error: Error, files: {}[]) => { +>error : Symbol(error, Decl(undeclaredModuleError.ts, 8, 13)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>files : Symbol(files, Decl(undeclaredModuleError.ts, 8, 26)) + + files.forEach((file) => { +>files.forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) +>files : Symbol(files, Decl(undeclaredModuleError.ts, 8, 26)) +>forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) +>file : Symbol(file, Decl(undeclaredModuleError.ts, 9, 31)) + + var fullPath = join(IDoNotExist); +>fullPath : Symbol(fullPath, Decl(undeclaredModuleError.ts, 10, 23)) +>join : Symbol(join, Decl(undeclaredModuleError.ts, 1, 165)) + + } ); + } ); + } ); +} diff --git a/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.types b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.types new file mode 100644 index 0000000000..c64f33031d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.types @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/undeclaredModuleError.ts] //// + +=== undeclaredModuleError.ts === +import fs = require('fs'); +>fs : any + +function readdir(path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void ) {} +>readdir : (path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void) => void +>path : string +>accept : (stat: fs.Stats, name: string) => boolean +>stat : fs.Stats +>fs : any +>name : string +>callback : (error: Error, results: { name: string; stat: fs.Stats; }[]) => void +>error : Error +>results : { name: string; stat: fs.Stats; }[] +>name : string +>stat : fs.Stats +>fs : any + +function join(...paths: string[]) {} +>join : (...paths: string[]) => void +>paths : string[] + +function instrumentFile(covFileDir: string, covFileName: string, originalFilePath: string) { +>instrumentFile : (covFileDir: string, covFileName: string, originalFilePath: string) => void +>covFileDir : string +>covFileName : string +>originalFilePath : string + + fs.readFile(originalFilePath, () => { +>fs.readFile(originalFilePath, () => { readdir(covFileDir, () => { } , (error: Error, files: {}[]) => { files.forEach((file) => { var fullPath = join(IDoNotExist); } ); } ); } ) : any +>fs.readFile : any +>fs : any +>readFile : any +>originalFilePath : string +>() => { readdir(covFileDir, () => { } , (error: Error, files: {}[]) => { files.forEach((file) => { var fullPath = join(IDoNotExist); } ); } ); } : () => void + + readdir(covFileDir, () => { +>readdir(covFileDir, () => { } , (error: Error, files: {}[]) => { files.forEach((file) => { var fullPath = join(IDoNotExist); } ); } ) : void +>readdir : (path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void) => void +>covFileDir : string +>() => { } : () => void + + } , (error: Error, files: {}[]) => { +>(error: Error, files: {}[]) => { files.forEach((file) => { var fullPath = join(IDoNotExist); } ); } : (error: Error, files: {}[]) => void +>error : Error +>files : {}[] + + files.forEach((file) => { +>files.forEach((file) => { var fullPath = join(IDoNotExist); } ) : void +>files.forEach : (callbackfn: (value: {}, index: number, array: {}[]) => void, thisArg?: any) => void +>files : {}[] +>forEach : (callbackfn: (value: {}, index: number, array: {}[]) => void, thisArg?: any) => void +>(file) => { var fullPath = join(IDoNotExist); } : (file: {}) => void +>file : {} + + var fullPath = join(IDoNotExist); +>fullPath : void +>join(IDoNotExist) : void +>join : (...paths: string[]) => void +>IDoNotExist : any + + } ); + } ); + } ); +} diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports11.js b/testdata/baselines/reference/submodule/compiler/unusedImports11.js index 5980488861..78e1093d2b 100644 --- a/testdata/baselines/reference/submodule/compiler/unusedImports11.js +++ b/testdata/baselines/reference/submodule/compiler/unusedImports11.js @@ -27,10 +27,43 @@ exports.Member = Member; exports.default = Member; //// [a.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const b_1 = require("./b"); -const b_2 = require("./b"); -const ns = require("./b"); +const b_2 = __importStar(require("./b")); +const ns = __importStar(require("./b")); const r = require("./b"); new b_1.Member(); new b_2.default(); diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports11.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports11.js.diff index 1835269fb2..a3893c6a99 100644 --- a/testdata/baselines/reference/submodule/compiler/unusedImports11.js.diff +++ b/testdata/baselines/reference/submodule/compiler/unusedImports11.js.diff @@ -1,16 +1,16 @@ --- old.unusedImports11.js +++ new.unusedImports11.js -@@= skipped -27, +27 lines =@@ - //// [a.js] - "use strict"; +@@= skipped -60, +60 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); -var b_1 = require("./b"); --var b_2 = require("./b"); --var ns = require("./b"); +-var b_2 = __importStar(require("./b")); +-var ns = __importStar(require("./b")); -var r = require("./b"); +const b_1 = require("./b"); -+const b_2 = require("./b"); -+const ns = require("./b"); ++const b_2 = __importStar(require("./b")); ++const ns = __importStar(require("./b")); +const r = require("./b"); new b_1.Member(); new b_2.default(); diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports11.types b/testdata/baselines/reference/submodule/compiler/unusedImports11.types index 0cea17b77c..5f9de51f37 100644 --- a/testdata/baselines/reference/submodule/compiler/unusedImports11.types +++ b/testdata/baselines/reference/submodule/compiler/unusedImports11.types @@ -13,7 +13,7 @@ import * as ns from './b'; >ns : typeof ns import r = require("./b"); ->r : typeof ns +>r : typeof r new Member(); >new Member() : Member @@ -36,7 +36,7 @@ new ns.Member(); new r.Member(); >new r.Member() : Member >r.Member : typeof Member ->r : typeof ns +>r : typeof r >Member : typeof Member === b.ts === diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports12.types b/testdata/baselines/reference/submodule/compiler/unusedImports12.types index 8a43ebda90..3381cb2cdd 100644 --- a/testdata/baselines/reference/submodule/compiler/unusedImports12.types +++ b/testdata/baselines/reference/submodule/compiler/unusedImports12.types @@ -13,7 +13,7 @@ import * as ns from './b'; >ns : typeof ns import r = require("./b"); ->r : typeof ns +>r : typeof r === b.ts === export class Member {} diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js b/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js index 5daba2569c..f3dc3eaf2b 100644 --- a/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js +++ b/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js @@ -26,10 +26,46 @@ exports.b = 0; exports.default = 0; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); a_1.default; -const a_2 = require("./a"); +const a_2 = __importDefault(require("./a")); a_2.default; -const ns3 = require("./a"); +const ns3 = __importStar(require("./a")); ns3; diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js.diff index 26b1fdf401..5cba8c13b0 100644 --- a/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js.diff +++ b/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js.diff @@ -1,15 +1,15 @@ --- old.unusedImports_entireImportDeclaration.js +++ new.unusedImports_entireImportDeclaration.js -@@= skipped -26, +26 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -62, +62 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var a_1 = require("./a"); -+const a_1 = require("./a"); +-var a_1 = __importDefault(require("./a")); ++const a_1 = __importDefault(require("./a")); a_1.default; --var a_2 = require("./a"); -+const a_2 = require("./a"); +-var a_2 = __importDefault(require("./a")); ++const a_2 = __importDefault(require("./a")); a_2.default; --var ns3 = require("./a"); -+const ns3 = require("./a"); +-var ns3 = __importStar(require("./a")); ++const ns3 = __importStar(require("./a")); ns3; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.types b/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.types index 8154041670..921ac72372 100644 --- a/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.types +++ b/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.types @@ -35,15 +35,15 @@ d3; import d4, * as ns2 from "./a"; >d4 : 0 ->ns2 : typeof ns +>ns2 : typeof ns2 d4; >d4 : 0 import d5, * as ns3 from "./a"; >d5 : 0 ->ns3 : typeof ns +>ns3 : typeof ns3 ns3; ->ns3 : typeof ns +>ns3 : typeof ns3 diff --git a/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.errors.txt b/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.errors.txt deleted file mode 100644 index dd1e3a68ff..0000000000 --- a/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.errors.txt +++ /dev/null @@ -1,23 +0,0 @@ -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== A.ts (0 errors) ==== - namespace ts { - export function printVersion():void { - log("Version: " + sys.version); // the call of sys.version is deferred, should not report an error. - } - - export function log(info:string):void { - - } - } - -==== B.ts (0 errors) ==== - namespace ts { - - export let sys:{version:string} = {version: "2.0.5"}; - - } - - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.symbols b/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.symbols deleted file mode 100644 index 1cc4b7e369..0000000000 --- a/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.symbols +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/compiler/useBeforeDeclaration.ts] //// - -=== A.ts === -namespace ts { ->ts : Symbol(ts, Decl(A.ts, 0, 0), Decl(B.ts, 0, 0)) - - export function printVersion():void { ->printVersion : Symbol(printVersion, Decl(A.ts, 0, 14)) - - log("Version: " + sys.version); // the call of sys.version is deferred, should not report an error. ->log : Symbol(log, Decl(A.ts, 3, 5)) ->sys.version : Symbol(version, Decl(B.ts, 2, 20)) ->sys : Symbol(sys, Decl(B.ts, 2, 14)) ->version : Symbol(version, Decl(B.ts, 2, 20)) - } - - export function log(info:string):void { ->log : Symbol(log, Decl(A.ts, 3, 5)) ->info : Symbol(info, Decl(A.ts, 5, 24)) - - } -} - -=== B.ts === -namespace ts { ->ts : Symbol(ts, Decl(A.ts, 0, 0), Decl(B.ts, 0, 0)) - - export let sys:{version:string} = {version: "2.0.5"}; ->sys : Symbol(sys, Decl(B.ts, 2, 14)) ->version : Symbol(version, Decl(B.ts, 2, 20)) ->version : Symbol(version, Decl(B.ts, 2, 39)) - -} - - diff --git a/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.types b/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.types deleted file mode 100644 index 7856710cc9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/useBeforeDeclaration.types +++ /dev/null @@ -1,40 +0,0 @@ -//// [tests/cases/compiler/useBeforeDeclaration.ts] //// - -=== A.ts === -namespace ts { ->ts : typeof ts - - export function printVersion():void { ->printVersion : () => void - - log("Version: " + sys.version); // the call of sys.version is deferred, should not report an error. ->log("Version: " + sys.version) : void ->log : (info: string) => void ->"Version: " + sys.version : string ->"Version: " : "Version: " ->sys.version : string ->sys : { version: string; } ->version : string - } - - export function log(info:string):void { ->log : (info: string) => void ->info : string - - } -} - -=== B.ts === -namespace ts { ->ts : typeof ts - - export let sys:{version:string} = {version: "2.0.5"}; ->sys : { version: string; } ->version : string ->{version: "2.0.5"} : { version: string; } ->version : string ->"2.0.5" : "2.0.5" - -} - - diff --git a/testdata/baselines/reference/submodule/conformance/allowImportingTsExtensions(moduleresolution=classic).errors.txt b/testdata/baselines/reference/submodule/conformance/allowImportingTsExtensions(moduleresolution=classic).errors.txt deleted file mode 100644 index 755f0d6eeb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/allowImportingTsExtensions(moduleresolution=classic).errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -/c.ts(1,16): error TS2307: Cannot find module './thisfiledoesnotexist.ts' or its corresponding type declarations. - - -==== /ts.ts (0 errors) ==== - export {}; - -==== /tsx.tsx (0 errors) ==== - export {}; - -==== /dts.d.ts (0 errors) ==== - export {}; - -==== /b.ts (0 errors) ==== - import {} from "./ts.js"; - import {} from "./ts.ts"; - import type {} from "./ts.d.ts"; - - import {} from "./tsx.js"; - import {} from "./tsx.jsx"; - import {} from "./tsx.ts"; - import {} from "./tsx.tsx"; - import type {} from "./tsx.d.ts"; - - import {} from "./dts.js"; - import {} from "./dts.ts"; - import type {} from "./dts.d.ts"; - -==== /c.ts (1 errors) ==== - import {} from "./thisfiledoesnotexist.ts"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2307: Cannot find module './thisfiledoesnotexist.ts' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/allowImportingTsExtensions(moduleresolution=classic).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/allowImportingTsExtensions(moduleresolution=classic).errors.txt.diff deleted file mode 100644 index 70441494b3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/allowImportingTsExtensions(moduleresolution=classic).errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.allowImportingTsExtensions(moduleresolution=classic).errors.txt -+++ new.allowImportingTsExtensions(moduleresolution=classic).errors.txt -@@= skipped -0, +0 lines =@@ --/c.ts(1,16): error TS2792: Cannot find module './thisfiledoesnotexist.ts'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+/c.ts(1,16): error TS2307: Cannot find module './thisfiledoesnotexist.ts' or its corresponding type declarations. - - - ==== /ts.ts (0 errors) ==== -@@= skipped -27, +27 lines =@@ - ==== /c.ts (1 errors) ==== - import {} from "./thisfiledoesnotexist.ts"; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ --!!! error TS2792: Cannot find module './thisfiledoesnotexist.ts'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module './thisfiledoesnotexist.ts' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js b/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js index 211c8d2715..3344d96b11 100644 --- a/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js +++ b/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js @@ -34,6 +34,9 @@ foo(fileText); //// [user.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); /// const foobarbaz_1 = require("foobarbaz"); @@ -41,5 +44,5 @@ const foobarbaz_1 = require("foobarbaz"); const foosball_1 = require("foosball"); (0, foobarbaz_1.foo)(foosball_1.foos); // Works with relative file name -const file_text_1 = require("./file!text"); +const file_text_1 = __importDefault(require("./file!text")); (0, foobarbaz_1.foo)(file_text_1.default); diff --git a/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js.diff b/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js.diff index 0eae008366..1827386202 100644 --- a/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js.diff +++ b/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js.diff @@ -1,7 +1,7 @@ --- old.ambientDeclarationsPatterns.js +++ new.ambientDeclarationsPatterns.js -@@= skipped -35, +35 lines =@@ - "use strict"; +@@= skipped -38, +38 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); /// -var foobarbaz_1 = require("foobarbaz"); @@ -11,6 +11,6 @@ +const foosball_1 = require("foosball"); (0, foobarbaz_1.foo)(foosball_1.foos); // Works with relative file name --var file_text_1 = require("./file!text"); -+const file_text_1 = require("./file!text"); +-var file_text_1 = __importDefault(require("./file!text")); ++const file_text_1 = __importDefault(require("./file!text")); (0, foobarbaz_1.foo)(file_text_1.default); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt b/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt new file mode 100644 index 0000000000..dc26b6b386 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt @@ -0,0 +1,10 @@ +ambientExternalModuleInsideNonAmbientExternalModule.ts(1,1): error TS2668: 'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible. +ambientExternalModuleInsideNonAmbientExternalModule.ts(1,23): error TS2664: Invalid module name in augmentation, module 'M' cannot be found. + + +==== ambientExternalModuleInsideNonAmbientExternalModule.ts (2 errors) ==== + export declare module "M" { } + ~~~~~~ +!!! error TS2668: 'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible. + ~~~ +!!! error TS2664: Invalid module name in augmentation, module 'M' cannot be found. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.js b/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.js new file mode 100644 index 0000000000..e32c911b48 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts] //// + +//// [ambientExternalModuleInsideNonAmbientExternalModule.ts] +export declare module "M" { } + +//// [ambientExternalModuleInsideNonAmbientExternalModule.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.symbols b/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.symbols new file mode 100644 index 0000000000..0730dd9219 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts] //// + +=== ambientExternalModuleInsideNonAmbientExternalModule.ts === +export declare module "M" { } +>"M" : Symbol("M", Decl(ambientExternalModuleInsideNonAmbientExternalModule.ts, 0, 0)) + diff --git a/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.types b/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.types new file mode 100644 index 0000000000..4afe7f6368 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/ambientExternalModuleInsideNonAmbientExternalModule.types @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts] //// + +=== ambientExternalModuleInsideNonAmbientExternalModule.ts === +export declare module "M" { } +>"M" : any + diff --git a/testdata/baselines/reference/submodule/conformance/ambientShorthand.js b/testdata/baselines/reference/submodule/conformance/ambientShorthand.js index fae8024bcd..e0fdb6a7dc 100644 --- a/testdata/baselines/reference/submodule/conformance/ambientShorthand.js +++ b/testdata/baselines/reference/submodule/conformance/ambientShorthand.js @@ -15,9 +15,42 @@ foo(bar, baz, boom); //// [user.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const jquery_1 = require("jquery"); -const baz = require("fs"); +const jquery_1 = __importStar(require("jquery")); +const baz = __importStar(require("fs")); const boom = require("jquery"); (0, jquery_1.default)(jquery_1.bar, baz, boom); diff --git a/testdata/baselines/reference/submodule/conformance/ambientShorthand.js.diff b/testdata/baselines/reference/submodule/conformance/ambientShorthand.js.diff index 290edfeeae..341c70f947 100644 --- a/testdata/baselines/reference/submodule/conformance/ambientShorthand.js.diff +++ b/testdata/baselines/reference/submodule/conformance/ambientShorthand.js.diff @@ -1,13 +1,13 @@ --- old.ambientShorthand.js +++ new.ambientShorthand.js -@@= skipped -16, +16 lines =@@ - "use strict"; +@@= skipped -49, +49 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var jquery_1 = require("jquery"); --var baz = require("fs"); +-var jquery_1 = __importStar(require("jquery")); +-var baz = __importStar(require("fs")); -var boom = require("jquery"); -+const jquery_1 = require("jquery"); -+const baz = require("fs"); ++const jquery_1 = __importStar(require("jquery")); ++const baz = __importStar(require("fs")); +const boom = require("jquery"); (0, jquery_1.default)(jquery_1.bar, baz, boom); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js b/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js index e8776fed0c..9503b9b933 100644 --- a/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js +++ b/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js @@ -42,8 +42,41 @@ Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(require("jquery"), exports); //// [reExportUser.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const reExportX_1 = require("./reExportX"); -const $ = require("./reExportAll"); +const $ = __importStar(require("./reExportAll")); // '$' is not callable, it is an object. (0, reExportX_1.x)($); diff --git a/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js.diff b/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js.diff index c32e4e0fd4..efd4bf49fc 100644 --- a/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js.diff +++ b/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js.diff @@ -9,13 +9,13 @@ Object.defineProperty(exports, "x", { enumerable: true, get: function () { return jquery_1.x; } }); //// [reExportAll.js] "use strict"; -@@= skipped -23, +23 lines =@@ - //// [reExportUser.js] - "use strict"; +@@= skipped -56, +56 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); -var reExportX_1 = require("./reExportX"); --var $ = require("./reExportAll"); +-var $ = __importStar(require("./reExportAll")); +const reExportX_1 = require("./reExportX"); -+const $ = require("./reExportAll"); ++const $ = __importStar(require("./reExportAll")); // '$' is not callable, it is an object. (0, reExportX_1.x)($); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js b/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js index d01954f66b..3c4b1a08c3 100644 --- a/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js +++ b/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js @@ -34,6 +34,39 @@ const importStarTestA: typeC.otherType = "expect error about otherType"; //// [arbitraryModuleNamespaceIdentifiers_module.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports[""] = exports[""] = exports[""] = void 0; const someValue = "someValue"; @@ -46,7 +79,7 @@ Object.defineProperty(exports, "", { enumerable: true, get: function () { ret const arbitraryModuleNamespaceIdentifiers_module_3 = require("./arbitraryModuleNamespaceIdentifiers_module"); if (arbitraryModuleNamespaceIdentifiers_module_3[""] !== "someValue") throw "should be someValue"; -exports[""] = require("./arbitraryModuleNamespaceIdentifiers_module"); +exports[""] = __importStar(require("./arbitraryModuleNamespaceIdentifiers_module")); const arbitraryModuleNamespaceIdentifiers_module_4 = require("./arbitraryModuleNamespaceIdentifiers_module"); if (arbitraryModuleNamespaceIdentifiers_module_4[""][""] !== "someValue") throw "should be someValue"; diff --git a/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js.diff b/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js.diff index 22418ddc61..41cd60693f 100644 --- a/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js.diff +++ b/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js.diff @@ -1,6 +1,6 @@ --- old.arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js +++ new.arbitraryModuleNamespaceIdentifiers_module(module=commonjs).js -@@= skipped -40, +40 lines =@@ +@@= skipped -73, +73 lines =@@ const arbitraryModuleNamespaceIdentifiers_module_1 = require("./arbitraryModuleNamespaceIdentifiers_module"); if (arbitraryModuleNamespaceIdentifiers_module_1[""] !== "someValue") throw "should be someValue"; diff --git a/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt.diff index b9f07a8d9e..2c4c6a5af8 100644 --- a/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt.diff +++ b/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt.diff @@ -1,6 +1,7 @@ --- old.arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt +++ new.arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt @@= skipped -0, +0 lines =@@ +-error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +arbitraryModuleNamespaceIdentifiers_module.ts(4,23): error TS18057: String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'. +arbitraryModuleNamespaceIdentifiers_module.ts(5,10): error TS18057: String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'. +arbitraryModuleNamespaceIdentifiers_module.ts(8,10): error TS18057: String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'. @@ -20,6 +21,7 @@ arbitraryModuleNamespaceIdentifiers_module.ts(29,7): error TS2322: Type '"expect error about otherType"' is not assignable to type '"otherType"'. +-!!! error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== arbitraryModuleNamespaceIdentifiers_module.ts (3 errors) ==== +==== arbitraryModuleNamespaceIdentifiers_module.ts (17 errors) ==== const someValue = "someValue"; diff --git a/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=none).js.diff b/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=none).js.diff index 00999f6f71..c5f7688041 100644 --- a/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=none).js.diff +++ b/testdata/baselines/reference/submodule/conformance/arbitraryModuleNamespaceIdentifiers_module(module=none).js.diff @@ -5,6 +5,39 @@ //// [arbitraryModuleNamespaceIdentifiers_module.js] -"use strict"; +-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { +- if (k2 === undefined) k2 = k; +- var desc = Object.getOwnPropertyDescriptor(m, k); +- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { +- desc = { enumerable: true, get: function() { return m[k]; } }; +- } +- Object.defineProperty(o, k2, desc); +-}) : (function(o, m, k, k2) { +- if (k2 === undefined) k2 = k; +- o[k2] = m[k]; +-})); +-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { +- Object.defineProperty(o, "default", { enumerable: true, value: v }); +-}) : function(o, v) { +- o["default"] = v; +-}); +-var __importStar = (this && this.__importStar) || (function () { +- var ownKeys = function(o) { +- ownKeys = Object.getOwnPropertyNames || function (o) { +- var ar = []; +- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; +- return ar; +- }; +- return ownKeys(o); +- }; +- return function (mod) { +- if (mod && mod.__esModule) return mod; +- var result = {}; +- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); +- __setModuleDefault(result, mod); +- return result; +- }; +-})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports[""] = exports[""] = exports[""] = void 0; const someValue = "someValue"; @@ -17,7 +50,7 @@ -const arbitraryModuleNamespaceIdentifiers_module_3 = require("./arbitraryModuleNamespaceIdentifiers_module"); -if (arbitraryModuleNamespaceIdentifiers_module_3[""] !== "someValue") - throw "should be someValue"; --exports[""] = require("./arbitraryModuleNamespaceIdentifiers_module"); +-exports[""] = __importStar(require("./arbitraryModuleNamespaceIdentifiers_module")); -const arbitraryModuleNamespaceIdentifiers_module_4 = require("./arbitraryModuleNamespaceIdentifiers_module"); -if (arbitraryModuleNamespaceIdentifiers_module_4[""][""] !== "someValue") - throw "should be someValue"; diff --git a/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es2017.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es2017.errors.txt.diff deleted file mode 100644 index b84b370d05..0000000000 --- a/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es2017.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.asyncAwaitIsolatedModules_es2017.errors.txt -+++ new.asyncAwaitIsolatedModules_es2017.errors.txt -@@= skipped -0, +0 lines =@@ --asyncAwaitIsolatedModules_es2017.ts(1,27): error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+asyncAwaitIsolatedModules_es2017.ts(1,27): error TS2307: Cannot find module 'missing' or its corresponding type declarations. - - - ==== asyncAwaitIsolatedModules_es2017.ts (1 errors) ==== - import { MyPromise } from "missing"; - ~~~~~~~~~ --!!! error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'missing' or its corresponding type declarations. - - declare var p: Promise; - declare var mp: MyPromise; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es6.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es6.errors.txt.diff deleted file mode 100644 index 9ee16a4ed7..0000000000 --- a/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es6.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.asyncAwaitIsolatedModules_es6.errors.txt -+++ new.asyncAwaitIsolatedModules_es6.errors.txt -@@= skipped -0, +0 lines =@@ --asyncAwaitIsolatedModules_es6.ts(1,27): error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+asyncAwaitIsolatedModules_es6.ts(1,27): error TS2307: Cannot find module 'missing' or its corresponding type declarations. - - - ==== asyncAwaitIsolatedModules_es6.ts (1 errors) ==== - import { MyPromise } from "missing"; - ~~~~~~~~~ --!!! error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'missing' or its corresponding type declarations. - - declare var p: Promise; - declare var mp: MyPromise; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessorDisallowedModifiers(target=es2017).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/autoAccessorDisallowedModifiers(target=es2017).errors.txt.diff deleted file mode 100644 index 40e6336c60..0000000000 --- a/testdata/baselines/reference/submodule/conformance/autoAccessorDisallowedModifiers(target=es2017).errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.autoAccessorDisallowedModifiers(target=es2017).errors.txt -+++ new.autoAccessorDisallowedModifiers(target=es2017).errors.txt -@@= skipped -23, +23 lines =@@ - autoAccessorDisallowedModifiers.ts(33,1): error TS1275: 'accessor' modifier can only appear on a property declaration. - autoAccessorDisallowedModifiers.ts(34,1): error TS1275: 'accessor' modifier can only appear on a property declaration. - autoAccessorDisallowedModifiers.ts(35,1): error TS1275: 'accessor' modifier can only appear on a property declaration. --autoAccessorDisallowedModifiers.ts(35,25): error TS2792: Cannot find module 'x'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+autoAccessorDisallowedModifiers.ts(35,25): error TS2307: Cannot find module 'x' or its corresponding type declarations. - autoAccessorDisallowedModifiers.ts(36,1): error TS1275: 'accessor' modifier can only appear on a property declaration. - autoAccessorDisallowedModifiers.ts(37,1): error TS1275: 'accessor' modifier can only appear on a property declaration. - autoAccessorDisallowedModifiers.ts(38,1): error TS1275: 'accessor' modifier can only appear on a property declaration. -@@= skipped -95, +95 lines =@@ - ~~~~~~~~ - !!! error TS1275: 'accessor' modifier can only appear on a property declaration. - ~~~ --!!! error TS2792: Cannot find module 'x'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'x' or its corresponding type declarations. - accessor export { V1 }; - ~~~~~~~~ - !!! error TS1275: 'accessor' modifier can only appear on a property declaration. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessorDisallowedModifiers(target=esnext).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/autoAccessorDisallowedModifiers(target=esnext).errors.txt.diff deleted file mode 100644 index 5993f8df85..0000000000 --- a/testdata/baselines/reference/submodule/conformance/autoAccessorDisallowedModifiers(target=esnext).errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.autoAccessorDisallowedModifiers(target=esnext).errors.txt -+++ new.autoAccessorDisallowedModifiers(target=esnext).errors.txt -@@= skipped -23, +23 lines =@@ - autoAccessorDisallowedModifiers.ts(33,1): error TS1275: 'accessor' modifier can only appear on a property declaration. - autoAccessorDisallowedModifiers.ts(34,1): error TS1275: 'accessor' modifier can only appear on a property declaration. - autoAccessorDisallowedModifiers.ts(35,1): error TS1275: 'accessor' modifier can only appear on a property declaration. --autoAccessorDisallowedModifiers.ts(35,25): error TS2792: Cannot find module 'x'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+autoAccessorDisallowedModifiers.ts(35,25): error TS2307: Cannot find module 'x' or its corresponding type declarations. - autoAccessorDisallowedModifiers.ts(36,1): error TS1275: 'accessor' modifier can only appear on a property declaration. - autoAccessorDisallowedModifiers.ts(37,1): error TS1275: 'accessor' modifier can only appear on a property declaration. - autoAccessorDisallowedModifiers.ts(38,1): error TS1275: 'accessor' modifier can only appear on a property declaration. -@@= skipped -95, +95 lines =@@ - ~~~~~~~~ - !!! error TS1275: 'accessor' modifier can only appear on a property declaration. - ~~~ --!!! error TS2792: Cannot find module 'x'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'x' or its corresponding type declarations. - accessor export { V1 }; - ~~~~~~~~ - !!! error TS1275: 'accessor' modifier can only appear on a property declaration. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/chained2.js b/testdata/baselines/reference/submodule/conformance/chained2.js index 5dfe2c8d1a..d68d24e019 100644 --- a/testdata/baselines/reference/submodule/conformance/chained2.js +++ b/testdata/baselines/reference/submodule/conformance/chained2.js @@ -32,14 +32,50 @@ class A { Object.defineProperty(exports, "__esModule", { value: true }); //// [c.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; -const types = require("./b"); +const types = __importStar(require("./b")); exports.default = types; //// [d.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const c_1 = require("./c"); +const c_1 = __importDefault(require("./c")); new c_1.default.A(); new c_1.default.B(); const a = {}; diff --git a/testdata/baselines/reference/submodule/conformance/chained2.js.diff b/testdata/baselines/reference/submodule/conformance/chained2.js.diff index 14f994cbda..e736344345 100644 --- a/testdata/baselines/reference/submodule/conformance/chained2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/chained2.js.diff @@ -8,18 +8,21 @@ } //// [b.js] "use strict"; -@@= skipped -8, +9 lines =@@ - "use strict"; +@@= skipped -41, +42 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; --var types = require("./b"); -+const types = require("./b"); +-var types = __importStar(require("./b")); ++const types = __importStar(require("./b")); exports.default = types; //// [d.js] "use strict"; +@@= skipped -8, +8 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var c_1 = require("./c"); -+const c_1 = require("./c"); +-var c_1 = __importDefault(require("./c")); ++const c_1 = __importDefault(require("./c")); new c_1.default.A(); new c_1.default.B(); const a = {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.errors.txt b/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.errors.txt deleted file mode 100644 index 1ebf96cdaf..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.errors.txt +++ /dev/null @@ -1,16 +0,0 @@ -error TS5055: Cannot write file 'eof.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -eof.js(2,20): error TS2304: Cannot find name 'bad'. - - -!!! error TS5055: Cannot write file 'eof.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== eof.js (1 errors) ==== - /** - * @typedef {Array} Should have error here - ~~~ -!!! error TS2304: Cannot find name 'bad'. - */ - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.symbols b/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.symbols deleted file mode 100644 index 3ee1c8ce74..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.symbols +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/jsdoc/checkJsdocOnEndOfFile.ts] //// - -=== eof.js === - -/** - * @typedef {Array} Should have error here - */ - diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.types b/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.types deleted file mode 100644 index 3ee1c8ce74..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocOnEndOfFile.types +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/jsdoc/checkJsdocOnEndOfFile.ts] //// - -=== eof.js === - -/** - * @typedef {Array} Should have error here - */ - diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.errors.txt b/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.errors.txt deleted file mode 100644 index d34f12577f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -error TS5055: Cannot write file 'returns.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -returns.js(20,12): error TS2872: This kind of expression is always truthy. - - -!!! error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== returns.js (1 errors) ==== - // @ts-check - /** - * @returns {string} This comment is not currently exposed - */ - function f() { - return "hello"; - } - - /** - * @returns {string=} This comment is not currently exposed - */ - function f1() { - return "hello world"; - } - - /** - * @returns {string|number} This comment is not currently exposed - */ - function f2() { - return 5 || "hello"; - ~ -!!! error TS2872: This kind of expression is always truthy. - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.symbols b/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.symbols deleted file mode 100644 index 787e4f4d61..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/jsdoc/checkJsdocReturnTag1.ts] //// - -=== returns.js === -// @ts-check -/** - * @returns {string} This comment is not currently exposed - */ -function f() { ->f : Symbol(f, Decl(returns.js, 0, 0)) - - return "hello"; -} - -/** - * @returns {string=} This comment is not currently exposed - */ -function f1() { ->f1 : Symbol(f1, Decl(returns.js, 6, 1)) - - return "hello world"; -} - -/** - * @returns {string|number} This comment is not currently exposed - */ -function f2() { ->f2 : Symbol(f2, Decl(returns.js, 13, 1)) - - return 5 || "hello"; -} - diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.types b/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.types deleted file mode 100644 index 39f1932261..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag1.types +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/jsdoc/checkJsdocReturnTag1.ts] //// - -=== returns.js === -// @ts-check -/** - * @returns {string} This comment is not currently exposed - */ -function f() { ->f : () => string - - return "hello"; ->"hello" : "hello" -} - -/** - * @returns {string=} This comment is not currently exposed - */ -function f1() { ->f1 : () => string - - return "hello world"; ->"hello world" : "hello world" -} - -/** - * @returns {string|number} This comment is not currently exposed - */ -function f2() { ->f2 : () => string | number - - return 5 || "hello"; ->5 || "hello" : "hello" | 5 ->5 : 5 ->"hello" : "hello" -} - diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.errors.txt b/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.errors.txt deleted file mode 100644 index 7bc102364c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -error TS5055: Cannot write file 'returns.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -returns.js(6,5): error TS2322: Type 'number' is not assignable to type 'string'. -returns.js(13,5): error TS2322: Type 'number | boolean' is not assignable to type 'string | number'. - Type 'boolean' is not assignable to type 'string | number'. -returns.js(13,12): error TS2872: This kind of expression is always truthy. - - -!!! error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== returns.js (3 errors) ==== - // @ts-check - /** - * @returns {string} This comment is not currently exposed - */ - function f() { - return 5; - ~~~~~~ -!!! error TS2322: Type 'number' is not assignable to type 'string'. - } - - /** - * @returns {string | number} This comment is not currently exposed - */ - function f1() { - return 5 || true; - ~~~~~~ -!!! error TS2322: Type 'number | boolean' is not assignable to type 'string | number'. -!!! error TS2322: Type 'boolean' is not assignable to type 'string | number'. - ~ -!!! error TS2872: This kind of expression is always truthy. - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.symbols b/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.symbols deleted file mode 100644 index 7dcaa09d68..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/jsdoc/checkJsdocReturnTag2.ts] //// - -=== returns.js === -// @ts-check -/** - * @returns {string} This comment is not currently exposed - */ -function f() { ->f : Symbol(f, Decl(returns.js, 0, 0)) - - return 5; -} - -/** - * @returns {string | number} This comment is not currently exposed - */ -function f1() { ->f1 : Symbol(f1, Decl(returns.js, 6, 1)) - - return 5 || true; -} - diff --git a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.types b/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.types deleted file mode 100644 index 6ad8c3fb20..0000000000 --- a/testdata/baselines/reference/submodule/conformance/checkJsdocReturnTag2.types +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/conformance/jsdoc/checkJsdocReturnTag2.ts] //// - -=== returns.js === -// @ts-check -/** - * @returns {string} This comment is not currently exposed - */ -function f() { ->f : () => string - - return 5; ->5 : 5 -} - -/** - * @returns {string | number} This comment is not currently exposed - */ -function f1() { ->f1 : () => string | number - - return 5 || true; ->5 || true : 5 | true ->5 : 5 ->true : true -} - diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js b/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js index ce88126d00..ddab218ac4 100644 --- a/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js +++ b/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js @@ -17,8 +17,41 @@ let d = a.x} />; / //// [file.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const React = require("react"); +const React = __importStar(require("react")); let a = a}/>; // No error let b = a}/>; // No error - Values should be reinstantiated with `number` (since `object` is a default, not a constraint) let c = ({ x: a.x })}/>; // No Error diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js.diff index 0130da3f9e..2ab7e9944a 100644 --- a/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js.diff +++ b/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js.diff @@ -1,11 +1,11 @@ --- old.checkJsxGenericTagHasCorrectInferences.js +++ new.checkJsxGenericTagHasCorrectInferences.js -@@= skipped -17, +17 lines =@@ - //// [file.jsx] - "use strict"; +@@= skipped -50, +50 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); let a = a}/>; // No error let b = a}/>; // No error - Values should be reinstantiated with `number` (since `object` is a default, not a constraint) let c = ({ x: a.x })}/>; // No Error \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js b/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js index 714b52ad4a..b3ede930a7 100644 --- a/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js +++ b/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js @@ -28,9 +28,42 @@ const loader = -const React = require("react"); +const React = __importStar(require("react")); class AsyncLoader extends React.Component { render() { return null; } } diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js.diff index 6737a2ecb9..ddb3295d03 100644 --- a/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js.diff +++ b/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js.diff @@ -1,9 +1,9 @@ --- old.checkJsxSubtleSkipContextSensitiveBug.js +++ new.checkJsxSubtleSkipContextSensitiveBug.js -@@= skipped -27, +27 lines =@@ - - //// [checkJsxSubtleSkipContextSensitiveBug.js] - "use strict"; +@@= skipped -60, +60 lines =@@ + return result; + }; + })(); -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) { @@ -15,8 +15,8 @@ -}; Object.defineProperty(exports, "__esModule", { value: true }); /// --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); class AsyncLoader extends React.Component { render() { return null; } } diff --git a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).errors.txt b/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).errors.txt deleted file mode 100644 index 29cf4ce60b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -error TS5055: Cannot write file 'computedPropertyNames52.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'computedPropertyNames52.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== computedPropertyNames52.js (0 errors) ==== - const array = []; - for (let i = 0; i < 10; ++i) { - array.push(class C { - [i] = () => C; - static [i] = 100; - }) - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).symbols b/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).symbols deleted file mode 100644 index 469929e760..0000000000 --- a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames52.ts] //// - -=== computedPropertyNames52.js === -const array = []; ->array : Symbol(array, Decl(computedPropertyNames52.js, 0, 5)) - -for (let i = 0; i < 10; ++i) { ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) - - array.push(class C { ->array.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) ->array : Symbol(array, Decl(computedPropertyNames52.js, 0, 5)) ->push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) ->C : Symbol(C, Decl(computedPropertyNames52.js, 2, 15)) - - [i] = () => C; ->[i] : Symbol(C[i], Decl(computedPropertyNames52.js, 2, 24)) ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) ->C : Symbol(C, Decl(computedPropertyNames52.js, 2, 15)) - - static [i] = 100; ->[i] : Symbol(C[i], Decl(computedPropertyNames52.js, 3, 22)) ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) - - }) -} - diff --git a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).types b/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).types deleted file mode 100644 index 258e63430a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es2015).types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames52.ts] //// - -=== computedPropertyNames52.js === -const array = []; ->array : any[] ->[] : undefined[] - -for (let i = 0; i < 10; ++i) { ->i : number ->0 : 0 ->i < 10 : boolean ->i : number ->10 : 10 ->++i : number ->i : number - - array.push(class C { ->array.push(class C { [i] = () => C; static [i] = 100; }) : number ->array.push : (...items: any[]) => number ->array : any[] ->push : (...items: any[]) => number ->class C { [i] = () => C; static [i] = 100; } : typeof C ->C : typeof C - - [i] = () => C; ->[i] : () => typeof C ->i : number ->() => C : () => typeof C ->C : typeof C - - static [i] = 100; ->[i] : number ->i : number ->100 : 100 - - }) -} - diff --git a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).errors.txt b/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).errors.txt deleted file mode 100644 index 29cf4ce60b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -error TS5055: Cannot write file 'computedPropertyNames52.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'computedPropertyNames52.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== computedPropertyNames52.js (0 errors) ==== - const array = []; - for (let i = 0; i < 10; ++i) { - array.push(class C { - [i] = () => C; - static [i] = 100; - }) - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).symbols b/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).symbols deleted file mode 100644 index 469929e760..0000000000 --- a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames52.ts] //// - -=== computedPropertyNames52.js === -const array = []; ->array : Symbol(array, Decl(computedPropertyNames52.js, 0, 5)) - -for (let i = 0; i < 10; ++i) { ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) - - array.push(class C { ->array.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) ->array : Symbol(array, Decl(computedPropertyNames52.js, 0, 5)) ->push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) ->C : Symbol(C, Decl(computedPropertyNames52.js, 2, 15)) - - [i] = () => C; ->[i] : Symbol(C[i], Decl(computedPropertyNames52.js, 2, 24)) ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) ->C : Symbol(C, Decl(computedPropertyNames52.js, 2, 15)) - - static [i] = 100; ->[i] : Symbol(C[i], Decl(computedPropertyNames52.js, 3, 22)) ->i : Symbol(i, Decl(computedPropertyNames52.js, 1, 8)) - - }) -} - diff --git a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).types b/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).types deleted file mode 100644 index 258e63430a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/computedPropertyNames52(target=es5).types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames52.ts] //// - -=== computedPropertyNames52.js === -const array = []; ->array : any[] ->[] : undefined[] - -for (let i = 0; i < 10; ++i) { ->i : number ->0 : 0 ->i < 10 : boolean ->i : number ->10 : 10 ->++i : number ->i : number - - array.push(class C { ->array.push(class C { [i] = () => C; static [i] = 100; }) : number ->array.push : (...items: any[]) => number ->array : any[] ->push : (...items: any[]) => number ->class C { [i] = () => C; static [i] = 100; } : typeof C ->C : typeof C - - [i] = () => C; ->[i] : () => typeof C ->i : number ->() => C : () => typeof C ->C : typeof C - - static [i] = 100; ->[i] : number ->i : number ->100 : 100 - - }) -} - diff --git a/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt new file mode 100644 index 0000000000..93bce755b0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt @@ -0,0 +1,90 @@ +file.tsx(27,64): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +file.tsx(28,24): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. +file.tsx(29,43): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +file.tsx(30,36): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +file.tsx(33,65): error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. + Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. +file.tsx(36,44): error TS2322: Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. + + +==== file.tsx (6 errors) ==== + import React = require('react') + + export interface ClickableProps { + children?: string; + className?: string; + } + + export interface ButtonProps extends ClickableProps { + onClick: (k: "left" | "right") => void; + } + + export interface LinkProps extends ClickableProps { + goTo: "home" | "contact"; + } + + export function MainButton(buttonProps: ButtonProps): JSX.Element; + export function MainButton(linkProps: LinkProps): JSX.Element; + export function MainButton(props: ButtonProps | LinkProps): JSX.Element { + const linkProps = props as LinkProps; + if(linkProps.goTo) { + return this._buildMainLink(props); + } + + return this._buildMainButton(props); + } + + const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" + ~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +!!! related TS2771 file.tsx:17:17: The last overload is declared here. + const b2 = {console.log(k)}} extra />; // k has type "left" | "right" + ~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +!!! error TS2769: Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. +!!! related TS2771 file.tsx:17:17: The last overload is declared here. + const b3 = ; // goTo has type"home" | "contact" + ~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +!!! related TS2771 file.tsx:17:17: The last overload is declared here. + const b4 = ; // goTo has type "home" | "contact" + ~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +!!! related TS2771 file.tsx:17:17: The last overload is declared here. + + export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } + const c1 = {console.log(k)}}} extra />; // k has type any + ~~~~~ +!!! error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +!!! error TS2322: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. + + export function NoOverload1(linkProps: LinkProps): JSX.Element { return undefined } + const d1 = ; // goTo has type "home" | "contact" + ~~~~~ +!!! error TS2322: Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +!!! error TS2322: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt.diff new file mode 100644 index 0000000000..18cc4efdd1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt.diff @@ -0,0 +1,88 @@ +--- old.contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt ++++ new.contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt +@@= skipped -0, +0 lines =@@ + file.tsx(27,64): error TS2769: No overload matches this call. +- Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. +- Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +- Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. +- Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. ++ The last overload gave the following error. + Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +-file.tsx(28,13): error TS2769: No overload matches this call. +- Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. +- Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +- Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. +- Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. ++file.tsx(28,24): error TS2769: No overload matches this call. ++ The last overload gave the following error. + Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. + file.tsx(29,43): error TS2769: No overload matches this call. +- Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. +- Type '{ goTo: string; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +- Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. +- Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. ++ The last overload gave the following error. + Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +-file.tsx(30,13): error TS2769: No overload matches this call. +- Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. +- Type '{ goTo: string; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +- Property 'goTo' does not exist on type 'IntrinsicAttributes & ButtonProps'. +- Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. ++file.tsx(30,36): error TS2769: No overload matches this call. ++ The last overload gave the following error. + Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. + file.tsx(33,65): error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +@@= skipped -61, +49 lines =@@ + const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" + ~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. +-!!! error TS2769: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + !!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. ++!!! related TS2771 file.tsx:17:17: The last overload is declared here. + const b2 = {console.log(k)}} extra />; // k has type "left" | "right" +- ~~~~~~~~~~ ++ ~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. +-!!! error TS2769: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + !!! error TS2769: Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. ++!!! related TS2771 file.tsx:17:17: The last overload is declared here. + const b3 = ; // goTo has type"home" | "contact" + ~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. +-!!! error TS2769: Type '{ goTo: string; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + !!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. ++!!! related TS2771 file.tsx:17:17: The last overload is declared here. + const b4 = ; // goTo has type "home" | "contact" +- ~~~~~~~~~~ ++ ~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. +-!!! error TS2769: Type '{ goTo: string; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Property 'goTo' does not exist on type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. + !!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. ++!!! related TS2771 file.tsx:17:17: The last overload is declared here. + + export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } + const c1 = {console.log(k)}}} extra />; // k has type any \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js new file mode 100644 index 0000000000..e8f9c13c87 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx] //// + +//// [file.tsx] +import React = require('react') + +export interface ClickableProps { + children?: string; + className?: string; +} + +export interface ButtonProps extends ClickableProps { + onClick: (k: "left" | "right") => void; +} + +export interface LinkProps extends ClickableProps { + goTo: "home" | "contact"; +} + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +export function MainButton(linkProps: LinkProps): JSX.Element; +export function MainButton(props: ButtonProps | LinkProps): JSX.Element { + const linkProps = props as LinkProps; + if(linkProps.goTo) { + return this._buildMainLink(props); + } + + return this._buildMainButton(props); +} + +const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" +const b2 = {console.log(k)}} extra />; // k has type "left" | "right" +const b3 = ; // goTo has type"home" | "contact" +const b4 = ; // goTo has type "home" | "contact" + +export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } +const c1 = {console.log(k)}}} extra />; // k has type any + +export function NoOverload1(linkProps: LinkProps): JSX.Element { return undefined } +const d1 = ; // goTo has type "home" | "contact" + + +//// [file.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MainButton = MainButton; +exports.NoOverload = NoOverload; +exports.NoOverload1 = NoOverload1; +const React = require("react"); +function MainButton(props) { + const linkProps = props; + if (linkProps.goTo) { + return this._buildMainLink(props); + } + return this._buildMainButton(props); +} +const b0 = { console.log(k); } }} extra/>; // k has type "left" | "right" +const b2 = { console.log(k); }} extra/>; // k has type "left" | "right" +const b3 = ; // goTo has type"home" | "contact" +const b4 = ; // goTo has type "home" | "contact" +function NoOverload(buttonProps) { return undefined; } +const c1 = { console.log(k); } }} extra/>; // k has type any +function NoOverload1(linkProps) { return undefined; } +const d1 = ; // goTo has type "home" | "contact" diff --git a/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js.diff b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js.diff new file mode 100644 index 0000000000..781946ee07 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js.diff @@ -0,0 +1,11 @@ +--- old.contextuallyTypedStringLiteralsInJsxAttributes02.js ++++ new.contextuallyTypedStringLiteralsInJsxAttributes02.js +@@= skipped -44, +44 lines =@@ + exports.MainButton = MainButton; + exports.NoOverload = NoOverload; + exports.NoOverload1 = NoOverload1; +-var React = require("react"); ++const React = require("react"); + function MainButton(props) { + const linkProps = props; + if (linkProps.goTo) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.symbols b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.symbols new file mode 100644 index 0000000000..207e3bb681 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.symbols @@ -0,0 +1,140 @@ +//// [tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx] //// + +=== file.tsx === +import React = require('react') +>React : Symbol(React, Decl(file.tsx, 0, 0)) + +export interface ClickableProps { +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + children?: string; +>children : Symbol(ClickableProps.children, Decl(file.tsx, 2, 33)) + + className?: string; +>className : Symbol(ClickableProps.className, Decl(file.tsx, 3, 22)) +} + +export interface ButtonProps extends ClickableProps { +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + onClick: (k: "left" | "right") => void; +>onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 7, 53)) +>k : Symbol(k, Decl(file.tsx, 8, 14)) +} + +export interface LinkProps extends ClickableProps { +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + goTo: "home" | "contact"; +>goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 11, 51)) +} + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +>MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) +>buttonProps : Symbol(buttonProps, Decl(file.tsx, 15, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +export function MainButton(linkProps: LinkProps): JSX.Element; +>MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 16, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +export function MainButton(props: ButtonProps | LinkProps): JSX.Element { +>MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) +>props : Symbol(props, Decl(file.tsx, 17, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + + const linkProps = props as LinkProps; +>linkProps : Symbol(linkProps, Decl(file.tsx, 18, 9)) +>props : Symbol(props, Decl(file.tsx, 17, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) + + if(linkProps.goTo) { +>linkProps.goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 11, 51)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 18, 9)) +>goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 11, 51)) + + return this._buildMainLink(props); +>props : Symbol(props, Decl(file.tsx, 17, 27)) + } + + return this._buildMainButton(props); +>props : Symbol(props, Decl(file.tsx, 17, 27)) +} + +const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" +>b0 : Symbol(b0, Decl(file.tsx, 26, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) +>onClick : Symbol(onClick, Decl(file.tsx, 26, 28)) +>k : Symbol(k, Decl(file.tsx, 26, 38)) +>console.log : Symbol(Console.log, Decl(lib.d.ts, --, --)) +>console : Symbol(console, Decl(lib.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.d.ts, --, --)) +>k : Symbol(k, Decl(file.tsx, 26, 38)) +>extra : Symbol(extra, Decl(file.tsx, 26, 62)) + +const b2 = {console.log(k)}} extra />; // k has type "left" | "right" +>b2 : Symbol(b2, Decl(file.tsx, 27, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) +>onClick : Symbol(onClick, Decl(file.tsx, 27, 22)) +>k : Symbol(k, Decl(file.tsx, 27, 33)) +>console.log : Symbol(Console.log, Decl(lib.d.ts, --, --)) +>console : Symbol(console, Decl(lib.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.d.ts, --, --)) +>k : Symbol(k, Decl(file.tsx, 27, 33)) +>extra : Symbol(extra, Decl(file.tsx, 27, 54)) + +const b3 = ; // goTo has type"home" | "contact" +>b3 : Symbol(b3, Decl(file.tsx, 28, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) +>goTo : Symbol(goTo, Decl(file.tsx, 28, 28)) +>extra : Symbol(extra, Decl(file.tsx, 28, 41)) + +const b4 = ; // goTo has type "home" | "contact" +>b4 : Symbol(b4, Decl(file.tsx, 29, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) +>goTo : Symbol(goTo, Decl(file.tsx, 29, 22)) +>extra : Symbol(extra, Decl(file.tsx, 29, 34)) + +export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } +>NoOverload : Symbol(NoOverload, Decl(file.tsx, 29, 44)) +>buttonProps : Symbol(buttonProps, Decl(file.tsx, 31, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) +>undefined : Symbol(undefined) + +const c1 = {console.log(k)}}} extra />; // k has type any +>c1 : Symbol(c1, Decl(file.tsx, 32, 5)) +>NoOverload : Symbol(NoOverload, Decl(file.tsx, 29, 44)) +>onClick : Symbol(onClick, Decl(file.tsx, 32, 29)) +>k : Symbol(k, Decl(file.tsx, 32, 39)) +>console.log : Symbol(Console.log, Decl(lib.d.ts, --, --)) +>console : Symbol(console, Decl(lib.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.d.ts, --, --)) +>k : Symbol(k, Decl(file.tsx, 32, 39)) +>extra : Symbol(extra, Decl(file.tsx, 32, 63)) + +export function NoOverload1(linkProps: LinkProps): JSX.Element { return undefined } +>NoOverload1 : Symbol(NoOverload1, Decl(file.tsx, 32, 73)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 34, 28)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) +>undefined : Symbol(undefined) + +const d1 = ; // goTo has type "home" | "contact" +>d1 : Symbol(d1, Decl(file.tsx, 35, 5)) +>NoOverload1 : Symbol(NoOverload1, Decl(file.tsx, 32, 73)) +>goTo : Symbol(goTo, Decl(file.tsx, 35, 29)) +>extra : Symbol(extra, Decl(file.tsx, 35, 42)) + diff --git a/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.types b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.types new file mode 100644 index 0000000000..ec63c3361e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.types @@ -0,0 +1,147 @@ +//// [tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx] //// + +=== file.tsx === +import React = require('react') +>React : typeof React + +export interface ClickableProps { + children?: string; +>children : string + + className?: string; +>className : string +} + +export interface ButtonProps extends ClickableProps { + onClick: (k: "left" | "right") => void; +>onClick : (k: "left" | "right") => void +>k : "left" | "right" +} + +export interface LinkProps extends ClickableProps { + goTo: "home" | "contact"; +>goTo : "contact" | "home" +} + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } +>buttonProps : ButtonProps +>JSX : any + +export function MainButton(linkProps: LinkProps): JSX.Element; +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } +>linkProps : LinkProps +>JSX : any + +export function MainButton(props: ButtonProps | LinkProps): JSX.Element { +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } +>props : ButtonProps | LinkProps +>JSX : any + + const linkProps = props as LinkProps; +>linkProps : LinkProps +>props as LinkProps : LinkProps +>props : ButtonProps | LinkProps + + if(linkProps.goTo) { +>linkProps.goTo : "contact" | "home" +>linkProps : LinkProps +>goTo : "contact" | "home" + + return this._buildMainLink(props); +>this._buildMainLink(props) : any +>this._buildMainLink : any +>this : any +>_buildMainLink : any +>props : ButtonProps | LinkProps + } + + return this._buildMainButton(props); +>this._buildMainButton(props) : any +>this._buildMainButton : any +>this : any +>_buildMainButton : any +>props : ButtonProps | LinkProps +} + +const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" +>b0 : JSX.Element +> {console.log(k)}}} extra /> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } +>{onClick: (k) => {console.log(k)}} : { onClick: (k: "left" | "right") => void; } +>onClick : (k: "left" | "right") => void +>(k) => {console.log(k)} : (k: "left" | "right") => void +>k : "left" | "right" +>console.log(k) : void +>console.log : (message?: any, ...optionalParams: any[]) => void +>console : Console +>log : (message?: any, ...optionalParams: any[]) => void +>k : "left" | "right" +>extra : true + +const b2 = {console.log(k)}} extra />; // k has type "left" | "right" +>b2 : JSX.Element +>{console.log(k)}} extra /> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } +>onClick : (k: "left" | "right") => void +>(k)=>{console.log(k)} : (k: "left" | "right") => void +>k : "left" | "right" +>console.log(k) : void +>console.log : (message?: any, ...optionalParams: any[]) => void +>console : Console +>log : (message?: any, ...optionalParams: any[]) => void +>k : "left" | "right" +>extra : true + +const b3 = ; // goTo has type"home" | "contact" +>b3 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } +>{goTo:"home"} : { goTo: "home"; } +>goTo : "home" +>"home" : "home" +>extra : true + +const b4 = ; // goTo has type "home" | "contact" +>b4 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } +>goTo : "home" +>extra : true + +export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } +>NoOverload : (buttonProps: ButtonProps) => JSX.Element +>buttonProps : ButtonProps +>JSX : any +>undefined : undefined + +const c1 = {console.log(k)}}} extra />; // k has type any +>c1 : JSX.Element +> {console.log(k)}}} extra /> : JSX.Element +>NoOverload : (buttonProps: ButtonProps) => JSX.Element +>{onClick: (k) => {console.log(k)}} : { onClick: (k: "left" | "right") => void; } +>onClick : (k: "left" | "right") => void +>(k) => {console.log(k)} : (k: "left" | "right") => void +>k : "left" | "right" +>console.log(k) : void +>console.log : (message?: any, ...optionalParams: any[]) => void +>console : Console +>log : (message?: any, ...optionalParams: any[]) => void +>k : "left" | "right" +>extra : true + +export function NoOverload1(linkProps: LinkProps): JSX.Element { return undefined } +>NoOverload1 : (linkProps: LinkProps) => JSX.Element +>linkProps : LinkProps +>JSX : any +>undefined : undefined + +const d1 = ; // goTo has type "home" | "contact" +>d1 : JSX.Element +> : JSX.Element +>NoOverload1 : (linkProps: LinkProps) => JSX.Element +>{goTo:"home"} : { goTo: "home"; } +>goTo : "home" +>"home" : "home" +>extra : true + diff --git a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js index 094646b239..9e50a85742 100644 --- a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js +++ b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js @@ -11,6 +11,9 @@ export default val; //// [main.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const data_json_1 = require("./data.json"); +const data_json_1 = __importDefault(require("./data.json")); let x = data_json_1.default; diff --git a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js.diff b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js.diff index 7785c01680..74e4eda0b3 100644 --- a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js.diff +++ b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js.diff @@ -1,9 +1,9 @@ --- old.declarationFileForJsonImport(resolvejsonmodule=false).js +++ new.declarationFileForJsonImport(resolvejsonmodule=false).js -@@= skipped -11, +11 lines =@@ - //// [main.js] - "use strict"; +@@= skipped -14, +14 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var data_json_1 = require("./data.json"); -+const data_json_1 = require("./data.json"); +-var data_json_1 = __importDefault(require("./data.json")); ++const data_json_1 = __importDefault(require("./data.json")); let x = data_json_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js index 094646b239..9e50a85742 100644 --- a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js +++ b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js @@ -11,6 +11,9 @@ export default val; //// [main.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const data_json_1 = require("./data.json"); +const data_json_1 = __importDefault(require("./data.json")); let x = data_json_1.default; diff --git a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js.diff b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js.diff index ee11508f2f..034ad0eca5 100644 --- a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js.diff +++ b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js.diff @@ -1,9 +1,9 @@ --- old.declarationFileForJsonImport(resolvejsonmodule=true).js +++ new.declarationFileForJsonImport(resolvejsonmodule=true).js -@@= skipped -11, +11 lines =@@ - //// [main.js] - "use strict"; +@@= skipped -14, +14 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var data_json_1 = require("./data.json"); -+const data_json_1 = require("./data.json"); +-var data_json_1 = __importDefault(require("./data.json")); ++const data_json_1 = __importDefault(require("./data.json")); let x = data_json_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.errors.txt.diff deleted file mode 100644 index 6f3d1d96fd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.decoratedClassFromExternalModule.errors.txt -+++ new.decoratedClassFromExternalModule.errors.txt -@@= skipped -0, +0 lines =@@ -- -+undecorated.ts(1,23): error TS2307: Cannot find module 'decorated' or its corresponding type declarations. -+ -+ -+==== decorated.ts (0 errors) ==== -+ function decorate(target: any) { } -+ -+ @decorate -+ export default class Decorated { } -+ -+==== undecorated.ts (1 errors) ==== -+ import Decorated from 'decorated'; -+ ~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'decorated' or its corresponding type declarations. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.types.diff b/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.types.diff deleted file mode 100644 index 07ac649274..0000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.types.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.decoratedClassFromExternalModule.types -+++ new.decoratedClassFromExternalModule.types -@@= skipped -12, +12 lines =@@ - - === undecorated.ts === - import Decorated from 'decorated'; -->Decorated : typeof Decorated -+>Decorated : any diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff index 5f4f72998b..2d34a137e6 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff @@ -12,9 +12,12 @@ -}; -var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +-}; +-var __importDefault = (this && this.__importDefault) || function (mod) { +- return (mod && mod.__esModule) ? mod : { "default": mod }; -}; Object.defineProperty(exports, "__esModule", { value: true }); --var service_1 = require("./service"); +-var service_1 = __importDefault(require("./service")); -let MyComponent = (() => { - let MyComponent = class MyComponent { - constructor(Service) { diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportInAwaitExpression02.js b/testdata/baselines/reference/submodule/conformance/defaultExportInAwaitExpression02.js index ee93757421..57c0d290d2 100644 --- a/testdata/baselines/reference/submodule/conformance/defaultExportInAwaitExpression02.js +++ b/testdata/baselines/reference/submodule/conformance/defaultExportInAwaitExpression02.js @@ -19,8 +19,11 @@ const x = new Promise((resolve, reject) => { resolve({}); }); exports.default = x; //// [b.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const a_1 = require("./a"); +const a_1 = __importDefault(require("./a")); (async function () { const value = await a_1.default; }()); diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportInAwaitExpression02.js.diff b/testdata/baselines/reference/submodule/conformance/defaultExportInAwaitExpression02.js.diff index 2481f190b3..354fceaf6c 100644 --- a/testdata/baselines/reference/submodule/conformance/defaultExportInAwaitExpression02.js.diff +++ b/testdata/baselines/reference/submodule/conformance/defaultExportInAwaitExpression02.js.diff @@ -13,8 +13,11 @@ - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); - const a_1 = require("./a"); + const a_1 = __importDefault(require("./a")); -(function () { - return __awaiter(this, void 0, void 0, function* () { - const value = yield a_1.default; diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js index 36e43cf955..da58267ce1 100644 --- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js +++ b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js @@ -42,8 +42,11 @@ function Decl() { })(Decl || (Decl = {})); //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("m1"); +const m1_1 = __importDefault(require("m1")); (0, m1_1.default)(); var x; var y; diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js.diff b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js.diff index 00d20150d5..814a926d09 100644 --- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js.diff +++ b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js.diff @@ -1,11 +1,11 @@ --- old.defaultExportsCannotMerge01.js +++ new.defaultExportsCannotMerge01.js -@@= skipped -42, +42 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -45, +45 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("m1"); -+const m1_1 = require("m1"); +-var m1_1 = __importDefault(require("m1")); ++const m1_1 = __importDefault(require("m1")); (0, m1_1.default)(); var x; var y; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js index 23ba86b0d0..32a56fbed8 100644 --- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js +++ b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js @@ -32,8 +32,11 @@ class Decl { exports.default = Decl; //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("m1"); +const m1_1 = __importDefault(require("m1")); (0, m1_1.default)(); var x; var y; diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js.diff b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js.diff index 22b55bd702..8f01b23170 100644 --- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js.diff +++ b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js.diff @@ -1,11 +1,11 @@ --- old.defaultExportsCannotMerge02.js +++ new.defaultExportsCannotMerge02.js -@@= skipped -32, +32 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -35, +35 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("m1"); -+const m1_1 = require("m1"); +-var m1_1 = __importDefault(require("m1")); ++const m1_1 = __importDefault(require("m1")); (0, m1_1.default)(); var x; var y; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js index ff47dd210b..91aefd147d 100644 --- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js +++ b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js @@ -32,8 +32,11 @@ class Decl { exports.default = Decl; //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("m1"); +const m1_1 = __importDefault(require("m1")); (0, m1_1.default)(); var x; var y; diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js.diff b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js.diff index 0064c5d67a..21c1332789 100644 --- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js.diff +++ b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js.diff @@ -1,11 +1,11 @@ --- old.defaultExportsCannotMerge03.js +++ new.defaultExportsCannotMerge03.js -@@= skipped -32, +32 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -35, +35 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("m1"); -+const m1_1 = require("m1"); +-var m1_1 = __importDefault(require("m1")); ++const m1_1 = __importDefault(require("m1")); (0, m1_1.default)(); var x; var y; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/emitModuleCommonJS(module=commonjs).js b/testdata/baselines/reference/submodule/conformance/emitModuleCommonJS(module=commonjs).js index a539507bd5..0442043886 100644 --- a/testdata/baselines/reference/submodule/conformance/emitModuleCommonJS(module=commonjs).js +++ b/testdata/baselines/reference/submodule/conformance/emitModuleCommonJS(module=commonjs).js @@ -16,6 +16,39 @@ //// [a.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { if (typeof path === "string" && /^\.\.?\//.test(path)) { return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { @@ -26,11 +59,44 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte }; { require(__rewriteRelativeImportExtension("" + "./foo.ts")); - Promise.resolve(`${__rewriteRelativeImportExtension("" + "./foo.ts")}`).then(s => require(s)); + Promise.resolve(`${__rewriteRelativeImportExtension("" + "./foo.ts")}`).then(s => __importStar(require(s))); require("./foo.js"); - Promise.resolve().then(() => require("./foo.js")); + Promise.resolve().then(() => __importStar(require("./foo.js"))); } //// [b.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { if (typeof path === "string" && /^\.\.?\//.test(path)) { return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { @@ -40,6 +106,6 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte return path; }; { - Promise.resolve(`${__rewriteRelativeImportExtension("" + "./foo.ts")}`).then(s => require(s)); - Promise.resolve().then(() => require("./foo.js")); + Promise.resolve(`${__rewriteRelativeImportExtension("" + "./foo.ts")}`).then(s => __importStar(require(s))); + Promise.resolve().then(() => __importStar(require("./foo.js"))); } diff --git a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target10.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target10.errors.txt.diff deleted file mode 100644 index e547f47771..0000000000 --- a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target10.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.es6modulekindWithES5Target10.errors.txt -+++ new.es6modulekindWithES5Target10.errors.txt -@@= skipped -0, +0 lines =@@ - es6modulekindWithES5Target10.ts(1,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. --es6modulekindWithES5Target10.ts(1,20): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+es6modulekindWithES5Target10.ts(1,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations. - es6modulekindWithES5Target10.ts(6,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. - - -@@= skipped -7, +7 lines =@@ - ~~~~~~~~~~~~~~~~~~~~~~~~~~ - !!! 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. - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - - namespace N { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target9.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target9.errors.txt.diff deleted file mode 100644 index 4562c57a73..0000000000 --- a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target9.errors.txt.diff +++ /dev/null @@ -1,47 +0,0 @@ ---- old.es6modulekindWithES5Target9.errors.txt -+++ new.es6modulekindWithES5Target9.errors.txt -@@= skipped -0, +0 lines =@@ --es6modulekindWithES5Target9.ts(1,15): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --es6modulekindWithES5Target9.ts(3,17): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --es6modulekindWithES5Target9.ts(5,20): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --es6modulekindWithES5Target9.ts(13,15): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --es6modulekindWithES5Target9.ts(15,17): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+es6modulekindWithES5Target9.ts(1,15): error TS2307: Cannot find module 'mod' or its corresponding type declarations. -+es6modulekindWithES5Target9.ts(3,17): error TS2307: Cannot find module 'mod' or its corresponding type declarations. -+es6modulekindWithES5Target9.ts(5,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations. -+es6modulekindWithES5Target9.ts(13,15): error TS2307: Cannot find module 'mod' or its corresponding type declarations. -+es6modulekindWithES5Target9.ts(15,17): error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - - ==== es6modulekindWithES5Target9.ts (5 errors) ==== - import d from "mod"; - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - import {a} from "mod"; - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - import * as M from "mod"; - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - export {a}; - -@@= skipped -25, +25 lines =@@ - - export * from "mod"; - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - export {b} from "mod" - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - export default d; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt.diff deleted file mode 100644 index 0eb0724e59..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(6,1): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,1): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (2 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers -- @dec class C {} -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js deleted file mode 100644 index 7011bb75d9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers -@dec class C {} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers -@dec -class C { -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js.diff deleted file mode 100644 index d8b3a27d93..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.js -@@= skipped -14, +14 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers --let C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var C = class { -- static { _classThis = this; } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- C = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return C = _classThis; --})(); -+@dec -+class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt.diff deleted file mode 100644 index 73f983a13c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(6,16): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,16): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,16): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- export default @dec class {} -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js deleted file mode 100644 index e11bf1a11e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -export default @dec class {} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -@dec -class default_1 { -} -exports.default = default_1; diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js.diff deleted file mode 100644 index 849a50b7fe..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.js -@@= skipped -14, +14 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); --exports.default = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var default_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "default"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- default_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return default_1 = _classThis; --})(); -+// needs: __esDecorate, __runInitializers, __setFunctionName -+@dec -+class default_1 { -+} -+exports.default = default_1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt.diff deleted file mode 100644 index afd9bb7f8c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(6,1): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,1): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,1): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- @dec class C { -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- static #foo() {} -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js deleted file mode 100644 index e933e1691e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -@dec class C { - static #foo() {} -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -@dec -class C { - static #foo() { } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js.diff deleted file mode 100644 index a59f4d4be8..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- var _C_foo; -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var C = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(this, "C"); } -- static { _C_foo = function _C_foo() { }; } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- C = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return C = _classThis; --})(); -+@dec -+class C { -+ static #foo() { } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt.diff deleted file mode 100644 index 1147c88dfa..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- class C { -- @dec accessor #x: any; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js deleted file mode 100644 index 42eab51a70..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec accessor #x: any; -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec - accessor #x; -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js.diff deleted file mode 100644 index 6157e076fb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- let _private_x_decorators; -- let _private_x_initializers = []; -- let _private_x_extraInitializers = []; -- let _private_x_descriptor; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _private_x_decorators = [dec]; -- tslib_1.__esDecorate(this, _private_x_descriptor = { get: tslib_1.__setFunctionName(function () { return this.#x_accessor_storage; }, "#x", "get"), set: tslib_1.__setFunctionName(function (value) { this.#x_accessor_storage = value; }, "#x", "set") }, _private_x_decorators, { kind: "accessor", name: "#x", static: false, private: true, access: { has: obj => #x in obj, get: obj => obj.#x, set: (obj, value) => { obj.#x = value; } }, metadata: _metadata }, _private_x_initializers, _private_x_extraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- #x_accessor_storage = tslib_1.__runInitializers(this, _private_x_initializers, void 0); -- get #x() { return _private_x_descriptor.get.call(this); } -- set #x(value) { return _private_x_descriptor.set.call(this, value); } -- constructor() { -- tslib_1.__runInitializers(this, _private_x_extraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ accessor #x; -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt.diff deleted file mode 100644 index 1b853cf2db..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (2 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers -- class C { -- @dec #x: any; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js deleted file mode 100644 index 38d90cda04..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers -class C { - @dec #x: any; -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers -class C { - @dec - #x; -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js.diff deleted file mode 100644 index 324b023f4b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers --let C = (() => { -- let _private_x_decorators; -- let _private_x_initializers = []; -- let _private_x_extraInitializers = []; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _private_x_decorators = [dec]; -- tslib_1.__esDecorate(null, null, _private_x_decorators, { kind: "field", name: "#x", static: false, private: true, access: { has: obj => #x in obj, get: obj => obj.#x, set: (obj, value) => { obj.#x = value; } }, metadata: _metadata }, _private_x_initializers, _private_x_extraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- #x = tslib_1.__runInitializers(this, _private_x_initializers, void 0); -- constructor() { -- tslib_1.__runInitializers(this, _private_x_extraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ #x; -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt.diff deleted file mode 100644 index c7105cc049..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- class C { -- @dec get #foo() { return 1; } -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js deleted file mode 100644 index 1f2056a8a4..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec get #foo() { return 1; } -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec - get #foo() { return 1; } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js.diff deleted file mode 100644 index 1dcc52cee5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- let _instanceExtraInitializers = []; -- let _private_get_foo_decorators; -- let _private_get_foo_descriptor; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _private_get_foo_decorators = [dec]; -- tslib_1.__esDecorate(this, _private_get_foo_descriptor = { get: tslib_1.__setFunctionName(function () { return 1; }, "#foo", "get") }, _private_get_foo_decorators, { kind: "getter", name: "#foo", static: false, private: true, access: { has: obj => #foo in obj, get: obj => obj.#foo }, metadata: _metadata }, null, _instanceExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- get #foo() { return _private_get_foo_descriptor.get.call(this); } -- constructor() { -- tslib_1.__runInitializers(this, _instanceExtraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ get #foo() { return 1; } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt.diff deleted file mode 100644 index bf3ea9dec5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- class C { -- @dec #foo() {} -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js deleted file mode 100644 index 8ad0ed68b1..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec #foo() {} -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec - #foo() { } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js.diff deleted file mode 100644 index 37b113104d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- let _instanceExtraInitializers = []; -- let _private_foo_decorators; -- let _private_foo_descriptor; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _private_foo_decorators = [dec]; -- tslib_1.__esDecorate(this, _private_foo_descriptor = { value: tslib_1.__setFunctionName(function () { }, "#foo") }, _private_foo_decorators, { kind: "method", name: "#foo", static: false, private: true, access: { has: obj => #foo in obj, get: obj => obj.#foo }, metadata: _metadata }, null, _instanceExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- get #foo() { return _private_foo_descriptor.value; } -- constructor() { -- tslib_1.__runInitializers(this, _instanceExtraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ #foo() { } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt.diff deleted file mode 100644 index 42d54b14f0..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- class C { -- @dec set #foo(value: number) { } -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js deleted file mode 100644 index 9722e08b6d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec set #foo(value: number) { } -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec - set #foo(value) { } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js.diff deleted file mode 100644 index f994856c71..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- let _instanceExtraInitializers = []; -- let _private_set_foo_decorators; -- let _private_set_foo_descriptor; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _private_set_foo_decorators = [dec]; -- tslib_1.__esDecorate(this, _private_set_foo_descriptor = { set: tslib_1.__setFunctionName(function (value) { }, "#foo", "set") }, _private_set_foo_decorators, { kind: "setter", name: "#foo", static: false, private: true, access: { has: obj => #foo in obj, set: (obj, value) => { obj.#foo = value; } }, metadata: _metadata }, null, _instanceExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- set #foo(value) { return _private_set_foo_descriptor.set.call(this, value); } -- constructor() { -- tslib_1.__runInitializers(this, _instanceExtraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ set #foo(value) { } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt.diff deleted file mode 100644 index 86ca363d87..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- declare var x: any; -- -- // needs: __esDecorate, __runInitializers, __propKey -- class C { -- @dec static accessor [x]: any; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js deleted file mode 100644 index 16e1d8cd6b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; -declare var x: any; - -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec static accessor [x]: any; -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec - static accessor [x]; -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js.diff deleted file mode 100644 index 7e27406a93..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.js -@@= skipped -17, +17 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __propKey --let C = (() => { -- var _a; -- let _static_member_decorators; -- let _static_member_initializers = []; -- let _static_member_extraInitializers = []; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(this, null, _static_member_decorators, { kind: "accessor", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } }, metadata: _metadata }, _static_member_initializers, _static_member_extraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- static #_a_accessor_storage = tslib_1.__runInitializers(this, _static_member_initializers, void 0); -- static get [(_static_member_decorators = [dec], _a = tslib_1.__propKey(x))]() { return C.#_a_accessor_storage; } -- static set [_a](value) { C.#_a_accessor_storage = value; } -- static { -- tslib_1.__runInitializers(this, _static_member_extraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ static accessor [x]; -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt.diff deleted file mode 100644 index 0f8c2ca87f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- declare var x: any; -- -- // needs: __esDecorate, __runInitializers, __propKey -- class C { -- @dec static [x]: any; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js deleted file mode 100644 index 0bef4d0f73..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; -declare var x: any; - -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec static [x]: any; -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec - static [x]; -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js.diff deleted file mode 100644 index 96044ea364..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.js -@@= skipped -17, +17 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __propKey --let C = (() => { -- var _a; -- let _static_member_decorators; -- let _static_member_initializers = []; -- let _static_member_extraInitializers = []; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, null, _static_member_decorators, { kind: "field", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } }, metadata: _metadata }, _static_member_initializers, _static_member_extraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- static [(_static_member_decorators = [dec], _a = tslib_1.__propKey(x))] = tslib_1.__runInitializers(this, _static_member_initializers, void 0); -- static { -- tslib_1.__runInitializers(this, _static_member_extraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ static [x]; -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt.diff deleted file mode 100644 index 6a5a0b6280..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- declare var x: any; -- -- // needs: __esDecorate, __runInitializers, __propKey -- class C { -- @dec static get [x]() { return 1; } -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js deleted file mode 100644 index fa7a578380..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; -declare var x: any; - -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec static get [x]() { return 1; } -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec - static get [x]() { return 1; } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js.diff deleted file mode 100644 index 8dde31742c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.js -@@= skipped -17, +17 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __propKey --let C = (() => { -- var _a; -- let _staticExtraInitializers = []; -- let _static_get_member_decorators; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(this, null, _static_get_member_decorators, { kind: "getter", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a] }, metadata: _metadata }, null, _staticExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(this, _staticExtraInitializers); -- } -- static get [(_static_get_member_decorators = [dec], _a = tslib_1.__propKey(x))]() { return 1; } -- }; --})(); -+class C { -+ @dec -+ static get [x]() { return 1; } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt.diff deleted file mode 100644 index f867d632bb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- declare var x: any; -- -- // needs: __esDecorate, __runInitializers, __propKey -- class C { -- @dec static [x]() {} -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js deleted file mode 100644 index 519b504395..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; -declare var x: any; - -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec static [x]() {} -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec - static [x]() { } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js.diff deleted file mode 100644 index 8e724becbb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.js -@@= skipped -17, +17 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __propKey --let C = (() => { -- var _a; -- let _staticExtraInitializers = []; -- let _static_member_decorators; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(this, null, _static_member_decorators, { kind: "method", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a] }, metadata: _metadata }, null, _staticExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(this, _staticExtraInitializers); -- } -- static [(_static_member_decorators = [dec], _a = tslib_1.__propKey(x))]() { } -- }; --})(); -+class C { -+ @dec -+ static [x]() { } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt.diff deleted file mode 100644 index a4337db2b1..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- declare var x: any; -- -- // needs: __esDecorate, __runInitializers, __propKey -- class C { -- @dec static set [x](value: number) { } -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js deleted file mode 100644 index f32dba3617..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; -declare var x: any; - -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec static set [x](value: number) { } -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __propKey -class C { - @dec - static set [x](value) { } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js.diff deleted file mode 100644 index 86cddaebc0..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.js -@@= skipped -17, +17 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __propKey --let C = (() => { -- var _a; -- let _staticExtraInitializers = []; -- let _static_set_member_decorators; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(this, null, _static_set_member_decorators, { kind: "setter", name: _a, static: true, private: false, access: { has: obj => _a in obj, set: (obj, value) => { obj[_a] = value; } }, metadata: _metadata }, null, _staticExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(this, _staticExtraInitializers); -- } -- static set [(_static_set_member_decorators = [dec], _a = tslib_1.__propKey(x))](value) { } -- }; --})(); -+class C { -+ @dec -+ static set [x](value) { } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt.diff deleted file mode 100644 index 5a29bf8840..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- class C { -- @dec static accessor #x: any; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js deleted file mode 100644 index 78aa427689..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec static accessor #x: any; -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec - static accessor #x; -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js.diff deleted file mode 100644 index 7a409b7a4f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- let _static_private_x_decorators; -- let _static_private_x_initializers = []; -- let _static_private_x_extraInitializers = []; -- let _static_private_x_descriptor; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _static_private_x_decorators = [dec]; -- tslib_1.__esDecorate(this, _static_private_x_descriptor = { get: tslib_1.__setFunctionName(function () { return this.#x_accessor_storage; }, "#x", "get"), set: tslib_1.__setFunctionName(function (value) { this.#x_accessor_storage = value; }, "#x", "set") }, _static_private_x_decorators, { kind: "accessor", name: "#x", static: true, private: true, access: { has: obj => #x in obj, get: obj => obj.#x, set: (obj, value) => { obj.#x = value; } }, metadata: _metadata }, _static_private_x_initializers, _static_private_x_extraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- static #x_accessor_storage = tslib_1.__runInitializers(this, _static_private_x_initializers, void 0); -- static get #x() { return _static_private_x_descriptor.get.call(this); } -- static set #x(value) { return _static_private_x_descriptor.set.call(this, value); } -- static { -- tslib_1.__runInitializers(this, _static_private_x_extraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ static accessor #x; -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt.diff deleted file mode 100644 index fbf7dccd4f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (2 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers -- class C { -- @dec static #x: any; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js deleted file mode 100644 index 3fffab7f86..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers -class C { - @dec static #x: any; -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers -class C { - @dec - static #x; -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js.diff deleted file mode 100644 index 94f3419021..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers --let C = (() => { -- let _static_private_x_decorators; -- let _static_private_x_initializers = []; -- let _static_private_x_extraInitializers = []; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _static_private_x_decorators = [dec]; -- tslib_1.__esDecorate(null, null, _static_private_x_decorators, { kind: "field", name: "#x", static: true, private: true, access: { has: obj => #x in obj, get: obj => obj.#x, set: (obj, value) => { obj.#x = value; } }, metadata: _metadata }, _static_private_x_initializers, _static_private_x_extraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- } -- static #x = tslib_1.__runInitializers(this, _static_private_x_initializers, void 0); -- static { -- tslib_1.__runInitializers(this, _static_private_x_extraInitializers); -- } -- }; --})(); -+class C { -+ @dec -+ static #x; -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt.diff deleted file mode 100644 index c8c1da30c9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- class C { -- @dec static get #foo() { return 1; } -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js deleted file mode 100644 index 1c10ca53ac..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec static get #foo() { return 1; } -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec - static get #foo() { return 1; } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js.diff deleted file mode 100644 index efec054aad..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- let _staticExtraInitializers = []; -- let _static_private_get_foo_decorators; -- let _static_private_get_foo_descriptor; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _static_private_get_foo_decorators = [dec]; -- tslib_1.__esDecorate(this, _static_private_get_foo_descriptor = { get: tslib_1.__setFunctionName(function () { return 1; }, "#foo", "get") }, _static_private_get_foo_decorators, { kind: "getter", name: "#foo", static: true, private: true, access: { has: obj => #foo in obj, get: obj => obj.#foo }, metadata: _metadata }, null, _staticExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(this, _staticExtraInitializers); -- } -- static get #foo() { return _static_private_get_foo_descriptor.get.call(this); } -- }; --})(); -+class C { -+ @dec -+ static get #foo() { return 1; } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt.diff deleted file mode 100644 index f10cb5b68b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- class C { -- @dec static #foo() {} -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js deleted file mode 100644 index e7bec5f006..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec static #foo() {} -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec - static #foo() { } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js.diff deleted file mode 100644 index 4385752f97..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- let _staticExtraInitializers = []; -- let _static_private_foo_decorators; -- let _static_private_foo_descriptor; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _static_private_foo_decorators = [dec]; -- tslib_1.__esDecorate(this, _static_private_foo_descriptor = { value: tslib_1.__setFunctionName(function () { }, "#foo") }, _static_private_foo_decorators, { kind: "method", name: "#foo", static: true, private: true, access: { has: obj => #foo in obj, get: obj => obj.#foo }, metadata: _metadata }, null, _staticExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(this, _staticExtraInitializers); -- } -- static get #foo() { return _static_private_foo_descriptor.value; } -- }; --})(); -+class C { -+ @dec -+ static #foo() { } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt.diff deleted file mode 100644 index 2dff346f90..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {} -- -- declare var dec: any; -- -- // needs: __esDecorate, __runInitializers, __setFunctionName -- class C { -- @dec static set #foo(value: number) { } -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- } -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js deleted file mode 100644 index e7dcc94668..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.ts] //// - -//// [main.ts] -export {} - -declare var dec: any; - -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec static set #foo(value: number) { } -} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// needs: __esDecorate, __runInitializers, __setFunctionName -class C { - @dec - static set #foo(value) { } -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js.diff deleted file mode 100644 index 01d334d473..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js -+++ new.esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // needs: __esDecorate, __runInitializers, __setFunctionName --let C = (() => { -- let _staticExtraInitializers = []; -- let _static_private_set_foo_decorators; -- let _static_private_set_foo_descriptor; -- return class C { -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- _static_private_set_foo_decorators = [dec]; -- tslib_1.__esDecorate(this, _static_private_set_foo_descriptor = { set: tslib_1.__setFunctionName(function (value) { }, "#foo", "set") }, _static_private_set_foo_decorators, { kind: "setter", name: "#foo", static: true, private: true, access: { has: obj => #foo in obj, set: (obj, value) => { obj.#foo = value; } }, metadata: _metadata }, null, _staticExtraInitializers); -- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(this, _staticExtraInitializers); -- } -- static set #foo(value) { return _static_private_set_foo_descriptor.set.call(this, value); } -- }; --})(); -+class C { -+ @dec -+ static set #foo(value) { } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt.diff deleted file mode 100644 index 667174e2be..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(4,18): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,18): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,18): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- declare var dec: any; -- -- // uses: __esDecorate, __runInitializers, __setFunctionName -- export const C = @dec class {}; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js deleted file mode 100644 index af786f20f8..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.ts] //// - -//// [main.ts] -declare var dec: any; - -// uses: __esDecorate, __runInitializers, __setFunctionName -export const C = @dec class {}; - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.C = void 0; -// uses: __esDecorate, __runInitializers, __setFunctionName -const C = -@dec -class { -}; -exports.C = C; diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js.diff deleted file mode 100644 index a2818934f3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.1.js -@@= skipped -13, +13 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; --const tslib_1 = require("tslib"); - // uses: __esDecorate, __runInitializers, __setFunctionName --exports.C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; --})(); -+const C = -+@dec -+class { -+}; -+exports.C = C; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt.diff deleted file mode 100644 index e6fa73a801..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- var C; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- C &&= @dec class {}; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js deleted file mode 100644 index f57e68b1b4..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -var C; - -// uses __esDecorate, __runInitializers, __setFunctionName -C &&= @dec class {}; - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var C; -// uses __esDecorate, __runInitializers, __setFunctionName -C &&= -@dec -class { -}; diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js.diff deleted file mode 100644 index 30fb48d21c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.10.js -@@= skipped -15, +15 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - var C; - // uses __esDecorate, __runInitializers, __setFunctionName --C &&= (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; --})(); -+C &&= -+@dec -+class { -+}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt.diff deleted file mode 100644 index 77cf96afe3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- var C; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- C ??= @dec class {}; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js deleted file mode 100644 index 7338e6d27e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -var C; - -// uses __esDecorate, __runInitializers, __setFunctionName -C ??= @dec class {}; - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var C; -// uses __esDecorate, __runInitializers, __setFunctionName -C ??= -@dec -class { -}; diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js.diff deleted file mode 100644 index 49028bcaf2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.11.js -@@= skipped -15, +15 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - var C; - // uses __esDecorate, __runInitializers, __setFunctionName --C ??= (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; --})(); -+C ??= -+@dec -+class { -+}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt.diff deleted file mode 100644 index ba5ae363ec..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(5,16): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(5,16): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(5,16): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- function f(C = @dec class {}) {} -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js deleted file mode 100644 index 5939e86577..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -// uses __esDecorate, __runInitializers, __setFunctionName -function f(C = @dec class {}) {} - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// uses __esDecorate, __runInitializers, __setFunctionName -function f(C = -@dec -class { -}) { } diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js.diff deleted file mode 100644 index 8bc760724a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.12.js -@@= skipped -13, +13 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // uses __esDecorate, __runInitializers, __setFunctionName --function f(C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; --})()) { } -+function f(C = -+@dec -+class { -+}) { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt.diff deleted file mode 100644 index 7acd2fde44..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(4,20): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,20): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,20): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- declare var dec: any; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- export const C = ((@dec class {})); -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js deleted file mode 100644 index 4f21ec91bf..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.ts] //// - -//// [main.ts] -declare var dec: any; - -// uses __esDecorate, __runInitializers, __setFunctionName -export const C = ((@dec class {})); - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.C = void 0; -// uses __esDecorate, __runInitializers, __setFunctionName -exports.C = (( -@dec -class { -})); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js.diff deleted file mode 100644 index bbc2b14557..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.13.js -@@= skipped -13, +13 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; --const tslib_1 = require("tslib"); - // uses __esDecorate, __runInitializers, __setFunctionName --exports.C = (((() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; --})())); -+exports.C = (( -+@dec -+class { -+})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt.diff deleted file mode 100644 index b27e2a1661..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(6,9): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,9): error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,9): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,9): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (4 errors) ==== -- export {}; -- declare var dec: any; -- declare var x: any; -- -- // uses __esDecorate, __runInitializers, __setFunctionName, __propKey -- ({ [x]: @dec class {} }); -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js deleted file mode 100644 index 7b3d9ae826..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; -declare var x: any; - -// uses __esDecorate, __runInitializers, __setFunctionName, __propKey -({ [x]: @dec class {} }); - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// uses __esDecorate, __runInitializers, __setFunctionName, __propKey -({ [x]: - @dec - class { - } }); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js.diff deleted file mode 100644 index 643750720b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.14.js -@@= skipped -13, +13 lines =@@ - - //// [main.js] - "use strict"; --var _a; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // uses __esDecorate, __runInitializers, __setFunctionName, __propKey --({ [_a = tslib_1.__propKey(x)]: (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, _a); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; -- })() }); -+({ [x]: -+ @dec -+ class { -+ } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt.diff deleted file mode 100644 index 695d8a90bc..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(5,15): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(5,15): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(5,15): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- class C { D = @dec class {} } -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js deleted file mode 100644 index a0727e6ce4..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -// uses __esDecorate, __runInitializers, __setFunctionName -class C { D = @dec class {} } - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// uses __esDecorate, __runInitializers, __setFunctionName -class C { - D = - @dec - class { - }; -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js.diff deleted file mode 100644 index 39fc19176a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.15.js -@@= skipped -13, +13 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // uses __esDecorate, __runInitializers, __setFunctionName - class C { -- D = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "D"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; -- })(); -+ D = -+ @dec -+ class { -+ }; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt.diff deleted file mode 100644 index 40b973abf2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(6,17): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,17): error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,17): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(6,17): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (4 errors) ==== -- export {}; -- declare var dec: any; -- declare var x: any; -- -- // uses __esDecorate, __runInitializers, __setFunctionName, __propKey -- class C { [x] = @dec class {} } -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__propKey' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js deleted file mode 100644 index 3e3f24932c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; -declare var x: any; - -// uses __esDecorate, __runInitializers, __setFunctionName, __propKey -class C { [x] = @dec class {} } - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// uses __esDecorate, __runInitializers, __setFunctionName, __propKey -class C { - [x] = - @dec - class { - }; -} diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js.diff deleted file mode 100644 index 7c08afcdb3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.16.js -@@= skipped -13, +13 lines =@@ - - //// [main.js] - "use strict"; --var _a; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // uses __esDecorate, __runInitializers, __setFunctionName, __propKey - class C { -- [_a = tslib_1.__propKey(x)] = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, _a); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; -- })(); -+ [x] = -+ @dec -+ class { -+ }; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt.diff deleted file mode 100644 index 1930c4104a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(8,13): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,13): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(8,13): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- declare var x: any; -- -- var C; -- -- // uses __esDecorate, __runInitializers, __setFunctionName, __propKey -- ({ [x]: C = @dec class {} } = {}); -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js deleted file mode 100644 index cfc18b8081..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; -declare var x: any; - -var C; - -// uses __esDecorate, __runInitializers, __setFunctionName, __propKey -({ [x]: C = @dec class {} } = {}); - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var C; -// uses __esDecorate, __runInitializers, __setFunctionName, __propKey -({ [x]: C = - @dec - class { - } } = {}); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js.diff deleted file mode 100644 index 1c56735f1e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.17.js -@@= skipped -16, +16 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - var C; - // uses __esDecorate, __runInitializers, __setFunctionName, __propKey --({ [x]: C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; -- })() } = {}); -+({ [x]: C = -+ @dec -+ class { -+ } } = {}); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt.diff deleted file mode 100644 index 44206ec9c6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(4,18): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,18): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (2 errors) ==== -- declare var dec: any; -- -- // uses: __esDecorate, __runInitializers -- export const C = @dec class C {}; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js deleted file mode 100644 index fd39627eb0..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.ts] //// - -//// [main.ts] -declare var dec: any; - -// uses: __esDecorate, __runInitializers -export const C = @dec class C {}; - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.C = void 0; -// uses: __esDecorate, __runInitializers -exports.C = -@dec -class C { -}; diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js.diff deleted file mode 100644 index adea1cc512..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.2.js -@@= skipped -13, +13 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; --const tslib_1 = require("tslib"); - // uses: __esDecorate, __runInitializers --exports.C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var C = class { -- static { _classThis = this; } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- C = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return C = _classThis; --})(); -+exports.C = -+@dec -+class C { -+}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt.diff deleted file mode 100644 index 76fbf80b65..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(4,17): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,17): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(4,17): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- declare var dec: any; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- export default (@dec class {}); -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js deleted file mode 100644 index 1c8e6c3568..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.ts] //// - -//// [main.ts] -declare var dec: any; - -// uses __esDecorate, __runInitializers, __setFunctionName -export default (@dec class {}); - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// uses __esDecorate, __runInitializers, __setFunctionName -exports.default = ( -@dec -class { -}); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js.diff deleted file mode 100644 index 4bc78eb65a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.3.js -@@= skipped -12, +12 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // uses __esDecorate, __runInitializers, __setFunctionName --exports.default = ((() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "default"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; --})()); -+exports.default = ( -+@dec -+class { -+}); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt.diff deleted file mode 100644 index d48d0bf993..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,5): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- var C; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- C = @dec class {}; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js deleted file mode 100644 index fb68e506d9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -var C; - -// uses __esDecorate, __runInitializers, __setFunctionName -C = @dec class {}; - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var C; -// uses __esDecorate, __runInitializers, __setFunctionName -C = -@dec -class { -}; diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js.diff deleted file mode 100644 index 0f725cdcbb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.4.js -@@= skipped -15, +15 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - var C; - // uses __esDecorate, __runInitializers, __setFunctionName --C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; --})(); -+C = -+@dec -+class { -+}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt.diff deleted file mode 100644 index 0aab00116a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,6): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,6): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,6): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- var C; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- [C = @dec class {}] = []; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js deleted file mode 100644 index 94d8f93768..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -var C; - -// uses __esDecorate, __runInitializers, __setFunctionName -[C = @dec class {}] = []; - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var C; -// uses __esDecorate, __runInitializers, __setFunctionName -[C = - @dec - class { - }] = []; diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js.diff deleted file mode 100644 index ec29a220a1..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.5.js -@@= skipped -15, +15 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - var C; - // uses __esDecorate, __runInitializers, __setFunctionName --[C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; -- })()] = []; -+[C = -+ @dec -+ class { -+ }] = []; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt.diff deleted file mode 100644 index 7308dbc0bc..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(5,7): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(5,7): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(5,7): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- ({ C: @dec class {} }); -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js deleted file mode 100644 index fe3d2736aa..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -// uses __esDecorate, __runInitializers, __setFunctionName -({ C: @dec class {} }); - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// uses __esDecorate, __runInitializers, __setFunctionName -({ C: - @dec - class { - } }); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js.diff deleted file mode 100644 index 972939239c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.6.js -@@= skipped -13, +13 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - // uses __esDecorate, __runInitializers, __setFunctionName --({ C: (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; -- })() }); -+({ C: -+ @dec -+ class { -+ } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt.diff deleted file mode 100644 index 163c81c274..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,11): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,11): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,11): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- var C; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- ({ C: C = @dec class {} } = {}); -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js deleted file mode 100644 index cad801c5a3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -var C; - -// uses __esDecorate, __runInitializers, __setFunctionName -({ C: C = @dec class {} } = {}); - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var C; -// uses __esDecorate, __runInitializers, __setFunctionName -({ C: C = - @dec - class { - } } = {}); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js.diff deleted file mode 100644 index fc9c27a30b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.7.js -@@= skipped -15, +15 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - var C; - // uses __esDecorate, __runInitializers, __setFunctionName --({ C: C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; -- })() } = {}); -+({ C: C = -+ @dec -+ class { -+ } } = {}); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt.diff deleted file mode 100644 index 4071d94b44..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,8): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,8): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,8): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- var C; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- ({ C = @dec class {} } = {}); -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js deleted file mode 100644 index 74be852839..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -var C; - -// uses __esDecorate, __runInitializers, __setFunctionName -({ C = @dec class {} } = {}); - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var C; -// uses __esDecorate, __runInitializers, __setFunctionName -({ C = - @dec - class { - } } = {}); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js.diff deleted file mode 100644 index 87eccb38c3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.8.js -@@= skipped -15, +15 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - var C; - // uses __esDecorate, __runInitializers, __setFunctionName --({ C = (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; -- })() } = {}); -+({ C = -+ @dec -+ class { -+ } } = {}); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt.diff deleted file mode 100644 index eca308e459..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt -@@= skipped -0, +0 lines =@@ --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. --main.ts(7,7): error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- -- --==== main.ts (3 errors) ==== -- export {}; -- declare var dec: any; -- -- var C; -- -- // uses __esDecorate, __runInitializers, __setFunctionName -- C ||= @dec class {}; -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__esDecorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__runInitializers' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- ~~~~ --!!! error TS2343: This syntax requires an imported helper named '__setFunctionName' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. -- --==== tslib.d.ts (0 errors) ==== -- export {} -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js deleted file mode 100644 index b714581b86..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.ts] //// - -//// [main.ts] -export {}; -declare var dec: any; - -var C; - -// uses __esDecorate, __runInitializers, __setFunctionName -C ||= @dec class {}; - -//// [tslib.d.ts] -export {} - - -//// [main.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var C; -// uses __esDecorate, __runInitializers, __setFunctionName -C ||= -@dec -class { -}; diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js.diff deleted file mode 100644 index e9f6073ee6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js -+++ new.esDecorators-classExpression-missingEmitHelpers-classDecorator.9.js -@@= skipped -15, +15 lines =@@ - //// [main.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const tslib_1 = require("tslib"); - var C; - // uses __esDecorate, __runInitializers, __setFunctionName --C ||= (() => { -- let _classDecorators = [dec]; -- let _classDescriptor; -- let _classExtraInitializers = []; -- let _classThis; -- var class_1 = class { -- static { _classThis = this; } -- static { tslib_1.__setFunctionName(_classThis, "C"); } -- static { -- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; -- tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); -- class_1 = _classThis = _classDescriptor.value; -- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); -- tslib_1.__runInitializers(_classThis, _classExtraInitializers); -- } -- }; -- return class_1 = _classThis; --})(); -+C ||= -+@dec -+class { -+}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).errors.txt b/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).errors.txt deleted file mode 100644 index ad250e2728..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).errors.txt +++ /dev/null @@ -1,43 +0,0 @@ -/importer-cjs.cjs(2,5): error TS2351: This expression is not constructable. - Type 'String' has no construct signatures. -/importer-cts.cts(2,5): error TS2351: This expression is not constructable. - Type 'String' has no construct signatures. -/importer-cts.cts(4,8): error TS1259: Module '"/exporter"' can only be default-imported using the 'esModuleInterop' flag -/importer-cts.cts(8,5): error TS2351: This expression is not constructable. - Type 'String' has no construct signatures. -/importer-cts.cts(10,10): error TS2614: Module '"./exporter.mjs"' has no exported member 'Oops'. Did you mean to use 'import Oops from "./exporter.mjs"' instead? - - -==== /importer-cjs.cjs (1 errors) ==== - const Foo = require("./exporter.mjs"); - new Foo(); - ~~~ -!!! error TS2351: This expression is not constructable. -!!! error TS2351: Type 'String' has no construct signatures. - -==== /importer-cts.cts (4 errors) ==== - import Foo = require("./exporter.mjs"); - new Foo(); - ~~~ -!!! error TS2351: This expression is not constructable. -!!! error TS2351: Type 'String' has no construct signatures. - - import Foo2 from "./exporter.mjs"; - ~~~~ -!!! error TS1259: Module '"/exporter"' can only be default-imported using the 'esModuleInterop' flag - new Foo2(); - - import * as Foo3 from "./exporter.mjs"; - new Foo3(); - ~~~~ -!!! error TS2351: This expression is not constructable. -!!! error TS2351: Type 'String' has no construct signatures. - - import { Oops } from "./exporter.mjs"; - ~~~~ -!!! error TS2614: Module '"./exporter.mjs"' has no exported member 'Oops'. Did you mean to use 'import Oops from "./exporter.mjs"' instead? - -==== /exporter.mts (0 errors) ==== - export default class Foo {} - const oops = "oops"; - export { oops as "module.exports" }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).symbols b/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).symbols deleted file mode 100644 index 4bb8d4d0df..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).symbols +++ /dev/null @@ -1,44 +0,0 @@ -//// [tests/cases/conformance/node/esmModuleExports2.ts] //// - -=== /importer-cjs.cjs === -const Foo = require("./exporter.mjs"); ->Foo : Symbol(Foo, Decl(importer-cjs.cjs, 0, 5)) ->require : Symbol(require) ->"./exporter.mjs" : Symbol("/exporter", Decl(exporter.mts, 0, 0)) - -new Foo(); ->Foo : Symbol(Foo, Decl(importer-cjs.cjs, 0, 5)) - -=== /importer-cts.cts === -import Foo = require("./exporter.mjs"); ->Foo : Symbol(Foo, Decl(importer-cts.cts, 0, 0)) - -new Foo(); ->Foo : Symbol(Foo, Decl(importer-cts.cts, 0, 0)) - -import Foo2 from "./exporter.mjs"; ->Foo2 : Symbol(Foo2, Decl(importer-cts.cts, 3, 6)) - -new Foo2(); ->Foo2 : Symbol(Foo2, Decl(importer-cts.cts, 3, 6)) - -import * as Foo3 from "./exporter.mjs"; ->Foo3 : Symbol(Foo3, Decl(importer-cts.cts, 6, 6)) - -new Foo3(); ->Foo3 : Symbol(Foo3, Decl(importer-cts.cts, 6, 6)) - -import { Oops } from "./exporter.mjs"; ->Oops : Symbol(Oops, Decl(importer-cts.cts, 9, 8)) - -=== /exporter.mts === -export default class Foo {} ->Foo : Symbol(Foo, Decl(exporter.mts, 0, 0)) - -const oops = "oops"; ->oops : Symbol(oops, Decl(exporter.mts, 1, 5)) - -export { oops as "module.exports" }; ->oops : Symbol(oops, Decl(exporter.mts, 1, 5)) ->"module.exports" : Symbol("module.exports", Decl(exporter.mts, 2, 8)) - diff --git a/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).types b/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).types deleted file mode 100644 index 6db56832f2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esmModuleExports2(esmoduleinterop=false).types +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/conformance/node/esmModuleExports2.ts] //// - -=== /importer-cjs.cjs === -const Foo = require("./exporter.mjs"); ->Foo : "oops" ->require("./exporter.mjs") : typeof import("/exporter", { with: { "resolution-mode": "import" } }) ->require : any ->"./exporter.mjs" : "./exporter.mjs" - -new Foo(); ->new Foo() : any ->Foo : "oops" - -=== /importer-cts.cts === -import Foo = require("./exporter.mjs"); ->Foo : "oops" - -new Foo(); ->new Foo() : any ->Foo : "oops" - -import Foo2 from "./exporter.mjs"; ->Foo2 : any - -new Foo2(); ->new Foo2() : any ->Foo2 : any - -import * as Foo3 from "./exporter.mjs"; ->Foo3 : "oops" - -new Foo3(); ->new Foo3() : any ->Foo3 : "oops" - -import { Oops } from "./exporter.mjs"; ->Oops : any - -=== /exporter.mts === -export default class Foo {} ->Foo : Foo - -const oops = "oops"; ->oops : "oops" ->"oops" : "oops" - -export { oops as "module.exports" }; ->oops : "oops" ->"module.exports" : "oops" - diff --git a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target10.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target10.errors.txt.diff deleted file mode 100644 index ab81f21865..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target10.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.esnextmodulekindWithES5Target10.errors.txt -+++ new.esnextmodulekindWithES5Target10.errors.txt -@@= skipped -0, +0 lines =@@ - esnextmodulekindWithES5Target10.ts(1,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. --esnextmodulekindWithES5Target10.ts(1,20): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+esnextmodulekindWithES5Target10.ts(1,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations. - esnextmodulekindWithES5Target10.ts(6,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. - - -@@= skipped -7, +7 lines =@@ - ~~~~~~~~~~~~~~~~~~~~~~~~~~ - !!! 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. - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - - namespace N { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target9.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target9.errors.txt.diff deleted file mode 100644 index d93400a25f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target9.errors.txt.diff +++ /dev/null @@ -1,47 +0,0 @@ ---- old.esnextmodulekindWithES5Target9.errors.txt -+++ new.esnextmodulekindWithES5Target9.errors.txt -@@= skipped -0, +0 lines =@@ --esnextmodulekindWithES5Target9.ts(1,15): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --esnextmodulekindWithES5Target9.ts(3,17): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --esnextmodulekindWithES5Target9.ts(5,20): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --esnextmodulekindWithES5Target9.ts(13,15): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --esnextmodulekindWithES5Target9.ts(15,17): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+esnextmodulekindWithES5Target9.ts(1,15): error TS2307: Cannot find module 'mod' or its corresponding type declarations. -+esnextmodulekindWithES5Target9.ts(3,17): error TS2307: Cannot find module 'mod' or its corresponding type declarations. -+esnextmodulekindWithES5Target9.ts(5,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations. -+esnextmodulekindWithES5Target9.ts(13,15): error TS2307: Cannot find module 'mod' or its corresponding type declarations. -+esnextmodulekindWithES5Target9.ts(15,17): error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - - ==== esnextmodulekindWithES5Target9.ts (5 errors) ==== - import d from "mod"; - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - import {a} from "mod"; - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - import * as M from "mod"; - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - export {a}; - -@@= skipped -25, +25 lines =@@ - - export * from "mod"; - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - export {b} from "mod" - ~~~~~ --!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. - - export default d; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportAndImport-es5.js b/testdata/baselines/reference/submodule/conformance/exportAndImport-es5.js index c9894913ed..bfff9d0087 100644 --- a/testdata/baselines/reference/submodule/conformance/exportAndImport-es5.js +++ b/testdata/baselines/reference/submodule/conformance/exportAndImport-es5.js @@ -19,9 +19,12 @@ function f1() { } //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = f2; -const m1_1 = require("./m1"); +const m1_1 = __importDefault(require("./m1")); function f2() { (0, m1_1.default)(); } diff --git a/testdata/baselines/reference/submodule/conformance/exportAndImport-es5.js.diff b/testdata/baselines/reference/submodule/conformance/exportAndImport-es5.js.diff index 4beb463771..42d042f541 100644 --- a/testdata/baselines/reference/submodule/conformance/exportAndImport-es5.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportAndImport-es5.js.diff @@ -1,11 +1,11 @@ --- old.exportAndImport-es5.js +++ new.exportAndImport-es5.js -@@= skipped -20, +20 lines =@@ - "use strict"; +@@= skipped -23, +23 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = f2; --var m1_1 = require("./m1"); -+const m1_1 = require("./m1"); +-var m1_1 = __importDefault(require("./m1")); ++const m1_1 = __importDefault(require("./m1")); function f2() { (0, m1_1.default)(); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportAsNamespace1(module=commonjs).js b/testdata/baselines/reference/submodule/conformance/exportAsNamespace1(module=commonjs).js index 2e4cfe93fc..fd17045c09 100644 --- a/testdata/baselines/reference/submodule/conformance/exportAsNamespace1(module=commonjs).js +++ b/testdata/baselines/reference/submodule/conformance/exportAsNamespace1(module=commonjs).js @@ -23,15 +23,81 @@ exports.a = 1; exports.b = 2; //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ns = void 0; -exports.ns = require("./0"); +exports.ns = __importStar(require("./0")); ns.a; ns.b; //// [2.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const foo = require("./1"); +const foo = __importStar(require("./1")); foo.ns.a; foo.ns.b; diff --git a/testdata/baselines/reference/submodule/conformance/exportAsNamespace1(module=commonjs).js.diff b/testdata/baselines/reference/submodule/conformance/exportAsNamespace1(module=commonjs).js.diff index 8d09dcdef6..73e165dc7c 100644 --- a/testdata/baselines/reference/submodule/conformance/exportAsNamespace1(module=commonjs).js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportAsNamespace1(module=commonjs).js.diff @@ -1,10 +1,10 @@ --- old.exportAsNamespace1(module=commonjs).js +++ new.exportAsNamespace1(module=commonjs).js -@@= skipped -30, +30 lines =@@ - //// [2.js] - "use strict"; +@@= skipped -96, +96 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var foo = require("./1"); -+const foo = require("./1"); +-var foo = __importStar(require("./1")); ++const foo = __importStar(require("./1")); foo.ns.a; foo.ns.b; diff --git a/testdata/baselines/reference/submodule/conformance/exportAsNamespace_nonExistent.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/exportAsNamespace_nonExistent.errors.txt.diff deleted file mode 100644 index 10e334e986..0000000000 --- a/testdata/baselines/reference/submodule/conformance/exportAsNamespace_nonExistent.errors.txt.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.exportAsNamespace_nonExistent.errors.txt -+++ new.exportAsNamespace_nonExistent.errors.txt -@@= skipped -0, +0 lines =@@ --exportAsNamespace_nonExistent.ts(1,21): error TS2792: Cannot find module './nonexistent'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+exportAsNamespace_nonExistent.ts(1,21): error TS2307: Cannot find module './nonexistent' or its corresponding type declarations. - - - ==== exportAsNamespace_nonExistent.ts (1 errors) ==== - export * as ns from './nonexistent'; // Error - ~~~~~~~~~~~~~~~ --!!! error TS2792: Cannot find module './nonexistent'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2307: Cannot find module './nonexistent' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.errors.txt b/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.errors.txt new file mode 100644 index 0000000000..c4c85ea569 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.errors.txt @@ -0,0 +1,16 @@ +foo_0.ts(10,1): error TS2309: An export assignment cannot be used in a module with other exported elements. + + +==== foo_0.ts (1 errors) ==== + export enum E1 { + A,B,C + } + + class C1 { + + } + + // Invalid, as there is already an exported member. + export = C1; + ~~~~~~~~~~~~ +!!! error TS2309: An export assignment cannot be used in a module with other exported elements. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.js b/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.js new file mode 100644 index 0000000000..b94c4d9a72 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.js @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/externalModules/exportAssignmentAndDeclaration.ts] //// + +//// [foo_0.ts] +export enum E1 { + A,B,C +} + +class C1 { + +} + +// Invalid, as there is already an exported member. +export = C1; + +//// [foo_0.js] +"use strict"; +exports.E1 = void 0; +var E1; +(function (E1) { + E1[E1["A"] = 0] = "A"; + E1[E1["B"] = 1] = "B"; + E1[E1["C"] = 2] = "C"; +})(E1 || (exports.E1 = E1 = {})); +class C1 { +} +module.exports = C1; diff --git a/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.symbols b/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.symbols new file mode 100644 index 0000000000..46b1bc699c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/externalModules/exportAssignmentAndDeclaration.ts] //// + +=== foo_0.ts === +export enum E1 { +>E1 : Symbol(E1, Decl(foo_0.ts, 0, 0)) + + A,B,C +>A : Symbol(E1.A, Decl(foo_0.ts, 0, 16)) +>B : Symbol(E1.B, Decl(foo_0.ts, 1, 3)) +>C : Symbol(E1.C, Decl(foo_0.ts, 1, 5)) +} + +class C1 { +>C1 : Symbol(C1, Decl(foo_0.ts, 2, 1)) + +} + +// Invalid, as there is already an exported member. +export = C1; +>C1 : Symbol(C1, Decl(foo_0.ts, 2, 1)) + diff --git a/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.types b/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.types new file mode 100644 index 0000000000..36f85e2c38 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/exportAssignmentAndDeclaration.types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/externalModules/exportAssignmentAndDeclaration.ts] //// + +=== foo_0.ts === +export enum E1 { +>E1 : E1 + + A,B,C +>A : E1.A +>B : E1.B +>C : E1.C +} + +class C1 { +>C1 : C1 + +} + +// Invalid, as there is already an exported member. +export = C1; +>C1 : C1 + diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace11.js b/testdata/baselines/reference/submodule/conformance/exportNamespace11.js index df682d2129..f9b72f6c31 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace11.js +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace11.js @@ -22,6 +22,39 @@ exports.Ghost = Ghost; Object.defineProperty(exports, "__esModule", { value: true }); //// [main.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const intermediate = require("./intermediate"); +const intermediate = __importStar(require("./intermediate")); const ghost = new intermediate.Ghost(); diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace11.js.diff b/testdata/baselines/reference/submodule/conformance/exportNamespace11.js.diff index 599293969e..af1dc8d76c 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace11.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace11.js.diff @@ -1,9 +1,9 @@ --- old.exportNamespace11.js +++ new.exportNamespace11.js -@@= skipped -22, +22 lines =@@ - //// [main.js] - "use strict"; +@@= skipped -55, +55 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var intermediate = require("./intermediate"); -+const intermediate = require("./intermediate"); +-var intermediate = __importStar(require("./intermediate")); ++const intermediate = __importStar(require("./intermediate")); const ghost = new intermediate.Ghost(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace12.js b/testdata/baselines/reference/submodule/conformance/exportNamespace12.js index 3b60d6bde4..0df59025b3 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace12.js +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace12.js @@ -22,7 +22,40 @@ exports.c = 10; Object.defineProperty(exports, "__esModule", { value: true }); //// [main.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const types = require("./types"); +const types = __importStar(require("./types")); console.log(c); // Fails as expected, import is still allowed though. console.log(types.c); // Expected an error here. diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace12.js.diff b/testdata/baselines/reference/submodule/conformance/exportNamespace12.js.diff index 0833077693..2a4de09302 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace12.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace12.js.diff @@ -1,10 +1,10 @@ --- old.exportNamespace12.js +++ new.exportNamespace12.js -@@= skipped -22, +22 lines =@@ - //// [main.js] - "use strict"; +@@= skipped -55, +55 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var types = require("./types"); -+const types = require("./types"); +-var types = __importStar(require("./types")); ++const types = __importStar(require("./types")); console.log(c); // Fails as expected, import is still allowed though. console.log(types.c); // Expected an error here. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace2.js b/testdata/baselines/reference/submodule/conformance/exportNamespace2.js index 37d143c0ee..32c5f69d2f 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace2.js +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace2.js @@ -24,9 +24,42 @@ class A { exports.A = A; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; -exports.a = require("./a"); +exports.a = __importStar(require("./a")); //// [c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace3.js b/testdata/baselines/reference/submodule/conformance/exportNamespace3.js index 3990e0a97b..c0937e2717 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace3.js +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace3.js @@ -26,9 +26,42 @@ exports.A = A; Object.defineProperty(exports, "__esModule", { value: true }); //// [c.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; -exports.a = require("./b"); +exports.a = __importStar(require("./b")); //// [d.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace3.js.diff b/testdata/baselines/reference/submodule/conformance/exportNamespace3.js.diff index a735cb42e1..f194b66cad 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace3.js.diff @@ -1,6 +1,6 @@ --- old.exportNamespace3.js +++ new.exportNamespace3.js -@@= skipped -31, +31 lines =@@ +@@= skipped -64, +64 lines =@@ //// [d.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/exportStar.js b/testdata/baselines/reference/submodule/conformance/exportStar.js index ec066010a7..f1467d3ce7 100644 --- a/testdata/baselines/reference/submodule/conformance/exportStar.js +++ b/testdata/baselines/reference/submodule/conformance/exportStar.js @@ -72,8 +72,41 @@ __exportStar(require("./t2"), exports); __exportStar(require("./t3"), exports); //// [main.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const t4_1 = require("./t4"); +const t4_1 = __importStar(require("./t4")); t4_1.default; t4_1.x; t4_1.y; diff --git a/testdata/baselines/reference/submodule/conformance/exportStar.js.diff b/testdata/baselines/reference/submodule/conformance/exportStar.js.diff index 349dbabcbd..d3cab3a024 100644 --- a/testdata/baselines/reference/submodule/conformance/exportStar.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportStar.js.diff @@ -1,11 +1,11 @@ --- old.exportStar.js +++ new.exportStar.js -@@= skipped -72, +72 lines =@@ - //// [main.js] - "use strict"; +@@= skipped -105, +105 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var t4_1 = require("./t4"); -+const t4_1 = require("./t4"); +-var t4_1 = __importStar(require("./t4")); ++const t4_1 = __importStar(require("./t4")); t4_1.default; t4_1.x; t4_1.y; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportTypeMergedWithExportStarAsNamespace.js b/testdata/baselines/reference/submodule/conformance/exportTypeMergedWithExportStarAsNamespace.js index 6de701ebb9..9c2bae4b0b 100644 --- a/testdata/baselines/reference/submodule/conformance/exportTypeMergedWithExportStarAsNamespace.js +++ b/testdata/baselines/reference/submodule/conformance/exportTypeMergedWithExportStarAsNamespace.js @@ -21,9 +21,42 @@ export type Something = S.Something Object.defineProperty(exports, "__esModule", { value: true }); //// [prelude.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Something = void 0; -exports.Something = require("./Something"); +exports.Something = __importStar(require("./Something")); //// [usage.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/exportTypeMergedWithExportStarAsNamespace.js.diff b/testdata/baselines/reference/submodule/conformance/exportTypeMergedWithExportStarAsNamespace.js.diff index 398b8561e0..24868a23a2 100644 --- a/testdata/baselines/reference/submodule/conformance/exportTypeMergedWithExportStarAsNamespace.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportTypeMergedWithExportStarAsNamespace.js.diff @@ -1,6 +1,6 @@ --- old.exportTypeMergedWithExportStarAsNamespace.js +++ new.exportTypeMergedWithExportStarAsNamespace.js -@@= skipped -27, +27 lines =@@ +@@= skipped -60, +60 lines =@@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.myValue = void 0; diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImports4-es6.js b/testdata/baselines/reference/submodule/conformance/exportsAndImports4-es6.js index baa558ec02..911828220e 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImports4-es6.js +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImports4-es6.js @@ -44,26 +44,62 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = "hello"; //// [t3.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.f2 = exports.f1 = exports.e2 = exports.e1 = exports.d = exports.c = exports.b = exports.a = void 0; const a = require("./t1"); exports.a = a; a.default; -const t1_1 = require("./t1"); +const t1_1 = __importDefault(require("./t1")); exports.b = t1_1.default; t1_1.default; -const c = require("./t1"); +const c = __importStar(require("./t1")); exports.c = c; c.default; -const t1_2 = require("./t1"); +const t1_2 = __importDefault(require("./t1")); Object.defineProperty(exports, "d", { enumerable: true, get: function () { return t1_2.default; } }); t1_2.default; -const t1_3 = require("./t1"), e2 = t1_3; +const t1_3 = __importStar(require("./t1")), e2 = t1_3; exports.e1 = t1_3.default; exports.e2 = e2; t1_3.default; e2.default; -const t1_4 = require("./t1"); +const t1_4 = __importDefault(require("./t1")); exports.f1 = t1_4.default; Object.defineProperty(exports, "f2", { enumerable: true, get: function () { return t1_4.default; } }); t1_4.default; diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImports4-es6.types b/testdata/baselines/reference/submodule/conformance/exportsAndImports4-es6.types index f3ad69afe4..cac561f15b 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImports4-es6.types +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImports4-es6.types @@ -16,11 +16,11 @@ b; >b : "hello" import * as c from "./t1"; ->c : typeof a +>c : typeof c c.default; >c.default : "hello" ->c : typeof a +>c : typeof c >default : "hello" import { default as d } from "./t1"; @@ -32,14 +32,14 @@ d; import e1, * as e2 from "./t1"; >e1 : "hello" ->e2 : typeof a +>e2 : typeof e2 e1; >e1 : "hello" e2.default; >e2.default : "hello" ->e2 : typeof a +>e2 : typeof e2 >default : "hello" import f1, { default as f2 } from "./t1"; @@ -56,10 +56,10 @@ f2; export { a, b, c, d, e1, e2, f1, f2 }; >a : typeof a >b : "hello" ->c : typeof a +>c : typeof c >d : "hello" >e1 : "hello" ->e2 : typeof a +>e2 : typeof e2 >f1 : "hello" >f2 : "hello" diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImports4.js b/testdata/baselines/reference/submodule/conformance/exportsAndImports4.js index 93060c2f48..ba977815e3 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImports4.js +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImports4.js @@ -44,26 +44,62 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = "hello"; //// [t3.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.f2 = exports.f1 = exports.e2 = exports.e1 = exports.d = exports.c = exports.b = exports.a = void 0; const a = require("./t1"); exports.a = a; a.default; -const t1_1 = require("./t1"); +const t1_1 = __importDefault(require("./t1")); exports.b = t1_1.default; t1_1.default; -const c = require("./t1"); +const c = __importStar(require("./t1")); exports.c = c; c.default; -const t1_2 = require("./t1"); +const t1_2 = __importDefault(require("./t1")); Object.defineProperty(exports, "d", { enumerable: true, get: function () { return t1_2.default; } }); t1_2.default; -const t1_3 = require("./t1"), e2 = t1_3; +const t1_3 = __importStar(require("./t1")), e2 = t1_3; exports.e1 = t1_3.default; exports.e2 = e2; t1_3.default; e2.default; -const t1_4 = require("./t1"); +const t1_4 = __importDefault(require("./t1")); exports.f1 = t1_4.default; Object.defineProperty(exports, "f2", { enumerable: true, get: function () { return t1_4.default; } }); t1_4.default; diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImports4.js.diff b/testdata/baselines/reference/submodule/conformance/exportsAndImports4.js.diff index d524723893..7621cd1e0f 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImports4.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImports4.js.diff @@ -1,33 +1,33 @@ --- old.exportsAndImports4.js +++ new.exportsAndImports4.js -@@= skipped -45, +45 lines =@@ - "use strict"; +@@= skipped -81, +81 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.f2 = exports.f1 = exports.e2 = exports.e1 = exports.d = exports.c = exports.b = exports.a = void 0; -var a = require("./t1"); +const a = require("./t1"); exports.a = a; a.default; --var t1_1 = require("./t1"); -+const t1_1 = require("./t1"); +-var t1_1 = __importDefault(require("./t1")); ++const t1_1 = __importDefault(require("./t1")); exports.b = t1_1.default; t1_1.default; --var c = require("./t1"); -+const c = require("./t1"); +-var c = __importStar(require("./t1")); ++const c = __importStar(require("./t1")); exports.c = c; c.default; --var t1_2 = require("./t1"); -+const t1_2 = require("./t1"); +-var t1_2 = __importDefault(require("./t1")); ++const t1_2 = __importDefault(require("./t1")); Object.defineProperty(exports, "d", { enumerable: true, get: function () { return t1_2.default; } }); t1_2.default; --var t1_3 = require("./t1"), e2 = t1_3; -+const t1_3 = require("./t1"), e2 = t1_3; +-var t1_3 = __importStar(require("./t1")), e2 = t1_3; ++const t1_3 = __importStar(require("./t1")), e2 = t1_3; exports.e1 = t1_3.default; exports.e2 = e2; t1_3.default; e2.default; --var t1_4 = require("./t1"); -+const t1_4 = require("./t1"); +-var t1_4 = __importDefault(require("./t1")); ++const t1_4 = __importDefault(require("./t1")); exports.f1 = t1_4.default; Object.defineProperty(exports, "f2", { enumerable: true, get: function () { return t1_4.default; } }); t1_4.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImports4.types b/testdata/baselines/reference/submodule/conformance/exportsAndImports4.types index 2cdff36cb5..fefafb825c 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImports4.types +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImports4.types @@ -16,11 +16,11 @@ b; >b : "hello" import * as c from "./t1"; ->c : typeof a +>c : typeof c c.default; >c.default : "hello" ->c : typeof a +>c : typeof c >default : "hello" import { default as d } from "./t1"; @@ -32,14 +32,14 @@ d; import e1, * as e2 from "./t1"; >e1 : "hello" ->e2 : typeof a +>e2 : typeof e2 e1; >e1 : "hello" e2.default; >e2.default : "hello" ->e2 : typeof a +>e2 : typeof e2 >default : "hello" import f1, { default as f2 } from "./t1"; @@ -56,10 +56,10 @@ f2; export { a, b, c, d, e1, e2, f1, f2 }; >a : typeof a >b : "hello" ->c : typeof a +>c : typeof c >d : "hello" >e1 : "hello" ->e2 : typeof a +>e2 : typeof e2 >f1 : "hello" >f2 : "hello" diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithContextualKeywordNames02.js b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithContextualKeywordNames02.js index 2012a4f47a..852a6808ee 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithContextualKeywordNames02.js +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithContextualKeywordNames02.js @@ -25,8 +25,41 @@ exports.return = as; exports.as = as; //// [t2.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const as = require("./t1"); +const as = __importStar(require("./t1")); var x = as.as; var y = as.return; //// [t3.js] diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithContextualKeywordNames02.js.diff b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithContextualKeywordNames02.js.diff index f74cedde69..9e3d60b55a 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithContextualKeywordNames02.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithContextualKeywordNames02.js.diff @@ -1,11 +1,11 @@ --- old.exportsAndImportsWithContextualKeywordNames02.js +++ new.exportsAndImportsWithContextualKeywordNames02.js -@@= skipped -25, +25 lines =@@ - //// [t2.js] - "use strict"; +@@= skipped -58, +58 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var as = require("./t1"); -+const as = require("./t1"); +-var as = __importStar(require("./t1")); ++const as = __importStar(require("./t1")); var x = as.as; var y = as.return; //// [t3.js] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores1.js b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores1.js index e6e36ef2e7..5b7342a63f 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores1.js +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores1.js @@ -24,6 +24,9 @@ exports.default = R = { }; //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("./m1"); +const m1_1 = __importDefault(require("./m1")); const { __, _, ___ } = m1_1.default; diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores1.js.diff b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores1.js.diff index 1d85a01527..53c3a42fd2 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores1.js.diff @@ -1,9 +1,9 @@ --- old.exportsAndImportsWithUnderscores1.js +++ new.exportsAndImportsWithUnderscores1.js -@@= skipped -24, +24 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -27, +27 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("./m1"); -+const m1_1 = require("./m1"); +-var m1_1 = __importDefault(require("./m1")); ++const m1_1 = __importDefault(require("./m1")); const { __, _, ___ } = m1_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores2.js b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores2.js index 48b5fa4882..f7df10ca64 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores2.js +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores2.js @@ -22,6 +22,9 @@ exports.default = R = { }; //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("./m1"); +const m1_1 = __importDefault(require("./m1")); const { __esmodule, __proto__ } = m1_1.default; diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores2.js.diff b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores2.js.diff index bce81c3b2f..28ea7e5ae3 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores2.js.diff @@ -1,9 +1,9 @@ --- old.exportsAndImportsWithUnderscores2.js +++ new.exportsAndImportsWithUnderscores2.js -@@= skipped -22, +22 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -25, +25 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("./m1"); -+const m1_1 = require("./m1"); +-var m1_1 = __importDefault(require("./m1")); ++const m1_1 = __importDefault(require("./m1")); const { __esmodule, __proto__ } = m1_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores3.js b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores3.js index f6d2f77f67..88ea6d372a 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores3.js +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores3.js @@ -24,6 +24,9 @@ exports.default = R = { }; //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("./m1"); +const m1_1 = __importDefault(require("./m1")); const { ___, ___hello, _hi } = m1_1.default; diff --git a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores3.js.diff b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores3.js.diff index 3703bfc624..15fb77a3fe 100644 --- a/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportsAndImportsWithUnderscores3.js.diff @@ -1,9 +1,9 @@ --- old.exportsAndImportsWithUnderscores3.js +++ new.exportsAndImportsWithUnderscores3.js -@@= skipped -24, +24 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -27, +27 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("./m1"); -+const m1_1 = require("./m1"); +-var m1_1 = __importDefault(require("./m1")); ++const m1_1 = __importDefault(require("./m1")); const { ___, ___hello, _hi } = m1_1.default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/extensionLoadingPriority(moduleresolution=classic).symbols b/testdata/baselines/reference/submodule/conformance/extensionLoadingPriority(moduleresolution=classic).symbols deleted file mode 100644 index 065ed64eca..0000000000 --- a/testdata/baselines/reference/submodule/conformance/extensionLoadingPriority(moduleresolution=classic).symbols +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts] //// - -=== /project/a.js === - -export default "a.js"; - -=== /project/a.js.js === - -export default "a.js.js"; - -=== /project/dir/index.ts === - -export default "dir/index.ts"; - -=== /project/dir.js === - -export default "dir.js"; - -=== /project/b.ts === -import a from "./a.js"; ->a : Symbol(a, Decl(b.ts, 0, 6)) - -import dir from "./dir"; ->dir : Symbol(dir, Decl(b.ts, 1, 6)) - diff --git a/testdata/baselines/reference/submodule/conformance/extensionLoadingPriority(moduleresolution=classic).types b/testdata/baselines/reference/submodule/conformance/extensionLoadingPriority(moduleresolution=classic).types deleted file mode 100644 index a4a16f8cd5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/extensionLoadingPriority(moduleresolution=classic).types +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts] //// - -=== /project/a.js === - -export default "a.js"; - -=== /project/a.js.js === - -export default "a.js.js"; - -=== /project/dir/index.ts === - -export default "dir/index.ts"; - -=== /project/dir.js === - -export default "dir.js"; - -=== /project/b.ts === -import a from "./a.js"; ->a : "a.js" - -import dir from "./dir"; ->dir : "dir.js" - diff --git a/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.errors.txt b/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.errors.txt deleted file mode 100644 index 8b64bc49e9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -error TS5055: Cannot write file 'genericSetterInClassTypeJsDoc.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'genericSetterInClassTypeJsDoc.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== genericSetterInClassTypeJsDoc.js (0 errors) ==== - /** - * @template T - */ - class Box { - #value; - - /** @param {T} initialValue */ - constructor(initialValue) { - this.#value = initialValue; - } - - /** @type {T} */ - get value() { - return this.#value; - } - - set value(value) { - this.#value = value; - } - } - - new Box(3).value = 3; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.symbols b/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.symbols deleted file mode 100644 index d837a7df57..0000000000 --- a/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.symbols +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/conformance/classes/members/classTypes/genericSetterInClassTypeJsDoc.ts] //// - -=== genericSetterInClassTypeJsDoc.js === -/** - * @template T - */ - class Box { ->Box : Symbol(Box, Decl(genericSetterInClassTypeJsDoc.js, 0, 0)) - - #value; ->#value : Symbol(Box.#value, Decl(genericSetterInClassTypeJsDoc.js, 3, 12)) - - /** @param {T} initialValue */ - constructor(initialValue) { ->initialValue : Symbol(initialValue, Decl(genericSetterInClassTypeJsDoc.js, 7, 16)) - - this.#value = initialValue; ->this.#value : Symbol(Box.#value, Decl(genericSetterInClassTypeJsDoc.js, 3, 12)) ->this : Symbol(Box, Decl(genericSetterInClassTypeJsDoc.js, 0, 0)) ->initialValue : Symbol(initialValue, Decl(genericSetterInClassTypeJsDoc.js, 7, 16)) - } - - /** @type {T} */ - get value() { ->value : Symbol(Box.value, Decl(genericSetterInClassTypeJsDoc.js, 9, 5), Decl(genericSetterInClassTypeJsDoc.js, 14, 5)) - - return this.#value; ->this.#value : Symbol(Box.#value, Decl(genericSetterInClassTypeJsDoc.js, 3, 12)) ->this : Symbol(Box, Decl(genericSetterInClassTypeJsDoc.js, 0, 0)) - } - - set value(value) { ->value : Symbol(Box.value, Decl(genericSetterInClassTypeJsDoc.js, 9, 5), Decl(genericSetterInClassTypeJsDoc.js, 14, 5)) ->value : Symbol(value, Decl(genericSetterInClassTypeJsDoc.js, 16, 14)) - - this.#value = value; ->this.#value : Symbol(Box.#value, Decl(genericSetterInClassTypeJsDoc.js, 3, 12)) ->this : Symbol(Box, Decl(genericSetterInClassTypeJsDoc.js, 0, 0)) ->value : Symbol(value, Decl(genericSetterInClassTypeJsDoc.js, 16, 14)) - } -} - -new Box(3).value = 3; ->new Box(3).value : Symbol(Box.value, Decl(genericSetterInClassTypeJsDoc.js, 9, 5), Decl(genericSetterInClassTypeJsDoc.js, 14, 5)) ->Box : Symbol(Box, Decl(genericSetterInClassTypeJsDoc.js, 0, 0)) ->value : Symbol(Box.value, Decl(genericSetterInClassTypeJsDoc.js, 9, 5), Decl(genericSetterInClassTypeJsDoc.js, 14, 5)) - diff --git a/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.types b/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.types deleted file mode 100644 index 0ebdb3058f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/genericSetterInClassTypeJsDoc.types +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/classes/members/classTypes/genericSetterInClassTypeJsDoc.ts] //// - -=== genericSetterInClassTypeJsDoc.js === -/** - * @template T - */ - class Box { ->Box : Box - - #value; ->#value : any - - /** @param {T} initialValue */ - constructor(initialValue) { ->initialValue : T - - this.#value = initialValue; ->this.#value = initialValue : T ->this.#value : any ->this : this ->initialValue : T - } - - /** @type {T} */ - get value() { ->value : any - - return this.#value; ->this.#value : any ->this : this - } - - set value(value) { ->value : any ->value : any - - this.#value = value; ->this.#value = value : any ->this.#value : any ->this : this ->value : any - } -} - -new Box(3).value = 3; ->new Box(3).value = 3 : 3 ->new Box(3).value : any ->new Box(3) : Box ->Box : typeof Box ->3 : 3 ->value : any ->3 : 3 - diff --git a/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.errors.txt b/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.errors.txt deleted file mode 100644 index 90d8e49796..0000000000 --- a/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.errors.txt +++ /dev/null @@ -1,51 +0,0 @@ -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -actual.ts(12,5): error TS2339: Property 'a' does not exist on type 'Window'. -actual.ts(13,5): error TS2339: Property 'b' does not exist on type 'Window'. -b.js(12,5): error TS2339: Property 'a' does not exist on type 'Window'. -b.js(13,5): error TS2339: Property 'b' does not exist on type 'Window'. - - -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== b.js (2 errors) ==== - var a = 10; - this.a; - this.b; - globalThis.a; - globalThis.b; - - // DOM access is not supported until the index signature is handled more strictly - self.a; - self.b; - window.a; - window.b; - top.a; - ~ -!!! error TS2339: Property 'a' does not exist on type 'Window'. - top.b; - ~ -!!! error TS2339: Property 'b' does not exist on type 'Window'. - -==== actual.ts (2 errors) ==== - var b = 10; - this.a; - this.b; - globalThis.a; - globalThis.b; - - // same here -- no DOM access to globalThis yet - self.a; - self.b; - window.a; - window.b; - top.a; - ~ -!!! error TS2339: Property 'a' does not exist on type 'Window'. - top.b; - ~ -!!! error TS2339: Property 'b' does not exist on type 'Window'. - - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.symbols b/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.symbols deleted file mode 100644 index aeac8862a7..0000000000 --- a/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.symbols +++ /dev/null @@ -1,105 +0,0 @@ -//// [tests/cases/conformance/es2019/globalThisVarDeclaration.ts] //// - -=== b.js === -var a = 10; ->a : Symbol(a, Decl(b.js, 0, 3)) - -this.a; ->this.a : Symbol(a, Decl(b.js, 0, 3)) ->this : Symbol(globalThis) ->a : Symbol(a, Decl(b.js, 0, 3)) - -this.b; ->this.b : Symbol(b, Decl(actual.ts, 0, 3)) ->this : Symbol(globalThis) ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -globalThis.a; ->globalThis.a : Symbol(a, Decl(b.js, 0, 3)) ->globalThis : Symbol(globalThis) ->a : Symbol(a, Decl(b.js, 0, 3)) - -globalThis.b; ->globalThis.b : Symbol(b, Decl(actual.ts, 0, 3)) ->globalThis : Symbol(globalThis) ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -// DOM access is not supported until the index signature is handled more strictly -self.a; ->self.a : Symbol(a, Decl(b.js, 0, 3)) ->self : Symbol(self, Decl(lib.dom.d.ts, --, --)) ->a : Symbol(a, Decl(b.js, 0, 3)) - -self.b; ->self.b : Symbol(b, Decl(actual.ts, 0, 3)) ->self : Symbol(self, Decl(lib.dom.d.ts, --, --)) ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -window.a; ->window.a : Symbol(a, Decl(b.js, 0, 3)) ->window : Symbol(window, Decl(lib.dom.d.ts, --, --)) ->a : Symbol(a, Decl(b.js, 0, 3)) - -window.b; ->window.b : Symbol(b, Decl(actual.ts, 0, 3)) ->window : Symbol(window, Decl(lib.dom.d.ts, --, --)) ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -top.a; ->top : Symbol(top, Decl(lib.dom.d.ts, --, --)) - -top.b; ->top : Symbol(top, Decl(lib.dom.d.ts, --, --)) - -=== actual.ts === -var b = 10; ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -this.a; ->this.a : Symbol(a, Decl(b.js, 0, 3)) ->this : Symbol(globalThis) ->a : Symbol(a, Decl(b.js, 0, 3)) - -this.b; ->this.b : Symbol(b, Decl(actual.ts, 0, 3)) ->this : Symbol(globalThis) ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -globalThis.a; ->globalThis.a : Symbol(a, Decl(b.js, 0, 3)) ->globalThis : Symbol(globalThis) ->a : Symbol(a, Decl(b.js, 0, 3)) - -globalThis.b; ->globalThis.b : Symbol(b, Decl(actual.ts, 0, 3)) ->globalThis : Symbol(globalThis) ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -// same here -- no DOM access to globalThis yet -self.a; ->self.a : Symbol(a, Decl(b.js, 0, 3)) ->self : Symbol(self, Decl(lib.dom.d.ts, --, --)) ->a : Symbol(a, Decl(b.js, 0, 3)) - -self.b; ->self.b : Symbol(b, Decl(actual.ts, 0, 3)) ->self : Symbol(self, Decl(lib.dom.d.ts, --, --)) ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -window.a; ->window.a : Symbol(a, Decl(b.js, 0, 3)) ->window : Symbol(window, Decl(lib.dom.d.ts, --, --)) ->a : Symbol(a, Decl(b.js, 0, 3)) - -window.b; ->window.b : Symbol(b, Decl(actual.ts, 0, 3)) ->window : Symbol(window, Decl(lib.dom.d.ts, --, --)) ->b : Symbol(b, Decl(actual.ts, 0, 3)) - -top.a; ->top : Symbol(top, Decl(lib.dom.d.ts, --, --)) - -top.b; ->top : Symbol(top, Decl(lib.dom.d.ts, --, --)) - - diff --git a/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.types b/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.types deleted file mode 100644 index 59787c1ecb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/globalThisVarDeclaration.types +++ /dev/null @@ -1,115 +0,0 @@ -//// [tests/cases/conformance/es2019/globalThisVarDeclaration.ts] //// - -=== b.js === -var a = 10; ->a : number ->10 : 10 - -this.a; ->this.a : number ->this : typeof globalThis ->a : number - -this.b; ->this.b : number ->this : typeof globalThis ->b : number - -globalThis.a; ->globalThis.a : number ->globalThis : typeof globalThis ->a : number - -globalThis.b; ->globalThis.b : number ->globalThis : typeof globalThis ->b : number - -// DOM access is not supported until the index signature is handled more strictly -self.a; ->self.a : number ->self : Window & typeof globalThis ->a : number - -self.b; ->self.b : number ->self : Window & typeof globalThis ->b : number - -window.a; ->window.a : number ->window : Window & typeof globalThis ->a : number - -window.b; ->window.b : number ->window : Window & typeof globalThis ->b : number - -top.a; ->top.a : any ->top : Window ->a : any - -top.b; ->top.b : any ->top : Window ->b : any - -=== actual.ts === -var b = 10; ->b : number ->10 : 10 - -this.a; ->this.a : number ->this : typeof globalThis ->a : number - -this.b; ->this.b : number ->this : typeof globalThis ->b : number - -globalThis.a; ->globalThis.a : number ->globalThis : typeof globalThis ->a : number - -globalThis.b; ->globalThis.b : number ->globalThis : typeof globalThis ->b : number - -// same here -- no DOM access to globalThis yet -self.a; ->self.a : number ->self : Window & typeof globalThis ->a : number - -self.b; ->self.b : number ->self : Window & typeof globalThis ->b : number - -window.a; ->window.a : number ->window : Window & typeof globalThis ->a : number - -window.b; ->window.b : number ->window : Window & typeof globalThis ->b : number - -top.a; ->top.a : any ->top : Window ->a : any - -top.b; ->top.b : any ->top : Window ->b : any - - diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).js b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).js index 233a0a293b..a927686c34 100644 --- a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).js +++ b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).js @@ -43,10 +43,43 @@ exports.a = 1; exports.b = 2; //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); require("./0"); const _0_1 = require("./0"); -const foo = require("./0"); +const foo = __importStar(require("./0")); _0_1.a; _0_1.b; foo.a; @@ -61,15 +94,48 @@ _0_1.b; _0_2.a; _0_2.b; //// [3.js] -const a = Promise.resolve().then(() => require('./0')); -const b = Promise.resolve().then(() => require('./0')); -const c = Promise.resolve().then(() => require('./0')); -const d = Promise.resolve().then(() => require('./0')); -const dd = Promise.resolve().then(() => require('./0')); -const e = Promise.resolve().then(() => require('./0')); -const f = Promise.resolve().then(() => require()); -const g = Promise.resolve().then(() => require('./0')); -const h = Promise.resolve().then(() => require('./0')); +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +const a = Promise.resolve().then(() => __importStar(require('./0'))); +const b = Promise.resolve().then(() => __importStar(require('./0'))); +const c = Promise.resolve().then(() => __importStar(require('./0'))); +const d = Promise.resolve().then(() => __importStar(require('./0'))); +const dd = Promise.resolve().then(() => __importStar(require('./0'))); +const e = Promise.resolve().then(() => __importStar(require('./0'))); +const f = Promise.resolve().then(() => __importStar(require())); +const g = Promise.resolve().then(() => __importStar(require('./0'))); +const h = Promise.resolve().then(() => __importStar(require('./0'))); //// [0.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion2(module=commonjs).js b/testdata/baselines/reference/submodule/conformance/importAssertion2(module=commonjs).js index c2bb814105..5e297e225e 100644 --- a/testdata/baselines/reference/submodule/conformance/importAssertion2(module=commonjs).js +++ b/testdata/baselines/reference/submodule/conformance/importAssertion2(module=commonjs).js @@ -34,16 +34,38 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi if (k2 === undefined) k2 = k; o[k2] = m[k]; })); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ns = exports.b = exports.a = void 0; const _0_1 = require("./0"); Object.defineProperty(exports, "a", { enumerable: true, get: function () { return _0_1.a; } }); Object.defineProperty(exports, "b", { enumerable: true, get: function () { return _0_1.b; } }); __exportStar(require("./0"), exports); -exports.ns = require("./0"); +exports.ns = __importStar(require("./0")); //// [2.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion2(module=commonjs).js.diff b/testdata/baselines/reference/submodule/conformance/importAssertion2(module=commonjs).js.diff index 609c7752d1..2ce5f03357 100644 --- a/testdata/baselines/reference/submodule/conformance/importAssertion2(module=commonjs).js.diff +++ b/testdata/baselines/reference/submodule/conformance/importAssertion2(module=commonjs).js.diff @@ -1,7 +1,7 @@ --- old.importAssertion2(module=commonjs).js +++ new.importAssertion2(module=commonjs).js -@@= skipped -38, +38 lines =@@ - }; +@@= skipped -60, +60 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ns = exports.b = exports.a = void 0; -var _0_1 = require("./0"); diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).js b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).js index efa8ccd637..3825f530c3 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).js +++ b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).js @@ -40,10 +40,43 @@ exports.a = 1; exports.b = 2; //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); require("./0"); const _0_1 = require("./0"); -const foo = require("./0"); +const foo = __importStar(require("./0")); _0_1.a; _0_1.b; foo.a; @@ -58,15 +91,48 @@ _0_1.b; _0_2.a; _0_2.b; //// [3.js] -const a = Promise.resolve().then(() => require('./0')); -const b = Promise.resolve().then(() => require('./0')); -const c = Promise.resolve().then(() => require('./0')); -const d = Promise.resolve().then(() => require('./0')); -const dd = Promise.resolve().then(() => require('./0')); -const e = Promise.resolve().then(() => require('./0')); -const f = Promise.resolve().then(() => require()); -const g = Promise.resolve().then(() => require('./0')); -const h = Promise.resolve().then(() => require('./0')); +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +const a = Promise.resolve().then(() => __importStar(require('./0'))); +const b = Promise.resolve().then(() => __importStar(require('./0'))); +const c = Promise.resolve().then(() => __importStar(require('./0'))); +const d = Promise.resolve().then(() => __importStar(require('./0'))); +const dd = Promise.resolve().then(() => __importStar(require('./0'))); +const e = Promise.resolve().then(() => __importStar(require('./0'))); +const f = Promise.resolve().then(() => __importStar(require())); +const g = Promise.resolve().then(() => __importStar(require('./0'))); +const h = Promise.resolve().then(() => __importStar(require('./0'))); //// [0.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes2(module=commonjs).js b/testdata/baselines/reference/submodule/conformance/importAttributes2(module=commonjs).js index 1b973b8eea..2cc9e7b2bc 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes2(module=commonjs).js +++ b/testdata/baselines/reference/submodule/conformance/importAttributes2(module=commonjs).js @@ -34,16 +34,38 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi if (k2 === undefined) k2 = k; o[k2] = m[k]; })); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ns = exports.b = exports.a = void 0; const _0_1 = require("./0"); Object.defineProperty(exports, "a", { enumerable: true, get: function () { return _0_1.a; } }); Object.defineProperty(exports, "b", { enumerable: true, get: function () { return _0_1.b; } }); __exportStar(require("./0"), exports); -exports.ns = require("./0"); +exports.ns = __importStar(require("./0")); //// [2.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes2(module=commonjs).js.diff b/testdata/baselines/reference/submodule/conformance/importAttributes2(module=commonjs).js.diff index 9dd8dbeed9..68850ba5d1 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes2(module=commonjs).js.diff +++ b/testdata/baselines/reference/submodule/conformance/importAttributes2(module=commonjs).js.diff @@ -1,7 +1,7 @@ --- old.importAttributes2(module=commonjs).js +++ new.importAttributes2(module=commonjs).js -@@= skipped -38, +38 lines =@@ - }; +@@= skipped -60, +60 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ns = exports.b = exports.a = void 0; -var _0_1 = require("./0"); diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols b/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols index 6f84663538..020d80aca5 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols +++ b/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols @@ -26,7 +26,7 @@ async function f() { >f : Symbol(f, Decl(b.ts, 7, 8)) await import("./a", { ->"./a" : Symbol(ns, Decl(a.ts, 0, 0)) +>"./a" : Symbol("a", Decl(a.ts, 0, 0)) with: { >with : Symbol(with, Decl(b.ts, 10, 25)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes9.types b/testdata/baselines/reference/submodule/conformance/importAttributes9.types index cdcc9554ec..6839173214 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes9.types +++ b/testdata/baselines/reference/submodule/conformance/importAttributes9.types @@ -26,8 +26,8 @@ async function f() { >f : () => Promise await import("./a", { ->await import("./a", { with: { type: "not-json", }, }) : typeof ns ->import("./a", { with: { type: "not-json", }, }) : Promise +>await import("./a", { with: { type: "not-json", }, }) : typeof import("a") +>import("./a", { with: { type: "not-json", }, }) : Promise >"./a" : "./a" >{ with: { type: "not-json", }, } : { with: { type: "not-json"; }; } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.js index 54e5acc876..d58f32985f 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.js @@ -32,32 +32,65 @@ export const l = async () => { //// [test.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.l = exports.cl2 = exports.obj = exports.cl1 = void 0; exports.fn = fn; async function fn() { - const req = await Promise.resolve().then(() => require('./test')); // ONE + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // ONE } class cl1 { async m() { - const req = await Promise.resolve().then(() => require('./test')); // TWO + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // TWO } } exports.cl1 = cl1; exports.obj = { m: async () => { - const req = await Promise.resolve().then(() => require('./test')); // THREE + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // THREE } }; class cl2 { p = { m: async () => { - const req = await Promise.resolve().then(() => require('./test')); // FOUR + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // FOUR } }; } exports.cl2 = cl2; const l = async () => { - const req = await Promise.resolve().then(() => require('./test')); // FIVE + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // FIVE }; exports.l = l; diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.js.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.js.diff index 0a129fc685..78f1c190e8 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.js.diff @@ -1,9 +1,9 @@ --- old.importCallExpressionAsyncES5CJS.js +++ new.importCallExpressionAsyncES5CJS.js -@@= skipped -31, +31 lines =@@ - - //// [test.js] - "use strict"; +@@= skipped -64, +64 lines =@@ + return result; + }; + })(); -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) { @@ -18,48 +18,48 @@ exports.fn = fn; -function fn() { - return __awaiter(this, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(function () { return require('./test'); }); // ONE +- const req = yield Promise.resolve().then(function () { return __importStar(require('./test')); }); // ONE - }); +async function fn() { -+ const req = await Promise.resolve().then(() => require('./test')); // ONE ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // ONE } class cl1 { - m() { - return __awaiter(this, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(function () { return require('./test'); }); // TWO +- const req = yield Promise.resolve().then(function () { return __importStar(require('./test')); }); // TWO - }); + async m() { -+ const req = await Promise.resolve().then(() => require('./test')); // TWO ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // TWO } } exports.cl1 = cl1; exports.obj = { - m: () => __awaiter(void 0, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(function () { return require('./test'); }); // THREE +- const req = yield Promise.resolve().then(function () { return __importStar(require('./test')); }); // THREE - }) + m: async () => { -+ const req = await Promise.resolve().then(() => require('./test')); // THREE ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // THREE + } }; class cl2 { - constructor() { - this.p = { - m: () => __awaiter(this, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(function () { return require('./test'); }); // FOUR +- const req = yield Promise.resolve().then(function () { return __importStar(require('./test')); }); // FOUR - }) - }; - } + p = { + m: async () => { -+ const req = await Promise.resolve().then(() => require('./test')); // FOUR ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // FOUR + } + }; } exports.cl2 = cl2; -const l = () => __awaiter(void 0, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(function () { return require('./test'); }); // FIVE +- const req = yield Promise.resolve().then(function () { return __importStar(require('./test')); }); // FIVE -}); +const l = async () => { -+ const req = await Promise.resolve().then(() => require('./test')); // FIVE ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // FIVE +}; exports.l = l; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.js index 12bf77b3de..f59a98734a 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.js @@ -32,32 +32,65 @@ export const l = async () => { //// [test.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.l = exports.cl2 = exports.obj = exports.cl1 = void 0; exports.fn = fn; async function fn() { - const req = await Promise.resolve().then(() => require('./test')); // ONE + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // ONE } class cl1 { async m() { - const req = await Promise.resolve().then(() => require('./test')); // TWO + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // TWO } } exports.cl1 = cl1; exports.obj = { m: async () => { - const req = await Promise.resolve().then(() => require('./test')); // THREE + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // THREE } }; class cl2 { p = { m: async () => { - const req = await Promise.resolve().then(() => require('./test')); // FOUR + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // FOUR } }; } exports.cl2 = cl2; const l = async () => { - const req = await Promise.resolve().then(() => require('./test')); // FIVE + const req = await Promise.resolve().then(() => __importStar(require('./test'))); // FIVE }; exports.l = l; diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.js.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.js.diff index 6202e08b6c..6eaa9ded97 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.js.diff @@ -1,9 +1,9 @@ --- old.importCallExpressionAsyncES6CJS.js +++ new.importCallExpressionAsyncES6CJS.js -@@= skipped -31, +31 lines =@@ - - //// [test.js] - "use strict"; +@@= skipped -64, +64 lines =@@ + return result; + }; + })(); -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) { @@ -18,48 +18,48 @@ exports.fn = fn; -function fn() { - return __awaiter(this, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(() => require('./test')); // ONE +- const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // ONE - }); +async function fn() { -+ const req = await Promise.resolve().then(() => require('./test')); // ONE ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // ONE } class cl1 { - m() { - return __awaiter(this, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(() => require('./test')); // TWO +- const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // TWO - }); + async m() { -+ const req = await Promise.resolve().then(() => require('./test')); // TWO ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // TWO } } exports.cl1 = cl1; exports.obj = { - m: () => __awaiter(void 0, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(() => require('./test')); // THREE +- const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // THREE - }) + m: async () => { -+ const req = await Promise.resolve().then(() => require('./test')); // THREE ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // THREE + } }; class cl2 { - constructor() { - this.p = { - m: () => __awaiter(this, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(() => require('./test')); // FOUR +- const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // FOUR - }) - }; - } + p = { + m: async () => { -+ const req = await Promise.resolve().then(() => require('./test')); // FOUR ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // FOUR + } + }; } exports.cl2 = cl2; -const l = () => __awaiter(void 0, void 0, void 0, function* () { -- const req = yield Promise.resolve().then(() => require('./test')); // FIVE +- const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // FIVE -}); +const l = async () => { -+ const req = await Promise.resolve().then(() => require('./test')); // FIVE ++ const req = await Promise.resolve().then(() => __importStar(require('./test'))); // FIVE +}; exports.l = l; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.js index 9b1fd4e1fd..df38054020 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.js @@ -31,7 +31,40 @@ class C { exports.C = C; //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -let p1 = Promise.resolve().then(() => require("./defaultPath")); -let p2 = Promise.resolve().then(() => require("./defaultPath")); -let p3 = Promise.resolve().then(() => require("./defaultPath")); +let p1 = Promise.resolve().then(() => __importStar(require("./defaultPath"))); +let p2 = Promise.resolve().then(() => __importStar(require("./defaultPath"))); +let p3 = Promise.resolve().then(() => __importStar(require("./defaultPath"))); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit1.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit1.js index ba9d6efaa9..ff4c5a3080 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit1.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit1.js @@ -17,12 +17,45 @@ function returnDynamicLoad(path: string) { } //// [importCallExpressionDeclarationEmit1.js] -Promise.resolve(`${getSpecifier()}`).then(s => require(s)); -var p0 = Promise.resolve(`${`${directory}\\${moduleFile}`}`).then(s => require(s)); -var p1 = Promise.resolve(`${getSpecifier()}`).then(s => require(s)); -const p2 = Promise.resolve(`${whatToLoad ? getSpecifier() : "defaulPath"}`).then(s => require(s)); +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Promise.resolve(`${getSpecifier()}`).then(s => __importStar(require(s))); +var p0 = Promise.resolve(`${`${directory}\\${moduleFile}`}`).then(s => __importStar(require(s))); +var p1 = Promise.resolve(`${getSpecifier()}`).then(s => __importStar(require(s))); +const p2 = Promise.resolve(`${whatToLoad ? getSpecifier() : "defaulPath"}`).then(s => __importStar(require(s))); function returnDynamicLoad(path) { - return Promise.resolve(`${path}`).then(s => require(s)); + return Promise.resolve(`${path}`).then(s => __importStar(require(s))); } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.js index 7e3df79e65..cc8acc19a3 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.js @@ -35,25 +35,58 @@ exports.foo = foo; function foo() { return "foo"; } //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.D = exports.p2 = void 0; -Promise.resolve().then(() => require("./0")); -var p1 = Promise.resolve().then(() => require("./0")); +Promise.resolve().then(() => __importStar(require("./0"))); +var p1 = Promise.resolve().then(() => __importStar(require("./0"))); p1.then(zero => { return zero.foo(); }); -exports.p2 = Promise.resolve().then(() => require("./0")); +exports.p2 = Promise.resolve().then(() => __importStar(require("./0"))); function foo() { - const p2 = Promise.resolve().then(() => require("./0")); + const p2 = Promise.resolve().then(() => __importStar(require("./0"))); } class C { method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); } } class D { method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); } } exports.D = D; diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.js.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.js.diff index f1e7f9b610..e7278e9fe5 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.js.diff @@ -1,32 +1,32 @@ --- old.importCallExpressionES5CJS.js +++ new.importCallExpressionES5CJS.js -@@= skipped -36, +36 lines =@@ - "use strict"; +@@= skipped -69, +69 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.D = exports.p2 = void 0; --Promise.resolve().then(function () { return require("./0"); }); --var p1 = Promise.resolve().then(function () { return require("./0"); }); -+Promise.resolve().then(() => require("./0")); -+var p1 = Promise.resolve().then(() => require("./0")); +-Promise.resolve().then(function () { return __importStar(require("./0")); }); +-var p1 = Promise.resolve().then(function () { return __importStar(require("./0")); }); ++Promise.resolve().then(() => __importStar(require("./0"))); ++var p1 = Promise.resolve().then(() => __importStar(require("./0"))); p1.then(zero => { return zero.foo(); }); --exports.p2 = Promise.resolve().then(function () { return require("./0"); }); -+exports.p2 = Promise.resolve().then(() => require("./0")); +-exports.p2 = Promise.resolve().then(function () { return __importStar(require("./0")); }); ++exports.p2 = Promise.resolve().then(() => __importStar(require("./0"))); function foo() { -- const p2 = Promise.resolve().then(function () { return require("./0"); }); -+ const p2 = Promise.resolve().then(() => require("./0")); +- const p2 = Promise.resolve().then(function () { return __importStar(require("./0")); }); ++ const p2 = Promise.resolve().then(() => __importStar(require("./0"))); } class C { method() { -- const loadAsync = Promise.resolve().then(function () { return require("./0"); }); -+ const loadAsync = Promise.resolve().then(() => require("./0")); +- const loadAsync = Promise.resolve().then(function () { return __importStar(require("./0")); }); ++ const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); } } class D { method() { -- const loadAsync = Promise.resolve().then(function () { return require("./0"); }); -+ const loadAsync = Promise.resolve().then(() => require("./0")); +- const loadAsync = Promise.resolve().then(function () { return __importStar(require("./0")); }); ++ const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); } } exports.D = D; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.js index 89ed898d92..7065853de2 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.js @@ -35,25 +35,58 @@ exports.foo = foo; function foo() { return "foo"; } //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.D = exports.p2 = void 0; -Promise.resolve().then(() => require("./0")); -var p1 = Promise.resolve().then(() => require("./0")); +Promise.resolve().then(() => __importStar(require("./0"))); +var p1 = Promise.resolve().then(() => __importStar(require("./0"))); p1.then(zero => { return zero.foo(); }); -exports.p2 = Promise.resolve().then(() => require("./0")); +exports.p2 = Promise.resolve().then(() => __importStar(require("./0"))); function foo() { - const p2 = Promise.resolve().then(() => require("./0")); + const p2 = Promise.resolve().then(() => __importStar(require("./0"))); } class C { method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); } } class D { method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); } } exports.D = D; diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionGrammarError.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionGrammarError.js index 0952ed1c7f..d05efe316a 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionGrammarError.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionGrammarError.js @@ -12,8 +12,41 @@ const p2 = import(); const p4 = import("pathToModule", "secondModule"); //// [importCallExpressionGrammarError.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var a = ["./0"]; -Promise.resolve(`${...["PathModule"]}`).then(s => require(s)); -var p1 = Promise.resolve(`${...a}`).then(s => require(s)); -const p2 = Promise.resolve().then(() => require()); -const p4 = Promise.resolve().then(() => require("pathToModule")); +Promise.resolve(`${...["PathModule"]}`).then(s => __importStar(require(s))); +var p1 = Promise.resolve(`${...a}`).then(s => __importStar(require(s))); +const p2 = Promise.resolve().then(() => __importStar(require())); +const p4 = Promise.resolve().then(() => __importStar(require("pathToModule"))); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.js index 35be51f4c7..aa00938a45 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.js @@ -23,14 +23,47 @@ exports.foo = foo; function foo() { return "foo"; } //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.p2 = void 0; -Promise.resolve().then(() => require("./0")); -var p1 = Promise.resolve().then(() => require("./0")); +Promise.resolve().then(() => __importStar(require("./0"))); +var p1 = Promise.resolve().then(() => __importStar(require("./0"))); p1.then(zero => { return zero.foo(); }); -exports.p2 = Promise.resolve().then(() => require("./0")); +exports.p2 = Promise.resolve().then(() => __importStar(require("./0"))); function foo() { - const p2 = Promise.resolve().then(() => require("./0")); + const p2 = Promise.resolve().then(() => __importStar(require("./0"))); } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.js index b0efcae619..0c6ab6027f 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.js @@ -29,12 +29,45 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.backup = backup; function backup() { return "backup"; } //// [2.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); async function compute(promise) { let j = await promise; if (!j) { - j = await Promise.resolve().then(() => require("./1")); + j = await Promise.resolve().then(() => __importStar(require("./1"))); return j.backup(); } return j.foo(); } -compute(Promise.resolve().then(() => require("./0"))); +compute(Promise.resolve().then(() => __importStar(require("./0")))); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.js index fde871e6e1..ea5abc43ea 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.js @@ -25,6 +25,39 @@ class B { } exports.B = B; //// [2.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); // We use Promise for now as there is no way to specify shape of module object function foo(x) { x.then(value => { @@ -32,4 +65,4 @@ function foo(x) { b.print(); }); } -foo(Promise.resolve().then(() => require("./0"))); +foo(Promise.resolve().then(() => __importStar(require("./0")))); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.js index 823fd6b4b9..f5c1f01cf0 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.js @@ -22,8 +22,41 @@ class B { } exports.B = B; //// [2.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); async function foo() { - class C extends (await Promise.resolve().then(() => require("./0"))).B { + class C extends (await Promise.resolve().then(() => __importStar(require("./0")))).B { } var c = new C(); c.print(); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.js index 72b2f8ed88..9dabd4e7dc 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.js @@ -57,30 +57,63 @@ exports.backup = backup; function backup() { return "backup"; } //// [2.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.D = void 0; class C { - myModule = Promise.resolve().then(() => require("./0")); + myModule = Promise.resolve().then(() => __importStar(require("./0"))); method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); this.myModule.then(Zero => { console.log(Zero.foo()); }, async err => { console.log(err); - let one = await Promise.resolve().then(() => require("./1")); + let one = await Promise.resolve().then(() => __importStar(require("./1"))); console.log(one.backup()); }); } } class D { - myModule = Promise.resolve().then(() => require("./0")); + myModule = Promise.resolve().then(() => __importStar(require("./0"))); method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); this.myModule.then(Zero => { console.log(Zero.foo()); }, async err => { console.log(err); - let one = await Promise.resolve().then(() => require("./1")); + let one = await Promise.resolve().then(() => __importStar(require("./1"))); console.log(one.backup()); }); } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.js.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.js.diff index 8c87a99e06..b0173ef2a1 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.js.diff @@ -1,36 +1,36 @@ --- old.importCallExpressionInCJS5.js +++ new.importCallExpressionInCJS5.js -@@= skipped -59, +59 lines =@@ +@@= skipped -92, +92 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.D = void 0; class C { - constructor() { -- this.myModule = Promise.resolve().then(() => require("./0")); +- this.myModule = Promise.resolve().then(() => __importStar(require("./0"))); - } -+ myModule = Promise.resolve().then(() => require("./0")); ++ myModule = Promise.resolve().then(() => __importStar(require("./0"))); method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); this.myModule.then(Zero => { console.log(Zero.foo()); - }, async (err) => { + }, async err => { console.log(err); - let one = await Promise.resolve().then(() => require("./1")); + let one = await Promise.resolve().then(() => __importStar(require("./1"))); console.log(one.backup()); @@= skipped -15, +13 lines =@@ } } class D { - constructor() { -- this.myModule = Promise.resolve().then(() => require("./0")); +- this.myModule = Promise.resolve().then(() => __importStar(require("./0"))); - } -+ myModule = Promise.resolve().then(() => require("./0")); ++ myModule = Promise.resolve().then(() => __importStar(require("./0"))); method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); this.myModule.then(Zero => { console.log(Zero.foo()); - }, async (err) => { + }, async err => { console.log(err); - let one = await Promise.resolve().then(() => require("./1")); + let one = await Promise.resolve().then(() => __importStar(require("./1"))); console.log(one.backup()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.js index 72e3a0ec0a..7670be1a36 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.js @@ -13,6 +13,39 @@ export = async function() { module.exports = 42; //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); module.exports = async function () { - const something = await Promise.resolve().then(() => require("./something")); + const something = await Promise.resolve().then(() => __importStar(require("./something"))); }; diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.js index 170dbf5cfc..4387900106 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.js @@ -13,5 +13,38 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.foo = foo; function foo() { return "foo"; } //// [1.js] -var p1 = Promise.resolve().then(() => require("./0")); +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var p1 = Promise.resolve().then(() => __importStar(require("./0"))); function arguments() { } // this is allow as the file doesn't have implicit "use strict" diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.js index 67b309ca0d..1bf061c072 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.js @@ -15,5 +15,38 @@ exports.foo = foo; function foo() { return "foo"; } //// [1.js] "use strict"; -var p1 = Promise.resolve().then(() => require("./0")); +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var p1 = Promise.resolve().then(() => __importStar(require("./0"))); function arguments() { } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.js index 45a971ca8b..fd117caeb4 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.js @@ -13,6 +13,39 @@ async function foo() { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = "./foo"; //// [index.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); async function foo() { - return await Promise.resolve(`${(await Promise.resolve().then(() => require("./foo"))).default}`).then(s => require(s)); + return await Promise.resolve(`${(await Promise.resolve().then(() => __importStar(require("./foo")))).default}`).then(s => __importStar(require(s))); } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.js.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.js.diff index eb47500c8b..70d6b3119e 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.js.diff @@ -1,9 +1,9 @@ --- old.importCallExpressionNestedCJS.js +++ new.importCallExpressionNestedCJS.js -@@= skipped -12, +12 lines =@@ - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = "./foo"; - //// [index.js] +@@= skipped -45, +45 lines =@@ + return result; + }; + })(); -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) { @@ -15,8 +15,8 @@ -}; -function foo() { - return __awaiter(this, void 0, void 0, function* () { -- return yield Promise.resolve(`${(yield Promise.resolve().then(() => require("./foo"))).default}`).then(s => require(s)); +- return yield Promise.resolve(`${(yield Promise.resolve().then(() => __importStar(require("./foo")))).default}`).then(s => __importStar(require(s))); - }); +async function foo() { -+ return await Promise.resolve(`${(await Promise.resolve().then(() => require("./foo"))).default}`).then(s => require(s)); ++ return await Promise.resolve(`${(await Promise.resolve().then(() => __importStar(require("./foo")))).default}`).then(s => __importStar(require(s))); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.js index ebdf7c6765..a58735d844 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.js @@ -13,6 +13,39 @@ async function foo() { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = "./foo"; //// [index.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); async function foo() { - return await Promise.resolve(`${(await Promise.resolve().then(() => require("./foo"))).default}`).then(s => require(s)); + return await Promise.resolve(`${(await Promise.resolve().then(() => __importStar(require("./foo")))).default}`).then(s => __importStar(require(s))); } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.js.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.js.diff index 310ba1b52a..0a6d9987d1 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.js.diff @@ -1,9 +1,9 @@ --- old.importCallExpressionNestedCJS2.js +++ new.importCallExpressionNestedCJS2.js -@@= skipped -12, +12 lines =@@ - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = "./foo"; - //// [index.js] +@@= skipped -45, +45 lines =@@ + return result; + }; + })(); -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) { @@ -15,8 +15,8 @@ -}; -function foo() { - return __awaiter(this, void 0, void 0, function* () { -- return yield Promise.resolve("".concat((yield Promise.resolve().then(function () { return require("./foo"); })).default)).then(function (s) { return require(s); }); +- return yield Promise.resolve("".concat((yield Promise.resolve().then(function () { return __importStar(require("./foo")); })).default)).then(function (s) { return __importStar(require(s)); }); - }); +async function foo() { -+ return await Promise.resolve(`${(await Promise.resolve().then(() => require("./foo"))).default}`).then(s => require(s)); ++ return await Promise.resolve(`${(await Promise.resolve().then(() => __importStar(require("./foo")))).default}`).then(s => __importStar(require(s))); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.js index 213040c4d3..2cc8a30781 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.js @@ -42,15 +42,48 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.backup = backup; function backup() { return "backup"; } //// [2.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); class C { - myModule = Promise.resolve().then(() => require("./0")); + myModule = Promise.resolve().then(() => __importStar(require("./0"))); method() { - const loadAsync = Promise.resolve().then(() => require("./0")); + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); this.myModule.then(Zero => { console.log(Zero.foo()); }, async err => { console.log(err); - let one = await Promise.resolve().then(() => require("./1")); + let one = await Promise.resolve().then(() => __importStar(require("./1"))); console.log(one.backup()); }); } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.js.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.js.diff index e67958e7f9..815dd7d89f 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.js.diff @@ -1,9 +1,9 @@ --- old.importCallExpressionNoModuleKindSpecified.js +++ new.importCallExpressionNoModuleKindSpecified.js -@@= skipped -41, +41 lines =@@ - exports.backup = backup; - function backup() { return "backup"; } - //// [2.js] +@@= skipped -74, +74 lines =@@ + return result; + }; + })(); -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) { @@ -15,19 +15,19 @@ -}; class C { - constructor() { -- this.myModule = Promise.resolve().then(function () { return require("./0"); }); +- this.myModule = Promise.resolve().then(function () { return __importStar(require("./0")); }); - } -+ myModule = Promise.resolve().then(() => require("./0")); ++ myModule = Promise.resolve().then(() => __importStar(require("./0"))); method() { -- const loadAsync = Promise.resolve().then(function () { return require("./0"); }); -+ const loadAsync = Promise.resolve().then(() => require("./0")); +- const loadAsync = Promise.resolve().then(function () { return __importStar(require("./0")); }); ++ const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); this.myModule.then(Zero => { console.log(Zero.foo()); - }, (err) => __awaiter(this, void 0, void 0, function* () { + }, async err => { console.log(err); -- let one = yield Promise.resolve().then(function () { return require("./1"); }); -+ let one = await Promise.resolve().then(() => require("./1")); +- let one = yield Promise.resolve().then(function () { return __importStar(require("./1")); }); ++ let one = await Promise.resolve().then(() => __importStar(require("./1"))); console.log(one.backup()); - })); + }); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionReturnPromiseOfAny.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionReturnPromiseOfAny.js index 0bda2486b7..51bcdfc378 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionReturnPromiseOfAny.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionReturnPromiseOfAny.js @@ -42,21 +42,54 @@ class C { exports.C = C; //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -Promise.resolve(`${`${directory}\\${moduleFile}`}`).then(s => require(s)); -Promise.resolve(`${getSpecifier()}`).then(s => require(s)); -var p1 = Promise.resolve(`${ValidSomeCondition() ? "./0" : "externalModule"}`).then(s => require(s)); -var p1 = Promise.resolve(`${getSpecifier()}`).then(s => require(s)); -var p11 = Promise.resolve(`${getSpecifier()}`).then(s => require(s)); -const p2 = Promise.resolve(`${whatToLoad ? getSpecifier() : "defaulPath"}`).then(s => require(s)); +Promise.resolve(`${`${directory}\\${moduleFile}`}`).then(s => __importStar(require(s))); +Promise.resolve(`${getSpecifier()}`).then(s => __importStar(require(s))); +var p1 = Promise.resolve(`${ValidSomeCondition() ? "./0" : "externalModule"}`).then(s => __importStar(require(s))); +var p1 = Promise.resolve(`${getSpecifier()}`).then(s => __importStar(require(s))); +var p11 = Promise.resolve(`${getSpecifier()}`).then(s => __importStar(require(s))); +const p2 = Promise.resolve(`${whatToLoad ? getSpecifier() : "defaulPath"}`).then(s => __importStar(require(s))); p1.then(zero => { return zero.foo(); // ok, zero is any }); let j; -var p3 = Promise.resolve(`${j = getSpecifier()}`).then(s => require(s)); +var p3 = Promise.resolve(`${j = getSpecifier()}`).then(s => __importStar(require(s))); function* loadModule(directories) { for (const directory of directories) { const path = `${directory}\\moduleFile`; - Promise.resolve(`${yield path}`).then(s => require(s)); + Promise.resolve(`${yield path}`).then(s => __importStar(require(s))); } } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionSpecifierNotStringTypeError.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionSpecifierNotStringTypeError.js index 45c9489923..bbf0929466 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionSpecifierNotStringTypeError.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionSpecifierNotStringTypeError.js @@ -16,12 +16,45 @@ var p3 = import(["path1", "path2"]); var p4 = import(()=>"PathToModule"); //// [importCallExpressionSpecifierNotStringTypeError.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); // Error specifier is not assignable to string -Promise.resolve(`${getSpecifier()}`).then(s => require(s)); -var p1 = Promise.resolve(`${getSpecifier()}`).then(s => require(s)); -const p2 = Promise.resolve(`${whatToLoad ? getSpecifier() : "defaulPath"}`).then(s => require(s)); +Promise.resolve(`${getSpecifier()}`).then(s => __importStar(require(s))); +var p1 = Promise.resolve(`${getSpecifier()}`).then(s => __importStar(require(s))); +const p2 = Promise.resolve(`${whatToLoad ? getSpecifier() : "defaulPath"}`).then(s => __importStar(require(s))); p1.then(zero => { return zero.foo(); // ok, zero is any }); -var p3 = Promise.resolve(`${["path1", "path2"]}`).then(s => require(s)); -var p4 = Promise.resolve(`${() => "PathToModule"}`).then(s => require(s)); +var p3 = Promise.resolve(`${["path1", "path2"]}`).then(s => __importStar(require(s))); +var p4 = Promise.resolve(`${() => "PathToModule"}`).then(s => __importStar(require(s))); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.js b/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.js index a2804c5825..fe70a0b01f 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.js +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.js @@ -15,5 +15,38 @@ exports.foo = foo; function foo() { return "foo"; } //// [1.js] "use strict"; -var p1 = Promise.resolve().then(() => require("./0")); // error -var p2 = Promise.resolve().then(() => require("./0")); // error +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var p1 = Promise.resolve().then(() => __importStar(require("./0"))); // error +var p2 = Promise.resolve().then(() => __importStar(require("./0"))); // error diff --git a/testdata/baselines/reference/submodule/conformance/importDefaultBindingDefer.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/importDefaultBindingDefer.errors.txt.diff deleted file mode 100644 index 02b7c1f1ce..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importDefaultBindingDefer.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.importDefaultBindingDefer.errors.txt -+++ new.importDefaultBindingDefer.errors.txt -@@= skipped -0, +0 lines =@@ -- -+b.ts(1,19): error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ -+ -+==== a.ts (0 errors) ==== -+ export default function defer() { -+ console.log("defer from a"); -+ } -+ -+==== b.ts (1 errors) ==== -+ import defer from "a"; -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ -+ defer(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importDefaultBindingDefer.types.diff b/testdata/baselines/reference/submodule/conformance/importDefaultBindingDefer.types.diff deleted file mode 100644 index 189f41e500..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importDefaultBindingDefer.types.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.importDefaultBindingDefer.types -+++ new.importDefaultBindingDefer.types -@@= skipped -13, +13 lines =@@ - - === b.ts === - import defer from "a"; -->defer : () => void -+>defer : any - - defer(); -->defer() : void -->defer : () => void -+>defer() : any -+>defer : any diff --git a/testdata/baselines/reference/submodule/conformance/importDeferComments.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/importDeferComments.errors.txt.diff deleted file mode 100644 index 9cf02c2d3d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importDeferComments.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importDeferComments.errors.txt -+++ new.importDeferComments.errors.txt -@@= skipped -0, +0 lines =@@ -- -+b.ts(1,70): error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ -+ -+==== a.ts (0 errors) ==== -+ export {}; -+ -+==== b.ts (1 errors) ==== -+ /*1*/ import /*2*/ defer /*3*/ * /*4*/ as /*5*/ aNs /*6*/ from /*7*/ "a" /*8*/; -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importDeferComments.types.diff b/testdata/baselines/reference/submodule/conformance/importDeferComments.types.diff deleted file mode 100644 index 9a344a8478..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importDeferComments.types.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.importDeferComments.types -+++ new.importDeferComments.types -@@= skipped -5, +5 lines =@@ - - === b.ts === - /*1*/ import /*2*/ defer /*3*/ * /*4*/ as /*5*/ aNs /*6*/ from /*7*/ "a" /*8*/; -->aNs : typeof aNs -+>aNs : any diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.errors.txt b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.errors.txt index 98b01b7145..f73208bd26 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.errors.txt +++ b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.errors.txt @@ -1,5 +1,4 @@ b.ts(1,8): error TS18058: Default imports are not allowed in a deferred import. -b.ts(1,23): error TS2307: Cannot find module 'a' or its corresponding type declarations. ==== a.ts (0 errors) ==== @@ -7,11 +6,9 @@ b.ts(1,23): error TS2307: Cannot find module 'a' or its corresponding type decla console.log("foo from a"); } -==== b.ts (2 errors) ==== - import defer foo from "a"; +==== b.ts (1 errors) ==== + import defer foo from "./a"; ~~~~~~~~~ !!! error TS18058: Default imports are not allowed in a deferred import. - ~~~ -!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.errors.txt.diff deleted file mode 100644 index 380c23e525..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.importDeferInvalidDefault.errors.txt -+++ new.importDeferInvalidDefault.errors.txt -@@= skipped -0, +0 lines =@@ - b.ts(1,8): error TS18058: Default imports are not allowed in a deferred import. -+b.ts(1,23): error TS2307: Cannot find module 'a' or its corresponding type declarations. - - - ==== a.ts (0 errors) ==== -@@= skipped -5, +6 lines =@@ - console.log("foo from a"); - } - --==== b.ts (1 errors) ==== -+==== b.ts (2 errors) ==== - import defer foo from "a"; - ~~~~~~~~~ - !!! error TS18058: Default imports are not allowed in a deferred import. -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. - - foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.js b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.js index e0f3491c63..1bcd8af758 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.js +++ b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.js @@ -6,7 +6,7 @@ export default function foo() { } //// [b.ts] -import defer foo from "a"; +import defer foo from "./a"; foo(); @@ -15,5 +15,5 @@ export default function foo() { console.log("foo from a"); } //// [b.js] -import defer foo from "a"; +import defer foo from "./a"; foo(); diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.symbols b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.symbols index dd548fc593..34b190c10f 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.symbols +++ b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.symbols @@ -11,7 +11,7 @@ export default function foo() { } === b.ts === -import defer foo from "a"; +import defer foo from "./a"; >foo : Symbol(foo, Decl(b.ts, 0, 6)) foo(); diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.types b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.types index a9b9e63190..031d93e158 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.types +++ b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.types @@ -13,10 +13,10 @@ export default function foo() { } === b.ts === -import defer foo from "a"; ->foo : any +import defer foo from "./a"; +>foo : () => void foo(); ->foo() : any ->foo : any +>foo() : void +>foo : () => void diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.types.diff b/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.types.diff deleted file mode 100644 index f0c844e7c9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidDefault.types.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.importDeferInvalidDefault.types -+++ new.importDeferInvalidDefault.types -@@= skipped -13, +13 lines =@@ - - === b.ts === - import defer foo from "a"; -->foo : () => void -+>foo : any - - foo(); -->foo() : void -->foo : () => void -+>foo() : any -+>foo : any diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.errors.txt b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.errors.txt index 4670b0cf31..f802be536f 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.errors.txt +++ b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.errors.txt @@ -1,5 +1,4 @@ b.ts(1,8): error TS18059: Named imports are not allowed in a deferred import. -b.ts(1,27): error TS2307: Cannot find module 'a' or its corresponding type declarations. ==== a.ts (0 errors) ==== @@ -7,11 +6,9 @@ b.ts(1,27): error TS2307: Cannot find module 'a' or its corresponding type decla console.log("foo from a"); } -==== b.ts (2 errors) ==== - import defer { foo } from "a"; +==== b.ts (1 errors) ==== + import defer { foo } from "./a"; ~~~~~~~~~~~~~ !!! error TS18059: Named imports are not allowed in a deferred import. - ~~~ -!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.errors.txt.diff deleted file mode 100644 index 4f150de2ce..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.importDeferInvalidNamed.errors.txt -+++ new.importDeferInvalidNamed.errors.txt -@@= skipped -0, +0 lines =@@ - b.ts(1,8): error TS18059: Named imports are not allowed in a deferred import. -+b.ts(1,27): error TS2307: Cannot find module 'a' or its corresponding type declarations. - - - ==== a.ts (0 errors) ==== -@@= skipped -5, +6 lines =@@ - console.log("foo from a"); - } - --==== b.ts (1 errors) ==== -+==== b.ts (2 errors) ==== - import defer { foo } from "a"; - ~~~~~~~~~~~~~ - !!! error TS18059: Named imports are not allowed in a deferred import. -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. - - foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.js b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.js index 8f92f52fa0..925c583e31 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.js +++ b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.js @@ -6,7 +6,7 @@ export function foo() { } //// [b.ts] -import defer { foo } from "a"; +import defer { foo } from "./a"; foo(); @@ -15,5 +15,5 @@ export function foo() { console.log("foo from a"); } //// [b.js] -import defer { foo } from "a"; +import defer { foo } from "./a"; foo(); diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.symbols b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.symbols index 77f3959cd7..83b170aa34 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.symbols +++ b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.symbols @@ -11,7 +11,7 @@ export function foo() { } === b.ts === -import defer { foo } from "a"; +import defer { foo } from "./a"; >foo : Symbol(foo, Decl(b.ts, 0, 14)) foo(); diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.types b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.types index 6263341dcc..8878814a73 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.types +++ b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.types @@ -13,10 +13,10 @@ export function foo() { } === b.ts === -import defer { foo } from "a"; ->foo : any +import defer { foo } from "./a"; +>foo : () => void foo(); ->foo() : any ->foo : any +>foo() : void +>foo : () => void diff --git a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.types.diff b/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.types.diff deleted file mode 100644 index 5b1085115d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importDeferInvalidNamed.types.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.importDeferInvalidNamed.types -+++ new.importDeferInvalidNamed.types -@@= skipped -13, +13 lines =@@ - - === b.ts === - import defer { foo } from "a"; -->foo : () => void -+>foo : any - - foo(); -->foo() : void -->foo : () => void -+>foo() : any -+>foo : any diff --git a/testdata/baselines/reference/submodule/conformance/importDeferNamespace(module=commonjs).js b/testdata/baselines/reference/submodule/conformance/importDeferNamespace(module=commonjs).js index 181c471732..95cd4ac60d 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferNamespace(module=commonjs).js +++ b/testdata/baselines/reference/submodule/conformance/importDeferNamespace(module=commonjs).js @@ -19,6 +19,39 @@ function foo() { } //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const aNs = require("./a.js"); +const aNs = __importStar(require("./a.js")); aNs.foo(); diff --git a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.errors.txt b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.errors.txt index 138cfa68e9..a97903b2cf 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.errors.txt +++ b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.errors.txt @@ -12,7 +12,7 @@ b.ts(1,28): error TS2304: Cannot find name 'from'. } ==== b.ts (6 errors) ==== - import type defer * as ns1 from "a"; + import type defer * as ns1 from "./a"; ~ !!! error TS1005: '=' expected. ~~ diff --git a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.js b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.js index 0577f6a08c..463ebf0241 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.js +++ b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.js @@ -6,7 +6,7 @@ export function foo() { } //// [b.ts] -import type defer * as ns1 from "a"; +import type defer * as ns1 from "./a"; //// [a.js] @@ -17,4 +17,4 @@ export function foo() { * as; ns1; from; -"a"; +"./a"; diff --git a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.symbols b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.symbols index 961367f241..9771ff173b 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.symbols +++ b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.symbols @@ -11,6 +11,6 @@ export function foo() { } === b.ts === -import type defer * as ns1 from "a"; +import type defer * as ns1 from "./a"; >defer : Symbol(defer, Decl(b.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.types b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.types index 10e770b659..bbf66772de 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.types +++ b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict1.types @@ -13,7 +13,7 @@ export function foo() { } === b.ts === -import type defer * as ns1 from "a"; +import type defer * as ns1 from "./a"; >defer : any > : any >* as : number @@ -21,5 +21,5 @@ import type defer * as ns1 from "a"; >as : any >ns1 : any >from : any ->"a" : "a" +>"./a" : "./a" diff --git a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.errors.txt b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.errors.txt index 2387d3e34a..6453749d15 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.errors.txt +++ b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.errors.txt @@ -12,7 +12,7 @@ b.ts(1,28): error TS2304: Cannot find name 'from'. } ==== b.ts (6 errors) ==== - import defer type * as ns1 from "a"; + import defer type * as ns1 from "./a"; ~ !!! error TS1005: 'from' expected. ~~~~ diff --git a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.js b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.js index 1c06d70469..393d7ff039 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.js +++ b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.js @@ -6,7 +6,7 @@ export function foo() { } //// [b.ts] -import defer type * as ns1 from "a"; +import defer type * as ns1 from "./a"; //// [a.js] @@ -16,5 +16,5 @@ export function foo() { //// [b.js] ns1; from; -"a"; +"./a"; export {}; diff --git a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.symbols b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.symbols index ea867e3cfd..699eea7926 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.symbols +++ b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.symbols @@ -11,6 +11,6 @@ export function foo() { } === b.ts === -import defer type * as ns1 from "a"; +import defer type * as ns1 from "./a"; >type : Symbol(type, Decl(b.ts, 0, 6)) diff --git a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.types b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.types index 5c106b971d..ec77da44ac 100644 --- a/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.types +++ b/testdata/baselines/reference/submodule/conformance/importDeferTypeConflict2.types @@ -13,12 +13,12 @@ export function foo() { } === b.ts === -import defer type * as ns1 from "a"; +import defer type * as ns1 from "./a"; >type : any >* as : number > : any >as : any >ns1 : any >from : any ->"a" : "a" +>"./a" : "./a" diff --git a/testdata/baselines/reference/submodule/conformance/importEquals3.js b/testdata/baselines/reference/submodule/conformance/importEquals3.js index d9cf95d8cb..2ade6b267b 100644 --- a/testdata/baselines/reference/submodule/conformance/importEquals3.js +++ b/testdata/baselines/reference/submodule/conformance/importEquals3.js @@ -35,6 +35,39 @@ const x = 0; exports.x = x; //// [c.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const b = require("./b"); +const b = __importStar(require("./b")); console.log(x); diff --git a/testdata/baselines/reference/submodule/conformance/importEquals3.js.diff b/testdata/baselines/reference/submodule/conformance/importEquals3.js.diff index d37aa2ec6a..faa3f4bb40 100644 --- a/testdata/baselines/reference/submodule/conformance/importEquals3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importEquals3.js.diff @@ -9,9 +9,11 @@ const x = 0; exports.x = x; //// [c.js] - "use strict"; +@@= skipped -40, +38 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var b = require("./b"); +-var b = __importStar(require("./b")); -var x = b.x; -+const b = require("./b"); ++const b = __importStar(require("./b")); console.log(x); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importNonExternalModule.errors.txt b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.errors.txt new file mode 100644 index 0000000000..1cb0df9bfb --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.errors.txt @@ -0,0 +1,17 @@ +foo_1.ts(1,22): error TS2306: File 'foo_0.ts' is not a module. + + +==== foo_1.ts (1 errors) ==== + import foo = require("./foo_0"); + ~~~~~~~~~ +!!! error TS2306: File 'foo_0.ts' is not a module. + // Import should fail. foo_0 not an external module + if(foo.answer === 42){ + + } + +==== foo_0.ts (0 errors) ==== + module foo { + export var answer = 42; + } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importNonExternalModule.js b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.js new file mode 100644 index 0000000000..69b381eb81 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.js @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/externalModules/importNonExternalModule.ts] //// + +//// [foo_0.ts] +module foo { + export var answer = 42; +} + +//// [foo_1.ts] +import foo = require("./foo_0"); +// Import should fail. foo_0 not an external module +if(foo.answer === 42){ + +} + + +//// [foo_0.js] +var foo; +(function (foo) { + foo.answer = 42; +})(foo || (foo = {})); +//// [foo_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const foo = require("./foo_0"); +// Import should fail. foo_0 not an external module +if (foo.answer === 42) { +} diff --git a/testdata/baselines/reference/submodule/conformance/importNonExternalModule.js.diff b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.js.diff new file mode 100644 index 0000000000..1a9c2fb58f --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.js.diff @@ -0,0 +1,11 @@ +--- old.importNonExternalModule.js ++++ new.importNonExternalModule.js +@@= skipped -20, +20 lines =@@ + //// [foo_1.js] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-var foo = require("./foo_0"); ++const foo = require("./foo_0"); + // Import should fail. foo_0 not an external module + if (foo.answer === 42) { + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importNonExternalModule.symbols b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.symbols new file mode 100644 index 0000000000..a0d7544d2d --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/externalModules/importNonExternalModule.ts] //// + +=== foo_1.ts === +import foo = require("./foo_0"); +>foo : Symbol(foo, Decl(foo_1.ts, 0, 0)) + +// Import should fail. foo_0 not an external module +if(foo.answer === 42){ +>foo : Symbol(foo, Decl(foo_1.ts, 0, 0)) + +} + +=== foo_0.ts === +module foo { +>foo : Symbol(foo, Decl(foo_0.ts, 0, 0)) + + export var answer = 42; +>answer : Symbol(answer, Decl(foo_0.ts, 1, 11)) +} + diff --git a/testdata/baselines/reference/submodule/conformance/importNonExternalModule.types b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.types new file mode 100644 index 0000000000..21b9eda8a8 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/importNonExternalModule.types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/externalModules/importNonExternalModule.ts] //// + +=== foo_1.ts === +import foo = require("./foo_0"); +>foo : any + +// Import should fail. foo_0 not an external module +if(foo.answer === 42){ +>foo.answer === 42 : boolean +>foo.answer : any +>foo : any +>answer : any +>42 : 42 + +} + +=== foo_0.ts === +module foo { +>foo : typeof foo + + export var answer = 42; +>answer : number +>42 : 42 +} + diff --git a/testdata/baselines/reference/submodule/conformance/importsImplicitlyReadonly.js b/testdata/baselines/reference/submodule/conformance/importsImplicitlyReadonly.js index bc80e1084e..4ee19ee0d0 100644 --- a/testdata/baselines/reference/submodule/conformance/importsImplicitlyReadonly.js +++ b/testdata/baselines/reference/submodule/conformance/importsImplicitlyReadonly.js @@ -29,9 +29,42 @@ var y = 1; exports.y = y; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const a_1 = require("./a"); -const a1 = require("./a"); +const a1 = __importStar(require("./a")); const a2 = require("./a"); const a3 = a1; a_1.x = 1; // Error diff --git a/testdata/baselines/reference/submodule/conformance/importsImplicitlyReadonly.js.diff b/testdata/baselines/reference/submodule/conformance/importsImplicitlyReadonly.js.diff index e0cf34dfc2..a05abfde49 100644 --- a/testdata/baselines/reference/submodule/conformance/importsImplicitlyReadonly.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importsImplicitlyReadonly.js.diff @@ -1,14 +1,14 @@ --- old.importsImplicitlyReadonly.js +++ new.importsImplicitlyReadonly.js -@@= skipped -29, +29 lines =@@ - //// [b.js] - "use strict"; +@@= skipped -62, +62 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); -var a_1 = require("./a"); --var a1 = require("./a"); +-var a1 = __importStar(require("./a")); -var a2 = require("./a"); +const a_1 = require("./a"); -+const a1 = require("./a"); ++const a1 = __importStar(require("./a")); +const a2 = require("./a"); const a3 = a1; a_1.x = 1; // Error diff --git a/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.errors.txt b/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.errors.txt deleted file mode 100644 index 837aa4d77f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.errors.txt +++ /dev/null @@ -1,148 +0,0 @@ -error TS5055: Cannot write file 'a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -a.js(14,13): error TS7008: Member 'inMethodNullable' implicitly has an 'any' type. -a.js(20,9): error TS2322: Type 'string' is not assignable to type 'number'. -a.js(39,9): error TS2322: Type 'boolean' is not assignable to type 'number'. - - -!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.js (3 errors) ==== - class C { - constructor() { - if (Math.random()) { - this.inConstructor = 0; - } - else { - this.inConstructor = "string" - } - this.inMultiple = 0; - } - method() { - if (Math.random()) { - this.inMethod = 0; - this.inMethodNullable = null; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS7008: Member 'inMethodNullable' implicitly has an 'any' type. - } - else { - this.inMethod = "string" - this.inMethodNullable = undefined; - } - this.inMultiple = "string"; - ~~~~~~~~~~~~~~~ -!!! error TS2322: Type 'string' is not assignable to type 'number'. - this.inMultipleMethods = "string"; - - var action = () => { - if (Math.random()) { - this.inNestedArrowFunction = 0; - } - else { - this.inNestedArrowFunction = "string" - } - }; - } - get() { - if (Math.random()) { - this.inGetter = 0; - } - else { - this.inGetter = "string" - } - this.inMultiple = false; - ~~~~~~~~~~~~~~~ -!!! error TS2322: Type 'boolean' is not assignable to type 'number'. - this.inMultipleMethods = false; - } - set() { - if (Math.random()) { - this.inSetter = 0; - } - else { - this.inSetter = "string" - } - } - prop = () => { - if (Math.random()) { - this.inPropertyDeclaration = 0; - } - else { - this.inPropertyDeclaration = "string" - } - } - static method() { - if (Math.random()) { - this.inStaticMethod = 0; - } - else { - this.inStaticMethod = "string" - } - - var action = () => { - if (Math.random()) { - this.inStaticNestedArrowFunction = 0; - } - else { - this.inStaticNestedArrowFunction = "string" - } - }; - } - static get() { - if (Math.random()) { - this.inStaticGetter = 0; - } - else { - this.inStaticGetter = "string" - } - } - static set() { - if (Math.random()) { - this.inStaticSetter = 0; - } - else { - this.inStaticSetter = "string" - } - } - static prop = () => { - if (Math.random()) { - this.inStaticPropertyDeclaration = 0; - } - else { - this.inStaticPropertyDeclaration = "string" - } - } - } - -==== b.ts (0 errors) ==== - var c = new C(); - - var stringOrNumber: string | number; - var stringOrNumber = c.inConstructor; - - var stringOrNumberOrUndefined: string | number | undefined; - - var stringOrNumberOrUndefined = c.inMethod; - var stringOrNumberOrUndefined = c.inGetter; - var stringOrNumberOrUndefined = c.inSetter; - var stringOrNumberOrUndefined = c.inPropertyDeclaration; - var stringOrNumberOrUndefined = c.inNestedArrowFunction - - var stringOrNumberOrBoolean: string | number | boolean; - - var number: number; - var number = c.inMultiple; - var stringOrBooleanOrUndefined : string | boolean | undefined; - var stringOrBooleanOrUndefined = c.inMultipleMethods; - var any: any; - var any = c.inMethodNullable; - - - var stringOrNumberOrUndefined = C.inStaticMethod; - var stringOrNumberOrUndefined = C.inStaticGetter; - var stringOrNumberOrUndefined = C.inStaticSetter; - var stringOrNumberOrUndefined = C.inStaticPropertyDeclaration; - var stringOrNumberOrUndefined = C.inStaticNestedArrowFunction; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.symbols b/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.symbols deleted file mode 100644 index a457b7ff9f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.symbols +++ /dev/null @@ -1,369 +0,0 @@ -//// [tests/cases/conformance/salsa/inferringClassMembersFromAssignments.ts] //// - -=== a.js === -class C { ->C : Symbol(C, Decl(a.js, 0, 0)) - - constructor() { - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inConstructor = 0; ->this.inConstructor : Symbol(C.inConstructor, Decl(a.js, 2, 28), Decl(a.js, 5, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inConstructor : Symbol(C.inConstructor, Decl(a.js, 2, 28), Decl(a.js, 5, 14)) - } - else { - this.inConstructor = "string" ->this.inConstructor : Symbol(C.inConstructor, Decl(a.js, 2, 28), Decl(a.js, 5, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inConstructor : Symbol(C.inConstructor, Decl(a.js, 2, 28), Decl(a.js, 5, 14)) - } - this.inMultiple = 0; ->this.inMultiple : Symbol(C.inMultiple, Decl(a.js, 7, 9), Decl(a.js, 18, 9), Decl(a.js, 37, 9)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMultiple : Symbol(C.inMultiple, Decl(a.js, 7, 9), Decl(a.js, 18, 9), Decl(a.js, 37, 9)) - } - method() { ->method : Symbol(C.method, Decl(a.js, 9, 5)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inMethod = 0; ->this.inMethod : Symbol(C.inMethod, Decl(a.js, 11, 28), Decl(a.js, 15, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMethod : Symbol(C.inMethod, Decl(a.js, 11, 28), Decl(a.js, 15, 14)) - - this.inMethodNullable = null; ->this.inMethodNullable : Symbol(C.inMethodNullable, Decl(a.js, 12, 30), Decl(a.js, 16, 36)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMethodNullable : Symbol(C.inMethodNullable, Decl(a.js, 12, 30), Decl(a.js, 16, 36)) - } - else { - this.inMethod = "string" ->this.inMethod : Symbol(C.inMethod, Decl(a.js, 11, 28), Decl(a.js, 15, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMethod : Symbol(C.inMethod, Decl(a.js, 11, 28), Decl(a.js, 15, 14)) - - this.inMethodNullable = undefined; ->this.inMethodNullable : Symbol(C.inMethodNullable, Decl(a.js, 12, 30), Decl(a.js, 16, 36)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMethodNullable : Symbol(C.inMethodNullable, Decl(a.js, 12, 30), Decl(a.js, 16, 36)) ->undefined : Symbol(undefined) - } - this.inMultiple = "string"; ->this.inMultiple : Symbol(C.inMultiple, Decl(a.js, 7, 9), Decl(a.js, 18, 9), Decl(a.js, 37, 9)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMultiple : Symbol(C.inMultiple, Decl(a.js, 7, 9), Decl(a.js, 18, 9), Decl(a.js, 37, 9)) - - this.inMultipleMethods = "string"; ->this.inMultipleMethods : Symbol(C.inMultipleMethods, Decl(a.js, 19, 35), Decl(a.js, 38, 32)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMultipleMethods : Symbol(C.inMultipleMethods, Decl(a.js, 19, 35), Decl(a.js, 38, 32)) - - var action = () => { ->action : Symbol(action, Decl(a.js, 22, 11)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inNestedArrowFunction = 0; ->this.inNestedArrowFunction : Symbol(C.inNestedArrowFunction, Decl(a.js, 23, 32), Decl(a.js, 26, 18)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inNestedArrowFunction : Symbol(C.inNestedArrowFunction, Decl(a.js, 23, 32), Decl(a.js, 26, 18)) - } - else { - this.inNestedArrowFunction = "string" ->this.inNestedArrowFunction : Symbol(C.inNestedArrowFunction, Decl(a.js, 23, 32), Decl(a.js, 26, 18)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inNestedArrowFunction : Symbol(C.inNestedArrowFunction, Decl(a.js, 23, 32), Decl(a.js, 26, 18)) - } - }; - } - get() { ->get : Symbol(C.get, Decl(a.js, 30, 5)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inGetter = 0; ->this.inGetter : Symbol(C.inGetter, Decl(a.js, 32, 28), Decl(a.js, 35, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inGetter : Symbol(C.inGetter, Decl(a.js, 32, 28), Decl(a.js, 35, 14)) - } - else { - this.inGetter = "string" ->this.inGetter : Symbol(C.inGetter, Decl(a.js, 32, 28), Decl(a.js, 35, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inGetter : Symbol(C.inGetter, Decl(a.js, 32, 28), Decl(a.js, 35, 14)) - } - this.inMultiple = false; ->this.inMultiple : Symbol(C.inMultiple, Decl(a.js, 7, 9), Decl(a.js, 18, 9), Decl(a.js, 37, 9)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMultiple : Symbol(C.inMultiple, Decl(a.js, 7, 9), Decl(a.js, 18, 9), Decl(a.js, 37, 9)) - - this.inMultipleMethods = false; ->this.inMultipleMethods : Symbol(C.inMultipleMethods, Decl(a.js, 19, 35), Decl(a.js, 38, 32)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inMultipleMethods : Symbol(C.inMultipleMethods, Decl(a.js, 19, 35), Decl(a.js, 38, 32)) - } - set() { ->set : Symbol(C.set, Decl(a.js, 40, 5)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inSetter = 0; ->this.inSetter : Symbol(C.inSetter, Decl(a.js, 42, 28), Decl(a.js, 45, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inSetter : Symbol(C.inSetter, Decl(a.js, 42, 28), Decl(a.js, 45, 14)) - } - else { - this.inSetter = "string" ->this.inSetter : Symbol(C.inSetter, Decl(a.js, 42, 28), Decl(a.js, 45, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inSetter : Symbol(C.inSetter, Decl(a.js, 42, 28), Decl(a.js, 45, 14)) - } - } - prop = () => { ->prop : Symbol(C.prop, Decl(a.js, 48, 5)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inPropertyDeclaration = 0; ->this.inPropertyDeclaration : Symbol(C.inPropertyDeclaration, Decl(a.js, 50, 28), Decl(a.js, 53, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inPropertyDeclaration : Symbol(C.inPropertyDeclaration, Decl(a.js, 50, 28), Decl(a.js, 53, 14)) - } - else { - this.inPropertyDeclaration = "string" ->this.inPropertyDeclaration : Symbol(C.inPropertyDeclaration, Decl(a.js, 50, 28), Decl(a.js, 53, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inPropertyDeclaration : Symbol(C.inPropertyDeclaration, Decl(a.js, 50, 28), Decl(a.js, 53, 14)) - } - } - static method() { ->method : Symbol(C.method, Decl(a.js, 56, 5)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inStaticMethod = 0; ->this.inStaticMethod : Symbol(C.inStaticMethod, Decl(a.js, 58, 28), Decl(a.js, 61, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticMethod : Symbol(C.inStaticMethod, Decl(a.js, 58, 28), Decl(a.js, 61, 14)) - } - else { - this.inStaticMethod = "string" ->this.inStaticMethod : Symbol(C.inStaticMethod, Decl(a.js, 58, 28), Decl(a.js, 61, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticMethod : Symbol(C.inStaticMethod, Decl(a.js, 58, 28), Decl(a.js, 61, 14)) - } - - var action = () => { ->action : Symbol(action, Decl(a.js, 65, 11)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inStaticNestedArrowFunction = 0; ->this.inStaticNestedArrowFunction : Symbol(C.inStaticNestedArrowFunction, Decl(a.js, 66, 32), Decl(a.js, 69, 18)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticNestedArrowFunction : Symbol(C.inStaticNestedArrowFunction, Decl(a.js, 66, 32), Decl(a.js, 69, 18)) - } - else { - this.inStaticNestedArrowFunction = "string" ->this.inStaticNestedArrowFunction : Symbol(C.inStaticNestedArrowFunction, Decl(a.js, 66, 32), Decl(a.js, 69, 18)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticNestedArrowFunction : Symbol(C.inStaticNestedArrowFunction, Decl(a.js, 66, 32), Decl(a.js, 69, 18)) - } - }; - } - static get() { ->get : Symbol(C.get, Decl(a.js, 73, 5)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inStaticGetter = 0; ->this.inStaticGetter : Symbol(C.inStaticGetter, Decl(a.js, 75, 28), Decl(a.js, 78, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticGetter : Symbol(C.inStaticGetter, Decl(a.js, 75, 28), Decl(a.js, 78, 14)) - } - else { - this.inStaticGetter = "string" ->this.inStaticGetter : Symbol(C.inStaticGetter, Decl(a.js, 75, 28), Decl(a.js, 78, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticGetter : Symbol(C.inStaticGetter, Decl(a.js, 75, 28), Decl(a.js, 78, 14)) - } - } - static set() { ->set : Symbol(C.set, Decl(a.js, 81, 5)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inStaticSetter = 0; ->this.inStaticSetter : Symbol(C.inStaticSetter, Decl(a.js, 83, 28), Decl(a.js, 86, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticSetter : Symbol(C.inStaticSetter, Decl(a.js, 83, 28), Decl(a.js, 86, 14)) - } - else { - this.inStaticSetter = "string" ->this.inStaticSetter : Symbol(C.inStaticSetter, Decl(a.js, 83, 28), Decl(a.js, 86, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticSetter : Symbol(C.inStaticSetter, Decl(a.js, 83, 28), Decl(a.js, 86, 14)) - } - } - static prop = () => { ->prop : Symbol(C.prop, Decl(a.js, 89, 5)) - - if (Math.random()) { ->Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) ->Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) - - this.inStaticPropertyDeclaration = 0; ->this.inStaticPropertyDeclaration : Symbol(C.inStaticPropertyDeclaration, Decl(a.js, 91, 28), Decl(a.js, 94, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticPropertyDeclaration : Symbol(C.inStaticPropertyDeclaration, Decl(a.js, 91, 28), Decl(a.js, 94, 14)) - } - else { - this.inStaticPropertyDeclaration = "string" ->this.inStaticPropertyDeclaration : Symbol(C.inStaticPropertyDeclaration, Decl(a.js, 91, 28), Decl(a.js, 94, 14)) ->this : Symbol(C, Decl(a.js, 0, 0)) ->inStaticPropertyDeclaration : Symbol(C.inStaticPropertyDeclaration, Decl(a.js, 91, 28), Decl(a.js, 94, 14)) - } - } -} - -=== b.ts === -var c = new C(); ->c : Symbol(c, Decl(b.ts, 0, 3)) ->C : Symbol(C, Decl(a.js, 0, 0)) - -var stringOrNumber: string | number; ->stringOrNumber : Symbol(stringOrNumber, Decl(b.ts, 2, 3), Decl(b.ts, 3, 3)) - -var stringOrNumber = c.inConstructor; ->stringOrNumber : Symbol(stringOrNumber, Decl(b.ts, 2, 3), Decl(b.ts, 3, 3)) ->c.inConstructor : Symbol(C.inConstructor, Decl(a.js, 2, 28), Decl(a.js, 5, 14)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inConstructor : Symbol(C.inConstructor, Decl(a.js, 2, 28), Decl(a.js, 5, 14)) - -var stringOrNumberOrUndefined: string | number | undefined; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) - -var stringOrNumberOrUndefined = c.inMethod; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->c.inMethod : Symbol(C.inMethod, Decl(a.js, 11, 28), Decl(a.js, 15, 14)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inMethod : Symbol(C.inMethod, Decl(a.js, 11, 28), Decl(a.js, 15, 14)) - -var stringOrNumberOrUndefined = c.inGetter; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->c.inGetter : Symbol(C.inGetter, Decl(a.js, 32, 28), Decl(a.js, 35, 14)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inGetter : Symbol(C.inGetter, Decl(a.js, 32, 28), Decl(a.js, 35, 14)) - -var stringOrNumberOrUndefined = c.inSetter; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->c.inSetter : Symbol(C.inSetter, Decl(a.js, 42, 28), Decl(a.js, 45, 14)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inSetter : Symbol(C.inSetter, Decl(a.js, 42, 28), Decl(a.js, 45, 14)) - -var stringOrNumberOrUndefined = c.inPropertyDeclaration; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->c.inPropertyDeclaration : Symbol(C.inPropertyDeclaration, Decl(a.js, 50, 28), Decl(a.js, 53, 14)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inPropertyDeclaration : Symbol(C.inPropertyDeclaration, Decl(a.js, 50, 28), Decl(a.js, 53, 14)) - -var stringOrNumberOrUndefined = c.inNestedArrowFunction ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->c.inNestedArrowFunction : Symbol(C.inNestedArrowFunction, Decl(a.js, 23, 32), Decl(a.js, 26, 18)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inNestedArrowFunction : Symbol(C.inNestedArrowFunction, Decl(a.js, 23, 32), Decl(a.js, 26, 18)) - -var stringOrNumberOrBoolean: string | number | boolean; ->stringOrNumberOrBoolean : Symbol(stringOrNumberOrBoolean, Decl(b.ts, 13, 3)) - -var number: number; ->number : Symbol(number, Decl(b.ts, 15, 3), Decl(b.ts, 16, 3)) - -var number = c.inMultiple; ->number : Symbol(number, Decl(b.ts, 15, 3), Decl(b.ts, 16, 3)) ->c.inMultiple : Symbol(C.inMultiple, Decl(a.js, 7, 9), Decl(a.js, 18, 9), Decl(a.js, 37, 9)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inMultiple : Symbol(C.inMultiple, Decl(a.js, 7, 9), Decl(a.js, 18, 9), Decl(a.js, 37, 9)) - -var stringOrBooleanOrUndefined : string | boolean | undefined; ->stringOrBooleanOrUndefined : Symbol(stringOrBooleanOrUndefined, Decl(b.ts, 17, 3), Decl(b.ts, 18, 3)) - -var stringOrBooleanOrUndefined = c.inMultipleMethods; ->stringOrBooleanOrUndefined : Symbol(stringOrBooleanOrUndefined, Decl(b.ts, 17, 3), Decl(b.ts, 18, 3)) ->c.inMultipleMethods : Symbol(C.inMultipleMethods, Decl(a.js, 19, 35), Decl(a.js, 38, 32)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inMultipleMethods : Symbol(C.inMultipleMethods, Decl(a.js, 19, 35), Decl(a.js, 38, 32)) - -var any: any; ->any : Symbol(any, Decl(b.ts, 19, 3), Decl(b.ts, 20, 3)) - -var any = c.inMethodNullable; ->any : Symbol(any, Decl(b.ts, 19, 3), Decl(b.ts, 20, 3)) ->c.inMethodNullable : Symbol(C.inMethodNullable, Decl(a.js, 12, 30), Decl(a.js, 16, 36)) ->c : Symbol(c, Decl(b.ts, 0, 3)) ->inMethodNullable : Symbol(C.inMethodNullable, Decl(a.js, 12, 30), Decl(a.js, 16, 36)) - - -var stringOrNumberOrUndefined = C.inStaticMethod; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->C.inStaticMethod : Symbol(C.inStaticMethod, Decl(a.js, 58, 28), Decl(a.js, 61, 14)) ->C : Symbol(C, Decl(a.js, 0, 0)) ->inStaticMethod : Symbol(C.inStaticMethod, Decl(a.js, 58, 28), Decl(a.js, 61, 14)) - -var stringOrNumberOrUndefined = C.inStaticGetter; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->C.inStaticGetter : Symbol(C.inStaticGetter, Decl(a.js, 75, 28), Decl(a.js, 78, 14)) ->C : Symbol(C, Decl(a.js, 0, 0)) ->inStaticGetter : Symbol(C.inStaticGetter, Decl(a.js, 75, 28), Decl(a.js, 78, 14)) - -var stringOrNumberOrUndefined = C.inStaticSetter; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->C.inStaticSetter : Symbol(C.inStaticSetter, Decl(a.js, 83, 28), Decl(a.js, 86, 14)) ->C : Symbol(C, Decl(a.js, 0, 0)) ->inStaticSetter : Symbol(C.inStaticSetter, Decl(a.js, 83, 28), Decl(a.js, 86, 14)) - -var stringOrNumberOrUndefined = C.inStaticPropertyDeclaration; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->C.inStaticPropertyDeclaration : Symbol(C.inStaticPropertyDeclaration, Decl(a.js, 91, 28), Decl(a.js, 94, 14)) ->C : Symbol(C, Decl(a.js, 0, 0)) ->inStaticPropertyDeclaration : Symbol(C.inStaticPropertyDeclaration, Decl(a.js, 91, 28), Decl(a.js, 94, 14)) - -var stringOrNumberOrUndefined = C.inStaticNestedArrowFunction; ->stringOrNumberOrUndefined : Symbol(stringOrNumberOrUndefined, Decl(b.ts, 5, 3), Decl(b.ts, 7, 3), Decl(b.ts, 8, 3), Decl(b.ts, 9, 3), Decl(b.ts, 10, 3) ... and 6 more) ->C.inStaticNestedArrowFunction : Symbol(C.inStaticNestedArrowFunction, Decl(a.js, 66, 32), Decl(a.js, 69, 18)) ->C : Symbol(C, Decl(a.js, 0, 0)) ->inStaticNestedArrowFunction : Symbol(C.inStaticNestedArrowFunction, Decl(a.js, 66, 32), Decl(a.js, 69, 18)) - diff --git a/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.types b/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.types deleted file mode 100644 index ffe098213c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/inferringClassMembersFromAssignments.types +++ /dev/null @@ -1,441 +0,0 @@ -//// [tests/cases/conformance/salsa/inferringClassMembersFromAssignments.ts] //// - -=== a.js === -class C { ->C : C - - constructor() { - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inConstructor = 0; ->this.inConstructor = 0 : 0 ->this.inConstructor : any ->this : this ->inConstructor : any ->0 : 0 - } - else { - this.inConstructor = "string" ->this.inConstructor = "string" : "string" ->this.inConstructor : any ->this : this ->inConstructor : any ->"string" : "string" - } - this.inMultiple = 0; ->this.inMultiple = 0 : 0 ->this.inMultiple : any ->this : this ->inMultiple : any ->0 : 0 - } - method() { ->method : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inMethod = 0; ->this.inMethod = 0 : 0 ->this.inMethod : string | number | undefined ->this : this ->inMethod : string | number | undefined ->0 : 0 - - this.inMethodNullable = null; ->this.inMethodNullable = null : null ->this.inMethodNullable : any ->this : this ->inMethodNullable : any - } - else { - this.inMethod = "string" ->this.inMethod = "string" : "string" ->this.inMethod : string | number | undefined ->this : this ->inMethod : string | number | undefined ->"string" : "string" - - this.inMethodNullable = undefined; ->this.inMethodNullable = undefined : undefined ->this.inMethodNullable : any ->this : this ->inMethodNullable : any ->undefined : undefined - } - this.inMultiple = "string"; ->this.inMultiple = "string" : "string" ->this.inMultiple : number ->this : this ->inMultiple : number ->"string" : "string" - - this.inMultipleMethods = "string"; ->this.inMultipleMethods = "string" : "string" ->this.inMultipleMethods : string | boolean | undefined ->this : this ->inMultipleMethods : string | boolean | undefined ->"string" : "string" - - var action = () => { ->action : () => void ->() => { if (Math.random()) { this.inNestedArrowFunction = 0; } else { this.inNestedArrowFunction = "string" } } : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inNestedArrowFunction = 0; ->this.inNestedArrowFunction = 0 : 0 ->this.inNestedArrowFunction : string | number | undefined ->this : this ->inNestedArrowFunction : string | number | undefined ->0 : 0 - } - else { - this.inNestedArrowFunction = "string" ->this.inNestedArrowFunction = "string" : "string" ->this.inNestedArrowFunction : string | number | undefined ->this : this ->inNestedArrowFunction : string | number | undefined ->"string" : "string" - } - }; - } - get() { ->get : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inGetter = 0; ->this.inGetter = 0 : 0 ->this.inGetter : string | number | undefined ->this : this ->inGetter : string | number | undefined ->0 : 0 - } - else { - this.inGetter = "string" ->this.inGetter = "string" : "string" ->this.inGetter : string | number | undefined ->this : this ->inGetter : string | number | undefined ->"string" : "string" - } - this.inMultiple = false; ->this.inMultiple = false : false ->this.inMultiple : number ->this : this ->inMultiple : number ->false : false - - this.inMultipleMethods = false; ->this.inMultipleMethods = false : false ->this.inMultipleMethods : string | boolean | undefined ->this : this ->inMultipleMethods : string | boolean | undefined ->false : false - } - set() { ->set : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inSetter = 0; ->this.inSetter = 0 : 0 ->this.inSetter : string | number | undefined ->this : this ->inSetter : string | number | undefined ->0 : 0 - } - else { - this.inSetter = "string" ->this.inSetter = "string" : "string" ->this.inSetter : string | number | undefined ->this : this ->inSetter : string | number | undefined ->"string" : "string" - } - } - prop = () => { ->prop : () => void ->() => { if (Math.random()) { this.inPropertyDeclaration = 0; } else { this.inPropertyDeclaration = "string" } } : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inPropertyDeclaration = 0; ->this.inPropertyDeclaration = 0 : 0 ->this.inPropertyDeclaration : string | number | undefined ->this : this ->inPropertyDeclaration : string | number | undefined ->0 : 0 - } - else { - this.inPropertyDeclaration = "string" ->this.inPropertyDeclaration = "string" : "string" ->this.inPropertyDeclaration : string | number | undefined ->this : this ->inPropertyDeclaration : string | number | undefined ->"string" : "string" - } - } - static method() { ->method : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inStaticMethod = 0; ->this.inStaticMethod = 0 : 0 ->this.inStaticMethod : string | number | undefined ->this : typeof C ->inStaticMethod : string | number | undefined ->0 : 0 - } - else { - this.inStaticMethod = "string" ->this.inStaticMethod = "string" : "string" ->this.inStaticMethod : string | number | undefined ->this : typeof C ->inStaticMethod : string | number | undefined ->"string" : "string" - } - - var action = () => { ->action : () => void ->() => { if (Math.random()) { this.inStaticNestedArrowFunction = 0; } else { this.inStaticNestedArrowFunction = "string" } } : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inStaticNestedArrowFunction = 0; ->this.inStaticNestedArrowFunction = 0 : 0 ->this.inStaticNestedArrowFunction : string | number | undefined ->this : typeof C ->inStaticNestedArrowFunction : string | number | undefined ->0 : 0 - } - else { - this.inStaticNestedArrowFunction = "string" ->this.inStaticNestedArrowFunction = "string" : "string" ->this.inStaticNestedArrowFunction : string | number | undefined ->this : typeof C ->inStaticNestedArrowFunction : string | number | undefined ->"string" : "string" - } - }; - } - static get() { ->get : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inStaticGetter = 0; ->this.inStaticGetter = 0 : 0 ->this.inStaticGetter : string | number | undefined ->this : typeof C ->inStaticGetter : string | number | undefined ->0 : 0 - } - else { - this.inStaticGetter = "string" ->this.inStaticGetter = "string" : "string" ->this.inStaticGetter : string | number | undefined ->this : typeof C ->inStaticGetter : string | number | undefined ->"string" : "string" - } - } - static set() { ->set : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inStaticSetter = 0; ->this.inStaticSetter = 0 : 0 ->this.inStaticSetter : string | number | undefined ->this : typeof C ->inStaticSetter : string | number | undefined ->0 : 0 - } - else { - this.inStaticSetter = "string" ->this.inStaticSetter = "string" : "string" ->this.inStaticSetter : string | number | undefined ->this : typeof C ->inStaticSetter : string | number | undefined ->"string" : "string" - } - } - static prop = () => { ->prop : () => void ->() => { if (Math.random()) { this.inStaticPropertyDeclaration = 0; } else { this.inStaticPropertyDeclaration = "string" } } : () => void - - if (Math.random()) { ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number - - this.inStaticPropertyDeclaration = 0; ->this.inStaticPropertyDeclaration = 0 : 0 ->this.inStaticPropertyDeclaration : string | number | undefined ->this : typeof C ->inStaticPropertyDeclaration : string | number | undefined ->0 : 0 - } - else { - this.inStaticPropertyDeclaration = "string" ->this.inStaticPropertyDeclaration = "string" : "string" ->this.inStaticPropertyDeclaration : string | number | undefined ->this : typeof C ->inStaticPropertyDeclaration : string | number | undefined ->"string" : "string" - } - } -} - -=== b.ts === -var c = new C(); ->c : C ->new C() : C ->C : typeof C - -var stringOrNumber: string | number; ->stringOrNumber : string | number - -var stringOrNumber = c.inConstructor; ->stringOrNumber : string | number ->c.inConstructor : string | number ->c : C ->inConstructor : string | number - -var stringOrNumberOrUndefined: string | number | undefined; ->stringOrNumberOrUndefined : string | number | undefined - -var stringOrNumberOrUndefined = c.inMethod; ->stringOrNumberOrUndefined : string | number | undefined ->c.inMethod : string | number | undefined ->c : C ->inMethod : string | number | undefined - -var stringOrNumberOrUndefined = c.inGetter; ->stringOrNumberOrUndefined : string | number | undefined ->c.inGetter : string | number | undefined ->c : C ->inGetter : string | number | undefined - -var stringOrNumberOrUndefined = c.inSetter; ->stringOrNumberOrUndefined : string | number | undefined ->c.inSetter : string | number | undefined ->c : C ->inSetter : string | number | undefined - -var stringOrNumberOrUndefined = c.inPropertyDeclaration; ->stringOrNumberOrUndefined : string | number | undefined ->c.inPropertyDeclaration : string | number | undefined ->c : C ->inPropertyDeclaration : string | number | undefined - -var stringOrNumberOrUndefined = c.inNestedArrowFunction ->stringOrNumberOrUndefined : string | number | undefined ->c.inNestedArrowFunction : string | number | undefined ->c : C ->inNestedArrowFunction : string | number | undefined - -var stringOrNumberOrBoolean: string | number | boolean; ->stringOrNumberOrBoolean : string | number | boolean - -var number: number; ->number : number - -var number = c.inMultiple; ->number : number ->c.inMultiple : number ->c : C ->inMultiple : number - -var stringOrBooleanOrUndefined : string | boolean | undefined; ->stringOrBooleanOrUndefined : string | boolean | undefined - -var stringOrBooleanOrUndefined = c.inMultipleMethods; ->stringOrBooleanOrUndefined : string | boolean | undefined ->c.inMultipleMethods : string | boolean | undefined ->c : C ->inMultipleMethods : string | boolean | undefined - -var any: any; ->any : any - -var any = c.inMethodNullable; ->any : any ->c.inMethodNullable : any ->c : C ->inMethodNullable : any - - -var stringOrNumberOrUndefined = C.inStaticMethod; ->stringOrNumberOrUndefined : string | number | undefined ->C.inStaticMethod : string | number | undefined ->C : typeof C ->inStaticMethod : string | number | undefined - -var stringOrNumberOrUndefined = C.inStaticGetter; ->stringOrNumberOrUndefined : string | number | undefined ->C.inStaticGetter : string | number | undefined ->C : typeof C ->inStaticGetter : string | number | undefined - -var stringOrNumberOrUndefined = C.inStaticSetter; ->stringOrNumberOrUndefined : string | number | undefined ->C.inStaticSetter : string | number | undefined ->C : typeof C ->inStaticSetter : string | number | undefined - -var stringOrNumberOrUndefined = C.inStaticPropertyDeclaration; ->stringOrNumberOrUndefined : string | number | undefined ->C.inStaticPropertyDeclaration : string | number | undefined ->C : typeof C ->inStaticPropertyDeclaration : string | number | undefined - -var stringOrNumberOrUndefined = C.inStaticNestedArrowFunction; ->stringOrNumberOrUndefined : string | number | undefined ->C.inStaticNestedArrowFunction : string | number | undefined ->C : typeof C ->inStaticNestedArrowFunction : string | number | undefined - diff --git a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarations.js b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarations.js index 14fffa54b5..5e568b5ba5 100644 --- a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarations.js +++ b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarations.js @@ -39,9 +39,42 @@ export * from "./reacty"; //// [otherreacty.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx React.createElement */ -const React = require("./renderer"); +const React = __importStar(require("./renderer")); React.createElement("h", null); //// [other.js] "use strict"; @@ -59,9 +92,12 @@ const renderer_1 = require("./renderer"); exports.prerendered2 = (0, renderer_1.otherdom)("h", null); //// [reacty.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.prerendered3 = void 0; -const renderer_1 = require("./renderer"); +const renderer_1 = __importDefault(require("./renderer")); exports.prerendered3 = renderer_1.default.createElement("h", null); //// [index.js] "use strict"; diff --git a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarations.js.diff b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarations.js.diff index dd6bc2c3eb..6c0f158612 100644 --- a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarations.js.diff +++ b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarations.js.diff @@ -1,11 +1,11 @@ --- old.inlineJsxFactoryDeclarations.js +++ new.inlineJsxFactoryDeclarations.js -@@= skipped -40, +40 lines =@@ - "use strict"; +@@= skipped -73, +73 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx React.createElement */ --var React = require("./renderer"); -+const React = require("./renderer"); +-var React = __importStar(require("./renderer")); ++const React = __importStar(require("./renderer")); React.createElement("h", null); //// [other.js] "use strict"; @@ -25,14 +25,16 @@ exports.prerendered2 = (0, renderer_1.otherdom)("h", null); //// [reacty.js] "use strict"; +@@= skipped -23, +23 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.prerendered3 = void 0; --var renderer_1 = require("./renderer"); -+const renderer_1 = require("./renderer"); +-var renderer_1 = __importDefault(require("./renderer")); ++const renderer_1 = __importDefault(require("./renderer")); exports.prerendered3 = renderer_1.default.createElement("h", null); //// [index.js] "use strict"; -@@= skipped -40, +40 lines =@@ +@@= skipped -20, +20 lines =@@ }; Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx dom */ diff --git a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarationsLocalTypes.js b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarationsLocalTypes.js index b988f0ea60..1e3a888ba6 100644 --- a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarationsLocalTypes.js +++ b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarationsLocalTypes.js @@ -124,10 +124,43 @@ exports.tree = (0, renderer2_1.predom)(exports.MySFC, { x: 1, y: 2 }, exports.default = (0, renderer2_1.predom)("h", null); //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx dom */ const renderer_1 = require("./renderer"); -const component_1 = require("./component"); +const component_1 = __importStar(require("./component")); let elem = component_1.default; elem = (0, renderer_1.dom)("h", null); // Expect assignability error here const DOMSFC = (props) => (0, renderer_1.dom)("p", null, diff --git a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarationsLocalTypes.js.diff b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarationsLocalTypes.js.diff index 743d7f200c..8beb343c9c 100644 --- a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarationsLocalTypes.js.diff +++ b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryDeclarationsLocalTypes.js.diff @@ -18,14 +18,14 @@ constructor(props) { this.props = props; } -@@= skipped -22, +24 lines =@@ - "use strict"; +@@= skipped -55, +57 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx dom */ -var renderer_1 = require("./renderer"); --var component_1 = require("./component"); +-var component_1 = __importStar(require("./component")); +const renderer_1 = require("./renderer"); -+const component_1 = require("./component"); ++const component_1 = __importStar(require("./component")); let elem = component_1.default; elem = (0, renderer_1.dom)("h", null); // Expect assignability error here const DOMSFC = (props) => (0, renderer_1.dom)("p", null, diff --git a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryLocalTypeGlobalFallback.js b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryLocalTypeGlobalFallback.js index 0f64bc3971..15376103fd 100644 --- a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryLocalTypeGlobalFallback.js +++ b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryLocalTypeGlobalFallback.js @@ -53,9 +53,12 @@ const renderer2_1 = require("./renderer2"); exports.default = (0, renderer2_1.predom)("h", null); //// [index.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx dom */ const renderer_1 = require("./renderer"); -const component_1 = require("./component"); +const component_1 = __importDefault(require("./component")); let elem = component_1.default; elem = (0, renderer_1.dom)("h", null); // Expect assignability error here diff --git a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryLocalTypeGlobalFallback.js.diff b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryLocalTypeGlobalFallback.js.diff index 9076baf807..9804625ed6 100644 --- a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryLocalTypeGlobalFallback.js.diff +++ b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryLocalTypeGlobalFallback.js.diff @@ -9,11 +9,13 @@ exports.default = (0, renderer2_1.predom)("h", null); //// [index.js] "use strict"; +@@= skipped -9, +9 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx dom */ -var renderer_1 = require("./renderer"); --var component_1 = require("./component"); +-var component_1 = __importDefault(require("./component")); +const renderer_1 = require("./renderer"); -+const component_1 = require("./component"); ++const component_1 = __importDefault(require("./component")); let elem = component_1.default; elem = (0, renderer_1.dom)("h", null); // Expect assignability error here \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryWithFragmentIsError.js b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryWithFragmentIsError.js index 6abb9f89fd..c76d58358d 100644 --- a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryWithFragmentIsError.js +++ b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryWithFragmentIsError.js @@ -21,9 +21,42 @@ import { dom } from "./renderer"; //// [reacty.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx React.createElement */ -const React = require("./renderer"); +const React = __importStar(require("./renderer")); React.createElement(React.Fragment, null, React.createElement("h", null)); //// [index.js] diff --git a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryWithFragmentIsError.js.diff b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryWithFragmentIsError.js.diff index ab8df76223..3b6630a863 100644 --- a/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryWithFragmentIsError.js.diff +++ b/testdata/baselines/reference/submodule/conformance/inlineJsxFactoryWithFragmentIsError.js.diff @@ -1,11 +1,11 @@ --- old.inlineJsxFactoryWithFragmentIsError.js +++ new.inlineJsxFactoryWithFragmentIsError.js -@@= skipped -22, +22 lines =@@ - "use strict"; +@@= skipped -55, +55 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /** @jsx React.createElement */ --var React = require("./renderer"); -+const React = require("./renderer"); +-var React = __importStar(require("./renderer")); ++const React = __importStar(require("./renderer")); React.createElement(React.Fragment, null, React.createElement("h", null)); //// [index.js] diff --git a/testdata/baselines/reference/submodule/conformance/invalidSyntaxNamespaceImportWithCommonjs.js b/testdata/baselines/reference/submodule/conformance/invalidSyntaxNamespaceImportWithCommonjs.js index d3b20995b7..46ad28ec96 100644 --- a/testdata/baselines/reference/submodule/conformance/invalidSyntaxNamespaceImportWithCommonjs.js +++ b/testdata/baselines/reference/submodule/conformance/invalidSyntaxNamespaceImportWithCommonjs.js @@ -15,7 +15,40 @@ class C { exports.C = C; //// [1.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const from = require(); +const from = __importStar(require()); from; "./0"; diff --git a/testdata/baselines/reference/submodule/conformance/invalidSyntaxNamespaceImportWithCommonjs.js.diff b/testdata/baselines/reference/submodule/conformance/invalidSyntaxNamespaceImportWithCommonjs.js.diff index 2207338a5a..1cf6c8b1c7 100644 --- a/testdata/baselines/reference/submodule/conformance/invalidSyntaxNamespaceImportWithCommonjs.js.diff +++ b/testdata/baselines/reference/submodule/conformance/invalidSyntaxNamespaceImportWithCommonjs.js.diff @@ -1,10 +1,10 @@ --- old.invalidSyntaxNamespaceImportWithCommonjs.js +++ new.invalidSyntaxNamespaceImportWithCommonjs.js -@@= skipped -15, +15 lines =@@ - //// [1.js] - "use strict"; +@@= skipped -48, +48 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var from = require(); -+const from = require(); +-var from = __importStar(require()); ++const from = __importStar(require()); from; "./0"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsDeclarationsDefault.js b/testdata/baselines/reference/submodule/conformance/jsDeclarationsDefault.js index 6f9f8f4d49..c42c3c641a 100644 --- a/testdata/baselines/reference/submodule/conformance/jsDeclarationsDefault.js +++ b/testdata/baselines/reference/submodule/conformance/jsDeclarationsDefault.js @@ -66,8 +66,11 @@ exports.Bar = Foo; exports.X = Foo; //// [index4.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const index3_1 = require("./index3"); +const index3_1 = __importDefault(require("./index3")); class Bar extends index3_1.default { x = /** @type {Bar} */ null; } diff --git a/testdata/baselines/reference/submodule/conformance/jsDeclarationsDefault.js.diff b/testdata/baselines/reference/submodule/conformance/jsDeclarationsDefault.js.diff index 7ba41aae8a..d322029469 100644 --- a/testdata/baselines/reference/submodule/conformance/jsDeclarationsDefault.js.diff +++ b/testdata/baselines/reference/submodule/conformance/jsDeclarationsDefault.js.diff @@ -11,12 +11,12 @@ } exports.default = Foo; exports.Bar = Foo; -@@= skipped -11, +9 lines =@@ - //// [index4.js] - "use strict"; +@@= skipped -14, +12 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var index3_1 = require("./index3"); -+const index3_1 = require("./index3"); +-var index3_1 = __importDefault(require("./index3")); ++const index3_1 = __importDefault(require("./index3")); class Bar extends index3_1.default { - constructor() { - super(...arguments); diff --git a/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportForms.js b/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportForms.js index 58e1e4b0ff..4510ccf9ac 100644 --- a/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportForms.js +++ b/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportForms.js @@ -115,20 +115,119 @@ const cls_1 = require("./cls"); Object.defineProperty(exports, "Foo", { enumerable: true, get: function () { return cls_1.Foo; } }); //// [bat.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ns = require("./cls"); +const ns = __importStar(require("./cls")); exports.default = ns; //// [ban.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ns = void 0; -const ns = require("./cls"); +const ns = __importStar(require("./cls")); exports.ns = ns; //// [bol.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.classContainer = void 0; -const ns = require("./cls"); +const ns = __importStar(require("./cls")); exports.classContainer = ns; //// [cjs.js] const ns = require("./cls"); diff --git a/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportForms.js.diff b/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportForms.js.diff index 0d7c673b3d..b8b943ee7a 100644 --- a/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportForms.js.diff +++ b/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportForms.js.diff @@ -9,23 +9,30 @@ Object.defineProperty(exports, "Foo", { enumerable: true, get: function () { return cls_1.Foo; } }); //// [bat.js] "use strict"; +@@= skipped -38, +38 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ns = require("./cls"); -+const ns = require("./cls"); +-var ns = __importStar(require("./cls")); ++const ns = __importStar(require("./cls")); exports.default = ns; //// [ban.js] "use strict"; +@@= skipped -39, +39 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ns = void 0; --var ns = require("./cls"); -+const ns = require("./cls"); +-var ns = __importStar(require("./cls")); ++const ns = __importStar(require("./cls")); exports.ns = ns; //// [bol.js] "use strict"; +@@= skipped -39, +39 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.classContainer = void 0; --var ns = require("./cls"); -+const ns = require("./cls"); +-var ns = __importStar(require("./cls")); ++const ns = __importStar(require("./cls")); exports.classContainer = ns; //// [cjs.js] const ns = require("./cls"); @@ -48,7 +55,7 @@ module.exports.names = ns; //// [includeAll.js] "use strict"; -@@= skipped -47, +54 lines =@@ +@@= skipped -30, +37 lines =@@ //// [cls.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportFormsErr.js b/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportFormsErr.js index 29d60e3d25..c77d5c4e84 100644 --- a/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportFormsErr.js +++ b/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportFormsErr.js @@ -34,8 +34,41 @@ const ns = require("./cls"); module.exports = ns; //// [bin.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const ns = require("./cls"); +const ns = __importStar(require("./cls")); export = ns; module.exports = ns; // We refuse to bind cjs module exports assignments in the same file we find an import in //// [globalNs.js] diff --git a/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportFormsErr.js.diff b/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportFormsErr.js.diff index a4dce2b54f..cd5e891fab 100644 --- a/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportFormsErr.js.diff +++ b/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportFormsErr.js.diff @@ -9,14 +9,17 @@ module.exports = ns; //// [bin.js] "use strict"; +@@= skipped -38, +38 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var ns = require("./cls"); -+const ns = require("./cls"); +-var ns = __importStar(require("./cls")); ++const ns = __importStar(require("./cls")); +export = ns; module.exports = ns; // We refuse to bind cjs module exports assignments in the same file we find an import in //// [globalNs.js] "use strict"; -@@= skipped -34, +35 lines =@@ +@@= skipped -29, +30 lines =@@ //// [cls.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/jsDeclarationsReexportAliases.js b/testdata/baselines/reference/submodule/conformance/jsDeclarationsReexportAliases.js index 3026f124f4..4fc3136394 100644 --- a/testdata/baselines/reference/submodule/conformance/jsDeclarationsReexportAliases.js +++ b/testdata/baselines/reference/submodule/conformance/jsDeclarationsReexportAliases.js @@ -19,12 +19,15 @@ class Foo { exports.default = Foo; //// [usage.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Foob = exports.x = void 0; -const cls_1 = require("./cls"); +const cls_1 = __importDefault(require("./cls")); exports.x = new cls_1.default(); const cls_2 = require("./cls"); -Object.defineProperty(exports, "Foob", { enumerable: true, get: function () { return cls_2.default; } }); +Object.defineProperty(exports, "Foob", { enumerable: true, get: function () { return __importDefault(cls_2).default; } }); //// [cls.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/jsDeclarationsReexportAliases.js.diff b/testdata/baselines/reference/submodule/conformance/jsDeclarationsReexportAliases.js.diff index 453b316f0f..6f15916953 100644 --- a/testdata/baselines/reference/submodule/conformance/jsDeclarationsReexportAliases.js.diff +++ b/testdata/baselines/reference/submodule/conformance/jsDeclarationsReexportAliases.js.diff @@ -1,15 +1,15 @@ --- old.jsDeclarationsReexportAliases.js +++ new.jsDeclarationsReexportAliases.js -@@= skipped -20, +20 lines =@@ - "use strict"; +@@= skipped -23, +23 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Foob = exports.x = void 0; --var cls_1 = require("./cls"); -+const cls_1 = require("./cls"); +-var cls_1 = __importDefault(require("./cls")); ++const cls_1 = __importDefault(require("./cls")); exports.x = new cls_1.default(); -var cls_2 = require("./cls"); +const cls_2 = require("./cls"); - Object.defineProperty(exports, "Foob", { enumerable: true, get: function () { return cls_2.default; } }); + Object.defineProperty(exports, "Foob", { enumerable: true, get: function () { return __importDefault(cls_2).default; } }); @@= skipped -10, +10 lines =@@ diff --git a/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.errors.txt b/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.errors.txt deleted file mode 100644 index 8f9eea6533..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.errors.txt +++ /dev/null @@ -1,54 +0,0 @@ -error TS5055: Cannot write file 'a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -b.ts(3,29): error TS2339: Property 'a' does not exist on type '{}'. -b.ts(4,14): error TS2339: Property 'a' does not exist on type '{}'. -b.ts(5,8): error TS2339: Property 'a' does not exist on type '{}'. -b.ts(6,10): error TS2339: Property 'a' does not exist on type '{}'. - - -!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.js (0 errors) ==== - var variable = {}; - variable.a = 0; - - class C { - initializedMember = {}; - constructor() { - this.member = {}; - this.member.a = 0; - } - } - - var obj = { - property: {} - }; - - obj.property.a = 0; - - var arr = [{}]; - - function getObj() { - return {}; - } - - -==== b.ts (4 errors) ==== - variable.a = 1; - (new C()).member.a = 1; - (new C()).initializedMember.a = 1; - ~ -!!! error TS2339: Property 'a' does not exist on type '{}'. - obj.property.a = 1; - ~ -!!! error TS2339: Property 'a' does not exist on type '{}'. - arr[0].a = 1; - ~ -!!! error TS2339: Property 'a' does not exist on type '{}'. - getObj().a = 1; - ~ -!!! error TS2339: Property 'a' does not exist on type '{}'. - - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.symbols b/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.symbols deleted file mode 100644 index 34310dd248..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.symbols +++ /dev/null @@ -1,85 +0,0 @@ -//// [tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts] //// - -=== a.js === -var variable = {}; ->variable : Symbol(variable, Decl(a.js, 0, 3)) - -variable.a = 0; ->variable.a : Symbol(a, Decl(a.js, 0, 18)) ->variable : Symbol(variable, Decl(a.js, 0, 3)) ->a : Symbol(a, Decl(a.js, 0, 18)) - -class C { ->C : Symbol(C, Decl(a.js, 1, 15)) - - initializedMember = {}; ->initializedMember : Symbol(C.initializedMember, Decl(a.js, 3, 9)) - - constructor() { - this.member = {}; ->this.member : Symbol(C.member, Decl(a.js, 5, 19)) ->this : Symbol(C, Decl(a.js, 1, 15)) ->member : Symbol(C.member, Decl(a.js, 5, 19)) - - this.member.a = 0; ->this.member.a : Symbol(a, Decl(a.js, 6, 25)) ->this.member : Symbol(C.member, Decl(a.js, 5, 19)) ->this : Symbol(C, Decl(a.js, 1, 15)) ->member : Symbol(C.member, Decl(a.js, 5, 19)) ->a : Symbol(a, Decl(a.js, 6, 25)) - } -} - -var obj = { ->obj : Symbol(obj, Decl(a.js, 11, 3)) - - property: {} ->property : Symbol(property, Decl(a.js, 11, 11)) - -}; - -obj.property.a = 0; ->obj.property : Symbol(property, Decl(a.js, 11, 11)) ->obj : Symbol(obj, Decl(a.js, 11, 3)) ->property : Symbol(property, Decl(a.js, 11, 11)) - -var arr = [{}]; ->arr : Symbol(arr, Decl(a.js, 17, 3)) - -function getObj() { ->getObj : Symbol(getObj, Decl(a.js, 17, 15)) - - return {}; -} - - -=== b.ts === -variable.a = 1; ->variable.a : Symbol(a, Decl(a.js, 0, 18)) ->variable : Symbol(variable, Decl(a.js, 0, 3)) ->a : Symbol(a, Decl(a.js, 0, 18)) - -(new C()).member.a = 1; ->(new C()).member.a : Symbol(a, Decl(a.js, 6, 25)) ->(new C()).member : Symbol(C.member, Decl(a.js, 5, 19)) ->C : Symbol(C, Decl(a.js, 1, 15)) ->member : Symbol(C.member, Decl(a.js, 5, 19)) ->a : Symbol(a, Decl(a.js, 6, 25)) - -(new C()).initializedMember.a = 1; ->(new C()).initializedMember : Symbol(C.initializedMember, Decl(a.js, 3, 9)) ->C : Symbol(C, Decl(a.js, 1, 15)) ->initializedMember : Symbol(C.initializedMember, Decl(a.js, 3, 9)) - -obj.property.a = 1; ->obj.property : Symbol(property, Decl(a.js, 11, 11)) ->obj : Symbol(obj, Decl(a.js, 11, 3)) ->property : Symbol(property, Decl(a.js, 11, 11)) - -arr[0].a = 1; ->arr : Symbol(arr, Decl(a.js, 17, 3)) - -getObj().a = 1; ->getObj : Symbol(getObj, Decl(a.js, 17, 15)) - - diff --git a/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.symbols.diff b/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.symbols.diff deleted file mode 100644 index 632c7694d0..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.symbols.diff +++ /dev/null @@ -1,75 +0,0 @@ ---- old.jsObjectsMarkedAsOpenEnded.symbols -+++ new.jsObjectsMarkedAsOpenEnded.symbols -@@= skipped -1, +1 lines =@@ - - === a.js === - var variable = {}; -->variable : Symbol(variable, Decl(a.js, 0, 3), Decl(a.js, 0, 18)) -+>variable : Symbol(variable, Decl(a.js, 0, 3)) - - variable.a = 0; -->variable.a : Symbol(variable.a, Decl(a.js, 0, 18)) -->variable : Symbol(variable, Decl(a.js, 0, 3), Decl(a.js, 0, 18)) -->a : Symbol(variable.a, Decl(a.js, 0, 18)) -+>variable.a : Symbol(a, Decl(a.js, 0, 18)) -+>variable : Symbol(variable, Decl(a.js, 0, 3)) -+>a : Symbol(a, Decl(a.js, 0, 18)) - - class C { - >C : Symbol(C, Decl(a.js, 1, 15)) -@@= skipped -20, +20 lines =@@ - >member : Symbol(C.member, Decl(a.js, 5, 19)) - - this.member.a = 0; -+>this.member.a : Symbol(a, Decl(a.js, 6, 25)) - >this.member : Symbol(C.member, Decl(a.js, 5, 19)) - >this : Symbol(C, Decl(a.js, 1, 15)) - >member : Symbol(C.member, Decl(a.js, 5, 19)) -+>a : Symbol(a, Decl(a.js, 6, 25)) - } - } - - var obj = { -->obj : Symbol(obj, Decl(a.js, 11, 3), Decl(a.js, 13, 2)) -+>obj : Symbol(obj, Decl(a.js, 11, 3)) - - property: {} - >property : Symbol(property, Decl(a.js, 11, 11)) -@@= skipped -16, +18 lines =@@ - - obj.property.a = 0; - >obj.property : Symbol(property, Decl(a.js, 11, 11)) -->obj : Symbol(obj, Decl(a.js, 11, 3), Decl(a.js, 13, 2)) -+>obj : Symbol(obj, Decl(a.js, 11, 3)) - >property : Symbol(property, Decl(a.js, 11, 11)) - - var arr = [{}]; -@@= skipped -15, +15 lines =@@ - - === b.ts === - variable.a = 1; -->variable.a : Symbol(variable.a, Decl(a.js, 0, 18)) -->variable : Symbol(variable, Decl(a.js, 0, 3), Decl(a.js, 0, 18)) -->a : Symbol(variable.a, Decl(a.js, 0, 18)) -+>variable.a : Symbol(a, Decl(a.js, 0, 18)) -+>variable : Symbol(variable, Decl(a.js, 0, 3)) -+>a : Symbol(a, Decl(a.js, 0, 18)) - - (new C()).member.a = 1; -+>(new C()).member.a : Symbol(a, Decl(a.js, 6, 25)) - >(new C()).member : Symbol(C.member, Decl(a.js, 5, 19)) - >C : Symbol(C, Decl(a.js, 1, 15)) - >member : Symbol(C.member, Decl(a.js, 5, 19)) -+>a : Symbol(a, Decl(a.js, 6, 25)) - - (new C()).initializedMember.a = 1; - >(new C()).initializedMember : Symbol(C.initializedMember, Decl(a.js, 3, 9)) -@@= skipped -16, +18 lines =@@ - - obj.property.a = 1; - >obj.property : Symbol(property, Decl(a.js, 11, 11)) -->obj : Symbol(obj, Decl(a.js, 11, 3), Decl(a.js, 13, 2)) -+>obj : Symbol(obj, Decl(a.js, 11, 3)) - >property : Symbol(property, Decl(a.js, 11, 11)) - - arr[0].a = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.types b/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.types deleted file mode 100644 index 428cdef6f3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsObjectsMarkedAsOpenEnded.types +++ /dev/null @@ -1,129 +0,0 @@ -//// [tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts] //// - -=== a.js === -var variable = {}; ->variable : { a: number; } ->{} : { a: number; } - -variable.a = 0; ->variable.a = 0 : 0 ->variable.a : number ->variable : { a: number; } ->a : number ->0 : 0 - -class C { ->C : C - - initializedMember = {}; ->initializedMember : {} ->{} : {} - - constructor() { - this.member = {}; ->this.member = {} : { a: number; } ->this.member : any ->this : this ->member : any ->{} : { a: number; } - - this.member.a = 0; ->this.member.a = 0 : 0 ->this.member.a : number ->this.member : { a: number; } ->this : this ->member : { a: number; } ->a : number ->0 : 0 - } -} - -var obj = { ->obj : { property: {}; } ->{ property: {}} : { property: {}; } - - property: {} ->property : {} ->{} : {} - -}; - -obj.property.a = 0; ->obj.property.a = 0 : 0 ->obj.property.a : any ->obj.property : {} ->obj : { property: {}; } ->property : {} ->a : any ->0 : 0 - -var arr = [{}]; ->arr : {}[] ->[{}] : {}[] ->{} : {} - -function getObj() { ->getObj : () => {} - - return {}; ->{} : {} -} - - -=== b.ts === -variable.a = 1; ->variable.a = 1 : 1 ->variable.a : number ->variable : { a: number; } ->a : number ->1 : 1 - -(new C()).member.a = 1; ->(new C()).member.a = 1 : 1 ->(new C()).member.a : number ->(new C()).member : { a: number; } ->(new C()) : C ->new C() : C ->C : typeof C ->member : { a: number; } ->a : number ->1 : 1 - -(new C()).initializedMember.a = 1; ->(new C()).initializedMember.a = 1 : 1 ->(new C()).initializedMember.a : any ->(new C()).initializedMember : {} ->(new C()) : C ->new C() : C ->C : typeof C ->initializedMember : {} ->a : any ->1 : 1 - -obj.property.a = 1; ->obj.property.a = 1 : 1 ->obj.property.a : any ->obj.property : {} ->obj : { property: {}; } ->property : {} ->a : any ->1 : 1 - -arr[0].a = 1; ->arr[0].a = 1 : 1 ->arr[0].a : any ->arr[0] : {} ->arr : {}[] ->0 : 0 ->a : any ->1 : 1 - -getObj().a = 1; ->getObj().a = 1 : 1 ->getObj().a : any ->getObj() : {} ->getObj : () => {} ->a : any ->1 : 1 - - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.errors.txt b/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.errors.txt deleted file mode 100644 index 6dde425f17..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.errors.txt +++ /dev/null @@ -1,47 +0,0 @@ -error TS5055: Cannot write file 'jsdocAccessibilityTagDeclarations.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'jsdocAccessibilityTagDeclarations.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== jsdocAccessibilityTagDeclarations.js (0 errors) ==== - class Protected { - /** @protected */ - constructor(c) { - /** @protected */ - this.c = c - } - /** @protected */ - m() { - return this.c - } - /** @protected */ - get p() { return this.c } - /** @protected */ - set p(value) { this.c = value } - } - - class Private { - /** @private */ - constructor(c) { - /** @private */ - this.c = c - } - /** @private */ - m() { - return this.c - } - /** @private */ - get p() { return this.c } - /** @private */ - set p(value) { this.c = value } - } - - // https://github.com/microsoft/TypeScript/issues/38401 - class C { - constructor(/** @public */ x, /** @protected */ y, /** @private */ z) { - } - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.symbols b/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.symbols deleted file mode 100644 index 95faf3741d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.symbols +++ /dev/null @@ -1,94 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts] //// - -=== jsdocAccessibilityTagDeclarations.js === -class Protected { ->Protected : Symbol(Protected, Decl(jsdocAccessibilityTagDeclarations.js, 0, 0)) - - /** @protected */ - constructor(c) { ->c : Symbol(c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 16)) - - /** @protected */ - this.c = c ->this.c : Symbol(Protected.c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 20), Decl(jsdocAccessibilityTagDeclarations.js, 13, 18)) ->this : Symbol(Protected, Decl(jsdocAccessibilityTagDeclarations.js, 0, 0)) ->c : Symbol(Protected.c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 20), Decl(jsdocAccessibilityTagDeclarations.js, 13, 18)) ->c : Symbol(c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 16)) - } - /** @protected */ - m() { ->m : Symbol(Protected.m, Decl(jsdocAccessibilityTagDeclarations.js, 5, 5)) - - return this.c ->this.c : Symbol(Protected.c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 20), Decl(jsdocAccessibilityTagDeclarations.js, 13, 18)) ->this : Symbol(Protected, Decl(jsdocAccessibilityTagDeclarations.js, 0, 0)) ->c : Symbol(Protected.c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 20), Decl(jsdocAccessibilityTagDeclarations.js, 13, 18)) - } - /** @protected */ - get p() { return this.c } ->p : Symbol(Protected.p, Decl(jsdocAccessibilityTagDeclarations.js, 9, 5), Decl(jsdocAccessibilityTagDeclarations.js, 11, 29)) ->this.c : Symbol(Protected.c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 20), Decl(jsdocAccessibilityTagDeclarations.js, 13, 18)) ->this : Symbol(Protected, Decl(jsdocAccessibilityTagDeclarations.js, 0, 0)) ->c : Symbol(Protected.c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 20), Decl(jsdocAccessibilityTagDeclarations.js, 13, 18)) - - /** @protected */ - set p(value) { this.c = value } ->p : Symbol(Protected.p, Decl(jsdocAccessibilityTagDeclarations.js, 9, 5), Decl(jsdocAccessibilityTagDeclarations.js, 11, 29)) ->value : Symbol(value, Decl(jsdocAccessibilityTagDeclarations.js, 13, 10)) ->this.c : Symbol(Protected.c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 20), Decl(jsdocAccessibilityTagDeclarations.js, 13, 18)) ->this : Symbol(Protected, Decl(jsdocAccessibilityTagDeclarations.js, 0, 0)) ->c : Symbol(Protected.c, Decl(jsdocAccessibilityTagDeclarations.js, 2, 20), Decl(jsdocAccessibilityTagDeclarations.js, 13, 18)) ->value : Symbol(value, Decl(jsdocAccessibilityTagDeclarations.js, 13, 10)) -} - -class Private { ->Private : Symbol(Private, Decl(jsdocAccessibilityTagDeclarations.js, 14, 1)) - - /** @private */ - constructor(c) { ->c : Symbol(c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 16)) - - /** @private */ - this.c = c ->this.c : Symbol(Private.c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 20), Decl(jsdocAccessibilityTagDeclarations.js, 29, 18)) ->this : Symbol(Private, Decl(jsdocAccessibilityTagDeclarations.js, 14, 1)) ->c : Symbol(Private.c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 20), Decl(jsdocAccessibilityTagDeclarations.js, 29, 18)) ->c : Symbol(c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 16)) - } - /** @private */ - m() { ->m : Symbol(Private.m, Decl(jsdocAccessibilityTagDeclarations.js, 21, 5)) - - return this.c ->this.c : Symbol(Private.c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 20), Decl(jsdocAccessibilityTagDeclarations.js, 29, 18)) ->this : Symbol(Private, Decl(jsdocAccessibilityTagDeclarations.js, 14, 1)) ->c : Symbol(Private.c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 20), Decl(jsdocAccessibilityTagDeclarations.js, 29, 18)) - } - /** @private */ - get p() { return this.c } ->p : Symbol(Private.p, Decl(jsdocAccessibilityTagDeclarations.js, 25, 5), Decl(jsdocAccessibilityTagDeclarations.js, 27, 29)) ->this.c : Symbol(Private.c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 20), Decl(jsdocAccessibilityTagDeclarations.js, 29, 18)) ->this : Symbol(Private, Decl(jsdocAccessibilityTagDeclarations.js, 14, 1)) ->c : Symbol(Private.c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 20), Decl(jsdocAccessibilityTagDeclarations.js, 29, 18)) - - /** @private */ - set p(value) { this.c = value } ->p : Symbol(Private.p, Decl(jsdocAccessibilityTagDeclarations.js, 25, 5), Decl(jsdocAccessibilityTagDeclarations.js, 27, 29)) ->value : Symbol(value, Decl(jsdocAccessibilityTagDeclarations.js, 29, 10)) ->this.c : Symbol(Private.c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 20), Decl(jsdocAccessibilityTagDeclarations.js, 29, 18)) ->this : Symbol(Private, Decl(jsdocAccessibilityTagDeclarations.js, 14, 1)) ->c : Symbol(Private.c, Decl(jsdocAccessibilityTagDeclarations.js, 18, 20), Decl(jsdocAccessibilityTagDeclarations.js, 29, 18)) ->value : Symbol(value, Decl(jsdocAccessibilityTagDeclarations.js, 29, 10)) -} - -// https://github.com/microsoft/TypeScript/issues/38401 -class C { ->C : Symbol(C, Decl(jsdocAccessibilityTagDeclarations.js, 30, 1)) - - constructor(/** @public */ x, /** @protected */ y, /** @private */ z) { ->x : Symbol(x, Decl(jsdocAccessibilityTagDeclarations.js, 34, 16)) ->y : Symbol(y, Decl(jsdocAccessibilityTagDeclarations.js, 34, 33)) ->z : Symbol(z, Decl(jsdocAccessibilityTagDeclarations.js, 34, 54)) - } -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.types b/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.types deleted file mode 100644 index d43f0b5de9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocAccessibilityTagsDeclarations.types +++ /dev/null @@ -1,98 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts] //// - -=== jsdocAccessibilityTagDeclarations.js === -class Protected { ->Protected : Protected - - /** @protected */ - constructor(c) { ->c : any - - /** @protected */ - this.c = c ->this.c = c : any ->this.c : any ->this : this ->c : any ->c : any - } - /** @protected */ - m() { ->m : () => any - - return this.c ->this.c : any ->this : this ->c : any - } - /** @protected */ - get p() { return this.c } ->p : any ->this.c : any ->this : this ->c : any - - /** @protected */ - set p(value) { this.c = value } ->p : any ->value : any ->this.c = value : any ->this.c : any ->this : this ->c : any ->value : any -} - -class Private { ->Private : Private - - /** @private */ - constructor(c) { ->c : any - - /** @private */ - this.c = c ->this.c = c : any ->this.c : any ->this : this ->c : any ->c : any - } - /** @private */ - m() { ->m : () => any - - return this.c ->this.c : any ->this : this ->c : any - } - /** @private */ - get p() { return this.c } ->p : any ->this.c : any ->this : this ->c : any - - /** @private */ - set p(value) { this.c = value } ->p : any ->value : any ->this.c = value : any ->this.c : any ->this : this ->c : any ->value : any -} - -// https://github.com/microsoft/TypeScript/issues/38401 -class C { ->C : C - - constructor(/** @public */ x, /** @protected */ y, /** @private */ z) { ->x : any ->y : any ->z : any - } -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocLiteral.errors.txt b/testdata/baselines/reference/submodule/conformance/jsdocLiteral.errors.txt deleted file mode 100644 index 59775da771..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocLiteral.errors.txt +++ /dev/null @@ -1,20 +0,0 @@ -error TS5055: Cannot write file 'in.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'in.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== in.js (0 errors) ==== - /** - * @param {'literal'} p1 - * @param {"literal"} p2 - * @param {'literal' | 'other'} p3 - * @param {'literal' | number} p4 - * @param {12 | true | 'str'} p5 - */ - function f(p1, p2, p3, p4, p5) { - return p1 + p2 + p3 + p4 + p5 + '.'; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsdocLiteral.symbols b/testdata/baselines/reference/submodule/conformance/jsdocLiteral.symbols deleted file mode 100644 index 0a194a6604..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocLiteral.symbols +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocLiteral.ts] //// - -=== in.js === -/** - * @param {'literal'} p1 - * @param {"literal"} p2 - * @param {'literal' | 'other'} p3 - * @param {'literal' | number} p4 - * @param {12 | true | 'str'} p5 - */ -function f(p1, p2, p3, p4, p5) { ->f : Symbol(f, Decl(in.js, 0, 0)) ->p1 : Symbol(p1, Decl(in.js, 7, 11)) ->p2 : Symbol(p2, Decl(in.js, 7, 14)) ->p3 : Symbol(p3, Decl(in.js, 7, 18)) ->p4 : Symbol(p4, Decl(in.js, 7, 22)) ->p5 : Symbol(p5, Decl(in.js, 7, 26)) - - return p1 + p2 + p3 + p4 + p5 + '.'; ->p1 : Symbol(p1, Decl(in.js, 7, 11)) ->p2 : Symbol(p2, Decl(in.js, 7, 14)) ->p3 : Symbol(p3, Decl(in.js, 7, 18)) ->p4 : Symbol(p4, Decl(in.js, 7, 22)) ->p5 : Symbol(p5, Decl(in.js, 7, 26)) -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocLiteral.types b/testdata/baselines/reference/submodule/conformance/jsdocLiteral.types deleted file mode 100644 index 9420cd1887..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocLiteral.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocLiteral.ts] //// - -=== in.js === -/** - * @param {'literal'} p1 - * @param {"literal"} p2 - * @param {'literal' | 'other'} p3 - * @param {'literal' | number} p4 - * @param {12 | true | 'str'} p5 - */ -function f(p1, p2, p3, p4, p5) { ->f : (p1: "literal", p2: "literal", p3: "literal" | "other", p4: number | "literal", p5: "str" | 12 | true) => string ->p1 : "literal" ->p2 : "literal" ->p3 : "literal" | "other" ->p4 : number | "literal" ->p5 : "str" | 12 | true - - return p1 + p2 + p3 + p4 + p5 + '.'; ->p1 + p2 + p3 + p4 + p5 + '.' : string ->p1 + p2 + p3 + p4 + p5 : string ->p1 + p2 + p3 + p4 : string ->p1 + p2 + p3 : string ->p1 + p2 : string ->p1 : "literal" ->p2 : "literal" ->p3 : "literal" | "other" ->p4 : number | "literal" ->p5 : "str" | 12 | true ->'.' : "." -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.errors.txt b/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.errors.txt deleted file mode 100644 index ad56cb1b82..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.errors.txt +++ /dev/null @@ -1,18 +0,0 @@ -error TS5055: Cannot write file 'in.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'in.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== in.js (0 errors) ==== - /** - * @param {never} p1 - * @param {undefined} p2 - * @param {null} p3 - * @returns {void} nothing - */ - function f(p1, p2, p3) { - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.symbols b/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.symbols deleted file mode 100644 index 727f0ee5a8..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.symbols +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocNeverUndefinedNull.ts] //// - -=== in.js === -/** - * @param {never} p1 - * @param {undefined} p2 - * @param {null} p3 - * @returns {void} nothing - */ -function f(p1, p2, p3) { ->f : Symbol(f, Decl(in.js, 0, 0)) ->p1 : Symbol(p1, Decl(in.js, 6, 11)) ->p2 : Symbol(p2, Decl(in.js, 6, 14)) ->p3 : Symbol(p3, Decl(in.js, 6, 18)) -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.types b/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.types deleted file mode 100644 index 2a8baa91ff..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocNeverUndefinedNull.types +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocNeverUndefinedNull.ts] //// - -=== in.js === -/** - * @param {never} p1 - * @param {undefined} p2 - * @param {null} p3 - * @returns {void} nothing - */ -function f(p1, p2, p3) { ->f : (p1: never, p2: undefined, p3: null) => void ->p1 : never ->p2 : undefined ->p3 : null -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.errors.txt b/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.errors.txt deleted file mode 100644 index f3b46e0142..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.errors.txt +++ /dev/null @@ -1,38 +0,0 @@ -error TS5055: Cannot write file 'jsdocReadonlyDeclarations.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -jsdocReadonlyDeclarations.js(14,1): error TS2554: Expected 1 arguments, but got 0. - - -!!! error TS5055: Cannot write file 'jsdocReadonlyDeclarations.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== jsdocReadonlyDeclarations.js (1 errors) ==== - class C { - /** @readonly */ - x = 6 - /** @readonly */ - constructor(n) { - this.x = n - /** - * @readonly - * @type {number} - */ - this.y = n - } - } - new C().x - ~~~~~~~ -!!! error TS2554: Expected 1 arguments, but got 0. -!!! related TS6210 jsdocReadonlyDeclarations.js:5:17: An argument for 'n' was not provided. - - function F() { - /** @readonly */ - this.z = 1 - } - - // https://github.com/microsoft/TypeScript/issues/38401 - class D { - constructor(/** @readonly */ x) {} - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.symbols b/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.symbols deleted file mode 100644 index 076824d27e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.symbols +++ /dev/null @@ -1,51 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts] //// - -=== jsdocReadonlyDeclarations.js === -class C { ->C : Symbol(C, Decl(jsdocReadonlyDeclarations.js, 0, 0)) - - /** @readonly */ - x = 6 ->x : Symbol(C.x, Decl(jsdocReadonlyDeclarations.js, 0, 9)) - - /** @readonly */ - constructor(n) { ->n : Symbol(n, Decl(jsdocReadonlyDeclarations.js, 4, 16)) - - this.x = n ->this.x : Symbol(C.x, Decl(jsdocReadonlyDeclarations.js, 0, 9)) ->this : Symbol(C, Decl(jsdocReadonlyDeclarations.js, 0, 0)) ->x : Symbol(C.x, Decl(jsdocReadonlyDeclarations.js, 0, 9)) ->n : Symbol(n, Decl(jsdocReadonlyDeclarations.js, 4, 16)) - - /** - * @readonly - * @type {number} - */ - this.y = n ->this.y : Symbol(C.y, Decl(jsdocReadonlyDeclarations.js, 5, 18)) ->this : Symbol(C, Decl(jsdocReadonlyDeclarations.js, 0, 0)) ->y : Symbol(C.y, Decl(jsdocReadonlyDeclarations.js, 5, 18)) ->n : Symbol(n, Decl(jsdocReadonlyDeclarations.js, 4, 16)) - } -} -new C().x ->new C().x : Symbol(C.x, Decl(jsdocReadonlyDeclarations.js, 0, 9)) ->C : Symbol(C, Decl(jsdocReadonlyDeclarations.js, 0, 0)) ->x : Symbol(C.x, Decl(jsdocReadonlyDeclarations.js, 0, 9)) - -function F() { ->F : Symbol(F, Decl(jsdocReadonlyDeclarations.js, 13, 9)) - - /** @readonly */ - this.z = 1 -} - -// https://github.com/microsoft/TypeScript/issues/38401 -class D { ->D : Symbol(D, Decl(jsdocReadonlyDeclarations.js, 18, 1)) - - constructor(/** @readonly */ x) {} ->x : Symbol(x, Decl(jsdocReadonlyDeclarations.js, 22, 16)) -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.symbols.diff b/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.symbols.diff deleted file mode 100644 index f3e205fd69..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.symbols.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.jsdocReadonlyDeclarations.symbols -+++ new.jsdocReadonlyDeclarations.symbols -@@= skipped -38, +38 lines =@@ - - /** @readonly */ - this.z = 1 -->this.z : Symbol(F.z, Decl(jsdocReadonlyDeclarations.js, 15, 14)) -->this : Symbol(F, Decl(jsdocReadonlyDeclarations.js, 13, 9)) -->z : Symbol(F.z, Decl(jsdocReadonlyDeclarations.js, 15, 14)) - } - - // https://github.com/microsoft/TypeScript/issues/38401 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.types b/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.types deleted file mode 100644 index 1fd313cd37..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocReadonlyDeclarations.types +++ /dev/null @@ -1,60 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts] //// - -=== jsdocReadonlyDeclarations.js === -class C { ->C : C - - /** @readonly */ - x = 6 ->x : 6 ->6 : 6 - - /** @readonly */ - constructor(n) { ->n : any - - this.x = n ->this.x = n : any ->this.x : 6 ->this : this ->x : 6 ->n : any - - /** - * @readonly - * @type {number} - */ - this.y = n ->this.y = n : any ->this.y : number ->this : this ->y : number ->n : any - } -} -new C().x ->new C().x : 6 ->new C() : C ->C : typeof C ->x : 6 - -function F() { ->F : () => void - - /** @readonly */ - this.z = 1 ->this.z = 1 : 1 ->this.z : any ->this : any ->z : any ->1 : 1 -} - -// https://github.com/microsoft/TypeScript/issues/38401 -class D { ->D : D - - constructor(/** @readonly */ x) {} ->x : any -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.errors.txt b/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.errors.txt deleted file mode 100644 index d36700919c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -error TS5055: Cannot write file 'returns.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== returns.js (0 errors) ==== - /** - * @returns {string} This comment is not currently exposed - */ - function f() { - return 5; - } - - /** - * @returns {string=} This comment is not currently exposed - */ - function f1() { - return 5; - } - - /** - * @returns {string|number} This comment is not currently exposed - */ - function f2() { - return 5 || "hello"; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.symbols b/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.symbols deleted file mode 100644 index 9dd7020ad6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocReturnTag1.ts] //// - -=== returns.js === -/** - * @returns {string} This comment is not currently exposed - */ -function f() { ->f : Symbol(f, Decl(returns.js, 0, 0)) - - return 5; -} - -/** - * @returns {string=} This comment is not currently exposed - */ -function f1() { ->f1 : Symbol(f1, Decl(returns.js, 5, 1)) - - return 5; -} - -/** - * @returns {string|number} This comment is not currently exposed - */ -function f2() { ->f2 : Symbol(f2, Decl(returns.js, 12, 1)) - - return 5 || "hello"; -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.types b/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.types deleted file mode 100644 index e6c327cbb4..0000000000 --- a/testdata/baselines/reference/submodule/conformance/jsdocReturnTag1.types +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/jsdoc/jsdocReturnTag1.ts] //// - -=== returns.js === -/** - * @returns {string} This comment is not currently exposed - */ -function f() { ->f : () => string - - return 5; ->5 : 5 -} - -/** - * @returns {string=} This comment is not currently exposed - */ -function f1() { ->f1 : () => string - - return 5; ->5 : 5 -} - -/** - * @returns {string|number} This comment is not currently exposed - */ -function f2() { ->f2 : () => string | number - - return 5 || "hello"; ->5 || "hello" : "hello" | 5 ->5 : 5 ->"hello" : "hello" -} - diff --git a/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js b/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js index 36e2017dcd..0d710ca0b3 100644 --- a/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js +++ b/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js @@ -20,8 +20,41 @@ let x = a={10} b="hi" />; // error, no type arguments in js //// [file.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const component_1 = require("./component"); -const React = require("react"); +const React = __importStar(require("react")); let x = (, a={10} b="hi" />; // error, no type arguments in js ); diff --git a/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js.diff b/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js.diff index 3b0ae50253..a6d9f0a9b2 100644 --- a/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js.diff +++ b/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js.diff @@ -1,14 +1,14 @@ --- old.jsxCheckJsxNoTypeArgumentsAllowed.js +++ new.jsxCheckJsxNoTypeArgumentsAllowed.js -@@= skipped -20, +20 lines =@@ - //// [file.jsx] - "use strict"; +@@= skipped -53, +53 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); -var component_1 = require("./component"); --var React = require("react"); +-var React = __importStar(require("react")); -let x = , a={10} b="hi" />; // error, no type arguments in js -; +const component_1 = require("./component"); -+const React = require("react"); ++const React = __importStar(require("react")); +let x = (, a={10} b="hi" />; // error, no type arguments in js +); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.js b/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.js index cab937e479..e7577e743c 100644 --- a/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.js +++ b/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.js @@ -33,9 +33,42 @@ export interface Thing {} // not exported in export map, inaccessible under new //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; -const a = async () => (await Promise.resolve().then(() => require("inner"))).x(); +const a = async () => (await Promise.resolve().then(() => __importStar(require("inner")))).x(); exports.a = a; diff --git a/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.js.diff b/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.js.diff index c49f2d13e9..ae5d3a4f1b 100644 --- a/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.js.diff +++ b/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.js.diff @@ -1,9 +1,9 @@ --- old.legacyNodeModulesExportsSpecifierGenerationConditions.js +++ new.legacyNodeModulesExportsSpecifierGenerationConditions.js -@@= skipped -32, +32 lines =@@ - - //// [index.js] - "use strict"; +@@= skipped -65, +65 lines =@@ + return result; + }; + })(); -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) { @@ -15,8 +15,8 @@ -}; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; --const a = () => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(function () { return require("inner"); })).x(); }); -+const a = async () => (await Promise.resolve().then(() => require("inner"))).x(); +-const a = () => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(function () { return __importStar(require("inner")); })).x(); }); ++const a = async () => (await Promise.resolve().then(() => __importStar(require("inner")))).x(); exports.a = a; + + diff --git a/testdata/baselines/reference/submodule/conformance/methodsReturningThis.errors.txt b/testdata/baselines/reference/submodule/conformance/methodsReturningThis.errors.txt deleted file mode 100644 index 491cea734e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/methodsReturningThis.errors.txt +++ /dev/null @@ -1,28 +0,0 @@ -error TS5055: Cannot write file 'input.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'input.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== input.js (0 errors) ==== - function Class() - { - } - - // error: 'Class' doesn't have property 'notPresent' - Class.prototype.containsError = function () { return this.notPresent; }; - - // lots of methods that return this, which caused out-of-memory in #9527 - Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; }; - Class.prototype.m2 = function (x, y) { return this; }; - Class.prototype.m3 = function (x, y) { return this; }; - Class.prototype.m4 = function (angle) { return this; }; - Class.prototype.m5 = function (matrix) { return this; }; - Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; }; - Class.prototype.m7 = function(matrix) { return this; }; - Class.prototype.m8 = function() { return this; }; - Class.prototype.m9 = function () { return this; }; - - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/methodsReturningThis.symbols b/testdata/baselines/reference/submodule/conformance/methodsReturningThis.symbols deleted file mode 100644 index cc898b3de6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/methodsReturningThis.symbols +++ /dev/null @@ -1,83 +0,0 @@ -//// [tests/cases/conformance/salsa/methodsReturningThis.ts] //// - -=== input.js === -function Class() ->Class : Symbol(Class, Decl(input.js, 0, 0)) -{ -} - -// error: 'Class' doesn't have property 'notPresent' -Class.prototype.containsError = function () { return this.notPresent; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - -// lots of methods that return this, which caused out-of-memory in #9527 -Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->a : Symbol(a, Decl(input.js, 8, 31)) ->b : Symbol(b, Decl(input.js, 8, 33)) ->c : Symbol(c, Decl(input.js, 8, 36)) ->d : Symbol(d, Decl(input.js, 8, 39)) ->tx : Symbol(tx, Decl(input.js, 8, 42)) ->ty : Symbol(ty, Decl(input.js, 8, 46)) - -Class.prototype.m2 = function (x, y) { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->x : Symbol(x, Decl(input.js, 9, 31)) ->y : Symbol(y, Decl(input.js, 9, 33)) - -Class.prototype.m3 = function (x, y) { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->x : Symbol(x, Decl(input.js, 10, 31)) ->y : Symbol(y, Decl(input.js, 10, 33)) - -Class.prototype.m4 = function (angle) { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->angle : Symbol(angle, Decl(input.js, 11, 31)) - -Class.prototype.m5 = function (matrix) { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->matrix : Symbol(matrix, Decl(input.js, 12, 31)) - -Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->x : Symbol(x, Decl(input.js, 13, 31)) ->y : Symbol(y, Decl(input.js, 13, 33)) ->pivotX : Symbol(pivotX, Decl(input.js, 13, 36)) ->pivotY : Symbol(pivotY, Decl(input.js, 13, 44)) ->scaleX : Symbol(scaleX, Decl(input.js, 13, 52)) ->scaleY : Symbol(scaleY, Decl(input.js, 13, 60)) ->rotation : Symbol(rotation, Decl(input.js, 13, 68)) ->skewX : Symbol(skewX, Decl(input.js, 13, 78)) ->skewY : Symbol(skewY, Decl(input.js, 13, 85)) - -Class.prototype.m7 = function(matrix) { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->matrix : Symbol(matrix, Decl(input.js, 14, 30)) - -Class.prototype.m8 = function() { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - -Class.prototype.m9 = function () { return this; }; ->Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->Class : Symbol(Class, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - - diff --git a/testdata/baselines/reference/submodule/conformance/methodsReturningThis.symbols.diff b/testdata/baselines/reference/submodule/conformance/methodsReturningThis.symbols.diff deleted file mode 100644 index 15ba67e4bd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/methodsReturningThis.symbols.diff +++ /dev/null @@ -1,106 +0,0 @@ ---- old.methodsReturningThis.symbols -+++ new.methodsReturningThis.symbols -@@= skipped -7, +7 lines =@@ - - // error: 'Class' doesn't have property 'notPresent' - Class.prototype.containsError = function () { return this.notPresent; }; -->Class.prototype : Symbol(Class.containsError, Decl(input.js, 2, 1)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->containsError : Symbol(Class.containsError, Decl(input.js, 2, 1)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - // lots of methods that return this, which caused out-of-memory in #9527 - Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; }; -->Class.prototype : Symbol(Class.m1, Decl(input.js, 5, 72)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m1 : Symbol(Class.m1, Decl(input.js, 5, 72)) - >a : Symbol(a, Decl(input.js, 8, 31)) - >b : Symbol(b, Decl(input.js, 8, 33)) - >c : Symbol(c, Decl(input.js, 8, 36)) - >d : Symbol(d, Decl(input.js, 8, 39)) - >tx : Symbol(tx, Decl(input.js, 8, 42)) - >ty : Symbol(ty, Decl(input.js, 8, 46)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - Class.prototype.m2 = function (x, y) { return this; }; -->Class.prototype : Symbol(Class.m2, Decl(input.js, 8, 68)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m2 : Symbol(Class.m2, Decl(input.js, 8, 68)) - >x : Symbol(x, Decl(input.js, 9, 31)) - >y : Symbol(y, Decl(input.js, 9, 33)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - Class.prototype.m3 = function (x, y) { return this; }; -->Class.prototype : Symbol(Class.m3, Decl(input.js, 9, 54)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m3 : Symbol(Class.m3, Decl(input.js, 9, 54)) - >x : Symbol(x, Decl(input.js, 10, 31)) - >y : Symbol(y, Decl(input.js, 10, 33)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - Class.prototype.m4 = function (angle) { return this; }; -->Class.prototype : Symbol(Class.m4, Decl(input.js, 10, 54)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m4 : Symbol(Class.m4, Decl(input.js, 10, 54)) - >angle : Symbol(angle, Decl(input.js, 11, 31)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - Class.prototype.m5 = function (matrix) { return this; }; -->Class.prototype : Symbol(Class.m5, Decl(input.js, 11, 55)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m5 : Symbol(Class.m5, Decl(input.js, 11, 55)) - >matrix : Symbol(matrix, Decl(input.js, 12, 31)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; }; -->Class.prototype : Symbol(Class.m6, Decl(input.js, 12, 56)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m6 : Symbol(Class.m6, Decl(input.js, 12, 56)) - >x : Symbol(x, Decl(input.js, 13, 31)) - >y : Symbol(y, Decl(input.js, 13, 33)) - >pivotX : Symbol(pivotX, Decl(input.js, 13, 36)) -@@= skipped -68, +55 lines =@@ - >rotation : Symbol(rotation, Decl(input.js, 13, 68)) - >skewX : Symbol(skewX, Decl(input.js, 13, 78)) - >skewY : Symbol(skewY, Decl(input.js, 13, 85)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - Class.prototype.m7 = function(matrix) { return this; }; -->Class.prototype : Symbol(Class.m7, Decl(input.js, 13, 110)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m7 : Symbol(Class.m7, Decl(input.js, 13, 110)) - >matrix : Symbol(matrix, Decl(input.js, 14, 30)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - Class.prototype.m8 = function() { return this; }; -->Class.prototype : Symbol(Class.m8, Decl(input.js, 14, 55)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m8 : Symbol(Class.m8, Decl(input.js, 14, 55)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - - Class.prototype.m9 = function () { return this; }; -->Class.prototype : Symbol(Class.m9, Decl(input.js, 15, 49)) -+>Class.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >Class : Symbol(Class, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m9 : Symbol(Class.m9, Decl(input.js, 15, 49)) -->this : Symbol(Class, Decl(input.js, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/conformance/methodsReturningThis.types b/testdata/baselines/reference/submodule/conformance/methodsReturningThis.types deleted file mode 100644 index 7c519159c2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/methodsReturningThis.types +++ /dev/null @@ -1,135 +0,0 @@ -//// [tests/cases/conformance/salsa/methodsReturningThis.ts] //// - -=== input.js === -function Class() ->Class : () => void -{ -} - -// error: 'Class' doesn't have property 'notPresent' -Class.prototype.containsError = function () { return this.notPresent; }; ->Class.prototype.containsError = function () { return this.notPresent; } : () => any ->Class.prototype.containsError : any ->Class.prototype : any ->Class : () => void ->prototype : any ->containsError : any ->function () { return this.notPresent; } : () => any ->this.notPresent : any ->this : any ->notPresent : any - -// lots of methods that return this, which caused out-of-memory in #9527 -Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; }; ->Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; } : (a: any, b: any, c: any, d: any, tx: any, ty: any) => any ->Class.prototype.m1 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m1 : any ->function (a, b, c, d, tx, ty) { return this; } : (a: any, b: any, c: any, d: any, tx: any, ty: any) => any ->a : any ->b : any ->c : any ->d : any ->tx : any ->ty : any ->this : any - -Class.prototype.m2 = function (x, y) { return this; }; ->Class.prototype.m2 = function (x, y) { return this; } : (x: any, y: any) => any ->Class.prototype.m2 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m2 : any ->function (x, y) { return this; } : (x: any, y: any) => any ->x : any ->y : any ->this : any - -Class.prototype.m3 = function (x, y) { return this; }; ->Class.prototype.m3 = function (x, y) { return this; } : (x: any, y: any) => any ->Class.prototype.m3 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m3 : any ->function (x, y) { return this; } : (x: any, y: any) => any ->x : any ->y : any ->this : any - -Class.prototype.m4 = function (angle) { return this; }; ->Class.prototype.m4 = function (angle) { return this; } : (angle: any) => any ->Class.prototype.m4 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m4 : any ->function (angle) { return this; } : (angle: any) => any ->angle : any ->this : any - -Class.prototype.m5 = function (matrix) { return this; }; ->Class.prototype.m5 = function (matrix) { return this; } : (matrix: any) => any ->Class.prototype.m5 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m5 : any ->function (matrix) { return this; } : (matrix: any) => any ->matrix : any ->this : any - -Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; }; ->Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; } : (x: any, y: any, pivotX: any, pivotY: any, scaleX: any, scaleY: any, rotation: any, skewX: any, skewY: any) => any ->Class.prototype.m6 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m6 : any ->function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; } : (x: any, y: any, pivotX: any, pivotY: any, scaleX: any, scaleY: any, rotation: any, skewX: any, skewY: any) => any ->x : any ->y : any ->pivotX : any ->pivotY : any ->scaleX : any ->scaleY : any ->rotation : any ->skewX : any ->skewY : any ->this : any - -Class.prototype.m7 = function(matrix) { return this; }; ->Class.prototype.m7 = function(matrix) { return this; } : (matrix: any) => any ->Class.prototype.m7 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m7 : any ->function(matrix) { return this; } : (matrix: any) => any ->matrix : any ->this : any - -Class.prototype.m8 = function() { return this; }; ->Class.prototype.m8 = function() { return this; } : () => any ->Class.prototype.m8 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m8 : any ->function() { return this; } : () => any ->this : any - -Class.prototype.m9 = function () { return this; }; ->Class.prototype.m9 = function () { return this; } : () => any ->Class.prototype.m9 : any ->Class.prototype : any ->Class : () => void ->prototype : any ->m9 : any ->function () { return this; } : () => any ->this : any - - diff --git a/testdata/baselines/reference/submodule/conformance/multiline.js b/testdata/baselines/reference/submodule/conformance/multiline.js index 5bec1fa437..ca522bea33 100644 --- a/testdata/baselines/reference/submodule/conformance/multiline.js +++ b/testdata/baselines/reference/submodule/conformance/multiline.js @@ -69,9 +69,42 @@ exports.texts.push(100); exports.texts.push("100"); //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MyComponent = MyComponent; -const React = require("react"); +const React = __importStar(require("react")); function MyComponent(props) { return React.createElement("div", null); } diff --git a/testdata/baselines/reference/submodule/conformance/multiline.js.diff b/testdata/baselines/reference/submodule/conformance/multiline.js.diff index 602ecb8a61..6921fa037b 100644 --- a/testdata/baselines/reference/submodule/conformance/multiline.js.diff +++ b/testdata/baselines/reference/submodule/conformance/multiline.js.diff @@ -1,11 +1,11 @@ --- old.multiline.js +++ new.multiline.js -@@= skipped -70, +70 lines =@@ - "use strict"; +@@= skipped -103, +103 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MyComponent = MyComponent; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); function MyComponent(props) { return React.createElement("div", null); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/multipleDeclarations.errors.txt b/testdata/baselines/reference/submodule/conformance/multipleDeclarations.errors.txt deleted file mode 100644 index f34f1d6bf5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/multipleDeclarations.errors.txt +++ /dev/null @@ -1,44 +0,0 @@ -error TS5055: Cannot write file 'input.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'input.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== input.js (0 errors) ==== - function C() { - this.m = null; - } - C.prototype.m = function() { - this.nothing(); - } - class X { - constructor() { - this.m = this.m.bind(this); - this.mistake = 'frankly, complete nonsense'; - } - m() { - } - mistake() { - } - } - let x = new X(); - X.prototype.mistake = false; - x.m(); - x.mistake; - class Y { - mistake() { - } - m() { - } - constructor() { - this.m = this.m.bind(this); - this.mistake = 'even more nonsense'; - } - } - Y.prototype.mistake = true; - let y = new Y(); - y.m(); - y.mistake(); - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/multipleDeclarations.symbols b/testdata/baselines/reference/submodule/conformance/multipleDeclarations.symbols deleted file mode 100644 index 674b28fe89..0000000000 --- a/testdata/baselines/reference/submodule/conformance/multipleDeclarations.symbols +++ /dev/null @@ -1,111 +0,0 @@ -//// [tests/cases/conformance/salsa/multipleDeclarations.ts] //// - -=== input.js === -function C() { ->C : Symbol(C, Decl(input.js, 0, 0)) - - this.m = null; -} -C.prototype.m = function() { ->C.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) ->C : Symbol(C, Decl(input.js, 0, 0)) ->prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - - this.nothing(); -} -class X { ->X : Symbol(X, Decl(input.js, 5, 1)) - - constructor() { - this.m = this.m.bind(this); ->this.m : Symbol(X.m, Decl(input.js, 10, 5)) ->this : Symbol(X, Decl(input.js, 5, 1)) ->m : Symbol(X.m, Decl(input.js, 10, 5)) ->this.m.bind : Symbol(Function.bind, Decl(lib.es5.d.ts, --, --)) ->this.m : Symbol(X.m, Decl(input.js, 10, 5)) ->this : Symbol(X, Decl(input.js, 5, 1)) ->m : Symbol(X.m, Decl(input.js, 10, 5)) ->bind : Symbol(Function.bind, Decl(lib.es5.d.ts, --, --)) ->this : Symbol(X, Decl(input.js, 5, 1)) - - this.mistake = 'frankly, complete nonsense'; ->this.mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) ->this : Symbol(X, Decl(input.js, 5, 1)) ->mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - } - m() { ->m : Symbol(X.m, Decl(input.js, 10, 5)) - } - mistake() { ->mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - } -} -let x = new X(); ->x : Symbol(x, Decl(input.js, 16, 3)) ->X : Symbol(X, Decl(input.js, 5, 1)) - -X.prototype.mistake = false; ->X.prototype.mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) ->X.prototype : Symbol(X.prototype) ->X : Symbol(X, Decl(input.js, 5, 1)) ->prototype : Symbol(X.prototype) ->mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - -x.m(); ->x.m : Symbol(X.m, Decl(input.js, 10, 5)) ->x : Symbol(x, Decl(input.js, 16, 3)) ->m : Symbol(X.m, Decl(input.js, 10, 5)) - -x.mistake; ->x.mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) ->x : Symbol(x, Decl(input.js, 16, 3)) ->mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - -class Y { ->Y : Symbol(Y, Decl(input.js, 19, 10)) - - mistake() { ->mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - } - m() { ->m : Symbol(Y.m, Decl(input.js, 22, 5)) - } - constructor() { - this.m = this.m.bind(this); ->this.m : Symbol(Y.m, Decl(input.js, 22, 5)) ->this : Symbol(Y, Decl(input.js, 19, 10)) ->m : Symbol(Y.m, Decl(input.js, 22, 5)) ->this.m.bind : Symbol(Function.bind, Decl(lib.es5.d.ts, --, --)) ->this.m : Symbol(Y.m, Decl(input.js, 22, 5)) ->this : Symbol(Y, Decl(input.js, 19, 10)) ->m : Symbol(Y.m, Decl(input.js, 22, 5)) ->bind : Symbol(Function.bind, Decl(lib.es5.d.ts, --, --)) ->this : Symbol(Y, Decl(input.js, 19, 10)) - - this.mistake = 'even more nonsense'; ->this.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) ->this : Symbol(Y, Decl(input.js, 19, 10)) ->mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - } -} -Y.prototype.mistake = true; ->Y.prototype.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) ->Y.prototype : Symbol(Y.prototype) ->Y : Symbol(Y, Decl(input.js, 19, 10)) ->prototype : Symbol(Y.prototype) ->mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - -let y = new Y(); ->y : Symbol(y, Decl(input.js, 31, 3)) ->Y : Symbol(Y, Decl(input.js, 19, 10)) - -y.m(); ->y.m : Symbol(Y.m, Decl(input.js, 22, 5)) ->y : Symbol(y, Decl(input.js, 31, 3)) ->m : Symbol(Y.m, Decl(input.js, 22, 5)) - -y.mistake(); ->y.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) ->y : Symbol(y, Decl(input.js, 31, 3)) ->mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - diff --git a/testdata/baselines/reference/submodule/conformance/multipleDeclarations.symbols.diff b/testdata/baselines/reference/submodule/conformance/multipleDeclarations.symbols.diff deleted file mode 100644 index d2ac2c44d9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/multipleDeclarations.symbols.diff +++ /dev/null @@ -1,116 +0,0 @@ ---- old.multipleDeclarations.symbols -+++ new.multipleDeclarations.symbols -@@= skipped -4, +4 lines =@@ - >C : Symbol(C, Decl(input.js, 0, 0)) - - this.m = null; -->this.m : Symbol(C.m, Decl(input.js, 0, 14)) -->this : Symbol(C, Decl(input.js, 0, 0)) -->m : Symbol(C.m, Decl(input.js, 0, 14)) - } - C.prototype.m = function() { -->C.prototype : Symbol(C.m, Decl(input.js, 2, 1)) -+>C.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) - >C : Symbol(C, Decl(input.js, 0, 0)) - >prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) -->m : Symbol(C.m, Decl(input.js, 2, 1)) - - this.nothing(); -->this : Symbol(C, Decl(input.js, 0, 0)) - } - class X { - >X : Symbol(X, Decl(input.js, 5, 1)) -@@= skipped -20, +15 lines =@@ - this.m = this.m.bind(this); - >this.m : Symbol(X.m, Decl(input.js, 10, 5)) - >this : Symbol(X, Decl(input.js, 5, 1)) -->m : Symbol(X.m, Decl(input.js, 7, 19)) -+>m : Symbol(X.m, Decl(input.js, 10, 5)) - >this.m.bind : Symbol(Function.bind, Decl(lib.es5.d.ts, --, --)) - >this.m : Symbol(X.m, Decl(input.js, 10, 5)) - >this : Symbol(X, Decl(input.js, 5, 1)) -@@= skipped -9, +9 lines =@@ - >this : Symbol(X, Decl(input.js, 5, 1)) - - this.mistake = 'frankly, complete nonsense'; -->this.mistake : Symbol(X.mistake, Decl(input.js, 12, 5), Decl(input.js, 16, 16)) -+>this.mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - >this : Symbol(X, Decl(input.js, 5, 1)) -->mistake : Symbol(X.mistake, Decl(input.js, 8, 35)) -+>mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - } - m() { - >m : Symbol(X.m, Decl(input.js, 10, 5)) - } - mistake() { -->mistake : Symbol(X.mistake, Decl(input.js, 12, 5), Decl(input.js, 16, 16)) -+>mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - } - } - let x = new X(); -@@= skipped -16, +16 lines =@@ - >X : Symbol(X, Decl(input.js, 5, 1)) - - X.prototype.mistake = false; -->X.prototype.mistake : Symbol(X.mistake, Decl(input.js, 12, 5), Decl(input.js, 16, 16)) -->X.prototype : Symbol(X.mistake, Decl(input.js, 12, 5), Decl(input.js, 16, 16)) -+>X.prototype.mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) -+>X.prototype : Symbol(X.prototype) - >X : Symbol(X, Decl(input.js, 5, 1)) - >prototype : Symbol(X.prototype) -->mistake : Symbol(X.mistake, Decl(input.js, 12, 5), Decl(input.js, 16, 16)) -+>mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - - x.m(); - >x.m : Symbol(X.m, Decl(input.js, 10, 5)) -@@= skipped -12, +12 lines =@@ - >m : Symbol(X.m, Decl(input.js, 10, 5)) - - x.mistake; -->x.mistake : Symbol(X.mistake, Decl(input.js, 12, 5), Decl(input.js, 16, 16)) -+>x.mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - >x : Symbol(x, Decl(input.js, 16, 3)) -->mistake : Symbol(X.mistake, Decl(input.js, 12, 5), Decl(input.js, 16, 16)) -+>mistake : Symbol(X.mistake, Decl(input.js, 12, 5)) - - class Y { - >Y : Symbol(Y, Decl(input.js, 19, 10)) - - mistake() { -->mistake : Symbol(Y.mistake, Decl(input.js, 20, 9), Decl(input.js, 29, 1)) -+>mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - } - m() { - >m : Symbol(Y.m, Decl(input.js, 22, 5)) -@@= skipped -26, +26 lines =@@ - >this : Symbol(Y, Decl(input.js, 19, 10)) - - this.mistake = 'even more nonsense'; -->this.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9), Decl(input.js, 29, 1)) -+>this.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - >this : Symbol(Y, Decl(input.js, 19, 10)) -->mistake : Symbol(Y.mistake, Decl(input.js, 20, 9), Decl(input.js, 29, 1)) -+>mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - } - } - Y.prototype.mistake = true; -->Y.prototype.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9), Decl(input.js, 29, 1)) -->Y.prototype : Symbol(Y.mistake, Decl(input.js, 20, 9), Decl(input.js, 29, 1)) -+>Y.prototype.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) -+>Y.prototype : Symbol(Y.prototype) - >Y : Symbol(Y, Decl(input.js, 19, 10)) - >prototype : Symbol(Y.prototype) -->mistake : Symbol(Y.mistake, Decl(input.js, 20, 9), Decl(input.js, 29, 1)) -+>mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - - let y = new Y(); - >y : Symbol(y, Decl(input.js, 31, 3)) -@@= skipped -22, +22 lines =@@ - >m : Symbol(Y.m, Decl(input.js, 22, 5)) - - y.mistake(); -->y.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9), Decl(input.js, 29, 1)) -+>y.mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) - >y : Symbol(y, Decl(input.js, 31, 3)) -->mistake : Symbol(Y.mistake, Decl(input.js, 20, 9), Decl(input.js, 29, 1)) -+>mistake : Symbol(Y.mistake, Decl(input.js, 20, 9)) diff --git a/testdata/baselines/reference/submodule/conformance/multipleDeclarations.types b/testdata/baselines/reference/submodule/conformance/multipleDeclarations.types deleted file mode 100644 index 5451a4dac4..0000000000 --- a/testdata/baselines/reference/submodule/conformance/multipleDeclarations.types +++ /dev/null @@ -1,140 +0,0 @@ -//// [tests/cases/conformance/salsa/multipleDeclarations.ts] //// - -=== input.js === -function C() { ->C : () => void - - this.m = null; ->this.m = null : null ->this.m : any ->this : any ->m : any -} -C.prototype.m = function() { ->C.prototype.m = function() { this.nothing();} : () => void ->C.prototype.m : any ->C.prototype : any ->C : () => void ->prototype : any ->m : any ->function() { this.nothing();} : () => void - - this.nothing(); ->this.nothing() : any ->this.nothing : any ->this : any ->nothing : any -} -class X { ->X : X - - constructor() { - this.m = this.m.bind(this); ->this.m = this.m.bind(this) : any ->this.m : () => void ->this : this ->m : () => void ->this.m.bind(this) : any ->this.m.bind : (this: Function, thisArg: any, ...argArray: any[]) => any ->this.m : () => void ->this : this ->m : () => void ->bind : (this: Function, thisArg: any, ...argArray: any[]) => any ->this : this - - this.mistake = 'frankly, complete nonsense'; ->this.mistake = 'frankly, complete nonsense' : "frankly, complete nonsense" ->this.mistake : () => void ->this : this ->mistake : () => void ->'frankly, complete nonsense' : "frankly, complete nonsense" - } - m() { ->m : () => void - } - mistake() { ->mistake : () => void - } -} -let x = new X(); ->x : X ->new X() : X ->X : typeof X - -X.prototype.mistake = false; ->X.prototype.mistake = false : false ->X.prototype.mistake : () => void ->X.prototype : X ->X : typeof X ->prototype : X ->mistake : () => void ->false : false - -x.m(); ->x.m() : void ->x.m : () => void ->x : X ->m : () => void - -x.mistake; ->x.mistake : () => void ->x : X ->mistake : () => void - -class Y { ->Y : Y - - mistake() { ->mistake : () => void - } - m() { ->m : () => void - } - constructor() { - this.m = this.m.bind(this); ->this.m = this.m.bind(this) : any ->this.m : () => void ->this : this ->m : () => void ->this.m.bind(this) : any ->this.m.bind : (this: Function, thisArg: any, ...argArray: any[]) => any ->this.m : () => void ->this : this ->m : () => void ->bind : (this: Function, thisArg: any, ...argArray: any[]) => any ->this : this - - this.mistake = 'even more nonsense'; ->this.mistake = 'even more nonsense' : "even more nonsense" ->this.mistake : () => void ->this : this ->mistake : () => void ->'even more nonsense' : "even more nonsense" - } -} -Y.prototype.mistake = true; ->Y.prototype.mistake = true : true ->Y.prototype.mistake : () => void ->Y.prototype : Y ->Y : typeof Y ->prototype : Y ->mistake : () => void ->true : true - -let y = new Y(); ->y : Y ->new Y() : Y ->Y : typeof Y - -y.m(); ->y.m() : void ->y.m : () => void ->y : Y ->m : () => void - -y.mistake(); ->y.mistake() : void ->y.mistake : () => void ->y : Y ->mistake : () => void - diff --git a/testdata/baselines/reference/submodule/conformance/multipleDefaultExports01.js b/testdata/baselines/reference/submodule/conformance/multipleDefaultExports01.js index 80fde4da82..f05e251cd5 100644 --- a/testdata/baselines/reference/submodule/conformance/multipleDefaultExports01.js +++ b/testdata/baselines/reference/submodule/conformance/multipleDefaultExports01.js @@ -30,6 +30,9 @@ var x = 10; exports.default = x; //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("./m1"); +const m1_1 = __importDefault(require("./m1")); (0, m1_1.default)(); diff --git a/testdata/baselines/reference/submodule/conformance/multipleDefaultExports01.js.diff b/testdata/baselines/reference/submodule/conformance/multipleDefaultExports01.js.diff index 31fdb9d2f3..d94be71d34 100644 --- a/testdata/baselines/reference/submodule/conformance/multipleDefaultExports01.js.diff +++ b/testdata/baselines/reference/submodule/conformance/multipleDefaultExports01.js.diff @@ -1,9 +1,9 @@ --- old.multipleDefaultExports01.js +++ new.multipleDefaultExports01.js -@@= skipped -30, +30 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -33, +33 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("./m1"); -+const m1_1 = require("./m1"); +-var m1_1 = __importDefault(require("./m1")); ++const m1_1 = __importDefault(require("./m1")); (0, m1_1.default)(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/multipleDefaultExports02.js b/testdata/baselines/reference/submodule/conformance/multipleDefaultExports02.js index 6cf30b6345..c4869009b6 100644 --- a/testdata/baselines/reference/submodule/conformance/multipleDefaultExports02.js +++ b/testdata/baselines/reference/submodule/conformance/multipleDefaultExports02.js @@ -25,6 +25,9 @@ function bar() { } //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("./m1"); +const m1_1 = __importDefault(require("./m1")); (0, m1_1.default)(); diff --git a/testdata/baselines/reference/submodule/conformance/multipleDefaultExports02.js.diff b/testdata/baselines/reference/submodule/conformance/multipleDefaultExports02.js.diff index a75658c50d..a98e3fd0b3 100644 --- a/testdata/baselines/reference/submodule/conformance/multipleDefaultExports02.js.diff +++ b/testdata/baselines/reference/submodule/conformance/multipleDefaultExports02.js.diff @@ -1,9 +1,9 @@ --- old.multipleDefaultExports02.js +++ new.multipleDefaultExports02.js -@@= skipped -25, +25 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -28, +28 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("./m1"); -+const m1_1 = require("./m1"); +-var m1_1 = __importDefault(require("./m1")); ++const m1_1 = __importDefault(require("./m1")); (0, m1_1.default)(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/namespaceMemberAccess.js b/testdata/baselines/reference/submodule/conformance/namespaceMemberAccess.js index 92c22fbc7f..86c356578a 100644 --- a/testdata/baselines/reference/submodule/conformance/namespaceMemberAccess.js +++ b/testdata/baselines/reference/submodule/conformance/namespaceMemberAccess.js @@ -17,7 +17,40 @@ class A { } //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const types = require("./a"); +const types = __importStar(require("./a")); types.A; const { A } = types; diff --git a/testdata/baselines/reference/submodule/conformance/namespaceMemberAccess.js.diff b/testdata/baselines/reference/submodule/conformance/namespaceMemberAccess.js.diff index ed530ab720..6e18419986 100644 --- a/testdata/baselines/reference/submodule/conformance/namespaceMemberAccess.js.diff +++ b/testdata/baselines/reference/submodule/conformance/namespaceMemberAccess.js.diff @@ -8,8 +8,11 @@ } //// [b.js] "use strict"; +@@= skipped -37, +38 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var types = require("./a"); -+const types = require("./a"); +-var types = __importStar(require("./a")); ++const types = __importStar(require("./a")); types.A; const { A } = types; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.errors.txt b/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.errors.txt deleted file mode 100644 index b16c7108d3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.errors.txt +++ /dev/null @@ -1,20 +0,0 @@ -/index.ts(1,10): error TS2305: Module '"pkg"' has no exported member 'pkg'. - - -==== /node_modules/pkg/package.json (0 errors) ==== - { - "name": "pkg", - "version": "1.0.0", - "exports": { - ".": "./definitely-not-index.js" - } - } - -==== /node_modules/pkg/definitely-not-index.d.ts (0 errors) ==== - export {}; - -==== /index.ts (1 errors) ==== - import { pkg } from "pkg"; - ~~~ -!!! error TS2305: Module '"pkg"' has no exported member 'pkg'. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json b/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json deleted file mode 100644 index af2c3d7476..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json +++ /dev/null @@ -1,15 +0,0 @@ -======== Resolving module 'pkg' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. -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. -Found 'package.json' at '/node_modules/pkg/package.json'. -Using 'exports' subpath '.' with target './definitely-not-index.js'. -File name '/node_modules/pkg/definitely-not-index.js' has a '.js' extension - stripping it. -File '/node_modules/pkg/definitely-not-index.ts' does not exist. -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. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/node_modules/pkg/definitely-not-index.d.ts', result '/node_modules/pkg/definitely-not-index.d.ts'. -======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/definitely-not-index.d.ts' with Package ID 'pkg/definitely-not-index.d.ts@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.errors.txt b/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.errors.txt deleted file mode 100644 index c576a45745..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -/index.ts(1,10): error TS2305: Module '"pkg"' has no exported member 'pkg'. - - -==== /node_modules/pkg/package.json (0 errors) ==== - { - "name": "pkg", - "version": "1.0.0", - "main": "./untyped.js", - "exports": { - ".": "./definitely-not-index.js" - } - } - -==== /node_modules/pkg/untyped.js (0 errors) ==== - export {}; - -==== /node_modules/pkg/definitely-not-index.d.ts (0 errors) ==== - export {}; - -==== /index.ts (1 errors) ==== - import { pkg } from "pkg"; - ~~~ -!!! error TS2305: Module '"pkg"' has no exported member 'pkg'. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json b/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json deleted file mode 100644 index af2c3d7476..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json +++ /dev/null @@ -1,15 +0,0 @@ -======== Resolving module 'pkg' from '/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. -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. -Found 'package.json' at '/node_modules/pkg/package.json'. -Using 'exports' subpath '.' with target './definitely-not-index.js'. -File name '/node_modules/pkg/definitely-not-index.js' has a '.js' extension - stripping it. -File '/node_modules/pkg/definitely-not-index.ts' does not exist. -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. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/node_modules/pkg/definitely-not-index.d.ts', result '/node_modules/pkg/definitely-not-index.d.ts'. -======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/definitely-not-index.d.ts' with Package ID 'pkg/definitely-not-index.d.ts@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.errors.txt.diff deleted file mode 100644 index 2dd569a21b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.node10IsNode_node.errors.txt -+++ new.node10IsNode_node.errors.txt -@@= skipped -0, +0 lines =@@ --error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. --==== /node_modules/fancy-lib/package.json (0 errors) ==== -- { -- "name": "fancy-lib", -- "version": "1.0.0", -- "main": "index.js", -- "exports": { -- ".": "./definitely-not-index.js" -- } -- } -- --==== /node_modules/fancy-lib/index.d.ts (0 errors) ==== -- export declare const fancy: "feast"; -- --==== /node_modules/fancy-lib/definitely-not-index.d.ts (0 errors) ==== -- export declare const fancy: "ketchup"; -- --==== /main.ts (0 errors) ==== -- import { fancy } from "fancy-lib"; -- fancy; -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.symbols b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.symbols deleted file mode 100644 index 11e2b7eff6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/node10IsNode_node.ts] //// - -=== /node_modules/fancy-lib/index.d.ts === -export declare const fancy: "feast"; ->fancy : Symbol(fancy, Decl(index.d.ts, 0, 20)) - -=== /node_modules/fancy-lib/definitely-not-index.d.ts === -export declare const fancy: "ketchup"; ->fancy : Symbol(fancy, Decl(definitely-not-index.d.ts, 0, 20)) - -=== /main.ts === -import { fancy } from "fancy-lib"; ->fancy : Symbol(fancy, Decl(main.ts, 0, 8)) - -fancy; ->fancy : Symbol(fancy, Decl(main.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json deleted file mode 100644 index 9b2d7aeefb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json +++ /dev/null @@ -1,15 +0,0 @@ -======== Resolving module 'fancy-lib' from '/main.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. -Loading module 'fancy-lib' 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/fancy-lib/package.json'. -Using 'exports' subpath '.' with target './definitely-not-index.js'. -File name '/node_modules/fancy-lib/definitely-not-index.js' has a '.js' extension - stripping it. -File '/node_modules/fancy-lib/definitely-not-index.ts' does not exist. -File '/node_modules/fancy-lib/definitely-not-index.tsx' does not exist. -File '/node_modules/fancy-lib/definitely-not-index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/node_modules/fancy-lib/definitely-not-index.d.ts', result '/node_modules/fancy-lib/definitely-not-index.d.ts'. -======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/definitely-not-index.d.ts' with Package ID 'fancy-lib/definitely-not-index.d.ts@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.types b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.types deleted file mode 100644 index 08e43cff90..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.types +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/node10IsNode_node.ts] //// - -=== /node_modules/fancy-lib/index.d.ts === -export declare const fancy: "feast"; ->fancy : "feast" - -=== /node_modules/fancy-lib/definitely-not-index.d.ts === -export declare const fancy: "ketchup"; ->fancy : "ketchup" - -=== /main.ts === -import { fancy } from "fancy-lib"; ->fancy : "ketchup" - -fancy; ->fancy : "ketchup" - diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.types.diff b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.types.diff deleted file mode 100644 index 7f9b8f4af3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.types.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.node10IsNode_node.types -+++ new.node10IsNode_node.types -@@= skipped -9, +9 lines =@@ - - === /main.ts === - import { fancy } from "fancy-lib"; -->fancy : "feast" -+>fancy : "ketchup" - - fancy; -->fancy : "feast" -+>fancy : "ketchup" diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonExportsOptionsCompat.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/packageJsonExportsOptionsCompat.errors.txt.diff deleted file mode 100644 index 9f056c81a9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/packageJsonExportsOptionsCompat.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.packageJsonExportsOptionsCompat.errors.txt -+++ new.packageJsonExportsOptionsCompat.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(4,5): error TS5098: Option 'customConditions' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --/tsconfig.json(5,5): error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --/tsconfig.json(6,5): error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. -- -- --==== /tsconfig.json (3 errors) ==== -- { -- "compilerOptions": { -- "moduleResolution": "classic", -- "customConditions": ["webpack", "browser"], -- ~~~~~~~~~~~~~~~~~~ --!!! error TS5098: Option 'customConditions' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. -- "resolvePackageJsonExports": true, -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~ --!!! error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. -- "resolvePackageJsonImports": true, -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~ --!!! error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. -- "noEmit": true -- } -- } -- --==== /index.ts (0 errors) ==== -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt.diff deleted file mode 100644 index 0322ca7a34..0000000000 --- a/testdata/baselines/reference/submodule/conformance/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt -+++ new.packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt -@@= skipped -0, +0 lines =@@ --error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. -- -- --!!! error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --!!! error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --==== index.ts (0 errors) ==== -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt.diff deleted file mode 100644 index 627302df32..0000000000 --- a/testdata/baselines/reference/submodule/conformance/packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt -+++ new.packageJsonImportsExportsOptionCompat(moduleresolution=node).errors.txt -@@= skipped -0, +0 lines =@@ --error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --!!! error TS5098: Option 'resolvePackageJsonExports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --!!! error TS5098: Option 'resolvePackageJsonImports' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. --==== index.ts (0 errors) ==== -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.errors.txt.diff index 98a406b1e1..df4f459d08 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.errors.txt.diff +++ b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.errors.txt.diff @@ -16,7 +16,7 @@ -!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldGet' with 4 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. - } - --==== tslib.d.ts (0 errors) ==== +-==== node_modules/tslib/index.d.ts (0 errors) ==== - // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields - export declare function __classPrivateFieldGet(receiver: T, state: any): V; - export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; diff --git a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js index 9dc03d8f06..5c2c0e3d46 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js +++ b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js @@ -7,7 +7,7 @@ export class C { set #c(v: number) { this.#a += v; } } -//// [tslib.d.ts] +//// [index.d.ts] // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields export declare function __classPrivateFieldGet(receiver: T, state: any): V; export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; diff --git a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.symbols b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.symbols index e854a4e3aa..b13f751203 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.symbols +++ b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.symbols @@ -20,25 +20,25 @@ export class C { >v : Symbol(v, Decl(main.ts, 3, 11)) } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields export declare function __classPrivateFieldGet(receiver: T, state: any): V; ->__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(tslib.d.ts, 0, 0)) ->T : Symbol(T, Decl(tslib.d.ts, 1, 47)) ->V : Symbol(V, Decl(tslib.d.ts, 1, 64)) ->receiver : Symbol(receiver, Decl(tslib.d.ts, 1, 68)) ->T : Symbol(T, Decl(tslib.d.ts, 1, 47)) ->state : Symbol(state, Decl(tslib.d.ts, 1, 80)) ->V : Symbol(V, Decl(tslib.d.ts, 1, 64)) +>__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(index.d.ts, 0, 0)) +>T : Symbol(T, Decl(index.d.ts, 1, 47)) +>V : Symbol(V, Decl(index.d.ts, 1, 64)) +>receiver : Symbol(receiver, Decl(index.d.ts, 1, 68)) +>T : Symbol(T, Decl(index.d.ts, 1, 47)) +>state : Symbol(state, Decl(index.d.ts, 1, 80)) +>V : Symbol(V, Decl(index.d.ts, 1, 64)) export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; ->__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(tslib.d.ts, 1, 96)) ->T : Symbol(T, Decl(tslib.d.ts, 2, 47)) ->V : Symbol(V, Decl(tslib.d.ts, 2, 64)) ->receiver : Symbol(receiver, Decl(tslib.d.ts, 2, 68)) ->T : Symbol(T, Decl(tslib.d.ts, 2, 47)) ->state : Symbol(state, Decl(tslib.d.ts, 2, 80)) ->value : Symbol(value, Decl(tslib.d.ts, 2, 92)) ->V : Symbol(V, Decl(tslib.d.ts, 2, 64)) ->V : Symbol(V, Decl(tslib.d.ts, 2, 64)) +>__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(index.d.ts, 1, 96)) +>T : Symbol(T, Decl(index.d.ts, 2, 47)) +>V : Symbol(V, Decl(index.d.ts, 2, 64)) +>receiver : Symbol(receiver, Decl(index.d.ts, 2, 68)) +>T : Symbol(T, Decl(index.d.ts, 2, 47)) +>state : Symbol(state, Decl(index.d.ts, 2, 80)) +>value : Symbol(value, Decl(index.d.ts, 2, 92)) +>V : Symbol(V, Decl(index.d.ts, 2, 64)) +>V : Symbol(V, Decl(index.d.ts, 2, 64)) diff --git a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.symbols.diff b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.symbols.diff deleted file mode 100644 index 129bf9928b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.symbols.diff +++ /dev/null @@ -1,40 +0,0 @@ ---- old.privateNameEmitHelpers.symbols -+++ new.privateNameEmitHelpers.symbols -@@= skipped -22, +22 lines =@@ - === tslib.d.ts === - // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields - export declare function __classPrivateFieldGet(receiver: T, state: any): V; -->__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(tslib.d.ts, --, --)) -->T : Symbol(T, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -->receiver : Symbol(receiver, Decl(tslib.d.ts, --, --)) -->T : Symbol(T, Decl(tslib.d.ts, --, --)) -->state : Symbol(state, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -+>__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(tslib.d.ts, 0, 0)) -+>T : Symbol(T, Decl(tslib.d.ts, 1, 47)) -+>V : Symbol(V, Decl(tslib.d.ts, 1, 64)) -+>receiver : Symbol(receiver, Decl(tslib.d.ts, 1, 68)) -+>T : Symbol(T, Decl(tslib.d.ts, 1, 47)) -+>state : Symbol(state, Decl(tslib.d.ts, 1, 80)) -+>V : Symbol(V, Decl(tslib.d.ts, 1, 64)) - - export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; -->__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(tslib.d.ts, --, --)) -->T : Symbol(T, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -->receiver : Symbol(receiver, Decl(tslib.d.ts, --, --)) -->T : Symbol(T, Decl(tslib.d.ts, --, --)) -->state : Symbol(state, Decl(tslib.d.ts, --, --)) -->value : Symbol(value, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -+>__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(tslib.d.ts, 1, 96)) -+>T : Symbol(T, Decl(tslib.d.ts, 2, 47)) -+>V : Symbol(V, Decl(tslib.d.ts, 2, 64)) -+>receiver : Symbol(receiver, Decl(tslib.d.ts, 2, 68)) -+>T : Symbol(T, Decl(tslib.d.ts, 2, 47)) -+>state : Symbol(state, Decl(tslib.d.ts, 2, 80)) -+>value : Symbol(value, Decl(tslib.d.ts, 2, 92)) -+>V : Symbol(V, Decl(tslib.d.ts, 2, 64)) -+>V : Symbol(V, Decl(tslib.d.ts, 2, 64)) diff --git a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.types b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.types index 410bc6e162..0baa8e8d2d 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.types +++ b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.types @@ -24,7 +24,7 @@ export class C { >v : number } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields export declare function __classPrivateFieldGet(receiver: T, state: any): V; >__classPrivateFieldGet : (receiver: T, state: any) => V diff --git a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.errors.txt.diff index abbe80866c..bdb7eaecbc 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.errors.txt.diff +++ b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.errors.txt.diff @@ -16,7 +16,7 @@ -!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldGet' with 4 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. - } - --==== tslib.d.ts (0 errors) ==== +-==== node_modules/tslib/index.d.ts (0 errors) ==== - // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields - export declare function __classPrivateFieldGet(receiver: T, state: any): V; - export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; diff --git a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.js b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.js index 4ede9aa8b5..1eaf306686 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.js +++ b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.js @@ -7,7 +7,7 @@ export class S { static get #c() { return S.#b(); } } -//// [tslib.d.ts] +//// [index.d.ts] // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields export declare function __classPrivateFieldGet(receiver: T, state: any): V; export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; diff --git a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.symbols b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.symbols index 6ccb4740e4..681c0bd0ef 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.symbols +++ b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.symbols @@ -18,25 +18,25 @@ export class S { >S : Symbol(S, Decl(main.ts, 0, 0)) } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields export declare function __classPrivateFieldGet(receiver: T, state: any): V; ->__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(tslib.d.ts, 0, 0)) ->T : Symbol(T, Decl(tslib.d.ts, 1, 47)) ->V : Symbol(V, Decl(tslib.d.ts, 1, 64)) ->receiver : Symbol(receiver, Decl(tslib.d.ts, 1, 68)) ->T : Symbol(T, Decl(tslib.d.ts, 1, 47)) ->state : Symbol(state, Decl(tslib.d.ts, 1, 80)) ->V : Symbol(V, Decl(tslib.d.ts, 1, 64)) +>__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(index.d.ts, 0, 0)) +>T : Symbol(T, Decl(index.d.ts, 1, 47)) +>V : Symbol(V, Decl(index.d.ts, 1, 64)) +>receiver : Symbol(receiver, Decl(index.d.ts, 1, 68)) +>T : Symbol(T, Decl(index.d.ts, 1, 47)) +>state : Symbol(state, Decl(index.d.ts, 1, 80)) +>V : Symbol(V, Decl(index.d.ts, 1, 64)) export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; ->__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(tslib.d.ts, 1, 96)) ->T : Symbol(T, Decl(tslib.d.ts, 2, 47)) ->V : Symbol(V, Decl(tslib.d.ts, 2, 64)) ->receiver : Symbol(receiver, Decl(tslib.d.ts, 2, 68)) ->T : Symbol(T, Decl(tslib.d.ts, 2, 47)) ->state : Symbol(state, Decl(tslib.d.ts, 2, 80)) ->value : Symbol(value, Decl(tslib.d.ts, 2, 92)) ->V : Symbol(V, Decl(tslib.d.ts, 2, 64)) ->V : Symbol(V, Decl(tslib.d.ts, 2, 64)) +>__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(index.d.ts, 1, 96)) +>T : Symbol(T, Decl(index.d.ts, 2, 47)) +>V : Symbol(V, Decl(index.d.ts, 2, 64)) +>receiver : Symbol(receiver, Decl(index.d.ts, 2, 68)) +>T : Symbol(T, Decl(index.d.ts, 2, 47)) +>state : Symbol(state, Decl(index.d.ts, 2, 80)) +>value : Symbol(value, Decl(index.d.ts, 2, 92)) +>V : Symbol(V, Decl(index.d.ts, 2, 64)) +>V : Symbol(V, Decl(index.d.ts, 2, 64)) diff --git a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.symbols.diff b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.symbols.diff deleted file mode 100644 index 348d76f59f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.symbols.diff +++ /dev/null @@ -1,40 +0,0 @@ ---- old.privateNameStaticEmitHelpers.symbols -+++ new.privateNameStaticEmitHelpers.symbols -@@= skipped -20, +20 lines =@@ - === tslib.d.ts === - // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields - export declare function __classPrivateFieldGet(receiver: T, state: any): V; -->__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(tslib.d.ts, --, --)) -->T : Symbol(T, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -->receiver : Symbol(receiver, Decl(tslib.d.ts, --, --)) -->T : Symbol(T, Decl(tslib.d.ts, --, --)) -->state : Symbol(state, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -+>__classPrivateFieldGet : Symbol(__classPrivateFieldGet, Decl(tslib.d.ts, 0, 0)) -+>T : Symbol(T, Decl(tslib.d.ts, 1, 47)) -+>V : Symbol(V, Decl(tslib.d.ts, 1, 64)) -+>receiver : Symbol(receiver, Decl(tslib.d.ts, 1, 68)) -+>T : Symbol(T, Decl(tslib.d.ts, 1, 47)) -+>state : Symbol(state, Decl(tslib.d.ts, 1, 80)) -+>V : Symbol(V, Decl(tslib.d.ts, 1, 64)) - - export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; -->__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(tslib.d.ts, --, --)) -->T : Symbol(T, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -->receiver : Symbol(receiver, Decl(tslib.d.ts, --, --)) -->T : Symbol(T, Decl(tslib.d.ts, --, --)) -->state : Symbol(state, Decl(tslib.d.ts, --, --)) -->value : Symbol(value, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -->V : Symbol(V, Decl(tslib.d.ts, --, --)) -+>__classPrivateFieldSet : Symbol(__classPrivateFieldSet, Decl(tslib.d.ts, 1, 96)) -+>T : Symbol(T, Decl(tslib.d.ts, 2, 47)) -+>V : Symbol(V, Decl(tslib.d.ts, 2, 64)) -+>receiver : Symbol(receiver, Decl(tslib.d.ts, 2, 68)) -+>T : Symbol(T, Decl(tslib.d.ts, 2, 47)) -+>state : Symbol(state, Decl(tslib.d.ts, 2, 80)) -+>value : Symbol(value, Decl(tslib.d.ts, 2, 92)) -+>V : Symbol(V, Decl(tslib.d.ts, 2, 64)) -+>V : Symbol(V, Decl(tslib.d.ts, 2, 64)) diff --git a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.types b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.types index ab26c905f1..3e63d2c151 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.types +++ b/testdata/baselines/reference/submodule/conformance/privateNameStaticEmitHelpers.types @@ -22,7 +22,7 @@ export class S { >S : typeof S } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields export declare function __classPrivateFieldGet(receiver: T, state: any): V; >__classPrivateFieldGet : (receiver: T, state: any) => V diff --git a/testdata/baselines/reference/submodule/conformance/reExportDefaultExport.js b/testdata/baselines/reference/submodule/conformance/reExportDefaultExport.js index 0c216872ad..ee1e11e0e4 100644 --- a/testdata/baselines/reference/submodule/conformance/reExportDefaultExport.js +++ b/testdata/baselines/reference/submodule/conformance/reExportDefaultExport.js @@ -22,8 +22,11 @@ function f() { } //// [m2.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const m1_1 = require("./m1"); +const m1_1 = __importDefault(require("./m1")); const m1_2 = require("./m1"); (0, m1_2.f)(); (0, m1_1.default)(); diff --git a/testdata/baselines/reference/submodule/conformance/reExportDefaultExport.js.diff b/testdata/baselines/reference/submodule/conformance/reExportDefaultExport.js.diff index 508f9f7b91..529ec3c813 100644 --- a/testdata/baselines/reference/submodule/conformance/reExportDefaultExport.js.diff +++ b/testdata/baselines/reference/submodule/conformance/reExportDefaultExport.js.diff @@ -1,12 +1,12 @@ --- old.reExportDefaultExport.js +++ new.reExportDefaultExport.js -@@= skipped -22, +22 lines =@@ - //// [m2.js] - "use strict"; +@@= skipped -25, +25 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var m1_1 = require("./m1"); +-var m1_1 = __importDefault(require("./m1")); -var m1_2 = require("./m1"); -+const m1_1 = require("./m1"); ++const m1_1 = __importDefault(require("./m1")); +const m1_2 = require("./m1"); (0, m1_2.f)(); (0, m1_1.default)(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/reExportJsFromTs.js b/testdata/baselines/reference/submodule/conformance/reExportJsFromTs.js index 1c1c8328fd..de8ae0c44d 100644 --- a/testdata/baselines/reference/submodule/conformance/reExportJsFromTs.js +++ b/testdata/baselines/reference/submodule/conformance/reExportJsFromTs.js @@ -18,7 +18,40 @@ module.exports = { }; //// [constants.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.tsConstants = void 0; -const tsConstants = require("../lib/constants"); +const tsConstants = __importStar(require("../lib/constants")); exports.tsConstants = tsConstants; diff --git a/testdata/baselines/reference/submodule/conformance/reExportJsFromTs.js.diff b/testdata/baselines/reference/submodule/conformance/reExportJsFromTs.js.diff index fd62e1eeac..ab880a75a3 100644 --- a/testdata/baselines/reference/submodule/conformance/reExportJsFromTs.js.diff +++ b/testdata/baselines/reference/submodule/conformance/reExportJsFromTs.js.diff @@ -10,10 +10,10 @@ module.exports = { str: 'x', }; -@@= skipped -7, +10 lines =@@ - "use strict"; +@@= skipped -40, +43 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.tsConstants = void 0; --var tsConstants = require("../lib/constants"); -+const tsConstants = require("../lib/constants"); +-var tsConstants = __importStar(require("../lib/constants")); ++const tsConstants = __importStar(require("../lib/constants")); exports.tsConstants = tsConstants; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.errors.txt b/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.errors.txt deleted file mode 100644 index ea97dc1d9e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -test/file1.ts(1,22): error TS2307: Cannot find module 'foo' or its corresponding type declarations. - - -==== test/file1.ts (1 errors) ==== - import foo = require('foo'); - ~~~~~ -!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. - import other = require('./other'); - import relMod = require('./sub/relMod'); - - if(foo.M2.x){ - var x = new relMod(other.M2.x.charCodeAt(0)); - } - -==== test/foo.d.ts (0 errors) ==== - export declare module M2 { - export var x: boolean; - } - -==== test/other.d.ts (0 errors) ==== - export declare module M2 { - export var x: string; - } - -==== test/sub/relMod.d.ts (0 errors) ==== - declare class Test { - constructor(x: number); - } - export = Test; - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.errors.txt.diff deleted file mode 100644 index e6415062fd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.errors.txt.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.relativePathToDeclarationFile.errors.txt -+++ new.relativePathToDeclarationFile.errors.txt -@@= skipped -0, +0 lines =@@ -- -+test/file1.ts(1,22): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+ -+ -+==== test/file1.ts (1 errors) ==== -+ import foo = require('foo'); -+ ~~~~~ -+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations. -+ import other = require('./other'); -+ import relMod = require('./sub/relMod'); -+ -+ if(foo.M2.x){ -+ var x = new relMod(other.M2.x.charCodeAt(0)); -+ } -+ -+==== test/foo.d.ts (0 errors) ==== -+ export declare module M2 { -+ export var x: boolean; -+ } -+ -+==== test/other.d.ts (0 errors) ==== -+ export declare module M2 { -+ export var x: string; -+ } -+ -+==== test/sub/relMod.d.ts (0 errors) ==== -+ declare class Test { -+ constructor(x: number); -+ } -+ export = Test; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.js b/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.js deleted file mode 100644 index 2c3361af42..0000000000 --- a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.js +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/externalModules/relativePathToDeclarationFile.ts] //// - -//// [foo.d.ts] -export declare module M2 { - export var x: boolean; -} - -//// [other.d.ts] -export declare module M2 { - export var x: string; -} - -//// [relMod.d.ts] -declare class Test { - constructor(x: number); -} -export = Test; - -//// [file1.ts] -import foo = require('foo'); -import other = require('./other'); -import relMod = require('./sub/relMod'); - -if(foo.M2.x){ - var x = new relMod(other.M2.x.charCodeAt(0)); -} - - -//// [file1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const foo = require("foo"); -const other = require("./other"); -const relMod = require("./sub/relMod"); -if (foo.M2.x) { - var x = new relMod(other.M2.x.charCodeAt(0)); -} diff --git a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.js.diff b/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.js.diff deleted file mode 100644 index 0e4cf31015..0000000000 --- a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.relativePathToDeclarationFile.js -+++ new.relativePathToDeclarationFile.js -@@= skipped -28, +28 lines =@@ - //// [file1.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --var foo = require("foo"); --var other = require("./other"); --var relMod = require("./sub/relMod"); -+const foo = require("foo"); -+const other = require("./other"); -+const relMod = require("./sub/relMod"); - if (foo.M2.x) { - var x = new relMod(other.M2.x.charCodeAt(0)); - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.symbols b/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.symbols deleted file mode 100644 index 84c6133ea9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.symbols +++ /dev/null @@ -1,45 +0,0 @@ -//// [tests/cases/conformance/externalModules/relativePathToDeclarationFile.ts] //// - -=== test/file1.ts === -import foo = require('foo'); ->foo : Symbol(foo, Decl(file1.ts, 0, 0)) - -import other = require('./other'); ->other : Symbol(other, Decl(file1.ts, 0, 28)) - -import relMod = require('./sub/relMod'); ->relMod : Symbol(relMod, Decl(file1.ts, 1, 34)) - -if(foo.M2.x){ ->foo : Symbol(foo, Decl(file1.ts, 0, 0)) - - var x = new relMod(other.M2.x.charCodeAt(0)); ->x : Symbol(x, Decl(file1.ts, 5, 4)) ->relMod : Symbol(relMod, Decl(file1.ts, 1, 34)) ->other.M2.x.charCodeAt : Symbol(String.charCodeAt, Decl(lib.es5.d.ts, --, --)) ->other.M2.x : Symbol(other.M2.x, Decl(other.d.ts, 1, 11)) ->other.M2 : Symbol(other.M2, Decl(other.d.ts, 0, 0)) ->other : Symbol(other, Decl(file1.ts, 0, 28)) ->M2 : Symbol(other.M2, Decl(other.d.ts, 0, 0)) ->x : Symbol(other.M2.x, Decl(other.d.ts, 1, 11)) ->charCodeAt : Symbol(String.charCodeAt, Decl(lib.es5.d.ts, --, --)) -} - -=== test/other.d.ts === -export declare module M2 { ->M2 : Symbol(M2, Decl(other.d.ts, 0, 0)) - - export var x: string; ->x : Symbol(x, Decl(other.d.ts, 1, 11)) -} - -=== test/sub/relMod.d.ts === -declare class Test { ->Test : Symbol(Test, Decl(relMod.d.ts, 0, 0)) - - constructor(x: number); ->x : Symbol(x, Decl(relMod.d.ts, 1, 13)) -} -export = Test; ->Test : Symbol(Test, Decl(relMod.d.ts, 0, 0)) - diff --git a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.symbols.diff b/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.symbols.diff deleted file mode 100644 index de69ebb4dc..0000000000 --- a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.symbols.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.relativePathToDeclarationFile.symbols -+++ new.relativePathToDeclarationFile.symbols -@@= skipped -10, +10 lines =@@ - >relMod : Symbol(relMod, Decl(file1.ts, 1, 34)) - - if(foo.M2.x){ -->foo.M2.x : Symbol(foo.M2.x, Decl(foo.d.ts, 1, 11)) -->foo.M2 : Symbol(foo.M2, Decl(foo.d.ts, 0, 0)) - >foo : Symbol(foo, Decl(file1.ts, 0, 0)) -->M2 : Symbol(foo.M2, Decl(foo.d.ts, 0, 0)) -->x : Symbol(foo.M2.x, Decl(foo.d.ts, 1, 11)) - - var x = new relMod(other.M2.x.charCodeAt(0)); - >x : Symbol(x, Decl(file1.ts, 5, 4)) -@@= skipped -16, +12 lines =@@ - >M2 : Symbol(other.M2, Decl(other.d.ts, 0, 0)) - >x : Symbol(other.M2.x, Decl(other.d.ts, 1, 11)) - >charCodeAt : Symbol(String.charCodeAt, Decl(lib.es5.d.ts, --, --)) --} -- --=== test/foo.d.ts === --export declare module M2 { -->M2 : Symbol(M2, Decl(foo.d.ts, 0, 0)) -- -- export var x: boolean; -->x : Symbol(x, Decl(foo.d.ts, 1, 11)) - } - - === test/other.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.types b/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.types deleted file mode 100644 index b1339c7703..0000000000 --- a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.types +++ /dev/null @@ -1,52 +0,0 @@ -//// [tests/cases/conformance/externalModules/relativePathToDeclarationFile.ts] //// - -=== test/file1.ts === -import foo = require('foo'); ->foo : any - -import other = require('./other'); ->other : typeof other - -import relMod = require('./sub/relMod'); ->relMod : typeof relMod - -if(foo.M2.x){ ->foo.M2.x : any ->foo.M2 : any ->foo : any ->M2 : any ->x : any - - var x = new relMod(other.M2.x.charCodeAt(0)); ->x : relMod ->new relMod(other.M2.x.charCodeAt(0)) : relMod ->relMod : typeof relMod ->other.M2.x.charCodeAt(0) : number ->other.M2.x.charCodeAt : (index: number) => number ->other.M2.x : string ->other.M2 : typeof other.M2 ->other : typeof other ->M2 : typeof other.M2 ->x : string ->charCodeAt : (index: number) => number ->0 : 0 -} - -=== test/other.d.ts === -export declare module M2 { ->M2 : typeof M2 - - export var x: string; ->x : string -} - -=== test/sub/relMod.d.ts === -declare class Test { ->Test : Test - - constructor(x: number); ->x : number -} -export = Test; ->Test : Test - diff --git a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.types.diff b/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.types.diff deleted file mode 100644 index a4ccbee002..0000000000 --- a/testdata/baselines/reference/submodule/conformance/relativePathToDeclarationFile.types.diff +++ /dev/null @@ -1,43 +0,0 @@ ---- old.relativePathToDeclarationFile.types -+++ new.relativePathToDeclarationFile.types -@@= skipped -1, +1 lines =@@ - - === test/file1.ts === - import foo = require('foo'); -->foo : typeof foo -+>foo : any - - import other = require('./other'); - >other : typeof other -@@= skipped -9, +9 lines =@@ - >relMod : typeof relMod - - if(foo.M2.x){ -->foo.M2.x : boolean -->foo.M2 : typeof foo.M2 -->foo : typeof foo -->M2 : typeof foo.M2 -->x : boolean -+>foo.M2.x : any -+>foo.M2 : any -+>foo : any -+>M2 : any -+>x : any - - var x = new relMod(other.M2.x.charCodeAt(0)); - >x : relMod -@@= skipped -19, +19 lines =@@ - >x : string - >charCodeAt : (index: number) => number - >0 : 0 --} -- --=== test/foo.d.ts === --export declare module M2 { -->M2 : typeof M2 -- -- export var x: boolean; -->x : boolean - } - - === test/other.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).errors.txt.diff deleted file mode 100644 index b5a75340f1..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).errors.txt.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.resolutionModeImportType1(moduleresolution=classic).errors.txt -+++ new.resolutionModeImportType1(moduleresolution=classic).errors.txt -@@= skipped -0, +0 lines =@@ --error TS2688: Cannot find type definition file for 'foo'. -- The file is in the program because: -- Entry point for implicit type library 'foo' --/app.ts(1,30): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --/app.ts(2,29): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --/app.ts(3,30): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -- -- --!!! error TS2688: Cannot find type definition file for 'foo'. --!!! error TS2688: The file is in the program because: --!!! error TS2688: Entry point for implicit type library 'foo' --==== /node_modules/@types/foo/package.json (0 errors) ==== -- { -- "name": "@types/foo", -- "version": "1.0.0", -- "exports": { -- ".": { -- "import": "./index.d.mts", -- "require": "./index.d.cts" -- } -- } -- } -- --==== /node_modules/@types/foo/index.d.mts (0 errors) ==== -- export declare const x: "module"; -- --==== /node_modules/@types/foo/index.d.cts (0 errors) ==== -- export declare const x: "script"; -- --==== /app.ts (3 errors) ==== -- type Default = typeof import("foo").x; -- ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -- type Import = typeof import("foo", { assert: { "resolution-mode": "import" } }).x; -- ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -- type Require = typeof import("foo", { assert: { "resolution-mode": "require" } }).x; -- ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -- // resolution-mode does not enforce file extension in `bundler`, just sets conditions -- type ImportRelative = typeof import("./other", { assert: { "resolution-mode": "import" } }).x; -- type RequireRelative = typeof import("./other", { assert: { "resolution-mode": "require" } }).x; -- --==== /other.ts (0 errors) ==== -- export const x = "other"; -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).symbols b/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).symbols deleted file mode 100644 index 3b36b51d0a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).symbols +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/resolutionModeImportType1.ts] //// - -=== /node_modules/@types/foo/index.d.mts === -export declare const x: "module"; ->x : Symbol(x, Decl(index.d.mts, 0, 20)) - -=== /node_modules/@types/foo/index.d.cts === -export declare const x: "script"; ->x : Symbol(x, Decl(index.d.cts, 0, 20)) - -=== /app.ts === -type Default = typeof import("foo").x; ->Default : Symbol(Default, Decl(app.ts, 0, 0)) ->x : Symbol(x, Decl(index.d.mts, 0, 20)) - -type Import = typeof import("foo", { assert: { "resolution-mode": "import" } }).x; ->Import : Symbol(Import, Decl(app.ts, 0, 38)) ->x : Symbol(x, Decl(index.d.mts, 0, 20)) - -type Require = typeof import("foo", { assert: { "resolution-mode": "require" } }).x; ->Require : Symbol(Require, Decl(app.ts, 1, 82)) ->x : Symbol(x, Decl(index.d.cts, 0, 20)) - -// resolution-mode does not enforce file extension in `bundler`, just sets conditions -type ImportRelative = typeof import("./other", { assert: { "resolution-mode": "import" } }).x; ->ImportRelative : Symbol(ImportRelative, Decl(app.ts, 2, 84)) ->x : Symbol(x, Decl(other.ts, 0, 12)) - -type RequireRelative = typeof import("./other", { assert: { "resolution-mode": "require" } }).x; ->RequireRelative : Symbol(RequireRelative, Decl(app.ts, 4, 94)) ->x : Symbol(x, Decl(other.ts, 0, 12)) - -=== /other.ts === -export const x = "other"; ->x : Symbol(x, Decl(other.ts, 0, 12)) - diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).symbols.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).symbols.diff deleted file mode 100644 index 32f63277bd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).symbols.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.resolutionModeImportType1(moduleresolution=classic).symbols -+++ new.resolutionModeImportType1(moduleresolution=classic).symbols -@@= skipped -10, +10 lines =@@ - === /app.ts === - type Default = typeof import("foo").x; - >Default : Symbol(Default, Decl(app.ts, 0, 0)) -+>x : Symbol(x, Decl(index.d.mts, 0, 20)) - - type Import = typeof import("foo", { assert: { "resolution-mode": "import" } }).x; - >Import : Symbol(Import, Decl(app.ts, 0, 38)) -+>x : Symbol(x, Decl(index.d.mts, 0, 20)) - - type Require = typeof import("foo", { assert: { "resolution-mode": "require" } }).x; - >Require : Symbol(Require, Decl(app.ts, 1, 82)) -+>x : Symbol(x, Decl(index.d.cts, 0, 20)) - - // resolution-mode does not enforce file extension in `bundler`, just sets conditions - type ImportRelative = typeof import("./other", { assert: { "resolution-mode": "import" } }).x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).types b/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).types deleted file mode 100644 index 376327dbeb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).types +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/resolutionModeImportType1.ts] //// - -=== /node_modules/@types/foo/index.d.mts === -export declare const x: "module"; ->x : "module" - -=== /node_modules/@types/foo/index.d.cts === -export declare const x: "script"; ->x : "script" - -=== /app.ts === -type Default = typeof import("foo").x; ->Default : "module" ->x : any - -type Import = typeof import("foo", { assert: { "resolution-mode": "import" } }).x; ->Import : "module" ->x : any - -type Require = typeof import("foo", { assert: { "resolution-mode": "require" } }).x; ->Require : "script" ->x : any - -// resolution-mode does not enforce file extension in `bundler`, just sets conditions -type ImportRelative = typeof import("./other", { assert: { "resolution-mode": "import" } }).x; ->ImportRelative : "other" ->x : any - -type RequireRelative = typeof import("./other", { assert: { "resolution-mode": "require" } }).x; ->RequireRelative : "other" ->x : any - -=== /other.ts === -export const x = "other"; ->x : "other" ->"other" : "other" - diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).types.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).types.diff deleted file mode 100644 index 79150fc301..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeImportType1(moduleresolution=classic).types.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.resolutionModeImportType1(moduleresolution=classic).types -+++ new.resolutionModeImportType1(moduleresolution=classic).types -@@= skipped -9, +9 lines =@@ - - === /app.ts === - type Default = typeof import("foo").x; -->Default : any -+>Default : "module" - >x : any - - type Import = typeof import("foo", { assert: { "resolution-mode": "import" } }).x; -->Import : any -+>Import : "module" - >x : any - - type Require = typeof import("foo", { assert: { "resolution-mode": "require" } }).x; -->Require : any -+>Require : "script" - >x : any - - // resolution-mode does not enforce file extension in `bundler`, just sets conditions \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash4.errors.txt b/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash4.errors.txt deleted file mode 100644 index d508d82d20..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash4.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -/app.ts(3,1): error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'? - - -==== /tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "module": "esnext", - "moduleResolution": "node10", - "noEmit": true, - "types": [] - } - } - -==== /app.ts (1 errors) ==== - /// - MODULE; // error - SCRIPT; // error - ~~~~~~ -!!! error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'? -!!! related TS2728 lib.scripthost.d.ts:--:--: 'WScript' is declared here. - -==== /node_modules/@types/foo/package.json (0 errors) ==== - { - "name": "@types/foo", - "version": "1.0.0", - "exports": { - ".": { - "import": "./index.d.mts", - "require": "./index.d.cts" - } - } - } - -==== /node_modules/@types/foo/index.d.mts (0 errors) ==== - export {}; - declare global { - const MODULE: any; - } - -==== /node_modules/@types/foo/index.d.cts (0 errors) ==== - export {}; - declare global { - const SCRIPT: any; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash4.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash4.errors.txt.diff deleted file mode 100644 index 21390f0820..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash4.errors.txt.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.resolutionModeTripleSlash4.errors.txt -+++ new.resolutionModeTripleSlash4.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(4,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. --/app.ts(1,23): error TS2688: Cannot find type definition file for 'foo'. --/app.ts(2,1): error TS2304: Cannot find name 'MODULE'. - /app.ts(3,1): error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'? - - --==== /tsconfig.json (1 errors) ==== -+==== /tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "module": "esnext", - "moduleResolution": "node10", -- ~~~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - "noEmit": true, - "types": [] - } - } - --==== /app.ts (3 errors) ==== -+==== /app.ts (1 errors) ==== - /// -- ~~~ --!!! error TS2688: Cannot find type definition file for 'foo'. - MODULE; // error -- ~~~~~~ --!!! error TS2304: Cannot find name 'MODULE'. - SCRIPT; // error - ~~~~~~ - !!! error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'? \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash5.errors.txt b/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash5.errors.txt deleted file mode 100644 index 6618295aa9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash5.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -/app.ts(3,1): error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'? - - -==== /tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "module": "esnext", - "moduleResolution": "node10", - "noEmit": true, - "types": [] - } - } - -==== /app.ts (1 errors) ==== - /// - MODULE; // ok - SCRIPT; // error - ~~~~~~ -!!! error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'? -!!! related TS2728 lib.scripthost.d.ts:--:--: 'WScript' is declared here. - -==== /node_modules/@types/foo/package.json (0 errors) ==== - { - "name": "@types/foo", - "version": "1.0.0", - "exports": { - ".": { - "import": "./index.d.mts", - "require": "./index.d.cts" - } - } - } - -==== /node_modules/@types/foo/index.d.mts (0 errors) ==== - export {}; - declare global { - const MODULE: any; - } - -==== /node_modules/@types/foo/index.d.cts (0 errors) ==== - export {}; - declare global { - const SCRIPT: any; - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash5.errors.txt.diff deleted file mode 100644 index 9ab160155c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTripleSlash5.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.resolutionModeTripleSlash5.errors.txt -+++ new.resolutionModeTripleSlash5.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(4,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - /app.ts(3,1): error TS2552: Cannot find name 'SCRIPT'. Did you mean 'WScript'? - - --==== /tsconfig.json (1 errors) ==== -+==== /tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "module": "esnext", - "moduleResolution": "node10", -- ~~~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - "noEmit": true, - "types": [] - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt.diff deleted file mode 100644 index 8646a662fd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt.diff +++ /dev/null @@ -1,64 +0,0 @@ ---- old.resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt -+++ new.resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt -@@= skipped -0, +0 lines =@@ --error TS2688: Cannot find type definition file for 'foo'. -- The file is in the program because: -- Entry point for implicit type library 'foo' --/app.ts(1,35): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --/app.ts(2,34): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? --/app.ts(3,35): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -- -- --!!! error TS2688: Cannot find type definition file for 'foo'. --!!! error TS2688: The file is in the program because: --!!! error TS2688: Entry point for implicit type library 'foo' --==== /node_modules/@types/foo/package.json (0 errors) ==== -- { -- "name": "@types/foo", -- "version": "1.0.0", -- "exports": { -- ".": { -- "import": "./index.d.mts", -- "require": "./index.d.cts" -- } -- } -- } -- --==== /node_modules/@types/foo/index.d.mts (0 errors) ==== -- export declare const x: "module"; -- --==== /node_modules/@types/foo/index.d.cts (0 errors) ==== -- export declare const x: "script"; -- --==== /app.ts (3 errors) ==== -- import type { x as Default } from "foo"; -- ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -- import type { x as Import } from "foo" assert { "resolution-mode": "import" }; -- ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -- import type { x as Require } from "foo" assert { "resolution-mode": "require" }; -- ~~~~~ --!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -- type _Default = typeof Default; -- type _Import = typeof Import; -- type _Require = typeof Require; -- -- // resolution-mode does not enforce file extension in `bundler`, just sets conditions -- import type { x as ImportRelative } from "./other" assert { "resolution-mode": "import" }; -- import type { x as RequireRelative } from "./other" assert { "resolution-mode": "require" }; -- type _ImportRelative = typeof ImportRelative; -- type _RequireRelative = typeof RequireRelative; -- -- export { -- _Default, -- _Import, -- _Require, -- _ImportRelative, -- _RequireRelative -- } -- --==== /other.ts (0 errors) ==== -- export const x = "other"; -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).js b/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).js deleted file mode 100644 index 961512bfab..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).js +++ /dev/null @@ -1,62 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/resolutionModeTypeOnlyImport1.ts] //// - -//// [package.json] -{ - "name": "@types/foo", - "version": "1.0.0", - "exports": { - ".": { - "import": "./index.d.mts", - "require": "./index.d.cts" - } - } -} - -//// [index.d.mts] -export declare const x: "module"; - -//// [index.d.cts] -export declare const x: "script"; - -//// [app.ts] -import type { x as Default } from "foo"; -import type { x as Import } from "foo" assert { "resolution-mode": "import" }; -import type { x as Require } from "foo" assert { "resolution-mode": "require" }; -type _Default = typeof Default; -type _Import = typeof Import; -type _Require = typeof Require; - -// resolution-mode does not enforce file extension in `bundler`, just sets conditions -import type { x as ImportRelative } from "./other" assert { "resolution-mode": "import" }; -import type { x as RequireRelative } from "./other" assert { "resolution-mode": "require" }; -type _ImportRelative = typeof ImportRelative; -type _RequireRelative = typeof RequireRelative; - -export { - _Default, - _Import, - _Require, - _ImportRelative, - _RequireRelative -} - -//// [other.ts] -export const x = "other"; - - - - -//// [other.d.ts] -export declare const x = "other"; -//// [app.d.ts] -import type { x as Default } from "foo"; -import type { x as Import } from "foo" assert { "resolution-mode": "import" }; -import type { x as Require } from "foo" assert { "resolution-mode": "require" }; -type _Default = typeof Default; -type _Import = typeof Import; -type _Require = typeof Require; -import type { x as ImportRelative } from "./other" assert { "resolution-mode": "import" }; -import type { x as RequireRelative } from "./other" assert { "resolution-mode": "require" }; -type _ImportRelative = typeof ImportRelative; -type _RequireRelative = typeof RequireRelative; -export { _Default, _Import, _Require, _ImportRelative, _RequireRelative }; diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols b/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols deleted file mode 100644 index 1d28242ebf..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols +++ /dev/null @@ -1,73 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/resolutionModeTypeOnlyImport1.ts] //// - -=== /node_modules/@types/foo/index.d.mts === -export declare const x: "module"; ->x : Symbol(x, Decl(index.d.mts, 0, 20)) - -=== /node_modules/@types/foo/index.d.cts === -export declare const x: "script"; ->x : Symbol(x, Decl(index.d.cts, 0, 20)) - -=== /app.ts === -import type { x as Default } from "foo"; ->x : Symbol(Default, Decl(index.d.mts, 0, 20)) ->Default : Symbol(Default, Decl(app.ts, 0, 13)) - -import type { x as Import } from "foo" assert { "resolution-mode": "import" }; ->x : Symbol(Default, Decl(index.d.mts, 0, 20)) ->Import : Symbol(Import, Decl(app.ts, 1, 13)) - -import type { x as Require } from "foo" assert { "resolution-mode": "require" }; ->x : Symbol(Require, Decl(index.d.cts, 0, 20)) ->Require : Symbol(Require, Decl(app.ts, 2, 13)) - -type _Default = typeof Default; ->_Default : Symbol(_Default, Decl(app.ts, 2, 80)) ->Default : Symbol(Default, Decl(app.ts, 0, 13)) - -type _Import = typeof Import; ->_Import : Symbol(_Import, Decl(app.ts, 3, 31)) ->Import : Symbol(Import, Decl(app.ts, 1, 13)) - -type _Require = typeof Require; ->_Require : Symbol(_Require, Decl(app.ts, 4, 29)) ->Require : Symbol(Require, Decl(app.ts, 2, 13)) - -// resolution-mode does not enforce file extension in `bundler`, just sets conditions -import type { x as ImportRelative } from "./other" assert { "resolution-mode": "import" }; ->x : Symbol(ImportRelative, Decl(other.ts, 0, 12)) ->ImportRelative : Symbol(ImportRelative, Decl(app.ts, 8, 13)) - -import type { x as RequireRelative } from "./other" assert { "resolution-mode": "require" }; ->x : Symbol(ImportRelative, Decl(other.ts, 0, 12)) ->RequireRelative : Symbol(RequireRelative, Decl(app.ts, 9, 13)) - -type _ImportRelative = typeof ImportRelative; ->_ImportRelative : Symbol(_ImportRelative, Decl(app.ts, 9, 92)) ->ImportRelative : Symbol(ImportRelative, Decl(app.ts, 8, 13)) - -type _RequireRelative = typeof RequireRelative; ->_RequireRelative : Symbol(_RequireRelative, Decl(app.ts, 10, 45)) ->RequireRelative : Symbol(RequireRelative, Decl(app.ts, 9, 13)) - -export { - _Default, ->_Default : Symbol(_Default, Decl(app.ts, 13, 8)) - - _Import, ->_Import : Symbol(_Import, Decl(app.ts, 14, 11)) - - _Require, ->_Require : Symbol(_Require, Decl(app.ts, 15, 10)) - - _ImportRelative, ->_ImportRelative : Symbol(_ImportRelative, Decl(app.ts, 16, 11)) - - _RequireRelative ->_RequireRelative : Symbol(_RequireRelative, Decl(app.ts, 17, 18)) -} - -=== /other.ts === -export const x = "other"; ->x : Symbol(x, Decl(other.ts, 0, 12)) - diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols.diff deleted file mode 100644 index a297cc4f28..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols -+++ new.resolutionModeTypeOnlyImport1(moduleresolution=classic).symbols -@@= skipped -9, +9 lines =@@ - - === /app.ts === - import type { x as Default } from "foo"; -+>x : Symbol(Default, Decl(index.d.mts, 0, 20)) - >Default : Symbol(Default, Decl(app.ts, 0, 13)) - - import type { x as Import } from "foo" assert { "resolution-mode": "import" }; -+>x : Symbol(Default, Decl(index.d.mts, 0, 20)) - >Import : Symbol(Import, Decl(app.ts, 1, 13)) - - import type { x as Require } from "foo" assert { "resolution-mode": "require" }; -+>x : Symbol(Require, Decl(index.d.cts, 0, 20)) - >Require : Symbol(Require, Decl(app.ts, 2, 13)) - - type _Default = typeof Default; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).types b/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).types deleted file mode 100644 index 404083065a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).types +++ /dev/null @@ -1,74 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/resolutionModeTypeOnlyImport1.ts] //// - -=== /node_modules/@types/foo/index.d.mts === -export declare const x: "module"; ->x : "module" - -=== /node_modules/@types/foo/index.d.cts === -export declare const x: "script"; ->x : "script" - -=== /app.ts === -import type { x as Default } from "foo"; ->x : "module" ->Default : any - -import type { x as Import } from "foo" assert { "resolution-mode": "import" }; ->x : "module" ->Import : any - -import type { x as Require } from "foo" assert { "resolution-mode": "require" }; ->x : "script" ->Require : any - -type _Default = typeof Default; ->_Default : "module" ->Default : "module" - -type _Import = typeof Import; ->_Import : "module" ->Import : "module" - -type _Require = typeof Require; ->_Require : "script" ->Require : "script" - -// resolution-mode does not enforce file extension in `bundler`, just sets conditions -import type { x as ImportRelative } from "./other" assert { "resolution-mode": "import" }; ->x : "other" ->ImportRelative : any - -import type { x as RequireRelative } from "./other" assert { "resolution-mode": "require" }; ->x : "other" ->RequireRelative : any - -type _ImportRelative = typeof ImportRelative; ->_ImportRelative : "other" ->ImportRelative : "other" - -type _RequireRelative = typeof RequireRelative; ->_RequireRelative : "other" ->RequireRelative : "other" - -export { - _Default, ->_Default : any - - _Import, ->_Import : any - - _Require, ->_Require : any - - _ImportRelative, ->_ImportRelative : any - - _RequireRelative ->_RequireRelative : any -} - -=== /other.ts === -export const x = "other"; ->x : "other" ->"other" : "other" - diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).types.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).types.diff deleted file mode 100644 index ff63038fa6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeTypeOnlyImport1(moduleresolution=classic).types.diff +++ /dev/null @@ -1,40 +0,0 @@ ---- old.resolutionModeTypeOnlyImport1(moduleresolution=classic).types -+++ new.resolutionModeTypeOnlyImport1(moduleresolution=classic).types -@@= skipped -9, +9 lines =@@ - - === /app.ts === - import type { x as Default } from "foo"; -->x : any -+>x : "module" - >Default : any - - import type { x as Import } from "foo" assert { "resolution-mode": "import" }; -->x : any -+>x : "module" - >Import : any - - import type { x as Require } from "foo" assert { "resolution-mode": "require" }; -->x : any -+>x : "script" - >Require : any - - type _Default = typeof Default; -->_Default : any -->Default : any -+>_Default : "module" -+>Default : "module" - - type _Import = typeof Import; -->_Import : any -->Import : any -+>_Import : "module" -+>Import : "module" - - type _Require = typeof Require; -->_Require : any -->Require : any -+>_Require : "script" -+>Require : "script" - - // resolution-mode does not enforce file extension in `bundler`, just sets conditions - import type { x as ImportRelative } from "./other" assert { "resolution-mode": "import" }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.js b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.js deleted file mode 100644 index 9257fc8c7a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.js +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/scopedPackagesClassic.ts] //// - -//// [index.d.ts] -export const x = 0; - -//// [a.ts] -import { x } from "@see/saw"; - - -//// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.symbols b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.symbols deleted file mode 100644 index 6eea828314..0000000000 --- a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/scopedPackagesClassic.ts] //// - -=== /a.ts === -import { x } from "@see/saw"; ->x : Symbol(x, Decl(a.ts, 0, 8)) - -=== /node_modules/@types/see__saw/index.d.ts === -export const x = 0; ->x : Symbol(x, Decl(index.d.ts, 0, 12)) - diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json deleted file mode 100644 index 450b2bb7ee..0000000000 --- a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json +++ /dev/null @@ -1,12 +0,0 @@ -======== Resolving module '@see/saw' from '/a.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. -Loading module '@see/saw' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Scoped package detected, looking in 'see__saw' -File '/node_modules/@types/see__saw/package.json' does not exist. -File '/node_modules/@types/see__saw.d.ts' does not exist. -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'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.types b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.types deleted file mode 100644 index 94bd050b55..0000000000 --- a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/scopedPackagesClassic.ts] //// - -=== /a.ts === -import { x } from "@see/saw"; ->x : 0 - -=== /node_modules/@types/see__saw/index.d.ts === -export const x = 0; ->x : 0 ->0 : 0 - diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.errors.txt b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.errors.txt new file mode 100644 index 0000000000..65be56f386 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.errors.txt @@ -0,0 +1,14 @@ +index.ts(3,8): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. + + +==== index.ts (1 errors) ==== + // await disallowed in import= + declare var require: any; + import await = require("./other"); + ~~~~~ +!!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. + +==== other.ts (0 errors) ==== + declare const _await: any; + export { _await as await }; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.js b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.js new file mode 100644 index 0000000000..c332d24bd0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts] //// + +//// [index.ts] +// await disallowed in import= +declare var require: any; +import await = require("./other"); + +//// [other.ts] +declare const _await: any; +export { _await as await }; + + +//// [other.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.await = void 0; +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.symbols b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.symbols new file mode 100644 index 0000000000..ab5f2f1ce5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts] //// + +=== index.ts === +// await disallowed in import= +declare var require: any; +>require : Symbol(require, Decl(index.ts, 1, 11)) + +import await = require("./other"); +>await : Symbol(await, Decl(index.ts, 1, 25)) + +=== other.ts === +declare const _await: any; +>_await : Symbol(_await, Decl(other.ts, 0, 13)) + +export { _await as await }; +>_await : Symbol(_await, Decl(other.ts, 0, 13)) +>await : Symbol(await, Decl(other.ts, 1, 8)) + diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.types b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.types new file mode 100644 index 0000000000..8663d617ac --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.11.types @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts] //// + +=== index.ts === +// await disallowed in import= +declare var require: any; +>require : any + +import await = require("./other"); +>await : typeof await + +=== other.ts === +declare const _await: any; +>_await : any + +export { _await as await }; +>_await : any +>await : any + diff --git a/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.errors.txt b/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.errors.txt deleted file mode 100644 index 8c29a825ed..0000000000 --- a/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -error TS5055: Cannot write file 'a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5055: Cannot write file 'b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -a.js(3,1): error TS2304: Cannot find name 'a'. -b.js(2,1): error TS2304: Cannot find name 'a'. - - -!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== a.js (1 errors) ==== - this.a = 10; - this.a; - a; - ~ -!!! error TS2304: Cannot find name 'a'. - -==== b.js (1 errors) ==== - this.a; - a; - ~ -!!! error TS2304: Cannot find name 'a'. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.symbols b/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.symbols deleted file mode 100644 index 4e4a58edf3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.symbols +++ /dev/null @@ -1,17 +0,0 @@ -//// [tests/cases/conformance/salsa/topLevelThisAssignment.ts] //// - -=== a.js === -this.a = 10; ->this : Symbol(globalThis) - -this.a; ->this : Symbol(globalThis) - -a; - -=== b.js === -this.a; ->this : Symbol(globalThis) - -a; - diff --git a/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.symbols.diff b/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.symbols.diff deleted file mode 100644 index d34b9e4c23..0000000000 --- a/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.symbols.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.topLevelThisAssignment.symbols -+++ new.topLevelThisAssignment.symbols -@@= skipped -1, +1 lines =@@ - - === a.js === - this.a = 10; -->this.a : Symbol(a, Decl(a.js, 0, 0)) - >this : Symbol(globalThis) -->a : Symbol(a, Decl(a.js, 0, 0)) - - this.a; -->this.a : Symbol(a, Decl(a.js, 0, 0)) - >this : Symbol(globalThis) -->a : Symbol(a, Decl(a.js, 0, 0)) - - a; -->a : Symbol(a, Decl(a.js, 0, 0)) - - === b.js === - this.a; -->this.a : Symbol(a, Decl(a.js, 0, 0)) - >this : Symbol(globalThis) -->a : Symbol(a, Decl(a.js, 0, 0)) - - a; -->a : Symbol(a, Decl(a.js, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.types b/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.types deleted file mode 100644 index 51586c545b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/topLevelThisAssignment.types +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/salsa/topLevelThisAssignment.ts] //// - -=== a.js === -this.a = 10; ->this.a = 10 : 10 ->this.a : any ->this : typeof globalThis ->a : any ->10 : 10 - -this.a; ->this.a : any ->this : typeof globalThis ->a : any - -a; ->a : any - -=== b.js === -this.a; ->this.a : any ->this : typeof globalThis ->a : any - -a; ->a : any - diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.errors.txt b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.errors.txt new file mode 100644 index 0000000000..5a2d2cd061 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.errors.txt @@ -0,0 +1,35 @@ +file.tsx(11,14): error TS2322: Type 'string' is not assignable to type 'boolean'. + + +==== react.d.ts (0 errors) ==== + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; + } + } + +==== file.tsx (1 errors) ==== + export class MyComponent { + render() { + } + + props: { + [s: string]: boolean; + } + } + + // Should be an error + ; + ~~~ +!!! error TS2322: Type 'string' is not assignable to type 'boolean'. +!!! related TS6501 file.tsx:6:4: The expected type comes from this index signature. + + // Should be OK + ; + + // Should be ok + ; + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.js b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.js new file mode 100644 index 0000000000..59e615aa7e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution10.tsx] //// + +//// [react.d.ts] +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; + } +} + +//// [file.tsx] +export class MyComponent { + render() { + } + + props: { + [s: string]: boolean; + } +} + +// Should be an error +; + +// Should be OK +; + +// Should be ok +; + + +//// [file.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyComponent = void 0; +class MyComponent { + render() { + } + props; +} +exports.MyComponent = MyComponent; +// Should be an error +; +// Should be OK +; +// Should be ok +; diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.js.diff b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.js.diff new file mode 100644 index 0000000000..f71f026e5a --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.js.diff @@ -0,0 +1,10 @@ +--- old.tsxAttributeResolution10.js ++++ new.tsxAttributeResolution10.js +@@= skipped -36, +36 lines =@@ + class MyComponent { + render() { + } ++ props; + } + exports.MyComponent = MyComponent; + // Should be an error \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.symbols b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.symbols new file mode 100644 index 0000000000..58293e8c51 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.symbols @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution10.tsx] //// + +=== react.d.ts === +declare module JSX { +>JSX : Symbol(JSX, Decl(react.d.ts, 0, 0)) + + interface Element { } +>Element : Symbol(Element, Decl(react.d.ts, 0, 20)) + + interface IntrinsicElements { +>IntrinsicElements : Symbol(IntrinsicElements, Decl(react.d.ts, 1, 22)) + } + interface ElementAttributesProperty { +>ElementAttributesProperty : Symbol(ElementAttributesProperty, Decl(react.d.ts, 3, 2)) + + props; +>props : Symbol(ElementAttributesProperty.props, Decl(react.d.ts, 4, 38)) + } +} + +=== file.tsx === +export class MyComponent { +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) + + render() { +>render : Symbol(MyComponent.render, Decl(file.tsx, 0, 26)) + } + + props: { +>props : Symbol(MyComponent.props, Decl(file.tsx, 2, 3)) + + [s: string]: boolean; +>s : Symbol(s, Decl(file.tsx, 5, 4)) + } +} + +// Should be an error +; +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) +>bar : Symbol(bar, Decl(file.tsx, 10, 12)) + +// Should be OK +; +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) +>bar : Symbol(bar, Decl(file.tsx, 13, 12)) + +// Should be ok +; +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) +>data-bar : Symbol(data-bar, Decl(file.tsx, 16, 12)) + diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.types b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.types new file mode 100644 index 0000000000..742dd6368b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution10.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution10.tsx] //// + +=== react.d.ts === +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; +>props : any + } +} + +=== file.tsx === +export class MyComponent { +>MyComponent : MyComponent + + render() { +>render : () => void + } + + props: { +>props : { [s: string]: boolean; } + + [s: string]: boolean; +>s : string + } +} + +// Should be an error +; +> : JSX.Element +>MyComponent : typeof MyComponent +>bar : string + +// Should be OK +; +> : JSX.Element +>MyComponent : typeof MyComponent +>bar : true +>true : true + +// Should be ok +; +> : JSX.Element +>MyComponent : typeof MyComponent +>data-bar : string + diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.errors.txt b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.errors.txt new file mode 100644 index 0000000000..bad7b2842e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.errors.txt @@ -0,0 +1,34 @@ +file.tsx(11,22): error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'. + Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'. + + +==== react.d.ts (0 errors) ==== + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; + } + interface IntrinsicAttributes { + ref?: string; + } + } + +==== file.tsx (1 errors) ==== + class MyComponent { + render() { + } + + props: { + ref?: string; + } + } + + // Should be an OK + var x = ; + ~~~ +!!! error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'. +!!! error TS2322: Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'. + + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.js b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.js new file mode 100644 index 0000000000..34ddc7ba05 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution11.tsx] //// + +//// [react.d.ts] +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; + } + interface IntrinsicAttributes { + ref?: string; + } +} + +//// [file.tsx] +class MyComponent { + render() { + } + + props: { + ref?: string; + } +} + +// Should be an OK +var x = ; + + + +//// [file.jsx] +class MyComponent { + render() { + } + props; +} +// Should be an OK +var x = ; diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.js.diff b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.js.diff new file mode 100644 index 0000000000..28e4f42fd6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.js.diff @@ -0,0 +1,10 @@ +--- old.tsxAttributeResolution11.js ++++ new.tsxAttributeResolution11.js +@@= skipped -31, +31 lines =@@ + class MyComponent { + render() { + } ++ props; + } + // Should be an OK + var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.symbols b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.symbols new file mode 100644 index 0000000000..fc39fce34d --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.symbols @@ -0,0 +1,49 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution11.tsx] //// + +=== react.d.ts === +declare module JSX { +>JSX : Symbol(JSX, Decl(react.d.ts, 0, 0)) + + interface Element { } +>Element : Symbol(Element, Decl(react.d.ts, 0, 20)) + + interface IntrinsicElements { +>IntrinsicElements : Symbol(IntrinsicElements, Decl(react.d.ts, 1, 22)) + } + interface ElementAttributesProperty { +>ElementAttributesProperty : Symbol(ElementAttributesProperty, Decl(react.d.ts, 3, 2)) + + props; +>props : Symbol(ElementAttributesProperty.props, Decl(react.d.ts, 4, 38)) + } + interface IntrinsicAttributes { +>IntrinsicAttributes : Symbol(IntrinsicAttributes, Decl(react.d.ts, 6, 2)) + + ref?: string; +>ref : Symbol(IntrinsicAttributes.ref, Decl(react.d.ts, 7, 32)) + } +} + +=== file.tsx === +class MyComponent { +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) + + render() { +>render : Symbol(MyComponent.render, Decl(file.tsx, 0, 19)) + } + + props: { +>props : Symbol(MyComponent.props, Decl(file.tsx, 2, 3)) + + ref?: string; +>ref : Symbol(ref, Decl(file.tsx, 4, 10)) + } +} + +// Should be an OK +var x = ; +>x : Symbol(x, Decl(file.tsx, 10, 3)) +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) +>bar : Symbol(bar, Decl(file.tsx, 10, 20)) + + diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.types b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.types new file mode 100644 index 0000000000..e5b6326844 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution11.types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution11.tsx] //// + +=== react.d.ts === +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; +>props : any + } + interface IntrinsicAttributes { + ref?: string; +>ref : string + } +} + +=== file.tsx === +class MyComponent { +>MyComponent : MyComponent + + render() { +>render : () => void + } + + props: { +>props : { ref?: string; } + + ref?: string; +>ref : string + } +} + +// Should be an OK +var x = ; +>x : JSX.Element +> : JSX.Element +>MyComponent : typeof MyComponent +>bar : string + + diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.errors.txt b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.errors.txt new file mode 100644 index 0000000000..b20cb15130 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.errors.txt @@ -0,0 +1,38 @@ +file.tsx(13,28): error TS2322: Type 'number' is not assignable to type 'string'. +file.tsx(15,28): error TS2322: Type 'boolean' is not assignable to type 'string | number'. + + +==== react.d.ts (0 errors) ==== + declare module JSX { + interface Element { } + interface IntrinsicElements { + div: any; + } + interface ElementAttributesProperty { prop: any } + } + +==== file.tsx (2 errors) ==== + interface IProps { + primaryText: string, + [propName: string]: string | number + } + + function VerticalNavMenuItem(prop: IProps) { + return
props.primaryText
+ } + + function VerticalNav() { + return ( +
+ // error + ~~~~~~~~~~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. +!!! related TS6500 file.tsx:2:3: The expected type comes from property 'primaryText' which is declared here on type 'IProps' + // ok + // error + ~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'boolean' is not assignable to type 'string | number'. +!!! related TS6501 file.tsx:3:3: The expected type comes from this index signature. +
+ ) + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.js b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.js new file mode 100644 index 0000000000..26633239d3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.js @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution14.tsx] //// + +//// [react.d.ts] +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: any; + } + interface ElementAttributesProperty { prop: any } +} + +//// [file.tsx] +interface IProps { + primaryText: string, + [propName: string]: string | number +} + +function VerticalNavMenuItem(prop: IProps) { + return
props.primaryText
+} + +function VerticalNav() { + return ( +
+ // error + // ok + // error +
+ ) +} + +//// [file.jsx] +function VerticalNavMenuItem(prop) { + return
props.primaryText
; +} +function VerticalNav() { + return (
+ // error + // error + // ok + // ok + // error + // error +
); +} diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.symbols b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.symbols new file mode 100644 index 0000000000..4ab14a0ce6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.symbols @@ -0,0 +1,67 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution14.tsx] //// + +=== react.d.ts === +declare module JSX { +>JSX : Symbol(JSX, Decl(react.d.ts, 0, 0)) + + interface Element { } +>Element : Symbol(Element, Decl(react.d.ts, 0, 20)) + + interface IntrinsicElements { +>IntrinsicElements : Symbol(IntrinsicElements, Decl(react.d.ts, 1, 22)) + + div: any; +>div : Symbol(IntrinsicElements.div, Decl(react.d.ts, 2, 30)) + } + interface ElementAttributesProperty { prop: any } +>ElementAttributesProperty : Symbol(ElementAttributesProperty, Decl(react.d.ts, 4, 2)) +>prop : Symbol(ElementAttributesProperty.prop, Decl(react.d.ts, 5, 41)) +} + +=== file.tsx === +interface IProps { +>IProps : Symbol(IProps, Decl(file.tsx, 0, 0)) + + primaryText: string, +>primaryText : Symbol(IProps.primaryText, Decl(file.tsx, 0, 18)) + + [propName: string]: string | number +>propName : Symbol(propName, Decl(file.tsx, 2, 3)) +} + +function VerticalNavMenuItem(prop: IProps) { +>VerticalNavMenuItem : Symbol(VerticalNavMenuItem, Decl(file.tsx, 3, 1)) +>prop : Symbol(prop, Decl(file.tsx, 5, 29)) +>IProps : Symbol(IProps, Decl(file.tsx, 0, 0)) + + return
props.primaryText
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2, 30)) +>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2, 30)) +} + +function VerticalNav() { +>VerticalNav : Symbol(VerticalNav, Decl(file.tsx, 7, 1)) + + return ( +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2, 30)) + + // error +>VerticalNavMenuItem : Symbol(VerticalNavMenuItem, Decl(file.tsx, 3, 1)) +>primaryText : Symbol(primaryText, Decl(file.tsx, 12, 26)) + + // ok +>VerticalNavMenuItem : Symbol(VerticalNavMenuItem, Decl(file.tsx, 3, 1)) +>justRandomProp : Symbol(justRandomProp, Decl(file.tsx, 13, 26)) +>primaryText : Symbol(primaryText, Decl(file.tsx, 13, 45)) + + // error +>VerticalNavMenuItem : Symbol(VerticalNavMenuItem, Decl(file.tsx, 3, 1)) +>justRandomProp1 : Symbol(justRandomProp1, Decl(file.tsx, 14, 26)) +>primaryText : Symbol(primaryText, Decl(file.tsx, 14, 49)) + +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2, 30)) + + ) +} diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.types b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.types new file mode 100644 index 0000000000..8fc6f6c52b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution14.types @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution14.tsx] //// + +=== react.d.ts === +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: any; +>div : any + } + interface ElementAttributesProperty { prop: any } +>prop : any +} + +=== file.tsx === +interface IProps { + primaryText: string, +>primaryText : string + + [propName: string]: string | number +>propName : string +} + +function VerticalNavMenuItem(prop: IProps) { +>VerticalNavMenuItem : (prop: IProps) => JSX.Element +>prop : IProps + + return
props.primaryText
+>
props.primaryText
: JSX.Element +>div : any +>div : any +} + +function VerticalNav() { +>VerticalNav : () => JSX.Element + + return ( +>(
// error // ok // error
) : JSX.Element + +
+>
// error // ok // error
: JSX.Element +>div : any + + // error +> : JSX.Element +>VerticalNavMenuItem : (prop: IProps) => JSX.Element +>primaryText : number +>2 : 2 + + // ok +> : JSX.Element +>VerticalNavMenuItem : (prop: IProps) => JSX.Element +>justRandomProp : number +>2 : 2 +>primaryText : string +>"hello" : "hello" + + // error +> : JSX.Element +>VerticalNavMenuItem : (prop: IProps) => JSX.Element +>justRandomProp1 : boolean +>true : true +>primaryText : string +>"hello" : "hello" + +
+>div : any + + ) +} diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.errors.txt b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.errors.txt new file mode 100644 index 0000000000..2339359950 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.errors.txt @@ -0,0 +1,31 @@ +file.tsx(9,14): error TS2322: Type 'number' is not assignable to type 'string'. + + +==== react.d.ts (0 errors) ==== + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; + } + } + + interface Props { + foo: string; + } + +==== file.tsx (1 errors) ==== + export class MyComponent { + render() { + } + + props: { foo: string; } + } + + ; // ok + ; // should be an error + ~~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. +!!! related TS6500 file.tsx:5:12: The expected type comes from property 'foo' which is declared here on type '{ foo: string; }' + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.js b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.js new file mode 100644 index 0000000000..7f26c12c0e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.js @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution9.tsx] //// + +//// [react.d.ts] +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; + } +} + +interface Props { + foo: string; +} + +//// [file.tsx] +export class MyComponent { + render() { + } + + props: { foo: string; } +} + +; // ok +; // should be an error + + +//// [file.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyComponent = void 0; +class MyComponent { + render() { + } + props; +} +exports.MyComponent = MyComponent; +; // ok +; // should be an error diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.js.diff b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.js.diff new file mode 100644 index 0000000000..0f018fda46 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.js.diff @@ -0,0 +1,10 @@ +--- old.tsxAttributeResolution9.js ++++ new.tsxAttributeResolution9.js +@@= skipped -32, +32 lines =@@ + class MyComponent { + render() { + } ++ props; + } + exports.MyComponent = MyComponent; + ; // ok \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.symbols b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.symbols new file mode 100644 index 0000000000..3bfc66bf67 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution9.tsx] //// + +=== react.d.ts === +declare module JSX { +>JSX : Symbol(JSX, Decl(react.d.ts, 0, 0)) + + interface Element { } +>Element : Symbol(Element, Decl(react.d.ts, 0, 20)) + + interface IntrinsicElements { +>IntrinsicElements : Symbol(IntrinsicElements, Decl(react.d.ts, 1, 22)) + } + interface ElementAttributesProperty { +>ElementAttributesProperty : Symbol(ElementAttributesProperty, Decl(react.d.ts, 3, 2)) + + props; +>props : Symbol(ElementAttributesProperty.props, Decl(react.d.ts, 4, 38)) + } +} + +interface Props { +>Props : Symbol(Props, Decl(react.d.ts, 7, 1)) + + foo: string; +>foo : Symbol(Props.foo, Decl(react.d.ts, 9, 17)) +} + +=== file.tsx === +export class MyComponent { +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) + + render() { +>render : Symbol(MyComponent.render, Decl(file.tsx, 0, 26)) + } + + props: { foo: string; } +>props : Symbol(MyComponent.props, Decl(file.tsx, 2, 3)) +>foo : Symbol(foo, Decl(file.tsx, 4, 10)) +} + +; // ok +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) +>foo : Symbol(foo, Decl(file.tsx, 7, 12)) + +; // should be an error +>MyComponent : Symbol(MyComponent, Decl(file.tsx, 0, 0)) +>foo : Symbol(foo, Decl(file.tsx, 8, 12)) + diff --git a/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.types b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.types new file mode 100644 index 0000000000..462db8a823 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxAttributeResolution9.types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/jsx/tsxAttributeResolution9.tsx] //// + +=== react.d.ts === +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { + props; +>props : any + } +} + +interface Props { + foo: string; +>foo : string +} + +=== file.tsx === +export class MyComponent { +>MyComponent : MyComponent + + render() { +>render : () => void + } + + props: { foo: string; } +>props : { foo: string; } +>foo : string +} + +; // ok +> : JSX.Element +>MyComponent : typeof MyComponent +>foo : string + +; // should be an error +> : JSX.Element +>MyComponent : typeof MyComponent +>foo : number +>0 : 0 + diff --git a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName5.js b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName5.js index ab0acea61f..d333dc91fe 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName5.js +++ b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName5.js @@ -20,9 +20,42 @@ export class Text extends React.Component<{}, {}> { //// [app.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = void 0; -const React = require("react"); +const React = __importStar(require("react")); class Text extends React.Component { _tagName = 'div'; render() { diff --git a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName5.js.diff b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName5.js.diff index 8b3791148a..9f9727ad48 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName5.js.diff +++ b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName5.js.diff @@ -1,11 +1,11 @@ --- old.tsxDynamicTagName5.js +++ new.tsxDynamicTagName5.js -@@= skipped -21, +21 lines =@@ - "use strict"; +@@= skipped -54, +54 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = void 0; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); class Text extends React.Component { - constructor() { - super(...arguments); diff --git a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName7.js b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName7.js index 880acd1ed2..54fb21d210 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName7.js +++ b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName7.js @@ -20,9 +20,42 @@ export class Text extends React.Component<{}, {}> { //// [app.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = void 0; -const React = require("react"); +const React = __importStar(require("react")); class Text extends React.Component { _tagName = 'div'; render() { diff --git a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName7.js.diff b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName7.js.diff index d300173d96..ed980eb0f0 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName7.js.diff +++ b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName7.js.diff @@ -1,11 +1,11 @@ --- old.tsxDynamicTagName7.js +++ new.tsxDynamicTagName7.js -@@= skipped -21, +21 lines =@@ - "use strict"; +@@= skipped -54, +54 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = void 0; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); class Text extends React.Component { - constructor() { - super(...arguments); diff --git a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName8.js b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName8.js index ff90465586..a6f6d36899 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName8.js +++ b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName8.js @@ -20,9 +20,42 @@ export class Text extends React.Component<{}, {}> { //// [app.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = void 0; -const React = require("react"); +const React = __importStar(require("react")); class Text extends React.Component { _tagName = 'div'; render() { diff --git a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName8.js.diff b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName8.js.diff index e906dc3dc5..95b06f0074 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName8.js.diff +++ b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName8.js.diff @@ -1,11 +1,11 @@ --- old.tsxDynamicTagName8.js +++ new.tsxDynamicTagName8.js -@@= skipped -21, +21 lines =@@ - "use strict"; +@@= skipped -54, +54 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = void 0; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); class Text extends React.Component { - constructor() { - super(...arguments); diff --git a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName9.js b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName9.js index 87436fb1c7..c9eb03c1f6 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName9.js +++ b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName9.js @@ -20,9 +20,42 @@ export class Text extends React.Component<{}, {}> { //// [app.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = void 0; -const React = require("react"); +const React = __importStar(require("react")); class Text extends React.Component { _tagName = 'div'; render() { diff --git a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName9.js.diff b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName9.js.diff index 5789ef22d2..78677cef24 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName9.js.diff +++ b/testdata/baselines/reference/submodule/conformance/tsxDynamicTagName9.js.diff @@ -1,11 +1,11 @@ --- old.tsxDynamicTagName9.js +++ new.tsxDynamicTagName9.js -@@= skipped -21, +21 lines =@@ - "use strict"; +@@= skipped -54, +54 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = void 0; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); class Text extends React.Component { - constructor() { - super(...arguments); diff --git a/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.js b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.js new file mode 100644 index 0000000000..d92bc190ae --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.js @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/jsx/tsxElementResolution19.tsx] //// + +//// [react.d.ts] +declare module "react" { + +} + +//// [file1.tsx] +declare module JSX { + interface Element { } +} +export class MyClass { } + +//// [file2.tsx] +// Should not elide React import +import * as React from 'react'; +import {MyClass} from './file1'; + +; + + +//// [file1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +class MyClass { +} +exports.MyClass = MyClass; +//// [file2.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +// Should not elide React import +const React = __importStar(require("react")); +const file1_1 = require("./file1"); +React.createElement(file1_1.MyClass, null); diff --git a/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.js.diff b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.js.diff new file mode 100644 index 0000000000..13734f9ea6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.js.diff @@ -0,0 +1,11 @@ +--- old.tsxElementResolution19.js ++++ new.tsxElementResolution19.js +@@= skipped -62, +62 lines =@@ + })(); + Object.defineProperty(exports, "__esModule", { value: true }); + // Should not elide React import +-var React = __importStar(require("react")); +-var file1_1 = require("./file1"); ++const React = __importStar(require("react")); ++const file1_1 = require("./file1"); + React.createElement(file1_1.MyClass, null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.symbols b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.symbols new file mode 100644 index 0000000000..e437b2d312 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/jsx/tsxElementResolution19.tsx] //// + +=== react.d.ts === +declare module "react" { +>"react" : Symbol("react", Decl(react.d.ts, 0, 0)) + +} + +=== file1.tsx === +declare module JSX { +>JSX : Symbol(JSX, Decl(file1.tsx, 0, 0)) + + interface Element { } +>Element : Symbol(Element, Decl(file1.tsx, 0, 20)) +} +export class MyClass { } +>MyClass : Symbol(MyClass, Decl(file1.tsx, 2, 1)) + +=== file2.tsx === +// Should not elide React import +import * as React from 'react'; +>React : Symbol(React, Decl(file2.tsx, 1, 6)) + +import {MyClass} from './file1'; +>MyClass : Symbol(MyClass, Decl(file2.tsx, 2, 8)) + +; +>MyClass : Symbol(MyClass, Decl(file2.tsx, 2, 8)) + diff --git a/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.types b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.types new file mode 100644 index 0000000000..239629be63 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/jsx/tsxElementResolution19.tsx] //// + +=== react.d.ts === +declare module "react" { +>"react" : typeof import("react") + +} + +=== file1.tsx === +declare module JSX { + interface Element { } +} +export class MyClass { } +>MyClass : MyClass + +=== file2.tsx === +// Should not elide React import +import * as React from 'react'; +>React : typeof React + +import {MyClass} from './file1'; +>MyClass : typeof MyClass + +; +> : any +>MyClass : typeof MyClass + diff --git a/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.types.diff b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.types.diff new file mode 100644 index 0000000000..d7bcb9c49b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxElementResolution19.types.diff @@ -0,0 +1,9 @@ +--- old.tsxElementResolution19.types ++++ new.tsxElementResolution19.types +@@= skipped -21, +21 lines =@@ + >MyClass : typeof MyClass + + ; +-> : error ++> : any + >MyClass : typeof MyClass diff --git a/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit1.js b/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit1.js index a3dc49ff95..7a83398916 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit1.js +++ b/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit1.js @@ -32,9 +32,42 @@ export class Button extends React.Component { //// [button.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Button = void 0; -const React = require("react"); +const React = __importStar(require("react")); class Button extends React.Component { render() { return ; @@ -43,9 +76,42 @@ class Button extends React.Component { exports.Button = Button; //// [app.jsx] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.App = void 0; -const React = require("react"); +const React = __importStar(require("react")); // Should see var button_1 = require('./button') here const button_1 = require("./button"); class App extends React.Component { diff --git a/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit1.js.diff b/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit1.js.diff index 456a125e00..1b7535e354 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit1.js.diff @@ -1,20 +1,20 @@ --- old.tsxExternalModuleEmit1.js +++ new.tsxExternalModuleEmit1.js -@@= skipped -33, +33 lines =@@ - "use strict"; +@@= skipped -66, +66 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Button = void 0; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); class Button extends React.Component { render() { return ; -@@= skipped -11, +11 lines =@@ - "use strict"; +@@= skipped -44, +44 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.App = void 0; --var React = require("react"); -+const React = require("react"); +-var React = __importStar(require("react")); ++const React = __importStar(require("react")); // Should see var button_1 = require('./button') here -var button_1 = require("./button"); +const button_1 = require("./button"); diff --git a/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit2.js b/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit2.js index 13b136d219..bf90371a66 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit2.js +++ b/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit2.js @@ -29,8 +29,11 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const mod_1 = require("mod"); +const mod_1 = __importDefault(require("mod")); // Should see mod_1['default'] in emit here React.createElement(Foo, { handler: mod_1.default }); // Should see mod_1['default'] in emit here diff --git a/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit2.js.diff b/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit2.js.diff index eaa8490d6b..e2caf49b28 100644 --- a/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/tsxExternalModuleEmit2.js.diff @@ -1,11 +1,11 @@ --- old.tsxExternalModuleEmit2.js +++ new.tsxExternalModuleEmit2.js -@@= skipped -29, +29 lines =@@ - return __assign.apply(this, arguments); +@@= skipped -32, +32 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); --var mod_1 = require("mod"); -+const mod_1 = require("mod"); +-var mod_1 = __importDefault(require("mod")); ++const mod_1 = __importDefault(require("mod")); // Should see mod_1['default'] in emit here React.createElement(Foo, { handler: mod_1.default }); // Should see mod_1['default'] in emit here \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.errors.txt b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.errors.txt new file mode 100644 index 0000000000..5826a14fcd --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.errors.txt @@ -0,0 +1,23 @@ +file.tsx(9,14): error TS2786: 'Foo' cannot be used as a JSX component. + Its return type 'undefined' is not a valid JSX element. +file.tsx(10,12): error TS2786: 'Greet' cannot be used as a JSX component. + Its return type 'undefined' is not a valid JSX element. + + +==== file.tsx (2 errors) ==== + import React = require('react'); + + const Foo = (props: any) => undefined; + function Greet(x: {name?: string}) { + return undefined; + } + + // Error + const foo = ; + ~~~ +!!! error TS2786: 'Foo' cannot be used as a JSX component. +!!! error TS2786: Its return type 'undefined' is not a valid JSX element. + const G = ; + ~~~~~ +!!! error TS2786: 'Greet' cannot be used as a JSX component. +!!! error TS2786: Its return type 'undefined' is not a valid JSX element. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.js b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.js new file mode 100644 index 0000000000..b8735dd73c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx] //// + +//// [file.tsx] +import React = require('react'); + +const Foo = (props: any) => undefined; +function Greet(x: {name?: string}) { + return undefined; +} + +// Error +const foo = ; +const G = ; + +//// [file.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const React = require("react"); +const Foo = (props) => undefined; +function Greet(x) { + return undefined; +} +// Error +const foo = ; +const G = ; diff --git a/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.js.diff b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.js.diff new file mode 100644 index 0000000000..07fe1bb435 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.js.diff @@ -0,0 +1,11 @@ +--- old.tsxSfcReturnUndefinedStrictNullChecks.js ++++ new.tsxSfcReturnUndefinedStrictNullChecks.js +@@= skipped -14, +14 lines =@@ + //// [file.jsx] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-var React = require("react"); ++const React = require("react"); + const Foo = (props) => undefined; + function Greet(x) { + return undefined; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.symbols b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.symbols new file mode 100644 index 0000000000..91d7762217 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx] //// + +=== file.tsx === +import React = require('react'); +>React : Symbol(React, Decl(file.tsx, 0, 0)) + +const Foo = (props: any) => undefined; +>Foo : Symbol(Foo, Decl(file.tsx, 2, 5)) +>props : Symbol(props, Decl(file.tsx, 2, 13)) +>undefined : Symbol(undefined) + +function Greet(x: {name?: string}) { +>Greet : Symbol(Greet, Decl(file.tsx, 2, 38)) +>x : Symbol(x, Decl(file.tsx, 3, 15)) +>name : Symbol(name, Decl(file.tsx, 3, 19)) + + return undefined; +>undefined : Symbol(undefined) +} + +// Error +const foo = ; +>foo : Symbol(foo, Decl(file.tsx, 8, 5)) +>Foo : Symbol(Foo, Decl(file.tsx, 2, 5)) + +const G = ; +>G : Symbol(G, Decl(file.tsx, 9, 5)) +>Greet : Symbol(Greet, Decl(file.tsx, 2, 38)) + diff --git a/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.types b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.types new file mode 100644 index 0000000000..3e702b87b5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx] //// + +=== file.tsx === +import React = require('react'); +>React : typeof React + +const Foo = (props: any) => undefined; +>Foo : (props: any) => undefined +>(props: any) => undefined : (props: any) => undefined +>props : any +>undefined : undefined + +function Greet(x: {name?: string}) { +>Greet : (x: { name?: string | undefined; }) => undefined +>x : { name?: string | undefined; } +>name : string | undefined + + return undefined; +>undefined : undefined +} + +// Error +const foo = ; +>foo : JSX.Element +> : JSX.Element +>Foo : (props: any) => undefined + +const G = ; +>G : JSX.Element +> : JSX.Element +>Greet : (x: { name?: string | undefined; }) => undefined + diff --git a/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.types.diff b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.types.diff new file mode 100644 index 0000000000..f5111867c7 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxSfcReturnUndefinedStrictNullChecks.types.diff @@ -0,0 +1,19 @@ +--- old.tsxSfcReturnUndefinedStrictNullChecks.types ++++ new.tsxSfcReturnUndefinedStrictNullChecks.types +@@= skipped -10, +10 lines =@@ + >undefined : undefined + + function Greet(x: {name?: string}) { +->Greet : (x: { name?: string; }) => undefined +->x : { name?: string; } ++>Greet : (x: { name?: string | undefined; }) => undefined ++>x : { name?: string | undefined; } + >name : string | undefined + + return undefined; +@@= skipped -17, +17 lines =@@ + const G = ; + >G : JSX.Element + > : JSX.Element +->Greet : (x: { name?: string; }) => undefined ++>Greet : (x: { name?: string | undefined; }) => undefined diff --git a/testdata/baselines/reference/submodule/conformance/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt.diff deleted file mode 100644 index f48d3c13b3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt -+++ new.tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt -@@= skipped -0, +0 lines =@@ --tsxSpreadChildrenInvalidType.tsx(17,12): error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+tsxSpreadChildrenInvalidType.tsx(17,12): error TS2875: This JSX tag requires the module path 'react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. - tsxSpreadChildrenInvalidType.tsx(21,9): error TS2609: JSX spread child must be an array type. - - -@@= skipped -20, +20 lines =@@ - function Todo(prop: { key: number, todo: string }) { - return
{prop.key.toString() + prop.todo}
; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --!!! error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -+!!! error TS2875: This JSX tag requires the module path 'react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. - } - function TodoList({ todos }: TodoListProps) { - return
\ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.errors.txt b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.errors.txt new file mode 100644 index 0000000000..81a5807ab3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.errors.txt @@ -0,0 +1,144 @@ +file.tsx(12,22): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. + Property 'extraProp' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. +file.tsx(13,13): error TS2769: No overload matches this call. + The last overload gave the following error. + Property 'yy1' is missing in type '{ yy: number; }' but required in type '{ yy: number; yy1: string; }'. +file.tsx(14,31): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'boolean' is not assignable to type 'string'. +file.tsx(16,31): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ yy: number; yy1: string; y1: number; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. + Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. +file.tsx(17,13): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ yy1: string; yy: boolean; }' is not assignable to type '{ yy: number; yy1: string; }'. + Types of property 'yy' are incompatible. + Type 'boolean' is not assignable to type 'number'. +file.tsx(25,13): error TS2769: No overload matches this call. + The last overload gave the following error. + Property 'yy' is missing in type '{ "extra-data": true; }' but required in type '{ yy: string; direction?: number; }'. +file.tsx(26,40): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'string' is not assignable to type 'number'. +file.tsx(33,32): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'string' is not assignable to type 'boolean'. +file.tsx(34,29): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'string' is not assignable to type 'boolean'. +file.tsx(35,29): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'string' is not assignable to type 'boolean'. +file.tsx(36,29): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'string' is not assignable to type 'boolean'. + + +==== file.tsx (11 errors) ==== + import React = require('react') + declare function OneThing(): JSX.Element; + declare function OneThing(l: {yy: number, yy1: string}): JSX.Element; + + let obj = { + yy: 10, + yy1: "hello" + } + let obj2: any; + + // Error + const c0 = ; // extra property; + ~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. +!!! error TS2769: Property 'extraProp' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. +!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c1 = ; // missing property; + ~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Property 'yy1' is missing in type '{ yy: number; }' but required in type '{ yy: number; yy1: string; }'. +!!! related TS2728 file.tsx:3:43: 'yy1' is declared here. +!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c2 = ; // type incompatible; + ~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +!!! related TS6500 file.tsx:3:43: The expected type comes from property 'yy1' which is declared here on type 'IntrinsicAttributes & { yy: number; yy1: string; }' +!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c3 = ; // This is OK because all attribute are spread + const c4 = ; // extra property; + ~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ yy: number; yy1: string; y1: number; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. +!!! error TS2769: Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. +!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c5 = ; // type incompatible; + ~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ yy1: string; yy: boolean; }' is not assignable to type '{ yy: number; yy1: string; }'. +!!! error TS2769: Types of property 'yy' are incompatible. +!!! error TS2769: Type 'boolean' is not assignable to type 'number'. +!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not + const c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not + + declare function TestingOneThing(j: {"extra-data": string}): JSX.Element; + declare function TestingOneThing(n: {yy: string, direction?: number}): JSX.Element; + + // Error + const d1 = + ~~~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Property 'yy' is missing in type '{ "extra-data": true; }' but required in type '{ yy: string; direction?: number; }'. +!!! related TS2728 file.tsx:22:38: 'yy' is declared here. +!!! related TS2771 file.tsx:22:18: The last overload is declared here. + const d2 = + ~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'string' is not assignable to type 'number'. +!!! related TS6500 file.tsx:22:50: The expected type comes from property 'direction' which is declared here on type 'IntrinsicAttributes & { yy: string; direction?: number; }' +!!! related TS2771 file.tsx:22:18: The last overload is declared here. + + declare function TestingOptional(a: {y1?: string, y2?: number}): JSX.Element; + declare function TestingOptional(a: {y1?: string, y2?: number, children: JSX.Element}): JSX.Element; + declare function TestingOptional(a: {y1: boolean, y2?: number, y3: boolean}): JSX.Element; + + // Error + const e1 = + ~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'string' is not assignable to type 'boolean'. +!!! related TS6500 file.tsx:30:64: The expected type comes from property 'y3' which is declared here on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }' +!!! related TS2771 file.tsx:30:18: The last overload is declared here. + const e2 = + ~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'string' is not assignable to type 'boolean'. +!!! related TS6500 file.tsx:30:38: The expected type comes from property 'y1' which is declared here on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }' +!!! related TS2771 file.tsx:30:18: The last overload is declared here. + const e3 = + ~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'string' is not assignable to type 'boolean'. +!!! related TS6500 file.tsx:30:38: The expected type comes from property 'y1' which is declared here on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }' +!!! related TS2771 file.tsx:30:18: The last overload is declared here. + const e4 = Hi + ~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'string' is not assignable to type 'boolean'. +!!! related TS6500 file.tsx:30:38: The expected type comes from property 'y1' which is declared here on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }' +!!! related TS2771 file.tsx:30:18: The last overload is declared here. + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.errors.txt.diff new file mode 100644 index 0000000000..bdb9658190 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.errors.txt.diff @@ -0,0 +1,254 @@ +--- old.tsxStatelessFunctionComponentOverload4.errors.txt ++++ new.tsxStatelessFunctionComponentOverload4.errors.txt +@@= skipped -0, +0 lines =@@ + file.tsx(12,22): error TS2769: No overload matches this call. +- Overload 1 of 2, '(): Element', gave the following error. +- Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes'. +- Property 'extraProp' does not exist on type 'IntrinsicAttributes'. +- Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++ The last overload gave the following error. + Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. + Property 'extraProp' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. + file.tsx(13,13): error TS2769: No overload matches this call. +- Overload 1 of 2, '(): Element', gave the following error. +- Type '{ yy: number; }' is not assignable to type 'IntrinsicAttributes'. +- Property 'yy' does not exist on type 'IntrinsicAttributes'. +- Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++ The last overload gave the following error. + Property 'yy1' is missing in type '{ yy: number; }' but required in type '{ yy: number; yy1: string; }'. + file.tsx(14,31): error TS2769: No overload matches this call. +- Overload 1 of 2, '(): Element', gave the following error. +- Type '{ yy: number; yy1: true; }' is not assignable to type 'IntrinsicAttributes'. +- Property 'yy1' does not exist on type 'IntrinsicAttributes'. +- Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++ The last overload gave the following error. + Type 'boolean' is not assignable to type 'string'. + file.tsx(16,31): error TS2769: No overload matches this call. +- Overload 1 of 2, '(): Element', gave the following error. +- Type '{ yy: number; yy1: string; y1: number; }' is not assignable to type 'IntrinsicAttributes'. +- Property 'y1' does not exist on type 'IntrinsicAttributes'. +- Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++ The last overload gave the following error. + Type '{ yy: number; yy1: string; y1: number; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. + Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. + file.tsx(17,13): error TS2769: No overload matches this call. +- Overload 1 of 2, '(): Element', gave the following error. +- Type '{ yy1: string; yy: boolean; }' has no properties in common with type 'IntrinsicAttributes'. +- Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++ The last overload gave the following error. + Type '{ yy1: string; yy: boolean; }' is not assignable to type '{ yy: number; yy1: string; }'. + Types of property 'yy' are incompatible. + Type 'boolean' is not assignable to type 'number'. + file.tsx(25,13): error TS2769: No overload matches this call. +- Overload 1 of 2, '(j: { "extra-data": string; }): Element', gave the following error. +- Type '{ "extra-data": true; }' is not assignable to type '{ "extra-data": string; }'. +- Types of property '"extra-data"' are incompatible. +- Type 'boolean' is not assignable to type 'string'. +- Overload 2 of 2, '(n: { yy: string; direction?: number; }): Element', gave the following error. ++ The last overload gave the following error. + Property 'yy' is missing in type '{ "extra-data": true; }' but required in type '{ yy: string; direction?: number; }'. +-file.tsx(26,13): error TS2769: No overload matches this call. +- Overload 1 of 2, '(j: { "extra-data": string; }): Element', gave the following error. +- Type '{ yy: string; direction: string; }' is not assignable to type 'IntrinsicAttributes & { "extra-data": string; }'. +- Property 'yy' does not exist on type 'IntrinsicAttributes & { "extra-data": string; }'. +- Overload 2 of 2, '(n: { yy: string; direction?: number; }): Element', gave the following error. ++file.tsx(26,40): error TS2769: No overload matches this call. ++ The last overload gave the following error. + Type 'string' is not assignable to type 'number'. +-file.tsx(33,13): error TS2769: No overload matches this call. +- Overload 1 of 3, '(a: { y1?: string; y2?: number; }): Element', gave the following error. +- Type 'boolean' is not assignable to type 'string'. +- Overload 2 of 3, '(a: { y1?: string; y2?: number; children: Element; }): Element', gave the following error. +- Type 'boolean' is not assignable to type 'string'. +- Overload 3 of 3, '(a: { y1: boolean; y2?: number; y3: boolean; }): Element', gave the following error. +- Type 'string' is not assignable to type 'boolean'. +-file.tsx(34,13): error TS2769: No overload matches this call. +- Overload 1 of 3, '(a: { y1?: string; y2?: number; }): Element', gave the following error. +- Type '{ y1: string; y2: number; y3: true; }' is not assignable to type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +- Property 'y3' does not exist on type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +- Overload 2 of 3, '(a: { y1?: string; y2?: number; children: Element; }): Element', gave the following error. +- Type '{ y1: string; y2: number; y3: true; }' is not assignable to type 'IntrinsicAttributes & { y1?: string; y2?: number; children: Element; }'. +- Property 'y3' does not exist on type 'IntrinsicAttributes & { y1?: string; y2?: number; children: Element; }'. +- Overload 3 of 3, '(a: { y1: boolean; y2?: number; y3: boolean; }): Element', gave the following error. +- Type 'string' is not assignable to type 'boolean'. +-file.tsx(35,13): error TS2769: No overload matches this call. +- Overload 1 of 3, '(a: { y1?: string; y2?: number; }): Element', gave the following error. +- Type '{ y1: string; y2: number; children: string; }' is not assignable to type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +- Property 'children' does not exist on type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +- Overload 2 of 3, '(a: { y1?: string; y2?: number; children: Element; }): Element', gave the following error. +- Type 'string' is not assignable to type 'Element'. +- Overload 3 of 3, '(a: { y1: boolean; y2?: number; y3: boolean; }): Element', gave the following error. +- Type 'string' is not assignable to type 'boolean'. +-file.tsx(36,13): error TS2769: No overload matches this call. +- Overload 1 of 3, '(a: { y1?: string; y2?: number; }): Element', gave the following error. +- Type '{ y1: string; y2: number; children: string; }' is not assignable to type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +- Property 'children' does not exist on type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +- Overload 2 of 3, '(a: { y1?: string; y2?: number; children: Element; }): Element', gave the following error. +- 'TestingOptional' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of 'children' is 'Element'. +- Overload 3 of 3, '(a: { y1: boolean; y2?: number; y3: boolean; }): Element', gave the following error. ++file.tsx(33,32): error TS2769: No overload matches this call. ++ The last overload gave the following error. ++ Type 'string' is not assignable to type 'boolean'. ++file.tsx(34,29): error TS2769: No overload matches this call. ++ The last overload gave the following error. ++ Type 'string' is not assignable to type 'boolean'. ++file.tsx(35,29): error TS2769: No overload matches this call. ++ The last overload gave the following error. ++ Type 'string' is not assignable to type 'boolean'. ++file.tsx(36,29): error TS2769: No overload matches this call. ++ The last overload gave the following error. + Type 'string' is not assignable to type 'boolean'. + + +@@= skipped -92, +51 lines =@@ + const c0 = ; // extra property; + ~~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. +-!!! error TS2769: Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes'. +-!!! error TS2769: Property 'extraProp' does not exist on type 'IntrinsicAttributes'. +-!!! error TS2769: Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. + !!! error TS2769: Property 'extraProp' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. ++!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c1 = ; // missing property; + ~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. +-!!! error TS2769: Type '{ yy: number; }' is not assignable to type 'IntrinsicAttributes'. +-!!! error TS2769: Property 'yy' does not exist on type 'IntrinsicAttributes'. +-!!! error TS2769: Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Property 'yy1' is missing in type '{ yy: number; }' but required in type '{ yy: number; yy1: string; }'. + !!! related TS2728 file.tsx:3:43: 'yy1' is declared here. ++!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c2 = ; // type incompatible; + ~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. +-!!! error TS2769: Type '{ yy: number; yy1: true; }' is not assignable to type 'IntrinsicAttributes'. +-!!! error TS2769: Property 'yy1' does not exist on type 'IntrinsicAttributes'. +-!!! error TS2769: Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type 'boolean' is not assignable to type 'string'. + !!! related TS6500 file.tsx:3:43: The expected type comes from property 'yy1' which is declared here on type 'IntrinsicAttributes & { yy: number; yy1: string; }' ++!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c3 = ; // This is OK because all attribute are spread + const c4 = ; // extra property; + ~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. +-!!! error TS2769: Type '{ yy: number; yy1: string; y1: number; }' is not assignable to type 'IntrinsicAttributes'. +-!!! error TS2769: Property 'y1' does not exist on type 'IntrinsicAttributes'. +-!!! error TS2769: Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ yy: number; yy1: string; y1: number; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. + !!! error TS2769: Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. ++!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c5 = ; // type incompatible; + ~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. +-!!! error TS2769: Type '{ yy1: string; yy: boolean; }' has no properties in common with type 'IntrinsicAttributes'. +-!!! error TS2769: Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ yy1: string; yy: boolean; }' is not assignable to type '{ yy: number; yy1: string; }'. + !!! error TS2769: Types of property 'yy' are incompatible. + !!! error TS2769: Type 'boolean' is not assignable to type 'number'. ++!!! related TS2771 file.tsx:3:18: The last overload is declared here. + const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not + const c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not + +@@= skipped -53, +44 lines =@@ + const d1 = + ~~~~~~~~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(j: { "extra-data": string; }): Element', gave the following error. +-!!! error TS2769: Type '{ "extra-data": true; }' is not assignable to type '{ "extra-data": string; }'. +-!!! error TS2769: Types of property '"extra-data"' are incompatible. +-!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +-!!! error TS2769: Overload 2 of 2, '(n: { yy: string; direction?: number; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Property 'yy' is missing in type '{ "extra-data": true; }' but required in type '{ yy: string; direction?: number; }'. + !!! related TS2728 file.tsx:22:38: 'yy' is declared here. ++!!! related TS2771 file.tsx:22:18: The last overload is declared here. + const d2 = +- ~~~~~~~~~~~~~~~ ++ ~~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 2, '(j: { "extra-data": string; }): Element', gave the following error. +-!!! error TS2769: Type '{ yy: string; direction: string; }' is not assignable to type 'IntrinsicAttributes & { "extra-data": string; }'. +-!!! error TS2769: Property 'yy' does not exist on type 'IntrinsicAttributes & { "extra-data": string; }'. +-!!! error TS2769: Overload 2 of 2, '(n: { yy: string; direction?: number; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type 'string' is not assignable to type 'number'. + !!! related TS6500 file.tsx:22:50: The expected type comes from property 'direction' which is declared here on type 'IntrinsicAttributes & { yy: string; direction?: number; }' ++!!! related TS2771 file.tsx:22:18: The last overload is declared here. + + declare function TestingOptional(a: {y1?: string, y2?: number}): JSX.Element; + declare function TestingOptional(a: {y1?: string, y2?: number, children: JSX.Element}): JSX.Element; +@@= skipped -23, +18 lines =@@ + + // Error + const e1 = +- ~~~~~~~~~~~~~~~ ++ ~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(a: { y1?: string; y2?: number; }): Element', gave the following error. +-!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +-!!! error TS2769: Overload 2 of 3, '(a: { y1?: string; y2?: number; children: Element; }): Element', gave the following error. +-!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +-!!! error TS2769: Overload 3 of 3, '(a: { y1: boolean; y2?: number; y3: boolean; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type 'string' is not assignable to type 'boolean'. +-!!! related TS6500 file.tsx:28:38: The expected type comes from property 'y1' which is declared here on type 'IntrinsicAttributes & { y1?: string; y2?: number; }' +-!!! related TS6500 file.tsx:29:38: The expected type comes from property 'y1' which is declared here on type 'IntrinsicAttributes & { y1?: string; y2?: number; children: Element; }' + !!! related TS6500 file.tsx:30:64: The expected type comes from property 'y3' which is declared here on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }' ++!!! related TS2771 file.tsx:30:18: The last overload is declared here. + const e2 = +- ~~~~~~~~~~~~~~~ ++ ~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(a: { y1?: string; y2?: number; }): Element', gave the following error. +-!!! error TS2769: Type '{ y1: string; y2: number; y3: true; }' is not assignable to type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +-!!! error TS2769: Property 'y3' does not exist on type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +-!!! error TS2769: Overload 2 of 3, '(a: { y1?: string; y2?: number; children: Element; }): Element', gave the following error. +-!!! error TS2769: Type '{ y1: string; y2: number; y3: true; }' is not assignable to type 'IntrinsicAttributes & { y1?: string; y2?: number; children: Element; }'. +-!!! error TS2769: Property 'y3' does not exist on type 'IntrinsicAttributes & { y1?: string; y2?: number; children: Element; }'. +-!!! error TS2769: Overload 3 of 3, '(a: { y1: boolean; y2?: number; y3: boolean; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type 'string' is not assignable to type 'boolean'. + !!! related TS6500 file.tsx:30:38: The expected type comes from property 'y1' which is declared here on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }' ++!!! related TS2771 file.tsx:30:18: The last overload is declared here. + const e3 = +- ~~~~~~~~~~~~~~~ ++ ~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(a: { y1?: string; y2?: number; }): Element', gave the following error. +-!!! error TS2769: Type '{ y1: string; y2: number; children: string; }' is not assignable to type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +-!!! error TS2769: Property 'children' does not exist on type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +-!!! error TS2769: Overload 2 of 3, '(a: { y1?: string; y2?: number; children: Element; }): Element', gave the following error. +-!!! error TS2769: Type 'string' is not assignable to type 'Element'. +-!!! error TS2769: Overload 3 of 3, '(a: { y1: boolean; y2?: number; y3: boolean; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type 'string' is not assignable to type 'boolean'. +-!!! related TS6500 file.tsx:29:64: The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & { y1?: string; y2?: number; children: Element; }' + !!! related TS6500 file.tsx:30:38: The expected type comes from property 'y1' which is declared here on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }' ++!!! related TS2771 file.tsx:30:18: The last overload is declared here. + const e4 = Hi +- ~~~~~~~~~~~~~~~ ++ ~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(a: { y1?: string; y2?: number; }): Element', gave the following error. +-!!! error TS2769: Type '{ y1: string; y2: number; children: string; }' is not assignable to type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +-!!! error TS2769: Property 'children' does not exist on type 'IntrinsicAttributes & { y1?: string; y2?: number; }'. +-!!! error TS2769: Overload 2 of 3, '(a: { y1?: string; y2?: number; children: Element; }): Element', gave the following error. +-!!! error TS2769: 'TestingOptional' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of 'children' is 'Element'. +-!!! error TS2769: Overload 3 of 3, '(a: { y1: boolean; y2?: number; y3: boolean; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type 'string' is not assignable to type 'boolean'. +-!!! related TS6500 file.tsx:29:64: The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & { y1?: string; y2?: number; children: Element; }' + !!! related TS6500 file.tsx:30:38: The expected type comes from property 'y1' which is declared here on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }' ++!!! related TS2771 file.tsx:30:18: The last overload is declared here. + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.js b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.js new file mode 100644 index 0000000000..d77bf94be3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.js @@ -0,0 +1,67 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx] //// + +//// [file.tsx] +import React = require('react') +declare function OneThing(): JSX.Element; +declare function OneThing(l: {yy: number, yy1: string}): JSX.Element; + +let obj = { + yy: 10, + yy1: "hello" +} +let obj2: any; + +// Error +const c0 = ; // extra property; +const c1 = ; // missing property; +const c2 = ; // type incompatible; +const c3 = ; // This is OK because all attribute are spread +const c4 = ; // extra property; +const c5 = ; // type incompatible; +const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +const c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not + +declare function TestingOneThing(j: {"extra-data": string}): JSX.Element; +declare function TestingOneThing(n: {yy: string, direction?: number}): JSX.Element; + +// Error +const d1 = +const d2 = + +declare function TestingOptional(a: {y1?: string, y2?: number}): JSX.Element; +declare function TestingOptional(a: {y1?: string, y2?: number, children: JSX.Element}): JSX.Element; +declare function TestingOptional(a: {y1: boolean, y2?: number, y3: boolean}): JSX.Element; + +// Error +const e1 = +const e2 = +const e3 = +const e4 = Hi + + +//// [file.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const React = require("react"); +let obj = { + yy: 10, + yy1: "hello" +}; +let obj2; +// Error +const c0 = ; // extra property; +const c1 = ; // missing property; +const c2 = ; // type incompatible; +const c3 = ; // This is OK because all attribute are spread +const c4 = ; // extra property; +const c5 = ; // type incompatible; +const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +const c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +// Error +const d1 = ; +const d2 = ; +// Error +const e1 = ; +const e2 = ; +const e3 = ; +const e4 = Hi; diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.js.diff b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.js.diff new file mode 100644 index 0000000000..f973519b54 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.js.diff @@ -0,0 +1,11 @@ +--- old.tsxStatelessFunctionComponentOverload4.js ++++ new.tsxStatelessFunctionComponentOverload4.js +@@= skipped -41, +41 lines =@@ + //// [file.jsx] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-var React = require("react"); ++const React = require("react"); + let obj = { + yy: 10, + yy1: "hello" \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.symbols b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.symbols new file mode 100644 index 0000000000..b2d468e69d --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.symbols @@ -0,0 +1,161 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx] //// + +=== file.tsx === +import React = require('react') +>React : Symbol(React, Decl(file.tsx, 0, 0)) + +declare function OneThing(): JSX.Element; +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +declare function OneThing(l: {yy: number, yy1: string}): JSX.Element; +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>l : Symbol(l, Decl(file.tsx, 2, 26)) +>yy : Symbol(yy, Decl(file.tsx, 2, 30)) +>yy1 : Symbol(yy1, Decl(file.tsx, 2, 41)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +let obj = { +>obj : Symbol(obj, Decl(file.tsx, 4, 3)) + + yy: 10, +>yy : Symbol(yy, Decl(file.tsx, 4, 11)) + + yy1: "hello" +>yy1 : Symbol(yy1, Decl(file.tsx, 5, 11)) +} +let obj2: any; +>obj2 : Symbol(obj2, Decl(file.tsx, 8, 3)) + +// Error +const c0 = ; // extra property; +>c0 : Symbol(c0, Decl(file.tsx, 11, 5)) +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>extraProp : Symbol(extraProp, Decl(file.tsx, 11, 20)) + +const c1 = ; // missing property; +>c1 : Symbol(c1, Decl(file.tsx, 12, 5)) +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>yy : Symbol(yy, Decl(file.tsx, 12, 20)) + +const c2 = ; // type incompatible; +>c2 : Symbol(c2, Decl(file.tsx, 13, 5)) +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>obj : Symbol(obj, Decl(file.tsx, 4, 3)) +>yy1 : Symbol(yy1, Decl(file.tsx, 13, 29)) + +const c3 = ; // This is OK because all attribute are spread +>c3 : Symbol(c3, Decl(file.tsx, 14, 5)) +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>obj : Symbol(obj, Decl(file.tsx, 4, 3)) +>extra : Symbol(extra, Decl(file.tsx, 14, 35)) + +const c4 = ; // extra property; +>c4 : Symbol(c4, Decl(file.tsx, 15, 5)) +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>obj : Symbol(obj, Decl(file.tsx, 4, 3)) +>y1 : Symbol(y1, Decl(file.tsx, 15, 29)) + +const c5 = ; // type incompatible; +>c5 : Symbol(c5, Decl(file.tsx, 16, 5)) +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>obj : Symbol(obj, Decl(file.tsx, 4, 3)) +>yy : Symbol(yy, Decl(file.tsx, 16, 35)) + +const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +>c6 : Symbol(c6, Decl(file.tsx, 17, 5)) +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>obj2 : Symbol(obj2, Decl(file.tsx, 8, 3)) +>extra : Symbol(extra, Decl(file.tsx, 17, 36)) + +const c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +>c7 : Symbol(c7, Decl(file.tsx, 18, 5)) +>OneThing : Symbol(OneThing, Decl(file.tsx, 0, 31), Decl(file.tsx, 1, 41)) +>obj2 : Symbol(obj2, Decl(file.tsx, 8, 3)) +>yy : Symbol(yy, Decl(file.tsx, 18, 30)) + +declare function TestingOneThing(j: {"extra-data": string}): JSX.Element; +>TestingOneThing : Symbol(TestingOneThing, Decl(file.tsx, 18, 37), Decl(file.tsx, 20, 73)) +>j : Symbol(j, Decl(file.tsx, 20, 33)) +>"extra-data" : Symbol("extra-data", Decl(file.tsx, 20, 37)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +declare function TestingOneThing(n: {yy: string, direction?: number}): JSX.Element; +>TestingOneThing : Symbol(TestingOneThing, Decl(file.tsx, 18, 37), Decl(file.tsx, 20, 73)) +>n : Symbol(n, Decl(file.tsx, 21, 33)) +>yy : Symbol(yy, Decl(file.tsx, 21, 37)) +>direction : Symbol(direction, Decl(file.tsx, 21, 48)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +// Error +const d1 = +>d1 : Symbol(d1, Decl(file.tsx, 24, 5)) +>TestingOneThing : Symbol(TestingOneThing, Decl(file.tsx, 18, 37), Decl(file.tsx, 20, 73)) +>extra-data : Symbol(extra-data, Decl(file.tsx, 24, 27)) + +const d2 = +>d2 : Symbol(d2, Decl(file.tsx, 25, 5)) +>TestingOneThing : Symbol(TestingOneThing, Decl(file.tsx, 18, 37), Decl(file.tsx, 20, 73)) +>yy : Symbol(yy, Decl(file.tsx, 25, 27)) +>direction : Symbol(direction, Decl(file.tsx, 25, 38)) + +declare function TestingOptional(a: {y1?: string, y2?: number}): JSX.Element; +>TestingOptional : Symbol(TestingOptional, Decl(file.tsx, 25, 58), Decl(file.tsx, 27, 77), Decl(file.tsx, 28, 100)) +>a : Symbol(a, Decl(file.tsx, 27, 33)) +>y1 : Symbol(y1, Decl(file.tsx, 27, 37)) +>y2 : Symbol(y2, Decl(file.tsx, 27, 49)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +declare function TestingOptional(a: {y1?: string, y2?: number, children: JSX.Element}): JSX.Element; +>TestingOptional : Symbol(TestingOptional, Decl(file.tsx, 25, 58), Decl(file.tsx, 27, 77), Decl(file.tsx, 28, 100)) +>a : Symbol(a, Decl(file.tsx, 28, 33)) +>y1 : Symbol(y1, Decl(file.tsx, 28, 37)) +>y2 : Symbol(y2, Decl(file.tsx, 28, 49)) +>children : Symbol(children, Decl(file.tsx, 28, 62)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +declare function TestingOptional(a: {y1: boolean, y2?: number, y3: boolean}): JSX.Element; +>TestingOptional : Symbol(TestingOptional, Decl(file.tsx, 25, 58), Decl(file.tsx, 27, 77), Decl(file.tsx, 28, 100)) +>a : Symbol(a, Decl(file.tsx, 29, 33)) +>y1 : Symbol(y1, Decl(file.tsx, 29, 37)) +>y2 : Symbol(y2, Decl(file.tsx, 29, 49)) +>y3 : Symbol(y3, Decl(file.tsx, 29, 62)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +// Error +const e1 = +>e1 : Symbol(e1, Decl(file.tsx, 32, 5)) +>TestingOptional : Symbol(TestingOptional, Decl(file.tsx, 25, 58), Decl(file.tsx, 27, 77), Decl(file.tsx, 28, 100)) +>y1 : Symbol(y1, Decl(file.tsx, 32, 27)) +>y3 : Symbol(y3, Decl(file.tsx, 32, 30)) + +const e2 = +>e2 : Symbol(e2, Decl(file.tsx, 33, 5)) +>TestingOptional : Symbol(TestingOptional, Decl(file.tsx, 25, 58), Decl(file.tsx, 27, 77), Decl(file.tsx, 28, 100)) +>y1 : Symbol(y1, Decl(file.tsx, 33, 27)) +>y2 : Symbol(y2, Decl(file.tsx, 33, 38)) +>y3 : Symbol(y3, Decl(file.tsx, 33, 48)) + +const e3 = +>e3 : Symbol(e3, Decl(file.tsx, 34, 5)) +>TestingOptional : Symbol(TestingOptional, Decl(file.tsx, 25, 58), Decl(file.tsx, 27, 77), Decl(file.tsx, 28, 100)) +>y1 : Symbol(y1, Decl(file.tsx, 34, 27)) +>y2 : Symbol(y2, Decl(file.tsx, 34, 38)) +>children : Symbol(children, Decl(file.tsx, 34, 48)) + +const e4 = Hi +>e4 : Symbol(e4, Decl(file.tsx, 35, 5)) +>TestingOptional : Symbol(TestingOptional, Decl(file.tsx, 25, 58), Decl(file.tsx, 27, 77), Decl(file.tsx, 28, 100)) +>y1 : Symbol(y1, Decl(file.tsx, 35, 27)) +>y2 : Symbol(y2, Decl(file.tsx, 35, 38)) +>TestingOptional : Symbol(TestingOptional, Decl(file.tsx, 25, 58), Decl(file.tsx, 27, 77), Decl(file.tsx, 28, 100)) + diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.types b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.types new file mode 100644 index 0000000000..2a66538ede --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload4.types @@ -0,0 +1,181 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx] //// + +=== file.tsx === +import React = require('react') +>React : typeof React + +declare function OneThing(): JSX.Element; +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>JSX : any + +declare function OneThing(l: {yy: number, yy1: string}): JSX.Element; +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>l : { yy: number; yy1: string; } +>yy : number +>yy1 : string +>JSX : any + +let obj = { +>obj : { yy: number; yy1: string; } +>{ yy: 10, yy1: "hello"} : { yy: number; yy1: string; } + + yy: 10, +>yy : number +>10 : 10 + + yy1: "hello" +>yy1 : string +>"hello" : "hello" +} +let obj2: any; +>obj2 : any + +// Error +const c0 = ; // extra property; +>c0 : JSX.Element +> : JSX.Element +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>extraProp : true + +const c1 = ; // missing property; +>c1 : JSX.Element +> : JSX.Element +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>yy : number +>10 : 10 + +const c2 = ; // type incompatible; +>c2 : JSX.Element +> : JSX.Element +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>obj : { yy: number; yy1: string; } +>yy1 : true + +const c3 = ; // This is OK because all attribute are spread +>c3 : JSX.Element +> : JSX.Element +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>obj : { yy: number; yy1: string; } +>{extra: "extra attr"} : { extra: string; } +>extra : string +>"extra attr" : "extra attr" + +const c4 = ; // extra property; +>c4 : JSX.Element +> : JSX.Element +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>obj : { yy: number; yy1: string; } +>y1 : number +>10000 : 10000 + +const c5 = ; // type incompatible; +>c5 : JSX.Element +> : JSX.Element +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>obj : { yy: number; yy1: string; } +>{yy: true} : { yy: boolean; } +>yy : boolean +>true : true + +const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +>c6 : JSX.Element +> : JSX.Element +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>obj2 : any +>{extra: "extra attr"} : { extra: string; } +>extra : string +>"extra attr" : "extra attr" + +const c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +>c7 : JSX.Element +> : JSX.Element +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } +>obj2 : any +>yy : true + +declare function TestingOneThing(j: {"extra-data": string}): JSX.Element; +>TestingOneThing : { (j: { "extra-data": string; }): JSX.Element; (n: { yy: string; direction?: number; }): JSX.Element; } +>j : { "extra-data": string; } +>"extra-data" : string +>JSX : any + +declare function TestingOneThing(n: {yy: string, direction?: number}): JSX.Element; +>TestingOneThing : { (j: { "extra-data": string; }): JSX.Element; (n: { yy: string; direction?: number; }): JSX.Element; } +>n : { yy: string; direction?: number; } +>yy : string +>direction : number +>JSX : any + +// Error +const d1 = +>d1 : JSX.Element +> : JSX.Element +>TestingOneThing : { (j: { "extra-data": string; }): JSX.Element; (n: { yy: string; direction?: number; }): JSX.Element; } +>extra-data : true + +const d2 = +>d2 : JSX.Element +> : JSX.Element +>TestingOneThing : { (j: { "extra-data": string; }): JSX.Element; (n: { yy: string; direction?: number; }): JSX.Element; } +>yy : string +>direction : string + +declare function TestingOptional(a: {y1?: string, y2?: number}): JSX.Element; +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>a : { y1?: string; y2?: number; } +>y1 : string +>y2 : number +>JSX : any + +declare function TestingOptional(a: {y1?: string, y2?: number, children: JSX.Element}): JSX.Element; +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>a : { y1?: string; y2?: number; children: JSX.Element; } +>y1 : string +>y2 : number +>children : JSX.Element +>JSX : any +>JSX : any + +declare function TestingOptional(a: {y1: boolean, y2?: number, y3: boolean}): JSX.Element; +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>a : { y1: boolean; y2?: number; y3: boolean; } +>y1 : boolean +>y2 : number +>y3 : boolean +>JSX : any + +// Error +const e1 = +>e1 : JSX.Element +> : JSX.Element +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>y1 : true +>y3 : string + +const e2 = +>e2 : JSX.Element +> : JSX.Element +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>y1 : string +>y2 : number +>1000 : 1000 +>y3 : true + +const e3 = +>e3 : JSX.Element +> : JSX.Element +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>y1 : string +>y2 : number +>1000 : 1000 +>children : string + +const e4 = Hi +>e4 : JSX.Element +>Hi : JSX.Element +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>y1 : string +>y2 : number +>1000 : 1000 +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } + diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.errors.txt b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.errors.txt new file mode 100644 index 0000000000..1ea47289a5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.errors.txt @@ -0,0 +1,100 @@ +file.tsx(48,24): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ to: string; onClick: (e: MouseEvent) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & HyphenProps'. + Property 'to' does not exist on type 'IntrinsicAttributes & HyphenProps'. +file.tsx(54,51): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'number' is not assignable to type 'string'. +file.tsx(55,68): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'boolean' is not assignable to type 'string'. +file.tsx(56,13): error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ "data-format": true; }' is not assignable to type 'HyphenProps'. + Types of property '"data-format"' are incompatible. + Type 'boolean' is not assignable to type 'string'. + + +==== file.tsx (4 errors) ==== + import React = require('react') + + export interface ClickableProps { + children?: string; + className?: string; + } + + export interface ButtonProps extends ClickableProps { + onClick: React.MouseEventHandler; + } + + export interface LinkProps extends ClickableProps { + to: string; + } + + export interface HyphenProps extends ClickableProps { + "data-format": string; + } + + let obj0 = { + to: "world" + }; + + let obj1 = { + children: "hi", + to: "boo" + } + + let obj2 = { + onClick: ()=>{} + } + + let obj3: any; + + export function MainButton(buttonProps: ButtonProps): JSX.Element; + export function MainButton(linkProps: LinkProps): JSX.Element; + export function MainButton(hyphenProps: HyphenProps): JSX.Element; + export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.Element { + const linkProps = props as LinkProps; + if(linkProps.to) { + return this._buildMainLink(props); + } + + return this._buildMainButton(props); + } + + // Error + const b0 = {}}>GO; // extra property; + ~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ to: string; onClick: (e: MouseEvent) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & HyphenProps'. +!!! error TS2769: Property 'to' does not exist on type 'IntrinsicAttributes & HyphenProps'. +!!! related TS2771 file.tsx:37:17: The last overload is declared here. +!!! related TS2793 file.tsx:38:17: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible. + const b1 = {}} {...obj0}>Hello world; // extra property; + const b2 = ; // extra property + const b3 = {}}} />; // extra property + const b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed + const b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes + const b6 = ; // incorrect type for optional attribute + ~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'number' is not assignable to type 'string'. +!!! related TS6500 file.tsx:4:5: The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & HyphenProps' +!!! related TS2771 file.tsx:37:17: The last overload is declared here. + const b7 = ; // incorrect type for optional attribute + ~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +!!! related TS6500 file.tsx:5:5: The expected type comes from property 'className' which is declared here on type 'IntrinsicAttributes & HyphenProps' +!!! related TS2771 file.tsx:37:17: The last overload is declared here. + const b8 = ; // incorrect type for specified hyphanated name + ~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type '{ "data-format": true; }' is not assignable to type 'HyphenProps'. +!!! error TS2769: Types of property '"data-format"' are incompatible. +!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +!!! related TS2771 file.tsx:37:17: The last overload is declared here. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.errors.txt.diff new file mode 100644 index 0000000000..bfe548a208 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.errors.txt.diff @@ -0,0 +1,108 @@ +--- old.tsxStatelessFunctionComponentOverload5.errors.txt ++++ new.tsxStatelessFunctionComponentOverload5.errors.txt +@@= skipped -0, +0 lines =@@ +-file.tsx(48,13): error TS2769: No overload matches this call. +- Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. +- Type '{ to: string; onClick: (e: MouseEvent) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +- Property 'to' does not exist on type 'IntrinsicAttributes & ButtonProps'. +- Overload 2 of 3, '(linkProps: LinkProps): Element', gave the following error. +- Type '{ to: string; onClick: (e: MouseEvent) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +- Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. +- Overload 3 of 3, '(hyphenProps: HyphenProps): Element', gave the following error. ++file.tsx(48,24): error TS2769: No overload matches this call. ++ The last overload gave the following error. + Type '{ to: string; onClick: (e: MouseEvent) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & HyphenProps'. + Property 'to' does not exist on type 'IntrinsicAttributes & HyphenProps'. + file.tsx(54,51): error TS2769: No overload matches this call. +- Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. +- Type 'number' is not assignable to type 'string'. +- Overload 2 of 3, '(linkProps: LinkProps): Element', gave the following error. +- Type 'number' is not assignable to type 'string'. +- Overload 3 of 3, '(hyphenProps: HyphenProps): Element', gave the following error. ++ The last overload gave the following error. + Type 'number' is not assignable to type 'string'. + file.tsx(55,68): error TS2769: No overload matches this call. +- Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. +- Type 'boolean' is not assignable to type 'string'. +- Overload 2 of 3, '(linkProps: LinkProps): Element', gave the following error. +- Type 'boolean' is not assignable to type 'string'. +- Overload 3 of 3, '(hyphenProps: HyphenProps): Element', gave the following error. ++ The last overload gave the following error. + Type 'boolean' is not assignable to type 'string'. + file.tsx(56,13): error TS2769: No overload matches this call. +- Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. +- Property 'onClick' is missing in type '{ "data-format": true; }' but required in type 'ButtonProps'. +- Overload 2 of 3, '(linkProps: LinkProps): Element', gave the following error. +- Property 'to' is missing in type '{ "data-format": true; }' but required in type 'LinkProps'. +- Overload 3 of 3, '(hyphenProps: HyphenProps): Element', gave the following error. ++ The last overload gave the following error. + Type '{ "data-format": true; }' is not assignable to type 'HyphenProps'. + Types of property '"data-format"' are incompatible. + Type 'boolean' is not assignable to type 'string'. +@@= skipped -81, +63 lines =@@ + + // Error + const b0 = {}}>GO; // extra property; +- ~~~~~~~~~~ ++ ~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. +-!!! error TS2769: Type '{ to: string; onClick: (e: MouseEvent) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Property 'to' does not exist on type 'IntrinsicAttributes & ButtonProps'. +-!!! error TS2769: Overload 2 of 3, '(linkProps: LinkProps): Element', gave the following error. +-!!! error TS2769: Type '{ to: string; onClick: (e: MouseEvent) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +-!!! error TS2769: Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. +-!!! error TS2769: Overload 3 of 3, '(hyphenProps: HyphenProps): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ to: string; onClick: (e: MouseEvent) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & HyphenProps'. + !!! error TS2769: Property 'to' does not exist on type 'IntrinsicAttributes & HyphenProps'. ++!!! related TS2771 file.tsx:37:17: The last overload is declared here. + !!! related TS2793 file.tsx:38:17: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible. + const b1 = {}} {...obj0}>Hello world; // extra property; + const b2 = ; // extra property +@@= skipped -20, +15 lines =@@ + const b6 = ; // incorrect type for optional attribute + ~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. +-!!! error TS2769: Type 'number' is not assignable to type 'string'. +-!!! error TS2769: Overload 2 of 3, '(linkProps: LinkProps): Element', gave the following error. +-!!! error TS2769: Type 'number' is not assignable to type 'string'. +-!!! error TS2769: Overload 3 of 3, '(hyphenProps: HyphenProps): Element', gave the following error. +-!!! error TS2769: Type 'number' is not assignable to type 'string'. +-!!! related TS6500 file.tsx:4:5: The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & ButtonProps' +-!!! related TS6500 file.tsx:4:5: The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & LinkProps' ++!!! error TS2769: The last overload gave the following error. ++!!! error TS2769: Type 'number' is not assignable to type 'string'. + !!! related TS6500 file.tsx:4:5: The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & HyphenProps' ++!!! related TS2771 file.tsx:37:17: The last overload is declared here. + const b7 = ; // incorrect type for optional attribute + ~~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. +-!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +-!!! error TS2769: Overload 2 of 3, '(linkProps: LinkProps): Element', gave the following error. +-!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +-!!! error TS2769: Overload 3 of 3, '(hyphenProps: HyphenProps): Element', gave the following error. +-!!! error TS2769: Type 'boolean' is not assignable to type 'string'. +-!!! related TS6500 file.tsx:5:5: The expected type comes from property 'className' which is declared here on type 'IntrinsicAttributes & ButtonProps' +-!!! related TS6500 file.tsx:5:5: The expected type comes from property 'className' which is declared here on type 'IntrinsicAttributes & LinkProps' ++!!! error TS2769: The last overload gave the following error. ++!!! error TS2769: Type 'boolean' is not assignable to type 'string'. + !!! related TS6500 file.tsx:5:5: The expected type comes from property 'className' which is declared here on type 'IntrinsicAttributes & HyphenProps' ++!!! related TS2771 file.tsx:37:17: The last overload is declared here. + const b8 = ; // incorrect type for specified hyphanated name + ~~~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. +-!!! error TS2769: Property 'onClick' is missing in type '{ "data-format": true; }' but required in type 'ButtonProps'. +-!!! error TS2769: Overload 2 of 3, '(linkProps: LinkProps): Element', gave the following error. +-!!! error TS2769: Property 'to' is missing in type '{ "data-format": true; }' but required in type 'LinkProps'. +-!!! error TS2769: Overload 3 of 3, '(hyphenProps: HyphenProps): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type '{ "data-format": true; }' is not assignable to type 'HyphenProps'. + !!! error TS2769: Types of property '"data-format"' are incompatible. + !!! error TS2769: Type 'boolean' is not assignable to type 'string'. +-!!! related TS2728 file.tsx:9:5: 'onClick' is declared here. +-!!! related TS2728 file.tsx:13:5: 'to' is declared here. ++!!! related TS2771 file.tsx:37:17: The last overload is declared here. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.js b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.js new file mode 100644 index 0000000000..2701ffdcbd --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.js @@ -0,0 +1,93 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx] //// + +//// [file.tsx] +import React = require('react') + +export interface ClickableProps { + children?: string; + className?: string; +} + +export interface ButtonProps extends ClickableProps { + onClick: React.MouseEventHandler; +} + +export interface LinkProps extends ClickableProps { + to: string; +} + +export interface HyphenProps extends ClickableProps { + "data-format": string; +} + +let obj0 = { + to: "world" +}; + +let obj1 = { + children: "hi", + to: "boo" +} + +let obj2 = { + onClick: ()=>{} +} + +let obj3: any; + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +export function MainButton(linkProps: LinkProps): JSX.Element; +export function MainButton(hyphenProps: HyphenProps): JSX.Element; +export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.Element { + const linkProps = props as LinkProps; + if(linkProps.to) { + return this._buildMainLink(props); + } + + return this._buildMainButton(props); +} + +// Error +const b0 = {}}>GO; // extra property; +const b1 = {}} {...obj0}>Hello world; // extra property; +const b2 = ; // extra property +const b3 = {}}} />; // extra property +const b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed +const b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes +const b6 = ; // incorrect type for optional attribute +const b7 = ; // incorrect type for optional attribute +const b8 = ; // incorrect type for specified hyphanated name + +//// [file.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MainButton = MainButton; +const React = require("react"); +let obj0 = { + to: "world" +}; +let obj1 = { + children: "hi", + to: "boo" +}; +let obj2 = { + onClick: () => { } +}; +let obj3; +function MainButton(props) { + const linkProps = props; + if (linkProps.to) { + return this._buildMainLink(props); + } + return this._buildMainButton(props); +} +// Error +const b0 = { }}>GO; // extra property; +const b1 = { }} {...obj0}>Hello world; // extra property; +const b2 = ; // extra property +const b3 = { } }}/>; // extra property +const b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed +const b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes +const b6 = ; // incorrect type for optional attribute +const b7 = ; // incorrect type for optional attribute +const b8 = ; // incorrect type for specified hyphanated name diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.js.diff b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.js.diff new file mode 100644 index 0000000000..304b84c8a1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.js.diff @@ -0,0 +1,11 @@ +--- old.tsxStatelessFunctionComponentOverload5.js ++++ new.tsxStatelessFunctionComponentOverload5.js +@@= skipped -61, +61 lines =@@ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.MainButton = MainButton; +-var React = require("react"); ++const React = require("react"); + let obj0 = { + to: "world" + }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.symbols b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.symbols new file mode 100644 index 0000000000..4d5d3e21e4 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.symbols @@ -0,0 +1,181 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx] //// + +=== file.tsx === +import React = require('react') +>React : Symbol(React, Decl(file.tsx, 0, 0)) + +export interface ClickableProps { +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + children?: string; +>children : Symbol(ClickableProps.children, Decl(file.tsx, 2, 33)) + + className?: string; +>className : Symbol(ClickableProps.className, Decl(file.tsx, 3, 22)) +} + +export interface ButtonProps extends ClickableProps { +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + onClick: React.MouseEventHandler; +>onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 7, 53)) +>React : Symbol(React, Decl(file.tsx, 0, 0)) +>MouseEventHandler : Symbol(React.MouseEventHandler, Decl(react.d.ts, 389, 66)) +} + +export interface LinkProps extends ClickableProps { +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + to: string; +>to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) +} + +export interface HyphenProps extends ClickableProps { +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + "data-format": string; +>"data-format" : Symbol(HyphenProps["data-format"], Decl(file.tsx, 15, 53)) +} + +let obj0 = { +>obj0 : Symbol(obj0, Decl(file.tsx, 19, 3)) + + to: "world" +>to : Symbol(to, Decl(file.tsx, 19, 12)) + +}; + +let obj1 = { +>obj1 : Symbol(obj1, Decl(file.tsx, 23, 3)) + + children: "hi", +>children : Symbol(children, Decl(file.tsx, 23, 12)) + + to: "boo" +>to : Symbol(to, Decl(file.tsx, 24, 19)) +} + +let obj2 = { +>obj2 : Symbol(obj2, Decl(file.tsx, 28, 3)) + + onClick: ()=>{} +>onClick : Symbol(onClick, Decl(file.tsx, 28, 12)) +} + +let obj3: any; +>obj3 : Symbol(obj3, Decl(file.tsx, 32, 3)) + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>buttonProps : Symbol(buttonProps, Decl(file.tsx, 34, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +export function MainButton(linkProps: LinkProps): JSX.Element; +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 35, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +export function MainButton(hyphenProps: HyphenProps): JSX.Element; +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>hyphenProps : Symbol(hyphenProps, Decl(file.tsx, 36, 27)) +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.Element { +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>props : Symbol(props, Decl(file.tsx, 37, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + + const linkProps = props as LinkProps; +>linkProps : Symbol(linkProps, Decl(file.tsx, 38, 9)) +>props : Symbol(props, Decl(file.tsx, 37, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) + + if(linkProps.to) { +>linkProps.to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 38, 9)) +>to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) + + return this._buildMainLink(props); +>props : Symbol(props, Decl(file.tsx, 37, 27)) + } + + return this._buildMainButton(props); +>props : Symbol(props, Decl(file.tsx, 37, 27)) +} + +// Error +const b0 = {}}>GO; // extra property; +>b0 : Symbol(b0, Decl(file.tsx, 47, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>to : Symbol(to, Decl(file.tsx, 47, 22)) +>onClick : Symbol(onClick, Decl(file.tsx, 47, 38)) +>e : Symbol(e, Decl(file.tsx, 47, 49)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) + +const b1 = {}} {...obj0}>Hello world; // extra property; +>b1 : Symbol(b1, Decl(file.tsx, 48, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 48, 22)) +>e : Symbol(e, Decl(file.tsx, 48, 33)) +>obj0 : Symbol(obj0, Decl(file.tsx, 19, 3)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) + +const b2 = ; // extra property +>b2 : Symbol(b2, Decl(file.tsx, 49, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>to : Symbol(to, Decl(file.tsx, 49, 28)) +>obj2 : Symbol(obj2, Decl(file.tsx, 28, 3)) + +const b3 = {}}} />; // extra property +>b3 : Symbol(b3, Decl(file.tsx, 50, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>to : Symbol(to, Decl(file.tsx, 50, 28)) +>onClick : Symbol(onClick, Decl(file.tsx, 50, 47)) +>k : Symbol(k, Decl(file.tsx, 50, 57)) + +const b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed +>b4 : Symbol(b4, Decl(file.tsx, 51, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>obj3 : Symbol(obj3, Decl(file.tsx, 32, 3)) +>to : Symbol(to, Decl(file.tsx, 51, 32)) + +const b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes +>b5 : Symbol(b5, Decl(file.tsx, 52, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 52, 28)) +>e : Symbol(e, Decl(file.tsx, 52, 37)) +>obj0 : Symbol(obj0, Decl(file.tsx, 19, 3)) + +const b6 = ; // incorrect type for optional attribute +>b6 : Symbol(b6, Decl(file.tsx, 53, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 53, 28)) +>e : Symbol(e, Decl(file.tsx, 53, 37)) +>children : Symbol(children, Decl(file.tsx, 53, 49)) + +const b7 = ; // incorrect type for optional attribute +>b7 : Symbol(b7, Decl(file.tsx, 54, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 54, 28)) +>e : Symbol(e, Decl(file.tsx, 54, 37)) +>children : Symbol(children, Decl(file.tsx, 54, 49)) +>className : Symbol(className, Decl(file.tsx, 54, 66)) + +const b8 = ; // incorrect type for specified hyphanated name +>b8 : Symbol(b8, Decl(file.tsx, 55, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 32, 14), Decl(file.tsx, 34, 66), Decl(file.tsx, 35, 62), Decl(file.tsx, 36, 66)) +>data-format : Symbol(data-format, Decl(file.tsx, 55, 22)) + diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.types b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.types new file mode 100644 index 0000000000..de3315fb4a --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload5.types @@ -0,0 +1,195 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx] //// + +=== file.tsx === +import React = require('react') +>React : typeof React + +export interface ClickableProps { + children?: string; +>children : string + + className?: string; +>className : string +} + +export interface ButtonProps extends ClickableProps { + onClick: React.MouseEventHandler; +>onClick : React.MouseEventHandler +>React : any +} + +export interface LinkProps extends ClickableProps { + to: string; +>to : string +} + +export interface HyphenProps extends ClickableProps { + "data-format": string; +>"data-format" : string +} + +let obj0 = { +>obj0 : { to: string; } +>{ to: "world"} : { to: string; } + + to: "world" +>to : string +>"world" : "world" + +}; + +let obj1 = { +>obj1 : { children: string; to: string; } +>{ children: "hi", to: "boo"} : { children: string; to: string; } + + children: "hi", +>children : string +>"hi" : "hi" + + to: "boo" +>to : string +>"boo" : "boo" +} + +let obj2 = { +>obj2 : { onClick: () => void; } +>{ onClick: ()=>{}} : { onClick: () => void; } + + onClick: ()=>{} +>onClick : () => void +>()=>{} : () => void +} + +let obj3: any; +>obj3 : any + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>buttonProps : ButtonProps +>JSX : any + +export function MainButton(linkProps: LinkProps): JSX.Element; +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>linkProps : LinkProps +>JSX : any + +export function MainButton(hyphenProps: HyphenProps): JSX.Element; +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>hyphenProps : HyphenProps +>JSX : any + +export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.Element { +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>props : ButtonProps | HyphenProps | LinkProps +>JSX : any + + const linkProps = props as LinkProps; +>linkProps : LinkProps +>props as LinkProps : LinkProps +>props : ButtonProps | HyphenProps | LinkProps + + if(linkProps.to) { +>linkProps.to : string +>linkProps : LinkProps +>to : string + + return this._buildMainLink(props); +>this._buildMainLink(props) : any +>this._buildMainLink : any +>this : any +>_buildMainLink : any +>props : ButtonProps | HyphenProps | LinkProps + } + + return this._buildMainButton(props); +>this._buildMainButton(props) : any +>this._buildMainButton : any +>this : any +>_buildMainButton : any +>props : ButtonProps | HyphenProps | LinkProps +} + +// Error +const b0 = {}}>GO; // extra property; +>b0 : JSX.Element +>{}}>GO : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>to : string +>onClick : (e: React.MouseEvent) => void +>(e)=>{} : (e: React.MouseEvent) => void +>e : React.MouseEvent +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } + +const b1 = {}} {...obj0}>Hello world; // extra property; +>b1 : JSX.Element +> {}} {...obj0}>Hello world : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>onClick : (e: any) => void +>(e: any)=> {} : (e: any) => void +>e : any +>obj0 : { to: string; } +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } + +const b2 = ; // extra property +>b2 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>{to: "10000"} : { to: string; } +>to : string +>"10000" : "10000" +>obj2 : { onClick: () => void; } + +const b3 = {}}} />; // extra property +>b3 : JSX.Element +> {}}} /> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>{to: "10000"} : { to: string; } +>to : string +>"10000" : "10000" +>{onClick: (k) => {}} : { onClick: (k: React.MouseEvent) => void; } +>onClick : (k: React.MouseEvent) => void +>(k) => {} : (k: React.MouseEvent) => void +>k : React.MouseEvent + +const b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed +>b4 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>obj3 : any +>to : true + +const b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes +>b5 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>{ onClick(e: any) { } } : { onClick(e: any): void; } +>onClick : (e: any) => void +>e : any +>obj0 : { to: string; } + +const b6 = ; // incorrect type for optional attribute +>b6 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>{ onClick(e: any){} } : { onClick(e: any): void; } +>onClick : (e: any) => void +>e : any +>children : number +>10 : 10 + +const b7 = ; // incorrect type for optional attribute +>b7 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>{ onClick(e: any){} } : { onClick(e: any): void; } +>onClick : (e: any) => void +>e : any +>children : string +>className : true + +const b8 = ; // incorrect type for specified hyphanated name +>b8 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>data-format : true + diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.js b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.js new file mode 100644 index 0000000000..70290dc1cf --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.js @@ -0,0 +1,95 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx] //// + +//// [file.tsx] +import React = require('react') + +export interface ClickableProps { + children?: string; + className?: string; +} + +export interface ButtonProps extends ClickableProps { + onClick: React.MouseEventHandler; +} + +export interface LinkProps extends ClickableProps { + to: string; +} + +export interface HyphenProps extends ClickableProps { + "data-format": string; +} + +let obj = { + children: "hi", + to: "boo" +} +let obj1: any; +let obj2 = { + onClick: () => {} +} + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +export function MainButton(linkProps: LinkProps): JSX.Element; +export function MainButton(hyphenProps: HyphenProps): JSX.Element; +export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.Element { + const linkProps = props as LinkProps; + if(linkProps.to) { + return this._buildMainLink(props); + } + + return this._buildMainButton(props); +} + +// OK +const b0 = GO; +const b1 = {}}>Hello world; +const b2 = ; +const b3 = ; +const b4 = ; // any; just pick the first overload +const b5 = ; // should pick the second overload +const b6 = ; +const b7 = { console.log("hi") }}} />; +const b8 = ; // OK; method declaration get retained (See GitHub #13365) +const b9 = GO; +const b10 = ; +const b11 = {}} className="hello" data-format>Hello world; +const b12 = + + + + +//// [file.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MainButton = MainButton; +const React = require("react"); +let obj = { + children: "hi", + to: "boo" +}; +let obj1; +let obj2 = { + onClick: () => { } +}; +function MainButton(props) { + const linkProps = props; + if (linkProps.to) { + return this._buildMainLink(props); + } + return this._buildMainButton(props); +} +// OK +const b0 = GO; +const b1 = { }}>Hello world; +const b2 = ; +const b3 = ; +const b4 = ; // any; just pick the first overload +const b5 = ; // should pick the second overload +const b6 = ; +const b7 = { console.log("hi"); } }}/>; +const b8 = ; // OK; method declaration get retained (See GitHub #13365) +const b9 = GO; +const b10 = ; +const b11 = { }} className="hello" data-format>Hello world; +const b12 = ; diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.js.diff b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.js.diff new file mode 100644 index 0000000000..235ba3ed1e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.js.diff @@ -0,0 +1,11 @@ +--- old.tsxStatelessFunctionComponentOverload6.js ++++ new.tsxStatelessFunctionComponentOverload6.js +@@= skipped -62, +62 lines =@@ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.MainButton = MainButton; +-var React = require("react"); ++const React = require("react"); + let obj = { + children: "hi", + to: "boo" \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.symbols b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.symbols new file mode 100644 index 0000000000..0e0656495c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.symbols @@ -0,0 +1,193 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx] //// + +=== file.tsx === +import React = require('react') +>React : Symbol(React, Decl(file.tsx, 0, 0)) + +export interface ClickableProps { +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + children?: string; +>children : Symbol(ClickableProps.children, Decl(file.tsx, 2, 33)) + + className?: string; +>className : Symbol(ClickableProps.className, Decl(file.tsx, 3, 22)) +} + +export interface ButtonProps extends ClickableProps { +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + onClick: React.MouseEventHandler; +>onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 7, 53)) +>React : Symbol(React, Decl(file.tsx, 0, 0)) +>MouseEventHandler : Symbol(React.MouseEventHandler, Decl(react.d.ts, 389, 66)) +} + +export interface LinkProps extends ClickableProps { +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + to: string; +>to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) +} + +export interface HyphenProps extends ClickableProps { +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) + + "data-format": string; +>"data-format" : Symbol(HyphenProps["data-format"], Decl(file.tsx, 15, 53)) +} + +let obj = { +>obj : Symbol(obj, Decl(file.tsx, 19, 3)) + + children: "hi", +>children : Symbol(children, Decl(file.tsx, 19, 11)) + + to: "boo" +>to : Symbol(to, Decl(file.tsx, 20, 19)) +} +let obj1: any; +>obj1 : Symbol(obj1, Decl(file.tsx, 23, 3)) + +let obj2 = { +>obj2 : Symbol(obj2, Decl(file.tsx, 24, 3)) + + onClick: () => {} +>onClick : Symbol(onClick, Decl(file.tsx, 24, 12)) +} + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>buttonProps : Symbol(buttonProps, Decl(file.tsx, 28, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +export function MainButton(linkProps: LinkProps): JSX.Element; +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 29, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +export function MainButton(hyphenProps: HyphenProps): JSX.Element; +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>hyphenProps : Symbol(hyphenProps, Decl(file.tsx, 30, 27)) +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.Element { +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>props : Symbol(props, Decl(file.tsx, 31, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + + const linkProps = props as LinkProps; +>linkProps : Symbol(linkProps, Decl(file.tsx, 32, 9)) +>props : Symbol(props, Decl(file.tsx, 31, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) + + if(linkProps.to) { +>linkProps.to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 32, 9)) +>to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) + + return this._buildMainLink(props); +>props : Symbol(props, Decl(file.tsx, 31, 27)) + } + + return this._buildMainButton(props); +>props : Symbol(props, Decl(file.tsx, 31, 27)) +} + +// OK +const b0 = GO; +>b0 : Symbol(b0, Decl(file.tsx, 41, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>to : Symbol(to, Decl(file.tsx, 41, 22)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) + +const b1 = {}}>Hello world; +>b1 : Symbol(b1, Decl(file.tsx, 42, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 42, 22)) +>e : Symbol(e, Decl(file.tsx, 42, 33)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) + +const b2 = ; +>b2 : Symbol(b2, Decl(file.tsx, 43, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>obj : Symbol(obj, Decl(file.tsx, 19, 3)) + +const b3 = ; +>b3 : Symbol(b3, Decl(file.tsx, 44, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>to : Symbol(to, Decl(file.tsx, 44, 28)) +>obj : Symbol(obj, Decl(file.tsx, 19, 3)) + +const b4 = ; // any; just pick the first overload +>b4 : Symbol(b4, Decl(file.tsx, 45, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>obj1 : Symbol(obj1, Decl(file.tsx, 23, 3)) + +const b5 = ; // should pick the second overload +>b5 : Symbol(b5, Decl(file.tsx, 46, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>obj1 : Symbol(obj1, Decl(file.tsx, 23, 3)) +>to : Symbol(to, Decl(file.tsx, 46, 32)) + +const b6 = ; +>b6 : Symbol(b6, Decl(file.tsx, 47, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>obj2 : Symbol(obj2, Decl(file.tsx, 24, 3)) + +const b7 = { console.log("hi") }}} />; +>b7 : Symbol(b7, Decl(file.tsx, 48, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 48, 28)) +>console.log : Symbol(Console.log, Decl(lib.d.ts, --, --)) +>console : Symbol(console, Decl(lib.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.d.ts, --, --)) + +const b8 = ; // OK; method declaration get retained (See GitHub #13365) +>b8 : Symbol(b8, Decl(file.tsx, 49, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 49, 28)) + +const b9 = GO; +>b9 : Symbol(b9, Decl(file.tsx, 50, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>to : Symbol(to, Decl(file.tsx, 50, 22)) +>extra-prop : Symbol(extra-prop, Decl(file.tsx, 50, 38)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) + +const b10 = ; +>b10 : Symbol(b10, Decl(file.tsx, 51, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>to : Symbol(to, Decl(file.tsx, 51, 23)) +>children : Symbol(children, Decl(file.tsx, 51, 39)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) + +const b11 = {}} className="hello" data-format>Hello world; +>b11 : Symbol(b11, Decl(file.tsx, 52, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 52, 23)) +>e : Symbol(e, Decl(file.tsx, 52, 34)) +>className : Symbol(className, Decl(file.tsx, 52, 43)) +>data-format : Symbol(data-format, Decl(file.tsx, 52, 61)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) + +const b12 = +>b12 : Symbol(b12, Decl(file.tsx, 53, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>data-format : Symbol(data-format, Decl(file.tsx, 53, 23)) + + + diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.types b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.types new file mode 100644 index 0000000000..07faa2d101 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentOverload6.types @@ -0,0 +1,206 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx] //// + +=== file.tsx === +import React = require('react') +>React : typeof React + +export interface ClickableProps { + children?: string; +>children : string + + className?: string; +>className : string +} + +export interface ButtonProps extends ClickableProps { + onClick: React.MouseEventHandler; +>onClick : React.MouseEventHandler +>React : any +} + +export interface LinkProps extends ClickableProps { + to: string; +>to : string +} + +export interface HyphenProps extends ClickableProps { + "data-format": string; +>"data-format" : string +} + +let obj = { +>obj : { children: string; to: string; } +>{ children: "hi", to: "boo"} : { children: string; to: string; } + + children: "hi", +>children : string +>"hi" : "hi" + + to: "boo" +>to : string +>"boo" : "boo" +} +let obj1: any; +>obj1 : any + +let obj2 = { +>obj2 : { onClick: () => void; } +>{ onClick: () => {}} : { onClick: () => void; } + + onClick: () => {} +>onClick : () => void +>() => {} : () => void +} + +export function MainButton(buttonProps: ButtonProps): JSX.Element; +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>buttonProps : ButtonProps +>JSX : any + +export function MainButton(linkProps: LinkProps): JSX.Element; +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>linkProps : LinkProps +>JSX : any + +export function MainButton(hyphenProps: HyphenProps): JSX.Element; +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>hyphenProps : HyphenProps +>JSX : any + +export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.Element { +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>props : ButtonProps | HyphenProps | LinkProps +>JSX : any + + const linkProps = props as LinkProps; +>linkProps : LinkProps +>props as LinkProps : LinkProps +>props : ButtonProps | HyphenProps | LinkProps + + if(linkProps.to) { +>linkProps.to : string +>linkProps : LinkProps +>to : string + + return this._buildMainLink(props); +>this._buildMainLink(props) : any +>this._buildMainLink : any +>this : any +>_buildMainLink : any +>props : ButtonProps | HyphenProps | LinkProps + } + + return this._buildMainButton(props); +>this._buildMainButton(props) : any +>this._buildMainButton : any +>this : any +>_buildMainButton : any +>props : ButtonProps | HyphenProps | LinkProps +} + +// OK +const b0 = GO; +>b0 : JSX.Element +>GO : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>to : string +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } + +const b1 = {}}>Hello world; +>b1 : JSX.Element +> {}}>Hello world : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>onClick : (e: React.MouseEvent) => void +>(e) => {} : (e: React.MouseEvent) => void +>e : React.MouseEvent +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } + +const b2 = ; +>b2 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>obj : { children: string; to: string; } + +const b3 = ; +>b3 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>{to: 10000} : { to: number; } +>to : number +>10000 : 10000 +>obj : { children: string; to: string; } + +const b4 = ; // any; just pick the first overload +>b4 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>obj1 : any + +const b5 = ; // should pick the second overload +>b5 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>obj1 : any +>to : string + +const b6 = ; +>b6 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>obj2 : { onClick: () => void; } + +const b7 = { console.log("hi") }}} />; +>b7 : JSX.Element +> { console.log("hi") }}} /> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>{onClick: () => { console.log("hi") }} : { onClick: () => void; } +>onClick : () => void +>() => { console.log("hi") } : () => void +>console.log("hi") : void +>console.log : (message?: any, ...optionalParams: any[]) => void +>console : Console +>log : (message?: any, ...optionalParams: any[]) => void +>"hi" : "hi" + +const b8 = ; // OK; method declaration get retained (See GitHub #13365) +>b8 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>{onClick() {}} : { onClick(): void; } +>onClick : () => void + +const b9 = GO; +>b9 : JSX.Element +>GO : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>to : string +>extra-prop : true +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } + +const b10 = ; +>b10 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>to : string +>children : string +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } + +const b11 = {}} className="hello" data-format>Hello world; +>b11 : JSX.Element +> {}} className="hello" data-format>Hello world : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>onClick : (e: React.MouseEvent) => void +>(e) => {} : (e: React.MouseEvent) => void +>e : React.MouseEvent +>className : string +>data-format : true +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } + +const b12 = +>b12 : JSX.Element +> : JSX.Element +>MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } +>data-format : string + + + diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt new file mode 100644 index 0000000000..7c45fd97a1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt @@ -0,0 +1,36 @@ +file.tsx(9,15): error TS2769: No overload matches this call. + The last overload gave the following error. + Property 'b' is missing in type '{ a: number; }' but required in type '{ b: unknown; a: number; }'. +file.tsx(10,15): error TS2769: No overload matches this call. + The last overload gave the following error. + Type 'T & { "ignore-prop": true; }' is not assignable to type 'IntrinsicAttributes & { b: unknown; a: unknown; }'. + Type 'T & { "ignore-prop": true; }' is not assignable to type '{ b: unknown; a: unknown; }'. + Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: unknown; a: unknown; }'. + + +==== file.tsx (2 errors) ==== + import React = require('react') + + declare function OverloadComponent(): JSX.Element; + declare function OverloadComponent(attr: {b: U, a: string, "ignore-prop": boolean}): JSX.Element; + declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; + + // Error + function Baz(arg1: T, arg2: U) { + let a0 = + ~~~~~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Property 'b' is missing in type '{ a: number; }' but required in type '{ b: unknown; a: number; }'. +!!! related TS2728 file.tsx:5:49: 'b' is declared here. +!!! related TS2771 file.tsx:5:18: The last overload is declared here. + let a2 = // missing a + ~~~~~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Type 'T & { "ignore-prop": true; }' is not assignable to type 'IntrinsicAttributes & { b: unknown; a: unknown; }'. +!!! error TS2769: Type 'T & { "ignore-prop": true; }' is not assignable to type '{ b: unknown; a: unknown; }'. +!!! error TS2769: Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: unknown; a: unknown; }'. +!!! related TS2728 file.tsx:5:55: 'a' is declared here. +!!! related TS2771 file.tsx:5:18: The last overload is declared here. + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt.diff new file mode 100644 index 0000000000..853fdcd4c6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt.diff @@ -0,0 +1,60 @@ +--- old.tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt ++++ new.tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt +@@= skipped -0, +0 lines =@@ + file.tsx(9,15): error TS2769: No overload matches this call. +- Overload 1 of 3, '(): Element', gave the following error. +- Type '{ a: number; }' is not assignable to type 'IntrinsicAttributes'. +- Property 'a' does not exist on type 'IntrinsicAttributes'. +- Overload 2 of 3, '(attr: { b: unknown; a: string; "ignore-prop": boolean; }): Element', gave the following error. +- Type 'number' is not assignable to type 'string'. +- Overload 3 of 3, '(attr: { b: unknown; a: number; }): Element', gave the following error. ++ The last overload gave the following error. + Property 'b' is missing in type '{ a: number; }' but required in type '{ b: unknown; a: number; }'. + file.tsx(10,15): error TS2769: No overload matches this call. +- Overload 1 of 3, '(): Element', gave the following error. +- Type 'T & { "ignore-prop": true; }' has no properties in common with type 'IntrinsicAttributes'. +- Overload 2 of 3, '(attr: { b: number; a: string; "ignore-prop": boolean; }): Element', gave the following error. +- Type 'T & { "ignore-prop": true; }' is not assignable to type 'IntrinsicAttributes & { b: number; a: string; "ignore-prop": boolean; }'. +- Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: number; a: string; "ignore-prop": boolean; }'. +- Overload 3 of 3, '(attr: { b: unknown; a: unknown; }): Element', gave the following error. ++ The last overload gave the following error. + Type 'T & { "ignore-prop": true; }' is not assignable to type 'IntrinsicAttributes & { b: unknown; a: unknown; }'. +- Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: unknown; a: unknown; }'. ++ Type 'T & { "ignore-prop": true; }' is not assignable to type '{ b: unknown; a: unknown; }'. ++ Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: unknown; a: unknown; }'. + + + ==== file.tsx (2 errors) ==== +@@= skipped -28, +19 lines =@@ + let a0 = + ~~~~~~~~~~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(): Element', gave the following error. +-!!! error TS2769: Type '{ a: number; }' is not assignable to type 'IntrinsicAttributes'. +-!!! error TS2769: Property 'a' does not exist on type 'IntrinsicAttributes'. +-!!! error TS2769: Overload 2 of 3, '(attr: { b: unknown; a: string; "ignore-prop": boolean; }): Element', gave the following error. +-!!! error TS2769: Type 'number' is not assignable to type 'string'. +-!!! error TS2769: Overload 3 of 3, '(attr: { b: unknown; a: number; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Property 'b' is missing in type '{ a: number; }' but required in type '{ b: unknown; a: number; }'. +-!!! related TS6500 file.tsx:4:52: The expected type comes from property 'a' which is declared here on type 'IntrinsicAttributes & { b: unknown; a: string; "ignore-prop": boolean; }' + !!! related TS2728 file.tsx:5:49: 'b' is declared here. ++!!! related TS2771 file.tsx:5:18: The last overload is declared here. + let a2 = // missing a + ~~~~~~~~~~~~~~~~~ + !!! error TS2769: No overload matches this call. +-!!! error TS2769: Overload 1 of 3, '(): Element', gave the following error. +-!!! error TS2769: Type 'T & { "ignore-prop": true; }' has no properties in common with type 'IntrinsicAttributes'. +-!!! error TS2769: Overload 2 of 3, '(attr: { b: number; a: string; "ignore-prop": boolean; }): Element', gave the following error. +-!!! error TS2769: Type 'T & { "ignore-prop": true; }' is not assignable to type 'IntrinsicAttributes & { b: number; a: string; "ignore-prop": boolean; }'. +-!!! error TS2769: Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: number; a: string; "ignore-prop": boolean; }'. +-!!! error TS2769: Overload 3 of 3, '(attr: { b: unknown; a: unknown; }): Element', gave the following error. ++!!! error TS2769: The last overload gave the following error. + !!! error TS2769: Type 'T & { "ignore-prop": true; }' is not assignable to type 'IntrinsicAttributes & { b: unknown; a: unknown; }'. +-!!! error TS2769: Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: unknown; a: unknown; }'. +-!!! related TS2728 file.tsx:4:52: 'a' is declared here. ++!!! error TS2769: Type 'T & { "ignore-prop": true; }' is not assignable to type '{ b: unknown; a: unknown; }'. ++!!! error TS2769: Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: unknown; a: unknown; }'. + !!! related TS2728 file.tsx:5:55: 'a' is declared here. ++!!! related TS2771 file.tsx:5:18: The last overload is declared here. + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.js b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.js new file mode 100644 index 0000000000..2805f76ef4 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx] //// + +//// [file.tsx] +import React = require('react') + +declare function OverloadComponent(): JSX.Element; +declare function OverloadComponent(attr: {b: U, a: string, "ignore-prop": boolean}): JSX.Element; +declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; + +// Error +function Baz(arg1: T, arg2: U) { + let a0 = + let a2 = // missing a +} + +//// [file.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const React = require("react"); +// Error +function Baz(arg1, arg2) { + let a0 = ; + let a2 = ; // missing a +} diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.js.diff b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.js.diff new file mode 100644 index 0000000000..8b19422631 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.js.diff @@ -0,0 +1,11 @@ +--- old.tsxStatelessFunctionComponentsWithTypeArguments4.js ++++ new.tsxStatelessFunctionComponentsWithTypeArguments4.js +@@= skipped -15, +15 lines =@@ + //// [file.jsx] + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +-var React = require("react"); ++const React = require("react"); + // Error + function Baz(arg1, arg2) { + let a0 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.symbols b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.symbols new file mode 100644 index 0000000000..df279c9333 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx] //// + +=== file.tsx === +import React = require('react') +>React : Symbol(React, Decl(file.tsx, 0, 0)) + +declare function OverloadComponent(): JSX.Element; +>OverloadComponent : Symbol(OverloadComponent, Decl(file.tsx, 0, 31), Decl(file.tsx, 2, 53), Decl(file.tsx, 3, 100)) +>U : Symbol(U, Decl(file.tsx, 2, 35)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +declare function OverloadComponent(attr: {b: U, a: string, "ignore-prop": boolean}): JSX.Element; +>OverloadComponent : Symbol(OverloadComponent, Decl(file.tsx, 0, 31), Decl(file.tsx, 2, 53), Decl(file.tsx, 3, 100)) +>U : Symbol(U, Decl(file.tsx, 3, 35)) +>attr : Symbol(attr, Decl(file.tsx, 3, 38)) +>b : Symbol(b, Decl(file.tsx, 3, 45)) +>U : Symbol(U, Decl(file.tsx, 3, 35)) +>a : Symbol(a, Decl(file.tsx, 3, 50)) +>"ignore-prop" : Symbol("ignore-prop", Decl(file.tsx, 3, 61)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; +>OverloadComponent : Symbol(OverloadComponent, Decl(file.tsx, 0, 31), Decl(file.tsx, 2, 53), Decl(file.tsx, 3, 100)) +>T : Symbol(T, Decl(file.tsx, 4, 35)) +>U : Symbol(U, Decl(file.tsx, 4, 37)) +>attr : Symbol(attr, Decl(file.tsx, 4, 41)) +>b : Symbol(b, Decl(file.tsx, 4, 48)) +>U : Symbol(U, Decl(file.tsx, 4, 37)) +>a : Symbol(a, Decl(file.tsx, 4, 53)) +>T : Symbol(T, Decl(file.tsx, 4, 35)) +>JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) +>Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) + +// Error +function Baz(arg1: T, arg2: U) { +>Baz : Symbol(Baz, Decl(file.tsx, 4, 74)) +>T : Symbol(T, Decl(file.tsx, 7, 13)) +>b : Symbol(b, Decl(file.tsx, 7, 24)) +>U : Symbol(U, Decl(file.tsx, 7, 35)) +>a : Symbol(a, Decl(file.tsx, 7, 47)) +>b : Symbol(b, Decl(file.tsx, 7, 58)) +>arg1 : Symbol(arg1, Decl(file.tsx, 7, 70)) +>T : Symbol(T, Decl(file.tsx, 7, 13)) +>arg2 : Symbol(arg2, Decl(file.tsx, 7, 78)) +>U : Symbol(U, Decl(file.tsx, 7, 35)) + + let a0 = +>a0 : Symbol(a0, Decl(file.tsx, 8, 7)) +>OverloadComponent : Symbol(OverloadComponent, Decl(file.tsx, 0, 31), Decl(file.tsx, 2, 53), Decl(file.tsx, 3, 100)) +>a : Symbol(a, Decl(file.tsx, 8, 31)) +>arg1.b : Symbol(b, Decl(file.tsx, 7, 24)) +>arg1 : Symbol(arg1, Decl(file.tsx, 7, 70)) +>b : Symbol(b, Decl(file.tsx, 7, 24)) + + let a2 = // missing a +>a2 : Symbol(a2, Decl(file.tsx, 9, 7)) +>OverloadComponent : Symbol(OverloadComponent, Decl(file.tsx, 0, 31), Decl(file.tsx, 2, 53), Decl(file.tsx, 3, 100)) +>arg1 : Symbol(arg1, Decl(file.tsx, 7, 70)) +>ignore-prop : Symbol(ignore-prop, Decl(file.tsx, 9, 41)) +} diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.types b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.types new file mode 100644 index 0000000000..e1d8928ca2 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx] //// + +=== file.tsx === +import React = require('react') +>React : typeof React + +declare function OverloadComponent(): JSX.Element; +>OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } +>JSX : any + +declare function OverloadComponent(attr: {b: U, a: string, "ignore-prop": boolean}): JSX.Element; +>OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } +>attr : { b: U; a: string; "ignore-prop": boolean; } +>b : U +>a : string +>"ignore-prop" : boolean +>JSX : any + +declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; +>OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } +>attr : { b: U; a: T; } +>b : U +>a : T +>JSX : any + +// Error +function Baz(arg1: T, arg2: U) { +>Baz : (arg1: T, arg2: U) => void +>b : number +>a : boolean +>b : string +>arg1 : T +>arg2 : U + + let a0 = +>a0 : JSX.Element +> : JSX.Element +>OverloadComponent : { (): JSX.Element; (attr: { b: U_1; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U_1; a: T_1; }): JSX.Element; } +>a : number +>arg1.b : number +>arg1 : T +>b : number + + let a2 = // missing a +>a2 : JSX.Element +> : JSX.Element +>OverloadComponent : { (): JSX.Element; (attr: { b: U_1; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U_1; a: T_1; }): JSX.Element; } +>arg1 : T +>ignore-prop : true +} diff --git a/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.types.diff b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.types.diff new file mode 100644 index 0000000000..3ec9d95e6b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/tsxStatelessFunctionComponentsWithTypeArguments4.types.diff @@ -0,0 +1,25 @@ +--- old.tsxStatelessFunctionComponentsWithTypeArguments4.types ++++ new.tsxStatelessFunctionComponentsWithTypeArguments4.types +@@= skipped -4, +4 lines =@@ + >React : typeof React + + declare function OverloadComponent(): JSX.Element; +->OverloadComponent : { (): JSX.Element; (attr: { b: U_1; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U_1; a: T; }): JSX.Element; } ++>OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } + >JSX : any + + declare function OverloadComponent(attr: {b: U, a: string, "ignore-prop": boolean}): JSX.Element; +->OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U_1; a: T; }): JSX.Element; } ++>OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } + >attr : { b: U; a: string; "ignore-prop": boolean; } + >b : U + >a : string +@@= skipped -12, +12 lines =@@ + >JSX : any + + declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; +->OverloadComponent : { (): JSX.Element; (attr: { b: U_1; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } ++>OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } + >attr : { b: U; a: T; } + >b : U + >a : T \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typeAndNamespaceExportMerge.js b/testdata/baselines/reference/submodule/conformance/typeAndNamespaceExportMerge.js index d385a8b188..c093929c68 100644 --- a/testdata/baselines/reference/submodule/conformance/typeAndNamespaceExportMerge.js +++ b/testdata/baselines/reference/submodule/conformance/typeAndNamespaceExportMerge.js @@ -24,9 +24,42 @@ exports.COFFEE = 0; exports.TEA = 1; //// [drink.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Drink = void 0; -exports.Drink = require("./constants"); +exports.Drink = __importStar(require("./constants")); //// [index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/typeAndNamespaceExportMerge.js.diff b/testdata/baselines/reference/submodule/conformance/typeAndNamespaceExportMerge.js.diff index bac5c4b29d..d87ccb44d9 100644 --- a/testdata/baselines/reference/submodule/conformance/typeAndNamespaceExportMerge.js.diff +++ b/testdata/baselines/reference/submodule/conformance/typeAndNamespaceExportMerge.js.diff @@ -1,6 +1,6 @@ --- old.typeAndNamespaceExportMerge.js +++ new.typeAndNamespaceExportMerge.js -@@= skipped -29, +29 lines =@@ +@@= skipped -62, +62 lines =@@ //// [index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.errors.txt b/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.errors.txt deleted file mode 100644 index 20288daecd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -/src/a.js(1,29): error TS8037: Type satisfaction expressions can only be used in TypeScript files. - - -!!! error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== /src/a.js (1 errors) ==== - var v = undefined satisfies 1; - ~ -!!! error TS8037: Type satisfaction expressions can only be used in TypeScript files. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.symbols b/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.symbols deleted file mode 100644 index bde82c0a88..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/expressions/typeSatisfaction/typeSatisfaction_js.ts] //// - -=== /src/a.js === -var v = undefined satisfies 1; ->v : Symbol(v, Decl(a.js, 0, 3)) ->undefined : Symbol(undefined) - diff --git a/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.types b/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.types deleted file mode 100644 index 664a071c0b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typeSatisfaction_js.types +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/expressions/typeSatisfaction/typeSatisfaction_js.ts] //// - -=== /src/a.js === -var v = undefined satisfies 1; ->v : any ->undefined satisfies 1 : undefined ->undefined : undefined - diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.errors.txt b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.errors.txt deleted file mode 100644 index 5215c848c1..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -/b/user.ts(1,19): error TS2307: Cannot find module 'a' or its corresponding type declarations. - - -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -==== /a/package.json (0 errors) ==== - { - "types": "", - "typesVersions": { - ">=3.1.0-0": { "*" : ["ts3.1/*"] } - } - } - -==== /a/ts3.1/index.d.ts (0 errors) ==== - export const a = 0; - -==== /b/user.ts (1 errors) ==== - import { a } from "a"; - ~~~ -!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.js b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.js deleted file mode 100644 index 0bcc27d7a6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.js +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/typesVersions.emptyTypes.ts] //// - -//// [package.json] -{ - "types": "", - "typesVersions": { - ">=3.1.0-0": { "*" : ["ts3.1/*"] } - } -} - -//// [index.d.ts] -export const a = 0; - -//// [user.ts] -import { a } from "a"; - - -//// [user.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.symbols b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.symbols deleted file mode 100644 index a07fb6cc18..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/typesVersions.emptyTypes.ts] //// - -=== /a/ts3.1/index.d.ts === -export const a = 0; ->a : Symbol(a, Decl(index.d.ts, 0, 12)) - -=== /b/user.ts === -import { a } from "a"; ->a : Symbol(a, Decl(user.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json deleted file mode 100644 index f7084a863a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json +++ /dev/null @@ -1,15 +0,0 @@ -======== Resolving module 'a' from '/b/user.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/b/package.json' does not exist. -File '/package.json' does not exist. -Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/b/node_modules' does not exist, skipping all lookups in it. -Directory '/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/b/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -======== Module name 'a' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.types b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.types deleted file mode 100644 index a0adfb4e56..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/typesVersions.emptyTypes.ts] //// - -=== /a/ts3.1/index.d.ts === -export const a = 0; ->a : 0 ->0 : 0 - -=== /b/user.ts === -import { a } from "a"; ->a : any - diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.types.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.types.diff deleted file mode 100644 index 0a3baf3dac..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.types.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.typesVersions.emptyTypes.types -+++ new.typesVersions.emptyTypes.types -@@= skipped -6, +6 lines =@@ - - === /b/user.ts === - import { a } from "a"; -->a : 0 -+>a : any diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.errors.txt b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.errors.txt deleted file mode 100644 index 805162ff97..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.errors.txt +++ /dev/null @@ -1,20 +0,0 @@ -error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -/b/user.ts(1,19): error TS2307: Cannot find module 'a' or its corresponding type declarations. - - -!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -==== /a/package.json (0 errors) ==== - { - "typesVersions": { - ">=3.1.0-0": { "*" : ["ts3.1/*"] } - } - } - -==== /a/ts3.1/index.d.ts (0 errors) ==== - export const a = 0; - -==== /b/user.ts (1 errors) ==== - import { a } from "a"; - ~~~ -!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.js b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.js deleted file mode 100644 index 094376c7d0..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.js +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/typesVersions.justIndex.ts] //// - -//// [package.json] -{ - "typesVersions": { - ">=3.1.0-0": { "*" : ["ts3.1/*"] } - } -} - -//// [index.d.ts] -export const a = 0; - -//// [user.ts] -import { a } from "a"; - - -//// [user.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.symbols b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.symbols deleted file mode 100644 index 6d8301a63a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.symbols +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/typesVersions.justIndex.ts] //// - -=== /a/ts3.1/index.d.ts === -export const a = 0; ->a : Symbol(a, Decl(index.d.ts, 0, 12)) - -=== /b/user.ts === -import { a } from "a"; ->a : Symbol(a, Decl(user.ts, 0, 8)) - diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json deleted file mode 100644 index f7084a863a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json +++ /dev/null @@ -1,15 +0,0 @@ -======== Resolving module 'a' from '/b/user.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -File '/b/package.json' does not exist. -File '/package.json' does not exist. -Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/b/node_modules' does not exist, skipping all lookups in it. -Directory '/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -Directory '/b/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -======== Module name 'a' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.types b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.types deleted file mode 100644 index 6a09ed3804..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.types +++ /dev/null @@ -1,11 +0,0 @@ -//// [tests/cases/conformance/moduleResolution/typesVersions.justIndex.ts] //// - -=== /a/ts3.1/index.d.ts === -export const a = 0; ->a : 0 ->0 : 0 - -=== /b/user.ts === -import { a } from "a"; ->a : any - diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.types.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.types.diff deleted file mode 100644 index f8f88f9949..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.types.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.typesVersions.justIndex.types -+++ new.typesVersions.justIndex.types -@@= skipped -6, +6 lines =@@ - - === /b/user.ts === - import { a } from "a"; -->a : 0 -+>a : any diff --git a/testdata/baselines/reference/submodule/conformance/umd-augmentation-1.js b/testdata/baselines/reference/submodule/conformance/umd-augmentation-1.js index 1f4f1971f0..feee836a2c 100644 --- a/testdata/baselines/reference/submodule/conformance/umd-augmentation-1.js +++ b/testdata/baselines/reference/submodule/conformance/umd-augmentation-1.js @@ -40,9 +40,42 @@ var t = p.x; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const m = require("math2d"); +const m = __importStar(require("math2d")); let v = new m.Vector(3, 2); let magnitude = m.getLength(v); let p = v.translate(5, 5); diff --git a/testdata/baselines/reference/submodule/conformance/umd-augmentation-1.js.diff b/testdata/baselines/reference/submodule/conformance/umd-augmentation-1.js.diff index e2be0d238c..d455221ddf 100644 --- a/testdata/baselines/reference/submodule/conformance/umd-augmentation-1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/umd-augmentation-1.js.diff @@ -1,11 +1,11 @@ --- old.umd-augmentation-1.js +++ new.umd-augmentation-1.js -@@= skipped -41, +41 lines =@@ - "use strict"; +@@= skipped -74, +74 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var m = require("math2d"); -+const m = require("math2d"); +-var m = __importStar(require("math2d")); ++const m = __importStar(require("math2d")); let v = new m.Vector(3, 2); let magnitude = m.getLength(v); let p = v.translate(5, 5); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/umd-augmentation-3.js b/testdata/baselines/reference/submodule/conformance/umd-augmentation-3.js index d75e2ddee3..d23484175c 100644 --- a/testdata/baselines/reference/submodule/conformance/umd-augmentation-3.js +++ b/testdata/baselines/reference/submodule/conformance/umd-augmentation-3.js @@ -46,9 +46,42 @@ var t = p.x; //// [b.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); /// -const m = require("math2d"); +const m = __importStar(require("math2d")); let v = new m.Vector(3, 2); let magnitude = m.getLength(v); let p = v.translate(5, 5); diff --git a/testdata/baselines/reference/submodule/conformance/umd-augmentation-3.js.diff b/testdata/baselines/reference/submodule/conformance/umd-augmentation-3.js.diff index 3a66b71e3e..01caf46c18 100644 --- a/testdata/baselines/reference/submodule/conformance/umd-augmentation-3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/umd-augmentation-3.js.diff @@ -1,11 +1,11 @@ --- old.umd-augmentation-3.js +++ new.umd-augmentation-3.js -@@= skipped -47, +47 lines =@@ - "use strict"; +@@= skipped -80, +80 lines =@@ + })(); Object.defineProperty(exports, "__esModule", { value: true }); /// --var m = require("math2d"); -+const m = require("math2d"); +-var m = __importStar(require("math2d")); ++const m = __importStar(require("math2d")); let v = new m.Vector(3, 2); let magnitude = m.getLength(v); let p = v.translate(5, 5); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/umd3.js b/testdata/baselines/reference/submodule/conformance/umd3.js index 927ea391c6..9e4f2a863d 100644 --- a/testdata/baselines/reference/submodule/conformance/umd3.js +++ b/testdata/baselines/reference/submodule/conformance/umd3.js @@ -15,8 +15,41 @@ let y: number = x.n; //// [a.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const Foo = require("./foo"); +const Foo = __importStar(require("./foo")); Foo.fn(); let x; let y = x.n; diff --git a/testdata/baselines/reference/submodule/conformance/umd3.js.diff b/testdata/baselines/reference/submodule/conformance/umd3.js.diff index dd6be58e39..c4b1270cf4 100644 --- a/testdata/baselines/reference/submodule/conformance/umd3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/umd3.js.diff @@ -1,11 +1,11 @@ --- old.umd3.js +++ new.umd3.js -@@= skipped -15, +15 lines =@@ - //// [a.js] - "use strict"; +@@= skipped -48, +48 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var Foo = require("./foo"); -+const Foo = require("./foo"); +-var Foo = __importStar(require("./foo")); ++const Foo = __importStar(require("./foo")); Foo.fn(); let x; let y = x.n; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/umd4.js b/testdata/baselines/reference/submodule/conformance/umd4.js index 32d4f9360a..153fddf07d 100644 --- a/testdata/baselines/reference/submodule/conformance/umd4.js +++ b/testdata/baselines/reference/submodule/conformance/umd4.js @@ -15,8 +15,41 @@ let y: number = x.n; //// [a.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const Bar = require("./foo"); +const Bar = __importStar(require("./foo")); Bar.fn(); let x; let y = x.n; diff --git a/testdata/baselines/reference/submodule/conformance/umd4.js.diff b/testdata/baselines/reference/submodule/conformance/umd4.js.diff index ba9be7048f..e2d3876661 100644 --- a/testdata/baselines/reference/submodule/conformance/umd4.js.diff +++ b/testdata/baselines/reference/submodule/conformance/umd4.js.diff @@ -1,11 +1,11 @@ --- old.umd4.js +++ new.umd4.js -@@= skipped -15, +15 lines =@@ - //// [a.js] - "use strict"; +@@= skipped -48, +48 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var Bar = require("./foo"); -+const Bar = require("./foo"); +-var Bar = __importStar(require("./foo")); ++const Bar = __importStar(require("./foo")); Bar.fn(); let x; let y = x.n; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/umd5.js b/testdata/baselines/reference/submodule/conformance/umd5.js index 0ee9c2d420..781ac917b6 100644 --- a/testdata/baselines/reference/submodule/conformance/umd5.js +++ b/testdata/baselines/reference/submodule/conformance/umd5.js @@ -17,8 +17,41 @@ let z = Foo; //// [a.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const Bar = require("./foo"); +const Bar = __importStar(require("./foo")); Bar.fn(); let x; let y = x.n; diff --git a/testdata/baselines/reference/submodule/conformance/umd5.js.diff b/testdata/baselines/reference/submodule/conformance/umd5.js.diff index 0746600b2a..22cc2dfa8c 100644 --- a/testdata/baselines/reference/submodule/conformance/umd5.js.diff +++ b/testdata/baselines/reference/submodule/conformance/umd5.js.diff @@ -1,11 +1,11 @@ --- old.umd5.js +++ new.umd5.js -@@= skipped -17, +17 lines =@@ - //// [a.js] - "use strict"; +@@= skipped -50, +50 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var Bar = require("./foo"); -+const Bar = require("./foo"); +-var Bar = __importStar(require("./foo")); ++const Bar = __importStar(require("./foo")); Bar.fn(); let x; let y = x.n; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/umd8.symbols b/testdata/baselines/reference/submodule/conformance/umd8.symbols index 7809a99f8f..0cb5bdf2f2 100644 --- a/testdata/baselines/reference/submodule/conformance/umd8.symbols +++ b/testdata/baselines/reference/submodule/conformance/umd8.symbols @@ -10,9 +10,9 @@ let y: Foo; // OK in type position >Foo : Symbol(Foo, Decl(foo.d.ts, 6, 15)) y.foo(); ->y.foo : Symbol(ff.foo, Decl(foo.d.ts, 0, 21)) +>y.foo : Symbol(Thing.foo, Decl(foo.d.ts, 0, 21)) >y : Symbol(y, Decl(a.ts, 3, 3)) ->foo : Symbol(ff.foo, Decl(foo.d.ts, 0, 21)) +>foo : Symbol(Thing.foo, Decl(foo.d.ts, 0, 21)) let z: Foo.SubThing; // OK in ns position >z : Symbol(z, Decl(a.ts, 5, 3)) diff --git a/testdata/baselines/reference/submodule/conformance/umd8.types b/testdata/baselines/reference/submodule/conformance/umd8.types index 7b24d2532b..41ad295eab 100644 --- a/testdata/baselines/reference/submodule/conformance/umd8.types +++ b/testdata/baselines/reference/submodule/conformance/umd8.types @@ -6,12 +6,12 @@ import * as ff from './foo'; >ff : typeof ff let y: Foo; // OK in type position ->y : ff +>y : import("foo") y.foo(); >y.foo() : number >y.foo : () => number ->y : ff +>y : import("foo") >foo : () => number let z: Foo.SubThing; // OK in ns position @@ -20,7 +20,7 @@ let z: Foo.SubThing; // OK in ns position let x: any = Foo; // Not OK in value position >x : any ->Foo : typeof ff +>Foo : typeof import("foo") === foo.d.ts === declare class Thing { diff --git a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.errors.txt b/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.errors.txt deleted file mode 100644 index 4610ce0280..0000000000 --- a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.errors.txt +++ /dev/null @@ -1,37 +0,0 @@ -error TS5055: Cannot write file 'uniqueSymbolsDeclarationsInJs.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - -!!! error TS5055: Cannot write file 'uniqueSymbolsDeclarationsInJs.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== uniqueSymbolsDeclarationsInJs.js (0 errors) ==== - // classes - class C { - /** - * @readonly - */ - static readonlyStaticCall = Symbol(); - /** - * @type {unique symbol} - * @readonly - */ - static readonlyStaticType; - /** - * @type {unique symbol} - * @readonly - */ - static readonlyStaticTypeAndCall = Symbol(); - static readwriteStaticCall = Symbol(); - - /** - * @readonly - */ - readonlyCall = Symbol(); - readwriteCall = Symbol(); - } - - /** @type {unique symbol} */ - const a = Symbol(); - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.symbols b/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.symbols deleted file mode 100644 index 0c2db05922..0000000000 --- a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.symbols +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsInJs.ts] //// - -=== uniqueSymbolsDeclarationsInJs.js === -// classes -class C { ->C : Symbol(C, Decl(uniqueSymbolsDeclarationsInJs.js, 0, 0)) - - /** - * @readonly - */ - static readonlyStaticCall = Symbol(); ->readonlyStaticCall : Symbol(C.readonlyStaticCall, Decl(uniqueSymbolsDeclarationsInJs.js, 1, 9)) ->Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) - - /** - * @type {unique symbol} - * @readonly - */ - static readonlyStaticType; ->readonlyStaticType : Symbol(C.readonlyStaticType, Decl(uniqueSymbolsDeclarationsInJs.js, 5, 41)) - - /** - * @type {unique symbol} - * @readonly - */ - static readonlyStaticTypeAndCall = Symbol(); ->readonlyStaticTypeAndCall : Symbol(C.readonlyStaticTypeAndCall, Decl(uniqueSymbolsDeclarationsInJs.js, 10, 30)) ->Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) - - static readwriteStaticCall = Symbol(); ->readwriteStaticCall : Symbol(C.readwriteStaticCall, Decl(uniqueSymbolsDeclarationsInJs.js, 15, 48)) ->Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) - - /** - * @readonly - */ - readonlyCall = Symbol(); ->readonlyCall : Symbol(C.readonlyCall, Decl(uniqueSymbolsDeclarationsInJs.js, 16, 42)) ->Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) - - readwriteCall = Symbol(); ->readwriteCall : Symbol(C.readwriteCall, Decl(uniqueSymbolsDeclarationsInJs.js, 21, 28)) ->Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) -} - -/** @type {unique symbol} */ -const a = Symbol(); ->a : Symbol(a, Decl(uniqueSymbolsDeclarationsInJs.js, 26, 5)) ->Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) - diff --git a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.types b/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.types deleted file mode 100644 index e812b448aa..0000000000 --- a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJs.types +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsInJs.ts] //// - -=== uniqueSymbolsDeclarationsInJs.js === -// classes -class C { ->C : C - - /** - * @readonly - */ - static readonlyStaticCall = Symbol(); ->readonlyStaticCall : unique symbol ->Symbol() : unique symbol ->Symbol : SymbolConstructor - - /** - * @type {unique symbol} - * @readonly - */ - static readonlyStaticType; ->readonlyStaticType : unique symbol - - /** - * @type {unique symbol} - * @readonly - */ - static readonlyStaticTypeAndCall = Symbol(); ->readonlyStaticTypeAndCall : unique symbol ->Symbol() : unique symbol ->Symbol : SymbolConstructor - - static readwriteStaticCall = Symbol(); ->readwriteStaticCall : symbol ->Symbol() : symbol ->Symbol : SymbolConstructor - - /** - * @readonly - */ - readonlyCall = Symbol(); ->readonlyCall : symbol ->Symbol() : symbol ->Symbol : SymbolConstructor - - readwriteCall = Symbol(); ->readwriteCall : symbol ->Symbol() : symbol ->Symbol : SymbolConstructor -} - -/** @type {unique symbol} */ -const a = Symbol(); ->a : unique symbol ->Symbol() : unique symbol ->Symbol : SymbolConstructor - diff --git a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.errors.txt b/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.errors.txt deleted file mode 100644 index d5f7425d9b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -error TS5055: Cannot write file 'uniqueSymbolsDeclarationsInJsErrors.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -uniqueSymbolsDeclarationsInJsErrors.js(5,12): error TS1331: A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. -uniqueSymbolsDeclarationsInJsErrors.js(14,12): error TS1331: A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. - - -!!! error TS5055: Cannot write file 'uniqueSymbolsDeclarationsInJsErrors.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -==== uniqueSymbolsDeclarationsInJsErrors.js (2 errors) ==== - class C { - /** - * @type {unique symbol} - */ - static readwriteStaticType; - ~~~~~~~~~~~~~~~~~~~ -!!! error TS1331: A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. - /** - * @type {unique symbol} - * @readonly - */ - static readonlyType; - /** - * @type {unique symbol} - */ - static readwriteType; - ~~~~~~~~~~~~~ -!!! error TS1331: A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.symbols b/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.symbols deleted file mode 100644 index 44e440f38b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.symbols +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsInJsErrors.ts] //// - -=== uniqueSymbolsDeclarationsInJsErrors.js === -class C { ->C : Symbol(C, Decl(uniqueSymbolsDeclarationsInJsErrors.js, 0, 0)) - - /** - * @type {unique symbol} - */ - static readwriteStaticType; ->readwriteStaticType : Symbol(C.readwriteStaticType, Decl(uniqueSymbolsDeclarationsInJsErrors.js, 0, 9)) - - /** - * @type {unique symbol} - * @readonly - */ - static readonlyType; ->readonlyType : Symbol(C.readonlyType, Decl(uniqueSymbolsDeclarationsInJsErrors.js, 4, 31)) - - /** - * @type {unique symbol} - */ - static readwriteType; ->readwriteType : Symbol(C.readwriteType, Decl(uniqueSymbolsDeclarationsInJsErrors.js, 9, 24)) -} - diff --git a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.types b/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.types deleted file mode 100644 index 8efd009a30..0000000000 --- a/testdata/baselines/reference/submodule/conformance/uniqueSymbolsDeclarationsInJsErrors.types +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsInJsErrors.ts] //// - -=== uniqueSymbolsDeclarationsInJsErrors.js === -class C { ->C : C - - /** - * @type {unique symbol} - */ - static readwriteStaticType; ->readwriteStaticType : symbol - - /** - * @type {unique symbol} - * @readonly - */ - static readonlyType; ->readonlyType : unique symbol - - /** - * @type {unique symbol} - */ - static readwriteType; ->readwriteType : symbol -} - diff --git a/testdata/baselines/reference/submodule/conformance/untypedModuleImport.js b/testdata/baselines/reference/submodule/conformance/untypedModuleImport.js index e32444357a..2a1373f9f6 100644 --- a/testdata/baselines/reference/submodule/conformance/untypedModuleImport.js +++ b/testdata/baselines/reference/submodule/conformance/untypedModuleImport.js @@ -20,8 +20,41 @@ foo(bar()); //// [a.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const foo = require("foo"); +const foo = __importStar(require("foo")); foo.bar(); //// [b.js] "use strict"; @@ -30,8 +63,41 @@ const foo = require("foo"); foo(); //// [c.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); -const foo_1 = require("foo"); +const foo_1 = __importStar(require("foo")); require("./a"); require("./b"); (0, foo_1.default)((0, foo_1.bar)()); diff --git a/testdata/baselines/reference/submodule/conformance/untypedModuleImport.js.diff b/testdata/baselines/reference/submodule/conformance/untypedModuleImport.js.diff index 3ce5e42a63..84164e61eb 100644 --- a/testdata/baselines/reference/submodule/conformance/untypedModuleImport.js.diff +++ b/testdata/baselines/reference/submodule/conformance/untypedModuleImport.js.diff @@ -1,11 +1,11 @@ --- old.untypedModuleImport.js +++ new.untypedModuleImport.js -@@= skipped -20, +20 lines =@@ - //// [a.js] - "use strict"; +@@= skipped -53, +53 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var foo = require("foo"); -+const foo = require("foo"); +-var foo = __importStar(require("foo")); ++const foo = __importStar(require("foo")); foo.bar(); //// [b.js] "use strict"; @@ -15,9 +15,12 @@ foo(); //// [c.js] "use strict"; +@@= skipped -43, +43 lines =@@ + }; + })(); Object.defineProperty(exports, "__esModule", { value: true }); --var foo_1 = require("foo"); -+const foo_1 = require("foo"); +-var foo_1 = __importStar(require("foo")); ++const foo_1 = __importStar(require("foo")); require("./a"); require("./b"); (0, foo_1.default)((0, foo_1.bar)()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/untypedModuleImport_allowJs.js b/testdata/baselines/reference/submodule/conformance/untypedModuleImport_allowJs.js index a85b8d66ea..cf974a2ca6 100644 --- a/testdata/baselines/reference/submodule/conformance/untypedModuleImport_allowJs.js +++ b/testdata/baselines/reference/submodule/conformance/untypedModuleImport_allowJs.js @@ -10,6 +10,9 @@ foo.bar(); //// [a.js] "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const foo_1 = require("foo"); +const foo_1 = __importDefault(require("foo")); foo_1.default.bar(); diff --git a/testdata/baselines/reference/submodule/conformance/untypedModuleImport_allowJs.js.diff b/testdata/baselines/reference/submodule/conformance/untypedModuleImport_allowJs.js.diff index a755437f9d..b780930711 100644 --- a/testdata/baselines/reference/submodule/conformance/untypedModuleImport_allowJs.js.diff +++ b/testdata/baselines/reference/submodule/conformance/untypedModuleImport_allowJs.js.diff @@ -1,9 +1,9 @@ --- old.untypedModuleImport_allowJs.js +++ new.untypedModuleImport_allowJs.js -@@= skipped -10, +10 lines =@@ - //// [a.js] - "use strict"; +@@= skipped -13, +13 lines =@@ + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; Object.defineProperty(exports, "__esModule", { value: true }); --var foo_1 = require("foo"); -+const foo_1 = require("foo"); +-var foo_1 = __importDefault(require("foo")); ++const foo_1 = __importDefault(require("foo")); foo_1.default.bar(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).errors.txt b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).errors.txt deleted file mode 100644 index 906193198a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -/main.ts(1,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. - - -==== /decl.d.ts (0 errors) ==== - declare class CJSy {} - export = CJSy; - -==== /ambient.d.ts (0 errors) ==== - declare module "ambient" { - const _export: number; - export = _export; - } - -==== /types.ts (0 errors) ==== - interface Typey {} - export type { Typey }; - -==== /main.ts (1 errors) ==== - import CJSy = require("./decl"); // error - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! 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. - import type CJSy2 = require("./decl"); // ok I guess? - import CJSy3 from "./decl"; // ok in esModuleInterop - import * as types from "./types"; // ok - CJSy; - -==== /ns.ts (0 errors) ==== - export namespace ns { - export enum A {} - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js deleted file mode 100644 index 57efd689b0..0000000000 --- a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/externalModules/verbatimModuleSyntaxRestrictionsESM.ts] //// - -//// [decl.d.ts] -declare class CJSy {} -export = CJSy; - -//// [ambient.d.ts] -declare module "ambient" { - const _export: number; - export = _export; -} - -//// [types.ts] -interface Typey {} -export type { Typey }; - -//// [main.ts] -import CJSy = require("./decl"); // error -import type CJSy2 = require("./decl"); // ok I guess? -import CJSy3 from "./decl"; // ok in esModuleInterop -import * as types from "./types"; // ok -CJSy; - -//// [ns.ts] -export namespace ns { - export enum A {} -} - - -//// [types.js] -export {}; -//// [main.js] -import CJSy3 from "./decl"; // ok in esModuleInterop -import * as types from "./types"; // ok -CJSy; -//// [ns.js] -export { ns }; -var ns; -(function (ns) { - let A; - (function (A) { - })(A = ns.A || (ns.A = {})); -})(ns || (ns = {})); diff --git a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js.diff b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js.diff deleted file mode 100644 index 6c56f68a9b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js -+++ new.verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).js -@@= skipped -33, +33 lines =@@ - import * as types from "./types"; // ok - CJSy; - //// [ns.js] --export var ns; -+export { ns }; -+var ns; - (function (ns) { - let A; - (function (A) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).symbols b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).symbols deleted file mode 100644 index e270b023b7..0000000000 --- a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).symbols +++ /dev/null @@ -1,51 +0,0 @@ -//// [tests/cases/conformance/externalModules/verbatimModuleSyntaxRestrictionsESM.ts] //// - -=== /decl.d.ts === -declare class CJSy {} ->CJSy : Symbol(CJSy, Decl(decl.d.ts, 0, 0)) - -export = CJSy; ->CJSy : Symbol(CJSy, Decl(decl.d.ts, 0, 0)) - -=== /ambient.d.ts === -declare module "ambient" { ->"ambient" : Symbol("ambient", Decl(ambient.d.ts, 0, 0)) - - const _export: number; ->_export : Symbol(_export, Decl(ambient.d.ts, 1, 9)) - - export = _export; ->_export : Symbol(_export, Decl(ambient.d.ts, 1, 9)) -} - -=== /types.ts === -interface Typey {} ->Typey : Symbol(Typey, Decl(types.ts, 0, 0)) - -export type { Typey }; ->Typey : Symbol(Typey, Decl(types.ts, 1, 13)) - -=== /main.ts === -import CJSy = require("./decl"); // error ->CJSy : Symbol(CJSy, Decl(main.ts, 0, 0)) - -import type CJSy2 = require("./decl"); // ok I guess? ->CJSy2 : Symbol(CJSy2, Decl(main.ts, 0, 32)) - -import CJSy3 from "./decl"; // ok in esModuleInterop ->CJSy3 : Symbol(CJSy3, Decl(main.ts, 2, 6)) - -import * as types from "./types"; // ok ->types : Symbol(types, Decl(main.ts, 3, 6)) - -CJSy; ->CJSy : Symbol(CJSy, Decl(main.ts, 0, 0)) - -=== /ns.ts === -export namespace ns { ->ns : Symbol(ns, Decl(ns.ts, 0, 0)) - - export enum A {} ->A : Symbol(A, Decl(ns.ts, 0, 21)) -} - diff --git a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).types b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).types deleted file mode 100644 index 5099017f15..0000000000 --- a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsESM(esmoduleinterop=false).types +++ /dev/null @@ -1,49 +0,0 @@ -//// [tests/cases/conformance/externalModules/verbatimModuleSyntaxRestrictionsESM.ts] //// - -=== /decl.d.ts === -declare class CJSy {} ->CJSy : CJSy - -export = CJSy; ->CJSy : CJSy - -=== /ambient.d.ts === -declare module "ambient" { ->"ambient" : typeof import("ambient") - - const _export: number; ->_export : number - - export = _export; ->_export : number -} - -=== /types.ts === -interface Typey {} -export type { Typey }; ->Typey : Typey - -=== /main.ts === -import CJSy = require("./decl"); // error ->CJSy : typeof CJSy - -import type CJSy2 = require("./decl"); // ok I guess? ->CJSy2 : typeof CJSy - -import CJSy3 from "./decl"; // ok in esModuleInterop ->CJSy3 : typeof CJSy - -import * as types from "./types"; // ok ->types : typeof types - -CJSy; ->CJSy : typeof CJSy - -=== /ns.ts === -export namespace ns { ->ns : typeof ns - - export enum A {} ->A : A -} - diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc deleted file mode 100644 index 56439ae8c3..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findRenameLocations === -// === /fileA.ts === -// export function /*RENAME*/[|__fooRENAME|]() { -// } -// - -// === /fileB.ts === -// import { [|__fooRENAME|] as bar } from "./fileA"; -// -// bar(); - - - -// === findRenameLocations === -// === /fileA.ts === -// export function [|__fooRENAME|]() { -// } -// - -// === /fileB.ts === -// import { /*RENAME*/[|__fooRENAME|] as bar } from "./fileA"; -// -// bar(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc deleted file mode 100644 index fa6c9c9cba..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findRenameLocations === -// === /foo.ts === -// export function /*RENAME*/[|barRENAME|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo.[|barRENAME|](); -// }) - - - -// === findRenameLocations === -// === /foo.ts === -// export function [|barRENAME|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo./*RENAME*/[|barRENAME|](); -// }) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc deleted file mode 100644 index 29d9e140b4..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findRenameLocations === -// === /foo.ts === -// export function /*RENAME*/[|barRENAME|]() { return "bar"; } -// import('./foo').then(({ [|barRENAME|]: bar/*END SUFFIX*/ }) => undefined); - - - -// === findRenameLocations === -// === /foo.ts === -// export function bar() { return "bar"; } -// import('./foo').then(({ /*START PREFIX*/bar: /*RENAME*/[|barRENAME|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc deleted file mode 100644 index f96fbc5b1d..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /findAllRefsClassWithStaticThisAccess.ts === -// class /*RENAME*/[|CRENAME|] { -// static s() { -// this; -// } -// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff deleted file mode 100644 index 29eec4cdc0..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.findAllRefsClassWithStaticThisAccess.baseline.jsonc -+++ new.findAllRefsClassWithStaticThisAccess.baseline.jsonc -@@= skipped -3, +3 lines =@@ - // static s() { - // this; - // } --// static get f() { --// return this; --// --// function inner() { this; } --// class Inner { x = this; } --// } --// } -+// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc deleted file mode 100644 index ef489e4c5e..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findRenameLocations === -// === /a.ts === -// export class /*RENAME*/[|ClassRENAME|] {} - -// === /b.ts === -// import { [|ClassRENAME|] as C2 } from "./a"; -// var c = new C2(); - -// === /c.ts === -// export { [|ClassRENAME|] as C3 } from "./a"; - - - -// === findRenameLocations === -// === /a.ts === -// export class [|ClassRENAME|] {} - -// === /b.ts === -// import { /*RENAME*/[|ClassRENAME|] as C2 } from "./a"; -// var c = new C2(); - -// === /c.ts === -// export { [|ClassRENAME|] as C3 } from "./a"; - - - -// === findRenameLocations === -// === /a.ts === -// export class [|ClassRENAME|] {} - -// === /b.ts === -// import { [|ClassRENAME|] as C2 } from "./a"; -// var c = new C2(); - -// === /c.ts === -// export { /*RENAME*/[|ClassRENAME|] as C3 } from "./a"; - - - -// === findRenameLocations === -// === /b.ts === -// import { Class as /*RENAME*/[|C2RENAME|] } from "./a"; -// var c = new [|C2RENAME|](); - - - -// === findRenameLocations === -// === /b.ts === -// import { Class as [|C2RENAME|] } from "./a"; -// var c = new /*RENAME*/[|C2RENAME|](); - - - -// === findRenameLocations === -// === /c.ts === -// export { Class as /*RENAME*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff deleted file mode 100644 index 293d6126e0..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.findAllRefsOnImportAliases2.baseline.jsonc -+++ new.findAllRefsOnImportAliases2.baseline.jsonc -@@= skipped -52, +52 lines =@@ - - // === findRenameLocations === - // === /c.ts === --// export { Class as /*RENAME*/[|C3RENAME|] } from "./a"; -+// export { Class as /*RENAME*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc deleted file mode 100644 index 327559c1b5..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findRenameLocations === -// === /b.js === -// export { -// /*RENAME*/foo -// } from './a'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff deleted file mode 100644 index 585d82efd7..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.highlightsForExportFromUnfoundModule.baseline.jsonc -+++ new.highlightsForExportFromUnfoundModule.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /b.js === - // export { --// /*START PREFIX*/foo as /*RENAME*/[|fooRENAME|] -+// /*RENAME*/foo - // } from './a'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc deleted file mode 100644 index 1783f1b9dc..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findRenameLocations === -// === /Foo.js === -// class Foo { -// constructor() { -// this./*RENAME*/[|unionRENAME|] = 'foo'; -// this.[|unionRENAME|] = 100; -// } -// method() { return this.[|unionRENAME|]; } -// } -// var x = new Foo(); -// x.[|unionRENAME|]; - - - -// === findRenameLocations === -// === /Foo.js === -// class Foo { -// constructor() { -// this.[|unionRENAME|] = 'foo'; -// this./*RENAME*/[|unionRENAME|] = 100; -// } -// method() { return this.[|unionRENAME|]; } -// } -// var x = new Foo(); -// x.[|unionRENAME|]; - - - -// === findRenameLocations === -// === /Foo.js === -// class Foo { -// constructor() { -// this.[|unionRENAME|] = 'foo'; -// this.[|unionRENAME|] = 100; -// } -// method() { return this./*RENAME*/[|unionRENAME|]; } -// } -// var x = new Foo(); -// x.[|unionRENAME|]; - - - -// === findRenameLocations === -// === /Foo.js === -// class Foo { -// constructor() { -// this.[|unionRENAME|] = 'foo'; -// this.[|unionRENAME|] = 100; -// } -// method() { return this.[|unionRENAME|]; } -// } -// var x = new Foo(); -// x./*RENAME*/[|unionRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc deleted file mode 100644 index 093641ac6b..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findRenameLocations === -// === /jsDocSee_rename1.ts === -// interface /*RENAME*/[|ARENAME|] {} -// /** -// * @see {[|ARENAME|]} -// */ -// declare const a: [|ARENAME|] - - - -// === findRenameLocations === -// === /jsDocSee_rename1.ts === -// interface [|ARENAME|] {} -// /** -// * @see {/*RENAME*/[|ARENAME|]} -// */ -// declare const a: [|ARENAME|] - - - -// === findRenameLocations === -// === /jsDocSee_rename1.ts === -// interface [|ARENAME|] {} -// /** -// * @see {[|ARENAME|]} -// */ -// declare const a: /*RENAME*/[|ARENAME|] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff deleted file mode 100644 index 46f3c11c6a..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.jsDocSee_rename1.baseline.jsonc -+++ new.jsDocSee_rename1.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /jsDocSee_rename1.ts === - // interface /*RENAME*/[|ARENAME|] {} - // /** -@@= skipped -9, +8 lines =@@ - - - // === findRenameLocations === -- - // === /jsDocSee_rename1.ts === - // interface [|ARENAME|] {} - // /** -@@= skipped -11, +10 lines =@@ - - - // === findRenameLocations === -- - // === /jsDocSee_rename1.ts === - // interface [|ARENAME|] {} - // /** \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc deleted file mode 100644 index 596dc32276..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /jsDocCallback.js === -// /** -// * @callback /*RENAME*/[|FooCallbackRENAME|] -// * @param {string} eventName - Rename should work -// */ -// -// /** @type {[|FooCallbackRENAME|]} */ -// var t; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff deleted file mode 100644 index 4bc0773b3e..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.jsdocCallbackTagRename01.baseline.jsonc -+++ new.jsdocCallbackTagRename01.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /jsDocCallback.js === --// - // /** - // * @callback /*RENAME*/[|FooCallbackRENAME|] - // * @param {string} eventName - Rename should work \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocLink_rename1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocLink_rename1.baseline.jsonc deleted file mode 100644 index 94d0b95b78..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocLink_rename1.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /jsdocLink_rename1.ts === -// interface [|ARENAME|]/*RENAME*/ {} -// /** -// * {@link [|ARENAME|]()} is ok -// */ -// declare const a: [|ARENAME|] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc deleted file mode 100644 index 5b12f6ccd9..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /a.js === -// /** -// * @typedef {Object} [|TRENAME|] -// * @property {number} a -// */ -// -// /** @satisfies {/*RENAME*/[|TRENAME|]} comment */ -// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc deleted file mode 100644 index c7fe097fcc..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /jsdocThrowsTag_rename.ts === -// class /*RENAME*/[|ERENAME|] extends Error {} -// /** -// * @throws {E} -// */ -// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff deleted file mode 100644 index a579e74bae..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.jsdocThrowsTag_rename.baseline.jsonc -+++ new.jsdocThrowsTag_rename.baseline.jsonc -@@= skipped -1, +1 lines =@@ - // === /jsdocThrowsTag_rename.ts === - // class /*RENAME*/[|ERENAME|] extends Error {} - // /** --// * @throws {[|ERENAME|]} -+// * @throws {E} - // */ - // function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc deleted file mode 100644 index 382e55f562..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form1.js === -// /** @typedef {(string | number)} */ -// var /*RENAME*/[|NumberLikeRENAME|]; -// -// [|NumberLikeRENAME|] = 10; -// -// /** @type {NumberLike} */ -// var numberLike; - - - -// === findRenameLocations === -// === /jsDocTypedef_form1.js === -// /** @typedef {(string | number)} */ -// var [|NumberLikeRENAME|]; -// -// /*RENAME*/[|NumberLikeRENAME|] = 10; -// -// /** @type {NumberLike} */ -// var numberLike; - - - -// === findRenameLocations === -// === /jsDocTypedef_form1.js === -// /** @typedef {(string | number)} */ -// var NumberLike; -// -// NumberLike = 10; -// -// /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ -// var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff deleted file mode 100644 index 8a16026273..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff +++ /dev/null @@ -1,46 +0,0 @@ ---- old.jsdocTypedefTagRename01.baseline.jsonc -+++ new.jsdocTypedefTagRename01.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /jsDocTypedef_form1.js === --// - // /** @typedef {(string | number)} */ - // var /*RENAME*/[|NumberLikeRENAME|]; - // - // [|NumberLikeRENAME|] = 10; - // --// /** @type {[|NumberLikeRENAME|]} */ -+// /** @type {NumberLike} */ - // var numberLike; - - - - // === findRenameLocations === -- - // === /jsDocTypedef_form1.js === --// - // /** @typedef {(string | number)} */ - // var [|NumberLikeRENAME|]; - // - // /*RENAME*/[|NumberLikeRENAME|] = 10; - // --// /** @type {[|NumberLikeRENAME|]} */ -+// /** @type {NumberLike} */ - // var numberLike; - - - - // === findRenameLocations === -- - // === /jsDocTypedef_form1.js === --// - // /** @typedef {(string | number)} */ --// var [|NumberLikeRENAME|]; -+// var NumberLike; - // --// [|NumberLikeRENAME|] = 10; -+// NumberLike = 10; - // - // /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ - // var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc deleted file mode 100644 index ba44583210..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form2.js === -// /** @typedef {(string | number)} /*RENAME*/[|NumberLikeRENAME|] */ -// -// /** @type {[|NumberLikeRENAME|]} */ -// var numberLike; - - - -// === findRenameLocations === -// === /jsDocTypedef_form2.js === -// /** @typedef {(string | number)} [|NumberLikeRENAME|] */ -// -// /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ -// var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff deleted file mode 100644 index 7a8d1070cf..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.jsdocTypedefTagRename02.baseline.jsonc -+++ new.jsdocTypedefTagRename02.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /jsDocTypedef_form2.js === --// - // /** @typedef {(string | number)} /*RENAME*/[|NumberLikeRENAME|] */ - // - // /** @type {[|NumberLikeRENAME|]} */ -@@= skipped -9, +7 lines =@@ - - - // === findRenameLocations === -- - // === /jsDocTypedef_form2.js === --// - // /** @typedef {(string | number)} [|NumberLikeRENAME|] */ - // - // /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc deleted file mode 100644 index 7b7c4fd618..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form3.js === -// /** -// * @typedef /*RENAME*/[|PersonRENAME|] -// * @type {Object} -// * @property {number} age -// * @property {string} name -// */ -// -// /** @type {[|PersonRENAME|]} */ -// var person; - - - -// === findRenameLocations === -// === /jsDocTypedef_form3.js === -// /** -// * @typedef [|PersonRENAME|] -// * @type {Object} -// * @property {number} age -// * @property {string} name -// */ -// -// /** @type {/*RENAME*/[|PersonRENAME|]} */ -// var person; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff deleted file mode 100644 index 6ff5604625..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.jsdocTypedefTagRename03.baseline.jsonc -+++ new.jsdocTypedefTagRename03.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /jsDocTypedef_form3.js === --// - // /** - // * @typedef /*RENAME*/[|PersonRENAME|] - // * @type {Object} -@@= skipped -14, +12 lines =@@ - - - // === findRenameLocations === -- - // === /jsDocTypedef_form3.js === --// - // /** - // * @typedef [|PersonRENAME|] - // * @type {Object} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc index c84c9923ac..e69de29bb2 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc @@ -1,19 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === -// --- (line: 10) skipped --- -// } -// } -// -// var /*RENAME*/[|nnRENAME|]: {name?: string; size?: number}; -// var x = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 10) skipped --- -// } -// } -// -// var [|nnRENAME|]: {name?: string; size?: number}; -// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff deleted file mode 100644 index d29a7198d1..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.jsxSpreadReference.baseline.jsonc -+++ new.jsxSpreadReference.baseline.jsonc -@@= skipped -16, +16 lines =@@ - // - // var [|nnRENAME|]: {name?: string; size?: number}; - // var x = ; -- -- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc index f08a819ee4..e69de29bb2 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /decl.js === -// var [|objRENAME|] = {}; - -// === /forof.js === -// for ([|objRENAME|]/*RENAME*/.prop of arr) { -// -// } - -// === /unicode1.js === -// [|objRENAME|].𝒜 ; - -// === /unicode2.js === -// [|objRENAME|].¬ ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff deleted file mode 100644 index 19174180ba..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.processInvalidSyntax1.baseline.jsonc -+++ new.processInvalidSyntax1.baseline.jsonc -@@= skipped -1, +1 lines =@@ - // === /decl.js === - // var [|objRENAME|] = {}; - --// === /unicode1.js === --// [|objRENAME|].𝒜 ; -- --// === /unicode2.js === --// [|objRENAME|].¬ ; -- --// === /unicode3.js === --// [|objRENAME|]¬ -- - // === /forof.js === - // for ([|objRENAME|]/*RENAME*/.prop of arr) { - // - // } -+ -+// === /unicode1.js === -+// [|objRENAME|].𝒜 ; -+ -+// === /unicode2.js === -+// [|objRENAME|].¬ ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc deleted file mode 100644 index 91ee0e756d..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /rename01.ts === -// /// -// function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff deleted file mode 100644 index 10a21fa37c..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.rename01.baseline.jsonc -+++ new.rename01.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /rename01.ts === - // /// - // function /*RENAME*/[|BarRENAME|]() { --// // This is a reference to [|BarRENAME|] in a comment. --// "this is a reference to [|BarRENAME|] in a string" -+// // This is a reference to Bar in a comment. -+// "this is a reference to Bar in a string" - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc deleted file mode 100644 index 48bb8773df..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findRenameLocations === -// === /a.ts === -// var /*RENAME*/[|xRENAME|]: number; - -// === /b.ts === -// /// -// [|xRENAME|]++; - -// === /c.ts === -// /// -// [|xRENAME|]++; - - - -// === findRenameLocations === -// === /a.ts === -// var [|xRENAME|]: number; - -// === /b.ts === -// /// -// /*RENAME*/[|xRENAME|]++; - -// === /c.ts === -// /// -// [|xRENAME|]++; - - - -// === findRenameLocations === -// === /a.ts === -// var [|xRENAME|]: number; - -// === /b.ts === -// /// -// [|xRENAME|]++; - -// === /c.ts === -// /// -// /*RENAME*/[|xRENAME|]++; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc deleted file mode 100644 index 169ac2f6fa..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findRenameLocations === -// === /renameAlias.ts === -// module SomeModule { export class SomeClass { } } -// import /*RENAME*/[|MRENAME|] = SomeModule; -// import C = [|MRENAME|].SomeClass; - - - -// === findRenameLocations === -// === /renameAlias.ts === -// module SomeModule { export class SomeClass { } } -// import [|MRENAME|] = SomeModule; -// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc deleted file mode 100644 index 097898f626..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findRenameLocations === -// === /renameAlias2.ts === -// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } -// import M = [|SomeModuleRENAME|]; -// import C = M.SomeClass; - - - -// === findRenameLocations === -// === /renameAlias2.ts === -// module [|SomeModuleRENAME|] { export class SomeClass { } } -// import M = /*RENAME*/[|SomeModuleRENAME|]; -// import C = M.SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc deleted file mode 100644 index ca8a01e4ff..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findRenameLocations === -// === /renameAlias3.ts === -// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } -// import M = SomeModule; -// import C = M.[|SomeClassRENAME|]; - - - -// === findRenameLocations === -// === /renameAlias3.ts === -// module SomeModule { export class [|SomeClassRENAME|] { } } -// import M = SomeModule; -// import C = M./*RENAME*/[|SomeClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc deleted file mode 100644 index 5a52c526c3..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findRenameLocations === -// === /b.ts === -// import /*RENAME*/[|MRENAME|] = require("./a"); -// import C = [|MRENAME|].SomeClass; - - - -// === findRenameLocations === -// === /b.ts === -// import [|MRENAME|] = require("./a"); -// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc deleted file mode 100644 index 58598eadcb..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findRenameLocations === -// === /a.ts === -// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } -// export = [|SomeModuleRENAME|]; - - - -// === findRenameLocations === -// === /a.ts === -// module [|SomeModuleRENAME|] { export class SomeClass { } } -// export = /*RENAME*/[|SomeModuleRENAME|]; - - - -// === findRenameLocations === -// === /b.ts === -// import /*RENAME*/[|MRENAME|] = require("./a"); -// import C = [|MRENAME|].SomeClass; - - - -// === findRenameLocations === -// === /b.ts === -// import [|MRENAME|] = require("./a"); -// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc deleted file mode 100644 index 8b0ec2b3ce..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === findRenameLocations === -// === /a.ts === -// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } -// export = SomeModule; - -// === /b.ts === -// import M = require("./a"); -// import C = M.[|SomeClassRENAME|]; - - - -// === findRenameLocations === -// === /a.ts === -// module SomeModule { export class [|SomeClassRENAME|] { } } -// export = SomeModule; - -// === /b.ts === -// import M = require("./a"); -// import C = M./*RENAME*/[|SomeClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc deleted file mode 100644 index aae6d891cd..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc +++ /dev/null @@ -1,115 +0,0 @@ -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === -// const /*RENAME*/[|externalRENAME|] = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === -// const external = true; -// -// function f({ -// lvl1 = /*RENAME*/[|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// }) {} -// -// const { -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// } = obj; - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === -// const external = true; -// -// function f({ -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = /*RENAME*/[|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// }) {} -// -// const { -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// } = obj; - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === -// const external = true; -// -// function f({ -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = /*RENAME*/[|externalRENAME|] -// }) {} -// -// const { -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// } = obj; - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === -// const external = true; -// -// function f({ -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// }) {} -// -// const { -// lvl1 = /*RENAME*/[|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// } = obj; - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === -// const external = true; -// -// function f({ -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// }) {} -// -// const { -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = /*RENAME*/[|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// } = obj; - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === -// const external = true; -// -// function f({ -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = [|externalRENAME|] -// }) {} -// -// const { -// lvl1 = [|externalRENAME|], -// nested: { lvl2 = [|externalRENAME|]}, -// oldName: newName = /*RENAME*/[|externalRENAME|] -// } = obj; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff deleted file mode 100644 index f92508151d..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff +++ /dev/null @@ -1,73 +0,0 @@ ---- old.renameBindingElementInitializerExternal.baseline.jsonc -+++ new.renameBindingElementInitializerExternal.baseline.jsonc -@@= skipped -2, +2 lines =@@ - // const /*RENAME*/[|externalRENAME|] = true; - // - // function f({ --// lvl1 = [|externalRENAME|], --// nested: { lvl2 = [|externalRENAME|]}, --// oldName: newName = [|externalRENAME|] --// }) {} --// --// const { --// lvl1 = [|externalRENAME|], --// nested: { lvl2 = [|externalRENAME|]}, --// oldName: newName = [|externalRENAME|] --// } = obj; -+// lvl1 = external, -+// // --- (line: 5) skipped --- - - - - // === findRenameLocations === - // === /renameBindingElementInitializerExternal.ts === --// const [|externalRENAME|] = true; -+// const external = true; - // - // function f({ - // lvl1 = /*RENAME*/[|externalRENAME|], -@@= skipped -33, +25 lines =@@ - - // === findRenameLocations === - // === /renameBindingElementInitializerExternal.ts === --// const [|externalRENAME|] = true; -+// const external = true; - // - // function f({ - // lvl1 = [|externalRENAME|], -@@= skipped -18, +18 lines =@@ - - // === findRenameLocations === - // === /renameBindingElementInitializerExternal.ts === --// const [|externalRENAME|] = true; -+// const external = true; - // - // function f({ - // lvl1 = [|externalRENAME|], -@@= skipped -18, +18 lines =@@ - - // === findRenameLocations === - // === /renameBindingElementInitializerExternal.ts === --// const [|externalRENAME|] = true; -+// const external = true; - // - // function f({ - // lvl1 = [|externalRENAME|], -@@= skipped -18, +18 lines =@@ - - // === findRenameLocations === - // === /renameBindingElementInitializerExternal.ts === --// const [|externalRENAME|] = true; -+// const external = true; - // - // function f({ - // lvl1 = [|externalRENAME|], -@@= skipped -18, +18 lines =@@ - - // === findRenameLocations === - // === /renameBindingElementInitializerExternal.ts === --// const [|externalRENAME|] = true; -+// const external = true; - // - // function f({ - // lvl1 = [|externalRENAME|], \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc deleted file mode 100644 index 6d2729cd2e..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc +++ /dev/null @@ -1,52 +0,0 @@ -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === -// function f({/*START PREFIX*/required: /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { -// console.log("required", [|requiredRENAME|]); -// console.log("optional", optional); -// } -// -// f({required: 10}); - - - -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === -// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = /*RENAME*/[|requiredRENAME|]}: {required: number, optional?: number}) { -// console.log("required", [|requiredRENAME|]); -// console.log("optional", optional); -// } -// -// f({required: 10}); - - - -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === -// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { -// console.log("required", /*RENAME*/[|requiredRENAME|]); -// console.log("optional", optional); -// } -// -// f({required: 10}); - - - -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === -// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {/*RENAME*/[|requiredRENAME|]: number, optional?: number}) { -// console.log("required", required); -// console.log("optional", optional); -// } -// -// f({[|requiredRENAME|]: 10}); - - - -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === -// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {[|requiredRENAME|]: number, optional?: number}) { -// console.log("required", required); -// console.log("optional", optional); -// } -// -// f({/*RENAME*/[|requiredRENAME|]: 10}); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc deleted file mode 100644 index b24b7dd8d0..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings1.ts === -// /// -// function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc deleted file mode 100644 index 20c5f83e25..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings2.ts === -// /// -// function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff deleted file mode 100644 index 04055e0b6e..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.renameCommentsAndStrings2.baseline.jsonc -+++ new.renameCommentsAndStrings2.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /renameCommentsAndStrings2.ts === - // /// - // function /*RENAME*/[|BarRENAME|]() { - // // This is a reference to Bar in a comment. --// "this is a reference to [|BarRENAME|] in a string" -+// "this is a reference to Bar in a string" - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc deleted file mode 100644 index 9ccb26f725..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings3.ts === -// /// -// function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff deleted file mode 100644 index 87ad7c1be2..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.renameCommentsAndStrings3.baseline.jsonc -+++ new.renameCommentsAndStrings3.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /renameCommentsAndStrings3.ts === - // /// - // function /*RENAME*/[|BarRENAME|]() { --// // This is a reference to [|BarRENAME|] in a comment. -+// // This is a reference to Bar in a comment. - // "this is a reference to Bar in a string" - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc deleted file mode 100644 index 65750b7846..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings4.ts === -// /// -// function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string"; -// `Foo Bar Baz.`; -// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff deleted file mode 100644 index 77124b4370..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.renameCommentsAndStrings4.baseline.jsonc -+++ new.renameCommentsAndStrings4.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /renameCommentsAndStrings4.ts === - // /// - // function /*RENAME*/[|BarRENAME|]() { --// // This is a reference to [|BarRENAME|] in a comment. --// "this is a reference to [|BarRENAME|] in a string"; --// `Foo [|BarRENAME|] Baz.`; --// { --// const Bar = 0; --// `[|BarRENAME|] ba ${Bar} bara [|BarRENAME|] berbobo ${Bar} araura [|BarRENAME|] ara!`; --// } --// } -+// // This is a reference to Bar in a comment. -+// "this is a reference to Bar in a string"; -+// `Foo Bar Baz.`; -+// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc deleted file mode 100644 index 5e291fb2fb..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc +++ /dev/null @@ -1,374 +0,0 @@ -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// interface I { -// /*RENAME*/[|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// [|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// [|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get [|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set [|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// interface I { -// [|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// /*RENAME*/[|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// [|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get [|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set [|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// interface I { -// [|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// [|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// /*RENAME*/[|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get [|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set [|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// interface I { -// [|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// [|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// [|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get /*RENAME*/[|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set [|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// interface I { -// [|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// [|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// [|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get [|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set /*RENAME*/[|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// --- (line: 23) skipped --- -// }; -// -// var o5: I = { -// "/*RENAME*/prop1"() { }, -// "prop2"() { } -// }; -// -// // --- (line: 31) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// --- (line: 28) skipped --- -// }; -// -// var o6: I = { -// "/*RENAME*/prop1": function () { }, -// "prop2": function () { } -// }; -// -// // --- (line: 36) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// --- (line: 33) skipped --- -// }; -// -// var o7: I = { -// ["/*RENAME*/prop1"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// // --- (line: 41) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// --- (line: 38) skipped --- -// }; -// -// var o8: I = { -// ["/*RENAME*/prop1"]() { }, -// ["prop2"]() { } -// }; -// -// // --- (line: 46) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// --- (line: 43) skipped --- -// }; -// -// var o9: I = { -// get ["/*RENAME*/prop1"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// // --- (line: 51) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === -// --- (line: 48) skipped --- -// }; -// -// var o10: I = { -// set ["/*RENAME*/prop1"](v) { }, -// set ["prop2"](v) { } -// }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff deleted file mode 100644 index 8269b1954c..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff +++ /dev/null @@ -1,430 +0,0 @@ ---- old.renameContextuallyTypedProperties.baseline.jsonc -+++ new.renameContextuallyTypedProperties.baseline.jsonc -@@= skipped -294, +294 lines =@@ - - // === findRenameLocations === - // === /renameContextuallyTypedProperties.ts === --// interface I { --// [|prop1RENAME|]: () => void; --// prop2(): void; --// } --// --// var o1: I = { --// [|prop1RENAME|]() { }, --// prop2() { } --// }; --// --// var o2: I = { --// [|prop1RENAME|]: () => { }, --// prop2: () => { } --// }; --// --// var o3: I = { --// get [|prop1RENAME|]() { return () => { }; }, --// get prop2() { return () => { }; } --// }; --// --// var o4: I = { --// set [|prop1RENAME|](v) { }, --// set prop2(v) { } --// }; --// --// var o5: I = { --// "/*RENAME*/[|prop1RENAME|]"() { }, --// "prop2"() { } --// }; --// --// var o6: I = { --// "[|prop1RENAME|]": function () { }, --// "prop2": function () { } --// }; --// --// var o7: I = { --// ["[|prop1RENAME|]"]: function () { }, --// ["prop2"]: function () { } --// }; --// --// var o8: I = { --// ["[|prop1RENAME|]"]() { }, --// ["prop2"]() { } --// }; --// --// var o9: I = { --// get ["[|prop1RENAME|]"]() { return () => { }; }, --// get ["prop2"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["[|prop1RENAME|]"](v) { }, --// set ["prop2"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties.ts === --// interface I { --// [|prop1RENAME|]: () => void; --// prop2(): void; --// } --// --// var o1: I = { --// [|prop1RENAME|]() { }, --// prop2() { } --// }; --// --// var o2: I = { --// [|prop1RENAME|]: () => { }, --// prop2: () => { } --// }; --// --// var o3: I = { --// get [|prop1RENAME|]() { return () => { }; }, --// get prop2() { return () => { }; } --// }; --// --// var o4: I = { --// set [|prop1RENAME|](v) { }, --// set prop2(v) { } --// }; --// --// var o5: I = { --// "[|prop1RENAME|]"() { }, --// "prop2"() { } --// }; --// --// var o6: I = { --// "/*RENAME*/[|prop1RENAME|]": function () { }, --// "prop2": function () { } --// }; --// --// var o7: I = { --// ["[|prop1RENAME|]"]: function () { }, --// ["prop2"]: function () { } --// }; --// --// var o8: I = { --// ["[|prop1RENAME|]"]() { }, --// ["prop2"]() { } --// }; --// --// var o9: I = { --// get ["[|prop1RENAME|]"]() { return () => { }; }, --// get ["prop2"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["[|prop1RENAME|]"](v) { }, --// set ["prop2"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties.ts === --// interface I { --// [|prop1RENAME|]: () => void; --// prop2(): void; --// } --// --// var o1: I = { --// [|prop1RENAME|]() { }, --// prop2() { } --// }; --// --// var o2: I = { --// [|prop1RENAME|]: () => { }, --// prop2: () => { } --// }; --// --// var o3: I = { --// get [|prop1RENAME|]() { return () => { }; }, --// get prop2() { return () => { }; } --// }; --// --// var o4: I = { --// set [|prop1RENAME|](v) { }, --// set prop2(v) { } --// }; --// --// var o5: I = { --// "[|prop1RENAME|]"() { }, --// "prop2"() { } --// }; --// --// var o6: I = { --// "[|prop1RENAME|]": function () { }, --// "prop2": function () { } --// }; --// --// var o7: I = { --// ["/*RENAME*/[|prop1RENAME|]"]: function () { }, --// ["prop2"]: function () { } --// }; --// --// var o8: I = { --// ["[|prop1RENAME|]"]() { }, --// ["prop2"]() { } --// }; --// --// var o9: I = { --// get ["[|prop1RENAME|]"]() { return () => { }; }, --// get ["prop2"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["[|prop1RENAME|]"](v) { }, --// set ["prop2"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties.ts === --// interface I { --// [|prop1RENAME|]: () => void; --// prop2(): void; --// } --// --// var o1: I = { --// [|prop1RENAME|]() { }, --// prop2() { } --// }; --// --// var o2: I = { --// [|prop1RENAME|]: () => { }, --// prop2: () => { } --// }; --// --// var o3: I = { --// get [|prop1RENAME|]() { return () => { }; }, --// get prop2() { return () => { }; } --// }; --// --// var o4: I = { --// set [|prop1RENAME|](v) { }, --// set prop2(v) { } --// }; --// --// var o5: I = { --// "[|prop1RENAME|]"() { }, --// "prop2"() { } --// }; --// --// var o6: I = { --// "[|prop1RENAME|]": function () { }, --// "prop2": function () { } --// }; --// --// var o7: I = { --// ["[|prop1RENAME|]"]: function () { }, --// ["prop2"]: function () { } --// }; --// --// var o8: I = { --// ["/*RENAME*/[|prop1RENAME|]"]() { }, --// ["prop2"]() { } --// }; --// --// var o9: I = { --// get ["[|prop1RENAME|]"]() { return () => { }; }, --// get ["prop2"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["[|prop1RENAME|]"](v) { }, --// set ["prop2"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties.ts === --// interface I { --// [|prop1RENAME|]: () => void; --// prop2(): void; --// } --// --// var o1: I = { --// [|prop1RENAME|]() { }, --// prop2() { } --// }; --// --// var o2: I = { --// [|prop1RENAME|]: () => { }, --// prop2: () => { } --// }; --// --// var o3: I = { --// get [|prop1RENAME|]() { return () => { }; }, --// get prop2() { return () => { }; } --// }; --// --// var o4: I = { --// set [|prop1RENAME|](v) { }, --// set prop2(v) { } --// }; --// --// var o5: I = { --// "[|prop1RENAME|]"() { }, --// "prop2"() { } --// }; --// --// var o6: I = { --// "[|prop1RENAME|]": function () { }, --// "prop2": function () { } --// }; --// --// var o7: I = { --// ["[|prop1RENAME|]"]: function () { }, --// ["prop2"]: function () { } --// }; --// --// var o8: I = { --// ["[|prop1RENAME|]"]() { }, --// ["prop2"]() { } --// }; --// --// var o9: I = { --// get ["/*RENAME*/[|prop1RENAME|]"]() { return () => { }; }, --// get ["prop2"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["[|prop1RENAME|]"](v) { }, --// set ["prop2"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties.ts === --// interface I { --// [|prop1RENAME|]: () => void; --// prop2(): void; --// } --// --// var o1: I = { --// [|prop1RENAME|]() { }, --// prop2() { } --// }; --// --// var o2: I = { --// [|prop1RENAME|]: () => { }, --// prop2: () => { } --// }; --// --// var o3: I = { --// get [|prop1RENAME|]() { return () => { }; }, --// get prop2() { return () => { }; } --// }; --// --// var o4: I = { --// set [|prop1RENAME|](v) { }, --// set prop2(v) { } --// }; --// --// var o5: I = { --// "[|prop1RENAME|]"() { }, --// "prop2"() { } --// }; --// --// var o6: I = { --// "[|prop1RENAME|]": function () { }, --// "prop2": function () { } --// }; --// --// var o7: I = { --// ["[|prop1RENAME|]"]: function () { }, --// ["prop2"]: function () { } --// }; --// --// var o8: I = { --// ["[|prop1RENAME|]"]() { }, --// ["prop2"]() { } --// }; --// --// var o9: I = { --// get ["[|prop1RENAME|]"]() { return () => { }; }, --// get ["prop2"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["/*RENAME*/[|prop1RENAME|]"](v) { }, -+// --- (line: 23) skipped --- -+// }; -+// -+// var o5: I = { -+// "/*RENAME*/prop1"() { }, -+// "prop2"() { } -+// }; -+// -+// // --- (line: 31) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties.ts === -+// --- (line: 28) skipped --- -+// }; -+// -+// var o6: I = { -+// "/*RENAME*/prop1": function () { }, -+// "prop2": function () { } -+// }; -+// -+// // --- (line: 36) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties.ts === -+// --- (line: 33) skipped --- -+// }; -+// -+// var o7: I = { -+// ["/*RENAME*/prop1"]: function () { }, -+// ["prop2"]: function () { } -+// }; -+// -+// // --- (line: 41) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties.ts === -+// --- (line: 38) skipped --- -+// }; -+// -+// var o8: I = { -+// ["/*RENAME*/prop1"]() { }, -+// ["prop2"]() { } -+// }; -+// -+// // --- (line: 46) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties.ts === -+// --- (line: 43) skipped --- -+// }; -+// -+// var o9: I = { -+// get ["/*RENAME*/prop1"]() { return () => { }; }, -+// get ["prop2"]() { return () => { }; } -+// }; -+// -+// // --- (line: 51) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties.ts === -+// --- (line: 48) skipped --- -+// }; -+// -+// var o10: I = { -+// set ["/*RENAME*/prop1"](v) { }, - // set ["prop2"](v) { } - // }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc deleted file mode 100644 index 2701f8b18c..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc +++ /dev/null @@ -1,373 +0,0 @@ -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// interface I { -// prop1: () => void; -// /*RENAME*/[|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// [|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// [|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get [|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set [|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// interface I { -// prop1: () => void; -// [|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// /*RENAME*/[|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// [|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get [|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set [|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// interface I { -// prop1: () => void; -// [|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// [|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// /*RENAME*/[|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get [|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set [|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// interface I { -// prop1: () => void; -// [|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// [|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// [|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get /*RENAME*/[|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set [|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// interface I { -// prop1: () => void; -// [|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// [|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// [|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get [|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set /*RENAME*/[|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// --- (line: 24) skipped --- -// -// var o5: I = { -// "prop1"() { }, -// "/*RENAME*/prop2"() { } -// }; -// -// var o6: I = { -// // --- (line: 32) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// --- (line: 29) skipped --- -// -// var o6: I = { -// "prop1": function () { }, -// "/*RENAME*/prop2": function () { } -// }; -// -// var o7: I = { -// // --- (line: 37) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// --- (line: 34) skipped --- -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["/*RENAME*/prop2"]: function () { } -// }; -// -// var o8: I = { -// // --- (line: 42) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// --- (line: 39) skipped --- -// -// var o8: I = { -// ["prop1"]() { }, -// ["/*RENAME*/prop2"]() { } -// }; -// -// var o9: I = { -// // --- (line: 47) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// --- (line: 44) skipped --- -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["/*RENAME*/prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// // --- (line: 52) skipped --- - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === -// --- (line: 49) skipped --- -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["/*RENAME*/prop2"](v) { } -// }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff deleted file mode 100644 index 9cb5b9653a..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff +++ /dev/null @@ -1,430 +0,0 @@ ---- old.renameContextuallyTypedProperties2.baseline.jsonc -+++ new.renameContextuallyTypedProperties2.baseline.jsonc -@@= skipped -294, +294 lines =@@ - - // === findRenameLocations === - // === /renameContextuallyTypedProperties2.ts === --// interface I { --// prop1: () => void; --// [|prop2RENAME|](): void; --// } --// --// var o1: I = { --// prop1() { }, --// [|prop2RENAME|]() { } --// }; --// --// var o2: I = { --// prop1: () => { }, --// [|prop2RENAME|]: () => { } --// }; --// --// var o3: I = { --// get prop1() { return () => { }; }, --// get [|prop2RENAME|]() { return () => { }; } --// }; --// --// var o4: I = { --// set prop1(v) { }, --// set [|prop2RENAME|](v) { } --// }; --// --// var o5: I = { --// "prop1"() { }, --// "/*RENAME*/[|prop2RENAME|]"() { } --// }; --// --// var o6: I = { --// "prop1": function () { }, --// "[|prop2RENAME|]": function () { } --// }; --// --// var o7: I = { --// ["prop1"]: function () { }, --// ["[|prop2RENAME|]"]: function () { } --// }; --// --// var o8: I = { --// ["prop1"]() { }, --// ["[|prop2RENAME|]"]() { } --// }; --// --// var o9: I = { --// get ["prop1"]() { return () => { }; }, --// get ["[|prop2RENAME|]"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["prop1"](v) { }, --// set ["[|prop2RENAME|]"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties2.ts === --// interface I { --// prop1: () => void; --// [|prop2RENAME|](): void; --// } --// --// var o1: I = { --// prop1() { }, --// [|prop2RENAME|]() { } --// }; --// --// var o2: I = { --// prop1: () => { }, --// [|prop2RENAME|]: () => { } --// }; --// --// var o3: I = { --// get prop1() { return () => { }; }, --// get [|prop2RENAME|]() { return () => { }; } --// }; --// --// var o4: I = { --// set prop1(v) { }, --// set [|prop2RENAME|](v) { } --// }; --// --// var o5: I = { --// "prop1"() { }, --// "[|prop2RENAME|]"() { } --// }; --// --// var o6: I = { --// "prop1": function () { }, --// "/*RENAME*/[|prop2RENAME|]": function () { } --// }; --// --// var o7: I = { --// ["prop1"]: function () { }, --// ["[|prop2RENAME|]"]: function () { } --// }; --// --// var o8: I = { --// ["prop1"]() { }, --// ["[|prop2RENAME|]"]() { } --// }; --// --// var o9: I = { --// get ["prop1"]() { return () => { }; }, --// get ["[|prop2RENAME|]"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["prop1"](v) { }, --// set ["[|prop2RENAME|]"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties2.ts === --// interface I { --// prop1: () => void; --// [|prop2RENAME|](): void; --// } --// --// var o1: I = { --// prop1() { }, --// [|prop2RENAME|]() { } --// }; --// --// var o2: I = { --// prop1: () => { }, --// [|prop2RENAME|]: () => { } --// }; --// --// var o3: I = { --// get prop1() { return () => { }; }, --// get [|prop2RENAME|]() { return () => { }; } --// }; --// --// var o4: I = { --// set prop1(v) { }, --// set [|prop2RENAME|](v) { } --// }; --// --// var o5: I = { --// "prop1"() { }, --// "[|prop2RENAME|]"() { } --// }; --// --// var o6: I = { --// "prop1": function () { }, --// "[|prop2RENAME|]": function () { } --// }; --// --// var o7: I = { --// ["prop1"]: function () { }, --// ["/*RENAME*/[|prop2RENAME|]"]: function () { } --// }; --// --// var o8: I = { --// ["prop1"]() { }, --// ["[|prop2RENAME|]"]() { } --// }; --// --// var o9: I = { --// get ["prop1"]() { return () => { }; }, --// get ["[|prop2RENAME|]"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["prop1"](v) { }, --// set ["[|prop2RENAME|]"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties2.ts === --// interface I { --// prop1: () => void; --// [|prop2RENAME|](): void; --// } --// --// var o1: I = { --// prop1() { }, --// [|prop2RENAME|]() { } --// }; --// --// var o2: I = { --// prop1: () => { }, --// [|prop2RENAME|]: () => { } --// }; --// --// var o3: I = { --// get prop1() { return () => { }; }, --// get [|prop2RENAME|]() { return () => { }; } --// }; --// --// var o4: I = { --// set prop1(v) { }, --// set [|prop2RENAME|](v) { } --// }; --// --// var o5: I = { --// "prop1"() { }, --// "[|prop2RENAME|]"() { } --// }; --// --// var o6: I = { --// "prop1": function () { }, --// "[|prop2RENAME|]": function () { } --// }; --// --// var o7: I = { --// ["prop1"]: function () { }, --// ["[|prop2RENAME|]"]: function () { } --// }; --// --// var o8: I = { --// ["prop1"]() { }, --// ["/*RENAME*/[|prop2RENAME|]"]() { } --// }; --// --// var o9: I = { --// get ["prop1"]() { return () => { }; }, --// get ["[|prop2RENAME|]"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["prop1"](v) { }, --// set ["[|prop2RENAME|]"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties2.ts === --// interface I { --// prop1: () => void; --// [|prop2RENAME|](): void; --// } --// --// var o1: I = { --// prop1() { }, --// [|prop2RENAME|]() { } --// }; --// --// var o2: I = { --// prop1: () => { }, --// [|prop2RENAME|]: () => { } --// }; --// --// var o3: I = { --// get prop1() { return () => { }; }, --// get [|prop2RENAME|]() { return () => { }; } --// }; --// --// var o4: I = { --// set prop1(v) { }, --// set [|prop2RENAME|](v) { } --// }; --// --// var o5: I = { --// "prop1"() { }, --// "[|prop2RENAME|]"() { } --// }; --// --// var o6: I = { --// "prop1": function () { }, --// "[|prop2RENAME|]": function () { } --// }; --// --// var o7: I = { --// ["prop1"]: function () { }, --// ["[|prop2RENAME|]"]: function () { } --// }; --// --// var o8: I = { --// ["prop1"]() { }, --// ["[|prop2RENAME|]"]() { } --// }; --// --// var o9: I = { --// get ["prop1"]() { return () => { }; }, --// get ["/*RENAME*/[|prop2RENAME|]"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["prop1"](v) { }, --// set ["[|prop2RENAME|]"](v) { } --// }; -- -- -- --// === findRenameLocations === --// === /renameContextuallyTypedProperties2.ts === --// interface I { --// prop1: () => void; --// [|prop2RENAME|](): void; --// } --// --// var o1: I = { --// prop1() { }, --// [|prop2RENAME|]() { } --// }; --// --// var o2: I = { --// prop1: () => { }, --// [|prop2RENAME|]: () => { } --// }; --// --// var o3: I = { --// get prop1() { return () => { }; }, --// get [|prop2RENAME|]() { return () => { }; } --// }; --// --// var o4: I = { --// set prop1(v) { }, --// set [|prop2RENAME|](v) { } --// }; --// --// var o5: I = { --// "prop1"() { }, --// "[|prop2RENAME|]"() { } --// }; --// --// var o6: I = { --// "prop1": function () { }, --// "[|prop2RENAME|]": function () { } --// }; --// --// var o7: I = { --// ["prop1"]: function () { }, --// ["[|prop2RENAME|]"]: function () { } --// }; --// --// var o8: I = { --// ["prop1"]() { }, --// ["[|prop2RENAME|]"]() { } --// }; --// --// var o9: I = { --// get ["prop1"]() { return () => { }; }, --// get ["[|prop2RENAME|]"]() { return () => { }; } --// }; --// --// var o10: I = { --// set ["prop1"](v) { }, --// set ["/*RENAME*/[|prop2RENAME|]"](v) { } -+// --- (line: 24) skipped --- -+// -+// var o5: I = { -+// "prop1"() { }, -+// "/*RENAME*/prop2"() { } -+// }; -+// -+// var o6: I = { -+// // --- (line: 32) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties2.ts === -+// --- (line: 29) skipped --- -+// -+// var o6: I = { -+// "prop1": function () { }, -+// "/*RENAME*/prop2": function () { } -+// }; -+// -+// var o7: I = { -+// // --- (line: 37) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties2.ts === -+// --- (line: 34) skipped --- -+// -+// var o7: I = { -+// ["prop1"]: function () { }, -+// ["/*RENAME*/prop2"]: function () { } -+// }; -+// -+// var o8: I = { -+// // --- (line: 42) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties2.ts === -+// --- (line: 39) skipped --- -+// -+// var o8: I = { -+// ["prop1"]() { }, -+// ["/*RENAME*/prop2"]() { } -+// }; -+// -+// var o9: I = { -+// // --- (line: 47) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties2.ts === -+// --- (line: 44) skipped --- -+// -+// var o9: I = { -+// get ["prop1"]() { return () => { }; }, -+// get ["/*RENAME*/prop2"]() { return () => { }; } -+// }; -+// -+// var o10: I = { -+// // --- (line: 52) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameContextuallyTypedProperties2.ts === -+// --- (line: 49) skipped --- -+// -+// var o10: I = { -+// set ["prop1"](v) { }, -+// set ["/*RENAME*/prop2"](v) { } - // }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCrossJsTs01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCrossJsTs01.baseline.jsonc deleted file mode 100644 index 0b7ab8eff5..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCrossJsTs01.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /a.js === -// exports./*RENAME*/[|areaRENAME|] = function (r) { return r * r; } - -// === /b.ts === -// import { [|areaRENAME|] } from './a'; -// var t = [|areaRENAME|](10); - - - -// === findRenameLocations === -// === /b.ts === -// import { /*START PREFIX*/area as /*RENAME*/[|areaRENAME|] } from './a'; -// var t = [|areaRENAME|](10); - - - -// === findRenameLocations === -// === /b.ts === -// import { /*START PREFIX*/area as [|areaRENAME|] } from './a'; -// var t = /*RENAME*/[|areaRENAME|](10); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc deleted file mode 100644 index f0155261f0..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc +++ /dev/null @@ -1,191 +0,0 @@ -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// /*RENAME*/class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 /*RENAME*/extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base /*RENAME*/implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// /*RENAME*/get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// // --- (line: 8) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// /*RENAME*/set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// // --- (line: 9) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 3) skipped --- -// get e() { return 1; } -// set e(v) {} -// } -// /*RENAME*/interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 3) skipped --- -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 /*RENAME*/extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 4) skipped --- -// set e(v) {} -// } -// interface I1 extends Base { } -// /*RENAME*/type T = { } -// enum E { } -// namespace N { } -// module M { } -// // --- (line: 12) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 5) skipped --- -// } -// interface I1 extends Base { } -// type T = { } -// /*RENAME*/enum E { } -// namespace N { } -// module M { } -// function fn() {} -// // --- (line: 13) skipped --- - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 6) skipped --- -// interface I1 extends Base { } -// type T = { } -// enum E { } -// /*RENAME*/namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 7) skipped --- -// type T = { } -// enum E { } -// namespace N { } -// /*RENAME*/module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 8) skipped --- -// enum E { } -// namespace N { } -// module M { } -// /*RENAME*/function fn() {} -// var x; -// let y; -// const z = 1; - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 9) skipped --- -// namespace N { } -// module M { } -// function fn() {} -// /*RENAME*/var x; -// let y; -// const z = 1; - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 10) skipped --- -// module M { } -// function fn() {} -// var x; -// /*RENAME*/let y; -// const z = 1; - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === -// --- (line: 11) skipped --- -// function fn() {} -// var x; -// let y; -// /*RENAME*/const z = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff deleted file mode 100644 index 994bb4b0aa..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff +++ /dev/null @@ -1,266 +0,0 @@ ---- old.renameDeclarationKeywords.baseline.jsonc -+++ new.renameDeclarationKeywords.baseline.jsonc -@@= skipped -1, +1 lines =@@ - // === /renameDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} --// /*RENAME*/class [|C1RENAME|] extends Base implements Implemented1 { --// get e() { return 1; } --// set e(v) {} --// } --// interface I1 extends Base { } --// type T = { } --// enum E { } --// --- (line: 10) skipped --- -- -- -- --// === findRenameLocations === --// === /renameDeclarationKeywords.ts === --// class [|BaseRENAME|] {} --// interface Implemented1 {} --// class C1 /*RENAME*/extends [|BaseRENAME|] implements Implemented1 { --// get e() { return 1; } --// set e(v) {} --// } --// interface I1 extends [|BaseRENAME|] { } --// type T = { } --// enum E { } --// namespace N { } --// --- (line: 11) skipped --- -- -- -- --// === findRenameLocations === --// === /renameDeclarationKeywords.ts === --// class Base {} --// interface [|Implemented1RENAME|] {} --// class C1 extends Base /*RENAME*/implements [|Implemented1RENAME|] { --// get e() { return 1; } --// set e(v) {} --// } --// --- (line: 7) skipped --- -- -- -- --// === findRenameLocations === --// === /renameDeclarationKeywords.ts === --// class Base {} --// interface Implemented1 {} --// class C1 extends Base implements Implemented1 { --// /*RENAME*/get [|eRENAME|]() { return 1; } --// set [|eRENAME|](v) {} --// } --// interface I1 extends Base { } --// type T = { } --// --- (line: 9) skipped --- -- -- -- --// === findRenameLocations === --// === /renameDeclarationKeywords.ts === --// class Base {} --// interface Implemented1 {} --// class C1 extends Base implements Implemented1 { --// get [|eRENAME|]() { return 1; } --// /*RENAME*/set [|eRENAME|](v) {} --// } --// interface I1 extends Base { } --// type T = { } --// --- (line: 9) skipped --- -- -- -- --// === findRenameLocations === --// === /renameDeclarationKeywords.ts === --// --- (line: 3) skipped --- --// get e() { return 1; } --// set e(v) {} --// } --// /*RENAME*/interface [|I1RENAME|] extends Base { } --// type T = { } --// enum E { } --// namespace N { } --// --- (line: 11) skipped --- -- -- -- --// === findRenameLocations === --// === /renameDeclarationKeywords.ts === --// class [|BaseRENAME|] {} --// interface Implemented1 {} --// class C1 extends [|BaseRENAME|] implements Implemented1 { --// get e() { return 1; } --// set e(v) {} --// } --// interface I1 /*RENAME*/extends [|BaseRENAME|] { } --// type T = { } --// enum E { } --// namespace N { } --// --- (line: 11) skipped --- -+// /*RENAME*/class C1 extends Base implements Implemented1 { -+// get e() { return 1; } -+// set e(v) {} -+// } -+// // --- (line: 7) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameDeclarationKeywords.ts === -+// class Base {} -+// interface Implemented1 {} -+// class C1 /*RENAME*/extends Base implements Implemented1 { -+// get e() { return 1; } -+// set e(v) {} -+// } -+// // --- (line: 7) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameDeclarationKeywords.ts === -+// class Base {} -+// interface Implemented1 {} -+// class C1 extends Base /*RENAME*/implements Implemented1 { -+// get e() { return 1; } -+// set e(v) {} -+// } -+// // --- (line: 7) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameDeclarationKeywords.ts === -+// class Base {} -+// interface Implemented1 {} -+// class C1 extends Base implements Implemented1 { -+// /*RENAME*/get e() { return 1; } -+// set e(v) {} -+// } -+// interface I1 extends Base { } -+// // --- (line: 8) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameDeclarationKeywords.ts === -+// class Base {} -+// interface Implemented1 {} -+// class C1 extends Base implements Implemented1 { -+// get e() { return 1; } -+// /*RENAME*/set e(v) {} -+// } -+// interface I1 extends Base { } -+// type T = { } -+// // --- (line: 9) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameDeclarationKeywords.ts === -+// --- (line: 3) skipped --- -+// get e() { return 1; } -+// set e(v) {} -+// } -+// /*RENAME*/interface I1 extends Base { } -+// type T = { } -+// enum E { } -+// namespace N { } -+// // --- (line: 11) skipped --- -+ -+ -+ -+// === findRenameLocations === -+// === /renameDeclarationKeywords.ts === -+// --- (line: 3) skipped --- -+// get e() { return 1; } -+// set e(v) {} -+// } -+// interface I1 /*RENAME*/extends Base { } -+// type T = { } -+// enum E { } -+// namespace N { } -+// // --- (line: 11) skipped --- - - - -@@= skipped -103, +93 lines =@@ - // set e(v) {} - // } - // interface I1 extends Base { } --// /*RENAME*/type [|TRENAME|] = { } -+// /*RENAME*/type T = { } - // enum E { } - // namespace N { } - // module M { } --// --- (line: 12) skipped --- -+// // --- (line: 12) skipped --- - - - -@@= skipped -14, +14 lines =@@ - // } - // interface I1 extends Base { } - // type T = { } --// /*RENAME*/enum [|ERENAME|] { } -+// /*RENAME*/enum E { } - // namespace N { } - // module M { } - // function fn() {} --// --- (line: 13) skipped --- -+// // --- (line: 13) skipped --- - - - -@@= skipped -14, +14 lines =@@ - // interface I1 extends Base { } - // type T = { } - // enum E { } --// /*RENAME*/namespace [|NRENAME|] { } -+// /*RENAME*/namespace N { } - // module M { } - // function fn() {} - // var x; -@@= skipped -15, +15 lines =@@ - // type T = { } - // enum E { } - // namespace N { } --// /*RENAME*/module [|MRENAME|] { } -+// /*RENAME*/module M { } - // function fn() {} - // var x; - // let y; -@@= skipped -14, +14 lines =@@ - // enum E { } - // namespace N { } - // module M { } --// /*RENAME*/function [|fnRENAME|]() {} -+// /*RENAME*/function fn() {} - // var x; - // let y; - // const z = 1; -@@= skipped -13, +13 lines =@@ - // namespace N { } - // module M { } - // function fn() {} --// /*RENAME*/var [|xRENAME|]; -+// /*RENAME*/var x; - // let y; - // const z = 1; - -@@= skipped -12, +12 lines =@@ - // module M { } - // function fn() {} - // var x; --// /*RENAME*/let [|yRENAME|]; -+// /*RENAME*/let y; - // const z = 1; - - -@@= skipped -11, +11 lines =@@ - // function fn() {} - // var x; - // let y; --// /*RENAME*/const [|zRENAME|] = 1; -+// /*RENAME*/const z = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc deleted file mode 100644 index 3cde049d52..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /B.ts === -// export default class /*RENAME*/[|CRENAME|] { -// test() { -// } -// } - - - -// === findRenameLocations === -// === /A.ts === -// import /*RENAME*/[|BRENAME|] from "./B"; -// let b = new [|BRENAME|](); -// b.test(); - - - -// === findRenameLocations === -// === /A.ts === -// import [|BRENAME|] from "./B"; -// let b = new /*RENAME*/[|BRENAME|](); -// b.test(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc.diff deleted file mode 100644 index f45fc22589..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.renameDefaultImportDifferentName.baseline.jsonc -+++ new.renameDefaultImportDifferentName.baseline.jsonc -@@= skipped -19, +19 lines =@@ - // import [|BRENAME|] from "./B"; - // let b = new /*RENAME*/[|BRENAME|](); - // b.test(); -- -- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc deleted file mode 100644 index 78e6d47758..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findRenameLocations === -// === /file1.ts === -// var /*RENAME*/[|testRENAME|] = "foo"; -// console.log([|testRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff deleted file mode 100644 index c1cf1d7d15..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.renameDefaultLibDontWork.baseline.jsonc -+++ new.renameDefaultLibDontWork.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /file1.ts === - // var /*RENAME*/[|testRENAME|] = "foo"; - // console.log([|testRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc deleted file mode 100644 index 1e5ed18275..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringAssignment.ts === -// interface I { -// /*RENAME*/[|xRENAME|]: number; -// } -// var a: I; -// var x; -// ({ [|xRENAME|]: x } = a); - - - -// === findRenameLocations === -// === /renameDestructuringAssignment.ts === -// interface I { -// [|xRENAME|]: number; -// } -// var a: I; -// var x; -// ({ /*RENAME*/[|xRENAME|]: x } = a); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc deleted file mode 100644 index 5f243b92f5..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === -// interface I { -// /*RENAME*/[|property1RENAME|]: number; -// property2: string; -// } -// var elems: I[], p1: number, property1: number; -// [{ [|property1RENAME|]: p1 }] = elems; -// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === -// interface I { -// [|property1RENAME|]: number; -// property2: string; -// } -// var elems: I[], p1: number, property1: number; -// [{ /*RENAME*/[|property1RENAME|]: p1 }] = elems; -// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === -// interface I { -// property1: number; -// property2: string; -// } -// var elems: I[], p1: number, /*RENAME*/[|property1RENAME|]: number; -// [{ property1: p1 }] = elems; -// [{ /*START PREFIX*/property1: [|property1RENAME|] }] = elems; - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === -// interface I { -// property1: number; -// property2: string; -// } -// var elems: I[], p1: number, [|property1RENAME|]: number; -// [{ property1: p1 }] = elems; -// [{ /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] }] = elems; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc deleted file mode 100644 index 1d6d63f567..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc +++ /dev/null @@ -1,83 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === -// interface MultiRobot { -// name: string; -// skills: { -// /*RENAME*/[|primaryRENAME|]: string; -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[], primary: string; -// for ({ skills: { [|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { -// console.log(primary); -// } - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === -// interface MultiRobot { -// name: string; -// skills: { -// [|primaryRENAME|]: string; -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[], primary: string; -// for ({ skills: { /*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { -// console.log(primary); -// } - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === -// --- (line: 4) skipped --- -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[], /*RENAME*/[|primaryRENAME|]: string; -// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { -// console.log([|primaryRENAME|]); -// } - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === -// --- (line: 4) skipped --- -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; -// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for ({ skills: { /*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { -// console.log([|primaryRENAME|]); -// } - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === -// --- (line: 4) skipped --- -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; -// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { -// console.log(/*RENAME*/[|primaryRENAME|]); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc deleted file mode 100644 index d8e5f06926..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc +++ /dev/null @@ -1,78 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === -// class A { -// /*RENAME*/[|fooRENAME|]: string; -// } -// class B { -// syntax1(a: A): void { -// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; -// } -// syntax2(a: A): void { -// let { [|fooRENAME|]: foo } = a; -// } -// syntax11(a: A): void { -// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; -// foo = "newString"; -// } -// } - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === -// class A { -// [|fooRENAME|]: string; -// } -// class B { -// syntax1(a: A): void { -// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; -// } -// syntax2(a: A): void { -// let { /*RENAME*/[|fooRENAME|]: foo } = a; -// } -// syntax11(a: A): void { -// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; -// foo = "newString"; -// } -// } - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === -// class A { -// foo: string; -// } -// class B { -// syntax1(a: A): void { -// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; -// } -// syntax2(a: A): void { -// let { foo: foo } = a; -// // --- (line: 10) skipped --- - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === -// --- (line: 8) skipped --- -// let { foo: foo } = a; -// } -// syntax11(a: A): void { -// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; -// [|fooRENAME|] = "newString"; -// } -// } - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === -// --- (line: 8) skipped --- -// let { foo: foo } = a; -// } -// syntax11(a: A): void { -// let { /*START PREFIX*/foo: [|fooRENAME|] } = a; -// /*RENAME*/[|fooRENAME|] = "newString"; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff deleted file mode 100644 index c5b0529fbe..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.renameDestructuringClassProperty.baseline.jsonc -+++ new.renameDestructuringClassProperty.baseline.jsonc -@@= skipped -48, +48 lines =@@ - // } - // syntax2(a: A): void { - // let { foo: foo } = a; --// --- (line: 10) skipped --- -+// // --- (line: 10) skipped --- - - diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc deleted file mode 100644 index 634b62c027..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc +++ /dev/null @@ -1,55 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === -// interface I { -// /*RENAME*/[|property1RENAME|]: number; -// property2: string; -// } -// var elems: I[]; -// -// var p2: number, property1: number; -// for (let { [|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { -// } -// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { -// property1 = p2; -// } - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === -// interface I { -// [|property1RENAME|]: number; -// property2: string; -// } -// var elems: I[]; -// -// var p2: number, property1: number; -// for (let { /*RENAME*/[|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { -// } -// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { -// property1 = p2; -// } - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === -// --- (line: 6) skipped --- -// var p2: number, property1: number; -// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { -// } -// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } = elems[0]; p2 < 100; p2++) { -// [|property1RENAME|] = p2; -// } - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === -// --- (line: 6) skipped --- -// var p2: number, property1: number; -// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { -// } -// for (let { /*START PREFIX*/property1: [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { -// /*RENAME*/[|property1RENAME|] = p2; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc deleted file mode 100644 index 23a7989f99..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc +++ /dev/null @@ -1,57 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === -// interface I { -// /*RENAME*/[|property1RENAME|]: number; -// property2: string; -// } -// var elems: I[]; -// -// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { -// property1++; -// } -// for (let { [|property1RENAME|]: p2 } of elems) { -// } - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === -// interface I { -// [|property1RENAME|]: number; -// property2: string; -// } -// var elems: I[]; -// -// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { -// property1++; -// } -// for (let { /*RENAME*/[|property1RENAME|]: p2 } of elems) { -// } - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === -// --- (line: 3) skipped --- -// } -// var elems: I[]; -// -// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } of elems) { -// [|property1RENAME|]++; -// } -// for (let { property1: p2 } of elems) { -// } - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === -// --- (line: 3) skipped --- -// } -// var elems: I[]; -// -// for (let { /*START PREFIX*/property1: [|property1RENAME|] } of elems) { -// /*RENAME*/[|property1RENAME|]++; -// } -// for (let { property1: p2 } of elems) { -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc deleted file mode 100644 index 3da6d4496c..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringFunctionParameter.ts === -// function f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}: {a}) { -// f({/*START PREFIX*/a: [|aRENAME|]}); -// } - - - -// === findRenameLocations === -// === /renameDestructuringFunctionParameter.ts === -// function f({/*START PREFIX*/a: [|aRENAME|]}: {a}) { -// f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}); -// } - - - -// === findRenameLocations === -// === /renameDestructuringFunctionParameter.ts === -// function f({[|aRENAME|]: a/*END SUFFIX*/}: {/*RENAME*/[|aRENAME|]}) { -// f({[|aRENAME|]: a/*END SUFFIX*/}); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc deleted file mode 100644 index ab3a3fab33..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc +++ /dev/null @@ -1,59 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === -// interface MultiRobot { -// name: string; -// skills: { -// /*RENAME*/[|primaryRENAME|]: string; -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[]; -// for (let { skills: {[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { -// console.log(primary); -// } - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === -// interface MultiRobot { -// name: string; -// skills: { -// [|primaryRENAME|]: string; -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[]; -// for (let { skills: {/*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { -// console.log(primary); -// } - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === -// --- (line: 8) skipped --- -// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for (let { skills: {/*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { -// console.log([|primaryRENAME|]); -// } - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === -// --- (line: 8) skipped --- -// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { -// console.log(primaryA); -// } -// for (let { skills: {/*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { -// console.log(/*RENAME*/[|primaryRENAME|]); -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc deleted file mode 100644 index da18660ebe..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findRenameLocations === -// === /Foo.js === -// let [|aRENAME|]; -// module.exports = /*RENAME*/[|aRENAME|]; -// exports["foo"] = [|aRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc deleted file mode 100644 index 6e30fd32c4..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findRenameLocations === -// @useAliasesForRename: false - -// === /a.ts === -// const name = {}; -// export { name as name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff deleted file mode 100644 index 6c108ca3a9..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.renameExportSpecifier.baseline.jsonc -+++ new.renameExportSpecifier.baseline.jsonc -@@= skipped -2, +2 lines =@@ - - // === /a.ts === - // const name = {}; --// export { name as [|nameRENAME|]/*RENAME*/ }; -- --// === /b.ts === --// import { [|nameRENAME|] } from './a'; --// const x = [|nameRENAME|].toString(); -+// export { name as name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc deleted file mode 100644 index 155c542abf..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findRenameLocations === -// @useAliasesForRename: false - -// === /a.ts === -// const [|nameRENAME|] = {}; -// export { name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff deleted file mode 100644 index 2fd41bf05f..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.renameExportSpecifier2.baseline.jsonc -+++ new.renameExportSpecifier2.baseline.jsonc -@@= skipped -2, +2 lines =@@ - - // === /a.ts === - // const [|nameRENAME|] = {}; --// export { [|nameRENAME|]/*RENAME*/ }; -- --// === /b.ts === --// import { [|nameRENAME|] } from './a'; --// const x = [|nameRENAME|].toString(); -+// export { name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc deleted file mode 100644 index ab37f50e22..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /a.ts === -// interface Foo { -// property: /*RENAME*/"foo"; -// } -// /** -// * @type {{ property: "foo"}} -// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff deleted file mode 100644 index 3200f0d3c8..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.renameForStringLiteral.baseline.jsonc -+++ new.renameForStringLiteral.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /a.ts === - // interface Foo { --// property: /*RENAME*/"[|fooRENAME|]"; -+// property: /*RENAME*/"foo"; - // } - // /** - // * @type {{ property: "foo"}} --// */ --// const obj: Foo = { --// property: "[|fooRENAME|]", --// } -+// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc deleted file mode 100644 index 2a4061d4f4..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findRenameLocations === -// === /renameFunctionParameter1.ts === -// function Foo() { -// /** -// * @param {number} p -// */ -// this.foo = function foo([|pRENAME|]/*RENAME*/) { -// return [|pRENAME|]; -// } -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff deleted file mode 100644 index 08796165aa..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.renameFunctionParameter1.baseline.jsonc -+++ new.renameFunctionParameter1.baseline.jsonc -@@= skipped -1, +1 lines =@@ - // === /renameFunctionParameter1.ts === - // function Foo() { - // /** --// * @param {number} [|pRENAME|] -+// * @param {number} p - // */ - // this.foo = function foo([|pRENAME|]/*RENAME*/) { - // return [|pRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc deleted file mode 100644 index 84a2628d06..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameFunctionParameter2.ts === -// /** -// * @param {number} p -// */ -// const foo = function foo([|pRENAME|]/*RENAME*/) { -// return [|pRENAME|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff deleted file mode 100644 index b44d781335..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.renameFunctionParameter2.baseline.jsonc -+++ new.renameFunctionParameter2.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameFunctionParameter2.ts === - // /** --// * @param {number} [|pRENAME|] -+// * @param {number} p - // */ - // const foo = function foo([|pRENAME|]/*RENAME*/) { - // return [|pRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc deleted file mode 100644 index f2c7a402dd..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findRenameLocations === -// === /renameImportAndExport.ts === -// import /*RENAME*/[|aRENAME|] from "module"; -// export { a }; - - - -// === findRenameLocations === -// === /renameImportAndExport.ts === -// import [|aRENAME|] from "module"; -// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff deleted file mode 100644 index 7579be5fcf..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.renameImportAndExport.baseline.jsonc -+++ new.renameImportAndExport.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameImportAndExport.ts === - // import /*RENAME*/[|aRENAME|] from "module"; --// export { [|aRENAME|] as a/*END SUFFIX*/ }; -+// export { a }; - - - - // === findRenameLocations === - // === /renameImportAndExport.ts === --// import a from "module"; --// export { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] }; -+// import [|aRENAME|] from "module"; -+// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc deleted file mode 100644 index 3df1b40965..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /a.ts === -// export var /*RENAME*/[|aRENAME|]; - -// === /b.ts === -// import { [|aRENAME|] } from './a'; -// export { a }; - - - -// === findRenameLocations === -// === /b.ts === -// import { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] } from './a'; -// export { a }; - - - -// === findRenameLocations === -// === /b.ts === -// import { /*START PREFIX*/a as [|aRENAME|] } from './a'; -// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff deleted file mode 100644 index bbe6b24e4e..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.renameImportAndExportInDiffFiles.baseline.jsonc -+++ new.renameImportAndExportInDiffFiles.baseline.jsonc -@@= skipped -3, +3 lines =@@ - - // === /b.ts === - // import { [|aRENAME|] } from './a'; --// export { [|aRENAME|] as a/*END SUFFIX*/ }; -+// export { a }; - - - - // === findRenameLocations === - // === /b.ts === - // import { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] } from './a'; --// export { [|aRENAME|] as a/*END SUFFIX*/ }; -+// export { a }; - - - - // === findRenameLocations === - // === /b.ts === --// import { a } from './a'; --// export { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] }; -+// import { /*START PREFIX*/a as [|aRENAME|] } from './a'; -+// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc deleted file mode 100644 index 6ca5609808..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findRenameLocations === -// === /renameImportAndShorthand.ts === -// import /*RENAME*/[|fooRENAME|] from 'bar'; -// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; - - - -// === findRenameLocations === -// === /renameImportAndShorthand.ts === -// import [|fooRENAME|] from 'bar'; -// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc deleted file mode 100644 index 799b0d0522..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findRenameLocations === -// === /renameImportNamespaceAndShorthand.ts === -// import * as /*RENAME*/[|fooRENAME|] from 'bar'; -// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; - - - -// === findRenameLocations === -// === /renameImportNamespaceAndShorthand.ts === -// import * as [|fooRENAME|] from 'bar'; -// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc deleted file mode 100644 index 98bee31a7f..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc +++ /dev/null @@ -1,121 +0,0 @@ -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === -// declare namespace /*RENAME*/[|NRENAME|] { -// export var x: number; -// } -// declare module "mod" { -// export = [|NRENAME|]; -// } -// declare module "a" { -// import * as [|NRENAME|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - - - -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === -// declare namespace [|NRENAME|] { -// export var x: number; -// } -// declare module "mod" { -// export = /*RENAME*/[|NRENAME|]; -// } -// declare module "a" { -// import * as [|NRENAME|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - - - -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === -// --- (line: 4) skipped --- -// export = N; -// } -// declare module "a" { -// import * as /*RENAME*/[|NRENAME|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - - - -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === -// --- (line: 4) skipped --- -// export = N; -// } -// declare module "a" { -// import * as [|NRENAME|] from "mod"; -// export { /*RENAME*/N }; // Renaming N here would rename -// } -// declare module "b" { -// import { N } from "a"; -// export const y: typeof N.x; -// } - - - -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === -// --- (line: 8) skipped --- -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// import { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] } from "a"; -// export const y: typeof [|NRENAME|].x; -// } - - - -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === -// --- (line: 8) skipped --- -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// import { /*START PREFIX*/N as [|NRENAME|] } from "a"; -// export const y: typeof /*RENAME*/[|NRENAME|].x; -// } - - - -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === -// declare namespace N { -// export var /*RENAME*/[|xRENAME|]: number; -// } -// declare module "mod" { -// export = N; -// // --- (line: 6) skipped --- - -// --- (line: 9) skipped --- -// } -// declare module "b" { -// import { N } from "a"; -// export const y: typeof N.[|xRENAME|]; -// } - - - -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === -// declare namespace N { -// export var [|xRENAME|]: number; -// } -// declare module "mod" { -// export = N; -// // --- (line: 6) skipped --- - -// --- (line: 9) skipped --- -// } -// declare module "b" { -// import { N } from "a"; -// export const y: typeof N./*RENAME*/[|xRENAME|]; -// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff deleted file mode 100644 index e3008bc1a8..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff +++ /dev/null @@ -1,85 +0,0 @@ ---- old.renameImportOfExportEquals.baseline.jsonc -+++ new.renameImportOfExportEquals.baseline.jsonc -@@= skipped -7, +7 lines =@@ - // } - // declare module "a" { - // import * as [|NRENAME|] from "mod"; --// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename -+// export { N }; // Renaming N here would rename - // } - // declare module "b" { --// import { N } from "a"; --// export const y: typeof N.x; --// } -+// // --- (line: 12) skipped --- - - - -@@= skipped -19, +17 lines =@@ - // } - // declare module "a" { - // import * as [|NRENAME|] from "mod"; --// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename -+// export { N }; // Renaming N here would rename - // } - // declare module "b" { --// import { N } from "a"; --// export const y: typeof N.x; --// } -+// // --- (line: 12) skipped --- - - - -@@= skipped -16, +14 lines =@@ - // } - // declare module "a" { - // import * as /*RENAME*/[|NRENAME|] from "mod"; --// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename -+// export { N }; // Renaming N here would rename - // } - // declare module "b" { --// import { N } from "a"; --// export const y: typeof N.x; --// } -+// // --- (line: 12) skipped --- - - - - // === findRenameLocations === - // === /renameImportOfExportEquals.ts === --// --- (line: 5) skipped --- -+// --- (line: 4) skipped --- -+// export = N; - // } - // declare module "a" { --// import * as N from "mod"; --// export { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] }; // Renaming N here would rename -+// import * as [|NRENAME|] from "mod"; -+// export { /*RENAME*/N }; // Renaming N here would rename - // } - // declare module "b" { --// import { [|NRENAME|] } from "a"; --// export const y: typeof [|NRENAME|].x; -+// import { N } from "a"; -+// export const y: typeof N.x; - // } - - -@@= skipped -55, +54 lines =@@ - // } - // declare module "mod" { - // export = N; --// --- (line: 6) skipped --- -+// // --- (line: 6) skipped --- - - // --- (line: 9) skipped --- - // } -@@= skipped -18, +18 lines =@@ - // } - // declare module "mod" { - // export = N; --// --- (line: 6) skipped --- -+// // --- (line: 6) skipped --- - - // --- (line: 9) skipped --- - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc deleted file mode 100644 index 9a6afde3d1..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc +++ /dev/null @@ -1,47 +0,0 @@ -// === findRenameLocations === -// === /a.ts === -// import /*RENAME*/[|eRENAME|] = require("mod4"); -// [|eRENAME|]; -// a = { /*START PREFIX*/e: [|eRENAME|] }; -// export { e }; - - - -// === findRenameLocations === -// === /a.ts === -// import [|eRENAME|] = require("mod4"); -// /*RENAME*/[|eRENAME|]; -// a = { /*START PREFIX*/e: [|eRENAME|] }; -// export { e }; - - - -// === findRenameLocations === -// === /a.ts === -// import [|eRENAME|] = require("mod4"); -// [|eRENAME|]; -// a = { /*START PREFIX*/e: /*RENAME*/[|eRENAME|] }; -// export { e }; - - - -// === findRenameLocations === -// === /a.ts === -// import [|eRENAME|] = require("mod4"); -// [|eRENAME|]; -// a = { /*START PREFIX*/e: [|eRENAME|] }; -// export { /*RENAME*/e }; - - - -// === findRenameLocations === -// === /b.ts === -// import { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] } from "./a"; -// export { e }; - - - -// === findRenameLocations === -// === /b.ts === -// import { /*START PREFIX*/e as [|eRENAME|] } from "./a"; -// export { /*RENAME*/e }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff deleted file mode 100644 index f7fe0c1be4..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff +++ /dev/null @@ -1,60 +0,0 @@ ---- old.renameImportRequire.baseline.jsonc -+++ new.renameImportRequire.baseline.jsonc -@@= skipped -2, +2 lines =@@ - // import /*RENAME*/[|eRENAME|] = require("mod4"); - // [|eRENAME|]; - // a = { /*START PREFIX*/e: [|eRENAME|] }; --// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// export { e }; - - - -@@= skipped -9, +9 lines =@@ - // import [|eRENAME|] = require("mod4"); - // /*RENAME*/[|eRENAME|]; - // a = { /*START PREFIX*/e: [|eRENAME|] }; --// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// export { e }; - - - -@@= skipped -9, +9 lines =@@ - // import [|eRENAME|] = require("mod4"); - // [|eRENAME|]; - // a = { /*START PREFIX*/e: /*RENAME*/[|eRENAME|] }; --// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// export { e }; - - - - // === findRenameLocations === - // === /a.ts === --// import e = require("mod4"); --// e; --// a = { e }; --// export { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] }; -- --// === /b.ts === --// import { [|eRENAME|] } from "./a"; --// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// import [|eRENAME|] = require("mod4"); -+// [|eRENAME|]; -+// a = { /*START PREFIX*/e: [|eRENAME|] }; -+// export { /*RENAME*/e }; - - - - // === findRenameLocations === - // === /b.ts === - // import { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] } from "./a"; --// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// export { e }; - - - - // === findRenameLocations === - // === /b.ts === --// import { e } from "./a"; --// export { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] }; -+// import { /*START PREFIX*/e as [|eRENAME|] } from "./a"; -+// export { /*RENAME*/e }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc deleted file mode 100644 index 91bfb125b4..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findRenameLocations === -// === /canada.ts === -// export interface /*RENAME*/[|GingerRENAME|] {} - -// === /dry.ts === -// import { [|GingerRENAME|] as Ale } from './canada'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc deleted file mode 100644 index de08a0964c..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === findRenameLocations === -// === /referencesForGlobals_1.ts === -// var /*RENAME*/[|globalNameRENAME|] = 0; - -// === /referencesForGlobals_2.ts === -// var y = [|globalNameRENAME|]; - - - -// === findRenameLocations === -// === /referencesForGlobals_1.ts === -// var [|globalNameRENAME|] = 0; - -// === /referencesForGlobals_2.ts === -// var y = /*RENAME*/[|globalNameRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff deleted file mode 100644 index 853b283620..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.renameInConfiguredProject.baseline.jsonc -+++ new.renameInConfiguredProject.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === -- - // === /referencesForGlobals_1.ts === - // var /*RENAME*/[|globalNameRENAME|] = 0; - -@@= skipped -8, +7 lines =@@ - - - // === findRenameLocations === -- - // === /referencesForGlobals_1.ts === - // var [|globalNameRENAME|] = 0; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc deleted file mode 100644 index 09a71e42e1..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// /*RENAME*/[|divRENAME|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = <[|divRENAME|] />; - - - -// === findRenameLocations === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|divRENAME|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc deleted file mode 100644 index c9d4b07aa1..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// /*RENAME*/[|nameRENAME|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// // --- (line: 9) skipped --- - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 7) skipped --- -// span: { n: string; }; -// } -// } -// var x =
; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff deleted file mode 100644 index b4ca831c75..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.tsxRename2.baseline.jsonc -+++ new.tsxRename2.baseline.jsonc -@@= skipped -7, +7 lines =@@ - // isOpen?: boolean; - // }; - // span: { n: string; }; --// } --// } --// var x =
; -+// // --- (line: 9) skipped --- - - - - // === findRenameLocations === - // === /file.tsx === --// declare module JSX { --// interface Element { } --// interface IntrinsicElements { --// div: { --// [|nameRENAME|]?: string; --// isOpen?: boolean; --// }; -+// --- (line: 7) skipped --- - // span: { n: string; }; - // } - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc deleted file mode 100644 index a4963b39a6..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === -// --- (line: 5) skipped --- -// } -// class MyClass { -// props: { -// /*RENAME*/[|nameRENAME|]?: string; -// size?: number; -// } -// -// -// var x = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 10) skipped --- -// } -// -// -// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff deleted file mode 100644 index 02c57a3f30..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.tsxRename3.baseline.jsonc -+++ new.tsxRename3.baseline.jsonc -@@= skipped -8, +8 lines =@@ - // } - // - // --// var x = ; -+// var x = ; - - - - // === findRenameLocations === - // === /file.tsx === --// --- (line: 5) skipped --- --// } --// class MyClass { --// props: { --// [|nameRENAME|]?: string; --// size?: number; -+// --- (line: 10) skipped --- - // } - // - // \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc deleted file mode 100644 index 93acdaddbf..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === -// --- (line: 9) skipped --- -// size?: number; -// } -// -// var /*RENAME*/[|nnRENAME|]: string; -// var x = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 9) skipped --- -// size?: number; -// } -// -// var [|nnRENAME|]: string; -// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc deleted file mode 100644 index b5319c0e42..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc +++ /dev/null @@ -1,87 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function /*RENAME*/[|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = ; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = ; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = ; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc deleted file mode 100644 index 295648425f..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === -// --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// /*RENAME*/[|propxRENAME|]: number -// propString: string -// optional?: boolean -// } -// // --- (line: 12) skipped --- - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 10) skipped --- -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 11) skipped --- -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff deleted file mode 100644 index 7b8a814c5b..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff +++ /dev/null @@ -1,52 +0,0 @@ ---- old.tsxRename7.baseline.jsonc -+++ new.tsxRename7.baseline.jsonc -@@= skipped -7, +7 lines =@@ - // propString: string - // optional?: boolean - // } --// declare function Opt(attributes: OptionPropBag): JSX.Element; --// let opt = ; --// let opt1 = ; --// let opt2 = ; --// let opt3 = ; -+// // --- (line: 12) skipped --- - - - - // === findRenameLocations === - // === /file.tsx === --// --- (line: 4) skipped --- --// interface ElementAttributesProperty { props; } --// } --// interface OptionPropBag { --// [|propxRENAME|]: number --// propString: string --// optional?: boolean -+// --- (line: 10) skipped --- - // } - // declare function Opt(attributes: OptionPropBag): JSX.Element; - // let opt = ; - // let opt1 = ; --// let opt2 = ; -+// let opt2 = ; - // let opt3 = ; - - - - // === findRenameLocations === - // === /file.tsx === --// --- (line: 4) skipped --- --// interface ElementAttributesProperty { props; } --// } --// interface OptionPropBag { --// [|propxRENAME|]: number --// propString: string --// optional?: boolean --// } -+// --- (line: 11) skipped --- - // declare function Opt(attributes: OptionPropBag): JSX.Element; - // let opt = ; --// let opt1 = ; -+// let opt1 = ; - // let opt2 = ; - // let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc deleted file mode 100644 index ee06cf2f9f..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc +++ /dev/null @@ -1,245 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === -// --- (line: 8) skipped --- -// className?: string; -// } -// interface ButtonProps extends ClickableProps { -// /*RENAME*/[|onClickRENAME|](event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// goTo: string; -// // --- (line: 16) skipped --- - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 18) skipped --- -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 19) skipped --- -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 11) skipped --- -// onClick(event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// /*RENAME*/[|goToRENAME|]: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// // --- (line: 19) skipped --- - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 20) skipped --- -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function /*RENAME*/[|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function /*RENAME*/[|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function /*RENAME*/[|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = ; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = {}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = {}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = ; -// let opt = <[|MainButtonRENAME|] wrong />; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 19) skipped --- -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} /*RENAME*/[|ignore-propRENAME|] />; -// let opt = ; -// let opt = ; - - - -// === findRenameLocations === -// === /file.tsx === -// --- (line: 21) skipped --- -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff deleted file mode 100644 index 40ae19c4bc..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff +++ /dev/null @@ -1,98 +0,0 @@ ---- old.tsxRename9.baseline.jsonc -+++ new.tsxRename9.baseline.jsonc -@@= skipped -7, +7 lines =@@ - // } - // interface LinkProps extends ClickableProps { - // goTo: string; --// } --// declare function MainButton(buttonProps: ButtonProps): JSX.Element; --// declare function MainButton(linkProps: LinkProps): JSX.Element; --// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; --// let opt = ; --// let opt = ; --// let opt = {}} />; --// let opt = {}} ignore-prop />; --// let opt = ; --// let opt = ; -+// // --- (line: 16) skipped --- - - - - // === findRenameLocations === - // === /file.tsx === --// --- (line: 8) skipped --- --// className?: string; --// } --// interface ButtonProps extends ClickableProps { --// [|onClickRENAME|](event?: React.MouseEvent): void; --// } --// interface LinkProps extends ClickableProps { --// goTo: string; --// } --// declare function MainButton(buttonProps: ButtonProps): JSX.Element; --// declare function MainButton(linkProps: LinkProps): JSX.Element; -+// --- (line: 18) skipped --- - // declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; - // let opt = ; - // let opt = ; - // let opt = {}} />; --// let opt = {}} ignore-prop />; -+// let opt = {}} ignore-prop />; - // let opt = ; - // let opt = ; - -@@= skipped -38, +19 lines =@@ - - // === findRenameLocations === - // === /file.tsx === --// --- (line: 8) skipped --- --// className?: string; --// } --// interface ButtonProps extends ClickableProps { --// [|onClickRENAME|](event?: React.MouseEvent): void; --// } --// interface LinkProps extends ClickableProps { --// goTo: string; --// } --// declare function MainButton(buttonProps: ButtonProps): JSX.Element; --// declare function MainButton(linkProps: LinkProps): JSX.Element; --// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -+// --- (line: 19) skipped --- - // let opt = ; - // let opt = ; --// let opt = {}} />; -+// let opt = {}} />; - // let opt = {}} ignore-prop />; - // let opt = ; - // let opt = ; -@@= skipped -31, +20 lines =@@ - // } - // declare function MainButton(buttonProps: ButtonProps): JSX.Element; - // declare function MainButton(linkProps: LinkProps): JSX.Element; --// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; --// let opt = ; --// let opt = ; --// let opt = {}} />; --// let opt = {}} ignore-prop />; --// let opt = ; --// let opt = ; -+// // --- (line: 19) skipped --- - - - - // === findRenameLocations === - // === /file.tsx === --// --- (line: 11) skipped --- --// onClick(event?: React.MouseEvent): void; --// } --// interface LinkProps extends ClickableProps { --// [|goToRENAME|]: string; --// } --// declare function MainButton(buttonProps: ButtonProps): JSX.Element; --// declare function MainButton(linkProps: LinkProps): JSX.Element; --// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; --// let opt = ; -+// --- (line: 20) skipped --- - // let opt = ; - // let opt = {}} />; - // let opt = {}} ignore-prop />; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_comment2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_comment2.baseline deleted file mode 100644 index 4ce50a231c..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_comment2.baseline +++ /dev/null @@ -1,6 +0,0 @@ -// === Smart Selection === -const a = 1; //a b/**/c d - - a bc d - //a bc d -const a = 1; //a bc d \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline deleted file mode 100644 index f844df6a1d..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline +++ /dev/null @@ -1,12 +0,0 @@ -// === Smart Selection === -type X = IsExactlyAny

extends true ? T : ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[/**/K] : P[K]; } & Pick>) - - K - P[K] - K extends keyof T ? T[K] : P[K] - IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K] - { [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } - { [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick> - ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick>) - IsExactlyAny

extends true ? T : ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick>) -type X = IsExactlyAny

extends true ? T : ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick>) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline.diff deleted file mode 100644 index 940e0969cb..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.smartSelection_complex.baseline -+++ new.smartSelection_complex.baseline -@@= skipped -4, +4 lines =@@ - P[K] - K extends keyof T ? T[K] : P[K] - IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K] -- IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; -- [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; - { [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } - { [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick> - ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick>) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline deleted file mode 100644 index f17e19b22e..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline +++ /dev/null @@ -1,95 +0,0 @@ -// === Smart Selection === -class HomePage { - componentDidMount(/**/) { - if (this.props.username) { - return ''; - } - } -} - - - componentDidMount() { - if (this.props.username) { - return ''; - } - }↲ - -class HomePage { - componentDidMount() { - if (this.props.username) { - return ''; - } - } -} - -================================================================================ - -class HomePage { - componentDidMount() { - if (this.props.username/**/) { - return ''; - } - } -} - - - if (this.props.username) { - return ''; - }↲ - - { - if (this.props.username) { - return ''; - } - }↲ - - componentDidMount() { - if (this.props.username) { - return ''; - } - }↲ - -class HomePage { - componentDidMount() { - if (this.props.username) { - return ''; - } - } -} - -================================================================================ - -class HomePage { - componentDidMount() { - if (this.props.username) { - return '/**/'; - } - } -} - - '' ↲ - return '';↲ - - if (this.props.username) { - return ''; - }↲ - - { - if (this.props.username) { - return ''; - } - }↲ - - componentDidMount() { - if (this.props.username) { - return ''; - } - }↲ - -class HomePage { - componentDidMount() { - if (this.props.username) { - return ''; - } - } -} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline.diff deleted file mode 100644 index 194bd64baa..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline.diff +++ /dev/null @@ -1,128 +0,0 @@ ---- old.smartSelection_emptyRanges.baseline -+++ new.smartSelection_emptyRanges.baseline -@@= skipped -7, +7 lines =@@ - } - - -- ) -- -- - componentDidMount() { - if (this.props.username) { - return ''; - } -- } -- -- -- ↲ --••componentDidMount() { -- if (this.props.username) { -- return ''; -- } - }↲ -- - - class HomePage { - componentDidMount() { -@@= skipped -37, +25 lines =@@ - } - - -- username -- -- -- this.props.username -- -- - if (this.props.username) { -- return ''; -- } -- -- -- ↲ --••••if (this.props.username) { - return ''; - }↲ --•• -- - - { - if (this.props.username) { - return ''; - } -- } -- -+ }↲ - - componentDidMount() { - if (this.props.username) { - return ''; - } -- } -- -- -- ↲ --••componentDidMount() { -- if (this.props.username) { -- return ''; -- } - }↲ -- - - class HomePage { - componentDidMount() { -@@= skipped -58, +34 lines =@@ - } - } - -- -- '' -- -- -- return ''; -- -- -- ↲ --••••••return '';↲ --•••• -- -+ '' ↲ -+ return '';↲ - - if (this.props.username) { -- return ''; -- } -- -- -- ↲ --••••if (this.props.username) { - return ''; - }↲ --•• -- - - { - if (this.props.username) { - return ''; - } -- } -- -+ }↲ - - componentDidMount() { - if (this.props.username) { - return ''; - } -- } -- -- -- ↲ --••componentDidMount() { -- if (this.props.username) { -- return ''; -- } - }↲ -- - - class HomePage { - componentDidMount() { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function1.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function1.baseline deleted file mode 100644 index 6344b9c647..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function1.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// === Smart Selection === -const f1 = () => { - /**/ -}; - - - { - -} - - () => { - -} - -const f1 = () => { - -}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function2.baseline deleted file mode 100644 index 1b4f84b37c..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function2.baseline +++ /dev/null @@ -1,13 +0,0 @@ -// === Smart Selection === -function f2() { - /**/ -} - - - { - -} - -function f2() { - -} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function3.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function3.baseline deleted file mode 100644 index afd3e7948c..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function3.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// === Smart Selection === -const f3 = function () { - /**/ -} - - - { - -} - - function () { - -} - -const f3 = function () { - -} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline deleted file mode 100644 index b09fe5cf38..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline +++ /dev/null @@ -1,24 +0,0 @@ -// === Smart Selection === -function f(/**/p, q?, ...r: any[] = []) {} - - p - p, q?, ...r: any[] = [] -function f(p, q?, ...r: any[] = []) {} - -================================================================================ - -function f(p, /**/q?, ...r: any[] = []) {} - - q - q? - p, q?, ...r: any[] = [] -function f(p, q?, ...r: any[] = []) {} - -================================================================================ - -function f(p, q?, /**/...r: any[] = []) {} - - ... - ...r: any[] = [] - p, q?, ...r: any[] = [] -function f(p, q?, ...r: any[] = []) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline.diff deleted file mode 100644 index e16b3ff653..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.smartSelection_functionParams1.baseline -+++ new.smartSelection_functionParams1.baseline -@@= skipped -18, +18 lines =@@ - function f(p, q?, /**/...r: any[] = []) {} - - ... -- ...r -- ...r: any[] - ...r: any[] = [] - p, q?, ...r: any[] = [] - function f(p, q?, ...r: any[] = []) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline deleted file mode 100644 index f9c497907a..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline +++ /dev/null @@ -1,15 +0,0 @@ -// === Smart Selection === -function f( - a, - /**/b -) {} - - b↲ - - a, - b↲ - -function f( - a, - b -) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline.diff deleted file mode 100644 index 669d9d0f32..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.smartSelection_functionParams2.baseline -+++ new.smartSelection_functionParams2.baseline -@@= skipped -3, +3 lines =@@ - /**/b - ) {} - -- -- b -- -- -- ↲ --••a, -- b↲ -- -+ b↲ -+ -+ a, -+ b↲ - - function f( - a, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline deleted file mode 100644 index f1208f23a3..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline +++ /dev/null @@ -1,15 +0,0 @@ -// === Smart Selection === -import { /**/x as y, z } from './z'; -import { b } from './'; - -console.log(1); - - x ↲ - x as y ↲ - x as y, z ↲ - { x as y, z } ↲ -import { x as y, z } from './z';↲ - -import { x as y, z } from './z'; -import { b } from './'; -console.log(1); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline.diff deleted file mode 100644 index f0ecf62be0..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.smartSelection_imports.baseline -+++ new.smartSelection_imports.baseline -@@= skipped -3, +3 lines =@@ - - console.log(1); - -- -- x -- -- -- x as y -- -- -- x as y, z -- -- -- { x as y, z } -- -- --import { x as y, z } from './z'; -- -- --import { x as y, z } from './z'; --import { b } from './'; -- -- --import { x as y, z } from './z'; --import { b } from './'; -- -+ x ↲ -+ x as y ↲ -+ x as y, z ↲ -+ { x as y, z } ↲ -+import { x as y, z } from './z';↲ -+ -+import { x as y, z } from './z'; -+import { b } from './'; - console.log(1); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline deleted file mode 100644 index ad833f2342..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline +++ /dev/null @@ -1,5 +0,0 @@ -// === Smart Selection === -class C {} -/**/ - -class C {}↲ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline.diff deleted file mode 100644 index 70c334f791..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.smartSelection_lastBlankLine.baseline -+++ new.smartSelection_lastBlankLine.baseline -@@= skipped -1, +1 lines =@@ - class C {} - /**/ - -- - class C {}↲ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_loneVariableDeclaration.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_loneVariableDeclaration.baseline deleted file mode 100644 index c1151f045f..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_loneVariableDeclaration.baseline +++ /dev/null @@ -1,5 +0,0 @@ -// === Smart Selection === -const /**/x = 3; - - x -const x = 3; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline deleted file mode 100644 index e7f008d407..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline +++ /dev/null @@ -1,44 +0,0 @@ -// === Smart Selection === -type M = { /**/-readonly [K in keyof any]-?: any }; - - - - { -readonly [K in keyof any]-?: any } -type M = { -readonly [K in keyof any]-?: any }; - -================================================================================ - -type M = { -re/**/adonly [K in keyof any]-?: any }; - - { -readonly [K in keyof any]-?: any } -type M = { -readonly [K in keyof any]-?: any }; - -================================================================================ - -type M = { -readonly /**/[K in keyof any]-?: any }; - - { -readonly [K in keyof any]-?: any } -type M = { -readonly [K in keyof any]-?: any }; - -================================================================================ - -type M = { -readonly [K in ke/**/yof any]-?: any }; - - keyof any - K in keyof any - { -readonly [K in keyof any]-?: any } -type M = { -readonly [K in keyof any]-?: any }; - -================================================================================ - -type M = { -readonly [K in keyof any]/**/-?: any }; - - - - { -readonly [K in keyof any]-?: any } -type M = { -readonly [K in keyof any]-?: any }; - -================================================================================ - -type M = { -readonly [K in keyof any]-/**/?: any }; - - { -readonly [K in keyof any]-?: any } -type M = { -readonly [K in keyof any]-?: any }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline.diff deleted file mode 100644 index 5a6c3570d4..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline.diff +++ /dev/null @@ -1,67 +0,0 @@ ---- old.smartSelection_mappedTypes.baseline -+++ new.smartSelection_mappedTypes.baseline -@@= skipped -1, +1 lines =@@ - type M = { /**/-readonly [K in keyof any]-?: any }; - - - -- -readonly -- -readonly [K in keyof any]-? -- -readonly [K in keyof any]-?: any - { -readonly [K in keyof any]-?: any } - type M = { -readonly [K in keyof any]-?: any }; - -@@= skipped -10, +7 lines =@@ - - type M = { -re/**/adonly [K in keyof any]-?: any }; - -- readonly -- -readonly -- -readonly [K in keyof any]-? -- -readonly [K in keyof any]-?: any - { -readonly [K in keyof any]-?: any } - type M = { -readonly [K in keyof any]-?: any }; - -@@= skipped -11, +7 lines =@@ - - type M = { -readonly /**/[K in keyof any]-?: any }; - -- [ -- [K in keyof any] -- -readonly [K in keyof any]-? -- -readonly [K in keyof any]-?: any - { -readonly [K in keyof any]-?: any } - type M = { -readonly [K in keyof any]-?: any }; - -@@= skipped -11, +7 lines =@@ - - type M = { -readonly [K in ke/**/yof any]-?: any }; - -- keyof - keyof any - K in keyof any -- [K in keyof any] -- -readonly [K in keyof any]-? -- -readonly [K in keyof any]-?: any - { -readonly [K in keyof any]-?: any } - type M = { -readonly [K in keyof any]-?: any }; - -@@= skipped -14, +10 lines =@@ - type M = { -readonly [K in keyof any]/**/-?: any }; - - - -- -? -- -readonly [K in keyof any]-? -- -readonly [K in keyof any]-?: any - { -readonly [K in keyof any]-?: any } - type M = { -readonly [K in keyof any]-?: any }; - -@@= skipped -10, +7 lines =@@ - - type M = { -readonly [K in keyof any]-/**/?: any }; - -- ? -- -? -- -readonly [K in keyof any]-? -- -readonly [K in keyof any]-?: any - { -readonly [K in keyof any]-?: any } - type M = { -readonly [K in keyof any]-?: any }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline deleted file mode 100644 index 2cd2a914e1..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline +++ /dev/null @@ -1,134 +0,0 @@ -// === Smart Selection === -type X = { - /**/foo?: string; - readonly bar: { x: number }; - meh -} - - foo ↲ - foo?: string;↲ - - foo?: string; - readonly bar: { x: number }; - meh↲ - - { - foo?: string; - readonly bar: { x: number }; - meh -} - -type X = { - foo?: string; - readonly bar: { x: number }; - meh -} - -================================================================================ - -type X = { - foo?: string; - /**/readonly bar: { x: number }; - meh -} - - readonly ↲ - readonly bar: { x: number };↲ - - foo?: string; - readonly bar: { x: number }; - meh↲ - - { - foo?: string; - readonly bar: { x: number }; - meh -} - -type X = { - foo?: string; - readonly bar: { x: number }; - meh -} - -================================================================================ - -type X = { - foo?: string; - readonly /**/bar: { x: number }; - meh -} - - bar ↲ - readonly bar: { x: number };↲ - - foo?: string; - readonly bar: { x: number }; - meh↲ - - { - foo?: string; - readonly bar: { x: number }; - meh -} - -type X = { - foo?: string; - readonly bar: { x: number }; - meh -} - -================================================================================ - -type X = { - foo?: string; - readonly bar: { x: num/**/ber }; - meh -} - - number ↲ - x: number ↲ - { x: number } ↲ - readonly bar: { x: number };↲ - - foo?: string; - readonly bar: { x: number }; - meh↲ - - { - foo?: string; - readonly bar: { x: number }; - meh -} - -type X = { - foo?: string; - readonly bar: { x: number }; - meh -} - -================================================================================ - -type X = { - foo?: string; - readonly bar: { x: number }; - /**/meh -} - - meh↲ - - foo?: string; - readonly bar: { x: number }; - meh↲ - - { - foo?: string; - readonly bar: { x: number }; - meh -} - -type X = { - foo?: string; - readonly bar: { x: number }; - meh -} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline.diff deleted file mode 100644 index 66f80dbaef..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline.diff +++ /dev/null @@ -1,128 +0,0 @@ ---- old.smartSelection_objectTypes.baseline -+++ new.smartSelection_objectTypes.baseline -@@= skipped -4, +4 lines =@@ - meh - } - -- -- foo -- -- -- foo? -- -+ foo ↲ -+ foo?: string;↲ - - foo?: string; -- -- -- ↲ --••foo?: string; - readonly bar: { x: number }; - meh↲ -- - - { - foo?: string; -@@= skipped -36, +27 lines =@@ - meh - } - -- -- readonly -- -- -- readonly bar -- -- -- readonly bar: { x: number }; -- -- -- ↲ --••foo?: string; -+ readonly ↲ -+ readonly bar: { x: number };↲ -+ -+ foo?: string; - readonly bar: { x: number }; - meh↲ -- - - { - foo?: string; -@@= skipped -36, +27 lines =@@ - meh - } - -- -- bar -- -- -- readonly bar -- -- -- readonly bar: { x: number }; -- -- -- ↲ --••foo?: string; -+ bar ↲ -+ readonly bar: { x: number };↲ -+ -+ foo?: string; - readonly bar: { x: number }; - meh↲ -- - - { - foo?: string; -@@= skipped -36, +27 lines =@@ - meh - } - -- -- number -- -- -- x: number -- -- -- { x: number } -- -- -- readonly bar: { x: number }; -- -- -- ↲ --••foo?: string; -+ number ↲ -+ x: number ↲ -+ { x: number } ↲ -+ readonly bar: { x: number };↲ -+ -+ foo?: string; - readonly bar: { x: number }; - meh↲ -- - - { - foo?: string; -@@= skipped -39, +29 lines =@@ - /**/meh - } - -- -- meh -- -- -- ↲ --••foo?: string; -+ meh↲ -+ -+ foo?: string; - readonly bar: { x: number }; - meh↲ -- - - { - foo?: string; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline deleted file mode 100644 index d23bdd4dd3..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline +++ /dev/null @@ -1,6 +0,0 @@ -// === Smart Selection === -console/**/.log(); - -console.log -console.log() -console.log(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline.diff deleted file mode 100644 index 2ca3c1bf93..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.smartSelection_punctuationPriority.baseline -+++ new.smartSelection_punctuationPriority.baseline -@@= skipped -0, +0 lines =@@ - // === Smart Selection === - console/**/.log(); - --console - console.log - console.log() - console.log(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline deleted file mode 100644 index 8027901532..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline +++ /dev/null @@ -1,90 +0,0 @@ -// === Smart Selection === -class Foo { - bar(a, b) { - if (/**/a === b) { - return true; - } - return false; - } -} - - a ↲ - a === b ↲ - - if (a === b) { - return true; - }↲ - - if (a === b) { - return true; - } - return false;↲ - - { - if (a === b) { - return true; - } - return false; - }↲ - - bar(a, b) { - if (a === b) { - return true; - } - return false; - }↲ - -class Foo { - bar(a, b) { - if (a === b) { - return true; - } - return false; - } -} - -================================================================================ - -class Foo { - bar(a, b) { - if (a === b) { - return tr/**/ue; - } - return false; - } -} - - true ↲ - return true;↲ - - if (a === b) { - return true; - }↲ - - if (a === b) { - return true; - } - return false;↲ - - { - if (a === b) { - return true; - } - return false; - }↲ - - bar(a, b) { - if (a === b) { - return true; - } - return false; - }↲ - -class Foo { - bar(a, b) { - if (a === b) { - return true; - } - return false; - } -} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline.diff deleted file mode 100644 index 3dca3d25ec..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline.diff +++ /dev/null @@ -1,124 +0,0 @@ ---- old.smartSelection_simple1.baseline -+++ new.smartSelection_simple1.baseline -@@= skipped -7, +7 lines =@@ - } - } - -- -- a -- -- -- a === b -- -+ a ↲ -+ a === b ↲ - - if (a === b) { - return true; -- } -- -- -- ↲ --••••••if (a === b) { -+ }↲ -+ -+ if (a === b) { - return true; - } - return false;↲ --•• -- - - { - if (a === b) { - return true; - } - return false; -- } -- -+ }↲ - - bar(a, b) { - if (a === b) { - return true; - } - return false; -- } -- -- -- ↲ --••bar(a, b) { -- if (a === b) { -- return true; -- } -- return false; - }↲ -- - - class Foo { - bar(a, b) { -@@= skipped -65, +46 lines =@@ - } - } - -- -- true -- -- -- return true; -- -- -- ↲ --••••••••••return true;↲ --•••••• -- -- -- if (a === b) { -- return true; -- } -- -- -- ↲ --••••••if (a === b) { -+ true ↲ -+ return true;↲ -+ -+ if (a === b) { -+ return true; -+ }↲ -+ -+ if (a === b) { - return true; - } - return false;↲ --•• -- - - { - if (a === b) { - return true; - } - return false; -- } -- -+ }↲ - - bar(a, b) { - if (a === b) { - return true; - } - return false; -- } -- -- -- ↲ --••bar(a, b) { -- if (a === b) { -- return true; -- } -- return false; - }↲ -- - - class Foo { - bar(a, b) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline deleted file mode 100644 index 34d63f7949..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline +++ /dev/null @@ -1,38 +0,0 @@ -// === Smart Selection === -export interface IService { - _serviceBrand: any; - - open(ho/**/st: number, data: any): Promise; - bar(): void -} - - host ↲ - host: number ↲ - host: number, data: any ↲ - open(host: number, data: any): Promise;↲ - - _serviceBrand: any; - open(host: number, data: any): Promise; - bar(): void↲ - -export interface IService { - _serviceBrand: any; - open(host: number, data: any): Promise; - bar(): void -} - -================================================================================ - -export interface IService { - _serviceBrand: any; - - open(host: number, data: any): Promise; - bar(): void/**/ -} - - -export interface IService { - _serviceBrand: any; - open(host: number, data: any): Promise; - bar(): void -} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline.diff deleted file mode 100644 index ca0b9e1cd8..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline.diff +++ /dev/null @@ -1,61 +0,0 @@ ---- old.smartSelection_simple2.baseline -+++ new.smartSelection_simple2.baseline -@@= skipped -5, +5 lines =@@ - bar(): void - } - -- -- host -- -- -- host: number -- -- -- host: number, data: any -- -- -- open(host: number, data: any): Promise; -- -- -- ↲ --••_serviceBrand: any; -- -+ host ↲ -+ host: number ↲ -+ host: number, data: any ↲ -+ open(host: number, data: any): Promise;↲ -+ -+ _serviceBrand: any; - open(host: number, data: any): Promise; - bar(): void↲ - -- - export interface IService { - _serviceBrand: any; -- - open(host: number, data: any): Promise; - bar(): void - } -@@= skipped -37, +25 lines =@@ - } - - -- void -- -- -- bar(): void -- -- -- ↲ --••_serviceBrand: any; -- -- open(host: number, data: any): Promise; -- bar(): void↲ -- -- - export interface IService { - _serviceBrand: any; -- - open(host: number, data: any): Promise; - bar(): void - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline deleted file mode 100644 index 883f9f5ab3..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline +++ /dev/null @@ -1,9 +0,0 @@ -// === Smart Selection === -const a = 'a'; -const b = /**/'b'; - - 'b' -const b = 'b'; - -const a = 'a'; -const b = 'b'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline.diff deleted file mode 100644 index 0bde7503b4..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.smartSelection_stringLiteral.baseline -+++ new.smartSelection_stringLiteral.baseline -@@= skipped -1, +1 lines =@@ - const a = 'a'; - const b = /**/'b'; - -- - 'b' -- - const b = 'b'; - - const a = 'a'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline deleted file mode 100644 index ada0f0c185..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline +++ /dev/null @@ -1,24 +0,0 @@ -// === Smart Selection === -`a /**/b ${ - 'c' -} d` - - -`a b ${ - 'c' -} d` - -================================================================================ - -`a b ${ - '/**/c' -} d` - - 'c'↲ - - 'c' -} d` - -`a b ${ - 'c' -} d` \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline.diff deleted file mode 100644 index ad54e4e730..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.smartSelection_templateStrings.baseline -+++ new.smartSelection_templateStrings.baseline -@@= skipped -3, +3 lines =@@ - } d` - - -- a b ${ -- 'c' --} d -- - `a b ${ - 'c' - } d` -@@= skipped -14, +10 lines =@@ - '/**/c' - } d` - -- -- c -- -- -- 'c' -- -- -- ${ -- 'c' --} -- -- a b ${ -- 'c' --} d -+ 'c'↲ -+ -+ 'c' -+} d` - - `a b ${ - 'c' \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline deleted file mode 100644 index 02d752f0e4..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline +++ /dev/null @@ -1,5 +0,0 @@ -// === Smart Selection === -`a ${b} /**/c` - - b} c` -`a ${b} c` \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline.diff deleted file mode 100644 index d16641c618..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.smartSelection_templateStrings2.baseline -+++ new.smartSelection_templateStrings2.baseline -@@= skipped -0, +0 lines =@@ - // === Smart Selection === - `a ${b} /**/c` - -- a ${b} c -+ b} c` - `a ${b} c` \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/alwaysStrictModule2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/alwaysStrictModule2.errors.txt.diff deleted file mode 100644 index 5aa82f0160..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/alwaysStrictModule2.errors.txt.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.alwaysStrictModule2.errors.txt -+++ new.alwaysStrictModule2.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - a.ts(3,13): error TS1100: Invalid use of 'arguments' in strict mode. - b.ts(3,13): error TS1100: Invalid use of 'arguments' in strict mode. - - -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== a.ts (1 errors) ==== - module M { - export function f() { \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/blockScopedClassDeclarationAcrossFiles.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/blockScopedClassDeclarationAcrossFiles.errors.txt.diff deleted file mode 100644 index b1a20b8669..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/blockScopedClassDeclarationAcrossFiles.errors.txt.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.blockScopedClassDeclarationAcrossFiles.errors.txt -+++ new.blockScopedClassDeclarationAcrossFiles.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== c.ts (0 errors) ==== -+ let foo: typeof C; -+==== b.ts (0 errors) ==== -+ class C { } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/bundledDtsLateExportRenaming.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/bundledDtsLateExportRenaming.errors.txt.diff deleted file mode 100644 index 3342101d79..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/bundledDtsLateExportRenaming.errors.txt.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.bundledDtsLateExportRenaming.errors.txt -+++ new.bundledDtsLateExportRenaming.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== index.ts (0 errors) ==== -+ export * from "./nested"; -+ -+==== nested/base.ts (0 errors) ==== -+ import { B } from "./shared"; -+ -+ export function f() { -+ return new B(); -+ } -+ -+==== nested/derived.ts (0 errors) ==== -+ import { f } from "./base"; -+ -+ export function g() { -+ return f(); -+ } -+ -+==== nested/index.ts (0 errors) ==== -+ export * from "./base"; -+ -+ export * from "./derived"; -+ export * from "./shared"; -+ -+==== nested/shared.ts (0 errors) ==== -+ export class B {} -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt.diff deleted file mode 100644 index 09726f841b..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.checkIndexConstraintOfJavascriptClassExpression.errors.txt -+++ new.checkIndexConstraintOfJavascriptClassExpression.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? - weird.js(1,23): error TS7006: Parameter 'BaseClass' implicitly has an 'any' type. - weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type. - - -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== weird.js (3 errors) ==== - someFunction(function(BaseClass) { - ~~~~~~~~~~~~ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/compilerOptionsOutAndNoEmit.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/compilerOptionsOutAndNoEmit.errors.txt.diff deleted file mode 100644 index 6cb4262746..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/compilerOptionsOutAndNoEmit.errors.txt.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.compilerOptionsOutAndNoEmit.errors.txt -+++ new.compilerOptionsOutAndNoEmit.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class c { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/compilerOptionsOutFileAndNoEmit.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/compilerOptionsOutFileAndNoEmit.errors.txt.diff deleted file mode 100644 index c210d371cc..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/compilerOptionsOutFileAndNoEmit.errors.txt.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.compilerOptionsOutFileAndNoEmit.errors.txt -+++ new.compilerOptionsOutFileAndNoEmit.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class c { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/constDeclarations-useBeforeDefinition2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/constDeclarations-useBeforeDefinition2.errors.txt.diff deleted file mode 100644 index 3dc83ed037..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/constDeclarations-useBeforeDefinition2.errors.txt.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.constDeclarations-useBeforeDefinition2.errors.txt -+++ new.constDeclarations-useBeforeDefinition2.errors.txt -@@= skipped -0, +0 lines =@@ --file1.ts(1,1): error TS2448: Block-scoped variable 'c' used before its declaration. -- -- --==== file1.ts (1 errors) ==== -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== file1.ts (0 errors) ==== - c; -- ~ --!!! error TS2448: Block-scoped variable 'c' used before its declaration. --!!! related TS2728 file2.ts:1:7: 'c' is declared here. - - ==== file2.ts (0 errors) ==== - const c = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/controlFlowJavascript.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/controlFlowJavascript.errors.txt.diff deleted file mode 100644 index 8e5ff57b1c..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/controlFlowJavascript.errors.txt.diff +++ /dev/null @@ -1,117 +0,0 @@ ---- old.controlFlowJavascript.errors.txt -+++ new.controlFlowJavascript.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'controlFlowJavascript.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'controlFlowJavascript.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== controlFlowJavascript.js (0 errors) ==== -+ let cond = true; -+ -+ // CFA for 'let' and no initializer -+ function f1() { -+ let x; -+ if (cond) { -+ x = 1; -+ } -+ if (cond) { -+ x = "hello"; -+ } -+ const y = x; // string | number | undefined -+ } -+ -+ // CFA for 'let' and 'undefined' initializer -+ function f2() { -+ let x = undefined; -+ if (cond) { -+ x = 1; -+ } -+ if (cond) { -+ x = "hello"; -+ } -+ const y = x; // string | number | undefined -+ } -+ -+ // CFA for 'let' and 'null' initializer -+ function f3() { -+ let x = null; -+ if (cond) { -+ x = 1; -+ } -+ if (cond) { -+ x = "hello"; -+ } -+ const y = x; // string | number | null -+ } -+ -+ // CFA for 'var' with no initializer -+ function f5() { -+ var x; -+ if (cond) { -+ x = 1; -+ } -+ if (cond) { -+ x = "hello"; -+ } -+ const y = x; // string | number | undefined -+ } -+ -+ // CFA for 'var' with 'undefined' initializer -+ function f6() { -+ var x = undefined; -+ if (cond) { -+ x = 1; -+ } -+ if (cond) { -+ x = "hello"; -+ } -+ const y = x; // string | number | undefined -+ } -+ -+ // CFA for 'var' with 'null' initializer -+ function f7() { -+ var x = null; -+ if (cond) { -+ x = 1; -+ } -+ if (cond) { -+ x = "hello"; -+ } -+ const y = x; // string | number | null -+ } -+ -+ // No CFA for captured outer variables -+ function f9() { -+ let x; -+ if (cond) { -+ x = 1; -+ } -+ if (cond) { -+ x = "hello"; -+ } -+ const y = x; // string | number | undefined -+ function f() { -+ const z = x; // any -+ } -+ } -+ -+ // No CFA for captured outer variables -+ function f10() { -+ let x; -+ if (cond) { -+ x = 1; -+ } -+ if (cond) { -+ x = "hello"; -+ } -+ const y = x; // string | number | undefined -+ const f = () => { -+ const z = x; // any -+ }; -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/controlFlowJavascript.types.diff b/testdata/baselines/reference/submoduleAccepted/compiler/controlFlowJavascript.types.diff deleted file mode 100644 index 57b32f848e..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/controlFlowJavascript.types.diff +++ /dev/null @@ -1,90 +0,0 @@ ---- old.controlFlowJavascript.types -+++ new.controlFlowJavascript.types -@@= skipped -28, +28 lines =@@ - >"hello" : "hello" - } - const y = x; // string | number | undefined -->y : string | number -->x : string | number -+>y : any -+>x : any - } - - // CFA for 'let' and 'undefined' initializer -@@= skipped -29, +29 lines =@@ - >"hello" : "hello" - } - const y = x; // string | number | undefined -->y : string | number -->x : string | number -+>y : any -+>x : any - } - - // CFA for 'let' and 'null' initializer -@@= skipped -28, +28 lines =@@ - >"hello" : "hello" - } - const y = x; // string | number | null -->y : string | number -->x : string | number -+>y : any -+>x : any - } - - // CFA for 'var' with no initializer -@@= skipped -28, +28 lines =@@ - >"hello" : "hello" - } - const y = x; // string | number | undefined -->y : string | number -->x : string | number -+>y : any -+>x : any - } - - // CFA for 'var' with 'undefined' initializer -@@= skipped -29, +29 lines =@@ - >"hello" : "hello" - } - const y = x; // string | number | undefined -->y : string | number -->x : string | number -+>y : any -+>x : any - } - - // CFA for 'var' with 'null' initializer -@@= skipped -28, +28 lines =@@ - >"hello" : "hello" - } - const y = x; // string | number | null -->y : string | number -->x : string | number -+>y : any -+>x : any - } - - // No CFA for captured outer variables -@@= skipped -28, +28 lines =@@ - >"hello" : "hello" - } - const y = x; // string | number | undefined -->y : string | number -->x : string | number -+>y : any -+>x : any - - function f() { - >f : () => void -@@= skipped -36, +36 lines =@@ - >"hello" : "hello" - } - const y = x; // string | number | undefined -->y : string | number -->x : string | number -+>y : any -+>x : any - - const f = () => { - >f : () => void \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt.diff deleted file mode 100644 index e536c91604..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.declFileWithErrorsInInputDeclarationFileWithOut.errors.txt -+++ new.declFileWithErrorsInInputDeclarationFileWithOut.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - declFile.d.ts(2,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. - declFile.d.ts(3,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. - declFile.d.ts(5,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. - declFile.d.ts(7,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. - - -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== client.ts (0 errors) ==== - /// - var x = new M.C(); // Declaration file wont get emitted because there are errors in declaration file \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt.diff deleted file mode 100644 index dd6432977f..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt -+++ new.declarationEmitBundlePreservesHasNoDefaultLibDirective.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== extensions.ts (0 errors) ==== -+ /// -+ class Foo { -+ public: string; -+ } -+==== core.ts (0 errors) ==== -+ interface Array {} -+ interface Boolean {} -+ interface Function {} -+ interface IArguments {} -+ interface Number {} -+ interface Object {} -+ interface RegExp {} -+ interface String {} -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt.diff deleted file mode 100644 index 44b2b12e15..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt -+++ new.declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== /a/index.ts (0 errors) ==== -+ export * from "./src/" -+==== /b/index.ts (0 errors) ==== -+ export * from "./src/" -+==== /b/src/index.ts (0 errors) ==== -+ export class B {} -+==== /a/src/index.ts (0 errors) ==== -+ import { B } from "b"; -+ -+ export default function () { -+ return new B(); -+ } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitMonorepoBaseUrl.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitMonorepoBaseUrl.errors.txt.diff deleted file mode 100644 index 1f0aa50e9a..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitMonorepoBaseUrl.errors.txt.diff +++ /dev/null @@ -1,63 +0,0 @@ ---- old.declarationEmitMonorepoBaseUrl.errors.txt -+++ new.declarationEmitMonorepoBaseUrl.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/tsconfig.json(6,5): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== /tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "module": "nodenext", -+ "declaration": true, -+ "outDir": "temp", -+ "baseUrl": "." -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ } -+ } -+ -+==== /packages/compiler-core/src/index.ts (0 errors) ==== -+ import { PluginConfig } from "@babel/parser"; -+ -+==== /packages/compiler-sfc/src/index.ts (0 errors) ==== -+ import { createPlugin } from "@babel/parser"; -+ export function resolveParserPlugins() { -+ return [createPlugin()]; -+ } -+ -+==== /node_modules/.pnpm/@babel+parser@7.23.6/node_modules/@babel/parser/package.json (0 errors) ==== -+ { -+ "name": "@babel/parser", -+ "version": "7.23.6", -+ "main": "./lib/index.js", -+ "types": "./typings/babel-parser.d.ts" -+ } -+ -+==== /node_modules/.pnpm/@babel+parser@7.23.6/node_modules/@babel/parser/typings/babel-parser.d.ts (0 errors) ==== -+ export declare function createPlugin(): PluginConfig; -+ export declare class PluginConfig {} -+ -+==== /packages/compiler-core/package.json (0 errors) ==== -+ { -+ "name": "@vue/compiler-core", -+ "version": "3.0.0", -+ "main": "./src/index.ts", -+ "dependencies": { -+ "@babel/parser": "^7.0.0" -+ } -+ } -+ -+==== /packages/compiler-sfc/package.json (0 errors) ==== -+ { -+ "name": "@vue/compiler-sfc", -+ "version": "3.0.0", -+ "main": "./src/index.ts", -+ "dependencies": { -+ "@babel/parser": "^7.0.0", -+ "@vue/compiler-core": "^3.0.0" -+ } -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitOutFileBundlePaths.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitOutFileBundlePaths.errors.txt.diff deleted file mode 100644 index fd3212568d..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitOutFileBundlePaths.errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.declarationEmitOutFileBundlePaths.errors.txt -+++ new.declarationEmitOutFileBundlePaths.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== js/versions.static.js (0 errors) ==== -+ export default { -+ "@a/b": "1.0.0", -+ "@a/c": "1.2.3" -+ }; -+==== js/index.js (0 errors) ==== -+ import versions from './versions.static.js'; -+ -+ export { -+ versions -+ }; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPathMappingMonorepo.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPathMappingMonorepo.errors.txt.diff deleted file mode 100644 index a6688b68bc..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPathMappingMonorepo.errors.txt.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.declarationEmitPathMappingMonorepo.errors.txt -+++ new.declarationEmitPathMappingMonorepo.errors.txt -@@= skipped -0, +0 lines =@@ -- -+packages/b/tsconfig.json(5,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== packages/b/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "outDir": "dist", -+ "declaration": true, -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "@ts-bug/a": ["../a"] -+ } -+ } -+ } -+ -+ -+==== packages/b/src/index.ts (0 errors) ==== -+ import { a } from "@ts-bug/a"; -+ -+ export function b(text: string) { -+ return a(text); -+ } -+==== packages/a/index.d.ts (0 errors) ==== -+ declare module "@ts-bug/a" { -+ export type AText = { -+ value: string; -+ }; -+ export function a(text: string): AText; -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPathMappingMonorepo2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPathMappingMonorepo2.errors.txt.diff deleted file mode 100644 index 9d40c1b7cf..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPathMappingMonorepo2.errors.txt.diff +++ /dev/null @@ -1,58 +0,0 @@ ---- old.declarationEmitPathMappingMonorepo2.errors.txt -+++ new.declarationEmitPathMappingMonorepo2.errors.txt -@@= skipped -0, +0 lines =@@ -- -+packages/lab/src/index.ts(1,31): error TS2307: Cannot find module '@ts-bug/core/utils' or its corresponding type declarations. -+packages/lab/tsconfig.json(5,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./../*"]}' instead. -+ -+ -+==== packages/lab/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "outDir": "dist", -+ "declaration": true, -+ "baseUrl": "../", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./../*"]}' instead. -+ "paths": { -+ "@ts-bug/core": ["./core/src"], -+ "@ts-bug/core/*": ["./core/src/*"], -+ "@ts-bug/lab": ["./lab/src"], -+ "@ts-bug/lab/*": ["./lab/src/*"], -+ "@ts-bug/styles": ["./styles/src"], -+ "@ts-bug/styles/*": ["./styles/src/*"] -+ } -+ } -+ } -+==== packages/lab/src/index.ts (1 errors) ==== -+ import { createSvgIcon } from "@ts-bug/core/utils"; -+ ~~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module '@ts-bug/core/utils' or its corresponding type declarations. -+ export default createSvgIcon("Hello", "ArrowLeft"); -+ -+==== packages/core/src/index.d.ts (0 errors) ==== -+ export * from "./utils"; -+ export { default as SvgIcon } from "./SvgIcon"; -+ -+==== packages/core/src/SvgIcon.d.ts (0 errors) ==== -+ import { StyledComponentProps } from "@ts-bug/styles"; -+ export interface SvgIconProps extends StyledComponentProps<"root"> { -+ children?: string[]; -+ } -+ export interface SomeInterface { -+ myProp: string; -+ } -+ declare const SvgIcon: SomeInterface; -+ export default SvgIcon; -+ -+==== packages/core/src/utils.d.ts (0 errors) ==== -+ import SvgIcon from "./SvgIcon"; -+ export function createSvgIcon(path: string, displayName: string): typeof SvgIcon; -+ -+==== packages/styles/src/index.d.ts (0 errors) ==== -+ export interface StyledComponentProps { -+ classes?: Record; -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPrefersPathKindBasedOnBundling.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPrefersPathKindBasedOnBundling.errors.txt.diff deleted file mode 100644 index 0f33e1d9f5..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitPrefersPathKindBasedOnBundling.errors.txt.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.declarationEmitPrefersPathKindBasedOnBundling.errors.txt -+++ new.declarationEmitPrefersPathKindBasedOnBundling.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+==== src/lib/operators/scalar.ts (0 errors) ==== -+ export interface Scalar { -+ (): string; -+ value: number; -+ } -+ -+ export function scalar(value: string): Scalar { -+ return null as any; -+ } -+==== src/settings/spacing.ts (0 errors) ==== -+ import { scalar } from '../lib/operators/scalar'; -+ -+ export default { -+ get xs() { -+ return scalar("14px"); -+ } -+ }; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationFileOverwriteErrorWithOut.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationFileOverwriteErrorWithOut.errors.txt.diff deleted file mode 100644 index 906e105f99..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationFileOverwriteErrorWithOut.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.declarationFileOverwriteErrorWithOut.errors.txt -+++ new.declarationFileOverwriteErrorWithOut.errors.txt -@@= skipped -0, +0 lines =@@ --error TS5055: Cannot write file '/out.d.ts' because it would overwrite input file. -- Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -- -- --!!! error TS5055: Cannot write file '/out.d.ts' because it would overwrite input file. --!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== /out.d.ts (0 errors) ==== - declare class c { - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationFilesGeneratingTypeReferences.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationFilesGeneratingTypeReferences.errors.txt.diff deleted file mode 100644 index 97e8bb6ee0..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationFilesGeneratingTypeReferences.errors.txt.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.declarationFilesGeneratingTypeReferences.errors.txt -+++ new.declarationFilesGeneratingTypeReferences.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== /a/node_modules/@types/jquery/index.d.ts (0 errors) ==== -+ interface JQuery { -+ -+ } -+ -+==== /a/app.ts (0 errors) ==== -+ /// -+ namespace Test { -+ export var x: JQuery; -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationMapsOutFile2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationMapsOutFile2.errors.txt.diff deleted file mode 100644 index 2068ff05ce..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationMapsOutFile2.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.declarationMapsOutFile2.errors.txt -+++ new.declarationMapsOutFile2.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class Foo { -+ doThing(x: {a: number}) { -+ return {b: x.a}; -+ } -+ static make() { -+ return new Foo(); -+ } -+ } -+==== index.ts (0 errors) ==== -+ const c = new Foo(); -+ c.doThing({a: 42}); -+ -+ let x = c.doThing({a: 12}); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/declarationMapsWithSourceMap.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/declarationMapsWithSourceMap.errors.txt.diff deleted file mode 100644 index 3c2e0e39e8..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/declarationMapsWithSourceMap.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.declarationMapsWithSourceMap.errors.txt -+++ new.declarationMapsWithSourceMap.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class Foo { -+ doThing(x: {a: number}) { -+ return {b: x.a}; -+ } -+ static make() { -+ return new Foo(); -+ } -+ } -+==== index.ts (0 errors) ==== -+ const c = new Foo(); -+ c.doThing({a: 42}); -+ -+ let x = c.doThing({a: 12}); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/importNonExportedMember8.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/importNonExportedMember8.errors.txt.diff deleted file mode 100644 index b3b6668e75..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/importNonExportedMember8.errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.importNonExportedMember8.errors.txt -+++ new.importNonExportedMember8.errors.txt -@@= skipped -0, +0 lines =@@ --b.js(1,10): error TS2598: 'Foo' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import. -+b.js(1,10): error TS2617: 'Foo' can only be imported by using 'import Foo = require("./a")' or by turning on the 'esModuleInterop' flag and using a default import. - b.js(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export. - - -@@= skipped -8, +8 lines =@@ - ==== b.js (2 errors) ==== - import { Foo } from './a'; - ~~~ --!!! error TS2598: 'Foo' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import. -+!!! error TS2617: 'Foo' can only be imported by using 'import Foo = require("./a")' or by turning on the 'esModuleInterop' flag and using a default import. - ~~~~~ - !!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export. - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/incrementalOut.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/incrementalOut.errors.txt.diff deleted file mode 100644 index b5cd0c5543..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/incrementalOut.errors.txt.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.incrementalOut.errors.txt -+++ new.incrementalOut.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== incrementalOut.ts (0 errors) ==== -+ const x = 10; -+ -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/inlineSourceMap2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/inlineSourceMap2.errors.txt.diff deleted file mode 100644 index f072172c64..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/inlineSourceMap2.errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.inlineSourceMap2.errors.txt -+++ new.inlineSourceMap2.errors.txt -@@= skipped -0, +0 lines =@@ - error TS5053: Option 'mapRoot' cannot be specified with option 'inlineSourceMap'. - error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - - !!! error TS5053: Option 'mapRoot' cannot be specified with option 'inlineSourceMap'. - !!! error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== inlineSourceMap2.ts (0 errors) ==== - // configuration errors - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/inlineSources.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/inlineSources.errors.txt.diff deleted file mode 100644 index 9078ab82cc..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/inlineSources.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.inlineSources.errors.txt -+++ new.inlineSources.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ var a = 0; -+ console.log(a); -+ -+==== b.ts (0 errors) ==== -+ var b = 0; -+ console.log(b); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/inlineSources2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/inlineSources2.errors.txt.diff deleted file mode 100644 index ea85eccc64..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/inlineSources2.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.inlineSources2.errors.txt -+++ new.inlineSources2.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ var a = 0; -+ console.log(a); -+ -+==== b.ts (0 errors) ==== -+ var b = 0; -+ console.log(b); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationClassMethodContainingArrowFunction.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationClassMethodContainingArrowFunction.errors.txt.diff deleted file mode 100644 index 801e55a5b0..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationClassMethodContainingArrowFunction.errors.txt.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.jsFileCompilationClassMethodContainingArrowFunction.errors.txt -+++ new.jsFileCompilationClassMethodContainingArrowFunction.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.js (0 errors) ==== -+ class c { -+ method(a) { -+ let x = a => this.method(a); -+ } -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateFunctionImplementation.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateFunctionImplementation.errors.txt.diff deleted file mode 100644 index 0e0a30a8b4..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateFunctionImplementation.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.jsFileCompilationDuplicateFunctionImplementation.errors.txt -+++ new.jsFileCompilationDuplicateFunctionImplementation.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - a.ts(1,10): error TS2393: Duplicate function implementation. - - -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== b.js (0 errors) ==== - function foo() { - return 10; \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt.diff deleted file mode 100644 index 70265e7427..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt -+++ new.jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - a.ts(1,10): error TS2393: Duplicate function implementation. - - -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== a.ts (1 errors) ==== - function foo() { - ~~~ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateVariable.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateVariable.errors.txt.diff deleted file mode 100644 index fbe44be830..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateVariable.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.jsFileCompilationDuplicateVariable.errors.txt -+++ new.jsFileCompilationDuplicateVariable.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ var x = 10; -+ -+==== b.js (0 errors) ==== -+ var x = "hello"; // Error is recorded here, but suppressed because the js file isn't checked -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateVariableErrorReported.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateVariableErrorReported.errors.txt.diff deleted file mode 100644 index 50718c6410..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationDuplicateVariableErrorReported.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.jsFileCompilationDuplicateVariableErrorReported.errors.txt -+++ new.jsFileCompilationDuplicateVariableErrorReported.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - a.ts(1,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'string', but here has type 'number'. - - -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== b.js (0 errors) ==== - var x = "hello"; - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationEmitDeclarations.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationEmitDeclarations.errors.txt.diff deleted file mode 100644 index a5e1e98ecb..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationEmitDeclarations.errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.jsFileCompilationEmitDeclarations.errors.txt -+++ new.jsFileCompilationEmitDeclarations.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class c { -+ } -+ -+==== b.js (0 errors) ==== -+ function foo() { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationEmitTrippleSlashReference.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationEmitTrippleSlashReference.errors.txt.diff deleted file mode 100644 index bd80e773b1..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationEmitTrippleSlashReference.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.jsFileCompilationEmitTrippleSlashReference.errors.txt -+++ new.jsFileCompilationEmitTrippleSlashReference.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5055: Cannot write file 'c.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5055: Cannot write file 'c.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class c { -+ } -+ -+==== b.js (0 errors) ==== -+ /// -+ function foo() { -+ } -+ -+==== c.js (0 errors) ==== -+ function bar() { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt.diff deleted file mode 100644 index dcdb165e16..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt -+++ new.jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'c.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'c.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class c { -+ } -+ -+==== b.ts (0 errors) ==== -+ /// -+ function foo() { -+ } -+ -+==== c.js (0 errors) ==== -+ function bar() { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetBeingRenamed.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetBeingRenamed.errors.txt.diff deleted file mode 100644 index 207a2ba312..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetBeingRenamed.errors.txt.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.jsFileCompilationLetBeingRenamed.errors.txt -+++ new.jsFileCompilationLetBeingRenamed.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.js (0 errors) ==== -+ function foo(a) { -+ for (let a = 0; a < 10; a++) { -+ // do something -+ } -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetDeclarationOrder.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetDeclarationOrder.errors.txt.diff deleted file mode 100644 index 07628a3880..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetDeclarationOrder.errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.jsFileCompilationLetDeclarationOrder.errors.txt -+++ new.jsFileCompilationLetDeclarationOrder.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== b.js (0 errors) ==== -+ let a = 10; -+ b = 30; -+ -+==== a.ts (0 errors) ==== -+ let b = 30; -+ a = 10; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetDeclarationOrder2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetDeclarationOrder2.errors.txt.diff deleted file mode 100644 index a33f3984a1..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationLetDeclarationOrder2.errors.txt.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.jsFileCompilationLetDeclarationOrder2.errors.txt -+++ new.jsFileCompilationLetDeclarationOrder2.errors.txt -@@= skipped -0, +0 lines =@@ --a.ts(2,1): error TS2448: Block-scoped variable 'a' used before its declaration. -- -- --==== a.ts (1 errors) ==== -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== - let b = 30; - a = 10; -- ~ --!!! error TS2448: Block-scoped variable 'a' used before its declaration. --!!! related TS2728 b.js:1:5: 'a' is declared here. - ==== b.js (0 errors) ==== - let a = 10; - b = 30; \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt.diff deleted file mode 100644 index c8679c9130..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt -+++ new.jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'c.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'c.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class c { -+ } -+ -+==== b.ts (0 errors) ==== -+ /// -+ //no error on above reference since not emitting declarations -+ function foo() { -+ } -+ -+==== c.js (0 errors) ==== -+ function bar() { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationNonNullAssertion.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationNonNullAssertion.errors.txt.diff deleted file mode 100644 index 774688f7f7..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationNonNullAssertion.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.jsFileCompilationNonNullAssertion.errors.txt -+++ new.jsFileCompilationNonNullAssertion.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - /src/a.js(1,1): error TS8013: Non-null assertions can only be used in TypeScript files. - - -+!!! error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== /src/a.js (1 errors) ==== - 0! - ~~ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationRestParameter.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationRestParameter.errors.txt.diff deleted file mode 100644 index ef86de6a95..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationRestParameter.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.jsFileCompilationRestParameter.errors.txt -+++ new.jsFileCompilationRestParameter.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.js (0 errors) ==== -+ function foo(...a) { } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationShortHandProperty.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationShortHandProperty.errors.txt.diff deleted file mode 100644 index 214cb808a0..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationShortHandProperty.errors.txt.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.jsFileCompilationShortHandProperty.errors.txt -+++ new.jsFileCompilationShortHandProperty.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.js (0 errors) ==== -+ function foo() { -+ var a = 10; -+ var b = "Hello"; -+ return { -+ a, -+ b -+ }; -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationTypeAssertions.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationTypeAssertions.errors.txt.diff deleted file mode 100644 index c859e79ebe..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationTypeAssertions.errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.jsFileCompilationTypeAssertions.errors.txt -+++ new.jsFileCompilationTypeAssertions.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - /src/a.js(1,6): error TS8016: Type assertion expressions can only be used in TypeScript files. - /src/a.js(2,10): error TS17008: JSX element 'string' has no corresponding closing tag. - /src/a.js(3,1): error TS1005: ' -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class c { -+ } -+ -+==== b.js (0 errors) ==== -+ function foo() { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOut.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOut.errors.txt.diff deleted file mode 100644 index 6a293d71f6..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOut.errors.txt.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.jsFileCompilationWithOut.errors.txt -+++ new.jsFileCompilationWithOut.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ class c { -+ } -+ -+==== b.js (0 errors) ==== -+ function foo() { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt.diff deleted file mode 100644 index 1f86bc14cf..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt -+++ new.jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.errors.txt -@@= skipped -0, +0 lines =@@ --error TS5055: Cannot write file '/b.d.ts' because it would overwrite input file. -- Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -- -- --!!! error TS5055: Cannot write file '/b.d.ts' because it would overwrite input file. --!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== /a.ts (0 errors) ==== - class c { - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt.diff deleted file mode 100644 index 0d0626696c..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt -+++ new.jsFileCompilationWithOutFileNameSameAsInputJsFile.errors.txt -@@= skipped -0, +0 lines =@@ - error TS5055: Cannot write file '/b.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - - - !!! error TS5055: Cannot write file '/b.js' because it would overwrite input file. - !!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== /a.ts (0 errors) ==== - class c { - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/letDeclarations-useBeforeDefinition2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/letDeclarations-useBeforeDefinition2.errors.txt.diff deleted file mode 100644 index c2d271b455..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/letDeclarations-useBeforeDefinition2.errors.txt.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.letDeclarations-useBeforeDefinition2.errors.txt -+++ new.letDeclarations-useBeforeDefinition2.errors.txt -@@= skipped -0, +0 lines =@@ --file1.ts(1,1): error TS2448: Block-scoped variable 'l' used before its declaration. -- -- --==== file1.ts (1 errors) ==== -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== file1.ts (0 errors) ==== - l; -- ~ --!!! error TS2448: Block-scoped variable 'l' used before its declaration. --!!! related TS2728 file2.ts:1:7: 'l' is declared here. - - ==== file2.ts (0 errors) ==== - const l = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneDynamicImport(target=es2015).errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneDynamicImport(target=es2015).errors.txt.diff deleted file mode 100644 index a159e1bb64..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneDynamicImport(target=es2015).errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.moduleNoneDynamicImport(target=es2015).errors.txt -+++ new.moduleNoneDynamicImport(target=es2015).errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file '/b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+/a.ts(1,13): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. -+ -+ -+!!! error TS5055: Cannot write file '/b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== /a.ts (1 errors) ==== -+ const foo = import("./b"); -+ ~~~~~~~~~~~~~ -+!!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. -+ -+==== /b.js (0 errors) ==== -+ export default 1; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneDynamicImport(target=es2020).errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneDynamicImport(target=es2020).errors.txt.diff deleted file mode 100644 index 7edc394d3a..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneDynamicImport(target=es2020).errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.moduleNoneDynamicImport(target=es2020).errors.txt -+++ new.moduleNoneDynamicImport(target=es2020).errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file '/b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+/a.ts(1,13): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. -+ -+ -+!!! error TS5055: Cannot write file '/b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== /a.ts (1 errors) ==== -+ const foo = import("./b"); -+ ~~~~~~~~~~~~~ -+!!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. -+ -+==== /b.js (0 errors) ==== -+ export default 1; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneOutFile.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneOutFile.errors.txt.diff deleted file mode 100644 index 828328de17..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleNoneOutFile.errors.txt.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.moduleNoneOutFile.errors.txt -+++ new.moduleNoneOutFile.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== first.ts (0 errors) ==== -+ class Foo {} -+==== second.ts (0 errors) ==== -+ class Bar extends Foo {} \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt.diff deleted file mode 100644 index e7a547ed5b..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt.diff +++ /dev/null @@ -1,59 +0,0 @@ ---- old.moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt -+++ new.moduleResolutionPackageIdWithRelativeAndAbsolutePath.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/project/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== /project/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "@shared/*": ["../shared/*"] -+ } -+ }, -+ //"files": ["src/app.ts"] -+ } -+==== /project/src/app.ts (0 errors) ==== -+ import * as t from "anotherLib"; // Include the lib that recursively includes option as relative module resolution in this directory -+ import { makeSharedOption } from "@shared/lib/app"; // Includes option as module in shared folder but as module in node_modules folder -+ -+==== /shared/node_modules/troublesome-lib/package.json (0 errors) ==== -+ { -+ "name": "troublesome-lib", -+ "version": "1.17.1" -+ } -+==== /shared/node_modules/troublesome-lib/lib/Compactable.d.ts (0 errors) ==== -+ import { Option } from './Option'; -+ export class Compactable { -+ option: Option; -+ } -+==== /shared/node_modules/troublesome-lib/lib/Option.d.ts (0 errors) ==== -+ export class Option { -+ someProperty: string; -+ } -+==== /shared/lib/app.d.ts (0 errors) ==== -+ import { Option } from "troublesome-lib/lib/Option"; -+ export class SharedOption extends Option { } -+ export const makeSharedOption: () => SharedOption; -+==== /project/node_modules/anotherLib/index.d.ts (0 errors) ==== -+ import { Compactable } from "troublesome-lib/lib/Compactable"; // Including this will resolve Option as relative through the imports of compactable -+==== /project/node_modules/troublesome-lib/package.json (0 errors) ==== -+ { -+ "name": "troublesome-lib", -+ "version": "1.17.1" -+ } -+==== /project/node_modules/troublesome-lib/lib/Compactable.d.ts (0 errors) ==== -+ import { Option } from './Option'; -+ export class Compactable { -+ option: Option; -+ } -+==== /project/node_modules/troublesome-lib/lib/Option.d.ts (0 errors) ==== -+ export class Option { -+ someProperty: string; -+ } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithExtensions_withPaths.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithExtensions_withPaths.errors.txt.diff deleted file mode 100644 index eabb80cb29..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithExtensions_withPaths.errors.txt.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.moduleResolutionWithExtensions_withPaths.errors.txt -+++ new.moduleResolutionWithExtensions_withPaths.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(7,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -+/tsconfig.json(6,3): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+/tsconfig.json(11,14): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== /tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "outDir": "lib", - "target": "ES6", - "module": "ES6", - "baseUrl": "/", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "moduleResolution": "Node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - "noImplicitAny": true, - "traceResolution": true, - "paths": { - "foo/*": ["node_modules/foo/lib/*"] -+ ~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt.diff deleted file mode 100644 index 1dc67f7b32..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt -+++ new.moduleResolutionWithSuffixes_one_externalModule_withPaths.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -+/tsconfig.json(9,3): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+/tsconfig.json(11,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+/tsconfig.json(12,23): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== /tsconfig.json (3 errors) ==== - { - "compilerOptions": { - "allowJs": true, - "checkJs": false, - "outDir": "bin", - "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - "traceResolution": true, - "moduleSuffixes": [".ios"], - "baseUrl": "/", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "some-library": ["node_modules/some-library/lib"], -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - "some-library/*": ["node_modules/some-library/lib/*"] -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithSuffixes_one_jsModule.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithSuffixes_one_jsModule.errors.txt.diff deleted file mode 100644 index 80d11e391b..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolutionWithSuffixes_one_jsModule.errors.txt.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_jsModule.errors.txt -+++ new.moduleResolutionWithSuffixes_one_jsModule.errors.txt -@@= skipped -0, +0 lines =@@ --/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- -- --==== /tsconfig.json (1 errors) ==== -- { -- "compilerOptions": { -- "allowJs": true, -- "checkJs": false, -- "outDir": "bin", -- "moduleResolution": "node", -- ~~~~~~ --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -- "traceResolution": true, -- "moduleSuffixes": [".ios"] -- } -- } -- --==== /index.ts (0 errors) ==== -- import { ios } from "./foo.js"; --==== /foo.ios.js (0 errors) ==== -- "use strict"; -- exports.__esModule = true; -- function ios() {} -- exports.ios = ios; --==== /foo.js (0 errors) ==== -- "use strict"; -- exports.__esModule = true; -- function base() {} -- exports.base = base; -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolution_classicPrefersTs.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolution_classicPrefersTs.errors.txt.diff deleted file mode 100644 index 28b2798b5c..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolution_classicPrefersTs.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.moduleResolution_classicPrefersTs.errors.txt -+++ new.moduleResolution_classicPrefersTs.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/dir1/dir2/dir3/index.ts(1,15): error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ -+ -+==== /dir1/dir2/dir3/a.js (0 errors) ==== -+ export default "dir1/dir2/dir3/a.js"; -+ -+==== /dir1/dir2/a.ts (0 errors) ==== -+ export default "dir1/dir2/a.ts"; -+ -+==== /dir1/dir2/dir3/index.ts (1 errors) ==== -+ import a from "a"; -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolution_classicPrefersTs.types.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolution_classicPrefersTs.types.diff deleted file mode 100644 index acd47180f8..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleResolution_classicPrefersTs.types.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.moduleResolution_classicPrefersTs.types -+++ new.moduleResolution_classicPrefersTs.types -@@= skipped -9, +9 lines =@@ - - === /dir1/dir2/dir3/index.ts === - import a from "a"; -->a : "dir1/dir2/a.ts" -+>a : any diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/optionsOutAndNoModuleGen.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/optionsOutAndNoModuleGen.errors.txt.diff deleted file mode 100644 index 50dc55f52f..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/optionsOutAndNoModuleGen.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.optionsOutAndNoModuleGen.errors.txt -+++ new.optionsOutAndNoModuleGen.errors.txt -@@= skipped -0, +0 lines =@@ --optionsOutAndNoModuleGen.ts(1,1): error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. -- -- --==== optionsOutAndNoModuleGen.ts (1 errors) ==== -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== optionsOutAndNoModuleGen.ts (0 errors) ==== - export var x = 10; -- ~~~~~~~~~~~~~~~~~~ --!!! error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/out-flag2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/out-flag2.errors.txt.diff deleted file mode 100644 index bc4be59555..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/out-flag2.errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.out-flag2.errors.txt -+++ new.out-flag2.errors.txt -@@= skipped -0, +0 lines =@@ --error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -- -- --!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== a.ts (0 errors) ==== - class A { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/out-flag3.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/out-flag3.errors.txt.diff deleted file mode 100644 index 4d0cf1ba57..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/out-flag3.errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.out-flag3.errors.txt -+++ new.out-flag3.errors.txt -@@= skipped -0, +0 lines =@@ --error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -- -- --!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== a.ts (0 errors) ==== - class A { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatCommonjs.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatCommonjs.errors.txt.diff deleted file mode 100644 index fdb2458a5e..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatCommonjs.errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.outModuleConcatCommonjs.errors.txt -+++ new.outModuleConcatCommonjs.errors.txt -@@= skipped -0, +0 lines =@@ --error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -- -- --!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== ref/a.ts (0 errors) ==== - export class A { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatCommonjsDeclarationOnly.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatCommonjsDeclarationOnly.errors.txt.diff deleted file mode 100644 index 5139b34766..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatCommonjsDeclarationOnly.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.outModuleConcatCommonjsDeclarationOnly.errors.txt -+++ new.outModuleConcatCommonjsDeclarationOnly.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== ref/a.ts (0 errors) ==== -+ export class A { } -+ -+==== b.ts (0 errors) ==== -+ import {A} from "./ref/a"; -+ export class B extends A { } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatES6.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatES6.errors.txt.diff deleted file mode 100644 index 7956c71daf..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatES6.errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.outModuleConcatES6.errors.txt -+++ new.outModuleConcatES6.errors.txt -@@= skipped -0, +0 lines =@@ --error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -- -- --!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== ref/a.ts (0 errors) ==== - export class A { } - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatUnspecifiedModuleKind.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatUnspecifiedModuleKind.errors.txt.diff deleted file mode 100644 index 99b0bfea42..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatUnspecifiedModuleKind.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.outModuleConcatUnspecifiedModuleKind.errors.txt -+++ new.outModuleConcatUnspecifiedModuleKind.errors.txt -@@= skipped -0, +0 lines =@@ --a.ts(1,14): error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. -- -- --==== a.ts (1 errors) ==== -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== - export class A { } // module -- ~ --!!! error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. - - ==== b.ts (0 errors) ==== - var x = 0; // global \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt.diff deleted file mode 100644 index 79a662f7aa..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt -+++ new.outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt -@@= skipped -0, +0 lines =@@ --error TS5069: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'. -- -- --!!! error TS5069: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== a.ts (0 errors) ==== - export class A { } // module - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution2_node.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution2_node.errors.txt.diff deleted file mode 100644 index b47c2daec0..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution2_node.errors.txt.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.pathMappingBasedModuleResolution2_node.errors.txt -+++ new.pathMappingBasedModuleResolution2_node.errors.txt -@@= skipped -0, +0 lines =@@ -+root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./src/*"]}' instead. - root/tsconfig.json(5,13): error TS5061: Pattern '*1*' can have at most one '*' character. - root/tsconfig.json(5,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character. -- -- --==== root/tsconfig.json (2 errors) ==== -+root/tsconfig.json(5,22): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== root/tsconfig.json (4 errors) ==== - { - "compilerOptions": { - "baseUrl": "./src", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./src/*"]}' instead. - "paths": { - "*1*": [ "*2*" ] - ~~~~~ - !!! error TS5061: Pattern '*1*' can have at most one '*' character. - ~~~~~ - !!! error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character. -+ ~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution3_node.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution3_node.errors.txt.diff deleted file mode 100644 index 79c920ad8a..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution3_node.errors.txt.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.pathMappingBasedModuleResolution3_node.errors.txt -+++ new.pathMappingBasedModuleResolution3_node.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+c:/root/folder1/file1.ts(1,17): error TS2307: Cannot find module 'folder2/file2' or its corresponding type declarations. -+ -+ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+==== c:/root/folder1/file1.ts (1 errors) ==== -+ import {x} from "folder2/file2" -+ ~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'folder2/file2' or its corresponding type declarations. -+ declare function use(a: any): void; -+ use(x.toExponential()); -+ -+==== c:/root/folder2/file2.ts (0 errors) ==== -+ import {x as a} from "./file3" // found with baseurl -+ import {y as b} from "file4" // found with fallback -+ export var x = a + b; -+ -+==== c:/root/folder2/file3.ts (0 errors) ==== -+ export var x = 1; -+ -+==== c:/node_modules/file4/index.d.ts (0 errors) ==== -+ export var y: number; \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution4_node.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution4_node.errors.txt.diff deleted file mode 100644 index 6ced85a8db..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution4_node.errors.txt.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.pathMappingBasedModuleResolution4_node.errors.txt -+++ new.pathMappingBasedModuleResolution4_node.errors.txt -@@= skipped -0, +0 lines =@@ -- -+c:/root/folder1/file1.ts(1,17): error TS2307: Cannot find module 'folder2/file2' or its corresponding type declarations. -+c:/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== c:/root/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": "." -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ } -+ } -+ -+==== c:/root/folder1/file1.ts (1 errors) ==== -+ import {x} from "folder2/file2" -+ ~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'folder2/file2' or its corresponding type declarations. -+ declare function use(a: any): void; -+ use(x.toExponential()); -+ -+==== c:/root/folder2/file2.ts (0 errors) ==== -+ import {x as a} from "./file3" // found with baseurl -+ import {y as b} from "file4" // found with fallback -+ export var x = a + b; -+ -+==== c:/root/folder2/file3.ts (0 errors) ==== -+ export var x = 1; -+ -+==== c:/node_modules/file4/index.d.ts (0 errors) ==== -+ export var y: number; \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution5_node.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution5_node.errors.txt.diff deleted file mode 100644 index 0903cc081b..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution5_node.errors.txt.diff +++ /dev/null @@ -1,60 +0,0 @@ ---- old.pathMappingBasedModuleResolution5_node.errors.txt -+++ new.pathMappingBasedModuleResolution5_node.errors.txt -@@= skipped -0, +0 lines =@@ -- -+c:/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+c:/root/tsconfig.json(6,17): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+c:/root/tsconfig.json(7,17): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+c:/root/tsconfig.json(10,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== c:/root/tsconfig.json (4 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "*": [ -+ "*", -+ ~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ "generated/*" -+ ~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ ], -+ "components/*": [ -+ "shared/components/*" -+ ~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ ] -+ } -+ } -+ } -+==== c:/root/folder1/file1.ts (0 errors) ==== -+ import {x} from "folder2/file1" -+ import {y} from "folder3/file2" -+ import {z} from "components/file3" -+ import {z1} from "file4" -+ -+ declare function use(a: any): void; -+ -+ use(x.toExponential()); -+ use(y.toExponential()); -+ use(z.toExponential()); -+ use(z1.toExponential()); -+ -+==== c:/root/folder2/file1.ts (0 errors) ==== -+ export var x = 1; -+ -+==== c:/root/generated/folder3/file2.ts (0 errors) ==== -+ export var y = 1; -+ -+==== c:/root/shared/components/file3/index.d.ts (0 errors) ==== -+ export var z: number; -+ -+==== c:/node_modules/file4.ts (0 errors) ==== -+ export var z1 = 1; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution7_node.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution7_node.errors.txt.diff deleted file mode 100644 index d6c0f18e2d..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution7_node.errors.txt.diff +++ /dev/null @@ -1,67 +0,0 @@ ---- old.pathMappingBasedModuleResolution7_node.errors.txt -+++ new.pathMappingBasedModuleResolution7_node.errors.txt -@@= skipped -0, +0 lines =@@ -- -+c:/root/generated/src/project/file2.ts(2,17): error TS2307: Cannot find module 'templates/module2' or its corresponding type declarations. -+c:/root/src/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./../*"]}' instead. -+c:/root/src/tsconfig.json(6,17): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+c:/root/src/tsconfig.json(10,17): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== c:/root/src/tsconfig.json (3 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": "../", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./../*"]}' instead. -+ "paths": { -+ "*": [ -+ "*", -+ ~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ "c:/shared/*" -+ ], -+ "templates/*": [ -+ "generated/src/templates/*" -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ ] -+ }, -+ "rootDirs": [ -+ ".", -+ "../generated/src" -+ ] -+ } -+ } -+ -+==== c:/root/src/file1.ts (0 errors) ==== -+ import {x} from "./project/file2"; -+ import {y} from "module3"; -+ -+ declare function use(x: string); -+ use(x.toFixed()); -+ use(y.toFixed()); -+ -+==== c:/root/src/file3/index.d.ts (0 errors) ==== -+ export let x: number; -+ -+==== c:/root/generated/src/project/file2.ts (1 errors) ==== -+ import {a} from "module1"; -+ import {b} from "templates/module2"; -+ ~~~~~~~~~~~~~~~~~~~ -+!!! error TS2307: Cannot find module 'templates/module2' or its corresponding type declarations. -+ import {x as c} from "../file3"; -+ export let x = a + b + c; -+ -+==== c:/shared/module1/index.d.ts (0 errors) ==== -+ export let a: number -+ -+==== c:/root/generated/src/templates/module2.ts (0 errors) ==== -+ export let b: number; -+ -+==== c:/node_modules/module3.d.ts (0 errors) ==== -+ export let y: number; -+ -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution8_node.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution8_node.errors.txt.diff deleted file mode 100644 index 3a52be5f78..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution8_node.errors.txt.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.pathMappingBasedModuleResolution8_node.errors.txt -+++ new.pathMappingBasedModuleResolution8_node.errors.txt -@@= skipped -0, +0 lines =@@ -- -+c:/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+c:/root/tsconfig.json(6,16): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== c:/root/tsconfig.json (2 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "@speedy/*/testing": [ -+ "*/dist/index.ts" -+ ~~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ ] -+ } -+ } -+ } -+ -+==== c:/root/index.ts (0 errors) ==== -+ import {x} from "@speedy/folder1/testing" -+ -+==== c:/root/folder1/dist/index.ts (0 errors) ==== -+ export const x = 1 + 2; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt.diff deleted file mode 100644 index e38e848398..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt -+++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== /root/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "/*": ["./src/*"] -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /root/src/foo.ts (0 errors) ==== -+ export function foo() {} -+ -+==== /root/src/bar.js (0 errors) ==== -+ export function bar() {} -+ -+==== /root/a.ts (0 errors) ==== -+ import { foo } from "/foo"; -+ import { bar } from "/bar"; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt.diff deleted file mode 100644 index 15c3dae0fe..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt.diff +++ /dev/null @@ -1,57 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt -+++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== /root/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "/*": ["./src/*"], -+ "c:/*": ["./src/*"], -+ "c:\\*": ["./src/*"], -+ "//server/*": ["./src/*"], -+ "\\\\server\\*": ["./src/*"], -+ "file:///*": ["./src/*"], -+ "file://c:/*": ["./src/*"], -+ "file://server/*": ["./src/*"], -+ "http://server/*": ["./src/*"] -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /root/src/foo.ts (0 errors) ==== -+ export function foo() {} -+ -+==== /root/src/bar.js (0 errors) ==== -+ export function bar() {} -+ -+==== /root/a.ts (0 errors) ==== -+ import { foo as foo1 } from "/foo"; -+ import { bar as bar1 } from "/bar"; -+ import { foo as foo2 } from "c:/foo"; -+ import { bar as bar2 } from "c:/bar"; -+ import { foo as foo3 } from "c:\\foo"; -+ import { bar as bar3 } from "c:\\bar"; -+ import { foo as foo4 } from "//server/foo"; -+ import { bar as bar4 } from "//server/bar"; -+ import { foo as foo5 } from "\\\\server\\foo"; -+ import { bar as bar5 } from "\\\\server\\bar"; -+ import { foo as foo6 } from "file:///foo"; -+ import { bar as bar6 } from "file:///bar"; -+ import { foo as foo7 } from "file://c:/foo"; -+ import { bar as bar7 } from "file://c:/bar"; -+ import { foo as foo8 } from "file://server/foo"; -+ import { bar as bar8 } from "file://server/bar"; -+ import { foo as foo9 } from "http://server/foo"; -+ import { bar as bar9 } from "http://server/bar"; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt.diff deleted file mode 100644 index e3f58fe616..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt -+++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== /root/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "/client/*": ["./client/*"], -+ "/import/*": ["./import/*"] -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /root/import/foo.ts (0 errors) ==== -+ export function foo() {} -+ -+==== /root/client/bar.js (0 errors) ==== -+ export function bar() {} -+ -+==== /root/src/a.ts (0 errors) ==== -+ import { foo } from "/import/foo"; -+ import { bar } from "/client/bar"; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt.diff deleted file mode 100644 index 5acbf7d5af..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt -+++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== /root/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "/*": ["./src/*"] -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /root/a.ts (0 errors) ==== -+ import { foo } from "/foo"; -+ import { bar } from "/bar"; -+ -+==== /foo.ts (0 errors) ==== -+ export function foo() {} -+ -+==== /bar.js (0 errors) ==== -+ export function bar() {} -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt.diff deleted file mode 100644 index b00565c3b1..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt -+++ new.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== /root/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "*": ["./src/*"] -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /root/src/foo.ts (0 errors) ==== -+ export function foo() {} -+ -+==== /root/src/bar.js (0 errors) ==== -+ export function bar() {} -+ -+==== /root/a.ts (0 errors) ==== -+ import { foo } from "/foo"; -+ import { bar } from "/bar"; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt.diff deleted file mode 100644 index 56b4e579f6..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt -+++ new.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/root/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+ -+ -+==== /root/tsconfig.json (1 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "*": ["./src/*"] -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /root/a.ts (0 errors) ==== -+ import { foo } from "/foo"; -+ import { bar } from "/bar"; -+ -+==== /foo.ts (0 errors) ==== -+ export function foo() {} -+ -+==== /bar.js (0 errors) ==== -+ export function bar() {} -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension.errors.txt.diff deleted file mode 100644 index 9c8f8a2b53..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension.errors.txt.diff +++ /dev/null @@ -1,40 +0,0 @@ ---- old.pathMappingBasedModuleResolution_withExtension.errors.txt -+++ new.pathMappingBasedModuleResolution_withExtension.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+/tsconfig.json(5,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+/tsconfig.json(6,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== /tsconfig.json (3 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "foo": ["foo/foo.ts"], -+ ~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ "bar": ["bar/bar.js"] -+ ~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /foo/foo.ts (0 errors) ==== -+ export function foo() {} -+ -+==== /bar/bar.js (0 errors) ==== -+ export function bar() {} -+ -+==== /a.ts (0 errors) ==== -+ import { foo } from "foo"; -+ import { bar } from "bar"; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtensionInName.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtensionInName.errors.txt.diff deleted file mode 100644 index 4ec6f8d156..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtensionInName.errors.txt.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.pathMappingBasedModuleResolution_withExtensionInName.errors.txt -+++ new.pathMappingBasedModuleResolution_withExtensionInName.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+/tsconfig.json(5,19): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== /tsconfig.json (2 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "*": ["foo/*"] -+ ~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ } -+ } -+ } -+ -+==== /foo/zone.js/index.d.ts (0 errors) ==== -+ export const x: number; -+ -+==== /foo/zone.tsx/index.d.ts (0 errors) ==== -+ export const y: number; -+ -+==== /a.ts (0 errors) ==== -+ import { x } from "zone.js"; -+ import { y } from "zone.tsx"; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt.diff deleted file mode 100644 index 6b1cb2a5bb..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt.diff +++ /dev/null @@ -1,35 +0,0 @@ ---- old.pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt -+++ new.pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+/tsconfig.json(5,19): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+/tsconfig.json(5,37): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== /tsconfig.json (3 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "*": ["node_modules/*", "src/types"] -+ ~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ ~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /a.ts (0 errors) ==== -+ import foobar from "foo/bar/foobar.js"; -+ -+==== /node_modules/foo/bar/foobar.js (0 errors) ==== -+ module.exports = { a: 10 }; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt.diff deleted file mode 100644 index 1a50f6a10c..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt -+++ new.pathMappingBasedModuleResolution_withExtension_failedLookup.errors.txt -@@= skipped -0, +0 lines =@@ - /a.ts(1,21): error TS2307: Cannot find module 'foo' or its corresponding type declarations. -- -- --==== /tsconfig.json (0 errors) ==== -+/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+/tsconfig.json(5,21): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== /tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "foo": ["foo/foo.ts"] -+ ~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingInheritedBaseUrl.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingInheritedBaseUrl.errors.txt.diff deleted file mode 100644 index 5b5d21ca65..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathMappingInheritedBaseUrl.errors.txt.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.pathMappingInheritedBaseUrl.errors.txt -+++ new.pathMappingInheritedBaseUrl.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/project/index.ts(1,20): error TS2307: Cannot find module 'p1' or its corresponding type declarations. -+/project/tsconfig.json(3,3): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["../other/*"]}' instead. -+ -+ -+==== /project/tsconfig.json (1 errors) ==== -+ { -+ "extends": "../other/tsconfig.base.json", -+ "compilerOptions": { -+ ~~~~~~~~~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["../other/*"]}' instead. -+ "module": "commonjs", -+ "paths": { -+ "p1": ["./lib/p1"] -+ } -+ } -+ } -+ -+==== /project/index.ts (1 errors) ==== -+ import { p1 } from "p1"; -+ ~~~~ -+!!! error TS2307: Cannot find module 'p1' or its corresponding type declarations. -+ -+==== /other/tsconfig.base.json (0 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": "." -+ } -+ } -+ -+==== /other/lib/p1/index.ts (0 errors) ==== -+ export const p1 = 0; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation1.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation1.errors.txt.diff deleted file mode 100644 index de8b8e95cd..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation1.errors.txt.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.pathsValidation1.errors.txt -+++ new.pathsValidation1.errors.txt -@@= skipped -0, +0 lines =@@ -+tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. - tsconfig.json(5,18): error TS5063: Substitutions for pattern '*' should be an array. - - --==== tsconfig.json (1 errors) ==== -+==== tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": "*" - ~~~ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation2.errors.txt.diff deleted file mode 100644 index e8ba70de21..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation2.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.pathsValidation2.errors.txt -+++ new.pathsValidation2.errors.txt -@@= skipped -0, +0 lines =@@ --tsconfig.json(5,19): error TS5064: Substitution '1' for pattern '*' has incorrect type, expected 'string', got 'number'. -- -- --==== tsconfig.json (1 errors) ==== -+tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+tsconfig.json(5,18): error TS5066: Substitutions for pattern '*' shouldn't be an empty array. -+ -+ -+==== tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": [1] -- ~ --!!! error TS5064: Substitution '1' for pattern '*' has incorrect type, expected 'string', got 'number'. -+ ~~~ -+!!! error TS5066: Substitutions for pattern '*' shouldn't be an empty array. - } - } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation3.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation3.errors.txt.diff deleted file mode 100644 index 7b2223c0f4..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation3.errors.txt.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.pathsValidation3.errors.txt -+++ new.pathsValidation3.errors.txt -@@= skipped -0, +0 lines =@@ -+tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. - tsconfig.json(5,20): error TS5066: Substitutions for pattern 'foo' shouldn't be an empty array. - - --==== tsconfig.json (1 errors) ==== -+==== tsconfig.json (2 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "foo": [] - ~~ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation4.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation4.errors.txt.diff deleted file mode 100644 index 051c66adff..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/pathsValidation4.errors.txt.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.pathsValidation4.errors.txt -+++ new.pathsValidation4.errors.txt -@@= skipped -0, +0 lines =@@ -+tsconfig.json(4,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./src/*"]}' instead. - tsconfig.json(6,11): error TS5061: Pattern '@interface/**/*' can have at most one '*' character. - tsconfig.json(7,11): error TS5061: Pattern '@service/**/*' can have at most one '*' character. - tsconfig.json(7,29): error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character. -- -- --==== tsconfig.json (3 errors) ==== -+tsconfig.json(8,29): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== tsconfig.json (5 errors) ==== - { - "compilerOptions": { - "traceResolution": true, - "baseUrl": "./src", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./src/*"]}' instead. - "paths": { - "@interface/**/*" : ["./src/interface/*"], - ~~~~~~~~~~~~~~~~~ -@@= skipped -17, +23 lines =@@ - ~~~~~~~~~~~~~~~~~~~~ - !!! error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character. - "@controller/*": ["controller/*"], -+ ~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - } - } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt.diff deleted file mode 100644 index 707620b72a..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt -+++ new.requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.errors.txt -@@= skipped -0, +0 lines =@@ - /a.ts(1,20): error TS2732: Cannot find module 'foo/bar/foobar.json'. Consider using '--resolveJsonModule' to import module with '.json' extension. -- -- --==== /tsconfig.json (0 errors) ==== -+/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+/tsconfig.json(5,19): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+/tsconfig.json(5,37): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== /tsconfig.json (3 errors) ==== - { - "compilerOptions": { - "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. - "paths": { - "*": ["node_modules/*", "src/types"] -+ ~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ ~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? - }, - "allowJs": true, - "outDir": "bin" \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/requireOfJsonFile_PathMapping.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/requireOfJsonFile_PathMapping.errors.txt.diff deleted file mode 100644 index f309207447..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/requireOfJsonFile_PathMapping.errors.txt.diff +++ /dev/null @@ -1,35 +0,0 @@ ---- old.requireOfJsonFile_PathMapping.errors.txt -+++ new.requireOfJsonFile_PathMapping.errors.txt -@@= skipped -0, +0 lines =@@ -- -+/tsconfig.json(3,9): error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+ Use '"paths": {"*": ["./*"]}' instead. -+/tsconfig.json(5,19): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+/tsconfig.json(5,37): error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ -+ -+==== /tsconfig.json (3 errors) ==== -+ { -+ "compilerOptions": { -+ "baseUrl": ".", -+ ~~~~~~~~~ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+!!! error TS5102: Use '"paths": {"*": ["./*"]}' instead. -+ "paths": { -+ "*": ["node_modules/*", "src/types"] -+ ~~~~~~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ ~~~~~~~~~~~ -+!!! error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? -+ }, -+ "allowJs": true, -+ "outDir": "bin" -+ } -+ } -+ -+==== /a.ts (0 errors) ==== -+ import foobar from "foo/bar/foobar.json"; -+ -+==== /node_modules/foo/bar/foobar.json (0 errors) ==== -+ { "a": 10 } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/signaturesUseJSDocForOptionalParameters.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/signaturesUseJSDocForOptionalParameters.errors.txt.diff deleted file mode 100644 index 43e74e3959..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/signaturesUseJSDocForOptionalParameters.errors.txt.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.signaturesUseJSDocForOptionalParameters.errors.txt -+++ new.signaturesUseJSDocForOptionalParameters.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'jsDocOptionality.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'jsDocOptionality.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== jsDocOptionality.js (0 errors) ==== -+ function MyClass() { -+ this.prop = null; -+ } -+ /** -+ * @param {string} required -+ * @param {string} [notRequired] -+ * @returns {MyClass} -+ */ -+ MyClass.prototype.optionalParam = function(required, notRequired) { -+ return this; -+ }; -+ let pInst = new MyClass(); -+ let c1 = pInst.optionalParam('hello') -+ let c2 = pInst.optionalParam('hello', null) -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/signaturesUseJSDocForOptionalParameters.types.diff b/testdata/baselines/reference/submoduleAccepted/compiler/signaturesUseJSDocForOptionalParameters.types.diff deleted file mode 100644 index e1ae4ab9cd..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/signaturesUseJSDocForOptionalParameters.types.diff +++ /dev/null @@ -1,74 +0,0 @@ ---- old.signaturesUseJSDocForOptionalParameters.types -+++ new.signaturesUseJSDocForOptionalParameters.types -@@= skipped -1, +1 lines =@@ - - === jsDocOptionality.js === - function MyClass() { -->MyClass : typeof MyClass -+>MyClass : () => void - - this.prop = null; - >this.prop = null : null - >this.prop : any -->this : this -+>this : any - >prop : any - } - /** -@@= skipped -14, +14 lines =@@ - * @returns {MyClass} - */ - MyClass.prototype.optionalParam = function(required, notRequired) { -->MyClass.prototype.optionalParam = function(required, notRequired) { return this;} : (required: string, notRequired?: string) => MyClass -+>MyClass.prototype.optionalParam = function(required, notRequired) { return this;} : (required: any, notRequired: any) => any - >MyClass.prototype.optionalParam : any - >MyClass.prototype : any -->MyClass : typeof MyClass -+>MyClass : () => void - >prototype : any - >optionalParam : any -->function(required, notRequired) { return this;} : (required: string, notRequired?: string) => MyClass -->required : string -->notRequired : string -+>function(required, notRequired) { return this;} : (required: any, notRequired: any) => any -+>required : any -+>notRequired : any - - return this; -->this : this -+>this : any - - }; - let pInst = new MyClass(); -->pInst : MyClass -->new MyClass() : MyClass -->MyClass : typeof MyClass -+>pInst : any -+>new MyClass() : any -+>MyClass : () => void - - let c1 = pInst.optionalParam('hello') -->c1 : MyClass -->pInst.optionalParam('hello') : MyClass -->pInst.optionalParam : (required: string, notRequired?: string) => MyClass -->pInst : MyClass -->optionalParam : (required: string, notRequired?: string) => MyClass -+>c1 : any -+>pInst.optionalParam('hello') : any -+>pInst.optionalParam : any -+>pInst : any -+>optionalParam : any - >'hello' : "hello" - - let c2 = pInst.optionalParam('hello', null) -->c2 : MyClass -->pInst.optionalParam('hello', null) : MyClass -->pInst.optionalParam : (required: string, notRequired?: string) => MyClass -->pInst : MyClass -->optionalParam : (required: string, notRequired?: string) => MyClass -+>c2 : any -+>pInst.optionalParam('hello', null) : any -+>pInst.optionalParam : any -+>pInst : any -+>optionalParam : any - >'hello' : "hello" diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithCaseSensitiveFileNames.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithCaseSensitiveFileNames.errors.txt.diff deleted file mode 100644 index d0b34de703..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithCaseSensitiveFileNames.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.sourceMapWithCaseSensitiveFileNames.errors.txt -+++ new.sourceMapWithCaseSensitiveFileNames.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== testFiles/app.ts (0 errors) ==== -+ // Note in the out result we are using same folder name only different in casing -+ // Since this is case sensitive, the folders are different and hence the relative paths in sourcemap shouldn't be just app.ts or app2.ts -+ class c { -+ } -+ -+==== testFiles/app2.ts (0 errors) ==== -+ class d { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithMultipleFilesWithCopyright.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithMultipleFilesWithCopyright.errors.txt.diff deleted file mode 100644 index 6ceaccc98e..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithMultipleFilesWithCopyright.errors.txt.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.sourceMapWithMultipleFilesWithCopyright.errors.txt -+++ new.sourceMapWithMultipleFilesWithCopyright.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== b.ts (0 errors) ==== -+ /*-------------------------------------------------------------------------- -+ Copyright -+ ---------------------------------------------------------------------------*/ -+ -+ /// -+ var y = x; -+ -+==== a.ts (0 errors) ==== -+ /*-------------------------------------------------------------------------- -+ Copyright -+ ---------------------------------------------------------------------------*/ -+ -+ var x = { -+ a: 10, -+ b: 20 -+ }; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt.diff deleted file mode 100644 index 84ea7d8cb0..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt -+++ new.sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.ts (0 errors) ==== -+ module M { -+ export var X = 1; -+ } -+ interface Navigator { -+ getGamepads(func?: any): any; -+ webkitGetGamepads(func?: any): any -+ msGetGamepads(func?: any): any; -+ webkitGamepads(func?: any): any; -+ } -+ -+==== b.ts (0 errors) ==== -+ module m1 { -+ export class c1 { -+ } -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithNonCaseSensitiveFileNames.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithNonCaseSensitiveFileNames.errors.txt.diff deleted file mode 100644 index d7d018245c..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/sourceMapWithNonCaseSensitiveFileNames.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.sourceMapWithNonCaseSensitiveFileNames.errors.txt -+++ new.sourceMapWithNonCaseSensitiveFileNames.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== testFiles/app.ts (0 errors) ==== -+ // Note in the out result we are using same folder name only different in casing -+ // Since this is non case sensitive, the relative paths should be just app.ts and app2.ts in the sourcemap -+ class c { -+ } -+ -+==== testFiles/app2.ts (0 errors) ==== -+ class d { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/typeReferenceDirectives11.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/typeReferenceDirectives11.errors.txt.diff deleted file mode 100644 index e459e50393..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/typeReferenceDirectives11.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.typeReferenceDirectives11.errors.txt -+++ new.typeReferenceDirectives11.errors.txt -@@= skipped -0, +0 lines =@@ --/mod1.ts(1,17): error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. -- -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== /mod2.ts (0 errors) ==== - import {foo} from "./mod1"; - export const bar = foo(); -@@= skipped -7, +8 lines =@@ - ==== /types/lib/index.d.ts (0 errors) ==== - interface Lib { x } - --==== /mod1.ts (1 errors) ==== -+==== /mod1.ts (0 errors) ==== - export function foo(): Lib { return {x: 1} } -- ~~~ --!!! error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/typeReferenceDirectives12.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/typeReferenceDirectives12.errors.txt.diff deleted file mode 100644 index 2494304a93..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/typeReferenceDirectives12.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.typeReferenceDirectives12.errors.txt -+++ new.typeReferenceDirectives12.errors.txt -@@= skipped -0, +0 lines =@@ --/main.ts(1,14): error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. -- -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== /mod2.ts (0 errors) ==== - import { Cls } from "./main"; - import "./mod1"; -@@= skipped -11, +12 lines =@@ - ==== /types/lib/index.d.ts (0 errors) ==== - interface Lib { x } - --==== /main.ts (1 errors) ==== -+==== /main.ts (0 errors) ==== - export class Cls { -- ~~~ --!!! error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. - x - } - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/useBeforeDeclaration.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/compiler/useBeforeDeclaration.errors.txt.diff deleted file mode 100644 index 2f107b6c10..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/compiler/useBeforeDeclaration.errors.txt.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.useBeforeDeclaration.errors.txt -+++ new.useBeforeDeclaration.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== A.ts (0 errors) ==== -+ namespace ts { -+ export function printVersion():void { -+ log("Version: " + sys.version); // the call of sys.version is deferred, should not report an error. -+ } -+ -+ export function log(info:string):void { -+ -+ } -+ } -+ -+==== B.ts (0 errors) ==== -+ namespace ts { -+ -+ export let sys:{version:string} = {version: "2.0.5"}; -+ -+ } -+ -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocOnEndOfFile.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocOnEndOfFile.errors.txt.diff deleted file mode 100644 index bdd99a963b..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocOnEndOfFile.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.checkJsdocOnEndOfFile.errors.txt -+++ new.checkJsdocOnEndOfFile.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'eof.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - eof.js(2,20): error TS2304: Cannot find name 'bad'. - - -+!!! error TS5055: Cannot write file 'eof.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== eof.js (1 errors) ==== - /** - * @typedef {Array} Should have error here \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag1.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag1.errors.txt.diff deleted file mode 100644 index 78b346a05f..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag1.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.checkJsdocReturnTag1.errors.txt -+++ new.checkJsdocReturnTag1.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - returns.js(20,12): error TS2872: This kind of expression is always truthy. - - -+!!! error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== returns.js (1 errors) ==== - // @ts-check - /** \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag1.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag1.types.diff deleted file mode 100644 index 6ae67dd6b8..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag1.types.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.checkJsdocReturnTag1.types -+++ new.checkJsdocReturnTag1.types -@@= skipped -15, +15 lines =@@ - * @returns {string=} This comment is not currently exposed - */ - function f1() { -->f1 : () => string | undefined -+>f1 : () => string - - return "hello world"; - >"hello world" : "hello world" \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag2.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag2.errors.txt.diff deleted file mode 100644 index 62dc9ab029..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/checkJsdocReturnTag2.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.checkJsdocReturnTag2.errors.txt -+++ new.checkJsdocReturnTag2.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - returns.js(6,5): error TS2322: Type 'number' is not assignable to type 'string'. - returns.js(13,5): error TS2322: Type 'number | boolean' is not assignable to type 'string | number'. - Type 'boolean' is not assignable to type 'string | number'. - returns.js(13,12): error TS2872: This kind of expression is always truthy. - - -+!!! error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== returns.js (3 errors) ==== - // @ts-check - /** \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/computedPropertyNames52(target=es2015).errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/computedPropertyNames52(target=es2015).errors.txt.diff deleted file mode 100644 index 47ab0f7e0a..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/computedPropertyNames52(target=es2015).errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.computedPropertyNames52(target=es2015).errors.txt -+++ new.computedPropertyNames52(target=es2015).errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'computedPropertyNames52.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'computedPropertyNames52.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== computedPropertyNames52.js (0 errors) ==== -+ const array = []; -+ for (let i = 0; i < 10; ++i) { -+ array.push(class C { -+ [i] = () => C; -+ static [i] = 100; -+ }) -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/computedPropertyNames52(target=es5).errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/computedPropertyNames52(target=es5).errors.txt.diff deleted file mode 100644 index c24cbe73ee..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/computedPropertyNames52(target=es5).errors.txt.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.computedPropertyNames52(target=es5).errors.txt -+++ new.computedPropertyNames52(target=es5).errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'computedPropertyNames52.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'computedPropertyNames52.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== computedPropertyNames52.js (0 errors) ==== -+ const array = []; -+ for (let i = 0; i < 10; ++i) { -+ array.push(class C { -+ [i] = () => C; -+ static [i] = 100; -+ }) -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/genericSetterInClassTypeJsDoc.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/genericSetterInClassTypeJsDoc.errors.txt.diff deleted file mode 100644 index a36e8c01e6..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/genericSetterInClassTypeJsDoc.errors.txt.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.genericSetterInClassTypeJsDoc.errors.txt -+++ new.genericSetterInClassTypeJsDoc.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'genericSetterInClassTypeJsDoc.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'genericSetterInClassTypeJsDoc.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== genericSetterInClassTypeJsDoc.js (0 errors) ==== -+ /** -+ * @template T -+ */ -+ class Box { -+ #value; -+ -+ /** @param {T} initialValue */ -+ constructor(initialValue) { -+ this.#value = initialValue; -+ } -+ -+ /** @type {T} */ -+ get value() { -+ return this.#value; -+ } -+ -+ set value(value) { -+ this.#value = value; -+ } -+ } -+ -+ new Box(3).value = 3; -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/genericSetterInClassTypeJsDoc.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/genericSetterInClassTypeJsDoc.types.diff deleted file mode 100644 index dc8973c43c..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/genericSetterInClassTypeJsDoc.types.diff +++ /dev/null @@ -1,59 +0,0 @@ ---- old.genericSetterInClassTypeJsDoc.types -+++ new.genericSetterInClassTypeJsDoc.types -@@= skipped -7, +7 lines =@@ - >Box : Box - - #value; -->#value : T -+>#value : any - - /** @param {T} initialValue */ - constructor(initialValue) { -@@= skipped -8, +8 lines =@@ - - this.#value = initialValue; - >this.#value = initialValue : T -->this.#value : T -+>this.#value : any - >this : this - >initialValue : T - } - - /** @type {T} */ - get value() { -->value : T -+>value : any - - return this.#value; -->this.#value : T -+>this.#value : any - >this : this - } - - set value(value) { -->value : T -->value : T -+>value : any -+>value : any - - this.#value = value; -->this.#value = value : T -->this.#value : T -+>this.#value = value : any -+>this.#value : any - >this : this -->value : T -+>value : any - } - } - - new Box(3).value = 3; - >new Box(3).value = 3 : 3 -->new Box(3).value : number -+>new Box(3).value : any - >new Box(3) : Box - >Box : typeof Box - >3 : 3 -->value : number -+>value : any - >3 : 3 diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/globalThisVarDeclaration.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/globalThisVarDeclaration.errors.txt.diff deleted file mode 100644 index 6bcae3f222..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/globalThisVarDeclaration.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.globalThisVarDeclaration.errors.txt -+++ new.globalThisVarDeclaration.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - actual.ts(12,5): error TS2339: Property 'a' does not exist on type 'Window'. - actual.ts(13,5): error TS2339: Property 'b' does not exist on type 'Window'. - b.js(12,5): error TS2339: Property 'a' does not exist on type 'Window'. - b.js(13,5): error TS2339: Property 'b' does not exist on type 'Window'. - - -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== b.js (2 errors) ==== - var a = 10; - this.a; \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/inferringClassMembersFromAssignments.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/inferringClassMembersFromAssignments.errors.txt.diff deleted file mode 100644 index 2970225a26..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/inferringClassMembersFromAssignments.errors.txt.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.inferringClassMembersFromAssignments.errors.txt -+++ new.inferringClassMembersFromAssignments.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - a.js(14,13): error TS7008: Member 'inMethodNullable' implicitly has an 'any' type. - a.js(20,9): error TS2322: Type 'string' is not assignable to type 'number'. - a.js(39,9): error TS2322: Type 'boolean' is not assignable to type 'number'. - - -+!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== a.js (3 errors) ==== - class C { - constructor() { \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsObjectsMarkedAsOpenEnded.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsObjectsMarkedAsOpenEnded.errors.txt.diff deleted file mode 100644 index fe64e53f34..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsObjectsMarkedAsOpenEnded.errors.txt.diff +++ /dev/null @@ -1,58 +0,0 @@ ---- old.jsObjectsMarkedAsOpenEnded.errors.txt -+++ new.jsObjectsMarkedAsOpenEnded.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+b.ts(3,29): error TS2339: Property 'a' does not exist on type '{}'. -+b.ts(4,14): error TS2339: Property 'a' does not exist on type '{}'. -+b.ts(5,8): error TS2339: Property 'a' does not exist on type '{}'. -+b.ts(6,10): error TS2339: Property 'a' does not exist on type '{}'. -+ -+ -+!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.js (0 errors) ==== -+ var variable = {}; -+ variable.a = 0; -+ -+ class C { -+ initializedMember = {}; -+ constructor() { -+ this.member = {}; -+ this.member.a = 0; -+ } -+ } -+ -+ var obj = { -+ property: {} -+ }; -+ -+ obj.property.a = 0; -+ -+ var arr = [{}]; -+ -+ function getObj() { -+ return {}; -+ } -+ -+ -+==== b.ts (4 errors) ==== -+ variable.a = 1; -+ (new C()).member.a = 1; -+ (new C()).initializedMember.a = 1; -+ ~ -+!!! error TS2339: Property 'a' does not exist on type '{}'. -+ obj.property.a = 1; -+ ~ -+!!! error TS2339: Property 'a' does not exist on type '{}'. -+ arr[0].a = 1; -+ ~ -+!!! error TS2339: Property 'a' does not exist on type '{}'. -+ getObj().a = 1; -+ ~ -+!!! error TS2339: Property 'a' does not exist on type '{}'. -+ -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsObjectsMarkedAsOpenEnded.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsObjectsMarkedAsOpenEnded.types.diff deleted file mode 100644 index 186ceb1a55..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsObjectsMarkedAsOpenEnded.types.diff +++ /dev/null @@ -1,79 +0,0 @@ ---- old.jsObjectsMarkedAsOpenEnded.types -+++ new.jsObjectsMarkedAsOpenEnded.types -@@= skipped -1, +1 lines =@@ - - === a.js === - var variable = {}; -->variable : typeof variable -->{} : {} -+>variable : { a: number; } -+>{} : { a: number; } - - variable.a = 0; - >variable.a = 0 : 0 - >variable.a : number -->variable : typeof variable -+>variable : { a: number; } - >a : number - >0 : 0 - -@@= skipped -19, +19 lines =@@ - - constructor() { - this.member = {}; -->this.member = {} : {} -+>this.member = {} : { a: number; } - >this.member : any - >this : this - >member : any -->{} : {} -+>{} : { a: number; } - - this.member.a = 0; - >this.member.a = 0 : 0 -->this.member.a : error -->this.member : {} -+>this.member.a : number -+>this.member : { a: number; } - >this : this -->member : {} -->a : any -+>member : { a: number; } -+>a : number - >0 : 0 - } - } -@@= skipped -29, +29 lines =@@ - - obj.property.a = 0; - >obj.property.a = 0 : 0 -->obj.property.a : error -+>obj.property.a : any - >obj.property : {} - >obj : { property: {}; } - >property : {} -@@= skipped -24, +24 lines =@@ - variable.a = 1; - >variable.a = 1 : 1 - >variable.a : number -->variable : typeof variable -+>variable : { a: number; } - >a : number - >1 : 1 - - (new C()).member.a = 1; - >(new C()).member.a = 1 : 1 -->(new C()).member.a : any -->(new C()).member : {} -+>(new C()).member.a : number -+>(new C()).member : { a: number; } - >(new C()) : C - >new C() : C - >C : typeof C -->member : {} -->a : any -+>member : { a: number; } -+>a : number - >1 : 1 - - (new C()).initializedMember.a = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocAccessibilityTagsDeclarations.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsdocAccessibilityTagsDeclarations.errors.txt.diff deleted file mode 100644 index 1813c006bb..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocAccessibilityTagsDeclarations.errors.txt.diff +++ /dev/null @@ -1,51 +0,0 @@ ---- old.jsdocAccessibilityTagsDeclarations.errors.txt -+++ new.jsdocAccessibilityTagsDeclarations.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'jsdocAccessibilityTagDeclarations.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'jsdocAccessibilityTagDeclarations.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== jsdocAccessibilityTagDeclarations.js (0 errors) ==== -+ class Protected { -+ /** @protected */ -+ constructor(c) { -+ /** @protected */ -+ this.c = c -+ } -+ /** @protected */ -+ m() { -+ return this.c -+ } -+ /** @protected */ -+ get p() { return this.c } -+ /** @protected */ -+ set p(value) { this.c = value } -+ } -+ -+ class Private { -+ /** @private */ -+ constructor(c) { -+ /** @private */ -+ this.c = c -+ } -+ /** @private */ -+ m() { -+ return this.c -+ } -+ /** @private */ -+ get p() { return this.c } -+ /** @private */ -+ set p(value) { this.c = value } -+ } -+ -+ // https://github.com/microsoft/TypeScript/issues/38401 -+ class C { -+ constructor(/** @public */ x, /** @protected */ y, /** @private */ z) { -+ } -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocLiteral.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsdocLiteral.errors.txt.diff deleted file mode 100644 index d22e40ecc7..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocLiteral.errors.txt.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.jsdocLiteral.errors.txt -+++ new.jsdocLiteral.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'in.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'in.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== in.js (0 errors) ==== -+ /** -+ * @param {'literal'} p1 -+ * @param {"literal"} p2 -+ * @param {'literal' | 'other'} p3 -+ * @param {'literal' | number} p4 -+ * @param {12 | true | 'str'} p5 -+ */ -+ function f(p1, p2, p3, p4, p5) { -+ return p1 + p2 + p3 + p4 + p5 + '.'; -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocLiteral.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsdocLiteral.types.diff deleted file mode 100644 index 1419b46639..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocLiteral.types.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.jsdocLiteral.types -+++ new.jsdocLiteral.types -@@= skipped -8, +8 lines =@@ - * @param {12 | true | 'str'} p5 - */ - function f(p1, p2, p3, p4, p5) { -->f : (p1: "literal", p2: "literal", p3: "literal" | "other", p4: "literal" | number, p5: 12 | true | "str") => string -+>f : (p1: "literal", p2: "literal", p3: "literal" | "other", p4: number | "literal", p5: "str" | 12 | true) => string - >p1 : "literal" - >p2 : "literal" - >p3 : "literal" | "other" \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocNeverUndefinedNull.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsdocNeverUndefinedNull.errors.txt.diff deleted file mode 100644 index 4bf87aedf5..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocNeverUndefinedNull.errors.txt.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.jsdocNeverUndefinedNull.errors.txt -+++ new.jsdocNeverUndefinedNull.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'in.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'in.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== in.js (0 errors) ==== -+ /** -+ * @param {never} p1 -+ * @param {undefined} p2 -+ * @param {null} p3 -+ * @returns {void} nothing -+ */ -+ function f(p1, p2, p3) { -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReadonlyDeclarations.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReadonlyDeclarations.errors.txt.diff deleted file mode 100644 index 97cdecef25..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReadonlyDeclarations.errors.txt.diff +++ /dev/null @@ -1,42 +0,0 @@ ---- old.jsdocReadonlyDeclarations.errors.txt -+++ new.jsdocReadonlyDeclarations.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'jsdocReadonlyDeclarations.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+jsdocReadonlyDeclarations.js(14,1): error TS2554: Expected 1 arguments, but got 0. -+ -+ -+!!! error TS5055: Cannot write file 'jsdocReadonlyDeclarations.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== jsdocReadonlyDeclarations.js (1 errors) ==== -+ class C { -+ /** @readonly */ -+ x = 6 -+ /** @readonly */ -+ constructor(n) { -+ this.x = n -+ /** -+ * @readonly -+ * @type {number} -+ */ -+ this.y = n -+ } -+ } -+ new C().x -+ ~~~~~~~ -+!!! error TS2554: Expected 1 arguments, but got 0. -+!!! related TS6210 jsdocReadonlyDeclarations.js:5:17: An argument for 'n' was not provided. -+ -+ function F() { -+ /** @readonly */ -+ this.z = 1 -+ } -+ -+ // https://github.com/microsoft/TypeScript/issues/38401 -+ class D { -+ constructor(/** @readonly */ x) {} -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReadonlyDeclarations.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReadonlyDeclarations.types.diff deleted file mode 100644 index e2067902d4..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReadonlyDeclarations.types.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.jsdocReadonlyDeclarations.types -+++ new.jsdocReadonlyDeclarations.types -@@= skipped -38, +38 lines =@@ - >x : 6 - - function F() { -->F : typeof F -+>F : () => void - - /** @readonly */ - this.z = 1 - >this.z = 1 : 1 - >this.z : any -->this : this -+>this : any - >z : any - >1 : 1 - } \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReturnTag1.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReturnTag1.errors.txt.diff deleted file mode 100644 index 10985f75b2..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReturnTag1.errors.txt.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.jsdocReturnTag1.errors.txt -+++ new.jsdocReturnTag1.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'returns.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== returns.js (0 errors) ==== -+ /** -+ * @returns {string} This comment is not currently exposed -+ */ -+ function f() { -+ return 5; -+ } -+ -+ /** -+ * @returns {string=} This comment is not currently exposed -+ */ -+ function f1() { -+ return 5; -+ } -+ -+ /** -+ * @returns {string|number} This comment is not currently exposed -+ */ -+ function f2() { -+ return 5 || "hello"; -+ } -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReturnTag1.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReturnTag1.types.diff deleted file mode 100644 index 355cf8c74a..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/jsdocReturnTag1.types.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.jsdocReturnTag1.types -+++ new.jsdocReturnTag1.types -@@= skipped -14, +14 lines =@@ - * @returns {string=} This comment is not currently exposed - */ - function f1() { -->f1 : () => string | undefined -+>f1 : () => string - - return 5; - >5 : 5 \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/methodsReturningThis.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/methodsReturningThis.errors.txt.diff deleted file mode 100644 index 2aa9ea3027..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/methodsReturningThis.errors.txt.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.methodsReturningThis.errors.txt -+++ new.methodsReturningThis.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'input.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'input.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== input.js (0 errors) ==== -+ function Class() -+ { -+ } -+ -+ // error: 'Class' doesn't have property 'notPresent' -+ Class.prototype.containsError = function () { return this.notPresent; }; -+ -+ // lots of methods that return this, which caused out-of-memory in #9527 -+ Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; }; -+ Class.prototype.m2 = function (x, y) { return this; }; -+ Class.prototype.m3 = function (x, y) { return this; }; -+ Class.prototype.m4 = function (angle) { return this; }; -+ Class.prototype.m5 = function (matrix) { return this; }; -+ Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; }; -+ Class.prototype.m7 = function(matrix) { return this; }; -+ Class.prototype.m8 = function() { return this; }; -+ Class.prototype.m9 = function () { return this; }; -+ -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/methodsReturningThis.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/methodsReturningThis.types.diff deleted file mode 100644 index b1563c3a44..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/methodsReturningThis.types.diff +++ /dev/null @@ -1,173 +0,0 @@ ---- old.methodsReturningThis.types -+++ new.methodsReturningThis.types -@@= skipped -1, +1 lines =@@ - - === input.js === - function Class() -->Class : typeof Class -+>Class : () => void - { - } - -@@= skipped -9, +9 lines =@@ - >Class.prototype.containsError = function () { return this.notPresent; } : () => any - >Class.prototype.containsError : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >containsError : any - >function () { return this.notPresent; } : () => any -->this.notPresent : error -->this : this -+>this.notPresent : any -+>this : any - >notPresent : any - - // lots of methods that return this, which caused out-of-memory in #9527 - Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; }; -->Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; } : (a: any, b: any, c: any, d: any, tx: any, ty: any) => this -+>Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; } : (a: any, b: any, c: any, d: any, tx: any, ty: any) => any - >Class.prototype.m1 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m1 : any -->function (a, b, c, d, tx, ty) { return this; } : (a: any, b: any, c: any, d: any, tx: any, ty: any) => this -+>function (a, b, c, d, tx, ty) { return this; } : (a: any, b: any, c: any, d: any, tx: any, ty: any) => any - >a : any - >b : any - >c : any - >d : any - >tx : any - >ty : any -->this : this -+>this : any - - Class.prototype.m2 = function (x, y) { return this; }; -->Class.prototype.m2 = function (x, y) { return this; } : (x: any, y: any) => this -+>Class.prototype.m2 = function (x, y) { return this; } : (x: any, y: any) => any - >Class.prototype.m2 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m2 : any -->function (x, y) { return this; } : (x: any, y: any) => this -+>function (x, y) { return this; } : (x: any, y: any) => any - >x : any - >y : any -->this : this -+>this : any - - Class.prototype.m3 = function (x, y) { return this; }; -->Class.prototype.m3 = function (x, y) { return this; } : (x: any, y: any) => this -+>Class.prototype.m3 = function (x, y) { return this; } : (x: any, y: any) => any - >Class.prototype.m3 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m3 : any -->function (x, y) { return this; } : (x: any, y: any) => this -+>function (x, y) { return this; } : (x: any, y: any) => any - >x : any - >y : any -->this : this -+>this : any - - Class.prototype.m4 = function (angle) { return this; }; -->Class.prototype.m4 = function (angle) { return this; } : (angle: any) => this -+>Class.prototype.m4 = function (angle) { return this; } : (angle: any) => any - >Class.prototype.m4 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m4 : any -->function (angle) { return this; } : (angle: any) => this -+>function (angle) { return this; } : (angle: any) => any - >angle : any -->this : this -+>this : any - - Class.prototype.m5 = function (matrix) { return this; }; -->Class.prototype.m5 = function (matrix) { return this; } : (matrix: any) => this -+>Class.prototype.m5 = function (matrix) { return this; } : (matrix: any) => any - >Class.prototype.m5 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m5 : any -->function (matrix) { return this; } : (matrix: any) => this -+>function (matrix) { return this; } : (matrix: any) => any - >matrix : any -->this : this -+>this : any - - Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; }; -->Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; } : (x: any, y: any, pivotX: any, pivotY: any, scaleX: any, scaleY: any, rotation: any, skewX: any, skewY: any) => this -+>Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; } : (x: any, y: any, pivotX: any, pivotY: any, scaleX: any, scaleY: any, rotation: any, skewX: any, skewY: any) => any - >Class.prototype.m6 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m6 : any -->function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; } : (x: any, y: any, pivotX: any, pivotY: any, scaleX: any, scaleY: any, rotation: any, skewX: any, skewY: any) => this -+>function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; } : (x: any, y: any, pivotX: any, pivotY: any, scaleX: any, scaleY: any, rotation: any, skewX: any, skewY: any) => any - >x : any - >y : any - >pivotX : any -@@= skipped -88, +88 lines =@@ - >rotation : any - >skewX : any - >skewY : any -->this : this -+>this : any - - Class.prototype.m7 = function(matrix) { return this; }; -->Class.prototype.m7 = function(matrix) { return this; } : (matrix: any) => this -+>Class.prototype.m7 = function(matrix) { return this; } : (matrix: any) => any - >Class.prototype.m7 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m7 : any -->function(matrix) { return this; } : (matrix: any) => this -+>function(matrix) { return this; } : (matrix: any) => any - >matrix : any -->this : this -+>this : any - - Class.prototype.m8 = function() { return this; }; -->Class.prototype.m8 = function() { return this; } : () => this -+>Class.prototype.m8 = function() { return this; } : () => any - >Class.prototype.m8 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m8 : any -->function() { return this; } : () => this -->this : this -+>function() { return this; } : () => any -+>this : any - - Class.prototype.m9 = function () { return this; }; -->Class.prototype.m9 = function () { return this; } : () => this -+>Class.prototype.m9 = function () { return this; } : () => any - >Class.prototype.m9 : any - >Class.prototype : any -->Class : typeof Class -+>Class : () => void - >prototype : any - >m9 : any -->function () { return this; } : () => this -->this : this -+>function () { return this; } : () => any -+>this : any - diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/moduleExportAliasImported.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/moduleExportAliasImported.types.diff index e7111af3a3..23aa34c07b 100644 --- a/testdata/baselines/reference/submoduleAccepted/conformance/moduleExportAliasImported.types.diff +++ b/testdata/baselines/reference/submoduleAccepted/conformance/moduleExportAliasImported.types.diff @@ -30,6 +30,6 @@ === importer.js === import('./bug28014') -->import('./bug28014') : Promise<{ (): void; version: 1; }> +->import('./bug28014') : Promise<{ version: 1; default: { (): void; version: 1; }; }> +>import('./bug28014') : Promise<() => void> >'./bug28014' : "./bug28014" diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/multipleDeclarations.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/multipleDeclarations.errors.txt.diff deleted file mode 100644 index e0b3dd7b2b..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/multipleDeclarations.errors.txt.diff +++ /dev/null @@ -1,48 +0,0 @@ ---- old.multipleDeclarations.errors.txt -+++ new.multipleDeclarations.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'input.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'input.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== input.js (0 errors) ==== -+ function C() { -+ this.m = null; -+ } -+ C.prototype.m = function() { -+ this.nothing(); -+ } -+ class X { -+ constructor() { -+ this.m = this.m.bind(this); -+ this.mistake = 'frankly, complete nonsense'; -+ } -+ m() { -+ } -+ mistake() { -+ } -+ } -+ let x = new X(); -+ X.prototype.mistake = false; -+ x.m(); -+ x.mistake; -+ class Y { -+ mistake() { -+ } -+ m() { -+ } -+ constructor() { -+ this.m = this.m.bind(this); -+ this.mistake = 'even more nonsense'; -+ } -+ } -+ Y.prototype.mistake = true; -+ let y = new Y(); -+ y.m(); -+ y.mistake(); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/multipleDeclarations.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/multipleDeclarations.types.diff deleted file mode 100644 index d714127fa7..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/multipleDeclarations.types.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.multipleDeclarations.types -+++ new.multipleDeclarations.types -@@= skipped -1, +1 lines =@@ - - === input.js === - function C() { -->C : typeof C -+>C : () => void - - this.m = null; - >this.m = null : null - >this.m : any -->this : this -+>this : any - >m : any - } - C.prototype.m = function() { - >C.prototype.m = function() { this.nothing();} : () => void - >C.prototype.m : any - >C.prototype : any -->C : typeof C -+>C : () => void - >prototype : any - >m : any - >function() { this.nothing();} : () => void - - this.nothing(); -->this.nothing() : error -->this.nothing : error -->this : this -+>this.nothing() : any -+>this.nothing : any -+>this : any - >nothing : any - } - class X { \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/node10AlternateResult_noResolution.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/node10AlternateResult_noResolution.errors.txt.diff deleted file mode 100644 index a6775022ac..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/node10AlternateResult_noResolution.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.node10AlternateResult_noResolution.errors.txt -+++ new.node10AlternateResult_noResolution.errors.txt -@@= skipped -0, +0 lines =@@ --error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. --/index.ts(1,21): error TS2307: Cannot find module 'pkg' or its corresponding type declarations. -- There are types at '/node_modules/pkg/definitely-not-index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. -- -- --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -+/index.ts(1,10): error TS2305: Module '"pkg"' has no exported member 'pkg'. -+ -+ - ==== /node_modules/pkg/package.json (0 errors) ==== - { - "name": "pkg", -@@= skipped -17, +14 lines =@@ - - ==== /index.ts (1 errors) ==== - import { pkg } from "pkg"; -- ~~~~~ --!!! error TS2307: Cannot find module 'pkg' or its corresponding type declarations. --!!! error TS2307: There are types at '/node_modules/pkg/definitely-not-index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. -+ ~~~ -+!!! error TS2305: Module '"pkg"' has no exported member 'pkg'. - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/node10Alternateresult_noTypes.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/node10Alternateresult_noTypes.errors.txt.diff deleted file mode 100644 index 7a0400b9f7..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/node10Alternateresult_noTypes.errors.txt.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.node10Alternateresult_noTypes.errors.txt -+++ new.node10Alternateresult_noTypes.errors.txt -@@= skipped -0, +0 lines =@@ --error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. --error TS6504: File '/node_modules/pkg/untyped.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 --/index.ts(1,21): error TS7016: Could not find a declaration file for module 'pkg'. '/node_modules/pkg/untyped.js' implicitly has an 'any' type. -- There are types at '/node_modules/pkg/definitely-not-index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. -- -- --!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. --!!! error TS6504: File '/node_modules/pkg/untyped.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 -+/index.ts(1,10): error TS2305: Module '"pkg"' has no exported member 'pkg'. -+ -+ - ==== /node_modules/pkg/package.json (0 errors) ==== - { - "name": "pkg", -@@= skipped -27, +18 lines =@@ - - ==== /index.ts (1 errors) ==== - import { pkg } from "pkg"; -- ~~~~~ --!!! error TS7016: Could not find a declaration file for module 'pkg'. '/node_modules/pkg/untyped.js' implicitly has an 'any' type. --!!! error TS7016: There are types at '/node_modules/pkg/definitely-not-index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. -+ ~~~ -+!!! error TS2305: Module '"pkg"' has no exported member 'pkg'. - \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/topLevelThisAssignment.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/topLevelThisAssignment.errors.txt.diff deleted file mode 100644 index 938aa0e9c2..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/topLevelThisAssignment.errors.txt.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.topLevelThisAssignment.errors.txt -+++ new.topLevelThisAssignment.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+a.js(3,1): error TS2304: Cannot find name 'a'. -+b.js(2,1): error TS2304: Cannot find name 'a'. -+ -+ -+!!! error TS5055: Cannot write file 'a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5055: Cannot write file 'b.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== a.js (1 errors) ==== -+ this.a = 10; -+ this.a; -+ a; -+ ~ -+!!! error TS2304: Cannot find name 'a'. -+ -+==== b.js (1 errors) ==== -+ this.a; -+ a; -+ ~ -+!!! error TS2304: Cannot find name 'a'. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/topLevelThisAssignment.types.diff b/testdata/baselines/reference/submoduleAccepted/conformance/topLevelThisAssignment.types.diff deleted file mode 100644 index 6f0038f894..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/topLevelThisAssignment.types.diff +++ /dev/null @@ -1,35 +0,0 @@ ---- old.topLevelThisAssignment.types -+++ new.topLevelThisAssignment.types -@@= skipped -2, +2 lines =@@ - === a.js === - this.a = 10; - >this.a = 10 : 10 -->this.a : number -+>this.a : any - >this : typeof globalThis -->a : number -+>a : any - >10 : 10 - - this.a; -->this.a : number -+>this.a : any - >this : typeof globalThis -->a : number -+>a : any - - a; -->a : number -+>a : any - - === b.js === - this.a; -->this.a : number -+>this.a : any - >this : typeof globalThis -->a : number -+>a : any - - a; -->a : number -+>a : any diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/typeSatisfaction_js.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/typeSatisfaction_js.errors.txt.diff deleted file mode 100644 index 8dce7333c0..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/typeSatisfaction_js.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.typeSatisfaction_js.errors.txt -+++ new.typeSatisfaction_js.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - /src/a.js(1,29): error TS8037: Type satisfaction expressions can only be used in TypeScript files. - - -+!!! error TS5055: Cannot write file '/src/a.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== /src/a.js (1 errors) ==== - var v = undefined satisfies 1; - ~ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/typesVersions.emptyTypes.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/typesVersions.emptyTypes.errors.txt.diff deleted file mode 100644 index d98c7e28e9..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/typesVersions.emptyTypes.errors.txt.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.typesVersions.emptyTypes.errors.txt -+++ new.typesVersions.emptyTypes.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+/b/user.ts(1,19): error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ -+ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+==== /a/package.json (0 errors) ==== -+ { -+ "types": "", -+ "typesVersions": { -+ ">=3.1.0-0": { "*" : ["ts3.1/*"] } -+ } -+ } -+ -+==== /a/ts3.1/index.d.ts (0 errors) ==== -+ export const a = 0; -+ -+==== /b/user.ts (1 errors) ==== -+ import { a } from "a"; -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/typesVersions.justIndex.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/typesVersions.justIndex.errors.txt.diff deleted file mode 100644 index f743bc2658..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/typesVersions.justIndex.errors.txt.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.typesVersions.justIndex.errors.txt -+++ new.typesVersions.justIndex.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+/b/user.ts(1,19): error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ -+ -+!!! error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration. -+==== /a/package.json (0 errors) ==== -+ { -+ "typesVersions": { -+ ">=3.1.0-0": { "*" : ["ts3.1/*"] } -+ } -+ } -+ -+==== /a/ts3.1/index.d.ts (0 errors) ==== -+ export const a = 0; -+ -+==== /b/user.ts (1 errors) ==== -+ import { a } from "a"; -+ ~~~ -+!!! error TS2307: Cannot find module 'a' or its corresponding type declarations. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/uniqueSymbolsDeclarationsInJs.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/uniqueSymbolsDeclarationsInJs.errors.txt.diff deleted file mode 100644 index ec745b980a..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/uniqueSymbolsDeclarationsInJs.errors.txt.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.uniqueSymbolsDeclarationsInJs.errors.txt -+++ new.uniqueSymbolsDeclarationsInJs.errors.txt -@@= skipped -0, +0 lines =@@ -- -+error TS5055: Cannot write file 'uniqueSymbolsDeclarationsInJs.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+ -+ -+!!! error TS5055: Cannot write file 'uniqueSymbolsDeclarationsInJs.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. -+==== uniqueSymbolsDeclarationsInJs.js (0 errors) ==== -+ // classes -+ class C { -+ /** -+ * @readonly -+ */ -+ static readonlyStaticCall = Symbol(); -+ /** -+ * @type {unique symbol} -+ * @readonly -+ */ -+ static readonlyStaticType; -+ /** -+ * @type {unique symbol} -+ * @readonly -+ */ -+ static readonlyStaticTypeAndCall = Symbol(); -+ static readwriteStaticCall = Symbol(); -+ -+ /** -+ * @readonly -+ */ -+ readonlyCall = Symbol(); -+ readwriteCall = Symbol(); -+ } -+ -+ /** @type {unique symbol} */ -+ const a = Symbol(); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submoduleAccepted/conformance/uniqueSymbolsDeclarationsInJsErrors.errors.txt.diff b/testdata/baselines/reference/submoduleAccepted/conformance/uniqueSymbolsDeclarationsInJsErrors.errors.txt.diff deleted file mode 100644 index 7896e7b1e6..0000000000 --- a/testdata/baselines/reference/submoduleAccepted/conformance/uniqueSymbolsDeclarationsInJsErrors.errors.txt.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.uniqueSymbolsDeclarationsInJsErrors.errors.txt -+++ new.uniqueSymbolsDeclarationsInJsErrors.errors.txt -@@= skipped -0, +0 lines =@@ -+error TS5055: Cannot write file 'uniqueSymbolsDeclarationsInJsErrors.js' because it would overwrite input file. -+ Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - uniqueSymbolsDeclarationsInJsErrors.js(5,12): error TS1331: A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. - uniqueSymbolsDeclarationsInJsErrors.js(14,12): error TS1331: A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. - - -+!!! error TS5055: Cannot write file 'uniqueSymbolsDeclarationsInJsErrors.js' because it would overwrite input file. -+!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -+!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration. - ==== uniqueSymbolsDeclarationsInJsErrors.js (2 errors) ==== - class C { - /** \ No newline at end of file diff --git a/testdata/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js b/testdata/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js deleted file mode 100644 index 7172bf4267..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js +++ /dev/null @@ -1,1609 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/project/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/project/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true - } -} - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1251 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/d.ts -Signatures:: - - -Edit [0]:: with sourceMap - -tsgo --build --verbose --sourceMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *new* -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *new* -{"version":3,"file":"b.js","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *new* -{"version":3,"file":"c.js","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *new* -{"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"options":{"sourceMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1280 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: should re-emit only js so they dont contain sourcemap - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; - -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1251 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: with declaration, emit Dts and should not emit js - -tsgo --build --verbose --declaration -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/project/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1730 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts -(stored at emit) /home/src/workspaces/project/c.ts -(stored at emit) /home/src/workspaces/project/d.ts - - -Edit [3]:: with declaration and declarationMap - -tsgo --build --verbose --declaration --declarationMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = 10; -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/a.d.ts.map] *new* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/b.d.ts] *modified* -export declare const b = 10; -//# sourceMappingURL=b.d.ts.map -//// [/home/src/workspaces/project/b.d.ts.map] *new* -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/c.d.ts] *modified* -export declare const c = 10; -//# sourceMappingURL=c.d.ts.map -//// [/home/src/workspaces/project/c.d.ts.map] *new* -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} -//// [/home/src/workspaces/project/d.d.ts] *modified* -export declare const d = 10; -//# sourceMappingURL=d.d.ts.map -//// [/home/src/workspaces/project/d.d.ts.map] *new* -{"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1752 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: local change -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = 10;const aLocal = 100; - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1700 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [6]:: with declaration and declarationMap - -tsgo --build --verbose --declaration --declarationMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1753 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [8]:: with inlineSourceMap - -tsgo --build --verbose --inlineSourceMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDIn0= -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDIn0= -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"inlineSourceMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "inlineSourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1735 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [9]:: with sourceMap - -tsgo --build --verbose --sourceMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *modified* -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,GAAG,CAAC"} -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"sourceMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1729 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: emit js files - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; - -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1700 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: with declaration and declarationMap - -tsgo --build --verbose --declaration --declarationMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1753 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: with declaration and declarationMap, should not re-emit - -tsgo --build --verbose --declaration --declarationMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/commandLine/different-options.js b/testdata/baselines/reference/tsbuild/commandLine/different-options.js deleted file mode 100644 index 0dead645da..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/different-options.js +++ /dev/null @@ -1,1316 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/project/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/project/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/project/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1762 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/d.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts -(stored at emit) /home/src/workspaces/project/c.ts -(stored at emit) /home/src/workspaces/project/d.ts - - -Edit [0]:: with sourceMap - -tsgo --build --verbose --sourceMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *new* -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *new* -{"version":3,"file":"b.js","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *new* -{"version":3,"file":"c.js","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *new* -{"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1779 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: should re-emit only js so they dont contain sourcemap - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; - -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1762 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: with declaration should not emit anything - -tsgo --build --verbose --declaration -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: no change - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [4]:: with declaration and declarationMap - -tsgo --build --verbose --declaration --declarationMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = 10; -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/a.d.ts.map] *new* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/b.d.ts] *modified* -export declare const b = 10; -//# sourceMappingURL=b.d.ts.map -//// [/home/src/workspaces/project/b.d.ts.map] *new* -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/c.d.ts] *modified* -export declare const c = 10; -//# sourceMappingURL=c.d.ts.map -//// [/home/src/workspaces/project/c.d.ts.map] *new* -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} -//// [/home/src/workspaces/project/d.d.ts] *modified* -export declare const d = 10; -//# sourceMappingURL=d.d.ts.map -//// [/home/src/workspaces/project/d.d.ts.map] *new* -{"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1803 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: should re-emit only dts so they dont contain sourcemap - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = 10; - -//// [/home/src/workspaces/project/b.d.ts] *modified* -export declare const b = 10; - -//// [/home/src/workspaces/project/c.d.ts] *modified* -export declare const c = 10; - -//// [/home/src/workspaces/project/d.d.ts] *modified* -export declare const d = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1762 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [6]:: with emitDeclarationOnly should not emit anything - -tsgo --build --verbose --emitDeclarationOnly -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [7]:: no change - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [8]:: local change -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = 10;const aLocal = 100; - -tsgo --build --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1763 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [9]:: with declaration should not emit anything - -tsgo --build --verbose --declaration -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [10]:: with inlineSourceMap - -tsgo --build --verbose --inlineSourceMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDIn0= -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDIn0= -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"inlineSourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "inlineSourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1786 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: with sourceMap - -tsgo --build --verbose --sourceMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *modified* -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,GAAG,CAAC"} -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1780 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js deleted file mode 100644 index 878d6fc9d9..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js +++ /dev/null @@ -1,1085 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project1/src/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/solution/project1/src/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/solution/project1/src/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/solution/project1/src/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true, "declaration": true, "emitDeclarationOnly": true } -} -//// [/home/src/workspaces/solution/project2/src/e.ts] *new* -export const e = 10; -//// [/home/src/workspaces/solution/project2/src/f.ts] *new* -import { a } from "../../project1/src/a"; export const f = a; -//// [/home/src/workspaces/solution/project2/src/g.ts] *new* -import { b } from "../../project1/src/b"; export const g = b; -//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true, "declaration": true, "emitDeclarationOnly": true }, - "references": [{ "path": "../../project1/src" }] -} - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1757 -} -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* -export declare const e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* -export declare const f = 10; - -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* -export declare const g = 10; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "size": 1825 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project1/src/a.ts -(stored at emit) /home/src/workspaces/solution/project1/src/b.ts -(stored at emit) /home/src/workspaces/solution/project1/src/c.ts -(stored at emit) /home/src/workspaces/solution/project1/src/d.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project2/src/e.ts -(stored at emit) /home/src/workspaces/solution/project2/src/f.ts -(stored at emit) /home/src/workspaces/solution/project2/src/g.ts - - -Edit [0]:: no change - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [1]:: change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10; - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1771 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [2]:: emit js files - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; -const aa = 10; - -//// [/home/src/workspaces/solution/project1/src/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/solution/project1/src/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/solution/project1/src/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":false,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": false, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1772 -} -//// [/home/src/workspaces/solution/project2/src/e.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.e = void 0; -exports.e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = void 0; -const a_1 = require("../../project1/src/a"); -exports.f = a_1.a; - -//// [/home/src/workspaces/solution/project2/src/g.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.g = void 0; -const b_1 = require("../../project1/src/b"); -exports.g = b_1.b; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":false,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "emitDeclarationOnly": false, - "declaration": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "size": 1826 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [3]:: no change - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [4]:: no change run with js emit - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [5]:: js emit with change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const blocal = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const blocal = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":false,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": false, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1790 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js deleted file mode 100644 index 084f115e82..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js +++ /dev/null @@ -1,535 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project1/src/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/solution/project1/src/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/solution/project1/src/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/solution/project1/src/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* -{ - "compilerOptions": { "declaration": true, "emitDeclarationOnly": true } -} -//// [/home/src/workspaces/solution/project2/src/e.ts] *new* -export const e = 10; -//// [/home/src/workspaces/solution/project2/src/f.ts] *new* -import { a } from "../../project1/src/a"; export const f = a; -//// [/home/src/workspaces/solution/project2/src/g.ts] *new* -import { b } from "../../project1/src/b"; export const g = b; -//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* -{ - "compilerOptions": { "declaration": true, "emitDeclarationOnly": true }, - "references": [{ "path": "../../project1/src" }] -} - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts","./d.ts"]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - }, - { - "files": [ - "./d.ts" - ], - "original": "./d.ts" - } - ], - "size": 72 -} -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* -export declare const e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* -export declare const f = 10; - -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* -export declare const g = 10; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["./e.ts","./f.ts","./g.ts"]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": "./e.ts" - }, - { - "files": [ - "./f.ts" - ], - "original": "./f.ts" - }, - { - "files": [ - "./g.ts" - ], - "original": "./g.ts" - } - ], - "size": 77 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/a.d.ts' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [1]:: change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10; - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [2]:: emit js files - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/a.js' does not exist - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; -const aa = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.e = void 0; -exports.e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = void 0; -const a_1 = require("../../project1/src/a"); -exports.f = a_1.a; - -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.g = void 0; -const b_1 = require("../../project1/src/b"); -exports.g = b_1.b; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [3]:: no change - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/a.d.ts' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [4]:: no change run with js emit - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/a.js' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [5]:: js emit with change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const blocal = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const blocal = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js deleted file mode 100644 index af6c17224a..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js +++ /dev/null @@ -1,958 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project1/src/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/solution/project1/src/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/solution/project1/src/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/solution/project1/src/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true, "emitDeclarationOnly": true } -} -//// [/home/src/workspaces/solution/project2/src/e.ts] *new* -export const e = 10; -//// [/home/src/workspaces/solution/project2/src/f.ts] *new* -import { a } from "../../project1/src/a"; export const f = a; -//// [/home/src/workspaces/solution/project2/src/g.ts] *new* -import { b } from "../../project1/src/b"; export const g = b; -//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true, "emitDeclarationOnly": true }, - "references": [{ "path": "../../project1/src" }] -} - -tsgo --b project2/src --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1789 -} -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* -export declare const e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* -export declare const f = 10; - -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* -export declare const g = 10; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "latestChangedDtsFile": "./g.d.ts", - "size": 1800 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project1/src/a.ts -(stored at emit) /home/src/workspaces/solution/project1/src/b.ts -(stored at emit) /home/src/workspaces/solution/project1/src/c.ts -(stored at emit) /home/src/workspaces/solution/project1/src/d.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project2/src/e.ts -*refresh* /home/src/workspaces/solution/project1/src/a.d.ts -*refresh* /home/src/workspaces/solution/project2/src/f.ts -*refresh* /home/src/workspaces/solution/project1/src/b.d.ts -*refresh* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project2/src/e.ts -(stored at emit) /home/src/workspaces/solution/project2/src/f.ts -(stored at emit) /home/src/workspaces/solution/project2/src/g.ts - - -Edit [0]:: no change - -tsgo --b project2/src --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' - - - - -Edit [1]:: change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10; - -tsgo --b project2/src --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1803 -} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts - - -Edit [2]:: emit js files - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; -const aa = 10; - -//// [/home/src/workspaces/solution/project1/src/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/solution/project1/src/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/solution/project1/src/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":false},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": false - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1804 -} -//// [/home/src/workspaces/solution/project2/src/e.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.e = void 0; -exports.e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = void 0; -const a_1 = require("../../project1/src/a"); -exports.f = a_1.a; - -//// [/home/src/workspaces/solution/project2/src/g.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.g = void 0; -const b_1 = require("../../project1/src/b"); -exports.g = b_1.b; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":false},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": false - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "latestChangedDtsFile": "./g.d.ts", - "size": 1801 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: no change - -tsgo --b project2/src --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' - - - - -Edit [4]:: no change run with js emit - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' - - - - -Edit [5]:: js emit with change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const blocal = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly false -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const blocal = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":false},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": false - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1822 -} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js deleted file mode 100644 index da82286972..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js +++ /dev/null @@ -1,2068 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project1/src/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/solution/project1/src/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/solution/project1/src/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/solution/project1/src/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true, "declaration": true } -} -//// [/home/src/workspaces/solution/project2/src/e.ts] *new* -export const e = 10; -//// [/home/src/workspaces/solution/project2/src/f.ts] *new* -import { a } from "../../project1/src/a"; export const f = a; -//// [/home/src/workspaces/solution/project2/src/g.ts] *new* -import { b } from "../../project1/src/b"; export const g = b; -//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true, "declaration": true }, - "references": [{ "path": "../../project1/src" }] -} - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1757 -} -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* -export declare const e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* -export declare const f = 10; - -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* -export declare const g = 10; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "size": 1825 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project1/src/a.ts -(stored at emit) /home/src/workspaces/solution/project1/src/b.ts -(stored at emit) /home/src/workspaces/solution/project1/src/c.ts -(stored at emit) /home/src/workspaces/solution/project1/src/d.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project2/src/e.ts -(stored at emit) /home/src/workspaces/solution/project2/src/f.ts -(stored at emit) /home/src/workspaces/solution/project2/src/g.ts - - -Edit [0]:: no change - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [1]:: local change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1771 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [2]:: non local change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *modified* -export declare const a = 10; -export declare const aaa = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1825 -} -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "size": 1857 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts -(computed .d.ts) /home/src/workspaces/solution/project1/src/c.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(used version) /home/src/workspaces/solution/project1/src/a.d.ts -(computed .d.ts) /home/src/workspaces/solution/project2/src/f.ts - - -Edit [3]:: emit js files - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.aaa = exports.a = void 0; -exports.a = 10; -const aLocal = 10; -const aa = 10; -exports.aaa = 10; - -//// [/home/src/workspaces/solution/project1/src/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/solution/project1/src/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/solution/project1/src/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1798 -} -//// [/home/src/workspaces/solution/project2/src/e.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.e = void 0; -exports.e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = void 0; -const a_1 = require("../../project1/src/a"); -exports.f = a_1.a; - -//// [/home/src/workspaces/solution/project2/src/g.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.g = void 0; -const b_1 = require("../../project1/src/b"); -exports.g = b_1.b; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "size": 1830 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [4]:: no change - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [5]:: js emit with change without emitDeclarationOnly -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10; - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const alocal = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1816 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [6]:: local change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1859 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [7]:: non local change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* -export declare const b = 10; -export declare const aaaaa = 10; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","signature":"b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1917 -} -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "emitDeclarationOnly": true, - "declaration": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "size": 1891 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts -(computed .d.ts) /home/src/workspaces/solution/project1/src/d.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(used version) /home/src/workspaces/solution/project1/src/b.d.ts -(computed .d.ts) /home/src/workspaces/solution/project2/src/g.ts - - -Edit [8]:: js emit with change without emitDeclarationOnly -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10; - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* -export declare const b = 10; -export declare const aaaaa = 10; -export declare const a2 = 10; - -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a2 = exports.aaaaa = exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const alocal = 10; -const aaaa = 10; -exports.aaaaa = 10; -exports.a2 = 10; - -//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","signature":"c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1942 -} -//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "size": 1895 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts -(computed .d.ts) /home/src/workspaces/solution/project1/src/d.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(used version) /home/src/workspaces/solution/project1/src/b.d.ts -(computed .d.ts) /home/src/workspaces/solution/project2/src/g.ts diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js deleted file mode 100644 index 6818bc14ce..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js +++ /dev/null @@ -1,756 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project1/src/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/solution/project1/src/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/solution/project1/src/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/solution/project1/src/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* -{ - "compilerOptions": { "declaration": true } -} -//// [/home/src/workspaces/solution/project2/src/e.ts] *new* -export const e = 10; -//// [/home/src/workspaces/solution/project2/src/f.ts] *new* -import { a } from "../../project1/src/a"; export const f = a; -//// [/home/src/workspaces/solution/project2/src/g.ts] *new* -import { b } from "../../project1/src/b"; export const g = b; -//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* -{ - "compilerOptions": { "declaration": true }, - "references": [{ "path": "../../project1/src" }] -} - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts","./d.ts"]} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - }, - { - "files": [ - "./d.ts" - ], - "original": "./d.ts" - } - ], - "size": 72 -} -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* -export declare const e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* -export declare const f = 10; - -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* -export declare const g = 10; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["./e.ts","./f.ts","./g.ts"]} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./e.ts" - ], - "original": "./e.ts" - }, - { - "files": [ - "./f.ts" - ], - "original": "./f.ts" - }, - { - "files": [ - "./g.ts" - ], - "original": "./g.ts" - } - ], - "size": 77 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/a.d.ts' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [1]:: local change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [2]:: non local change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *modified* -export declare const a = 10; -export declare const aaa = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [3]:: emit js files - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/a.js' does not exist - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.aaa = exports.a = void 0; -exports.a = 10; -const aLocal = 10; -const aa = 10; -exports.aaa = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.e = void 0; -exports.e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = void 0; -const a_1 = require("../../project1/src/a"); -exports.f = a_1.a; - -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.g = void 0; -const b_1 = require("../../project1/src/b"); -exports.g = b_1.b; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [4]:: no change - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/a.d.ts' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [5]:: js emit with change without emitDeclarationOnly -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10; - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const alocal = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [6]:: local change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [7]:: non local change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* -export declare const b = 10; -export declare const aaaaa = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: - - -Edit [8]:: js emit with change without emitDeclarationOnly -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10; - -tsgo --b project2/src --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. - -3 "references": [{ "path": "../../project1/src" }] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project2/src/tsconfig.json:3 - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* -export declare const b = 10; -export declare const aaaaa = 10; -export declare const a2 = 10; - -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a2 = exports.aaaaa = exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const alocal = 10; -const aaaa = 10; -exports.aaaaa = 10; -exports.a2 = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/solution/project2/src/e.ts -*not cached* /home/src/workspaces/solution/project1/src/a.d.ts -*not cached* /home/src/workspaces/solution/project2/src/f.ts -*not cached* /home/src/workspaces/solution/project1/src/b.d.ts -*not cached* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js deleted file mode 100644 index 33c144bd20..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js +++ /dev/null @@ -1,1880 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project1/src/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/solution/project1/src/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/solution/project1/src/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/solution/project1/src/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true } -} -//// [/home/src/workspaces/solution/project2/src/e.ts] *new* -export const e = 10; -//// [/home/src/workspaces/solution/project2/src/f.ts] *new* -import { a } from "../../project1/src/a"; export const f = a; -//// [/home/src/workspaces/solution/project2/src/g.ts] *new* -import { b } from "../../project1/src/b"; export const g = b; -//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../../project1/src" }] -} - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1789 -} -//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* -export declare const e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* -export declare const f = 10; - -//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* -export declare const g = 10; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "latestChangedDtsFile": "./g.d.ts", - "size": 1800 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project1/src/a.ts -(stored at emit) /home/src/workspaces/solution/project1/src/b.ts -(stored at emit) /home/src/workspaces/solution/project1/src/c.ts -(stored at emit) /home/src/workspaces/solution/project1/src/d.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project2/src/e.ts -*refresh* /home/src/workspaces/solution/project1/src/a.d.ts -*refresh* /home/src/workspaces/solution/project2/src/f.ts -*refresh* /home/src/workspaces/solution/project1/src/b.d.ts -*refresh* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project2/src/e.ts -(stored at emit) /home/src/workspaces/solution/project2/src/f.ts -(stored at emit) /home/src/workspaces/solution/project2/src/g.ts - - -Edit [0]:: no change - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' - - - - -Edit [1]:: local change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1803 -} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts - - -Edit [2]:: non local change -//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* -export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output 'project2/src/tsconfig.tsbuildinfo' is older than input 'project1/src' - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/a.d.ts] *modified* -export declare const a = 10; -export declare const aaa = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./a.d.ts", - "size": 1857 -} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "latestChangedDtsFile": "./g.d.ts", - "size": 1832 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/a.ts -*refresh* /home/src/workspaces/solution/project1/src/c.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts -(computed .d.ts) /home/src/workspaces/solution/project1/src/c.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/a.d.ts -*refresh* /home/src/workspaces/solution/project2/src/f.ts -Signatures:: -(used version) /home/src/workspaces/solution/project1/src/a.d.ts -(computed .d.ts) /home/src/workspaces/solution/project2/src/f.ts - - -Edit [3]:: emit js files - -tsgo --b project2/src --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.aaa = exports.a = void 0; -exports.a = 10; -const aLocal = 10; -const aa = 10; -exports.aaa = 10; - -//// [/home/src/workspaces/solution/project1/src/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/solution/project1/src/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/solution/project1/src/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./a.d.ts", - "size": 1830 -} -//// [/home/src/workspaces/solution/project2/src/e.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.e = void 0; -exports.e = 10; - -//// [/home/src/workspaces/solution/project2/src/f.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = void 0; -const a_1 = require("../../project1/src/a"); -exports.f = a_1.a; - -//// [/home/src/workspaces/solution/project2/src/g.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.g = void 0; -const b_1 = require("../../project1/src/b"); -exports.g = b_1.b; - -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "latestChangedDtsFile": "./g.d.ts", - "size": 1805 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' - - - - -Edit [5]:: js emit with change without emitDeclarationOnly -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10; - -tsgo --b project2/src --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const alocal = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./a.d.ts", - "size": 1848 -} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts - - -Edit [6]:: local change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./a.d.ts", - "size": 1891 -} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts - - -Edit [7]:: non local change -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10; - -tsgo --b project2/src --verbose --emitDeclarationOnly -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output 'project2/src/tsconfig.tsbuildinfo' is older than input 'project1/src' - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* -export declare const b = 10; -export declare const aaaaa = 10; - -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","signature":"b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./b.d.ts", - "size": 1949 -} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "composite": true, - "emitDeclarationOnly": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "latestChangedDtsFile": "./g.d.ts", - "size": 1866 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts -(computed .d.ts) /home/src/workspaces/solution/project1/src/d.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.d.ts -*refresh* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(used version) /home/src/workspaces/solution/project1/src/b.d.ts -(computed .d.ts) /home/src/workspaces/solution/project2/src/g.ts - - -Edit [8]:: js emit with change without emitDeclarationOnly -//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* -export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10; - -tsgo --b project2/src --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project1/src/tsconfig.json - * project2/src/tsconfig.json - -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... - -//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* -export declare const b = 10; -export declare const aaaaa = 10; -export declare const a2 = 10; - -//// [/home/src/workspaces/solution/project1/src/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a2 = exports.aaaaa = exports.b = void 0; -exports.b = 10; -const bLocal = 10; -const alocal = 10; -const aaaa = 10; -exports.aaaaa = 10; -exports.a2 = 10; - -//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","signature":"c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./b.d.ts", - "size": 1974 -} -//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} -//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./e.ts" - ], - "original": 2 - }, - { - "files": [ - "./f.ts" - ], - "original": 4 - }, - { - "files": [ - "./g.ts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.d.ts", - "./e.ts", - "../../project1/src/a.d.ts", - "./f.ts", - "../../project1/src/b.d.ts", - "./g.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./e.ts", - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", - "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/a.d.ts", - "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./f.ts", - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../project1/src/b.d.ts", - "version": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./g.ts", - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../project1/src/a.d.ts" - ], - [ - "../../project1/src/b.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./f.ts": [ - "../../project1/src/a.d.ts" - ], - "./g.ts": [ - "../../project1/src/b.d.ts" - ] - }, - "latestChangedDtsFile": "./g.d.ts", - "size": 1870 -} - -project1/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.ts -*refresh* /home/src/workspaces/solution/project1/src/d.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts -(computed .d.ts) /home/src/workspaces/solution/project1/src/d.ts - -project2/src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/project1/src/b.d.ts -*refresh* /home/src/workspaces/solution/project2/src/g.ts -Signatures:: -(used version) /home/src/workspaces/solution/project1/src/b.d.ts -(computed .d.ts) /home/src/workspaces/solution/project2/src/g.ts diff --git a/testdata/baselines/reference/tsbuild/commandLine/help.js b/testdata/baselines/reference/tsbuild/commandLine/help.js deleted file mode 100644 index 8c6e197bcd..0000000000 --- a/testdata/baselines/reference/tsbuild/commandLine/help.js +++ /dev/null @@ -1,144 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: - -tsgo --build --help -ExitStatus:: Success -Output:: -Version FakeTSVersion -tsc: The TypeScript Compiler - Version FakeTSVersion - -BUILD OPTIONS - -Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at https://aka.ms/tsc-composite-builds - ---help, -h -Print this message. - ---help, -? - - ---watch, -w -Watch input files. - ---preserveWatchOutput -Disable wiping the console in watch mode. -type: boolean -default: false - ---listFiles -Print all of the files read during the compilation. -type: boolean -default: false - ---explainFiles -Print files read during the compilation including why it was included. -type: boolean -default: false - ---listEmittedFiles -Print the names of emitted files after a compilation. -type: boolean -default: false - ---pretty -Enable color and formatting in TypeScript's output to make compiler errors easier to read. -type: boolean -default: true - ---traceResolution -Log paths used during the 'moduleResolution' process. -type: boolean -default: false - ---diagnostics -Output compiler performance information after building. -type: boolean -default: false - ---extendedDiagnostics -Output more detailed compiler performance information after building. -type: boolean -default: false - ---generateCpuProfile -Emit a v8 CPU profile of the compiler run for debugging. -type: string -default: profile.cpuprofile - ---generateTrace -Generates an event trace and a list of types. - ---incremental, -i -Save .tsbuildinfo files to allow for incremental compilation of projects. -type: boolean -default: `false`, unless `composite` is set - ---declaration, -d -Generate .d.ts files from TypeScript and JavaScript files in your project. -type: boolean -default: `false`, unless `composite` is set - ---declarationMap -Create sourcemaps for d.ts files. -type: boolean -default: false - ---emitDeclarationOnly -Only output d.ts files and not JavaScript files. -type: boolean -default: false - ---sourceMap -Create source map files for emitted JavaScript files. -type: boolean -default: false - ---inlineSourceMap -Include sourcemap files inside the emitted JavaScript. -type: boolean -default: false - ---noCheck -Disable full type checking (only critical parse and emit errors will be reported). -type: boolean -default: false - ---noEmit -Disable emitting files from a compilation. -type: boolean -default: false - ---assumeChangesOnlyAffectDirectDependencies -Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it. -type: boolean -default: false - ---locale -Set the language of the messaging from TypeScript. This does not affect emit. - ---quiet, -q -Do not print diagnostics. - ---singleThreaded -Run in single threaded mode. - ---pprofDir -Generate pprof CPU/memory profiles to the given directory. - ---verbose, -v -Enable verbose logging. - ---dry, -d -Show what would be built (or deleted, if specified with '--clean') - ---force, -f -Build all projects, including those that appear to be up to date. - ---clean -Delete the outputs of all projects. - ---stopBuildOnErrors -Skip building downstream projects on error in upstream project. - - diff --git a/testdata/baselines/reference/tsbuild/commandLine/when-build-not-first-argument.js b/testdata/baselines/reference/tsbuild/commandLine/when-build-not-first-argument.js index d44964311b..e69de29bb2 100644 --- a/testdata/baselines/reference/tsbuild/commandLine/when-build-not-first-argument.js +++ b/testdata/baselines/reference/tsbuild/commandLine/when-build-not-first-argument.js @@ -1,10 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: - -tsgo --verbose --build -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -error TS5093: Compiler option '--verbose' may only be used with '--build'. -error TS6369: Option '--build' must be the first command line argument. - diff --git a/testdata/baselines/reference/tsbuild/configFileErrors/missing-config-file.js b/testdata/baselines/reference/tsbuild/configFileErrors/missing-config-file.js deleted file mode 100644 index c194821e7e..0000000000 --- a/testdata/baselines/reference/tsbuild/configFileErrors/missing-config-file.js +++ /dev/null @@ -1,12 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: - -tsgo --b bogus.json -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -error TS6053: File '/home/src/workspaces/project/bogus.json' not found. - -Found 1 error. - - diff --git a/testdata/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js b/testdata/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js deleted file mode 100644 index 23310d06e4..0000000000 --- a/testdata/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js +++ /dev/null @@ -1,400 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export function foo() { } -//// [/home/src/workspaces/project/b.ts] *new* -export function bar() { } -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "files": [ - "a.ts" - "b.ts" - ] -} - -tsgo --b -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - - -Found 1 error in tsconfig.json:7 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare function foo(): void; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare function bar(): void; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b8af959ef8294c415b0415508643e446-export function foo() { }","signature":"7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "b8af959ef8294c415b0415508643e446-export function foo() { }", - "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b8af959ef8294c415b0415508643e446-export function foo() { }", - "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "latestChangedDtsFile": "./b.d.ts", - "size": 1345 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: reports syntax errors after change to config file -//// [/home/src/workspaces/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "composite": true, "declaration": true - }, - "files": [ - "a.ts" - "b.ts" - ] -} - -tsgo --b -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - - -Found 1 error in tsconfig.json:7 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: reports syntax errors after change to ts file -//// [/home/src/workspaces/project/a.ts] *modified* -export function foo() { }export function fooBar() { } - -tsgo --b -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - - -Found 1 error in tsconfig.json:7 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare function foo(): void; -export declare function fooBar(): void; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -exports.fooBar = fooBar; -function foo() { } -function fooBar() { } - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }","signature":"f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", - "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", - "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "latestChangedDtsFile": "./a.d.ts", - "size": 1433 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [2]:: no change - -tsgo --b -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - - -Found 1 error in tsconfig.json:7 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [3]:: builds after fixing config file errors -//// [/home/src/workspaces/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "composite": true, "declaration": true - }, - "files": [ - "a.ts", - "b.ts" - ] -} - -tsgo --b -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }","signature":"f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", - "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", - "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./a.d.ts", - "size": 1382 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js b/testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js deleted file mode 100644 index 04120bd116..0000000000 --- a/testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js +++ /dev/null @@ -1,70 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/tsconfig.first.json] *new* -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./tsconfig.first.json" }, - { "path": "./tsconfig.second.json" } - ] -} -//// [/home/src/workspaces/project/tsconfig.second.json] *new* -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } -} - -tsgo --b -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -error TS5083: Cannot read file '/home/src/workspaces/project/foobar.json'. -error TS18003: No inputs were found in config file '/home/src/workspaces/project/tsconfig.first.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. -error TS5083: Cannot read file '/home/src/workspaces/project/foobar.json'. -error TS18003: No inputs were found in config file '/home/src/workspaces/project/tsconfig.second.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. - -Found 4 errors. - -//// [/home/src/workspaces/project/tsconfig.first.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"fileInfos":[],"options":{"composite":true}} -//// [/home/src/workspaces/project/tsconfig.first.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "fileInfos": [], - "options": { - "composite": true - }, - "size": 85 -} -//// [/home/src/workspaces/project/tsconfig.second.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"fileInfos":[],"options":{"composite":true}} -//// [/home/src/workspaces/project/tsconfig.second.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "fileInfos": [], - "options": { - "composite": true - }, - "size": 85 -} - -tsconfig.first.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.second.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js deleted file mode 100644 index a82f347c23..0000000000 --- a/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js +++ /dev/null @@ -1,224 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/index.ts] *new* -import ky from 'ky'; -export const api = ky.extend({}); -//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new* -type KyInstance = { - extend(options: Record): KyInstance; -} -declare const ky: KyInstance; -export default ky; -//// [/home/src/workspaces/project/node_modules/ky/package.json] *new* -{ - "name": "ky", - "type": "module", - "main": "./distribution/index.js" -} -//// [/home/src/workspaces/project/package.json] *new* -{ - "type": "module" -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "NodeNext", - "moduleResolution": "NodeNext", - "composite": false, - "incremental": true, - "declaration": true, - "skipLibCheck": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo -b --explainFiles --listEmittedFiles --v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -TSFILE: /home/src/workspaces/project/index.js -TSFILE: /home/src/workspaces/project/index.d.ts -TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/index.d.ts] *new* -export declare const api: { - extend(options: Record): KyInstance; -}; - -//// [/home/src/workspaces/project/index.js] *new* -import ky from 'ky'; -export const api = ky.extend({}); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","./node_modules/ky/distribution/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;","impliedNodeFormat":99},{"version":"0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});","signature":"5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"composite":false,"declaration":true,"module":199,"skipLibCheck":true,"skipDefaultLibCheck":true},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":34,"end":37,"code":4023,"category":1,"message":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "./node_modules/ky/distribution/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/ky/distribution/index.d.ts", - "version": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", - "signature": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", - "impliedNodeFormat": "ESNext", - "original": { - "version": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./index.ts", - "version": "0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});", - "signature": "5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.", - "impliedNodeFormat": "ESNext", - "original": { - "version": "0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});", - "signature": "5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "./node_modules/ky/distribution/index.d.ts" - ] - ], - "options": { - "composite": false, - "declaration": true, - "module": 199, - "skipLibCheck": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "./index.ts": [ - "./node_modules/ky/distribution/index.d.ts" - ] - }, - "emitDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 34, - "end": 37, - "code": 4023, - "category": 1, - "message": "Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named." - } - ] - ] - ], - "size": 1983 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: no change - -tsgo -b --explainFiles --listEmittedFiles --v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors.js b/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors.js deleted file mode 100644 index ef8e6f721a..0000000000 --- a/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors.js +++ /dev/null @@ -1,163 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/index.ts] *new* -import ky from 'ky'; -export const api = ky.extend({}); -//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new* -type KyInstance = { - extend(options: Record): KyInstance; -} -declare const ky: KyInstance; -export default ky; -//// [/home/src/workspaces/project/node_modules/ky/package.json] *new* -{ - "name": "ky", - "type": "module", - "main": "./distribution/index.js" -} -//// [/home/src/workspaces/project/package.json] *new* -{ - "type": "module" -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "NodeNext", - "moduleResolution": "NodeNext", - "composite": false, - "incremental": false, - "declaration": true, - "skipLibCheck": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo -b --explainFiles --listEmittedFiles --v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -TSFILE: /home/src/workspaces/project/index.js -TSFILE: /home/src/workspaces/project/index.d.ts -TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/index.d.ts] *new* -export declare const api: { - extend(options: Record): KyInstance; -}; - -//// [/home/src/workspaces/project/index.js] *new* -import ky from 'ky'; -export const api = ky.extend({}); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["./index.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./index.ts" - ], - "original": "./index.ts" - } - ], - "size": 63 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b --explainFiles --listEmittedFiles --v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -TSFILE: /home/src/workspaces/project/index.js -TSFILE: /home/src/workspaces/project/index.d.ts -TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - -//// [/home/src/workspaces/project/index.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/index.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js deleted file mode 100644 index 2d0353fd02..0000000000 --- a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js +++ /dev/null @@ -1,257 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/src/common/nominal.ts] *new* -/// -export declare type Nominal = MyNominal; -//// [/home/src/workspaces/solution/src/common/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { "composite": true }, - "include": ["./nominal.ts"], -} -//// [/home/src/workspaces/solution/src/common/types.d.ts] *new* -declare type MyNominal = T & { - specialKey: Name; -}; -//// [/home/src/workspaces/solution/src/subProject/index.ts] *new* -import { Nominal } from '../common/nominal'; -export type MyNominal = Nominal; -//// [/home/src/workspaces/solution/src/subProject/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { "composite": true }, - "references": [{ "path": "../common" }], - "include": ["./index.ts"], -} -//// [/home/src/workspaces/solution/src/subProject2/index.ts] *new* -import { MyNominal } from '../subProject/index'; -const variable = { - key: 'value' as MyNominal, -}; -export function getVar(): keyof typeof variable { - return 'key'; -} -//// [/home/src/workspaces/solution/src/subProject2/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { "composite": true }, - "references": [{ "path": "../subProject" }], - "include": ["./index.ts"], -} -//// [/home/src/workspaces/solution/src/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "./subProject" }, { "path": "./subProject2" }], - "include": [], -} -//// [/home/src/workspaces/solution/tsconfig.base.json] *new* -{ - "compilerOptions": { - "rootDir": "./", - "outDir": "lib", - }, -} -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { "composite": true }, - "include": ["./src/**/*.ts"], -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'lib/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/lib/src/common/nominal.d.ts] *new* -/// -export declare type Nominal = MyNominal; - -//// [/home/src/workspaces/solution/lib/src/common/nominal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// - -//// [/home/src/workspaces/solution/lib/src/subProject/index.d.ts] *new* -import { Nominal } from '../common/nominal'; -export type MyNominal = Nominal; - -//// [/home/src/workspaces/solution/lib/src/subProject/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/solution/lib/src/subProject2/index.d.ts] *new* -import { MyNominal } from '../subProject/index'; -declare const variable: { - key: MyNominal; -}; -export declare function getVar(): keyof typeof variable; -export {}; - -//// [/home/src/workspaces/solution/lib/src/subProject2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getVar = getVar; -const variable = { - key: 'value', -}; -function getVar() { - return 'key'; -} - -//// [/home/src/workspaces/solution/lib/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../src/common/types.d.ts","../src/common/nominal.ts","../src/subProject/index.ts","../src/subProject2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;","signature":"87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n","impliedNodeFormat":1},{"version":"f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedNodeFormat":1},{"version":"8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3],[4]],"options":{"composite":true,"outDir":"./","rootDir":".."},"referencedMap":[[3,1],[4,2],[5,3]],"latestChangedDtsFile":"./src/subProject2/index.d.ts"} -//// [/home/src/workspaces/solution/lib/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/common/types.d.ts", - "../src/common/nominal.ts", - "../src/subProject/index.ts", - "../src/subProject2/index.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/common/types.d.ts", - "../src/common/nominal.ts", - "../src/subProject/index.ts", - "../src/subProject2/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/common/types.d.ts", - "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "signature": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/common/nominal.ts", - "version": "02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;", - "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;", - "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/subProject/index.ts", - "version": "f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/subProject2/index.ts", - "version": "8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", - "signature": "94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", - "signature": "94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/common/types.d.ts" - ], - [ - "../src/common/nominal.ts" - ], - [ - "../src/subProject/index.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./", - "rootDir": ".." - }, - "referencedMap": { - "../src/common/nominal.ts": [ - "../src/common/types.d.ts" - ], - "../src/subProject/index.ts": [ - "../src/common/nominal.ts" - ], - "../src/subProject2/index.ts": [ - "../src/subProject/index.ts" - ] - }, - "latestChangedDtsFile": "./src/subProject2/index.d.ts", - "size": 2504 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/src/common/types.d.ts -*refresh* /home/src/workspaces/solution/src/common/nominal.ts -*refresh* /home/src/workspaces/solution/src/subProject/index.ts -*refresh* /home/src/workspaces/solution/src/subProject2/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/src/common/nominal.ts -(stored at emit) /home/src/workspaces/solution/src/subProject/index.ts -(stored at emit) /home/src/workspaces/solution/src/subProject2/index.ts diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js deleted file mode 100644 index 3f45be7275..0000000000 --- a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js +++ /dev/null @@ -1,427 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/src/common/nominal.ts] *new* -/// -export declare type Nominal = MyNominal; -//// [/home/src/workspaces/solution/src/common/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { "composite": true }, - "include": ["./nominal.ts"], -} -//// [/home/src/workspaces/solution/src/common/types.d.ts] *new* -declare type MyNominal = T & { - specialKey: Name; -}; -//// [/home/src/workspaces/solution/src/subProject/index.ts] *new* -import { Nominal } from '../common/nominal'; -export type MyNominal = Nominal; -//// [/home/src/workspaces/solution/src/subProject/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { "composite": true }, - "references": [{ "path": "../common" }], - "include": ["./index.ts"], -} -//// [/home/src/workspaces/solution/src/subProject2/index.ts] *new* -import { MyNominal } from '../subProject/index'; -const variable = { - key: 'value' as MyNominal, -}; -export function getVar(): keyof typeof variable { - return 'key'; -} -//// [/home/src/workspaces/solution/src/subProject2/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { "composite": true }, - "references": [{ "path": "../subProject" }], - "include": ["./index.ts"], -} -//// [/home/src/workspaces/solution/src/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "./subProject" }, { "path": "./subProject2" }], - "include": [], -} -//// [/home/src/workspaces/solution/tsconfig.base.json] *new* -{ - "compilerOptions": { - "rootDir": "./", - "outDir": "lib", - }, -} -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "./src" }], - "include": [], -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * src/common/tsconfig.json - * src/subProject/tsconfig.json - * src/subProject2/tsconfig.json - * src/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'src/common/tsconfig.json' is out of date because output file 'lib/src/common/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'src/common/tsconfig.json'... - -[HH:MM:SS AM] Project 'src/subProject/tsconfig.json' is out of date because output file 'lib/src/subProject/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'src/subProject/tsconfig.json'... - -[HH:MM:SS AM] Project 'src/subProject2/tsconfig.json' is out of date because output file 'lib/src/subProject2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'src/subProject2/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/lib/src/common/nominal.d.ts] *new* -/// -export declare type Nominal = MyNominal; - -//// [/home/src/workspaces/solution/lib/src/common/nominal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// - -//// [/home/src/workspaces/solution/lib/src/common/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../../../src/common/types.d.ts","../../../src/common/nominal.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;","signature":"87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./nominal.d.ts"} -//// [/home/src/workspaces/solution/lib/src/common/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../src/common/nominal.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../../../src/common/types.d.ts", - "../../../src/common/nominal.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../src/common/types.d.ts", - "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "signature": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../src/common/nominal.ts", - "version": "02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;", - "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;", - "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../src/common/types.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "../..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../../src/common/nominal.ts": [ - "../../../src/common/types.d.ts" - ] - }, - "latestChangedDtsFile": "./nominal.d.ts", - "size": 1643 -} -//// [/home/src/workspaces/solution/lib/src/subProject/index.d.ts] *new* -import { Nominal } from '../common/nominal'; -export type MyNominal = Nominal; - -//// [/home/src/workspaces/solution/lib/src/subProject/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/solution/lib/src/subProject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../../../src/subProject/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedNodeFormat":1},"87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n",{"version":"f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"referencedMap":[[3,1],[4,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/solution/lib/src/subProject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../src/subProject/index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../../../src/common/types.d.ts", - "../common/nominal.d.ts", - "../../../src/subProject/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../src/common/types.d.ts", - "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "signature": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../common/nominal.d.ts", - "version": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", - "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../src/subProject/index.ts", - "version": "f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../src/common/types.d.ts" - ], - [ - "../common/nominal.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "../..", - "rootDir": "../../.." - }, - "referencedMap": { - "../common/nominal.d.ts": [ - "../../../src/common/types.d.ts" - ], - "../../../src/subProject/index.ts": [ - "../common/nominal.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1782 -} -//// [/home/src/workspaces/solution/lib/src/subProject2/index.d.ts] *new* -import { MyNominal } from '../subProject/index'; -declare const variable: { - key: MyNominal; -}; -export declare function getVar(): keyof typeof variable; -export {}; - -//// [/home/src/workspaces/solution/lib/src/subProject2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getVar = getVar; -const variable = { - key: 'value', -}; -function getVar() { - return 'key'; -} - -//// [/home/src/workspaces/solution/lib/src/subProject2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../subProject/index.d.ts","../../../src/subProject2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedNodeFormat":1},"87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n","ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n",{"version":"8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3],[4]],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"referencedMap":[[3,1],[4,2],[5,3]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/solution/lib/src/subProject2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../src/subProject2/index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../../src/common/types.d.ts", - "../common/nominal.d.ts", - "../subProject/index.d.ts", - "../../../src/subProject2/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../src/common/types.d.ts", - "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "signature": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../common/nominal.d.ts", - "version": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", - "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../subProject/index.d.ts", - "version": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../src/subProject2/index.ts", - "version": "8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", - "signature": "94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", - "signature": "94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../src/common/types.d.ts" - ], - [ - "../common/nominal.d.ts" - ], - [ - "../subProject/index.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "../..", - "rootDir": "../../.." - }, - "referencedMap": { - "../common/nominal.d.ts": [ - "../../../src/common/types.d.ts" - ], - "../subProject/index.d.ts": [ - "../common/nominal.d.ts" - ], - "../../../src/subProject2/index.ts": [ - "../subProject/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2106 -} - -src/common/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/src/common/types.d.ts -*refresh* /home/src/workspaces/solution/src/common/nominal.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/src/common/nominal.ts - -src/subProject/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/src/common/types.d.ts -*refresh* /home/src/workspaces/solution/lib/src/common/nominal.d.ts -*refresh* /home/src/workspaces/solution/src/subProject/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/src/subProject/index.ts - -src/subProject2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/src/common/types.d.ts -*refresh* /home/src/workspaces/solution/lib/src/common/nominal.d.ts -*refresh* /home/src/workspaces/solution/lib/src/subProject/index.d.ts -*refresh* /home/src/workspaces/solution/src/subProject2/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/src/subProject2/index.ts diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js deleted file mode 100644 index 739155b881..0000000000 --- a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js +++ /dev/null @@ -1,229 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/packages/pkg1/src/index.ts] *new* -export interface IThing { - a: string; -} -export interface IThings { - thing1: IThing; -} -//// [/home/src/workspaces/project/packages/pkg1/tsconfig.json] *new* -{ - "extends": "../../tsconfig", - "compilerOptions": { "outDir": "lib" }, - "include": ["src"], -} -//// [/home/src/workspaces/project/packages/pkg2/src/index.ts] *new* -import { IThings } from '@fluentui/pkg1'; -export function fn4() { - const a: IThings = { thing1: { a: 'b' } }; - return a.thing1; -} -//// [/home/src/workspaces/project/packages/pkg2/tsconfig.json] *new* -{ - "extends": "../../tsconfig", - "compilerOptions": { "outDir": "lib" }, - "include": ["src"], - "references": [{ "path": "../pkg1" }], -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "paths": { "@fluentui/*": ["./packages/*/src"] }, - }, -} - -tsgo --b packages/pkg2/tsconfig.json --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * packages/pkg1/tsconfig.json - * packages/pkg2/tsconfig.json - -[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/lib/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/lib/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/packages/pkg1/lib/src/index.d.ts] *new* -export interface IThing { - a: string; -} -export interface IThings { - thing1: IThing; -} - -//// [/home/src/workspaces/project/packages/pkg1/lib/src/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/packages/pkg1/lib/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f611077efa7cfdd7e90bebd6aef8d21e-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}","signature":"a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/project/packages/pkg1/lib/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/index.ts", - "version": "f611077efa7cfdd7e90bebd6aef8d21e-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}", - "signature": "a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f611077efa7cfdd7e90bebd6aef8d21e-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}", - "signature": "a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1262 -} -//// [/home/src/workspaces/project/packages/pkg2/lib/src/index.d.ts] *new* -export declare function fn4(): import("@fluentui/pkg1/lib").IThing; - -//// [/home/src/workspaces/project/packages/pkg2/lib/src/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fn4 = fn4; -function fn4() { - const a = { thing1: { a: 'b' } }; - return a.thing1; -} - -//// [/home/src/workspaces/project/packages/pkg2/lib/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../../pkg1/lib/src/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n",{"version":"4d4febb98ed4514d6d06322111030719-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}","signature":"f536bf864c731ec3cb58961dede15c18-export declare function fn4(): import(\"@fluentui/pkg1/lib\").IThing;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/project/packages/pkg2/lib/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../../pkg1/lib/src/index.d.ts", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../pkg1/lib/src/index.d.ts", - "version": "a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", - "signature": "a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/index.ts", - "version": "4d4febb98ed4514d6d06322111030719-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}", - "signature": "f536bf864c731ec3cb58961dede15c18-export declare function fn4(): import(\"@fluentui/pkg1/lib\").IThing;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4d4febb98ed4514d6d06322111030719-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}", - "signature": "f536bf864c731ec3cb58961dede15c18-export declare function fn4(): import(\"@fluentui/pkg1/lib\").IThing;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../pkg1/lib/src/index.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../src/index.ts": [ - "../../pkg1/lib/src/index.d.ts" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1488 -} - -packages/pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/packages/pkg1/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/packages/pkg1/src/index.ts - -packages/pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/packages/pkg1/lib/src/index.d.ts -*refresh* /home/src/workspaces/project/packages/pkg2/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/packages/pkg2/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js b/testdata/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js deleted file mode 100644 index 57c66f13c9..0000000000 --- a/testdata/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js +++ /dev/null @@ -1,705 +0,0 @@ -currentDirectory::/user/username/projects/demo -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/demo/animals/animal.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} -//// [/user/username/projects/demo/animals/dog.ts] *new* -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${ this.name } says "Woof"!`); - }, - name: makeRandomName() - }); -} -//// [/user/username/projects/demo/animals/index.ts] *new* -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; -//// [/user/username/projects/demo/animals/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": "." - }, - "references": [ - { "path": "../core" } - ] -} -//// [/user/username/projects/demo/core/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - }, -} -//// [/user/username/projects/demo/core/utilities.ts] *new* -import * as A from '../animals' -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} -//// [/user/username/projects/demo/tsconfig-base.json] *new* -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true, - }, -} -//// [/user/username/projects/demo/tsconfig.json] *new* -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals", - }, - { - "path": "./zoo", - }, - ], -} -//// [/user/username/projects/demo/zoo/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} -//// [/user/username/projects/demo/zoo/zoo.ts] *new* -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - -tsgo --b --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * animals/tsconfig.json - * zoo/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -animals/index.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/animal.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -1 import Animal from './animal'; -   ~~~~~~~~~~ - -animals/index.ts:4:32 - error TS6307: File '/user/username/projects/demo/animals/dog.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -4 import { createDog, Dog } from './dog'; -   ~~~~~~~ - -core/utilities.ts:1:13 - error TS6133: 'A' is declared but its value is never read. - -1 import * as A from '../animals' -   ~ - -core/utilities.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/index.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - The file is in the program because: - Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' - Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' - -1 import * as A from '../animals' -   ~~~~~~~~~~~~ - - animals/dog.ts:1:20 - File is included via import here. - 1 import Animal from '.'; -    ~~~ - -[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'animals/tsconfig.json'... - -[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... - - -Found 4 errors in 2 files. - -Errors Files - 2 animals/index.ts:1 - 2 core/utilities.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/demo/animals/animal.d.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - -//// [/user/username/projects/demo/animals/animal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/demo/animals/dog.d.ts] *new* -import Animal from '.'; -export interface Dog extends Animal { - woof(): void; - name: string; -} -export declare function createDog(): Dog; - -//// [/user/username/projects/demo/animals/dog.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = createDog; -const utilities_1 = require("../core/utilities"); -function createDog() { - return ({ - size: "medium", - woof: function () { - console.log(`${this.name} says "Woof"!`); - }, - name: (0, utilities_1.makeRandomName)() - }); -} - -//// [/user/username/projects/demo/animals/index.d.ts] *new* -import Animal from './animal'; -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - -//// [/user/username/projects/demo/animals/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = void 0; -const dog_1 = require("./dog"); -Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); - -//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - -//// [/user/username/projects/demo/lib/animals/animal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* -import Animal from '.'; -export interface Dog extends Animal { - woof(): void; - name: string; -} -export declare function createDog(): Dog; - -//// [/user/username/projects/demo/lib/animals/dog.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = createDog; -const utilities_1 = require("../core/utilities"); -function createDog() { - return ({ - size: "medium", - woof: function () { - console.log(`${this.name} says "Woof"!`); - }, - name: (0, utilities_1.makeRandomName)() - }); -} - -//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* -import Animal from './animal'; -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - -//// [/user/username/projects/demo/lib/animals/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = void 0; -const dog_1 = require("./dog"); -Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); - -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../animals/animal.ts", - "../../animals/index.ts" - ], - "original": [ - 2, - 3 - ] - }, - { - "files": [ - "../../animals/dog.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../animals/animal.ts", - "../../animals/index.ts", - "../core/utilities.d.ts", - "../../animals/dog.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/animal.ts", - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/index.ts", - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/utilities.d.ts", - "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../animals/dog.ts", - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../animals", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../../animals/dog.ts": [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - "../../animals/index.ts": [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - }, - "latestChangedDtsFile": "./dog.d.ts", - "size": 2794 -} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},{"version":"c71a99e072793c29cda49dd3fea04661-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"fileIdsList":[[4,5],[2,3],[4]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[[5,[{"pos":12,"end":13,"code":6133,"category":1,"message":"'A' is declared but its value is never read.","reportsUnnecessary":true}]]],"latestChangedDtsFile":"./utilities.d.ts"} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../../core/utilities.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../animals/animal.ts", - "../../animals/dog.ts", - "../../animals/index.ts", - "../../core/utilities.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/animal.ts", - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/dog.ts", - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/index.ts", - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../core/utilities.ts", - "version": "c71a99e072793c29cda49dd3fea04661-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c71a99e072793c29cda49dd3fea04661-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../animals/index.ts", - "../../core/utilities.ts" - ], - [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ], - [ - "../../animals/index.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../core", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../../animals/dog.ts": [ - "../../animals/index.ts", - "../../core/utilities.ts" - ], - "../../animals/index.ts": [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ], - "../../core/utilities.ts": [ - "../../animals/index.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../../core/utilities.ts", - [ - { - "pos": 12, - "end": 13, - "code": 6133, - "category": 1, - "message": "'A' is declared but its value is never read.", - "reportsUnnecessary": true - } - ] - ] - ], - "latestChangedDtsFile": "./utilities.d.ts", - "size": 3302 -} -//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* -export declare function makeRandomName(): string; -export declare function lastElementOf(arr: T[]): T | undefined; - -//// [/user/username/projects/demo/lib/core/utilities.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.makeRandomName = makeRandomName; -exports.lastElementOf = lastElementOf; -function makeRandomName() { - return "Bob!?! "; -} -function lastElementOf(arr) { - if (arr.length === 0) - return undefined; - return arr[arr.length - 1]; -} - -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../zoo/zoo.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../animals/animal.d.ts", - "../animals/dog.d.ts", - "../animals/index.d.ts", - "../../zoo/zoo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../animals/animal.d.ts", - "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/dog.d.ts", - "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/index.d.ts", - "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../zoo/zoo.ts", - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../animals/index.d.ts" - ], - [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../zoo", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../animals/dog.d.ts": [ - "../animals/index.d.ts" - ], - "../animals/index.d.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], - "../../zoo/zoo.ts": [ - "../animals/index.d.ts" - ] - }, - "latestChangedDtsFile": "./zoo.d.ts", - "size": 2104 -} -//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* -import { Dog } from '../animals/index'; -export declare function createZoo(): Array; - -//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createZoo = createZoo; -const index_1 = require("../animals/index"); -function createZoo() { - return [ - (0, index_1.createDog)() - ]; -} - - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/animals/animal.ts -*refresh* /user/username/projects/demo/animals/dog.ts -*refresh* /user/username/projects/demo/animals/index.ts -*refresh* /user/username/projects/demo/core/utilities.ts -Signatures:: -(stored at emit) /user/username/projects/demo/animals/animal.ts -(stored at emit) /user/username/projects/demo/animals/dog.ts -(stored at emit) /user/username/projects/demo/animals/index.ts -(stored at emit) /user/username/projects/demo/core/utilities.ts - -animals/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/animals/animal.ts -*refresh* /user/username/projects/demo/animals/index.ts -*refresh* /user/username/projects/demo/lib/core/utilities.d.ts -*refresh* /user/username/projects/demo/animals/dog.ts -Signatures:: -(stored at emit) /user/username/projects/demo/animals/animal.ts -(stored at emit) /user/username/projects/demo/animals/index.ts -(stored at emit) /user/username/projects/demo/animals/dog.ts - -zoo/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/lib/animals/animal.d.ts -*refresh* /user/username/projects/demo/lib/animals/dog.d.ts -*refresh* /user/username/projects/demo/lib/animals/index.d.ts -*refresh* /user/username/projects/demo/zoo/zoo.ts -Signatures:: -(stored at emit) /user/username/projects/demo/zoo/zoo.ts diff --git a/testdata/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js b/testdata/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js deleted file mode 100644 index 6753102212..0000000000 --- a/testdata/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js +++ /dev/null @@ -1,133 +0,0 @@ -currentDirectory::/user/username/projects/demo -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/demo/animals/animal.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} -//// [/user/username/projects/demo/animals/dog.ts] *new* -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${ this.name } says "Woof"!`); - }, - name: makeRandomName() - }); -} -//// [/user/username/projects/demo/animals/index.ts] *new* -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; -//// [/user/username/projects/demo/animals/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": "." - }, - "references": [ - { "path": "../core" } - ] -} -//// [/user/username/projects/demo/core/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - }, - "references": [ - { - "path": "../zoo", - } - ] -} -//// [/user/username/projects/demo/core/utilities.ts] *new* -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} -//// [/user/username/projects/demo/tsconfig-base.json] *new* -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true, - }, -} -//// [/user/username/projects/demo/tsconfig.json] *new* -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals", - }, - { - "path": "./zoo", - }, - ], -} -//// [/user/username/projects/demo/zoo/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} -//// [/user/username/projects/demo/zoo/zoo.ts] *new* -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - -tsgo --b --verbose -ExitStatus:: ProjectReferenceCycle_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * animals/tsconfig.json - * zoo/tsconfig.json - * core/tsconfig.json - * tsconfig.json - -error TS6202: Project references may not form a circular graph. Cycle detected: /user/username/projects/demo/tsconfig.json -/user/username/projects/demo/core/tsconfig.json -/user/username/projects/demo/zoo/tsconfig.json -/user/username/projects/demo/animals/tsconfig.json - -Found 1 error. - - diff --git a/testdata/baselines/reference/tsbuild/demo/in-circular-is-set-in-the-reference.js b/testdata/baselines/reference/tsbuild/demo/in-circular-is-set-in-the-reference.js deleted file mode 100644 index 21246b8f74..0000000000 --- a/testdata/baselines/reference/tsbuild/demo/in-circular-is-set-in-the-reference.js +++ /dev/null @@ -1,735 +0,0 @@ -currentDirectory::/user/username/projects/demo -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/demo/a/index.ts] *new* -export const a = 10; -//// [/user/username/projects/demo/a/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/a", - "rootDir": "." - }, - "references": [ - { - "path": "../b", - "circular": true - } - ] -} -//// [/user/username/projects/demo/animals/animal.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} -//// [/user/username/projects/demo/animals/dog.ts] *new* -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${ this.name } says "Woof"!`); - }, - name: makeRandomName() - }); -} -//// [/user/username/projects/demo/animals/index.ts] *new* -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; -//// [/user/username/projects/demo/animals/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": "." - }, - "references": [ - { "path": "../core" } - ] -} -//// [/user/username/projects/demo/b/index.ts] *new* -export const b = 10; -//// [/user/username/projects/demo/b/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/b", - "rootDir": "." - }, - "references": [ - { - "path": "../a", - } - ] -} -//// [/user/username/projects/demo/core/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - }, -} -//// [/user/username/projects/demo/core/utilities.ts] *new* -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} -//// [/user/username/projects/demo/tsconfig-base.json] *new* -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true, - }, -} -//// [/user/username/projects/demo/tsconfig.json] *new* -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals", - }, - { - "path": "./zoo", - }, - { - "path": "./a", - }, - { - "path": "./b", - }, - ], -} -//// [/user/username/projects/demo/zoo/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} -//// [/user/username/projects/demo/zoo/zoo.ts] *new* -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * animals/tsconfig.json - * zoo/tsconfig.json - * b/tsconfig.json - * a/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'animals/tsconfig.json'... - -[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... - -[HH:MM:SS AM] Project 'b/tsconfig.json' is out of date because output file 'lib/b/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'b/tsconfig.json'... - -[HH:MM:SS AM] Project 'a/tsconfig.json' is out of date because output file 'lib/a/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'a/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/demo/lib/a/index.d.ts] *new* -export declare const a = 10; - -//// [/user/username/projects/demo/lib/a/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; - -//// [/user/username/projects/demo/lib/a/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../a/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3a1e9965f8602302ee6ae53756eac8be-export const a = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../a","strict":true,"target":1},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/demo/lib/a/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../a/index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../../a/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../a/index.ts", - "version": "3a1e9965f8602302ee6ae53756eac8be-export const a = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3a1e9965f8602302ee6ae53756eac8be-export const a = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../a", - "strict": true, - "target": 1 - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1297 -} -//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - -//// [/user/username/projects/demo/lib/animals/animal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* -import Animal from '.'; -export interface Dog extends Animal { - woof(): void; - name: string; -} -export declare function createDog(): Dog; - -//// [/user/username/projects/demo/lib/animals/dog.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = createDog; -const utilities_1 = require("../core/utilities"); -function createDog() { - return ({ - size: "medium", - woof: function () { - console.log(`${this.name} says "Woof"!`); - }, - name: (0, utilities_1.makeRandomName)() - }); -} - -//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* -import Animal from './animal'; -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - -//// [/user/username/projects/demo/lib/animals/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = void 0; -const dog_1 = require("./dog"); -Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); - -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../animals/animal.ts", - "../../animals/index.ts" - ], - "original": [ - 2, - 3 - ] - }, - { - "files": [ - "../../animals/dog.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../animals/animal.ts", - "../../animals/index.ts", - "../core/utilities.d.ts", - "../../animals/dog.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/animal.ts", - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/index.ts", - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/utilities.d.ts", - "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../animals/dog.ts", - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../animals", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../../animals/dog.ts": [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - "../../animals/index.ts": [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - }, - "latestChangedDtsFile": "./dog.d.ts", - "size": 2794 -} -//// [/user/username/projects/demo/lib/b/index.d.ts] *new* -export declare const b = 10; - -//// [/user/username/projects/demo/lib/b/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/user/username/projects/demo/lib/b/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../b/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../b","strict":true,"target":1},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/demo/lib/b/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../b/index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../../b/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../b/index.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../b", - "strict": true, - "target": 1 - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1297 -} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"43144ca7c82db0f51f0d56a2b3e2f565-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"latestChangedDtsFile":"./utilities.d.ts"} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../core/utilities.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../../core/utilities.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../core/utilities.ts", - "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../core", - "strict": true, - "target": 1 - }, - "latestChangedDtsFile": "./utilities.d.ts", - "size": 1586 -} -//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* -export declare function makeRandomName(): string; -export declare function lastElementOf(arr: T[]): T | undefined; - -//// [/user/username/projects/demo/lib/core/utilities.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.makeRandomName = makeRandomName; -exports.lastElementOf = lastElementOf; -function makeRandomName() { - return "Bob!?! "; -} -function lastElementOf(arr) { - if (arr.length === 0) - return undefined; - return arr[arr.length - 1]; -} - -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../zoo/zoo.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../animals/animal.d.ts", - "../animals/dog.d.ts", - "../animals/index.d.ts", - "../../zoo/zoo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../animals/animal.d.ts", - "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/dog.d.ts", - "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/index.d.ts", - "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../zoo/zoo.ts", - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../animals/index.d.ts" - ], - [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../zoo", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../animals/dog.d.ts": [ - "../animals/index.d.ts" - ], - "../animals/index.d.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], - "../../zoo/zoo.ts": [ - "../animals/index.d.ts" - ] - }, - "latestChangedDtsFile": "./zoo.d.ts", - "size": 2104 -} -//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* -import { Dog } from '../animals/index'; -export declare function createZoo(): Array; - -//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createZoo = createZoo; -const index_1 = require("../animals/index"); -function createZoo() { - return [ - (0, index_1.createDog)() - ]; -} - - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/core/utilities.ts -Signatures:: -(stored at emit) /user/username/projects/demo/core/utilities.ts - -animals/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/animals/animal.ts -*refresh* /user/username/projects/demo/animals/index.ts -*refresh* /user/username/projects/demo/lib/core/utilities.d.ts -*refresh* /user/username/projects/demo/animals/dog.ts -Signatures:: -(stored at emit) /user/username/projects/demo/animals/animal.ts -(stored at emit) /user/username/projects/demo/animals/index.ts -(stored at emit) /user/username/projects/demo/animals/dog.ts - -zoo/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/lib/animals/animal.d.ts -*refresh* /user/username/projects/demo/lib/animals/dog.d.ts -*refresh* /user/username/projects/demo/lib/animals/index.d.ts -*refresh* /user/username/projects/demo/zoo/zoo.ts -Signatures:: -(stored at emit) /user/username/projects/demo/zoo/zoo.ts - -b/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/b/index.ts -Signatures:: -(stored at emit) /user/username/projects/demo/b/index.ts - -a/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/a/index.ts -Signatures:: -(stored at emit) /user/username/projects/demo/a/index.ts diff --git a/testdata/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js b/testdata/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js deleted file mode 100644 index 51cfcbbfd6..0000000000 --- a/testdata/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js +++ /dev/null @@ -1,560 +0,0 @@ -currentDirectory::/user/username/projects/demo -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/demo/animals/animal.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} -//// [/user/username/projects/demo/animals/dog.ts] *new* -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${ this.name } says "Woof"!`); - }, - name: makeRandomName() - }); -} -//// [/user/username/projects/demo/animals/index.ts] *new* -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; -//// [/user/username/projects/demo/animals/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": "." - }, - "references": [ - { "path": "../core" } - ] -} -//// [/user/username/projects/demo/core/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - }, -} -//// [/user/username/projects/demo/core/utilities.ts] *new* -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} -//// [/user/username/projects/demo/tsconfig-base.json] *new* -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true, - }, -} -//// [/user/username/projects/demo/tsconfig.json] *new* -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals", - }, - { - "path": "./zoo", - }, - ], -} -//// [/user/username/projects/demo/zoo/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} -//// [/user/username/projects/demo/zoo/zoo.ts] *new* -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * animals/tsconfig.json - * zoo/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'animals/tsconfig.json'... - -[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - -//// [/user/username/projects/demo/lib/animals/animal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* -import Animal from '.'; -export interface Dog extends Animal { - woof(): void; - name: string; -} -export declare function createDog(): Dog; - -//// [/user/username/projects/demo/lib/animals/dog.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = createDog; -const utilities_1 = require("../core/utilities"); -function createDog() { - return ({ - size: "medium", - woof: function () { - console.log(`${this.name} says "Woof"!`); - }, - name: (0, utilities_1.makeRandomName)() - }); -} - -//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* -import Animal from './animal'; -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - -//// [/user/username/projects/demo/lib/animals/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = void 0; -const dog_1 = require("./dog"); -Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); - -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../animals/animal.ts", - "../../animals/index.ts" - ], - "original": [ - 2, - 3 - ] - }, - { - "files": [ - "../../animals/dog.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../animals/animal.ts", - "../../animals/index.ts", - "../core/utilities.d.ts", - "../../animals/dog.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/animal.ts", - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/index.ts", - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/utilities.d.ts", - "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../animals/dog.ts", - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../animals", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../../animals/dog.ts": [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - "../../animals/index.ts": [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - }, - "latestChangedDtsFile": "./dog.d.ts", - "size": 2794 -} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"43144ca7c82db0f51f0d56a2b3e2f565-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"latestChangedDtsFile":"./utilities.d.ts"} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../core/utilities.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../../core/utilities.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../core/utilities.ts", - "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../core", - "strict": true, - "target": 1 - }, - "latestChangedDtsFile": "./utilities.d.ts", - "size": 1586 -} -//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* -export declare function makeRandomName(): string; -export declare function lastElementOf(arr: T[]): T | undefined; - -//// [/user/username/projects/demo/lib/core/utilities.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.makeRandomName = makeRandomName; -exports.lastElementOf = lastElementOf; -function makeRandomName() { - return "Bob!?! "; -} -function lastElementOf(arr) { - if (arr.length === 0) - return undefined; - return arr[arr.length - 1]; -} - -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../zoo/zoo.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../animals/animal.d.ts", - "../animals/dog.d.ts", - "../animals/index.d.ts", - "../../zoo/zoo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../animals/animal.d.ts", - "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/dog.d.ts", - "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/index.d.ts", - "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../zoo/zoo.ts", - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../animals/index.d.ts" - ], - [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../zoo", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../animals/dog.d.ts": [ - "../animals/index.d.ts" - ], - "../animals/index.d.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], - "../../zoo/zoo.ts": [ - "../animals/index.d.ts" - ] - }, - "latestChangedDtsFile": "./zoo.d.ts", - "size": 2104 -} -//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* -import { Dog } from '../animals/index'; -export declare function createZoo(): Array; - -//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createZoo = createZoo; -const index_1 = require("../animals/index"); -function createZoo() { - return [ - (0, index_1.createDog)() - ]; -} - - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/core/utilities.ts -Signatures:: -(stored at emit) /user/username/projects/demo/core/utilities.ts - -animals/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/animals/animal.ts -*refresh* /user/username/projects/demo/animals/index.ts -*refresh* /user/username/projects/demo/lib/core/utilities.d.ts -*refresh* /user/username/projects/demo/animals/dog.ts -Signatures:: -(stored at emit) /user/username/projects/demo/animals/animal.ts -(stored at emit) /user/username/projects/demo/animals/index.ts -(stored at emit) /user/username/projects/demo/animals/dog.ts - -zoo/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/lib/animals/animal.d.ts -*refresh* /user/username/projects/demo/lib/animals/dog.d.ts -*refresh* /user/username/projects/demo/lib/animals/index.d.ts -*refresh* /user/username/projects/demo/zoo/zoo.ts -Signatures:: -(stored at emit) /user/username/projects/demo/zoo/zoo.ts - - -Edit [0]:: no change - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * animals/tsconfig.json - * zoo/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/utilities.ts' is older than output 'lib/core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'animals/tsconfig.json' is up to date because newest input 'animals/index.ts' is older than output 'lib/animals/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'zoo/tsconfig.json' is up to date because newest input 'zoo/zoo.ts' is older than output 'lib/zoo/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js deleted file mode 100644 index ce09890b25..0000000000 --- a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ /dev/null @@ -1,431 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/a.ts] *new* -import { B } from "./b"; - -export interface A { - b: B; -} -//// [/home/src/workspaces/project/src/b.ts] *new* -import { C } from "./c"; - -export interface B { - b: C; -} -//// [/home/src/workspaces/project/src/c.ts] *new* -import { A } from "./a"; - -export interface C { - a: A; -} -//// [/home/src/workspaces/project/src/index.ts] *new* -export { A } from "./a"; -export { B } from "./b"; -export { C } from "./c"; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "target": "es5", - "module": "commonjs", - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "src", - "emitDeclarationOnly": true, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/lib/a.d.ts] *new* -import { B } from "./b"; -export interface A { - b: B; -} -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/lib/a.d.ts.map] *new* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} -//// [/home/src/workspaces/project/lib/b.d.ts] *new* -import { C } from "./c"; -export interface B { - b: C; -} -//# sourceMappingURL=b.d.ts.map -//// [/home/src/workspaces/project/lib/b.d.ts.map] *new* -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} -//// [/home/src/workspaces/project/lib/c.d.ts] *new* -import { A } from "./a"; -export interface C { - a: A; -} -//# sourceMappingURL=c.d.ts.map -//// [/home/src/workspaces/project/lib/c.d.ts.map] *new* -{"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"} -//// [/home/src/workspaces/project/lib/index.d.ts] *new* -export { A } from "./a"; -export { B } from "./b"; -export { C } from "./c"; -//# sourceMappingURL=index.d.ts.map -//// [/home/src/workspaces/project/lib/index.d.ts.map] *new* -{"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"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1},{"version":"0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}","signature":"2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","impliedNodeFormat":1},{"version":"9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";","signature":"c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2],[4],[2,3,4]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"latestChangedDtsFile":"./lib/index.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts", - "./src/index.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/c.ts", - "./src/b.ts", - "./src/a.ts", - "./src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/c.ts", - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/b.ts", - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/a.ts", - "version": "0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}", - "signature": "2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}", - "signature": "2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/index.ts", - "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", - "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", - "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/b.ts" - ], - [ - "./src/c.ts" - ], - [ - "./src/a.ts" - ], - [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts" - ] - ], - "options": { - "alwaysStrict": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "declarationMap": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./lib", - "rootDir": "./src", - "strict": true, - "sourceMap": true, - "target": 1 - }, - "referencedMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts" - ] - }, - "latestChangedDtsFile": "./lib/index.d.ts", - "size": 2277 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/c.ts -*refresh* /home/src/workspaces/project/src/b.ts -*refresh* /home/src/workspaces/project/src/a.ts -*refresh* /home/src/workspaces/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/c.ts -(stored at emit) /home/src/workspaces/project/src/b.ts -(stored at emit) /home/src/workspaces/project/src/a.ts -(stored at emit) /home/src/workspaces/project/src/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/home/src/workspaces/project/src/a.ts] *modified* -import { B } from "./b"; - -export interface A { - b: B; foo: any; -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/lib/a.d.ts] *modified* -import { B } from "./b"; -export interface A { - b: B; - foo: any; -} -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/lib/a.d.ts.map] *modified* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAClB"} -//// [/home/src/workspaces/project/lib/b.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/lib/c.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/lib/index.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1},{"version":"078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}","signature":"ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedNodeFormat":1},{"version":"9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";","signature":"c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2],[4],[2,3,4]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"latestChangedDtsFile":"./lib/a.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts", - "./src/index.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/c.ts", - "./src/b.ts", - "./src/a.ts", - "./src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/c.ts", - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/b.ts", - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/a.ts", - "version": "078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}", - "signature": "ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}", - "signature": "ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/index.ts", - "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", - "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", - "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/b.ts" - ], - [ - "./src/c.ts" - ], - [ - "./src/a.ts" - ], - [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts" - ] - ], - "options": { - "alwaysStrict": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "declarationMap": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./lib", - "rootDir": "./src", - "strict": true, - "sourceMap": true, - "target": 1 - }, - "referencedMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts" - ] - }, - "latestChangedDtsFile": "./lib/a.d.ts", - "size": 2298 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/c.ts -*refresh* /home/src/workspaces/project/src/b.ts -*refresh* /home/src/workspaces/project/src/a.ts -*refresh* /home/src/workspaces/project/src/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/c.ts -(stored at emit) /home/src/workspaces/project/src/b.ts -(computed .d.ts) /home/src/workspaces/project/src/a.ts -(computed .d.ts) /home/src/workspaces/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js deleted file mode 100644 index 4ff576fa8a..0000000000 --- a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ /dev/null @@ -1,418 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/a.ts] *new* -import { B } from "./b"; - -export interface A { - b: B; -} -//// [/home/src/workspaces/project/src/b.ts] *new* -import { C } from "./c"; - -export interface B { - b: C; -} -//// [/home/src/workspaces/project/src/c.ts] *new* -import { A } from "./a"; - -export interface C { - a: A; -} -//// [/home/src/workspaces/project/src/index.ts] *new* -export { A } from "./a"; -export { B } from "./b"; -export { C } from "./c"; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "target": "es5", - "module": "commonjs", - "declaration": true, - "declarationMap": false, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "src", - "emitDeclarationOnly": true, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/lib/a.d.ts] *new* -import { B } from "./b"; -export interface A { - b: B; -} - -//// [/home/src/workspaces/project/lib/b.d.ts] *new* -import { C } from "./c"; -export interface B { - b: C; -} - -//// [/home/src/workspaces/project/lib/c.d.ts] *new* -import { A } from "./a"; -export interface C { - a: A; -} - -//// [/home/src/workspaces/project/lib/index.d.ts] *new* -export { A } from "./a"; -export { B } from "./b"; -export { C } from "./c"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1},{"version":"0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}","signature":"2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","impliedNodeFormat":1},{"version":"9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";","signature":"c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2],[4],[2,3,4]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"latestChangedDtsFile":"./lib/index.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts", - "./src/index.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/c.ts", - "./src/b.ts", - "./src/a.ts", - "./src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/c.ts", - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/b.ts", - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/a.ts", - "version": "0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}", - "signature": "2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}", - "signature": "2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/index.ts", - "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", - "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", - "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/b.ts" - ], - [ - "./src/c.ts" - ], - [ - "./src/a.ts" - ], - [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts" - ] - ], - "options": { - "alwaysStrict": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "declarationMap": false, - "esModuleInterop": true, - "module": 1, - "outDir": "./lib", - "rootDir": "./src", - "strict": true, - "sourceMap": true, - "target": 1 - }, - "referencedMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts" - ] - }, - "latestChangedDtsFile": "./lib/index.d.ts", - "size": 2278 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/c.ts -*refresh* /home/src/workspaces/project/src/b.ts -*refresh* /home/src/workspaces/project/src/a.ts -*refresh* /home/src/workspaces/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/c.ts -(stored at emit) /home/src/workspaces/project/src/b.ts -(stored at emit) /home/src/workspaces/project/src/a.ts -(stored at emit) /home/src/workspaces/project/src/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/home/src/workspaces/project/src/a.ts] *modified* -import { B } from "./b"; - -export interface A { - b: B; foo: any; -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/lib/a.d.ts] *modified* -import { B } from "./b"; -export interface A { - b: B; - foo: any; -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1},{"version":"078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}","signature":"ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedNodeFormat":1},{"version":"9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";","signature":"c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2],[4],[2,3,4]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"latestChangedDtsFile":"./lib/a.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts", - "./src/index.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/c.ts", - "./src/b.ts", - "./src/a.ts", - "./src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/c.ts", - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/b.ts", - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/a.ts", - "version": "078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}", - "signature": "ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}", - "signature": "ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/index.ts", - "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", - "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", - "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/b.ts" - ], - [ - "./src/c.ts" - ], - [ - "./src/a.ts" - ], - [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts" - ] - ], - "options": { - "alwaysStrict": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "declarationMap": false, - "esModuleInterop": true, - "module": 1, - "outDir": "./lib", - "rootDir": "./src", - "strict": true, - "sourceMap": true, - "target": 1 - }, - "referencedMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/c.ts", - "./src/b.ts", - "./src/a.ts" - ] - }, - "latestChangedDtsFile": "./lib/a.d.ts", - "size": 2299 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/c.ts -*refresh* /home/src/workspaces/project/src/b.ts -*refresh* /home/src/workspaces/project/src/a.ts -*refresh* /home/src/workspaces/project/src/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/c.ts -(stored at emit) /home/src/workspaces/project/src/b.ts -(computed .d.ts) /home/src/workspaces/project/src/a.ts -(computed .d.ts) /home/src/workspaces/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js deleted file mode 100644 index 5e816fb977..0000000000 --- a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ /dev/null @@ -1,495 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/a.ts] *new* -export class B { prop = "hello"; } - -export interface A { - b: B; -} -//// [/home/src/workspaces/project/src/b.ts] *new* -import { C } from "./c"; - -export interface B { - b: C; -} -//// [/home/src/workspaces/project/src/c.ts] *new* -import { A } from "./a"; - -export interface C { - a: A; -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "target": "es5", - "module": "commonjs", - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "src", - "emitDeclarationOnly": true, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/lib/a.d.ts] *new* -export declare class B { - prop: string; -} -export interface A { - b: B; -} -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/lib/a.d.ts.map] *new* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} -//// [/home/src/workspaces/project/lib/b.d.ts] *new* -import { C } from "./c"; -export interface B { - b: C; -} -//# sourceMappingURL=b.d.ts.map -//// [/home/src/workspaces/project/lib/b.d.ts.map] *new* -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} -//// [/home/src/workspaces/project/lib/c.d.ts] *new* -import { A } from "./a"; -export interface C { - a: A; -} -//# sourceMappingURL=c.d.ts.map -//// [/home/src/workspaces/project/lib/c.d.ts.map] *new* -{"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"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"665f99944701507453d40566cb1ae14c-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}","signature":"99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n","impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2]],"latestChangedDtsFile":"./lib/b.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/a.ts", - "./src/c.ts", - "./src/b.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/a.ts", - "./src/c.ts", - "./src/b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/a.ts", - "version": "665f99944701507453d40566cb1ae14c-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}", - "signature": "99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "665f99944701507453d40566cb1ae14c-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}", - "signature": "99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/c.ts", - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/b.ts", - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/c.ts" - ], - [ - "./src/a.ts" - ] - ], - "options": { - "alwaysStrict": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "declarationMap": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./lib", - "rootDir": "./src", - "strict": true, - "sourceMap": true, - "target": 1 - }, - "referencedMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "latestChangedDtsFile": "./lib/b.d.ts", - "size": 1978 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/a.ts -*refresh* /home/src/workspaces/project/src/c.ts -*refresh* /home/src/workspaces/project/src/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/a.ts -(stored at emit) /home/src/workspaces/project/src/c.ts -(stored at emit) /home/src/workspaces/project/src/b.ts - - -Edit [0]:: incremental-declaration-doesnt-change -//// [/home/src/workspaces/project/src/a.ts] *modified* -export class B { prop = "hello"; } - -class C { } -export interface A { - b: B; -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/lib/a.d.ts.map] *modified* -{"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"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d6b87c1d5c5dc8a828f29d0ccdf50a96-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}","signature":"99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n","impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2]],"latestChangedDtsFile":"./lib/b.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/a.ts", - "./src/c.ts", - "./src/b.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/a.ts", - "./src/c.ts", - "./src/b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/a.ts", - "version": "d6b87c1d5c5dc8a828f29d0ccdf50a96-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}", - "signature": "99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6b87c1d5c5dc8a828f29d0ccdf50a96-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}", - "signature": "99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/c.ts", - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/b.ts", - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/c.ts" - ], - [ - "./src/a.ts" - ] - ], - "options": { - "alwaysStrict": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "declarationMap": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./lib", - "rootDir": "./src", - "strict": true, - "sourceMap": true, - "target": 1 - }, - "referencedMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "latestChangedDtsFile": "./lib/b.d.ts", - "size": 1991 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/a.ts - - -Edit [1]:: incremental-declaration-changes -//// [/home/src/workspaces/project/src/a.ts] *modified* -export class B { prop = "hello"; } - -class C { } -export interface A { - b: B; foo: any; -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/lib/a.d.ts] *modified* -export declare class B { - prop: string; -} -export interface A { - b: B; - foo: any; -} -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/lib/a.d.ts.map] *modified* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAClB"} -//// [/home/src/workspaces/project/lib/b.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/lib/c.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f2ea1f64003c617e4826031e7133d22d-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}","signature":"1bd611ec5b00f8f076ed030967bcfa3e-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2]],"latestChangedDtsFile":"./lib/a.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/a.ts", - "./src/c.ts", - "./src/b.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/a.ts", - "./src/c.ts", - "./src/b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/a.ts", - "version": "f2ea1f64003c617e4826031e7133d22d-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}", - "signature": "1bd611ec5b00f8f076ed030967bcfa3e-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f2ea1f64003c617e4826031e7133d22d-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}", - "signature": "1bd611ec5b00f8f076ed030967bcfa3e-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/c.ts", - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", - "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/b.ts", - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", - "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/c.ts" - ], - [ - "./src/a.ts" - ] - ], - "options": { - "alwaysStrict": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "declarationMap": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./lib", - "rootDir": "./src", - "strict": true, - "sourceMap": true, - "target": 1 - }, - "referencedMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "latestChangedDtsFile": "./lib/a.d.ts", - "size": 2016 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/a.ts -*refresh* /home/src/workspaces/project/src/c.ts -*refresh* /home/src/workspaces/project/src/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/a.ts -(computed .d.ts) /home/src/workspaces/project/src/c.ts -(stored at emit) /home/src/workspaces/project/src/b.ts diff --git a/testdata/baselines/reference/tsbuild/extends/configDir-template.js b/testdata/baselines/reference/tsbuild/extends/configDir-template.js deleted file mode 100644 index 4cb0fb56f1..0000000000 --- a/testdata/baselines/reference/tsbuild/extends/configDir-template.js +++ /dev/null @@ -1,130 +0,0 @@ -currentDirectory::/home/src/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/configs/first/tsconfig.json] *new* -{ - "extends": "../second/tsconfig.json", - "include": ["${configDir}/src"], - "compilerOptions": { - "typeRoots": ["root1", "${configDir}/root2", "root3"], - "types": [], - }, -} -//// [/home/src/projects/configs/second/tsconfig.json] *new* -{ - "files": ["${configDir}/main.ts"], - "compilerOptions": { - "declarationDir": "${configDir}/decls", - "paths": { - "@myscope/*": ["${configDir}/types/*"], - }, - }, - "watchOptions": { - "excludeFiles": ["${configDir}/main.ts"], - }, -} -//// [/home/src/projects/myproject/main.ts] *new* -// some comment -export const y = 10; -import { x } from "@myscope/sometype"; -//// [/home/src/projects/myproject/tsconfig.json] *new* -{ - "extends": "../configs/first/tsconfig.json", - "compilerOptions": { - "declaration": true, - "outDir": "outDir", - "traceResolution": true, - }, -} -//// [/home/src/projects/myproject/types/sometype.ts] *new* -export const x = 10; - -tsgo --b --explainFiles --v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'outDir/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. -Module name '@myscope/sometype', matched pattern '@myscope/*'. -Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. -Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. -======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -types/sometype.ts - Imported via "@myscope/sometype" from file 'main.ts' -main.ts - Part of 'files' list in tsconfig.json -//// [/home/src/projects/myproject/decls/main.d.ts] *new* -export declare const y = 10; - -//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *new* -export declare const x = 10; - -//// [/home/src/projects/myproject/outDir/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -// some comment -exports.y = 10; - -//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../main.ts"]} -//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../main.ts" - ], - "original": "../main.ts" - } - ], - "size": 49 -} -//// [/home/src/projects/myproject/outDir/types/sometype.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/myproject/types/sometype.ts -*refresh* /home/src/projects/myproject/main.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js b/testdata/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js deleted file mode 100644 index be781f4bb3..0000000000 --- a/testdata/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js +++ /dev/null @@ -1,114 +0,0 @@ -currentDirectory::/users/user/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true } -} -//// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] *new* -{ - "extends": "@something/tsconfig-base/tsconfig.json", - "compilerOptions": { - "removeComments": true - } -} -//// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] -> /users/user/projects/myconfigs/node_modules/@something/tsconfig-node *new* -//// [/users/user/projects/myproject/src/index.ts] *new* -// some comment -export const x = 10; -//// [/users/user/projects/myproject/src/tsconfig.json] *new* -{ - "extends": "@something/tsconfig-node/tsconfig.json" -} - -tsgo -b src --extendedDiagnostics -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/users/user/projects/myproject/src/index.d.ts] *new* -export declare const x = 10; - -//// [/users/user/projects/myproject/src/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"removeComments":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "removeComments": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1134 -} - -src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /users/user/projects/myproject/src/index.ts -Signatures:: -(stored at emit) /users/user/projects/myproject/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/extends/when-building-project-uses-reference-and-both-extend-config-with-include.js b/testdata/baselines/reference/tsbuild/extends/when-building-project-uses-reference-and-both-extend-config-with-include.js deleted file mode 100644 index c0e99b3935..0000000000 --- a/testdata/baselines/reference/tsbuild/extends/when-building-project-uses-reference-and-both-extend-config-with-include.js +++ /dev/null @@ -1,255 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/shared/index.ts] *new* -export const a: Unrestricted = 1; -//// [/home/src/workspaces/solution/shared/tsconfig-base.json] *new* -{ - "include": ["./typings-base/"], -} -//// [/home/src/workspaces/solution/shared/tsconfig.json] *new* -{ - "extends": "./tsconfig-base.json", - "compilerOptions": { - "composite": true, - "outDir": "../target-tsc-build/", - "rootDir": "..", - }, - "files": ["./index.ts"], -} -//// [/home/src/workspaces/solution/shared/typings-base/globals.d.ts] *new* -type Unrestricted = any; -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "references": [ - { "path": "./shared/tsconfig.json" }, - { "path": "./webpack/tsconfig.json" }, - ], - "files": [], -} -//// [/home/src/workspaces/solution/webpack/index.ts] *new* -export const b: Unrestricted = 1; -//// [/home/src/workspaces/solution/webpack/tsconfig.json] *new* -{ - "extends": "../shared/tsconfig-base.json", - "compilerOptions": { - "composite": true, - "outDir": "../target-tsc-build/", - "rootDir": "..", - }, - "files": ["./index.ts"], - "references": [{ "path": "../shared/tsconfig.json" }], -} - -tsgo --b webpack/tsconfig.json --v --listFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * shared/tsconfig.json - * webpack/tsconfig.json - -[HH:MM:SS AM] Project 'shared/tsconfig.json' is out of date because output file 'target-tsc-build/shared/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'shared/tsconfig.json'... - -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/shared/index.ts -/home/src/workspaces/solution/shared/typings-base/globals.d.ts -[HH:MM:SS AM] Project 'webpack/tsconfig.json' is out of date because output file 'target-tsc-build/webpack/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'webpack/tsconfig.json'... - -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/webpack/index.ts -/home/src/workspaces/solution/shared/typings-base/globals.d.ts -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/target-tsc-build/shared/index.d.ts] *new* -export declare const a: Unrestricted; - -//// [/home/src/workspaces/solution/target-tsc-build/shared/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 1; - -//// [/home/src/workspaces/solution/target-tsc-build/shared/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;","signature":"3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n","impliedNodeFormat":1},{"version":"0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/solution/target-tsc-build/shared/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../shared/index.ts", - "../../shared/typings-base/globals.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../shared/index.ts", - "../../shared/typings-base/globals.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../shared/index.ts", - "version": "038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;", - "signature": "3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;", - "signature": "3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../shared/typings-base/globals.d.ts", - "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "signature": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../.." - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1325 -} -//// [/home/src/workspaces/solution/target-tsc-build/webpack/index.d.ts] *new* -export declare const b: Unrestricted; - -//// [/home/src/workspaces/solution/target-tsc-build/webpack/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 1; - -//// [/home/src/workspaces/solution/target-tsc-build/webpack/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;","signature":"ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n","impliedNodeFormat":1},{"version":"0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/solution/target-tsc-build/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../webpack/index.ts", - "../../shared/typings-base/globals.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../webpack/index.ts", - "../../shared/typings-base/globals.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../webpack/index.ts", - "version": "55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;", - "signature": "ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;", - "signature": "ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../shared/typings-base/globals.d.ts", - "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "signature": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../.." - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1326 -} - -shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/shared/index.ts -*refresh* /home/src/workspaces/solution/shared/typings-base/globals.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/shared/index.ts - -webpack/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/webpack/index.ts -*refresh* /home/src/workspaces/solution/shared/typings-base/globals.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/webpack/index.ts diff --git a/testdata/baselines/reference/tsbuild/extends/when-building-solution-with-projects-extends-config-with-include.js b/testdata/baselines/reference/tsbuild/extends/when-building-solution-with-projects-extends-config-with-include.js deleted file mode 100644 index e23831d39a..0000000000 --- a/testdata/baselines/reference/tsbuild/extends/when-building-solution-with-projects-extends-config-with-include.js +++ /dev/null @@ -1,256 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/shared/index.ts] *new* -export const a: Unrestricted = 1; -//// [/home/src/workspaces/solution/shared/tsconfig-base.json] *new* -{ - "include": ["./typings-base/"], -} -//// [/home/src/workspaces/solution/shared/tsconfig.json] *new* -{ - "extends": "./tsconfig-base.json", - "compilerOptions": { - "composite": true, - "outDir": "../target-tsc-build/", - "rootDir": "..", - }, - "files": ["./index.ts"], -} -//// [/home/src/workspaces/solution/shared/typings-base/globals.d.ts] *new* -type Unrestricted = any; -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "references": [ - { "path": "./shared/tsconfig.json" }, - { "path": "./webpack/tsconfig.json" }, - ], - "files": [], -} -//// [/home/src/workspaces/solution/webpack/index.ts] *new* -export const b: Unrestricted = 1; -//// [/home/src/workspaces/solution/webpack/tsconfig.json] *new* -{ - "extends": "../shared/tsconfig-base.json", - "compilerOptions": { - "composite": true, - "outDir": "../target-tsc-build/", - "rootDir": "..", - }, - "files": ["./index.ts"], - "references": [{ "path": "../shared/tsconfig.json" }], -} - -tsgo --b --v --listFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * shared/tsconfig.json - * webpack/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'shared/tsconfig.json' is out of date because output file 'target-tsc-build/shared/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'shared/tsconfig.json'... - -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/shared/index.ts -/home/src/workspaces/solution/shared/typings-base/globals.d.ts -[HH:MM:SS AM] Project 'webpack/tsconfig.json' is out of date because output file 'target-tsc-build/webpack/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'webpack/tsconfig.json'... - -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/webpack/index.ts -/home/src/workspaces/solution/shared/typings-base/globals.d.ts -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/target-tsc-build/shared/index.d.ts] *new* -export declare const a: Unrestricted; - -//// [/home/src/workspaces/solution/target-tsc-build/shared/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 1; - -//// [/home/src/workspaces/solution/target-tsc-build/shared/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;","signature":"3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n","impliedNodeFormat":1},{"version":"0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/solution/target-tsc-build/shared/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../shared/index.ts", - "../../shared/typings-base/globals.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../shared/index.ts", - "../../shared/typings-base/globals.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../shared/index.ts", - "version": "038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;", - "signature": "3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;", - "signature": "3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../shared/typings-base/globals.d.ts", - "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "signature": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../.." - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1325 -} -//// [/home/src/workspaces/solution/target-tsc-build/webpack/index.d.ts] *new* -export declare const b: Unrestricted; - -//// [/home/src/workspaces/solution/target-tsc-build/webpack/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 1; - -//// [/home/src/workspaces/solution/target-tsc-build/webpack/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;","signature":"ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n","impliedNodeFormat":1},{"version":"0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/solution/target-tsc-build/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../webpack/index.ts", - "../../shared/typings-base/globals.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../webpack/index.ts", - "../../shared/typings-base/globals.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../webpack/index.ts", - "version": "55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;", - "signature": "ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;", - "signature": "ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../shared/typings-base/globals.d.ts", - "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "signature": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../.." - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1326 -} - -shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/shared/index.ts -*refresh* /home/src/workspaces/solution/shared/typings-base/globals.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/shared/index.ts - -webpack/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/webpack/index.ts -*refresh* /home/src/workspaces/solution/shared/typings-base/globals.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/webpack/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js deleted file mode 100644 index 7b909938d8..0000000000 --- a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js +++ /dev/null @@ -1,623 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/bar.ts] *new* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); -//// [/home/src/workspaces/project/bundling.ts] *new* -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} -//// [/home/src/workspaces/project/global.d.ts] *new* -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} -//// [/home/src/workspaces/project/index.ts] *new* -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); -//// [/home/src/workspaces/project/lazyIndex.ts] *new* -export { default as bar } from './bar'; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, - "isolatedModules": true, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/obj/bar.d.ts] *new* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - -//// [/home/src/workspaces/project/obj/bundling.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LazyAction = exports.LazyModule = void 0; -class LazyModule { - importCallback; - constructor(importCallback) { - this.importCallback = importCallback; - } -} -exports.LazyModule = LazyModule; -class LazyAction { - constructor(_lazyModule, _getter) { - } -} -exports.LazyAction = LazyAction; - -//// [/home/src/workspaces/project/obj/index.d.ts] *new* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lazyBar = void 0; -const bundling_1 = require("./bundling"); -const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* -export { default as bar } from './bar'; - -//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = void 0; -const bar_1 = require("./bar"); -Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); - -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/bundling.ts -*refresh* /home/src/workspaces/project/global.d.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/bundling.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: () => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3070 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [1]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js deleted file mode 100644 index d6c921c3f2..0000000000 --- a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js +++ /dev/null @@ -1,625 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/bar.ts] *new* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); -//// [/home/src/workspaces/project/bundling.ts] *new* -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} -//// [/home/src/workspaces/project/global.d.ts] *new* -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} -//// [/home/src/workspaces/project/index.ts] *new* -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); -//// [/home/src/workspaces/project/lazyIndex.ts] *new* -export { default as bar } from './bar'; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, - "isolatedModules": false, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/obj/bar.d.ts] *new* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - -//// [/home/src/workspaces/project/obj/bundling.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LazyAction = exports.LazyModule = void 0; -class LazyModule { - importCallback; - constructor(importCallback) { - this.importCallback = importCallback; - } -} -exports.LazyModule = LazyModule; -class LazyAction { - constructor(_lazyModule, _getter) { - } -} -exports.LazyAction = LazyAction; - -//// [/home/src/workspaces/project/obj/index.d.ts] *new* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lazyBar = void 0; -const bundling_1 = require("./bundling"); -const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* -export { default as bar } from './bar'; - -//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = void 0; -const bar_1 = require("./bar"); -Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); - -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/bundling.ts -*refresh* /home/src/workspaces/project/global.d.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/bundling.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: () => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/lazyIndex.js] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3070 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [1]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/lazyIndex.js] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js deleted file mode 100644 index bf8bfe4284..0000000000 --- a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ /dev/null @@ -1,998 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/bar.ts] *new* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); -//// [/home/src/workspaces/project/bundling.ts] *new* -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} -//// [/home/src/workspaces/project/global.d.ts] *new* -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} -//// [/home/src/workspaces/project/index.ts] *new* -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); -//// [/home/src/workspaces/project/lazyIndex.ts] *new* -export { default as bar } from './bar';import { default as bar } from './bar'; -bar("hello"); -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, - "isolatedModules": true, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/obj/bar.d.ts] *new* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - -//// [/home/src/workspaces/project/obj/bundling.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LazyAction = exports.LazyModule = void 0; -class LazyModule { - importCallback; - constructor(importCallback) { - this.importCallback = importCallback; - } -} -exports.LazyModule = LazyModule; -class LazyAction { - constructor(_lazyModule, _getter) { - } -} -exports.LazyAction = LazyAction; - -//// [/home/src/workspaces/project/obj/index.d.ts] *new* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lazyBar = void 0; -const bundling_1 = require("./bundling"); -const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* -export { default as bar } from './bar'; - -//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = void 0; -const bar_1 = require("./bar"); -Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); -const bar_2 = require("./bar"); -(0, bar_2.default)("hello"); - -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3165 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/bundling.ts -*refresh* /home/src/workspaces/project/global.d.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/bundling.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -tsgo --b --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -lazyIndex.ts:2:5 - error TS2554: Expected 0 arguments, but got 1. - -2 bar("hello"); -   ~~~~~~~ - - -Found 1 error in lazyIndex.ts:2 - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: () => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"pos":83,"end":90,"code":2554,"category":1,"message":"Expected 0 arguments, but got 1."}]]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../lazyIndex.ts", - [ - { - "pos": 83, - "end": 90, - "code": 2554, - "category": 1, - "message": "Expected 0 arguments, but got 1." - } - ] - ] - ], - "size": 3253 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [1]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'obj/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-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});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3165 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [2]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -tsgo --b --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -lazyIndex.ts:2:5 - error TS2554: Expected 0 arguments, but got 1. - -2 bar("hello"); -   ~~~~~~~ - - -Found 1 error in lazyIndex.ts:2 - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: () => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"pos":83,"end":90,"code":2554,"category":1,"message":"Expected 0 arguments, but got 1."}]]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../lazyIndex.ts", - [ - { - "pos": 83, - "end": 90, - "code": 2554, - "category": 1, - "message": "Expected 0 arguments, but got 1." - } - ] - ] - ], - "size": 3253 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [3]:: Fix Error -//// [/home/src/workspaces/project/lazyIndex.ts] *modified* -export { default as bar } from './bar';import { default as bar } from './bar'; -bar(); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'obj/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/lazyIndex.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = void 0; -const bar_1 = require("./bar"); -Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); -const bar_2 = require("./bar"); -(0, bar_2.default)(); - -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-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});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", - "signature": "5e4757586f6f5d494b6763f1e808313a-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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3117 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/lazyIndex.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts diff --git a/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js b/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js deleted file mode 100644 index 687612fe0b..0000000000 --- a/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js +++ /dev/null @@ -1,467 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* -/// -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 {} -interface SymbolConstructor { - readonly species: symbol; - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/common/nominal.js] *new* -/** - * @template T, Name - * @typedef {T & {[Symbol.species]: Name}} Nominal - */ -module.exports = {}; -//// [/home/src/workspaces/solution/common/tsconfig.json] *new* -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "composite": true, - }, - "include": ["nominal.js"], -} -//// [/home/src/workspaces/solution/sub-project-2/index.js] *new* -import { MyNominal } from '../sub-project/index'; - -const variable = { - key: /** @type {MyNominal} */('value'), -}; - -/** - * @return {keyof typeof variable} - */ -export function getVar() { - return 'key'; -} -//// [/home/src/workspaces/solution/sub-project-2/tsconfig.json] *new* -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "../sub-project" }, - ], - "include": ["./index.js"], -} -//// [/home/src/workspaces/solution/sub-project/index.js] *new* -import { Nominal } from '../common/nominal'; - -/** - * @typedef {Nominal} MyNominal - */ -//// [/home/src/workspaces/solution/sub-project/tsconfig.json] *new* -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "../common" }, - ], - "include": ["./index.js"], -} -//// [/home/src/workspaces/solution/tsconfig.base.json] *new* -{ - "compilerOptions": { - "skipLibCheck": true, - "rootDir": "./", - "outDir": "../lib", - "allowJs": true, - "checkJs": true, - "declaration": true, - }, -} -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "./sub-project" }, - { "path": "./sub-project-2" }, - ], - "include": [], -} - -tsgo --b -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -common/nominal.js:5:1 - error TS2309: An export assignment cannot be used in a module with other exported elements. - -5 module.exports = {}; -  ~~~~~~~~~~~~~~~~~~~ - -sub-project/index.js:1:10 - error TS2305: Module '"../../lib/common/nominal"' has no exported member 'Nominal'. - -1 import { Nominal } from '../common/nominal'; -   ~~~~~~~ - -sub-project-2/index.js:1:10 - error TS18042: 'MyNominal' is a type and cannot be imported in JavaScript files. Use 'import("../sub-project/index").MyNominal' in a JSDoc type annotation. - -1 import { MyNominal } from '../sub-project/index'; -   ~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 common/nominal.js:5 - 1 sub-project-2/index.js:1 - 1 sub-project/index.js:1 - -//// [/home/src/workspaces/lib/common/nominal.d.ts] *new* -export type Nominal = T & { - [Symbol.species]: Name; -}; -declare const _default: {}; -export = _default; - -//// [/home/src/workspaces/lib/common/nominal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @template T, Name - * @typedef {T & {[Symbol.species]: Name}} Nominal - */ -export = {}; -/** - * @template T, Name - * @typedef {T & {[Symbol.species]: Name}} Nominal - */ -module.exports = {}; - -//// [/home/src/workspaces/lib/common/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../solution/common/nominal.js"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19075dfba5b2d593b761ed8d8cd526f-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};","signature":"de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n","impliedNodeFormat":1}],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"semanticDiagnosticsPerFile":[[2,[{"pos":80,"end":99,"code":2309,"category":1,"message":"An export assignment cannot be used in a module with other exported elements."}]]],"latestChangedDtsFile":"./nominal.d.ts"} -//// [/home/src/workspaces/lib/common/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../solution/common/nominal.js" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../../solution/common/nominal.js" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../solution/common/nominal.js", - "version": "a19075dfba5b2d593b761ed8d8cd526f-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};", - "signature": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a19075dfba5b2d593b761ed8d8cd526f-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};", - "signature": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "allowJs": true, - "checkJs": true, - "composite": true, - "declaration": true, - "outDir": "..", - "rootDir": "../../solution", - "skipLibCheck": true - }, - "semanticDiagnosticsPerFile": [ - [ - "../../solution/common/nominal.js", - [ - { - "pos": 80, - "end": 99, - "code": 2309, - "category": 1, - "message": "An export assignment cannot be used in a module with other exported elements." - } - ] - ] - ], - "latestChangedDtsFile": "./nominal.d.ts", - "size": 1606 -} -//// [/home/src/workspaces/lib/sub-project-2/index.d.ts] *new* -declare const variable: { - key: Nominal; -}; -/** - * @return {keyof typeof variable} - */ -export declare function getVar(): keyof typeof variable; -export {}; - -//// [/home/src/workspaces/lib/sub-project-2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getVar = getVar; -const index_1 = require("../sub-project/index"); -const variable = { - key: 'value', -}; -/** - * @return {keyof typeof variable} - */ -function getVar() { - return 'key'; -} - -//// [/home/src/workspaces/lib/sub-project-2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../common/nominal.d.ts","../sub-project/index.d.ts","../../solution/sub-project-2/index.js"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n","225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n",{"version":"db2a90e082fd17d65127bda69975a727-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nexport function getVar() {\n return 'key';\n}","signature":"f2cd6630b2dfa04d1fc92179f15d1647-declare const variable: {\n key: Nominal;\n};\n/**\n * @return {keyof typeof variable}\n */\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[[4,[{"pos":9,"end":18,"code":18042,"category":1,"message":"'MyNominal' is a type and cannot be imported in JavaScript files. Use 'import(\"../sub-project/index\").MyNominal' in a JSDoc type annotation."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/lib/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../solution/sub-project-2/index.js" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../common/nominal.d.ts", - "../sub-project/index.d.ts", - "../../solution/sub-project-2/index.js" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../common/nominal.d.ts", - "version": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", - "signature": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../sub-project/index.d.ts", - "version": "225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n", - "signature": "225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../solution/sub-project-2/index.js", - "version": "db2a90e082fd17d65127bda69975a727-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nexport function getVar() {\n return 'key';\n}", - "signature": "f2cd6630b2dfa04d1fc92179f15d1647-declare const variable: {\n key: Nominal;\n};\n/**\n * @return {keyof typeof variable}\n */\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "db2a90e082fd17d65127bda69975a727-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nexport function getVar() {\n return 'key';\n}", - "signature": "f2cd6630b2dfa04d1fc92179f15d1647-declare const variable: {\n key: Nominal;\n};\n/**\n * @return {keyof typeof variable}\n */\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../common/nominal.d.ts" - ], - [ - "../sub-project/index.d.ts" - ] - ], - "options": { - "allowJs": true, - "checkJs": true, - "composite": true, - "declaration": true, - "outDir": "..", - "rootDir": "../../solution", - "skipLibCheck": true - }, - "referencedMap": { - "../sub-project/index.d.ts": [ - "../common/nominal.d.ts" - ], - "../../solution/sub-project-2/index.js": [ - "../sub-project/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../../solution/sub-project-2/index.js", - [ - { - "pos": 9, - "end": 18, - "code": 18042, - "category": 1, - "message": "'MyNominal' is a type and cannot be imported in JavaScript files. Use 'import(\"../sub-project/index\").MyNominal' in a JSDoc type annotation." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2322 -} -//// [/home/src/workspaces/lib/sub-project/index.d.ts] *new* -import { Nominal } from '../common/nominal'; -export type MyNominal = Nominal; -/** - * @typedef {Nominal} MyNominal - */ - -//// [/home/src/workspaces/lib/sub-project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const nominal_1 = require("../common/nominal"); -/** - * @typedef {Nominal} MyNominal - */ - -//// [/home/src/workspaces/lib/sub-project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../common/nominal.d.ts","../../solution/sub-project/index.js"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n",{"version":"00b7836eaf1e026f7764b7be6efcc8f5-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */","signature":"225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":9,"end":16,"code":2305,"category":1,"message":"Module '\"../../lib/common/nominal\"' has no exported member 'Nominal'."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/lib/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../solution/sub-project/index.js" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../common/nominal.d.ts", - "../../solution/sub-project/index.js" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../common/nominal.d.ts", - "version": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", - "signature": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../solution/sub-project/index.js", - "version": "00b7836eaf1e026f7764b7be6efcc8f5-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */", - "signature": "225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "00b7836eaf1e026f7764b7be6efcc8f5-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */", - "signature": "225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../common/nominal.d.ts" - ] - ], - "options": { - "allowJs": true, - "checkJs": true, - "composite": true, - "declaration": true, - "outDir": "..", - "rootDir": "../../solution", - "skipLibCheck": true - }, - "referencedMap": { - "../../solution/sub-project/index.js": [ - "../common/nominal.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../../solution/sub-project/index.js", - [ - { - "pos": 9, - "end": 16, - "code": 2305, - "category": 1, - "message": "Module '\"../../lib/common/nominal\"' has no exported member 'Nominal'." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 1877 -} - -common/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/common/nominal.js -Signatures:: -(stored at emit) /home/src/workspaces/solution/common/nominal.js - -sub-project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/lib/common/nominal.d.ts -*refresh* /home/src/workspaces/solution/sub-project/index.js -Signatures:: -(stored at emit) /home/src/workspaces/solution/sub-project/index.js - -sub-project-2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/lib/common/nominal.d.ts -*refresh* /home/src/workspaces/lib/sub-project/index.d.ts -*refresh* /home/src/workspaces/solution/sub-project-2/index.js -Signatures:: -(stored at emit) /home/src/workspaces/solution/sub-project-2/index.js diff --git a/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js b/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js deleted file mode 100644 index f3ec772bf0..0000000000 --- a/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js +++ /dev/null @@ -1,412 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/common/index.ts] *new* -import x = require("./obj.json"); -export = x; -//// [/home/src/workspaces/solution/common/obj.json] *new* -{ - "val": 42, -} -//// [/home/src/workspaces/solution/common/tsconfig.json] *new* -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "outDir": null, - "composite": true, - }, - "include": ["index.ts", "obj.json"], -} -//// [/home/src/workspaces/solution/sub-project-2/index.js] *new* -import { m } from '../sub-project/index'; - -const variable = { - key: m, -}; - -export function getVar() { - return variable; -} -//// [/home/src/workspaces/solution/sub-project-2/tsconfig.json] *new* -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "../sub-project" }, - ], - "include": ["./index.js"], -} -//// [/home/src/workspaces/solution/sub-project/index.js] *new* -import mod from '../common'; - -export const m = mod; -//// [/home/src/workspaces/solution/sub-project/tsconfig.json] *new* -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "../common" }, - ], - "include": ["./index.js"], -} -//// [/home/src/workspaces/solution/tsconfig.base.json] *new* -{ - "compilerOptions": { - "skipLibCheck": true, - "rootDir": "./", - "outDir": "../out", - "allowJs": true, - "checkJs": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "declaration": true, - }, -} -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "./sub-project" }, - { "path": "./sub-project-2" }, - ], - "include": [], -} - -tsgo -b -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/out/sub-project-2/index.d.ts] *new* -export declare function getVar(): { - key: { - val: number; - }; -}; - -//// [/home/src/workspaces/out/sub-project-2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getVar = getVar; -const index_1 = require("../sub-project/index"); -const variable = { - key: index_1.m, -}; -function getVar() { - return variable; -} - -//// [/home/src/workspaces/out/sub-project-2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../sub-project/index.d.ts","../../solution/sub-project-2/index.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n",{"version":"56ecb5738c72a131a1514873df723721-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}","signature":"f6a0b1edad82fddabb5c98ad5da1660d-export declare function getVar(): {\n key: {\n val: number;\n };\n};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/out/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../solution/sub-project-2/index.js" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../sub-project/index.d.ts", - "../../solution/sub-project-2/index.js" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../sub-project/index.d.ts", - "version": "b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n", - "signature": "b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../solution/sub-project-2/index.js", - "version": "56ecb5738c72a131a1514873df723721-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}", - "signature": "f6a0b1edad82fddabb5c98ad5da1660d-export declare function getVar(): {\n key: {\n val: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "56ecb5738c72a131a1514873df723721-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}", - "signature": "f6a0b1edad82fddabb5c98ad5da1660d-export declare function getVar(): {\n key: {\n val: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../sub-project/index.d.ts" - ] - ], - "options": { - "allowJs": true, - "checkJs": true, - "composite": true, - "declaration": true, - "esModuleInterop": true, - "outDir": "..", - "rootDir": "../../solution", - "skipLibCheck": true - }, - "referencedMap": { - "../../solution/sub-project-2/index.js": [ - "../sub-project/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1580 -} -//// [/home/src/workspaces/out/sub-project/index.d.ts] *new* -export declare const m: { - val: number; -}; - -//// [/home/src/workspaces/out/sub-project/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const common_1 = __importDefault(require("../common")); -exports.m = common_1.default; - -//// [/home/src/workspaces/out/sub-project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../../solution/common/obj.json","../../solution/common/index.d.ts","../../solution/sub-project/index.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}"},"641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n",{"version":"4c69d0c670e9dc788b5e107f277aa8ab-import mod from '../common';\n\nexport const m = mod;","signature":"b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"referencedMap":[[3,1],[4,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/out/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../solution/sub-project/index.js" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../../solution/common/obj.json", - "../../solution/common/index.d.ts", - "../../solution/sub-project/index.js" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../solution/common/obj.json", - "version": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}", - "signature": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}", - "impliedNodeFormat": "None", - "original": { - "version": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}" - } - }, - { - "fileName": "../../solution/common/index.d.ts", - "version": "641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n", - "signature": "641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../solution/sub-project/index.js", - "version": "4c69d0c670e9dc788b5e107f277aa8ab-import mod from '../common';\n\nexport const m = mod;", - "signature": "b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4c69d0c670e9dc788b5e107f277aa8ab-import mod from '../common';\n\nexport const m = mod;", - "signature": "b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../solution/common/obj.json" - ], - [ - "../../solution/common/index.d.ts" - ] - ], - "options": { - "allowJs": true, - "checkJs": true, - "composite": true, - "declaration": true, - "esModuleInterop": true, - "outDir": "..", - "rootDir": "../../solution", - "skipLibCheck": true - }, - "referencedMap": { - "../../solution/common/index.d.ts": [ - "../../solution/common/obj.json" - ], - "../../solution/sub-project/index.js": [ - "../../solution/common/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1583 -} -//// [/home/src/workspaces/solution/common/index.d.ts] *new* -import x = require("./obj.json"); -export = x; - -//// [/home/src/workspaces/solution/common/index.js] *new* -"use strict"; -const x = require("./obj.json"); -module.exports = x; - -//// [/home/src/workspaces/solution/common/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./obj.json","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}"},{"version":"6d5621da1dbc82712844ae5e706b9295-import x = require(\"./obj.json\");\nexport = x;","signature":"641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"rootDir":"..","skipLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/solution/common/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./obj.json", - "./index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./obj.json", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./obj.json", - "version": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}", - "signature": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}", - "impliedNodeFormat": "None", - "original": { - "version": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}" - } - }, - { - "fileName": "./index.ts", - "version": "6d5621da1dbc82712844ae5e706b9295-import x = require(\"./obj.json\");\nexport = x;", - "signature": "641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6d5621da1dbc82712844ae5e706b9295-import x = require(\"./obj.json\");\nexport = x;", - "signature": "641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./obj.json" - ] - ], - "options": { - "allowJs": true, - "checkJs": true, - "composite": true, - "declaration": true, - "esModuleInterop": true, - "rootDir": "..", - "skipLibCheck": true - }, - "referencedMap": { - "./index.ts": [ - "./obj.json" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1381 -} - -common/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/common/obj.json -*refresh* /home/src/workspaces/solution/common/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/common/index.ts - -sub-project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/common/obj.json -*refresh* /home/src/workspaces/solution/common/index.d.ts -*refresh* /home/src/workspaces/solution/sub-project/index.js -Signatures:: -(stored at emit) /home/src/workspaces/solution/sub-project/index.js - -sub-project-2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/out/sub-project/index.d.ts -*refresh* /home/src/workspaces/solution/sub-project-2/index.js -Signatures:: -(stored at emit) /home/src/workspaces/solution/sub-project-2/index.js diff --git a/testdata/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js b/testdata/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js deleted file mode 100644 index 7ae50ab8ed..0000000000 --- a/testdata/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js +++ /dev/null @@ -1,397 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/globals.d.ts] *new* -interface SymbolConstructor { - (description?: string | number): symbol; -} -declare var Symbol: SymbolConstructor; -//// [/home/src/workspaces/project/src/hkt.ts] *new* -export interface HKT { } -//// [/home/src/workspaces/project/src/main.ts] *new* -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} -const x = 10; -type A = HKT[typeof sym]; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "rootDir": "src", - "incremental": true, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/hkt.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sym = Symbol(); -const x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true,"impliedNodeFormat":1},"25b260df8f8588de5a4313af5c0708b6-export interface HKT { }","13c368d0fdd135ce10c5200ffd5a0664-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];"],"fileIdsList":[[3]],"options":{"rootDir":"./src"},"referencedMap":[[4,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/globals.d.ts", - "./src/hkt.ts", - "./src/main.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/globals.d.ts", - "./src/hkt.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/globals.d.ts", - "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/hkt.ts", - "version": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", - "signature": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/main.ts", - "version": "13c368d0fdd135ce10c5200ffd5a0664-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];", - "signature": "13c368d0fdd135ce10c5200ffd5a0664-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];", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./src/hkt.ts" - ] - ], - "options": { - "rootDir": "./src" - }, - "referencedMap": { - "./src/main.ts": [ - "./src/hkt.ts" - ] - }, - "size": 1484 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/globals.d.ts -*refresh* /home/src/workspaces/project/src/hkt.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: - - -Edit [0]:: incremental-declaration-doesnt-change -//// [/home/src/workspaces/project/src/main.ts] *modified* -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} - -type A = HKT[typeof sym]; - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sym = Symbol(); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true,"impliedNodeFormat":1},"25b260df8f8588de5a4313af5c0708b6-export interface HKT { }",{"version":"5e9e1d9d8d08565504f44a7f2722c67d-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];","signature":"2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"rootDir":"./src"},"referencedMap":[[4,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/globals.d.ts", - "./src/hkt.ts", - "./src/main.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/globals.d.ts", - "./src/hkt.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/globals.d.ts", - "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/hkt.ts", - "version": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", - "signature": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/main.ts", - "version": "5e9e1d9d8d08565504f44a7f2722c67d-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];", - "signature": "2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5e9e1d9d8d08565504f44a7f2722c67d-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];", - "signature": "2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/hkt.ts" - ] - ], - "options": { - "rootDir": "./src" - }, - "referencedMap": { - "./src/main.ts": [ - "./src/hkt.ts" - ] - }, - "size": 1711 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/main.ts - - -Edit [1]:: incremental-declaration-doesnt-change -//// [/home/src/workspaces/project/src/main.ts] *modified* -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} - -type A = HKT[typeof sym];const x = 10; - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sym = Symbol(); -const x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true,"impliedNodeFormat":1},"25b260df8f8588de5a4313af5c0708b6-export interface HKT { }",{"version":"1fd9f291f4caa2615b285320a7f52aa7-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];const x = 10;","signature":"2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"rootDir":"./src"},"referencedMap":[[4,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/globals.d.ts", - "./src/hkt.ts", - "./src/main.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/globals.d.ts", - "./src/hkt.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/globals.d.ts", - "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/hkt.ts", - "version": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", - "signature": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/main.ts", - "version": "1fd9f291f4caa2615b285320a7f52aa7-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];const x = 10;", - "signature": "2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fd9f291f4caa2615b285320a7f52aa7-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];const x = 10;", - "signature": "2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/hkt.ts" - ] - ], - "options": { - "rootDir": "./src" - }, - "referencedMap": { - "./src/main.ts": [ - "./src/hkt.ts" - ] - }, - "size": 1724 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/main.ts diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js b/testdata/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js deleted file mode 100644 index 4c0233d595..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js +++ /dev/null @@ -1,214 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a/src/index.ts] *new* - -//// [/home/src/workspaces/project/a/tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true - } -} -//// [/home/src/workspaces/project/b/package.json] *new* -{ - "name": "b", - "type": "module" -} -//// [/home/src/workspaces/project/b/src/index.ts] *new* -import pg from "pg"; -pg.foo(); -//// [/home/src/workspaces/project/b/tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true, - "module": "node16" - }, -} -//// [/home/src/workspaces/project/node_modules/@types/pg/index.d.ts] *new* -export function foo(): void; -//// [/home/src/workspaces/project/node_modules/@types/pg/package.json] *new* -{ - "name": "@types/pg", - "types": "index.d.ts" -} - -tsgo -b a b --verbose --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * a/tsconfig.json - * b/tsconfig.json - -[HH:MM:SS AM] Project 'a/tsconfig.json' is out of date because output file 'a/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'a/tsconfig.json'... - -======== Resolving type reference directive 'pg', containing file '/home/src/workspaces/project/a/__inferred type names__.ts', root directory '/home/src/workspaces/project/a/node_modules/@types,/home/src/workspaces/project/node_modules/@types,/home/src/workspaces/node_modules/@types,/home/src/node_modules/@types,/home/node_modules/@types,/node_modules/@types'. ======== -Resolving with primary search path '/home/src/workspaces/project/a/node_modules/@types, /home/src/workspaces/project/node_modules/@types, /home/src/workspaces/node_modules/@types, /home/src/node_modules/@types, /home/node_modules/@types, /node_modules/@types'. -Directory '/home/src/workspaces/project/a/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/home/src/workspaces/project/node_modules/@types/pg/package.json'. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -======== Type reference directive 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', primary: true. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -a/src/index.ts - Matched by default include pattern '**/*' -node_modules/@types/pg/index.d.ts - Entry point for implicit type library 'pg' -[HH:MM:SS AM] Project 'b/tsconfig.json' is out of date because output file 'b/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'b/tsconfig.json'... - -======== Resolving module 'pg' from '/home/src/workspaces/project/b/src/index.ts'. ======== -Module resolution kind is not specified, using 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/workspaces/project/b/src/package.json' does not exist. -Found 'package.json' at '/home/src/workspaces/project/b/package.json'. -Loading module 'pg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/workspaces/project/b/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/b/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/b/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/b/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/home/src/workspaces/project/node_modules/@types/pg/package.json'. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -======== Module name 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. ======== -======== Resolving type reference directive 'pg', containing file '/home/src/workspaces/project/b/__inferred type names__.ts', root directory '/home/src/workspaces/project/b/node_modules/@types,/home/src/workspaces/project/node_modules/@types,/home/src/workspaces/node_modules/@types,/home/src/node_modules/@types,/home/node_modules/@types,/node_modules/@types'. ======== -Resolving with primary search path '/home/src/workspaces/project/b/node_modules/@types, /home/src/workspaces/project/node_modules/@types, /home/src/workspaces/node_modules/@types, /home/src/node_modules/@types, /home/node_modules/@types, /node_modules/@types'. -Directory '/home/src/workspaces/project/b/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/home/src/workspaces/project/node_modules/@types/pg/package.json'. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -======== Type reference directive 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', primary: true. ======== -../../tslibs/TS/Lib/lib.es2022.full.d.ts - Default library for target 'ES2022' -node_modules/@types/pg/index.d.ts - Imported via "pg" from file 'b/src/index.ts' - Entry point for implicit type library 'pg' - File is CommonJS module because 'node_modules/@types/pg/package.json' does not have field "type" -b/src/index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'b/package.json' has field "type" with value "module" -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a/src/index.js] *new* - -//// [/home/src/workspaces/project/a/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./src/index.ts"]} -//// [/home/src/workspaces/project/a/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": "./src/index.ts" - } - ], - "size": 53 -} -//// [/home/src/workspaces/project/b/src/index.js] *new* -import pg from "pg"; -pg.foo(); - -//// [/home/src/workspaces/project/b/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./src/index.ts"]} -//// [/home/src/workspaces/project/b/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": "./src/index.ts" - } - ], - "size": 53 -} - -a/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a/src/index.ts -*refresh* /home/src/workspaces/project/node_modules/@types/pg/index.d.ts -Signatures:: - -b/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /home/src/workspaces/project/node_modules/@types/pg/index.d.ts -*refresh* /home/src/workspaces/project/b/src/index.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b a b --verbose --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * a/tsconfig.json - * b/tsconfig.json - -[HH:MM:SS AM] Project 'a/tsconfig.json' is up to date because newest input 'a/src/index.ts' is older than output 'a/src/index.js' - -[HH:MM:SS AM] Project 'b/tsconfig.json' is up to date because newest input 'b/src/index.ts' is older than output 'b/src/index.js' - - diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/resolution-from-d.ts-of-referenced-project.js b/testdata/baselines/reference/tsbuild/moduleResolution/resolution-from-d.ts-of-referenced-project.js deleted file mode 100644 index b429271e8e..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleResolution/resolution-from-d.ts-of-referenced-project.js +++ /dev/null @@ -1,290 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/common.d.ts] *new* -export type OnValue = (value: number) => void -//// [/home/src/workspaces/project/consumer/index.ts] *new* -import { ValueProducerDeclaration, ValueProducerFromTs } from "@producer" -declare let v: ValueProducerDeclaration; -// n is implicitly any because onValue is actually any (despite what the tooltip says) -v.onValue = (n) => { -} -// n is implicitly number as expected -declare let v2: ValueProducerFromTs; -v2.onValue = (n) => { -} -//// [/home/src/workspaces/project/consumer/tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true, - "module": "nodenext", - "moduleResolution": "nodenext", - "paths": { - "@producer": ["../producer/index"], - }, - }, - "references": [ - { "path": "../producer" }, - ], -} -//// [/home/src/workspaces/project/producer/in-js.d.ts] *new* -import { OnValue } from "@common" -export interface ValueProducerDeclaration { - onValue: OnValue; -} -//// [/home/src/workspaces/project/producer/index.ts] *new* -export { ValueProducerDeclaration } from "./in-js" -import { OnValue } from "@common" -export interface ValueProducerFromTs { - onValue: OnValue; -} -//// [/home/src/workspaces/project/producer/tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true, - "composite": true, - "module": "nodenext", - "moduleResolution": "nodenext", - "paths": { - "@common": ["../common.d.ts"], - }, - }, -} - -tsgo --b consumer --traceResolution -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * producer/tsconfig.json - * consumer/tsconfig.json - -[HH:MM:SS AM] Project 'producer/tsconfig.json' is out of date because output file 'producer/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'producer/tsconfig.json'... - -======== Resolving module '@common' from '/home/src/workspaces/project/producer/in-js.d.ts'. ======== -Explicitly specified module resolution kind: 'NodeNext'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -'paths' option is specified, looking for a pattern to match module name '@common'. -Module name '@common', matched pattern '@common'. -Trying substitution '../common.d.ts', candidate module location: '../common.d.ts'. -File '/home/src/workspaces/project/common.d.ts' exists - use it as a name resolution result. -======== Module name '@common' was successfully resolved to '/home/src/workspaces/project/common.d.ts'. ======== -======== Resolving module './in-js' from '/home/src/workspaces/project/producer/index.ts'. ======== -Explicitly specified module resolution kind: 'NodeNext'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -Loading module as file / folder, candidate module location '/home/src/workspaces/project/producer/in-js', target file types: TypeScript, JavaScript, Declaration. -File '/home/src/workspaces/project/producer/in-js.ts' does not exist. -File '/home/src/workspaces/project/producer/in-js.tsx' does not exist. -File '/home/src/workspaces/project/producer/in-js.d.ts' exists - use it as a name resolution result. -======== Module name './in-js' was successfully resolved to '/home/src/workspaces/project/producer/in-js.d.ts'. ======== -======== Resolving module '@common' from '/home/src/workspaces/project/producer/index.ts'. ======== -Explicitly specified module resolution kind: 'NodeNext'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -'paths' option is specified, looking for a pattern to match module name '@common'. -Module name '@common', matched pattern '@common'. -Trying substitution '../common.d.ts', candidate module location: '../common.d.ts'. -File '/home/src/workspaces/project/common.d.ts' exists - use it as a name resolution result. -======== Module name '@common' was successfully resolved to '/home/src/workspaces/project/common.d.ts'. ======== -[HH:MM:SS AM] Project 'consumer/tsconfig.json' is out of date because output file 'consumer/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'consumer/tsconfig.json'... - -======== Resolving module '@producer' from '/home/src/workspaces/project/consumer/index.ts'. ======== -Explicitly specified module resolution kind: 'NodeNext'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -'paths' option is specified, looking for a pattern to match module name '@producer'. -Module name '@producer', matched pattern '@producer'. -Trying substitution '../producer/index', candidate module location: '../producer/index'. -Loading module as file / folder, candidate module location '/home/src/workspaces/project/producer/index', target file types: TypeScript, JavaScript, Declaration. -File '/home/src/workspaces/project/producer/index.ts' exists - use it as a name resolution result. -======== Module name '@producer' was successfully resolved to '/home/src/workspaces/project/producer/index.ts'. ======== -======== Resolving module './in-js' from '/home/src/workspaces/project/producer/index.ts'. ======== -Using compiler options of project reference redirect '/home/src/workspaces/project/producer/tsconfig.json'. -Explicitly specified module resolution kind: 'NodeNext'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -Loading module as file / folder, candidate module location '/home/src/workspaces/project/producer/in-js', target file types: TypeScript, JavaScript, Declaration. -File '/home/src/workspaces/project/producer/in-js.ts' does not exist. -File '/home/src/workspaces/project/producer/in-js.tsx' does not exist. -File '/home/src/workspaces/project/producer/in-js.d.ts' exists - use it as a name resolution result. -======== Module name './in-js' was successfully resolved to '/home/src/workspaces/project/producer/in-js.d.ts'. ======== -======== Resolving module '@common' from '/home/src/workspaces/project/producer/index.ts'. ======== -Using compiler options of project reference redirect '/home/src/workspaces/project/producer/tsconfig.json'. -Explicitly specified module resolution kind: 'NodeNext'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -'paths' option is specified, looking for a pattern to match module name '@common'. -Module name '@common', matched pattern '@common'. -Trying substitution '../common.d.ts', candidate module location: '../common.d.ts'. -File '/home/src/workspaces/project/common.d.ts' exists - use it as a name resolution result. -======== Module name '@common' was successfully resolved to '/home/src/workspaces/project/common.d.ts'. ======== -======== Resolving module '@common' from '/home/src/workspaces/project/producer/in-js.d.ts'. ======== -Using compiler options of project reference redirect '/home/src/workspaces/project/producer/tsconfig.json'. -Explicitly specified module resolution kind: 'NodeNext'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -'paths' option is specified, looking for a pattern to match module name '@common'. -Module name '@common', matched pattern '@common'. -Trying substitution '../common.d.ts', candidate module location: '../common.d.ts'. -File '/home/src/workspaces/project/common.d.ts' exists - use it as a name resolution result. -======== Module name '@common' was successfully resolved to '/home/src/workspaces/project/common.d.ts'. ======== -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/consumer/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// n is implicitly any because onValue is actually any (despite what the tooltip says) -v.onValue = (n) => { -}; -v2.onValue = (n) => { -}; - -//// [/home/src/workspaces/project/consumer/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./index.ts"]} -//// [/home/src/workspaces/project/consumer/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": "./index.ts" - } - ], - "size": 49 -} -//// [/home/src/workspaces/project/producer/index.d.ts] *new* -export { ValueProducerDeclaration } from "./in-js"; -import { OnValue } from "@common"; -export interface ValueProducerFromTs { - onValue: OnValue; -} - -//// [/home/src/workspaces/project/producer/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/producer/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[3,4]],"fileNames":["lib.esnext.full.d.ts","../common.d.ts","./in-js.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"3a9dc77bc99684cad72839382a1f46cb-export type OnValue = (value: number) => void","7677191ddc32f3fe5aa447395ff0553a-import { OnValue } from \"@common\"\nexport interface ValueProducerDeclaration {\n onValue: OnValue;\n}",{"version":"3bb4cb1dd0764fa7c558b11ba246518a-export { ValueProducerDeclaration } from \"./in-js\"\nimport { OnValue } from \"@common\"\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}","signature":"846f65cd8d68b44b74d0de4a41b17245-export { ValueProducerDeclaration } from \"./in-js\";\nimport { OnValue } from \"@common\";\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}\n","impliedNodeFormat":1}],"fileIdsList":[[2],[2,3]],"options":{"composite":true,"module":199,"strict":true},"referencedMap":[[3,1],[4,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/project/producer/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./in-js.d.ts", - "./index.ts" - ], - "original": [ - 3, - 4 - ] - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "../common.d.ts", - "./in-js.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../common.d.ts", - "version": "3a9dc77bc99684cad72839382a1f46cb-export type OnValue = (value: number) => void", - "signature": "3a9dc77bc99684cad72839382a1f46cb-export type OnValue = (value: number) => void", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./in-js.d.ts", - "version": "7677191ddc32f3fe5aa447395ff0553a-import { OnValue } from \"@common\"\nexport interface ValueProducerDeclaration {\n onValue: OnValue;\n}", - "signature": "7677191ddc32f3fe5aa447395ff0553a-import { OnValue } from \"@common\"\nexport interface ValueProducerDeclaration {\n onValue: OnValue;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "3bb4cb1dd0764fa7c558b11ba246518a-export { ValueProducerDeclaration } from \"./in-js\"\nimport { OnValue } from \"@common\"\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}", - "signature": "846f65cd8d68b44b74d0de4a41b17245-export { ValueProducerDeclaration } from \"./in-js\";\nimport { OnValue } from \"@common\";\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3bb4cb1dd0764fa7c558b11ba246518a-export { ValueProducerDeclaration } from \"./in-js\"\nimport { OnValue } from \"@common\"\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}", - "signature": "846f65cd8d68b44b74d0de4a41b17245-export { ValueProducerDeclaration } from \"./in-js\";\nimport { OnValue } from \"@common\";\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../common.d.ts" - ], - [ - "../common.d.ts", - "./in-js.d.ts" - ] - ], - "options": { - "composite": true, - "module": 199, - "strict": true - }, - "referencedMap": { - "./in-js.d.ts": [ - "../common.d.ts" - ], - "./index.ts": [ - "../common.d.ts", - "./in-js.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1713 -} - -producer/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/common.d.ts -*refresh* /home/src/workspaces/project/producer/in-js.d.ts -*refresh* /home/src/workspaces/project/producer/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/producer/index.ts - -consumer/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/common.d.ts -*refresh* /home/src/workspaces/project/producer/in-js.d.ts -*refresh* /home/src/workspaces/project/producer/index.d.ts -*refresh* /home/src/workspaces/project/consumer/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js deleted file mode 100644 index 45b4bc5898..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js +++ /dev/null @@ -1,251 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/node_modules/pkg2] -> /user/username/projects/myproject/packages/pkg2 *new* -//// [/user/username/projects/myproject/packages/pkg1/index.ts] *new* -import type { TheNum } from 'pkg2' -export const theNum: TheNum = 42; -//// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "build", - "preserveSymlinks": true - }, - "references": [{ "path": "../pkg2" }] -} -//// [/user/username/projects/myproject/packages/pkg2/const.ts] *new* -export type TheNum = 42; -//// [/user/username/projects/myproject/packages/pkg2/index.ts] *new* -export type { TheNum } from 'const'; -//// [/user/username/projects/myproject/packages/pkg2/package.json] *new* -{ - "name": "pkg2", - "version": "1.0.0", - "main": "build/index.js" -} -//// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "build", - "paths": { - "const": ["./const"] - }, - "preserveSymlinks": true, - }, -} - -tsgo -b packages/pkg1 --verbose --traceResolution -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * packages/pkg2/tsconfig.json - * packages/pkg1/tsconfig.json - -[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... - -======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'const'. -Module name 'const', matched pattern 'const'. -Trying substitution './const', candidate module location: './const'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, JavaScript, Declaration, JSON. -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'. ======== -[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... - -======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules/@types' 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. -'package.json' does not have a 'peerDependencies' field. -======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' with Package ID 'pkg2@1.0.0'. ======== -======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'const'. -Module name 'const', matched pattern 'const'. -Trying substitution './const', candidate module location: './const'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, JavaScript, Declaration, JSON. -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'. ======== -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.theNum = void 0; -exports.theNum = 42; - -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../index.ts"]} -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../index.ts" - ], - "original": "../index.ts" - } - ], - "size": 50 -} -//// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] *new* -export type TheNum = 42; - -//// [/user/username/projects/myproject/packages/pkg2/build/const.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] *new* -export type { TheNum } from 'const'; - -//// [/user/username/projects/myproject/packages/pkg2/build/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';","signature":"1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../const.ts", - "../index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../const.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../const.ts", - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';", - "signature": "1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';", - "signature": "1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../const.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../index.ts": [ - "../const.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1364 -} - -packages/pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/const.ts -*refresh* /user/username/projects/myproject/packages/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/packages/pkg2/const.ts -(stored at emit) /user/username/projects/myproject/packages/pkg2/index.ts - -packages/pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.ts -*refresh* /user/username/projects/myproject/node_modules/pkg2/build/index.d.ts -*refresh* /user/username/projects/myproject/packages/pkg1/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js deleted file mode 100644 index 3744082d9d..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js +++ /dev/null @@ -1,252 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/node_modules/pkg2] -> /user/username/projects/myproject/packages/pkg2 *new* -//// [/user/username/projects/myproject/packages/pkg1/index.ts] *new* -import type { TheNum } from 'pkg2' -export const theNum: TheNum = 42; -//// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "build", - "preserveSymlinks": false - }, - "references": [{ "path": "../pkg2" }] -} -//// [/user/username/projects/myproject/packages/pkg2/const.ts] *new* -export type TheNum = 42; -//// [/user/username/projects/myproject/packages/pkg2/index.ts] *new* -export type { TheNum } from 'const'; -//// [/user/username/projects/myproject/packages/pkg2/package.json] *new* -{ - "name": "pkg2", - "version": "1.0.0", - "main": "build/index.js" -} -//// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "build", - "paths": { - "const": ["./const"] - }, - "preserveSymlinks": false, - }, -} - -tsgo -b packages/pkg1 --verbose --traceResolution -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * packages/pkg2/tsconfig.json - * packages/pkg1/tsconfig.json - -[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... - -======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'const'. -Module name 'const', matched pattern 'const'. -Trying substitution './const', candidate module location: './const'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, JavaScript, Declaration, JSON. -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'. ======== -[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... - -======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules/@types' 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. -'package.json' does not have a 'peerDependencies' field. -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@1.0.0'. ======== -======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name 'const'. -Module name 'const', matched pattern 'const'. -Trying substitution './const', candidate module location: './const'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, JavaScript, Declaration, JSON. -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'. ======== -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.theNum = void 0; -exports.theNum = 42; - -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../index.ts"]} -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../index.ts" - ], - "original": "../index.ts" - } - ], - "size": 50 -} -//// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] *new* -export type TheNum = 42; - -//// [/user/username/projects/myproject/packages/pkg2/build/const.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] *new* -export type { TheNum } from 'const'; - -//// [/user/username/projects/myproject/packages/pkg2/build/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';","signature":"1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../const.ts", - "../index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../const.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../const.ts", - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';", - "signature": "1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';", - "signature": "1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../const.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../index.ts": [ - "../const.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1364 -} - -packages/pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/const.ts -*refresh* /user/username/projects/myproject/packages/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/packages/pkg2/const.ts -(stored at emit) /user/username/projects/myproject/packages/pkg2/index.ts - -packages/pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/build/index.d.ts -*refresh* /user/username/projects/myproject/packages/pkg1/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/shared-resolution-should-not-report-error.js b/testdata/baselines/reference/tsbuild/moduleResolution/shared-resolution-should-not-report-error.js deleted file mode 100644 index d66533dcd3..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleResolution/shared-resolution-should-not-report-error.js +++ /dev/null @@ -1,262 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/node_modules/a] -> /home/src/workspaces/project/packages/a *new* -//// [/home/src/workspaces/project/packages/a/index.js] *new* -export const a = 'a'; -//// [/home/src/workspaces/project/packages/a/package.json] *new* -{ - "name": "a", - "version": "0.0.0", - "type": "module", - "exports": { - ".": { - "types": "./types/index.d.ts", - "default": "./index.js" - } - } -} -//// [/home/src/workspaces/project/packages/a/test/index.js] *new* -import 'a'; -//// [/home/src/workspaces/project/packages/a/tsconfig.json] *new* -{ - "compilerOptions": { - "checkJs": true, - "composite": true, - "declaration": true, - "emitDeclarationOnly": true, - "module": "nodenext", - "outDir": "types", - }, -} -//// [/home/src/workspaces/project/packages/b/index.js] *new* -export { a } from 'a'; -//// [/home/src/workspaces/project/packages/b/package.json] *new* -{ - "name": "b", - "version": "0.0.0", - "type": "module" -} -//// [/home/src/workspaces/project/packages/b/tsconfig.json] *new* -{ -"references": [{ "path": "../a" }], - "compilerOptions": { - "checkJs": true, - "module": "nodenext", - "noEmit": true, - "noImplicitAny": true, - }, -} - -tsgo -b packages/b --verbose --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * packages/a/tsconfig.json - * packages/b/tsconfig.json - -[HH:MM:SS AM] Project 'packages/a/tsconfig.json' is out of date because output file 'packages/a/types/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/a/tsconfig.json'... - -======== Resolving module 'a' from '/home/src/workspaces/project/packages/a/test/index.js'. ======== -Module resolution kind is not specified, using 'NodeNext'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/workspaces/project/packages/a/test/package.json' does not exist. -Found 'package.json' at '/home/src/workspaces/project/packages/a/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './types/index.d.ts'. -File '/home/src/workspaces/project/packages/a/types/index.d.ts' does not exist. -Failed to resolve under condition 'types'. -Matched 'exports' condition 'default'. -Using 'exports' subpath '.' with target './index.js'. -File name '/home/src/workspaces/project/packages/a/index.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/project/packages/a/index.ts' does not exist. -File '/home/src/workspaces/project/packages/a/index.tsx' does not exist. -File '/home/src/workspaces/project/packages/a/index.d.ts' does not exist. -File '/home/src/workspaces/project/packages/a/index.js' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'default'. -Exiting conditional exports. -======== Module name 'a' was successfully resolved to '/home/src/workspaces/project/packages/a/index.js' with Package ID 'a/index.js@0.0.0'. ======== -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -packages/a/index.js - Matched by default include pattern '**/*' - Imported via 'a' from file 'packages/a/test/index.js' with packageId 'a/index.js@0.0.0' - File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" -packages/a/test/index.js - Matched by default include pattern '**/*' - File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" -[HH:MM:SS AM] Project 'packages/b/tsconfig.json' is out of date because output file 'packages/b/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/b/tsconfig.json'... - -======== Resolving module 'a' from '/home/src/workspaces/project/packages/b/index.js'. ======== -Module resolution kind is not specified, using 'NodeNext'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -Found 'package.json' at '/home/src/workspaces/project/packages/b/package.json'. -Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/workspaces/project/packages/b/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/packages/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/packages/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/packages/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/home/src/workspaces/project/node_modules/a/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './types/index.d.ts'. -File '/home/src/workspaces/project/node_modules/a/types/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/workspaces/project/node_modules/a/types/index.d.ts', result '/home/src/workspaces/project/packages/a/types/index.d.ts'. -======== Module name 'a' was successfully resolved to '/home/src/workspaces/project/packages/a/types/index.d.ts' with Package ID 'a/types/index.d.ts@0.0.0'. ======== -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -packages/a/types/index.d.ts - Imported via 'a' from file 'packages/b/index.js' with packageId 'a/types/index.d.ts@0.0.0' - File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" -packages/b/index.js - Matched by default include pattern '**/*' - File is ECMAScript module because 'packages/b/package.json' has field "type" with value "module" -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/packages/a/types/index.d.ts] *new* -export declare const a = "a"; - -//// [/home/src/workspaces/project/packages/a/types/test/index.d.ts] *new* -import 'a'; - -//// [/home/src/workspaces/project/packages/a/types/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.esnext.full.d.ts","../index.js","../test/index.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';","signature":"410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n","impliedNodeFormat":99},{"version":"25c2781885c8232d7ba0f67afa33aa44-import 'a';","signature":"518d564eba22abfaf340ce3ae18a4763-import 'a';\n","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"checkJs":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"module":199,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./test/index.d.ts"} -//// [/home/src/workspaces/project/packages/a/types/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../index.js", - "../test/index.js" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "../index.js", - "../test/index.js" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.js", - "version": "fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';", - "signature": "410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';", - "signature": "410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "../test/index.js", - "version": "25c2781885c8232d7ba0f67afa33aa44-import 'a';", - "signature": "518d564eba22abfaf340ce3ae18a4763-import 'a';\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "25c2781885c8232d7ba0f67afa33aa44-import 'a';", - "signature": "518d564eba22abfaf340ce3ae18a4763-import 'a';\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "../index.js" - ] - ], - "options": { - "checkJs": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "module": 199, - "outDir": "./" - }, - "referencedMap": { - "../test/index.js": [ - "../index.js" - ] - }, - "latestChangedDtsFile": "./test/index.d.ts", - "size": 1416 -} -//// [/home/src/workspaces/project/packages/b/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./index.js"]} -//// [/home/src/workspaces/project/packages/b/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.js" - ], - "original": "./index.js" - } - ], - "size": 49 -} - -packages/a/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/packages/a/index.js -*refresh* /home/src/workspaces/project/packages/a/test/index.js -Signatures:: -(stored at emit) /home/src/workspaces/project/packages/a/index.js -(stored at emit) /home/src/workspaces/project/packages/a/test/index.js - -packages/b/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/packages/a/types/index.d.ts -*refresh* /home/src/workspaces/project/packages/b/index.js -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js b/testdata/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js deleted file mode 100644 index 814527f39e..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js +++ /dev/null @@ -1,236 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/packages/pkg1.tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "typeRoots": ["./typeroot1"] - }, - "files": ["./pkg1_index.ts"], -} -//// [/home/src/workspaces/project/packages/pkg1_index.ts] *new* -export const theNum: TheNum = "type1"; -//// [/home/src/workspaces/project/packages/pkg2.tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "typeRoots": ["./typeroot2"] - }, - "files": ["./pkg2_index.ts"], -} -//// [/home/src/workspaces/project/packages/pkg2_index.ts] *new* -export const theNum: TheNum2 = "type2"; -//// [/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts] *new* -declare type TheNum = "type1"; -//// [/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts] *new* -declare type TheNum2 = "type2"; - -tsgo -b packages/pkg1.tsconfig.json packages/pkg2.tsconfig.json --verbose --traceResolution -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * packages/pkg1.tsconfig.json - * packages/pkg2.tsconfig.json - -[HH:MM:SS AM] Project 'packages/pkg1.tsconfig.json' is out of date because output file 'packages/pkg1.tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg1.tsconfig.json'... - -======== Resolving type reference directive 'sometype', containing file '/home/src/workspaces/project/packages/__inferred type names__.ts', root directory '/home/src/workspaces/project/packages/typeroot1'. ======== -Resolving with primary search path '/home/src/workspaces/project/packages/typeroot1'. -File '/home/src/workspaces/project/packages/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspaces/project/packages/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts', result '/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts', primary: true. ======== -[HH:MM:SS AM] Project 'packages/pkg2.tsconfig.json' is out of date because output file 'packages/pkg2.tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg2.tsconfig.json'... - -======== Resolving type reference directive 'sometype', containing file '/home/src/workspaces/project/packages/__inferred type names__.ts', root directory '/home/src/workspaces/project/packages/typeroot2'. ======== -Resolving with primary search path '/home/src/workspaces/project/packages/typeroot2'. -File '/home/src/workspaces/project/packages/typeroot2/sometype.d.ts' does not exist. -File '/home/src/workspaces/project/packages/typeroot2/sometype/package.json' does not exist. -File '/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts', result '/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts', primary: true. ======== -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/packages/pkg1.tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./pkg1_index.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f4662ef3bd793790375f811e7f7d599f-export const theNum: TheNum = \"type1\";","signature":"dea6d3f907d93004db9004d6cea5698d-export declare const theNum: TheNum;\n","impliedNodeFormat":1},{"version":"74a6031362359bba204461bbf64bca2c-declare type TheNum = \"type1\";","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./pkg1_index.d.ts"} -//// [/home/src/workspaces/project/packages/pkg1.tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg1_index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg1_index.ts", - "./typeroot1/sometype/index.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg1_index.ts", - "version": "f4662ef3bd793790375f811e7f7d599f-export const theNum: TheNum = \"type1\";", - "signature": "dea6d3f907d93004db9004d6cea5698d-export declare const theNum: TheNum;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f4662ef3bd793790375f811e7f7d599f-export const theNum: TheNum = \"type1\";", - "signature": "dea6d3f907d93004db9004d6cea5698d-export declare const theNum: TheNum;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./typeroot1/sometype/index.d.ts", - "version": "74a6031362359bba204461bbf64bca2c-declare type TheNum = \"type1\";", - "signature": "74a6031362359bba204461bbf64bca2c-declare type TheNum = \"type1\";", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "74a6031362359bba204461bbf64bca2c-declare type TheNum = \"type1\";", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./pkg1_index.d.ts", - "size": 1295 -} -//// [/home/src/workspaces/project/packages/pkg1_index.d.ts] *new* -export declare const theNum: TheNum; - -//// [/home/src/workspaces/project/packages/pkg1_index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.theNum = void 0; -exports.theNum = "type1"; - -//// [/home/src/workspaces/project/packages/pkg2.tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./pkg2_index.ts","./typeroot2/sometype/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5520638613ac947a47797c35d3ad9c4b-export const theNum: TheNum2 = \"type2\";","signature":"becc5ed6bddc5e1124b92e180d59b5e3-export declare const theNum: TheNum2;\n","impliedNodeFormat":1},{"version":"660a36a739fc0e581ff911c4d5604b0e-declare type TheNum2 = \"type2\";","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./pkg2_index.d.ts"} -//// [/home/src/workspaces/project/packages/pkg2.tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg2_index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg2_index.ts", - "./typeroot2/sometype/index.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg2_index.ts", - "version": "5520638613ac947a47797c35d3ad9c4b-export const theNum: TheNum2 = \"type2\";", - "signature": "becc5ed6bddc5e1124b92e180d59b5e3-export declare const theNum: TheNum2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5520638613ac947a47797c35d3ad9c4b-export const theNum: TheNum2 = \"type2\";", - "signature": "becc5ed6bddc5e1124b92e180d59b5e3-export declare const theNum: TheNum2;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./typeroot2/sometype/index.d.ts", - "version": "660a36a739fc0e581ff911c4d5604b0e-declare type TheNum2 = \"type2\";", - "signature": "660a36a739fc0e581ff911c4d5604b0e-declare type TheNum2 = \"type2\";", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "660a36a739fc0e581ff911c4d5604b0e-declare type TheNum2 = \"type2\";", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./pkg2_index.d.ts", - "size": 1298 -} -//// [/home/src/workspaces/project/packages/pkg2_index.d.ts] *new* -export declare const theNum: TheNum2; - -//// [/home/src/workspaces/project/packages/pkg2_index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.theNum = void 0; -exports.theNum = "type2"; - - -packages/pkg1.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/packages/pkg1_index.ts -*refresh* /home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/packages/pkg1_index.ts - -packages/pkg2.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/packages/pkg2_index.ts -*refresh* /home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/packages/pkg2_index.ts diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/when-resolution-is-not-shared.js b/testdata/baselines/reference/tsbuild/moduleResolution/when-resolution-is-not-shared.js deleted file mode 100644 index 6772e2211f..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleResolution/when-resolution-is-not-shared.js +++ /dev/null @@ -1,274 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/node_modules/a] -> /home/src/workspaces/project/packages/a *new* -//// [/home/src/workspaces/project/packages/a/index.js] *new* -export const a = 'a'; -//// [/home/src/workspaces/project/packages/a/package.json] *new* -{ - "name": "a", - "version": "0.0.0", - "type": "module", - "exports": { - ".": { - "types": "./types/index.d.ts", - "default": "./index.js" - } - } -} -//// [/home/src/workspaces/project/packages/a/test/index.js] *new* -import 'a'; -//// [/home/src/workspaces/project/packages/a/tsconfig.json] *new* -{ - "compilerOptions": { - "checkJs": true, - "composite": true, - "declaration": true, - "emitDeclarationOnly": true, - "module": "nodenext", - "outDir": "types", - }, -} -//// [/home/src/workspaces/project/packages/b/index.js] *new* -export { a } from 'a'; -//// [/home/src/workspaces/project/packages/b/package.json] *new* -{ - "name": "b", - "version": "0.0.0", - "type": "module" -} -//// [/home/src/workspaces/project/packages/b/tsconfig.json] *new* -{ -"references": [{ "path": "../a" }], - "compilerOptions": { - "checkJs": true, - "module": "nodenext", - "noEmit": true, - "noImplicitAny": true, - }, -} - -tsgo -b packages/a --verbose --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * packages/a/tsconfig.json - -[HH:MM:SS AM] Project 'packages/a/tsconfig.json' is out of date because output file 'packages/a/types/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/a/tsconfig.json'... - -======== Resolving module 'a' from '/home/src/workspaces/project/packages/a/test/index.js'. ======== -Module resolution kind is not specified, using 'NodeNext'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/workspaces/project/packages/a/test/package.json' does not exist. -Found 'package.json' at '/home/src/workspaces/project/packages/a/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './types/index.d.ts'. -File '/home/src/workspaces/project/packages/a/types/index.d.ts' does not exist. -Failed to resolve under condition 'types'. -Matched 'exports' condition 'default'. -Using 'exports' subpath '.' with target './index.js'. -File name '/home/src/workspaces/project/packages/a/index.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/project/packages/a/index.ts' does not exist. -File '/home/src/workspaces/project/packages/a/index.tsx' does not exist. -File '/home/src/workspaces/project/packages/a/index.d.ts' does not exist. -File '/home/src/workspaces/project/packages/a/index.js' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'default'. -Exiting conditional exports. -======== Module name 'a' was successfully resolved to '/home/src/workspaces/project/packages/a/index.js' with Package ID 'a/index.js@0.0.0'. ======== -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -packages/a/index.js - Matched by default include pattern '**/*' - Imported via 'a' from file 'packages/a/test/index.js' with packageId 'a/index.js@0.0.0' - File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" -packages/a/test/index.js - Matched by default include pattern '**/*' - File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/packages/a/types/index.d.ts] *new* -export declare const a = "a"; - -//// [/home/src/workspaces/project/packages/a/types/test/index.d.ts] *new* -import 'a'; - -//// [/home/src/workspaces/project/packages/a/types/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.esnext.full.d.ts","../index.js","../test/index.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';","signature":"410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n","impliedNodeFormat":99},{"version":"25c2781885c8232d7ba0f67afa33aa44-import 'a';","signature":"518d564eba22abfaf340ce3ae18a4763-import 'a';\n","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"checkJs":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"module":199,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./test/index.d.ts"} -//// [/home/src/workspaces/project/packages/a/types/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../index.js", - "../test/index.js" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "../index.js", - "../test/index.js" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.js", - "version": "fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';", - "signature": "410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';", - "signature": "410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "../test/index.js", - "version": "25c2781885c8232d7ba0f67afa33aa44-import 'a';", - "signature": "518d564eba22abfaf340ce3ae18a4763-import 'a';\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "25c2781885c8232d7ba0f67afa33aa44-import 'a';", - "signature": "518d564eba22abfaf340ce3ae18a4763-import 'a';\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "../index.js" - ] - ], - "options": { - "checkJs": true, - "composite": true, - "emitDeclarationOnly": true, - "declaration": true, - "module": 199, - "outDir": "./" - }, - "referencedMap": { - "../test/index.js": [ - "../index.js" - ] - }, - "latestChangedDtsFile": "./test/index.d.ts", - "size": 1416 -} - -packages/a/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/packages/a/index.js -*refresh* /home/src/workspaces/project/packages/a/test/index.js -Signatures:: -(stored at emit) /home/src/workspaces/project/packages/a/index.js -(stored at emit) /home/src/workspaces/project/packages/a/test/index.js - - -Edit [0]:: build b - -tsgo -b packages/b --verbose --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * packages/a/tsconfig.json - * packages/b/tsconfig.json - -[HH:MM:SS AM] Project 'packages/a/tsconfig.json' is up to date because newest input 'packages/a/test/index.js' is older than output 'packages/a/types/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'packages/b/tsconfig.json' is out of date because output file 'packages/b/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/b/tsconfig.json'... - -======== Resolving module 'a' from '/home/src/workspaces/project/packages/b/index.js'. ======== -Module resolution kind is not specified, using 'NodeNext'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -Found 'package.json' at '/home/src/workspaces/project/packages/b/package.json'. -Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/workspaces/project/packages/b/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/packages/b/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/packages/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/workspaces/project/packages/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/home/src/workspaces/project/node_modules/a/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './types/index.d.ts'. -File '/home/src/workspaces/project/node_modules/a/types/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/workspaces/project/node_modules/a/types/index.d.ts', result '/home/src/workspaces/project/packages/a/types/index.d.ts'. -======== Module name 'a' was successfully resolved to '/home/src/workspaces/project/packages/a/types/index.d.ts' with Package ID 'a/types/index.d.ts@0.0.0'. ======== -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -packages/a/types/index.d.ts - Imported via 'a' from file 'packages/b/index.js' with packageId 'a/types/index.d.ts@0.0.0' - File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" -packages/b/index.js - Matched by default include pattern '**/*' - File is ECMAScript module because 'packages/b/package.json' has field "type" with value "module" -//// [/home/src/workspaces/project/packages/b/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./index.js"]} -//// [/home/src/workspaces/project/packages/b/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.js" - ], - "original": "./index.js" - } - ], - "size": 49 -} - -packages/b/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/packages/a/types/index.d.ts -*refresh* /home/src/workspaces/project/packages/b/index.js -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js b/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js deleted file mode 100644 index 26f491e365..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js +++ /dev/null @@ -1,457 +0,0 @@ -currentDirectory::/home/src/workspaces/packages -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/packages/src-dogs/dog.ts] *new* -import { DogConfig } from 'src-types'; -import { DOG_CONFIG } from './dogconfig.js'; - -export abstract class Dog { - - public static getCapabilities(): DogConfig { - return DOG_CONFIG; - } -} -//// [/home/src/workspaces/packages/src-dogs/dogconfig.ts] *new* -import { DogConfig } from 'src-types'; - -export const DOG_CONFIG: DogConfig = { - name: 'Default dog', -}; -//// [/home/src/workspaces/packages/src-dogs/index.ts] *new* -export * from 'src-types'; -export * from './lassie/lassiedog.js'; -//// [/home/src/workspaces/packages/src-dogs/lassie/lassieconfig.ts] *new* -import { DogConfig } from 'src-types'; - -export const LASSIE_CONFIG: DogConfig = { name: 'Lassie' }; -//// [/home/src/workspaces/packages/src-dogs/lassie/lassiedog.ts] *new* -import { Dog } from '../dog.js'; -import { LASSIE_CONFIG } from './lassieconfig.js'; - -export class LassieDog extends Dog { - protected static getDogConfig = () => LASSIE_CONFIG; -} -//// [/home/src/workspaces/packages/src-dogs/node_modules] -> /home/src/workspaces/packages *new* -//// [/home/src/workspaces/packages/src-dogs/package.json] *new* -{ - "type": "module", - "exports": "./index.js" -} -//// [/home/src/workspaces/packages/src-dogs/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "../src-types" }, - ], - "include": [ - "**/*", - ], -} -//// [/home/src/workspaces/packages/src-types/dogconfig.ts] *new* -export interface DogConfig { - name: string; -} -//// [/home/src/workspaces/packages/src-types/index.ts] *new* -export * from './dogconfig.js'; -//// [/home/src/workspaces/packages/src-types/node_modules] -> /home/src/workspaces/packages *new* -//// [/home/src/workspaces/packages/src-types/package.json] *new* -{ - "type": "module", - "exports": "./index.js" -} -//// [/home/src/workspaces/packages/src-types/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "composite": true, - }, - "include": [ - "**/*", - ], -} -//// [/home/src/workspaces/packages/tsconfig-base.json] *new* -{ - "compilerOptions": { - "declaration": true, - "module": "node16", - }, -} - -tsgo -b src-types src-dogs --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * src-types/tsconfig.json - * src-dogs/tsconfig.json - -[HH:MM:SS AM] Project 'src-types/tsconfig.json' is out of date because output file 'src-types/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'src-types/tsconfig.json'... - -[HH:MM:SS AM] Project 'src-dogs/tsconfig.json' is out of date because output file 'src-dogs/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'src-dogs/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/packages/src-dogs/dog.d.ts] *new* -import { DogConfig } from 'src-types'; -export declare abstract class Dog { - static getCapabilities(): DogConfig; -} - -//// [/home/src/workspaces/packages/src-dogs/dog.js] *new* -import { DOG_CONFIG } from './dogconfig.js'; -export class Dog { - static getCapabilities() { - return DOG_CONFIG; - } -} - -//// [/home/src/workspaces/packages/src-dogs/dogconfig.d.ts] *new* -import { DogConfig } from 'src-types'; -export declare const DOG_CONFIG: DogConfig; - -//// [/home/src/workspaces/packages/src-dogs/dogconfig.js] *new* -export const DOG_CONFIG = { - name: 'Default dog', -}; - -//// [/home/src/workspaces/packages/src-dogs/index.d.ts] *new* -export * from 'src-types'; -export * from './lassie/lassiedog.js'; - -//// [/home/src/workspaces/packages/src-dogs/index.js] *new* -export * from 'src-types'; -export * from './lassie/lassiedog.js'; - -//// [/home/src/workspaces/packages/src-dogs/lassie/lassieconfig.d.ts] *new* -import { DogConfig } from 'src-types'; -export declare const LASSIE_CONFIG: DogConfig; - -//// [/home/src/workspaces/packages/src-dogs/lassie/lassieconfig.js] *new* -export const LASSIE_CONFIG = { name: 'Lassie' }; - -//// [/home/src/workspaces/packages/src-dogs/lassie/lassiedog.d.ts] *new* -import { Dog } from '../dog.js'; -export declare class LassieDog extends Dog { - protected static getDogConfig: () => import("../index.js").DogConfig; -} - -//// [/home/src/workspaces/packages/src-dogs/lassie/lassiedog.js] *new* -import { Dog } from '../dog.js'; -import { LASSIE_CONFIG } from './lassieconfig.js'; -export class LassieDog extends Dog { - static getDogConfig = () => LASSIE_CONFIG; -} - -//// [/home/src/workspaces/packages/src-dogs/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[4,8]],"fileNames":["lib.es2022.full.d.ts","../src-types/dogconfig.d.ts","../src-types/index.d.ts","./dogconfig.ts","./dog.ts","./lassie/lassieconfig.ts","./lassie/lassiedog.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n","impliedNodeFormat":99},{"version":"3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n","impliedNodeFormat":99},{"version":"a8c9e5169f1e05ea3fd4da563dc779b7-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};","signature":"55c35bfb192d26f7ab56e9447864b637-import { DogConfig } from 'src-types';\nexport declare const DOG_CONFIG: DogConfig;\n","impliedNodeFormat":99},{"version":"4ef4eb6072aff36903b09b7e1fa75eea-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}","signature":"1130c09f22ac69e13b25f0c42f3a9379-import { DogConfig } from 'src-types';\nexport declare abstract class Dog {\n static getCapabilities(): DogConfig;\n}\n","impliedNodeFormat":99},{"version":"37fa5afea0e398a9cc485818c902b71c-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };","signature":"2ef44fffbc07bb77765462af9f6df2a2-import { DogConfig } from 'src-types';\nexport declare const LASSIE_CONFIG: DogConfig;\n","impliedNodeFormat":99},{"version":"16f2a31a47590452f19f34bb56d0345f-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}","signature":"4e9a2f5bdce32a44b15cca0af7254c50-import { Dog } from '../dog.js';\nexport declare class LassieDog extends Dog {\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\n}\n","impliedNodeFormat":99},{"version":"099983d5c3c8b20233df02ca964ad12f-export * from 'src-types';\nexport * from './lassie/lassiedog.js';","signature":"0fb03f7b5b8061b0e2cd78a4131e3df7-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n","impliedNodeFormat":99}],"fileIdsList":[[3,4],[3],[3,7],[5,6],[2]],"options":{"composite":true,"declaration":true,"module":100},"referencedMap":[[5,1],[4,2],[8,3],[6,2],[7,4],[3,5]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/packages/src-dogs/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./dogconfig.ts", - "./dog.ts", - "./lassie/lassieconfig.ts", - "./lassie/lassiedog.ts", - "./index.ts" - ], - "original": [ - 4, - 8 - ] - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "../src-types/dogconfig.d.ts", - "../src-types/index.d.ts", - "./dogconfig.ts", - "./dog.ts", - "./lassie/lassieconfig.ts", - "./lassie/lassiedog.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src-types/dogconfig.d.ts", - "version": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", - "signature": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "../src-types/index.d.ts", - "version": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", - "signature": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./dogconfig.ts", - "version": "a8c9e5169f1e05ea3fd4da563dc779b7-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};", - "signature": "55c35bfb192d26f7ab56e9447864b637-import { DogConfig } from 'src-types';\nexport declare const DOG_CONFIG: DogConfig;\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "a8c9e5169f1e05ea3fd4da563dc779b7-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};", - "signature": "55c35bfb192d26f7ab56e9447864b637-import { DogConfig } from 'src-types';\nexport declare const DOG_CONFIG: DogConfig;\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./dog.ts", - "version": "4ef4eb6072aff36903b09b7e1fa75eea-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}", - "signature": "1130c09f22ac69e13b25f0c42f3a9379-import { DogConfig } from 'src-types';\nexport declare abstract class Dog {\n static getCapabilities(): DogConfig;\n}\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "4ef4eb6072aff36903b09b7e1fa75eea-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}", - "signature": "1130c09f22ac69e13b25f0c42f3a9379-import { DogConfig } from 'src-types';\nexport declare abstract class Dog {\n static getCapabilities(): DogConfig;\n}\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./lassie/lassieconfig.ts", - "version": "37fa5afea0e398a9cc485818c902b71c-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };", - "signature": "2ef44fffbc07bb77765462af9f6df2a2-import { DogConfig } from 'src-types';\nexport declare const LASSIE_CONFIG: DogConfig;\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "37fa5afea0e398a9cc485818c902b71c-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };", - "signature": "2ef44fffbc07bb77765462af9f6df2a2-import { DogConfig } from 'src-types';\nexport declare const LASSIE_CONFIG: DogConfig;\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./lassie/lassiedog.ts", - "version": "16f2a31a47590452f19f34bb56d0345f-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}", - "signature": "4e9a2f5bdce32a44b15cca0af7254c50-import { Dog } from '../dog.js';\nexport declare class LassieDog extends Dog {\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\n}\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "16f2a31a47590452f19f34bb56d0345f-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}", - "signature": "4e9a2f5bdce32a44b15cca0af7254c50-import { Dog } from '../dog.js';\nexport declare class LassieDog extends Dog {\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\n}\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./index.ts", - "version": "099983d5c3c8b20233df02ca964ad12f-export * from 'src-types';\nexport * from './lassie/lassiedog.js';", - "signature": "0fb03f7b5b8061b0e2cd78a4131e3df7-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "099983d5c3c8b20233df02ca964ad12f-export * from 'src-types';\nexport * from './lassie/lassiedog.js';", - "signature": "0fb03f7b5b8061b0e2cd78a4131e3df7-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "../src-types/index.d.ts", - "./dogconfig.ts" - ], - [ - "../src-types/index.d.ts" - ], - [ - "../src-types/index.d.ts", - "./lassie/lassiedog.ts" - ], - [ - "./dog.ts", - "./lassie/lassieconfig.ts" - ], - [ - "../src-types/dogconfig.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 100 - }, - "referencedMap": { - "./dog.ts": [ - "../src-types/index.d.ts", - "./dogconfig.ts" - ], - "./dogconfig.ts": [ - "../src-types/index.d.ts" - ], - "./index.ts": [ - "../src-types/index.d.ts", - "./lassie/lassiedog.ts" - ], - "./lassie/lassieconfig.ts": [ - "../src-types/index.d.ts" - ], - "./lassie/lassiedog.ts": [ - "./dog.ts", - "./lassie/lassieconfig.ts" - ], - "../src-types/index.d.ts": [ - "../src-types/dogconfig.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 3218 -} -//// [/home/src/workspaces/packages/src-types/dogconfig.d.ts] *new* -export interface DogConfig { - name: string; -} - -//// [/home/src/workspaces/packages/src-types/dogconfig.js] *new* -export {}; - -//// [/home/src/workspaces/packages/src-types/index.d.ts] *new* -export * from './dogconfig.js'; - -//// [/home/src/workspaces/packages/src-types/index.js] *new* -export * from './dogconfig.js'; - -//// [/home/src/workspaces/packages/src-types/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.es2022.full.d.ts","./dogconfig.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8b224befa78d5f27814a6eb4da56079-export interface DogConfig {\n name: string;\n}","signature":"a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n","impliedNodeFormat":99},{"version":"ac3890d1bb11659994f68e147333e98e-export * from './dogconfig.js';","signature":"3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"composite":true,"declaration":true,"module":100},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/packages/src-types/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./dogconfig.ts", - "./index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./dogconfig.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./dogconfig.ts", - "version": "d8b224befa78d5f27814a6eb4da56079-export interface DogConfig {\n name: string;\n}", - "signature": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "d8b224befa78d5f27814a6eb4da56079-export interface DogConfig {\n name: string;\n}", - "signature": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./index.ts", - "version": "ac3890d1bb11659994f68e147333e98e-export * from './dogconfig.js';", - "signature": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "ac3890d1bb11659994f68e147333e98e-export * from './dogconfig.js';", - "signature": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "./dogconfig.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 100 - }, - "referencedMap": { - "./index.ts": [ - "./dogconfig.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1440 -} - -src-types/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /home/src/workspaces/packages/src-types/dogconfig.ts -*refresh* /home/src/workspaces/packages/src-types/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/packages/src-types/dogconfig.ts -(stored at emit) /home/src/workspaces/packages/src-types/index.ts - -src-dogs/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /home/src/workspaces/packages/src-types/dogconfig.d.ts -*refresh* /home/src/workspaces/packages/src-types/index.d.ts -*refresh* /home/src/workspaces/packages/src-dogs/dogconfig.ts -*refresh* /home/src/workspaces/packages/src-dogs/dog.ts -*refresh* /home/src/workspaces/packages/src-dogs/lassie/lassieconfig.ts -*refresh* /home/src/workspaces/packages/src-dogs/lassie/lassiedog.ts -*refresh* /home/src/workspaces/packages/src-dogs/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/packages/src-dogs/dogconfig.ts -(stored at emit) /home/src/workspaces/packages/src-dogs/dog.ts -(stored at emit) /home/src/workspaces/packages/src-dogs/lassie/lassieconfig.ts -(stored at emit) /home/src/workspaces/packages/src-dogs/lassie/lassiedog.ts -(stored at emit) /home/src/workspaces/packages/src-dogs/index.ts diff --git a/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js b/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js deleted file mode 100644 index 4e8b2324c4..0000000000 --- a/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js +++ /dev/null @@ -1,387 +0,0 @@ -currentDirectory::/home/src/workspaces/packages -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* -/// -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 {} -interface SymbolConstructor { - readonly species: symbol; - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/packages/solution/common/nominal.ts] *new* -export declare type Nominal = T & { - [Symbol.species]: Name; -}; -//// [/home/src/workspaces/packages/solution/common/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "composite": true - }, - "include": ["nominal.ts"] -} -//// [/home/src/workspaces/packages/solution/sub-project-2/index.ts] *new* -import { MyNominal } from '../sub-project/index'; - -const variable = { - key: 'value' as MyNominal, -}; - -export function getVar(): keyof typeof variable { - return 'key'; -} -//// [/home/src/workspaces/packages/solution/sub-project-2/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "../sub-project" } - ], - "include": ["./index.ts"] -} -//// [/home/src/workspaces/packages/solution/sub-project/index.ts] *new* -import { Nominal } from '../common/nominal'; - -export type MyNominal = Nominal; -//// [/home/src/workspaces/packages/solution/sub-project/tsconfig.json] *new* -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "../common" } - ], - "include": ["./index.ts"] -} -//// [/home/src/workspaces/packages/solution/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./sub-project" }, - { "path": "./sub-project-2" } - ], - "include": [] -} -//// [/home/src/workspaces/packages/tsconfig.base.json] *new* -{ - "compilerOptions": { - "skipLibCheck": true, - "rootDir": "./", - "outDir": "lib" - } -} -//// [/home/src/workspaces/packages/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./solution" }, - ], - "include": [], -} - -tsgo -b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * solution/common/tsconfig.json - * solution/sub-project/tsconfig.json - * solution/sub-project-2/tsconfig.json - * solution/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'solution/common/tsconfig.json' is out of date because output file 'lib/solution/common/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'solution/common/tsconfig.json'... - -[HH:MM:SS AM] Project 'solution/sub-project/tsconfig.json' is out of date because output file 'lib/solution/sub-project/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'solution/sub-project/tsconfig.json'... - -[HH:MM:SS AM] Project 'solution/sub-project-2/tsconfig.json' is out of date because output file 'lib/solution/sub-project-2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'solution/sub-project-2/tsconfig.json'... - -//// [/home/src/workspaces/packages/lib/solution/common/nominal.d.ts] *new* -export declare type Nominal = T & { - [Symbol.species]: Name; -}; - -//// [/home/src/workspaces/packages/lib/solution/common/nominal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/packages/lib/solution/common/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../../solution/common/nominal.ts"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6da5023bc256e774f9366f88c712bfc1-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};","signature":"5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"latestChangedDtsFile":"./nominal.d.ts"} -//// [/home/src/workspaces/packages/lib/solution/common/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../solution/common/nominal.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../../../solution/common/nominal.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../solution/common/nominal.ts", - "version": "6da5023bc256e774f9366f88c712bfc1-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};", - "signature": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6da5023bc256e774f9366f88c712bfc1-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};", - "signature": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "../..", - "rootDir": "../../..", - "skipLibCheck": true - }, - "latestChangedDtsFile": "./nominal.d.ts", - "size": 1347 -} -//// [/home/src/workspaces/packages/lib/solution/sub-project-2/index.d.ts] *new* -import { MyNominal } from '../sub-project/index'; -declare const variable: { - key: MyNominal; -}; -export declare function getVar(): keyof typeof variable; -export {}; - -//// [/home/src/workspaces/packages/lib/solution/sub-project-2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getVar = getVar; -const variable = { - key: 'value', -}; -function getVar() { - return 'key'; -} - -//// [/home/src/workspaces/packages/lib/solution/sub-project-2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../common/nominal.d.ts","../sub-project/index.d.ts","../../../solution/sub-project-2/index.ts"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n",{"version":"8d7f0cd34ff9cb954b00662137820b98-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}","signature":"d3fc4bf12d5f8dfcac4dd45791e378ef-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"referencedMap":[[3,1],[4,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/packages/lib/solution/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../solution/sub-project-2/index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../common/nominal.d.ts", - "../sub-project/index.d.ts", - "../../../solution/sub-project-2/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../common/nominal.d.ts", - "version": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "signature": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../sub-project/index.d.ts", - "version": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../solution/sub-project-2/index.ts", - "version": "8d7f0cd34ff9cb954b00662137820b98-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}", - "signature": "d3fc4bf12d5f8dfcac4dd45791e378ef-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8d7f0cd34ff9cb954b00662137820b98-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}", - "signature": "d3fc4bf12d5f8dfcac4dd45791e378ef-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../common/nominal.d.ts" - ], - [ - "../sub-project/index.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "../..", - "rootDir": "../../..", - "skipLibCheck": true - }, - "referencedMap": { - "../sub-project/index.d.ts": [ - "../common/nominal.d.ts" - ], - "../../../solution/sub-project-2/index.ts": [ - "../sub-project/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1893 -} -//// [/home/src/workspaces/packages/lib/solution/sub-project/index.d.ts] *new* -import { Nominal } from '../common/nominal'; -export type MyNominal = Nominal; - -//// [/home/src/workspaces/packages/lib/solution/sub-project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/packages/lib/solution/sub-project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../common/nominal.d.ts","../../../solution/sub-project/index.ts"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n",{"version":"17fb8188dac0968c390031165ecd45b6-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;","signature":"ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/packages/lib/solution/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../solution/sub-project/index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../common/nominal.d.ts", - "../../../solution/sub-project/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../common/nominal.d.ts", - "version": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "signature": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../solution/sub-project/index.ts", - "version": "17fb8188dac0968c390031165ecd45b6-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;", - "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "17fb8188dac0968c390031165ecd45b6-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;", - "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../common/nominal.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "../..", - "rootDir": "../../..", - "skipLibCheck": true - }, - "referencedMap": { - "../../../solution/sub-project/index.ts": [ - "../common/nominal.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1563 -} - -solution/common/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/packages/solution/common/nominal.ts -Signatures:: -(stored at emit) /home/src/workspaces/packages/solution/common/nominal.ts - -solution/sub-project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/packages/lib/solution/common/nominal.d.ts -*refresh* /home/src/workspaces/packages/solution/sub-project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/packages/solution/sub-project/index.ts - -solution/sub-project-2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/packages/lib/solution/common/nominal.d.ts -*refresh* /home/src/workspaces/packages/lib/solution/sub-project/index.d.ts -*refresh* /home/src/workspaces/packages/solution/sub-project-2/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/packages/solution/sub-project-2/index.ts diff --git a/testdata/baselines/reference/tsbuild/noCheck/dts-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noCheck/dts-errors-with-incremental.js deleted file mode 100644 index 92ec8ba77d..0000000000 --- a/testdata/baselines/reference/tsbuild/noCheck/dts-errors-with-incremental.js +++ /dev/null @@ -1,1485 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": true - } -} - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1810 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: no change - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1307 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = class { private p = 10; }; - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1806 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [7]:: no change - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [8]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1753 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1303 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [10]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/c.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/c.ts - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = class { private p = 10; }; - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 2114 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1611 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [14]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [15]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [16]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/dts-errors.js b/testdata/baselines/reference/tsbuild/noCheck/dts-errors.js deleted file mode 100644 index 9a6e45162e..0000000000 --- a/testdata/baselines/reference/tsbuild/noCheck/dts-errors.js +++ /dev/null @@ -1,909 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": false - } -} - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 88 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 74 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [3]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 54 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [5]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = class { private p = 10; }; - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 88 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [8]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 68 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 74 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [10]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 54 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 85, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = class { private p = 10; }; - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 97 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -*not cached* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 83 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -*not cached* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [14]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 85, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [15]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [16]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noCheck/semantic-errors-with-incremental.js deleted file mode 100644 index 3b59a18d15..0000000000 --- a/testdata/baselines/reference/tsbuild/noCheck/semantic-errors-with-incremental.js +++ /dev/null @@ -1,1283 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a: number = "hello"; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": true - } -} - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1311 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1307 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a: number = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1307 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [7]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [8]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello"; -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1398 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1303 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [10]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/c.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/c.ts - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a: number = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1615 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1611 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [14]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [15]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [16]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/semantic-errors.js b/testdata/baselines/reference/tsbuild/noCheck/semantic-errors.js deleted file mode 100644 index 6f06302143..0000000000 --- a/testdata/baselines/reference/tsbuild/noCheck/semantic-errors.js +++ /dev/null @@ -1,722 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a: number = "hello"; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": false - } -} - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 74 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'a.js' - - - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [3]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 54 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [5]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a: number = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 74 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [8]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello"; -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts"],"semanticErrors":true} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 76, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 74 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [10]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 54 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 85, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a: number = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 83 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -*not cached* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -*not cached* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [14]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 85, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [15]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [16]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noCheck/syntax-errors-with-incremental.js deleted file mode 100644 index de8cd5cf35..0000000000 --- a/testdata/baselines/reference/tsbuild/noCheck/syntax-errors-with-incremental.js +++ /dev/null @@ -1,1345 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = "hello -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": true - } -} - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1318 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: no change - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1307 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1314 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [7]:: no change - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [8]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1294 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1303 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [10]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/c.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/c.ts - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1622 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1611 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [14]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [15]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [16]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/syntax-errors.js b/testdata/baselines/reference/tsbuild/noCheck/syntax-errors.js deleted file mode 100644 index fdfe1f516c..0000000000 --- a/testdata/baselines/reference/tsbuild/noCheck/syntax-errors.js +++ /dev/null @@ -1,854 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = "hello -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": false - } -} - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 88 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 74 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [3]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 54 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [5]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 88 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [8]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 68 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 74 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [10]:: No Change run with checking - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 54 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 85, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello - -tsgo -b -v --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 97 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -*not cached* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 83 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -*not cached* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [14]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - }, - { - "files": [ - "./c.ts" - ], - "original": "./c.ts" - } - ], - "size": 85, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: - - -Edit [15]:: no change - -tsgo -b -v --noCheck -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [16]:: No Change run with checking - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-composite.js b/testdata/baselines/reference/tsbuild/noEmit/changes-composite.js deleted file mode 100644 index 5972225167..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/changes-composite.js +++ /dev/null @@ -1,1661 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true } -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/class.d.ts] *new* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* -import { classC } from './class'; -export declare class indirectClass { - classC: classC; -} - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* -export declare function writeLog(s: string): void; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* -declare function someFunc(arguments: boolean, ...rest: any[]): void; - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", - "size": 2590 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/class.ts -(stored at emit) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts - - -Edit [0]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [2]:: Introduce error but still noEmit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts","emitSignatures":[[2,"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|Dts", - 2 - ], - [ - "./src/directUse.ts", - "Dts", - [ - 4 - ] - ], - [ - "./src/indirectClass.ts", - "Js|Dts", - 3 - ], - [ - "./src/indirectUse.ts", - "Dts", - [ - 5 - ] - ] - ], - "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", - "emitSignatures": [ - { - "file": "./src/class.ts", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "original": [ - 2, - "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n" - ] - }, - { - "file": "./src/directUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 4, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - }, - { - "file": "./src/indirectUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 5, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - } - ], - "size": 3190 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: Fix error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", - "size": 2590 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [4]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [6]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [7]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [8]:: Introduce error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop1: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"latestChangedDtsFile":"./src/class.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./src/class.d.ts", - "size": 3093 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [9]:: No Change run with emit - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: No Change run with emit - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [13]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]],"latestChangedDtsFile":"./src/class.d.ts","emitSignatures":[[2,"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "latestChangedDtsFile": "./src/class.d.ts", - "emitSignatures": [ - { - "file": "./src/class.ts", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "original": [ - 2, - "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n" - ] - }, - { - "file": "./src/directUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 4, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - }, - { - "file": "./src/indirectUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 5, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - } - ], - "size": 2648 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [14]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/class.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/class.d.ts", - "size": 2562 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [15]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [16]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [17]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-incremental-declaration.js b/testdata/baselines/reference/tsbuild/noEmit/changes-incremental-declaration.js deleted file mode 100644 index 868e102cab..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/changes-incremental-declaration.js +++ /dev/null @@ -1,1613 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true, "declaration": true } -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/class.d.ts] *new* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* -import { classC } from './class'; -export declare class indirectClass { - classC: classC; -} - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* -export declare function writeLog(s: string): void; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* -declare function someFunc(arguments: boolean, ...rest: any[]): void; - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/class.ts -(stored at emit) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts - - -Edit [0]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [2]:: Introduce error but still noEmit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|Dts", - 2 - ], - [ - "./src/directUse.ts", - "Dts", - [ - 4 - ] - ], - [ - "./src/indirectClass.ts", - "Js|Dts", - 3 - ], - [ - "./src/indirectUse.ts", - "Dts", - [ - 5 - ] - ] - ], - "size": 2906 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: Fix error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [4]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [6]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [7]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [8]:: Introduce error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop1: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "size": 3053 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [9]:: No Change run with emit - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: No Change run with emit - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [13]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "size": 2391 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [14]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [15]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [16]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [17]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/changes-incremental.js deleted file mode 100644 index e36127a4d1..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/changes-incremental.js +++ /dev/null @@ -1,1444 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true } -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 1737 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: - - -Edit [0]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [2]:: Introduce error but still noEmit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,4,3,5]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js", - 2 - ], - [ - "./src/directUse.ts", - "Js", - 4 - ], - [ - "./src/indirectClass.ts", - "Js", - 3 - ], - [ - "./src/indirectUse.ts", - "Js", - 5 - ] - ], - "size": 2807 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(computed .d.ts) /home/src/workspaces/project/src/directUse.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: Fix error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/directUse.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2051 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [4]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [6]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [7]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [8]:: Introduce error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "size": 2582 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [9]:: No Change run with emit - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: No Change run with emit - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [13]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js", - 2 - ], - [ - "./src/indirectClass.ts", - "Js", - 3 - ] - ], - "size": 2084 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [14]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2051 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [15]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [16]:: No Change run with noEmit - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [17]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-composite.js b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-composite.js deleted file mode 100644 index 62a76b588e..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-composite.js +++ /dev/null @@ -1,1127 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,17],[3,17],[5,17],[6,17],[7,17]],"emitSignatures":[2,3,4,5,6,7]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "Js|DtsEmit", - [ - 4, - 17 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "Js|DtsEmit", - [ - 5, - 17 - ] - ], - [ - "./src/noChangeFile.ts", - "Js|DtsEmit", - [ - 6, - 17 - ] - ], - [ - "./src/noChangeFileWithEmitSpecificError.ts", - "Js|DtsEmit", - [ - 7, - 17 - ] - ] - ], - "emitSignatures": [ - { - "file": "./src/class.ts", - "original": 2 - }, - { - "file": "./src/indirectClass.ts", - "original": 3 - }, - { - "file": "./src/directUse.ts", - "original": 4 - }, - { - "file": "./src/indirectUse.ts", - "original": 5 - }, - { - "file": "./src/noChangeFile.ts", - "original": 6 - }, - { - "file": "./src/noChangeFileWithEmitSpecificError.ts", - "original": 7 - } - ], - "size": 1868 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: - - -Edit [0]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.d.ts] *new* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* -import { classC } from './class'; -export declare class indirectClass { - classC: classC; -} - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* -export declare function writeLog(s: string): void; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* -declare function someFunc(arguments: boolean, ...rest: any[]): void; - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", - "size": 2590 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/class.ts -(stored at emit) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts - - -Edit [1]:: Introduce error with emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop1: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"latestChangedDtsFile":"./src/class.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./src/class.d.ts", - "size": 3093 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [2]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]],"latestChangedDtsFile":"./src/class.d.ts","emitSignatures":[[2,"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "latestChangedDtsFile": "./src/class.d.ts", - "emitSignatures": [ - { - "file": "./src/class.ts", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "original": [ - 2, - "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n" - ] - }, - { - "file": "./src/directUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 4, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - }, - { - "file": "./src/indirectUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 5, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - } - ], - "size": 2648 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/class.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/class.d.ts", - "size": 2562 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental-declaration.js b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental-declaration.js deleted file mode 100644 index d3688f6b7e..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental-declaration.js +++ /dev/null @@ -1,1077 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true, "declaration": true } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,17],[3,17],[5,17],[6,17],[7,17]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "Js|DtsEmit", - [ - 4, - 17 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "Js|DtsEmit", - [ - 5, - 17 - ] - ], - [ - "./src/noChangeFile.ts", - "Js|DtsEmit", - [ - 6, - 17 - ] - ], - [ - "./src/noChangeFileWithEmitSpecificError.ts", - "Js|DtsEmit", - [ - 7, - 17 - ] - ] - ], - "size": 1839 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: - - -Edit [0]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.d.ts] *new* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* -import { classC } from './class'; -export declare class indirectClass { - classC: classC; -} - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* -export declare function writeLog(s: string): void; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* -declare function someFunc(arguments: boolean, ...rest: any[]): void; - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/class.ts -(stored at emit) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts - - -Edit [1]:: Introduce error with emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop1: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "size": 3053 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [2]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "size": 2391 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental.js deleted file mode 100644 index 66ce7033ab..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental.js +++ /dev/null @@ -1,923 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,4,3,5,6,7]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js", - 2 - ], - [ - "./src/directUse.ts", - "Js", - 4 - ], - [ - "./src/indirectClass.ts", - "Js", - 3 - ], - [ - "./src/indirectUse.ts", - "Js", - 5 - ], - [ - "./src/noChangeFile.ts", - "Js", - 6 - ], - [ - "./src/noChangeFileWithEmitSpecificError.ts", - "Js", - 7 - ] - ], - "size": 1778 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: - - -Edit [0]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 1737 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Introduce error with emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "size": 2770 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(computed .d.ts) /home/src/workspaces/project/src/directUse.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [2]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js", - 2 - ], - [ - "./src/indirectClass.ts", - "Js", - 3 - ] - ], - "size": 2084 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: No Change run with emit - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2051 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js deleted file mode 100644 index 2604cb333a..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js +++ /dev/null @@ -1,735 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1037 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: With declaration enabled noEmit - Should report errors - -tsgo -b -v --noEmit --declaration -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ] - ], - "size": 1368 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: With declaration and declarationMap noEmit - Should report errors - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,49]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit|DtsMap", - [ - 2, - 49 - ] - ], - [ - "./b.ts", - "Js|DtsEmit|DtsMap", - [ - 3, - 49 - ] - ] - ], - "size": 1390 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [4]:: Dts Emit with error - -tsgo -b -v --declaration -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/projects/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1753 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/projects/project/a.ts -(stored at emit) /home/src/projects/project/b.ts - - -Edit [5]:: Fix the error -//// [/home/src/projects/project/a.ts] *modified* -export const a = class { public p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1302 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: With declaration enabled noEmit - -tsgo -b -v --noEmit --declaration -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17],[3,16]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "DtsEmit", - [ - 3, - 16 - ] - ] - ], - "size": 1345 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: With declaration and declarationMap noEmit - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental.js deleted file mode 100644 index 78b36fcdf6..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental.js +++ /dev/null @@ -1,633 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1019 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: With declaration enabled noEmit - Should report errors - -tsgo -b -v --noEmit --declaration -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1341 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: With declaration and declarationMap noEmit - Should report errors - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,49]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit|DtsMap", - [ - 2, - 49 - ] - ] - ], - "size": 1363 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [4]:: Dts Emit with error - -tsgo -b -v --declaration -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *new* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *new* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1578 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/projects/project/a.ts - - -Edit [5]:: Fix the error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { public p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };","signature":"659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };", - "signature": "659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };", - "signature": "659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1133 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: With declaration enabled noEmit - -tsgo -b -v --noEmit --declaration -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };","signature":"659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };", - "signature": "659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };", - "signature": "659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1169 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: With declaration and declarationMap noEmit - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js deleted file mode 100644 index dbbed51592..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js +++ /dev/null @@ -1,1646 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/c.ts] *new* -export const c = class { private p = 10; }; -//// [/home/src/projects/project/d.ts] *new* -export const d = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"affectedFilesPendingEmit":[2,3,4,5]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - } - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ], - [ - "./c.ts", - "Js", - 4 - ], - [ - "./d.ts", - "Js", - 5 - ] - ], - "size": 1217 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -*refresh* /home/src/projects/project/c.ts -*refresh* /home/src/projects/project/d.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: With declaration enabled noEmit - Should report errors - -tsgo -b -v --noEmit --declaration -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 3 errors in 3 files. - -Errors Files - 1 a.ts:1 - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17],[4,17],[5,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ], - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./c.ts", - "Js|DtsEmit", - [ - 4, - 17 - ] - ], - [ - "./d.ts", - "Js|DtsEmit", - [ - 5, - 17 - ] - ] - ], - "size": 2084 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: With declaration and declarationMap noEmit - Should report errors - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 3 errors in 3 files. - -Errors Files - 1 a.ts:1 - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,49],[4,49],[5,49]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ], - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit|DtsMap", - [ - 2, - 49 - ] - ], - [ - "./b.ts", - "Js|DtsEmit|DtsMap", - [ - 3, - 49 - ] - ], - [ - "./c.ts", - "Js|DtsEmit|DtsMap", - [ - 4, - 49 - ] - ], - [ - "./d.ts", - "Js|DtsEmit|DtsMap", - [ - 5, - 49 - ] - ] - ], - "size": 2106 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [4]:: Dts Emit with error - -tsgo -b -v --declaration -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 3 errors in 3 files. - -Errors Files - 1 a.ts:1 - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/a.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/projects/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/c.d.ts] *new* -export declare const c: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const c = class { - p = 10; -}; -exports.c = c; - -//// [/home/src/projects/project/d.d.ts] *new* -export declare const d: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const d = class { - p = 10; -}; -exports.d = d; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ], - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "size": 3087 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/projects/project/a.ts -(stored at emit) /home/src/projects/project/b.ts -(stored at emit) /home/src/projects/project/c.ts -(stored at emit) /home/src/projects/project/d.ts - - -Edit [5]:: Fix the error -//// [/home/src/projects/project/a.ts] *modified* -export const a = class { public p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "emitDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 2663 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: With declaration enabled noEmit - -tsgo -b -v --noEmit --declaration -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 2 errors in 2 files. - -Errors Files - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,16],[4,16],[5,16]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "DtsEmit", - [ - 3, - 16 - ] - ], - [ - "./c.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./d.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "size": 2720 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: With declaration and declarationMap noEmit - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 2 errors in 2 files. - -Errors Files - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,48],[4,48],[5,48]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "emitDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit|DtsMap", - [ - 2, - 49 - ] - ], - [ - "./b.ts", - "DtsEmit|DtsMap", - [ - 3, - 48 - ] - ], - [ - "./c.ts", - "DtsEmit|DtsMap", - [ - 4, - 48 - ] - ], - [ - "./d.ts", - "DtsEmit|DtsMap", - [ - 5, - 48 - ] - ] - ], - "size": 2742 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [8]:: Fix the another -//// [/home/src/projects/project/c.ts] *modified* -export const c = class { public p = 10; }; - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 1 error in d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };","signature":"17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,48],[4,49],[5,48]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };", - "signature": "17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };", - "signature": "17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "emitDiagnosticsPerFile": [ - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit|DtsMap", - [ - 2, - 49 - ] - ], - [ - "./b.ts", - "DtsEmit|DtsMap", - [ - 3, - 48 - ] - ], - [ - "./c.ts", - "Js|DtsEmit|DtsMap", - [ - 4, - 49 - ] - ], - [ - "./d.ts", - "DtsEmit|DtsMap", - [ - 5, - 48 - ] - ] - ], - "size": 2318 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/c.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/c.ts diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes.js deleted file mode 100644 index e904433c64..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes.js +++ /dev/null @@ -1,346 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: With declaration enabled noEmit - Should report errors - -tsgo -b -v --noEmit --declaration -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: With declaration and declarationMap noEmit - Should report errors - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: Dts Emit with error - -tsgo -b -v --declaration -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *new* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *new* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [5]:: Fix the error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { public p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: With declaration enabled noEmit - -tsgo -b -v --noEmit --declaration -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'a.js' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [7]:: With declaration and declarationMap noEmit - -tsgo -b -v --noEmit --declaration --declarationMap -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'a.js' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental-as-modules.js deleted file mode 100644 index 917f58c5d5..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,708 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ] - ], - "size": 1368 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17],[3,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ] - ], - "size": 1181 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.d.ts] *new* -export declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/projects/project/b.ts - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1795 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1759 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental.js deleted file mode 100644 index 660a979a45..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental.js +++ /dev/null @@ -1,617 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1341 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1117 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.d.ts] *new* -declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1081 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1614 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1578 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js deleted file mode 100644 index 89554d564a..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js +++ /dev/null @@ -1,525 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1069 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1393 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1362 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental.js deleted file mode 100644 index 4875813312..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental.js +++ /dev/null @@ -1,459 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1051 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1324 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1293 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled.js deleted file mode 100644 index d5c1bf0398..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled.js +++ /dev/null @@ -1,237 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'a.js' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors.js deleted file mode 100644 index 8d2f2986c7..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/dts-errors.js +++ /dev/null @@ -1,344 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": true - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.d.ts] *new* -declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental-as-modules.js deleted file mode 100644 index c23186cbd1..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,615 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a: number = "hello" -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", - "signature": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1204 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1327 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1296 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js deleted file mode 100644 index c1fa7999c7..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js +++ /dev/null @@ -1,547 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a: number = "hello" -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1184 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1258 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1227 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors.js b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors.js deleted file mode 100644 index e71f806852..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors.js +++ /dev/null @@ -1,310 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a: number = "hello" -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./a.ts"],"semanticErrors":true} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 67, - "semanticErrors": true -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"],"semanticErrors":true} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 67, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental-as-modules.js deleted file mode 100644 index 317904bb9e..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,589 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = "hello -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1101 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -*not cached* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -*not cached* /home/src/projects/project/b.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"changeFileSet":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "changeFileSet": [ - "./a.ts" - ], - "size": 1189 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts" - ], - "size": 1197 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js deleted file mode 100644 index 3aa42cb522..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js +++ /dev/null @@ -1,516 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = "hello -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts" - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1081 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"changeFileSet":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "changeFileSet": [ - "./a.ts" - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1126 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors.js b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors.js deleted file mode 100644 index 29782c5915..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors.js +++ /dev/null @@ -1,312 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = "hello -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - } -} - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: no change - -tsgo -b -v --noEmit -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' - - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: Emit when error - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [7]:: no change - -tsgo -b -v --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration-with-incremental.js deleted file mode 100644 index 8cd1b339a5..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration-with-incremental.js +++ /dev/null @@ -1,387 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":53,"end":54,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":53,"end":54,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17],[4,17]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "signature": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "emitDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 53, - "end": 54, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 53, - "end": 54, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "../src/main.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "../src/other.ts", - "Js|DtsEmit", - [ - 4, - 17 - ] - ] - ], - "size": 1628 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in src/main.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1656 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts -(stored at emit) /user/username/projects/noEmitOnError/src/other.ts - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration.js b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration.js deleted file mode 100644 index 838bfd3e35..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration.js +++ /dev/null @@ -1,238 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in src/main.ts:2 - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-incremental.js deleted file mode 100644 index b4048e52ec..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-incremental.js +++ /dev/null @@ -1,283 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "signature": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1289 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/other.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' - - - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1437 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors.js b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors.js deleted file mode 100644 index 36b6950f8c..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors.js +++ /dev/null @@ -1,165 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/other.ts' is older than output 'dev-build/shared/types/db.js' - - - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration-with-incremental.js deleted file mode 100644 index d8fdb8837c..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration-with-incremental.js +++ /dev/null @@ -1,353 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a: string = 10; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 46, - "end": 47, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js|Dts", - 2 - ], - [ - "../src/main.ts", - "Js|Dts", - 3 - ], - [ - "../src/other.ts", - "Js|Dts", - 4 - ] - ], - "size": 1445 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1587 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts -(stored at emit) /user/username/projects/noEmitOnError/src/other.ts - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration.js b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration.js deleted file mode 100644 index 934b133bfd..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration.js +++ /dev/null @@ -1,222 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a: string = 10; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"],"semanticErrors":true} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 117, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js deleted file mode 100644 index ffd63e121b..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js +++ /dev/null @@ -1,330 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a: string = 10; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 46, - "end": 47, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js", - 2 - ], - [ - "../src/main.ts", - "Js", - 3 - ], - [ - "../src/other.ts", - "Js", - 4 - ] - ], - "size": 1446 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1368 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js deleted file mode 100644 index f23697e646..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js +++ /dev/null @@ -1,211 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a: string = 10; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"],"semanticErrors":true} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 117, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration-with-incremental.js deleted file mode 100644 index 3b86ee7324..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration-with-incremental.js +++ /dev/null @@ -1,359 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js|Dts", - 2 - ], - [ - "../src/main.ts", - "Js|Dts", - 3 - ], - [ - "../src/other.ts", - "Js|Dts", - 4 - ] - ], - "size": 1369 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1596 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: -(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts -(stored at emit) /user/username/projects/noEmitOnError/src/other.ts - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration.js b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration.js deleted file mode 100644 index 12ddd21eda..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration.js +++ /dev/null @@ -1,228 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js deleted file mode 100644 index d2e03dd47c..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js +++ /dev/null @@ -1,336 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js", - 2 - ], - [ - "../src/main.ts", - "Js", - 3 - ], - [ - "../src/other.ts", - "Js", - 4 - ] - ], - "size": 1370 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1377 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js deleted file mode 100644 index fd5f14f793..0000000000 --- a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js +++ /dev/null @@ -1,217 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [2]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' - - diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js deleted file mode 100644 index 1d09ddcaa5..0000000000 --- a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js +++ /dev/null @@ -1,135 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "dist", - "composite": true, - }, -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/dist/src/index.d.ts] *new* -export declare const x = 10; - -//// [/home/src/workspaces/project/dist/src/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"28e8748a7acd58f4f59388926e914f86-export const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/index.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1118 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/index.ts - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/tsconfig.tsbuildinfo' - - - - -Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted - -tsgo -p /home/src/workspaces/project/tsconfig.json -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js deleted file mode 100644 index 148ff32fc4..0000000000 --- a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js +++ /dev/null @@ -1,94 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "dist", - }, -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/dist/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../src/index.ts"]} -//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": "../src/index.ts" - } - ], - "size": 54 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/index.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/index.js' - - - - -Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted - -tsgo -p /home/src/workspaces/project/tsconfig.json -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/dist/index.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js deleted file mode 100644 index dd45df80af..0000000000 --- a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js +++ /dev/null @@ -1,164 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "dist", - "rootDir": "src", - "composite": true - }, -} -//// [/home/src/workspaces/project/types/type.ts] *new* -export type t = string; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/dist/index.d.ts] *new* -export declare const x = 10; - -//// [/home/src/workspaces/project/dist/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./src/index.ts","./types/type.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"28e8748a7acd58f4f59388926e914f86-export const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1},{"version":"37c1beee3ff062c5ae875b0377f00093-export type t = string;","signature":"09b8756df8837e9d9dd668b82d3aad6c-export type t = string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./dist","rootDir":"./src"},"latestChangedDtsFile":"./types/type.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts", - "./types/type.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/index.ts", - "./types/type.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/index.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./types/type.ts", - "version": "37c1beee3ff062c5ae875b0377f00093-export type t = string;", - "signature": "09b8756df8837e9d9dd668b82d3aad6c-export type t = string;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "37c1beee3ff062c5ae875b0377f00093-export type t = string;", - "signature": "09b8756df8837e9d9dd668b82d3aad6c-export type t = string;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./dist", - "rootDir": "./src" - }, - "latestChangedDtsFile": "./types/type.d.ts", - "size": 1328 -} -//// [/home/src/workspaces/project/types/type.d.ts] *new* -export type t = string; - -//// [/home/src/workspaces/project/types/type.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/index.ts -*refresh* /home/src/workspaces/project/types/type.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/index.ts -(stored at emit) /home/src/workspaces/project/types/type.ts - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'types/type.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted - -tsgo -p /home/src/workspaces/project/tsconfig.json -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js deleted file mode 100644 index 02a5df8acb..0000000000 --- a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js +++ /dev/null @@ -1,109 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "dist", - "rootDir": "src", - }, -} -//// [/home/src/workspaces/project/types/type.ts] *new* -export type t = string; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/dist/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./src/index.ts","./types/type.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": "./src/index.ts" - }, - { - "files": [ - "./types/type.ts" - ], - "original": "./types/type.ts" - } - ], - "size": 71 -} -//// [/home/src/workspaces/project/types/type.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/index.ts -*refresh* /home/src/workspaces/project/types/type.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'types/type.ts' is older than output 'dist/index.js' - - - - -Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted - -tsgo -p /home/src/workspaces/project/tsconfig.json -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/dist/index.js] *rewrite with same content* -//// [/home/src/workspaces/project/types/type.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js deleted file mode 100644 index f64edf9e83..0000000000 --- a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js +++ /dev/null @@ -1,95 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "dist", - "rootDir": "src", - }, -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/dist/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./src/index.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": "./src/index.ts" - } - ], - "size": 53 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/index.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/index.js' - - - - -Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted - -tsgo -p /home/src/workspaces/project/tsconfig.json -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/dist/index.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference-with-composite.js b/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference-with-composite.js deleted file mode 100644 index 63a099b0cb..0000000000 --- a/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference-with-composite.js +++ /dev/null @@ -1,276 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/index.ts] *new* -import { FOO } from "./lib/foo"; -//// [/home/src/workspaces/project/lib/foo.ts] *new* -export const FOO: string = 'THEFOOEXPORT'; -//// [/home/src/workspaces/project/lib/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "./dist" - } -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "references": [ { "path": "./lib" } ] -} - -tsgo --b -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/index.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/lib/dist/foo.d.ts] *new* -export declare const FOO: string; - -//// [/home/src/workspaces/project/lib/dist/foo.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FOO = void 0; -exports.FOO = 'THEFOOEXPORT'; - -//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';","signature":"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./foo.d.ts"} -//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../foo.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../foo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../foo.ts", - "version": "7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./foo.d.ts", - "size": 1133 -} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./lib/dist/foo.d.ts","./index.ts","./lib/foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n",{"version":"e7dbb9e054d23568235510c49ab58ce3-import { FOO } from \"./lib/foo\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts","resolvedRoot":[[2,4]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./lib/dist/foo.d.ts", - "./index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./lib/dist/foo.d.ts", - "./index.ts", - "./lib/foo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./lib/dist/foo.d.ts", - "version": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "e7dbb9e054d23568235510c49ab58ce3-import { FOO } from \"./lib/foo\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7dbb9e054d23568235510c49ab58ce3-import { FOO } from \"./lib/foo\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./lib/dist/foo.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./index.ts": [ - "./lib/dist/foo.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "resolvedRoot": [ - [ - "./lib/dist/foo.d.ts", - "./lib/foo.ts" - ] - ], - "size": 1270 -} - -lib/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/lib/foo.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/lib/foo.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/lib/dist/foo.d.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: dts doesnt change -//// [/home/src/workspaces/project/lib/foo.ts] *modified* -export const FOO: string = 'THEFOOEXPORT';const Bar = 10; - -tsgo --b -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/lib/dist/foo.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FOO = void 0; -exports.FOO = 'THEFOOEXPORT'; -const Bar = 10; - -//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;","signature":"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./foo.d.ts"} -//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../foo.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../foo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../foo.ts", - "version": "e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./foo.d.ts", - "size": 1148 -} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *mTime changed* - -lib/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/lib/foo.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/lib/foo.ts diff --git a/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference.js b/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference.js deleted file mode 100644 index 76ae0088b6..0000000000 --- a/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference.js +++ /dev/null @@ -1,248 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/index.ts] *new* -import { FOO } from "./lib/foo"; -//// [/home/src/workspaces/project/lib/foo.ts] *new* -export const FOO: string = 'THEFOOEXPORT'; -//// [/home/src/workspaces/project/lib/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "./dist" - } -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "references": [ { "path": "./lib" } ] -} - -tsgo --b -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/lib/dist/foo.d.ts] *new* -export declare const FOO: string; - -//// [/home/src/workspaces/project/lib/dist/foo.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FOO = void 0; -exports.FOO = 'THEFOOEXPORT'; - -//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';","signature":"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./foo.d.ts"} -//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../foo.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../foo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../foo.ts", - "version": "7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./foo.d.ts", - "size": 1133 -} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./index.ts","./lib/foo.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": "./index.ts" - }, - { - "files": [ - "./lib/foo.ts" - ], - "original": "./lib/foo.ts" - } - ], - "size": 64 -} - -lib/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/lib/foo.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/lib/foo.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/lib/dist/foo.d.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: - - -Edit [0]:: dts doesnt change -//// [/home/src/workspaces/project/lib/foo.ts] *modified* -export const FOO: string = 'THEFOOEXPORT';const Bar = 10; - -tsgo --b -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/index.js] *rewrite with same content* -//// [/home/src/workspaces/project/lib/dist/foo.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FOO = void 0; -exports.FOO = 'THEFOOEXPORT'; -const Bar = 10; - -//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;","signature":"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./foo.d.ts"} -//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../foo.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../foo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../foo.ts", - "version": "e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;", - "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./foo.d.ts", - "size": 1148 -} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./index.ts","./lib/foo.ts","./lib/dist/foo.d.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": "./index.ts" - }, - { - "files": [ - "./lib/foo.ts" - ], - "original": "./lib/foo.ts" - }, - { - "files": [ - "./lib/dist/foo.d.ts" - ], - "original": "./lib/dist/foo.d.ts" - } - ], - "size": 86 -} - -lib/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/lib/foo.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/lib/foo.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/lib/dist/foo.d.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-23-projects-in-a-solution.js b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-23-projects-in-a-solution.js deleted file mode 100644 index 623ffc3bf9..0000000000 --- a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-23-projects-in-a-solution.js +++ /dev/null @@ -1,3254 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg0/index.ts] *new* -export const pkg0 = 0; -//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* - { - "compilerOptions": { "composite": true }, - - } -//// [/user/username/projects/myproject/pkg1/index.ts] *new* -export const pkg1 = 1; -//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg10/index.ts] *new* -export const pkg10 = 10; -//// [/user/username/projects/myproject/pkg10/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg11/index.ts] *new* -export const pkg11 = 11; -//// [/user/username/projects/myproject/pkg11/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg12/index.ts] *new* -export const pkg12 = 12; -//// [/user/username/projects/myproject/pkg12/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg13/index.ts] *new* -export const pkg13 = 13; -//// [/user/username/projects/myproject/pkg13/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg14/index.ts] *new* -export const pkg14 = 14; -//// [/user/username/projects/myproject/pkg14/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg15/index.ts] *new* -export const pkg15 = 15; -//// [/user/username/projects/myproject/pkg15/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg16/index.ts] *new* -export const pkg16 = 16; -//// [/user/username/projects/myproject/pkg16/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg17/index.ts] *new* -export const pkg17 = 17; -//// [/user/username/projects/myproject/pkg17/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg18/index.ts] *new* -export const pkg18 = 18; -//// [/user/username/projects/myproject/pkg18/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg19/index.ts] *new* -export const pkg19 = 19; -//// [/user/username/projects/myproject/pkg19/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg2/index.ts] *new* -export const pkg2 = 2; -//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg20/index.ts] *new* -export const pkg20 = 20; -//// [/user/username/projects/myproject/pkg20/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg21/index.ts] *new* -export const pkg21 = 21; -//// [/user/username/projects/myproject/pkg21/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg22/index.ts] *new* -export const pkg22 = 22; -//// [/user/username/projects/myproject/pkg22/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg3/index.ts] *new* -export const pkg3 = 3; -//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg4/index.ts] *new* -export const pkg4 = 4; -//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg5/index.ts] *new* -export const pkg5 = 5; -//// [/user/username/projects/myproject/pkg5/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg6/index.ts] *new* -export const pkg6 = 6; -//// [/user/username/projects/myproject/pkg6/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg7/index.ts] *new* -export const pkg7 = 7; -//// [/user/username/projects/myproject/pkg7/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg8/index.ts] *new* -export const pkg8 = 8; -//// [/user/username/projects/myproject/pkg8/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg9/index.ts] *new* -export const pkg9 = 9; -//// [/user/username/projects/myproject/pkg9/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [ - { "path": "./pkg0" }, - { "path": "./pkg1" }, - { "path": "./pkg2" }, - { "path": "./pkg3" }, - { "path": "./pkg4" }, - { "path": "./pkg5" }, - { "path": "./pkg6" }, - { "path": "./pkg7" }, - { "path": "./pkg8" }, - { "path": "./pkg9" }, - { "path": "./pkg10" }, - { "path": "./pkg11" }, - { "path": "./pkg12" }, - { "path": "./pkg13" }, - { "path": "./pkg14" }, - { "path": "./pkg15" }, - { "path": "./pkg16" }, - { "path": "./pkg17" }, - { "path": "./pkg18" }, - { "path": "./pkg19" }, - { "path": "./pkg20" }, - { "path": "./pkg21" }, - { "path": "./pkg22" } - ] -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * pkg8/tsconfig.json - * pkg9/tsconfig.json - * pkg10/tsconfig.json - * pkg11/tsconfig.json - * pkg12/tsconfig.json - * pkg13/tsconfig.json - * pkg14/tsconfig.json - * pkg15/tsconfig.json - * pkg16/tsconfig.json - * pkg17/tsconfig.json - * pkg18/tsconfig.json - * pkg19/tsconfig.json - * pkg20/tsconfig.json - * pkg21/tsconfig.json - * pkg22/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is out of date because output file 'pkg8/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg8/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is out of date because output file 'pkg9/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg9/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is out of date because output file 'pkg10/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg10/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is out of date because output file 'pkg11/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg11/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is out of date because output file 'pkg12/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg12/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is out of date because output file 'pkg13/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg13/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is out of date because output file 'pkg14/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg14/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is out of date because output file 'pkg15/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg15/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is out of date because output file 'pkg16/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg16/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is out of date because output file 'pkg17/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg17/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is out of date because output file 'pkg18/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg18/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is out of date because output file 'pkg19/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg19/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is out of date because output file 'pkg20/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg20/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is out of date because output file 'pkg21/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg21/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is out of date because output file 'pkg22/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg22/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* -export declare const pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* -export declare const pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg1 = void 0; -exports.pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg10/index.d.ts] *new* -export declare const pkg10 = 10; - -//// [/user/username/projects/myproject/pkg10/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg10 = void 0; -exports.pkg10 = 10; - -//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;","signature":"c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;", - "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;", - "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg11/index.d.ts] *new* -export declare const pkg11 = 11; - -//// [/user/username/projects/myproject/pkg11/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg11 = void 0; -exports.pkg11 = 11; - -//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;","signature":"adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;", - "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;", - "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg12/index.d.ts] *new* -export declare const pkg12 = 12; - -//// [/user/username/projects/myproject/pkg12/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg12 = void 0; -exports.pkg12 = 12; - -//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;","signature":"3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;", - "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;", - "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg13/index.d.ts] *new* -export declare const pkg13 = 13; - -//// [/user/username/projects/myproject/pkg13/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg13 = void 0; -exports.pkg13 = 13; - -//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;","signature":"8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;", - "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;", - "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg14/index.d.ts] *new* -export declare const pkg14 = 14; - -//// [/user/username/projects/myproject/pkg14/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg14 = void 0; -exports.pkg14 = 14; - -//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;","signature":"97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;", - "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;", - "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg15/index.d.ts] *new* -export declare const pkg15 = 15; - -//// [/user/username/projects/myproject/pkg15/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg15 = void 0; -exports.pkg15 = 15; - -//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;","signature":"58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;", - "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;", - "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg16/index.d.ts] *new* -export declare const pkg16 = 16; - -//// [/user/username/projects/myproject/pkg16/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg16 = void 0; -exports.pkg16 = 16; - -//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;","signature":"7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;", - "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;", - "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg17/index.d.ts] *new* -export declare const pkg17 = 17; - -//// [/user/username/projects/myproject/pkg17/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg17 = void 0; -exports.pkg17 = 17; - -//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;","signature":"6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;", - "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;", - "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg18/index.d.ts] *new* -export declare const pkg18 = 18; - -//// [/user/username/projects/myproject/pkg18/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg18 = void 0; -exports.pkg18 = 18; - -//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;","signature":"998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;", - "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;", - "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg19/index.d.ts] *new* -export declare const pkg19 = 19; - -//// [/user/username/projects/myproject/pkg19/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg19 = void 0; -exports.pkg19 = 19; - -//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ac602ee4cba12981e12105658930586-export const pkg19 = 19;","signature":"9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0ac602ee4cba12981e12105658930586-export const pkg19 = 19;", - "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0ac602ee4cba12981e12105658930586-export const pkg19 = 19;", - "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* -export declare const pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg2 = void 0; -exports.pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg20/index.d.ts] *new* -export declare const pkg20 = 20; - -//// [/user/username/projects/myproject/pkg20/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg20 = void 0; -exports.pkg20 = 20; - -//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;","signature":"3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;", - "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;", - "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg21/index.d.ts] *new* -export declare const pkg21 = 21; - -//// [/user/username/projects/myproject/pkg21/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg21 = void 0; -exports.pkg21 = 21; - -//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;","signature":"28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;", - "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;", - "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg22/index.d.ts] *new* -export declare const pkg22 = 22; - -//// [/user/username/projects/myproject/pkg22/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg22 = void 0; -exports.pkg22 = 22; - -//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;","signature":"4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;", - "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;", - "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* -export declare const pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg3 = void 0; -exports.pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* -export declare const pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg4 = void 0; -exports.pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg5/index.d.ts] *new* -export declare const pkg5 = 5; - -//// [/user/username/projects/myproject/pkg5/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg5 = void 0; -exports.pkg5 = 5; - -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;","signature":"77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg6/index.d.ts] *new* -export declare const pkg6 = 6; - -//// [/user/username/projects/myproject/pkg6/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg6 = void 0; -exports.pkg6 = 6; - -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;","signature":"579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg7/index.d.ts] *new* -export declare const pkg7 = 7; - -//// [/user/username/projects/myproject/pkg7/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg7 = void 0; -exports.pkg7 = 7; - -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;","signature":"5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg8/index.d.ts] *new* -export declare const pkg8 = 8; - -//// [/user/username/projects/myproject/pkg8/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg8 = void 0; -exports.pkg8 = 8; - -//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;","signature":"cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;", - "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;", - "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg9/index.d.ts] *new* -export declare const pkg9 = 9; - -//// [/user/username/projects/myproject/pkg9/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg9 = void 0; -exports.pkg9 = 9; - -//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;","signature":"9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;", - "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;", - "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,24]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg10/index.d.ts","./pkg11/index.d.ts","./pkg12/index.d.ts","./pkg13/index.d.ts","./pkg14/index.d.ts","./pkg15/index.d.ts","./pkg16/index.d.ts","./pkg17/index.d.ts","./pkg18/index.d.ts","./pkg19/index.d.ts","./pkg2/index.d.ts","./pkg20/index.d.ts","./pkg21/index.d.ts","./pkg22/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg8/index.d.ts","./pkg9/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg10/index.ts","./pkg11/index.ts","./pkg12/index.ts","./pkg13/index.ts","./pkg14/index.ts","./pkg15/index.ts","./pkg16/index.ts","./pkg17/index.ts","./pkg18/index.ts","./pkg19/index.ts","./pkg2/index.ts","./pkg20/index.ts","./pkg21/index.ts","./pkg22/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts","./pkg8/index.ts","./pkg9/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n"],"options":{"composite":true},"resolvedRoot":[[2,25],[3,26],[4,27],[5,28],[6,29],[7,30],[8,31],[9,32],[10,33],[11,34],[12,35],[13,36],[14,37],[15,38],[16,39],[17,40],[18,41],[19,42],[20,43],[21,44],[22,45],[23,46],[24,47]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg10/index.d.ts", - "./pkg11/index.d.ts", - "./pkg12/index.d.ts", - "./pkg13/index.d.ts", - "./pkg14/index.d.ts", - "./pkg15/index.d.ts", - "./pkg16/index.d.ts", - "./pkg17/index.d.ts", - "./pkg18/index.d.ts", - "./pkg19/index.d.ts", - "./pkg2/index.d.ts", - "./pkg20/index.d.ts", - "./pkg21/index.d.ts", - "./pkg22/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg8/index.d.ts", - "./pkg9/index.d.ts" - ], - "original": [ - 2, - 24 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg10/index.d.ts", - "./pkg11/index.d.ts", - "./pkg12/index.d.ts", - "./pkg13/index.d.ts", - "./pkg14/index.d.ts", - "./pkg15/index.d.ts", - "./pkg16/index.d.ts", - "./pkg17/index.d.ts", - "./pkg18/index.d.ts", - "./pkg19/index.d.ts", - "./pkg2/index.d.ts", - "./pkg20/index.d.ts", - "./pkg21/index.d.ts", - "./pkg22/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg8/index.d.ts", - "./pkg9/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg10/index.ts", - "./pkg11/index.ts", - "./pkg12/index.ts", - "./pkg13/index.ts", - "./pkg14/index.ts", - "./pkg15/index.ts", - "./pkg16/index.ts", - "./pkg17/index.ts", - "./pkg18/index.ts", - "./pkg19/index.ts", - "./pkg2/index.ts", - "./pkg20/index.ts", - "./pkg21/index.ts", - "./pkg22/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts", - "./pkg5/index.ts", - "./pkg6/index.ts", - "./pkg7/index.ts", - "./pkg8/index.ts", - "./pkg9/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg10/index.d.ts", - "version": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg11/index.d.ts", - "version": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg12/index.d.ts", - "version": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg13/index.d.ts", - "version": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg14/index.d.ts", - "version": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg15/index.d.ts", - "version": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg16/index.d.ts", - "version": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg17/index.d.ts", - "version": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg18/index.d.ts", - "version": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg19/index.d.ts", - "version": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg20/index.d.ts", - "version": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg21/index.d.ts", - "version": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg22/index.d.ts", - "version": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg5/index.d.ts", - "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg6/index.d.ts", - "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg7/index.d.ts", - "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg8/index.d.ts", - "version": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg9/index.d.ts", - "version": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg10/index.d.ts", - "./pkg10/index.ts" - ], - [ - "./pkg11/index.d.ts", - "./pkg11/index.ts" - ], - [ - "./pkg12/index.d.ts", - "./pkg12/index.ts" - ], - [ - "./pkg13/index.d.ts", - "./pkg13/index.ts" - ], - [ - "./pkg14/index.d.ts", - "./pkg14/index.ts" - ], - [ - "./pkg15/index.d.ts", - "./pkg15/index.ts" - ], - [ - "./pkg16/index.d.ts", - "./pkg16/index.ts" - ], - [ - "./pkg17/index.d.ts", - "./pkg17/index.ts" - ], - [ - "./pkg18/index.d.ts", - "./pkg18/index.ts" - ], - [ - "./pkg19/index.d.ts", - "./pkg19/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg20/index.d.ts", - "./pkg20/index.ts" - ], - [ - "./pkg21/index.d.ts", - "./pkg21/index.ts" - ], - [ - "./pkg22/index.d.ts", - "./pkg22/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ], - [ - "./pkg5/index.d.ts", - "./pkg5/index.ts" - ], - [ - "./pkg6/index.d.ts", - "./pkg6/index.ts" - ], - [ - "./pkg7/index.d.ts", - "./pkg7/index.ts" - ], - [ - "./pkg8/index.d.ts", - "./pkg8/index.ts" - ], - [ - "./pkg9/index.d.ts", - "./pkg9/index.ts" - ] - ], - "size": 3564 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg1/index.ts - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg2/index.ts - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg3/index.ts - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg4/index.ts - -pkg5/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg5/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg5/index.ts - -pkg6/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg6/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg6/index.ts - -pkg7/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg7/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg7/index.ts - -pkg8/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg8/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg8/index.ts - -pkg9/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg9/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg9/index.ts - -pkg10/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg10/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg10/index.ts - -pkg11/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg11/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg11/index.ts - -pkg12/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg12/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg12/index.ts - -pkg13/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg13/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg13/index.ts - -pkg14/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg14/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg14/index.ts - -pkg15/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg15/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg15/index.ts - -pkg16/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg16/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg16/index.ts - -pkg17/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg17/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg17/index.ts - -pkg18/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg18/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg18/index.ts - -pkg19/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg19/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg19/index.ts - -pkg20/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg20/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg20/index.ts - -pkg21/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg21/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg21/index.ts - -pkg22/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg22/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg22/index.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.d.ts -*refresh* /user/username/projects/myproject/pkg10/index.d.ts -*refresh* /user/username/projects/myproject/pkg11/index.d.ts -*refresh* /user/username/projects/myproject/pkg12/index.d.ts -*refresh* /user/username/projects/myproject/pkg13/index.d.ts -*refresh* /user/username/projects/myproject/pkg14/index.d.ts -*refresh* /user/username/projects/myproject/pkg15/index.d.ts -*refresh* /user/username/projects/myproject/pkg16/index.d.ts -*refresh* /user/username/projects/myproject/pkg17/index.d.ts -*refresh* /user/username/projects/myproject/pkg18/index.d.ts -*refresh* /user/username/projects/myproject/pkg19/index.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.d.ts -*refresh* /user/username/projects/myproject/pkg20/index.d.ts -*refresh* /user/username/projects/myproject/pkg21/index.d.ts -*refresh* /user/username/projects/myproject/pkg22/index.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.d.ts -*refresh* /user/username/projects/myproject/pkg5/index.d.ts -*refresh* /user/username/projects/myproject/pkg6/index.d.ts -*refresh* /user/username/projects/myproject/pkg7/index.d.ts -*refresh* /user/username/projects/myproject/pkg8/index.d.ts -*refresh* /user/username/projects/myproject/pkg9/index.d.ts -Signatures:: - - -Edit [0]:: dts doesn't change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * pkg8/tsconfig.json - * pkg9/tsconfig.json - * pkg10/tsconfig.json - * pkg11/tsconfig.json - * pkg12/tsconfig.json - * pkg13/tsconfig.json - * pkg14/tsconfig.json - * pkg15/tsconfig.json - * pkg16/tsconfig.json - * pkg17/tsconfig.json - * pkg18/tsconfig.json - * pkg19/tsconfig.json - * pkg20/tsconfig.json - * pkg21/tsconfig.json - * pkg22/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg8/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg9/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg10/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg11/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg12/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg13/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg14/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg15/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg16/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg17/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg18/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg19/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg20/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg21/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg22/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1121 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - - -Edit [1]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * pkg8/tsconfig.json - * pkg9/tsconfig.json - * pkg10/tsconfig.json - * pkg11/tsconfig.json - * pkg12/tsconfig.json - * pkg13/tsconfig.json - * pkg14/tsconfig.json - * pkg15/tsconfig.json - * pkg16/tsconfig.json - * pkg17/tsconfig.json - * pkg18/tsconfig.json - * pkg19/tsconfig.json - * pkg20/tsconfig.json - * pkg21/tsconfig.json - * pkg22/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date because newest input 'pkg5/index.ts' is older than output 'pkg5/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date because newest input 'pkg6/index.ts' is older than output 'pkg6/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date because newest input 'pkg7/index.ts' is older than output 'pkg7/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is up to date because newest input 'pkg8/index.ts' is older than output 'pkg8/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is up to date because newest input 'pkg9/index.ts' is older than output 'pkg9/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is up to date because newest input 'pkg10/index.ts' is older than output 'pkg10/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is up to date because newest input 'pkg11/index.ts' is older than output 'pkg11/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is up to date because newest input 'pkg12/index.ts' is older than output 'pkg12/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is up to date because newest input 'pkg13/index.ts' is older than output 'pkg13/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is up to date because newest input 'pkg14/index.ts' is older than output 'pkg14/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is up to date because newest input 'pkg15/index.ts' is older than output 'pkg15/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is up to date because newest input 'pkg16/index.ts' is older than output 'pkg16/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is up to date because newest input 'pkg17/index.ts' is older than output 'pkg17/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is up to date because newest input 'pkg18/index.ts' is older than output 'pkg18/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is up to date because newest input 'pkg19/index.ts' is older than output 'pkg19/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is up to date because newest input 'pkg20/index.ts' is older than output 'pkg20/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is up to date because newest input 'pkg21/index.ts' is older than output 'pkg21/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is up to date because newest input 'pkg22/index.ts' is older than output 'pkg22/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [2]:: dts change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * pkg8/tsconfig.json - * pkg9/tsconfig.json - * pkg10/tsconfig.json - * pkg11/tsconfig.json - * pkg12/tsconfig.json - * pkg13/tsconfig.json - * pkg14/tsconfig.json - * pkg15/tsconfig.json - * pkg16/tsconfig.json - * pkg17/tsconfig.json - * pkg18/tsconfig.json - * pkg19/tsconfig.json - * pkg20/tsconfig.json - * pkg21/tsconfig.json - * pkg22/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg8/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg8/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg9/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg9/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg10/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg10/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg11/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg11/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg12/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg12/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg13/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg13/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg14/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg14/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg15/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg15/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is out of date because output 'pkg16/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg16/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg16/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is out of date because output 'pkg17/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg17/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg17/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is out of date because output 'pkg18/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg18/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg18/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is out of date because output 'pkg19/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg19/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg19/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is out of date because output 'pkg20/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg20/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg20/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is out of date because output 'pkg21/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg21/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg21/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is out of date because output 'pkg22/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg22/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg22/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* -export declare const pkg0 = 0; -export declare const someConst = 10; - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someConst = exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; -exports.someConst = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1187 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,24]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg10/index.d.ts","./pkg11/index.d.ts","./pkg12/index.d.ts","./pkg13/index.d.ts","./pkg14/index.d.ts","./pkg15/index.d.ts","./pkg16/index.d.ts","./pkg17/index.d.ts","./pkg18/index.d.ts","./pkg19/index.d.ts","./pkg2/index.d.ts","./pkg20/index.d.ts","./pkg21/index.d.ts","./pkg22/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg8/index.d.ts","./pkg9/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg10/index.ts","./pkg11/index.ts","./pkg12/index.ts","./pkg13/index.ts","./pkg14/index.ts","./pkg15/index.ts","./pkg16/index.ts","./pkg17/index.ts","./pkg18/index.ts","./pkg19/index.ts","./pkg2/index.ts","./pkg20/index.ts","./pkg21/index.ts","./pkg22/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts","./pkg8/index.ts","./pkg9/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n"],"options":{"composite":true},"resolvedRoot":[[2,25],[3,26],[4,27],[5,28],[6,29],[7,30],[8,31],[9,32],[10,33],[11,34],[12,35],[13,36],[14,37],[15,38],[16,39],[17,40],[18,41],[19,42],[20,43],[21,44],[22,45],[23,46],[24,47]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg10/index.d.ts", - "./pkg11/index.d.ts", - "./pkg12/index.d.ts", - "./pkg13/index.d.ts", - "./pkg14/index.d.ts", - "./pkg15/index.d.ts", - "./pkg16/index.d.ts", - "./pkg17/index.d.ts", - "./pkg18/index.d.ts", - "./pkg19/index.d.ts", - "./pkg2/index.d.ts", - "./pkg20/index.d.ts", - "./pkg21/index.d.ts", - "./pkg22/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg8/index.d.ts", - "./pkg9/index.d.ts" - ], - "original": [ - 2, - 24 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg10/index.d.ts", - "./pkg11/index.d.ts", - "./pkg12/index.d.ts", - "./pkg13/index.d.ts", - "./pkg14/index.d.ts", - "./pkg15/index.d.ts", - "./pkg16/index.d.ts", - "./pkg17/index.d.ts", - "./pkg18/index.d.ts", - "./pkg19/index.d.ts", - "./pkg2/index.d.ts", - "./pkg20/index.d.ts", - "./pkg21/index.d.ts", - "./pkg22/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg8/index.d.ts", - "./pkg9/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg10/index.ts", - "./pkg11/index.ts", - "./pkg12/index.ts", - "./pkg13/index.ts", - "./pkg14/index.ts", - "./pkg15/index.ts", - "./pkg16/index.ts", - "./pkg17/index.ts", - "./pkg18/index.ts", - "./pkg19/index.ts", - "./pkg2/index.ts", - "./pkg20/index.ts", - "./pkg21/index.ts", - "./pkg22/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts", - "./pkg5/index.ts", - "./pkg6/index.ts", - "./pkg7/index.ts", - "./pkg8/index.ts", - "./pkg9/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg10/index.d.ts", - "version": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg11/index.d.ts", - "version": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg12/index.d.ts", - "version": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg13/index.d.ts", - "version": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg14/index.d.ts", - "version": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg15/index.d.ts", - "version": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg16/index.d.ts", - "version": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg17/index.d.ts", - "version": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg18/index.d.ts", - "version": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg19/index.d.ts", - "version": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg20/index.d.ts", - "version": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg21/index.d.ts", - "version": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg22/index.d.ts", - "version": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg5/index.d.ts", - "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg6/index.d.ts", - "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg7/index.d.ts", - "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg8/index.d.ts", - "version": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg9/index.d.ts", - "version": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg10/index.d.ts", - "./pkg10/index.ts" - ], - [ - "./pkg11/index.d.ts", - "./pkg11/index.ts" - ], - [ - "./pkg12/index.d.ts", - "./pkg12/index.ts" - ], - [ - "./pkg13/index.d.ts", - "./pkg13/index.ts" - ], - [ - "./pkg14/index.d.ts", - "./pkg14/index.ts" - ], - [ - "./pkg15/index.d.ts", - "./pkg15/index.ts" - ], - [ - "./pkg16/index.d.ts", - "./pkg16/index.ts" - ], - [ - "./pkg17/index.d.ts", - "./pkg17/index.ts" - ], - [ - "./pkg18/index.d.ts", - "./pkg18/index.ts" - ], - [ - "./pkg19/index.d.ts", - "./pkg19/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg20/index.d.ts", - "./pkg20/index.ts" - ], - [ - "./pkg21/index.d.ts", - "./pkg21/index.ts" - ], - [ - "./pkg22/index.d.ts", - "./pkg22/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ], - [ - "./pkg5/index.d.ts", - "./pkg5/index.ts" - ], - [ - "./pkg6/index.d.ts", - "./pkg6/index.ts" - ], - [ - "./pkg7/index.d.ts", - "./pkg7/index.ts" - ], - [ - "./pkg8/index.d.ts", - "./pkg8/index.ts" - ], - [ - "./pkg9/index.d.ts", - "./pkg9/index.ts" - ] - ], - "size": 3602 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg5/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg6/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg7/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg8/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg9/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg10/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg11/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg12/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg13/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg14/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg15/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg16/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg17/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg18/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg19/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg20/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg21/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg22/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -Signatures:: -(used version) /user/username/projects/myproject/pkg0/index.d.ts - - -Edit [3]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * pkg8/tsconfig.json - * pkg9/tsconfig.json - * pkg10/tsconfig.json - * pkg11/tsconfig.json - * pkg12/tsconfig.json - * pkg13/tsconfig.json - * pkg14/tsconfig.json - * pkg15/tsconfig.json - * pkg16/tsconfig.json - * pkg17/tsconfig.json - * pkg18/tsconfig.json - * pkg19/tsconfig.json - * pkg20/tsconfig.json - * pkg21/tsconfig.json - * pkg22/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date because newest input 'pkg5/index.ts' is older than output 'pkg5/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date because newest input 'pkg6/index.ts' is older than output 'pkg6/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date because newest input 'pkg7/index.ts' is older than output 'pkg7/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is up to date because newest input 'pkg8/index.ts' is older than output 'pkg8/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is up to date because newest input 'pkg9/index.ts' is older than output 'pkg9/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is up to date because newest input 'pkg10/index.ts' is older than output 'pkg10/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is up to date because newest input 'pkg11/index.ts' is older than output 'pkg11/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is up to date because newest input 'pkg12/index.ts' is older than output 'pkg12/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is up to date because newest input 'pkg13/index.ts' is older than output 'pkg13/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is up to date because newest input 'pkg14/index.ts' is older than output 'pkg14/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is up to date because newest input 'pkg15/index.ts' is older than output 'pkg15/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is up to date because newest input 'pkg16/index.ts' is older than output 'pkg16/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is up to date because newest input 'pkg17/index.ts' is older than output 'pkg17/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is up to date because newest input 'pkg18/index.ts' is older than output 'pkg18/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is up to date because newest input 'pkg19/index.ts' is older than output 'pkg19/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is up to date because newest input 'pkg20/index.ts' is older than output 'pkg20/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is up to date because newest input 'pkg21/index.ts' is older than output 'pkg21/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is up to date because newest input 'pkg22/index.ts' is older than output 'pkg22/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-3-projects-in-a-solution.js b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-3-projects-in-a-solution.js deleted file mode 100644 index 19eaec4182..0000000000 --- a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-3-projects-in-a-solution.js +++ /dev/null @@ -1,694 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg0/index.ts] *new* -export const pkg0 = 0; -//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* - { - "compilerOptions": { "composite": true }, - - } -//// [/user/username/projects/myproject/pkg1/index.ts] *new* -export const pkg1 = 1; -//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg2/index.ts] *new* -export const pkg2 = 2; -//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [ - { "path": "./pkg0" }, - { "path": "./pkg1" }, - { "path": "./pkg2" } - ] -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* -export declare const pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* -export declare const pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg1 = void 0; -exports.pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* -export declare const pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg2 = void 0; -exports.pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n"],"options":{"composite":true},"resolvedRoot":[[2,5],[3,6],[4,7]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ] - ], - "size": 1233 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg1/index.ts - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg2/index.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.d.ts -Signatures:: - - -Edit [0]:: dts doesn't change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1121 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - - -Edit [1]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [2]:: dts change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* -export declare const pkg0 = 0; -export declare const someConst = 10; - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someConst = exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; -exports.someConst = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1187 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n"],"options":{"composite":true},"resolvedRoot":[[2,5],[3,6],[4,7]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ] - ], - "size": 1271 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -Signatures:: -(used version) /user/username/projects/myproject/pkg0/index.d.ts - - -Edit [3]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-5-projects-in-a-solution.js b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-5-projects-in-a-solution.js deleted file mode 100644 index 7e44575678..0000000000 --- a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-5-projects-in-a-solution.js +++ /dev/null @@ -1,950 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg0/index.ts] *new* -export const pkg0 = 0; -//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* - { - "compilerOptions": { "composite": true }, - - } -//// [/user/username/projects/myproject/pkg1/index.ts] *new* -export const pkg1 = 1; -//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg2/index.ts] *new* -export const pkg2 = 2; -//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg3/index.ts] *new* -export const pkg3 = 3; -//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg4/index.ts] *new* -export const pkg4 = 4; -//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [ - { "path": "./pkg0" }, - { "path": "./pkg1" }, - { "path": "./pkg2" }, - { "path": "./pkg3" }, - { "path": "./pkg4" } - ] -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* -export declare const pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* -export declare const pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg1 = void 0; -exports.pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* -export declare const pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg2 = void 0; -exports.pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* -export declare const pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg3 = void 0; -exports.pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* -export declare const pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg4 = void 0; -exports.pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n"],"options":{"composite":true},"resolvedRoot":[[2,7],[3,8],[4,9],[5,10],[6,11]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ] - ], - "size": 1459 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg1/index.ts - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg2/index.ts - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg3/index.ts - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg4/index.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.d.ts -Signatures:: - - -Edit [0]:: dts doesn't change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1121 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - - -Edit [1]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [2]:: dts change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* -export declare const pkg0 = 0; -export declare const someConst = 10; - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someConst = exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; -exports.someConst = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1187 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n"],"options":{"composite":true},"resolvedRoot":[[2,7],[3,8],[4,9],[5,10],[6,11]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ] - ], - "size": 1497 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -Signatures:: -(used version) /user/username/projects/myproject/pkg0/index.d.ts - - -Edit [3]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-8-projects-in-a-solution.js b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-8-projects-in-a-solution.js deleted file mode 100644 index baaf20c983..0000000000 --- a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-8-projects-in-a-solution.js +++ /dev/null @@ -1,1334 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg0/index.ts] *new* -export const pkg0 = 0; -//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* - { - "compilerOptions": { "composite": true }, - - } -//// [/user/username/projects/myproject/pkg1/index.ts] *new* -export const pkg1 = 1; -//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg2/index.ts] *new* -export const pkg2 = 2; -//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg3/index.ts] *new* -export const pkg3 = 3; -//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg4/index.ts] *new* -export const pkg4 = 4; -//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg5/index.ts] *new* -export const pkg5 = 5; -//// [/user/username/projects/myproject/pkg5/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg6/index.ts] *new* -export const pkg6 = 6; -//// [/user/username/projects/myproject/pkg6/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg7/index.ts] *new* -export const pkg7 = 7; -//// [/user/username/projects/myproject/pkg7/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [ - { "path": "./pkg0" }, - { "path": "./pkg1" }, - { "path": "./pkg2" }, - { "path": "./pkg3" }, - { "path": "./pkg4" }, - { "path": "./pkg5" }, - { "path": "./pkg6" }, - { "path": "./pkg7" } - ] -} - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* -export declare const pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* -export declare const pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg1 = void 0; -exports.pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* -export declare const pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg2 = void 0; -exports.pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* -export declare const pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg3 = void 0; -exports.pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* -export declare const pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg4 = void 0; -exports.pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg5/index.d.ts] *new* -export declare const pkg5 = 5; - -//// [/user/username/projects/myproject/pkg5/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg5 = void 0; -exports.pkg5 = 5; - -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;","signature":"77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg6/index.d.ts] *new* -export declare const pkg6 = 6; - -//// [/user/username/projects/myproject/pkg6/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg6 = void 0; -exports.pkg6 = 6; - -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;","signature":"579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg7/index.d.ts] *new* -export declare const pkg7 = 7; - -//// [/user/username/projects/myproject/pkg7/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg7 = void 0; -exports.pkg7 = 7; - -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;","signature":"5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,9]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n"],"options":{"composite":true},"resolvedRoot":[[2,10],[3,11],[4,12],[5,13],[6,14],[7,15],[8,16],[9,17]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts" - ], - "original": [ - 2, - 9 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts", - "./pkg5/index.ts", - "./pkg6/index.ts", - "./pkg7/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg5/index.d.ts", - "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg6/index.d.ts", - "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg7/index.d.ts", - "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ], - [ - "./pkg5/index.d.ts", - "./pkg5/index.ts" - ], - [ - "./pkg6/index.d.ts", - "./pkg6/index.ts" - ], - [ - "./pkg7/index.d.ts", - "./pkg7/index.ts" - ] - ], - "size": 1801 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg1/index.ts - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg2/index.ts - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg3/index.ts - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg4/index.ts - -pkg5/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg5/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg5/index.ts - -pkg6/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg6/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg6/index.ts - -pkg7/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg7/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg7/index.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.d.ts -*refresh* /user/username/projects/myproject/pkg5/index.d.ts -*refresh* /user/username/projects/myproject/pkg6/index.d.ts -*refresh* /user/username/projects/myproject/pkg7/index.d.ts -Signatures:: - - -Edit [0]:: dts doesn't change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1121 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - - -Edit [1]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date because newest input 'pkg5/index.ts' is older than output 'pkg5/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date because newest input 'pkg6/index.ts' is older than output 'pkg6/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date because newest input 'pkg7/index.ts' is older than output 'pkg7/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' - - - - -Edit [2]:: dts change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/tsconfig.tsbuildinfo' is older than input 'pkg0' - -[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* -export declare const pkg0 = 0; -export declare const someConst = 10; - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someConst = exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; -exports.someConst = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1187 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,9]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n"],"options":{"composite":true},"resolvedRoot":[[2,10],[3,11],[4,12],[5,13],[6,14],[7,15],[8,16],[9,17]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts" - ], - "original": [ - 2, - 9 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts", - "./pkg5/index.ts", - "./pkg6/index.ts", - "./pkg7/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg5/index.d.ts", - "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg6/index.d.ts", - "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg7/index.d.ts", - "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ], - [ - "./pkg5/index.d.ts", - "./pkg5/index.ts" - ], - [ - "./pkg6/index.d.ts", - "./pkg6/index.ts" - ], - [ - "./pkg7/index.d.ts", - "./pkg7/index.ts" - ] - ], - "size": 1839 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg5/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg6/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg7/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -Signatures:: -(used version) /user/username/projects/myproject/pkg0/index.d.ts - - -Edit [3]:: no change - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date because newest input 'pkg5/index.ts' is older than output 'pkg5/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date because newest input 'pkg6/index.ts' is older than output 'pkg6/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date because newest input 'pkg7/index.ts' is older than output 'pkg7/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js deleted file mode 100644 index ebb3b8f37a..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js +++ /dev/null @@ -1,111 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "files": [ "src/index.ts", "src/hello.json", ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' - Part of 'files' list in tsconfig.json -project/src/index.ts - Part of 'files' list in tsconfig.json -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../src/index.ts","../src/hello.json"]} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": "../src/index.ts" - }, - { - "files": [ - "../src/hello.json" - ], - "original": "../src/hello.json" - } - ], - "size": 74 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js deleted file mode 100644 index 6aeb39923e..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js +++ /dev/null @@ -1,173 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "files": [ "src/index.ts", "src/hello.json", ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/src/index.js -TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' - Part of 'files' list in tsconfig.json -project/src/index.ts - Part of 'files' list in tsconfig.json -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/hello.json", - "../src/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/hello.json", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "../src/index.ts", - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./", - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../src/index.ts": [ - "../src/hello.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1432 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js deleted file mode 100644 index 03b9663617..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js +++ /dev/null @@ -1,256 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/main/index.ts] *new* -import { foo } from '../strings/foo.json'; -console.log(foo); -//// [/home/src/workspaces/solution/project/main/tsconfig.json] *new* -{ - "extends": "../tsconfig.json", - "include": [ - "./**/*.ts", - ], - "references": [{ - "path": "../strings/tsconfig.json", - }], -} -//// [/home/src/workspaces/solution/project/strings/foo.json] *new* -{ - "foo": "bar baz" -} -//// [/home/src/workspaces/solution/project/strings/tsconfig.json] *new* -{ - "extends": "../tsconfig.json", - "include": ["foo.json"], - "references": [], -} -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "rootDir": "./", - "composite": true, - "resolveJsonModule": true, - "strict": true, - "esModuleInterop": true, - }, - "references": [ - { "path": "./strings/tsconfig.json" }, - { "path": "./main/tsconfig.json" }, - ], - "files": [], -} - -tsgo --b project --verbose --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/strings/tsconfig.json - * project/main/tsconfig.json - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/strings/tsconfig.json' is out of date because output file 'project/strings/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/strings/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/strings/foo.json - Matched by include pattern 'foo.json' in 'project/strings/tsconfig.json' -[HH:MM:SS AM] Project 'project/main/tsconfig.json' is out of date because output file 'project/main/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/main/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/strings/foo.json - Imported via '../strings/foo.json' from file 'project/main/index.ts' -project/main/index.ts - Matched by include pattern './**/*.ts' in 'project/main/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/main/index.d.ts] *new* -export {}; - -//// [/home/src/workspaces/solution/project/main/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const foo_json_1 = require("../strings/foo.json"); -console.log(foo_json_1.foo); - -//// [/home/src/workspaces/solution/project/main/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}"},{"version":"a22713a27f380b4892020f4caa9bb85f-import { foo } from '../strings/foo.json';\nconsole.log(foo);","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/home/src/workspaces/solution/project/main/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../strings/foo.json", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../strings/foo.json", - "version": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}", - "signature": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}" - } - }, - { - "fileName": "./index.ts", - "version": "a22713a27f380b4892020f4caa9bb85f-import { foo } from '../strings/foo.json';\nconsole.log(foo);", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a22713a27f380b4892020f4caa9bb85f-import { foo } from '../strings/foo.json';\nconsole.log(foo);", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../strings/foo.json" - ] - ], - "options": { - "composite": true, - "esModuleInterop": true, - "module": 1, - "rootDir": "..", - "strict": true, - "target": 1 - }, - "referencedMap": { - "./index.ts": [ - "../strings/foo.json" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1336 -} -//// [/home/src/workspaces/solution/project/strings/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./foo.json"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}"}],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1}} -//// [/home/src/workspaces/solution/project/strings/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./foo.json" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./foo.json" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./foo.json", - "version": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}", - "signature": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}" - } - } - ], - "options": { - "composite": true, - "esModuleInterop": true, - "module": 1, - "rootDir": "..", - "strict": true, - "target": 1 - }, - "size": 1041 -} - -project/strings/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/strings/foo.json -Signatures:: - -project/main/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/strings/foo.json -*refresh* /home/src/workspaces/solution/project/main/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/main/index.ts - - -Edit [0]:: no change - -tsgo --b project --verbose --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/strings/tsconfig.json - * project/main/tsconfig.json - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/strings/tsconfig.json' is up to date because newest input 'project/strings/foo.json' is older than output 'project/strings/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'project/main/tsconfig.json' is up to date because newest input 'project/main/index.ts' is older than output 'project/main/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js deleted file mode 100644 index a066b6fa31..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js +++ /dev/null @@ -1,111 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "files": [ "src/hello.json" ], "include": [ "src/**/*" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Part of 'files' list in tsconfig.json - Imported via "./hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../src/hello.json","../src/index.ts"]} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/hello.json" - ], - "original": "../src/hello.json" - }, - { - "files": [ - "../src/index.ts" - ], - "original": "../src/index.ts" - } - ], - "size": 74 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js deleted file mode 100644 index 75c1106d57..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js +++ /dev/null @@ -1,173 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "files": [ "src/hello.json" ], "include": [ "src/**/*" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/src/index.js -TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Part of 'files' list in tsconfig.json - Imported via "./hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/hello.json", - "../src/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/hello.json", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "../src/index.ts", - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./", - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../src/index.ts": [ - "../src/hello.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1432 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js deleted file mode 100644 index b91f4bdf71..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js +++ /dev/null @@ -1,111 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/index.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./index.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*", "src/**/*.json" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/index.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/index.json - Imported via "./index.json" from file 'project/src/index.ts' - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const index_json_1 = __importDefault(require("./index.json")); -exports.default = index_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/index.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../src/index.ts","../src/index.json"]} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": "../src/index.ts" - }, - { - "files": [ - "../src/index.json" - ], - "original": "../src/index.json" - } - ], - "size": 74 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/index.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js deleted file mode 100644 index e809cb4e10..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js +++ /dev/null @@ -1,173 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/index.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./index.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*", "src/**/*.json" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/src/index.json -TSFILE: /home/src/workspaces/solution/project/dist/src/index.js -TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/index.json - Imported via "./index.json" from file 'project/src/index.ts' - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const index_json_1 = __importDefault(require("./index.json")); -exports.default = index_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/src/index.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"fe545b3049ca1f2ad9aac3a6ebf9aebb-import hello from \"./index.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.json", - "../src/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/index.json", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/index.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "../src/index.ts", - "version": "fe545b3049ca1f2ad9aac3a6ebf9aebb-import hello from \"./index.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fe545b3049ca1f2ad9aac3a6ebf9aebb-import hello from \"./index.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/index.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./", - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../src/index.ts": [ - "../src/index.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1432 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/index.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js deleted file mode 100644 index 1cec780948..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js +++ /dev/null @@ -1,111 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*", "src/**/*.json" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../src/index.ts","../src/hello.json"]} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": "../src/index.ts" - }, - { - "files": [ - "../src/hello.json" - ], - "original": "../src/hello.json" - } - ], - "size": 74 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js deleted file mode 100644 index dc8239edd9..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js +++ /dev/null @@ -1,173 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*", "src/**/*.json" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/src/index.js -TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/hello.json", - "../src/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/hello.json", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "../src/index.ts", - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./", - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../src/index.ts": [ - "../src/hello.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1432 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js deleted file mode 100644 index 5bd9751d2b..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js +++ /dev/null @@ -1,104 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../src/index.ts"]} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": "../src/index.ts" - } - ], - "size": 54 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js deleted file mode 100644 index ceaab60daa..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js +++ /dev/null @@ -1,98 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "../hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "rootDir": "src", - }, - "include": [ "src/**/*" ], -} - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/hello.json - Imported via "../hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("../hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./src/index.ts"]} -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": "./src/index.ts" - } - ], - "size": 53 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js deleted file mode 100644 index 02cc15d857..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js +++ /dev/null @@ -1,163 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "../hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "rootDir": "src", - }, - "include": [ "src/**/*" ], -} - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/index.d.ts -TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/hello.json - Imported via "../hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/dist/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("../hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","./hello.json","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"a4ada5a36528c3fb01d6f98af94bc507-import hello from \"../hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./dist/index.d.ts"} -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "./hello.json", - "./src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "./src/index.ts", - "version": "a4ada5a36528c3fb01d6f98af94bc507-import hello from \"../hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a4ada5a36528c3fb01d6f98af94bc507-import hello from \"../hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./dist", - "rootDir": "./src", - "skipDefaultLibCheck": true - }, - "referencedMap": { - "./src/index.ts": [ - "./hello.json" - ] - }, - "latestChangedDtsFile": "./dist/index.d.ts", - "size": 1446 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js deleted file mode 100644 index a872caddc9..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js +++ /dev/null @@ -1,106 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "../../hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/project/src/index.js -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -hello.json - Imported via "../../hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -[HH:MM:SS AM] Updating unchanged output timestamps of project 'project/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/project/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("../../hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../src/index.ts"]} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": "../src/index.ts" - } - ], - "size": 54 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js deleted file mode 100644 index 8a4dc3f779..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js +++ /dev/null @@ -1,162 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "../../hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/src/index.js -TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -hello.json - Imported via "../../hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("../../hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../../hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"6f9721ccc194272bc2b0e0566ab15e63-import hello from \"../../hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../../hello.json", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "../src/index.ts", - "version": "6f9721ccc194272bc2b0e0566ab15e63-import hello from \"../../hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f9721ccc194272bc2b0e0566ab15e63-import hello from \"../../hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./", - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../src/index.ts": [ - "../../hello.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1431 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js deleted file mode 100644 index 545fcf8cb2..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js +++ /dev/null @@ -1,98 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/src/index.js -TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./src/index.ts"]} -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": "./src/index.ts" - } - ], - "size": 53 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js deleted file mode 100644 index 29840e7834..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js +++ /dev/null @@ -1,161 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/src/index.js -TSFILE: /home/src/workspaces/solution/project/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "./src/hello.json", - "./src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "./src/index.ts", - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "./src/index.ts": [ - "./src/hello.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1412 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only.js deleted file mode 100644 index 75134d2b92..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only.js +++ /dev/null @@ -1,177 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - - }, - "include": [ "src/**/*" ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -project/src/index.ts:1:19 - error TS6307: File '/home/src/workspaces/solution/project/src/hello.json' is not listed within the file list of project '/home/src/workspaces/solution/project/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -1 import hello from "./hello.json" -   ~~~~~~~~~~~~~~ - -TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/src/index.js -TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' -project/src/index.ts - Matched by include pattern 'src/**/*' in 'project/tsconfig.json' - -Found 1 error in project/src/index.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[3],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../src/hello.json", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "../src/index.ts", - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./", - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../src/index.ts": [ - "../src/hello.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1442 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js deleted file mode 100644 index f879030840..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js +++ /dev/null @@ -1,127 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "sourceMap": true, - }, - "files": [ "src/index.ts", "src/hello.json", ], -} - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js.map -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' - Part of 'files' list in tsconfig.json -project/src/index.ts - Part of 'files' list in tsconfig.json -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; -//# sourceMappingURL=index.js.map -//// [/home/src/workspaces/solution/project/dist/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;kBACjB,oBAAK,CAAC,KAAK"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../src/index.ts","../src/hello.json"]} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/index.ts" - ], - "original": "../src/index.ts" - }, - { - "files": [ - "../src/hello.json" - ], - "original": "../src/hello.json" - } - ], - "size": 74 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is up to date because newest input 'project/src/index.ts' is older than output 'project/dist/hello.json' - - diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js deleted file mode 100644 index cf389624e5..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js +++ /dev/null @@ -1,190 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "sourceMap": true, - }, - "files": [ "src/index.ts", "src/hello.json", ], -} - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/src/index.js.map -TSFILE: /home/src/workspaces/solution/project/dist/src/index.js -TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' - Part of 'files' list in tsconfig.json -project/src/index.ts - Part of 'files' list in tsconfig.json -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* -{ - "hello": "world" -} - -//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; -//# sourceMappingURL=index.js.map -//// [/home/src/workspaces/solution/project/dist/src/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;kBACjB,oBAAK,CAAC,KAAK"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/hello.json", - "../src/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/hello.json", - "../src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "../src/index.ts", - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "outDir": "./", - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "../src/index.ts": [ - "../src/hello.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1449 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts - - -Edit [0]:: no change - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is up to date because newest input 'project/src/index.ts' is older than output 'project/dist/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js deleted file mode 100644 index a6a4b93f44..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js +++ /dev/null @@ -1,118 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": false, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - - "skipDefaultLibCheck": true, - - }, - "files": [ "src/index.ts", "src/hello.json", ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/src/index.js -TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' - Part of 'files' list in tsconfig.json -project/src/index.ts - Part of 'files' list in tsconfig.json -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./src/index.ts","./src/hello.json"]} -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.ts" - ], - "original": "./src/index.ts" - }, - { - "files": [ - "./src/hello.json" - ], - "original": "./src/hello.json" - } - ], - "size": 72 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is up to date because newest input 'project/src/index.ts' is older than output 'project/src/index.js' - - diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js deleted file mode 100644 index 01b7cb87c6..0000000000 --- a/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js +++ /dev/null @@ -1,179 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/src/hello.json] *new* -{ - "hello": "world" -} -//// [/home/src/workspaces/solution/project/src/index.ts] *new* -import hello from "./hello.json" -export default hello.hello -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* - { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - - "skipDefaultLibCheck": true, - - }, - "files": [ "src/index.ts", "src/hello.json", ], - } - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project/tsconfig.json'... - -TSFILE: /home/src/workspaces/solution/project/src/index.js -TSFILE: /home/src/workspaces/solution/project/src/index.d.ts -TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -project/src/hello.json - Imported via "./hello.json" from file 'project/src/index.ts' - Part of 'files' list in tsconfig.json -project/src/index.ts - Part of 'files' list in tsconfig.json -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/src/index.d.ts] *new* -declare const _default: string; -export default _default; - -//// [/home/src/workspaces/solution/project/src/index.js] *new* -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hello_json_1 = __importDefault(require("./hello.json")); -exports.default = hello_json_1.default.hello; - -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} -//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/hello.json", - "./src/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/hello.json", - "./src/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/hello.json", - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", - "impliedNodeFormat": "None", - "original": { - "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" - } - }, - { - "fileName": "./src/index.ts", - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", - "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/hello.json" - ] - ], - "options": { - "allowSyntheticDefaultImports": true, - "composite": true, - "esModuleInterop": true, - "module": 1, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "./src/index.ts": [ - "./src/hello.json" - ] - }, - "latestChangedDtsFile": "./src/index.d.ts", - "size": 1416 -} - -project/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/project/src/hello.json -*refresh* /home/src/workspaces/solution/project/src/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/project/src/index.ts - - -Edit [0]:: no change - -tsgo --b project --v --explainFiles --listEmittedFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * project/tsconfig.json - -[HH:MM:SS AM] Project 'project/tsconfig.json' is up to date because newest input 'project/src/index.ts' is older than output 'project/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js b/testdata/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js deleted file mode 100644 index dc06e690be..0000000000 --- a/testdata/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js +++ /dev/null @@ -1,535 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/anotherNonConsecutive.ts] *new* -import { random } from "./random2"; -export const nonConsecutive = "hello"; -//// [/home/src/workspaces/project/asArray1.ts] *new* -import { random } from "./random1"; -export const x = "hello"; -//// [/home/src/workspaces/project/asArray2.ts] *new* -export const x = "hello"; -//// [/home/src/workspaces/project/asArray3.ts] *new* -export const x = "hello"; -//// [/home/src/workspaces/project/file1.ts] *new* -export const x = "hello"; -//// [/home/src/workspaces/project/file2.ts] *new* -export const y = "world"; -//// [/home/src/workspaces/project/nonconsecutive.ts] *new* -import { random } from "./random"; - export const nonConsecutive = "hello"; -//// [/home/src/workspaces/project/random.d.ts] *new* -export const random = "hello"; -//// [/home/src/workspaces/project/random1.d.ts] *new* -export const random = "hello"; -//// [/home/src/workspaces/project/random2.d.ts] *new* -export const random = "hello"; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "include": ["file*.ts", "nonconsecutive*.ts", "asArray*.ts", "anotherNonConsecutive.ts"], -} - -tsgo --b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/anotherNonConsecutive.d.ts] *new* -export declare const nonConsecutive = "hello"; - -//// [/home/src/workspaces/project/anotherNonConsecutive.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.nonConsecutive = void 0; -exports.nonConsecutive = "hello"; - -//// [/home/src/workspaces/project/asArray1.d.ts] *new* -export declare const x = "hello"; - -//// [/home/src/workspaces/project/asArray1.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = "hello"; - -//// [/home/src/workspaces/project/asArray2.d.ts] *new* -export declare const x = "hello"; - -//// [/home/src/workspaces/project/asArray2.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = "hello"; - -//// [/home/src/workspaces/project/asArray3.d.ts] *new* -export declare const x = "hello"; - -//// [/home/src/workspaces/project/asArray3.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = "hello"; - -//// [/home/src/workspaces/project/file1.d.ts] *new* -export declare const x = "hello"; - -//// [/home/src/workspaces/project/file1.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = "hello"; - -//// [/home/src/workspaces/project/file2.d.ts] *new* -export declare const y = "world"; - -//// [/home/src/workspaces/project/file2.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = "world"; - -//// [/home/src/workspaces/project/nonconsecutive.d.ts] *new* -export declare const nonConsecutive = "hello"; - -//// [/home/src/workspaces/project/nonconsecutive.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.nonConsecutive = void 0; -exports.nonConsecutive = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3],5,[7,9],11],"fileNames":["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":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";","signature":"ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";","signature":"ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n","impliedNodeFormat":1}],"fileIdsList":[[10],[6],[4]],"options":{"composite":true},"referencedMap":[[11,1],[7,2],[5,3]],"latestChangedDtsFile":"./anotherNonConsecutive.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./file1.ts", - "./file2.ts" - ], - "original": [ - 2, - 3 - ] - }, - { - "files": [ - "./nonconsecutive.ts" - ], - "original": 5 - }, - { - "files": [ - "./asArray1.ts", - "./asArray2.ts", - "./asArray3.ts" - ], - "original": [ - 7, - 9 - ] - }, - { - "files": [ - "./anotherNonConsecutive.ts" - ], - "original": 11 - } - ], - "fileNames": [ - "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": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file1.ts", - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file2.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./random.d.ts", - "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./nonconsecutive.ts", - "version": "805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";", - "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";", - "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./random1.d.ts", - "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./asArray1.ts", - "version": "f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./asArray2.ts", - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./asArray3.ts", - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./random2.d.ts", - "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./anotherNonConsecutive.ts", - "version": "f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";", - "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";", - "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./random2.d.ts" - ], - [ - "./random1.d.ts" - ], - [ - "./random.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./anotherNonConsecutive.ts": [ - "./random2.d.ts" - ], - "./asArray1.ts": [ - "./random1.d.ts" - ], - "./nonconsecutive.ts": [ - "./random.d.ts" - ] - }, - "latestChangedDtsFile": "./anotherNonConsecutive.d.ts", - "size": 2836 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/file1.ts -*refresh* /home/src/workspaces/project/file2.ts -*refresh* /home/src/workspaces/project/random.d.ts -*refresh* /home/src/workspaces/project/nonconsecutive.ts -*refresh* /home/src/workspaces/project/random1.d.ts -*refresh* /home/src/workspaces/project/asArray1.ts -*refresh* /home/src/workspaces/project/asArray2.ts -*refresh* /home/src/workspaces/project/asArray3.ts -*refresh* /home/src/workspaces/project/random2.d.ts -*refresh* /home/src/workspaces/project/anotherNonConsecutive.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/file1.ts -(stored at emit) /home/src/workspaces/project/file2.ts -(stored at emit) /home/src/workspaces/project/nonconsecutive.ts -(stored at emit) /home/src/workspaces/project/asArray1.ts -(stored at emit) /home/src/workspaces/project/asArray2.ts -(stored at emit) /home/src/workspaces/project/asArray3.ts -(stored at emit) /home/src/workspaces/project/anotherNonConsecutive.ts - - -Edit [0]:: delete file1 -//// [/home/src/workspaces/project/file1.d.ts] *deleted* -//// [/home/src/workspaces/project/file1.js] *deleted* -//// [/home/src/workspaces/project/file1.ts] *deleted* - -tsgo --b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that file 'file1.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2,4,[6,8],10],"fileNames":["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":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";","signature":"ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";","signature":"ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n","impliedNodeFormat":1}],"fileIdsList":[[9],[5],[3]],"options":{"composite":true},"referencedMap":[[10,1],[6,2],[4,3]],"latestChangedDtsFile":"./anotherNonConsecutive.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./file2.ts" - ], - "original": 2 - }, - { - "files": [ - "./nonconsecutive.ts" - ], - "original": 4 - }, - { - "files": [ - "./asArray1.ts", - "./asArray2.ts", - "./asArray3.ts" - ], - "original": [ - 6, - 8 - ] - }, - { - "files": [ - "./anotherNonConsecutive.ts" - ], - "original": 10 - } - ], - "fileNames": [ - "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": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file2.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./random.d.ts", - "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./nonconsecutive.ts", - "version": "805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";", - "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";", - "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./random1.d.ts", - "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./asArray1.ts", - "version": "f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./asArray2.ts", - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./asArray3.ts", - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./random2.d.ts", - "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./anotherNonConsecutive.ts", - "version": "f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";", - "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";", - "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./random2.d.ts" - ], - [ - "./random1.d.ts" - ], - [ - "./random.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./anotherNonConsecutive.ts": [ - "./random2.d.ts" - ], - "./asArray1.ts": [ - "./random1.d.ts" - ], - "./nonconsecutive.ts": [ - "./random.d.ts" - ] - }, - "latestChangedDtsFile": "./anotherNonConsecutive.d.ts", - "size": 2636 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js b/testdata/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js deleted file mode 100644 index 9a30b979d9..0000000000 --- a/testdata/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js +++ /dev/null @@ -1,246 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/file1.ts] *new* -export const x = "hello"; -//// [/home/src/workspaces/project/file2.ts] *new* -import { random } from "./random"; -export const y = "world"; -//// [/home/src/workspaces/project/random.d.ts] *new* -export const random = "world"; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "include": ["file*.ts"], -} - -tsgo --b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/file1.d.ts] *new* -export declare const x = "hello"; - -//// [/home/src/workspaces/project/file1.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = "hello"; - -//// [/home/src/workspaces/project/file2.d.ts] *new* -export declare const y = "world"; - -//// [/home/src/workspaces/project/file2.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = "world"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2,4],"fileNames":["lib.d.ts","./file1.ts","./random.d.ts","./file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},"c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";",{"version":"451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./file2.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./file1.ts" - ], - "original": 2 - }, - { - "files": [ - "./file2.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./file1.ts", - "./random.d.ts", - "./file2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file1.ts", - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./random.d.ts", - "version": "c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";", - "signature": "c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./file2.ts", - "version": "451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./random.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./file2.ts": [ - "./random.d.ts" - ] - }, - "latestChangedDtsFile": "./file2.d.ts", - "size": 1472 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/file1.ts -*refresh* /home/src/workspaces/project/random.d.ts -*refresh* /home/src/workspaces/project/file2.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/file1.ts -(stored at emit) /home/src/workspaces/project/file2.ts - - -Edit [0]:: delete file1 -//// [/home/src/workspaces/project/file1.d.ts] *deleted* -//// [/home/src/workspaces/project/file1.js] *deleted* -//// [/home/src/workspaces/project/file1.ts] *deleted* - -tsgo --b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that file 'file1.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","./random.d.ts","./file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";",{"version":"451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./file2.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./file2.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "./random.d.ts", - "./file2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./random.d.ts", - "version": "c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";", - "signature": "c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./file2.ts", - "version": "451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./random.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./file2.ts": [ - "./random.d.ts" - ] - }, - "latestChangedDtsFile": "./file2.d.ts", - "size": 1275 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js b/testdata/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js deleted file mode 100644 index 5a33c66b61..0000000000 --- a/testdata/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js +++ /dev/null @@ -1,287 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/file1.ts] *new* -export const x = "hello"; -//// [/home/src/workspaces/project/file2.ts] *new* -export const y = "world"; -//// [/home/src/workspaces/project/file3.ts] *new* -export const y = "world"; -//// [/home/src/workspaces/project/file4.ts] *new* -export const y = "world"; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "include": ["*.ts"], -} - -tsgo --b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/file1.d.ts] *new* -export declare const x = "hello"; - -//// [/home/src/workspaces/project/file1.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = "hello"; - -//// [/home/src/workspaces/project/file2.d.ts] *new* -export declare const y = "world"; - -//// [/home/src/workspaces/project/file2.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = "world"; - -//// [/home/src/workspaces/project/file3.d.ts] *new* -export declare const y = "world"; - -//// [/home/src/workspaces/project/file3.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = "world"; - -//// [/home/src/workspaces/project/file4.d.ts] *new* -export declare const y = "world"; - -//// [/home/src/workspaces/project/file4.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = "world"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./file1.ts","./file2.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./file4.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./file1.ts", - "./file2.ts", - "./file3.ts", - "./file4.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./file1.ts", - "./file2.ts", - "./file3.ts", - "./file4.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file1.ts", - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file2.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file3.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file4.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./file4.d.ts", - "size": 1698 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/file1.ts -*refresh* /home/src/workspaces/project/file2.ts -*refresh* /home/src/workspaces/project/file3.ts -*refresh* /home/src/workspaces/project/file4.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/file1.ts -(stored at emit) /home/src/workspaces/project/file2.ts -(stored at emit) /home/src/workspaces/project/file3.ts -(stored at emit) /home/src/workspaces/project/file4.ts - - -Edit [0]:: delete file1 -//// [/home/src/workspaces/project/file1.d.ts] *deleted* -//// [/home/src/workspaces/project/file1.js] *deleted* -//// [/home/src/workspaces/project/file1.ts] *deleted* - -tsgo --b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that file 'file1.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./file2.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./file4.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./file2.ts", - "./file3.ts", - "./file4.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./file2.ts", - "./file3.ts", - "./file4.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file2.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file3.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file4.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./file4.d.ts", - "size": 1503 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js b/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js deleted file mode 100644 index 8925e1504a..0000000000 --- a/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js +++ /dev/null @@ -1,887 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/projects/server/src/server.ts] *new* -import { MyClass } from ':shared/myClass.js'; -console.log('Hello, world!'); -//// [/home/src/workspaces/solution/projects/server/tsconfig.json] *new* -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "rootDir": "..", - "outDir": "./dist", - "paths": { - ":shared/*": ["./src/../../shared/src/*"], - }, - }, - "include": [ "../shared/src/**/*.ts", "src/**/*.ts" ], - "references": [ - { "path": "../shared" }, - ], -} -//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *new* -export function log(str: string) { - console.log(str); -} -//// [/home/src/workspaces/solution/projects/shared/src/myClass.ts] *new* -export class MyClass { } -//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *new* -export function randomFn(str: string) { - console.log(str); -} -//// [/home/src/workspaces/solution/projects/shared/tsconfig.json] *new* -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist", - }, - "include": ["src/**/*.ts"], -} -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "projects/server" }, - { "path": "projects/shared" }, - ], -} - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output file 'projects/shared/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/random.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output file 'projects/server/dist/server/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/myClass.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/shared/dist/src/random.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/random.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.d.ts] *new* -export {}; - -//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log('Hello, world!'); - -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../../shared/dist/src/random.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[5,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[3,7],[4,8]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../src/server.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../src/server.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/random.d.ts", - "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/random.ts" - ] - ], - "size": 1728 -} -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *new* -export declare function log(str: string): void; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.log = log; -function log(str) { - console.log(str); -} - -//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts] *new* -export declare class MyClass { -} - -//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MyClass = void 0; -class MyClass { -} -exports.MyClass = MyClass; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/random.d.ts] *new* -export declare function randomFn(str: string): void; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/random.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.randomFn = randomFn; -function randomFn(str) { - console.log(str); -} - -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}","signature":"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/random.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/random.ts", - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/random.d.ts", - "size": 1637 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/myClass.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/random.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/projects/shared/src/logging.ts -(stored at emit) /home/src/workspaces/solution/projects/shared/src/myClass.ts -(stored at emit) /home/src/workspaces/solution/projects/shared/src/random.ts - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/random.d.ts -*refresh* /home/src/workspaces/solution/projects/server/src/server.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/projects/server/src/server.ts - - -Edit [0]:: no change - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/random.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/random.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' - - - - -Edit [1]:: edit logging file -//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *modified* -export function log(str: string) { - console.log(str); -}export const x = 10; - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output 'projects/shared/dist/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/random.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output 'projects/server/dist/server/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/myClass.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/shared/dist/src/random.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/random.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../../shared/dist/src/random.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[5,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[3,7],[4,8]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../src/server.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../src/server.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/random.d.ts", - "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/random.ts" - ] - ], - "size": 1758 -} -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *modified* -export declare function log(str: string): void; -export declare const x = 10; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.log = log; -function log(str) { - console.log(str); -} -exports.x = 10; - -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/random.ts", - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/logging.d.ts", - "size": 1688 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/projects/shared/src/logging.ts - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts -Signatures:: -(used version) /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts - - -Edit [2]:: no change - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' - - - - -Edit [3]:: delete random file -//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *deleted* - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because buildinfo file 'projects/shared/dist/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because buildinfo file 'projects/server/dist/server/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/myClass.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[4,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,5],[3,6]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/myClass.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ] - ], - "size": 1591 -} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/logging.d.ts", - "size": 1432 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project.js b/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project.js deleted file mode 100644 index fba2e0b30f..0000000000 --- a/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project.js +++ /dev/null @@ -1,887 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/projects/server/src/server.ts] *new* -import { MyClass } from ':shared/myClass.js'; -console.log('Hello, world!'); -//// [/home/src/workspaces/solution/projects/server/tsconfig.json] *new* -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "rootDir": "..", - "outDir": "./dist", - "paths": { - ":shared/*": ["./src/../../shared/src/*"], - }, - }, - "include": [ "src/**/*.ts", "../shared/src/**/*.ts" ], - "references": [ - { "path": "../shared" }, - ], -} -//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *new* -export function log(str: string) { - console.log(str); -} -//// [/home/src/workspaces/solution/projects/shared/src/myClass.ts] *new* -export class MyClass { } -//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *new* -export function randomFn(str: string) { - console.log(str); -} -//// [/home/src/workspaces/solution/projects/shared/tsconfig.json] *new* -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist", - }, - "include": ["src/**/*.ts"], -} -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "projects/server" }, - { "path": "projects/shared" }, - ], -} - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output file 'projects/shared/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/random.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output file 'projects/server/dist/server/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/myClass.d.ts - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/random.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/random.ts' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.d.ts] *new* -export {}; - -//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log('Hello, world!'); - -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/random.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[4,7],[5,8]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/random.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/random.d.ts", - "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/random.ts" - ] - ], - "size": 1728 -} -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *new* -export declare function log(str: string): void; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.log = log; -function log(str) { - console.log(str); -} - -//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts] *new* -export declare class MyClass { -} - -//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MyClass = void 0; -class MyClass { -} -exports.MyClass = MyClass; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/random.d.ts] *new* -export declare function randomFn(str: string): void; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/random.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.randomFn = randomFn; -function randomFn(str) { - console.log(str); -} - -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}","signature":"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/random.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/random.ts", - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/random.d.ts", - "size": 1637 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/myClass.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/random.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/projects/shared/src/logging.ts -(stored at emit) /home/src/workspaces/solution/projects/shared/src/myClass.ts -(stored at emit) /home/src/workspaces/solution/projects/shared/src/random.ts - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts -*refresh* /home/src/workspaces/solution/projects/server/src/server.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/random.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/projects/server/src/server.ts - - -Edit [0]:: no change - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/random.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/random.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' - - - - -Edit [1]:: edit logging file -//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *modified* -export function log(str: string) { - console.log(str); -}export const x = 10; - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output 'projects/shared/dist/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/random.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output 'projects/server/dist/server/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/myClass.d.ts - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/random.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/random.ts' -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/random.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[4,7],[5,8]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/random.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/random.d.ts", - "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/random.ts" - ] - ], - "size": 1758 -} -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *modified* -export declare function log(str: string): void; -export declare const x = 10; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.log = log; -function log(str) { - console.log(str); -} -exports.x = 10; - -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/random.ts", - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/logging.d.ts", - "size": 1688 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/projects/shared/src/logging.ts - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts -Signatures:: -(used version) /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts - - -Edit [2]:: no change - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' - - - - -Edit [3]:: delete random file -//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *deleted* - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because buildinfo file 'projects/shared/dist/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because buildinfo file 'projects/server/dist/server/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/myClass.d.ts - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,5],[4,6]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/logging.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ] - ], - "size": 1591 -} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/logging.d.ts", - "size": 1432 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --b projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js b/testdata/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js deleted file mode 100644 index 0516d44027..0000000000 --- a/testdata/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js +++ /dev/null @@ -1,206 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/file1.ts] *new* -export const x = "hello"; -//// [/home/src/workspaces/project/file2.ts] *new* -export const y = "world"; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "include": ["*.ts"], -} - -tsgo --b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/file1.d.ts] *new* -export declare const x = "hello"; - -//// [/home/src/workspaces/project/file1.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = "hello"; - -//// [/home/src/workspaces/project/file2.d.ts] *new* -export declare const y = "world"; - -//// [/home/src/workspaces/project/file2.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = "world"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./file2.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./file1.ts", - "./file2.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./file1.ts", - "./file2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file1.ts", - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", - "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file2.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./file2.d.ts", - "size": 1308 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/file1.ts -*refresh* /home/src/workspaces/project/file2.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/file1.ts -(stored at emit) /home/src/workspaces/project/file2.ts - - -Edit [0]:: delete file1 -//// [/home/src/workspaces/project/file1.d.ts] *deleted* -//// [/home/src/workspaces/project/file1.js] *deleted* -//// [/home/src/workspaces/project/file1.ts] *deleted* - -tsgo --b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that file 'file1.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./file2.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./file2.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./file2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file2.ts", - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", - "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./file2.d.ts", - "size": 1109 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/always-builds-under-with-force-option.js b/testdata/baselines/reference/tsbuild/sample/always-builds-under-with-force-option.js deleted file mode 100644 index f8ea0d9f23..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/always-builds-under-with-force-option.js +++ /dev/null @@ -1,481 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --force -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: no change - -tsgo --b tests --force -ExitStatus:: Success -Output:: -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/anotherModule.js] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/user/username/projects/sample1/tests/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/building-project-in-not-build-order-doesnt-throw-error.js b/testdata/baselines/reference/tsbuild/sample/building-project-in-not-build-order-doesnt-throw-error.js deleted file mode 100644 index bda501271a..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/building-project-in-not-build-order-doesnt-throw-error.js +++ /dev/null @@ -1,75 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b logic2/tsconfig.json --verbose -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * logic2/tsconfig.json - -[HH:MM:SS AM] Project 'logic2/tsconfig.json' is out of date because config file does not exist. - -error TS6053: File '/user/username/projects/sample1/logic2/tsconfig.json' not found. - -Found 1 error. - - diff --git a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-declarationDir-is-specified.js b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-declarationDir-is-specified.js deleted file mode 100644 index c3265da6f8..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-declarationDir-is-specified.js +++ /dev/null @@ -1,428 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "declarationDir": "out/decls", - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/out/decls/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./out/decls/index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "declarationDir": "./out/decls", - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./out/decls/index.d.ts", - "size": 1893 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/out/decls/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/out/decls/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/out/decls/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/out/decls/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/out/decls/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2048 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/out/decls/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-outDir-is-specified.js b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-outDir-is-specified.js deleted file mode 100644 index 2e36adda35..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-outDir-is-specified.js +++ /dev/null @@ -1,428 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "outDir": "outDir", - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/outDir/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/outDir/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/outDir/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../../core/index.d.ts","../../core/anotherModule.d.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../../core/index.d.ts", - "../../core/anotherModule.d.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../core/index.d.ts", - "../../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "outDir": "./", - "sourceMap": true - }, - "referencedMap": { - "../index.ts": [ - "../../core/index.d.ts", - "../../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1873 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/outDir/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/outDir/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/outDir/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/outDir/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/outDir/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/outDir/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2045 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/outDir/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js deleted file mode 100644 index a96cc2f902..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js +++ /dev/null @@ -1,158 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts" - ], - "original": "./anotherModule.ts" - }, - { - "files": [ - "./index.ts" - ], - "original": "./index.ts" - }, - { - "files": [ - "./some_decl.d.ts" - ], - "original": "./some_decl.d.ts" - } - ], - "size": 89 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/builds-downstream-projects-even-if-upstream-projects-have-errors.js b/testdata/baselines/reference/tsbuild/sample/builds-downstream-projects-even-if-upstream-projects-have-errors.js deleted file mode 100644 index fc975d6e23..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/builds-downstream-projects-even-if-upstream-projects-have-errors.js +++ /dev/null @@ -1,502 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.muitply(); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/user/username/projects/sample1/core/index")'. - -3 return c.muitply(); -   ~~~~~~~ - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - - -Found 1 error in logic/index.ts:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): any; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.muitply(); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;AAAA,CACtB;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"4da0a6ee7d4a662685afc8fe143c994d-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":85,"end":92,"code":2339,"category":1,"message":"Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "4da0a6ee7d4a662685afc8fe143c994d-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4da0a6ee7d4a662685afc8fe143c994d-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 85, - "end": 92, - "code": 2339, - "category": 1, - "message": "Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2070 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2035 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: no change - -tsgo --b tests --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because buildinfo file 'logic/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/user/username/projects/sample1/core/index")'. - -3 return c.muitply(); -   ~~~~~~~ - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... - - -Found 1 error in logic/index.ts:3 - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -logic/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/can-detect-when-and-what-to-rebuild.js b/testdata/baselines/reference/tsbuild/sample/can-detect-when-and-what-to-rebuild.js deleted file mode 100644 index 4de6163398..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/can-detect-when-and-what-to-rebuild.js +++ /dev/null @@ -1,797 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: no change - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' - - - - -Edit [1]:: Only builds the leaf node project -//// [/user/username/projects/sample1/tests/index.ts] *modified* -const m = 10; - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/index.ts' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/tests/index.d.ts] *modified* -declare const m = 10; - -//// [/user/username/projects/sample1/tests/index.js] *modified* -const m = 10; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"56d1f0295f08f455bf238abf352169ad-const m = 10;","signature":"5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "56d1f0295f08f455bf238abf352169ad-const m = 10;", - "signature": "5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "56d1f0295f08f455bf238abf352169ad-const m = 10;", - "signature": "5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1153 -} - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [2]:: Detects type-only changes in upstream projects -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "WELCOME PLANET"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAyB,CAAC;AACnD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "WELCOME PLANET"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"5db513b8d1d81d749259481c8a605be6-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; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "5db513b8d1d81d749259481c8a605be6-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; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5db513b8d1d81d749259481c8a605be6-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; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1821 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - - -Edit [3]:: rebuilds when tsconfig changes -//// [/user/username/projects/sample1/tests/tsconfig.json] *modified* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, "target": "es2020", - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.json' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.es2020.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.es2020.full.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"56d1f0295f08f455bf238abf352169ad-const m = 10;","signature":"5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":7},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.es2020.full.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.es2020.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "56d1f0295f08f455bf238abf352169ad-const m = 10;", - "signature": "5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "56d1f0295f08f455bf238abf352169ad-const m = 10;", - "signature": "5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "target": 7 - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1176 -} - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2020.full.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /home/src/tslibs/TS/Lib/lib.es2020.full.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/cleaning-project-in-not-build-order-doesnt-throw-error.js b/testdata/baselines/reference/tsbuild/sample/cleaning-project-in-not-build-order-doesnt-throw-error.js deleted file mode 100644 index 5a1bbd8d55..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/cleaning-project-in-not-build-order-doesnt-throw-error.js +++ /dev/null @@ -1,70 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b logic2 --clean -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -error TS6053: File '/user/username/projects/sample1/logic2/tsconfig.json' not found. - -Found 1 error. - - diff --git a/testdata/baselines/reference/tsbuild/sample/does-not-write-any-files-in-a-dry-build.js b/testdata/baselines/reference/tsbuild/sample/does-not-write-any-files-in-a-dry-build.js deleted file mode 100644 index 0a972aa01b..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/does-not-write-any-files-in-a-dry-build.js +++ /dev/null @@ -1,72 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --dry -ExitStatus:: Success -Output:: -[HH:MM:SS AM] A non-dry build would build project '/user/username/projects/sample1/core/tsconfig.json' - -[HH:MM:SS AM] A non-dry build would build project '/user/username/projects/sample1/logic/tsconfig.json' - -[HH:MM:SS AM] A non-dry build would build project '/user/username/projects/sample1/tests/tsconfig.json' - - diff --git a/testdata/baselines/reference/tsbuild/sample/explainFiles.js b/testdata/baselines/reference/tsbuild/sample/explainFiles.js deleted file mode 100644 index 34f858c988..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/explainFiles.js +++ /dev/null @@ -1,996 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --explainFiles --v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -core/anotherModule.ts - Matched by default include pattern '**/*' -core/index.ts - Matched by default include pattern '**/*' -core/some_decl.d.ts - Matched by default include pattern '**/*' -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -core/index.d.ts - Imported via '../core/index' from file 'logic/index.ts' - File is output of project reference source 'core/index.ts' -core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'logic/index.ts' - File is output of project reference source 'core/anotherModule.ts' -logic/index.ts - Matched by default include pattern '**/*' -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -core/index.d.ts - Imported via '../core/index' from file 'tests/index.ts' - File is output of project reference source 'core/index.ts' -core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'logic/index.d.ts' - Imported via '../core/anotherModule' from file 'tests/index.ts' - File is output of project reference source 'core/anotherModule.ts' -logic/index.d.ts - Imported via '../logic/index' from file 'tests/index.ts' - File is output of project reference source 'logic/index.ts' -tests/index.ts - Part of 'files' list in tsconfig.json -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } - -tsgo --b tests --explainFiles --v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -core/anotherModule.ts - Matched by default include pattern '**/*' -core/index.ts - Matched by default include pattern '**/*' -core/some_decl.d.ts - Matched by default include pattern '**/*' -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'core' - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -core/index.d.ts - Imported via '../core/index' from file 'logic/index.ts' - File is output of project reference source 'core/index.ts' -core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'logic/index.ts' - File is output of project reference source 'core/anotherModule.ts' -logic/index.ts - Matched by default include pattern '**/*' -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'core' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -core/index.d.ts - Imported via '../core/index' from file 'tests/index.ts' - File is output of project reference source 'core/index.ts' -core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'logic/index.d.ts' - Imported via '../core/anotherModule' from file 'tests/index.ts' - File is output of project reference source 'core/anotherModule.ts' -logic/index.d.ts - Imported via '../logic/index' from file 'tests/index.ts' - File is output of project reference source 'logic/index.ts' -tests/index.ts - Part of 'files' list in tsconfig.json -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1883 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1916 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2075 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [1]:: incremental-declaration-doesnt-change -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } -class someClass2 { } - -tsgo --b tests --explainFiles --v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -core/anotherModule.ts - Matched by default include pattern '**/*' -core/index.ts - Matched by default include pattern '**/*' -core/some_decl.d.ts - Matched by default include pattern '**/*' -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; -class someClass2 { -} - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1905 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - - -Edit [2]:: no change - -tsgo --b tests --explainFiles --v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/sample/indicates-that-it-would-skip-builds-during-a-dry-build.js b/testdata/baselines/reference/tsbuild/sample/indicates-that-it-would-skip-builds-during-a-dry-build.js deleted file mode 100644 index 0f87cbd2cf..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/indicates-that-it-would-skip-builds-during-a-dry-build.js +++ /dev/null @@ -1,442 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: --dry - -tsgo --b tests --dry -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Project '/user/username/projects/sample1/core/tsconfig.json' is up to date - -[HH:MM:SS AM] Project '/user/username/projects/sample1/logic/tsconfig.json' is up to date - -[HH:MM:SS AM] Project '/user/username/projects/sample1/tests/tsconfig.json' is up to date - - diff --git a/testdata/baselines/reference/tsbuild/sample/listEmittedFiles.js b/testdata/baselines/reference/tsbuild/sample/listEmittedFiles.js deleted file mode 100644 index e714739a80..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/listEmittedFiles.js +++ /dev/null @@ -1,888 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --listEmittedFiles -ExitStatus:: Success -Output:: -TSFILE: /user/username/projects/sample1/core/anotherModule.js -TSFILE: /user/username/projects/sample1/core/anotherModule.d.ts.map -TSFILE: /user/username/projects/sample1/core/anotherModule.d.ts -TSFILE: /user/username/projects/sample1/core/index.js -TSFILE: /user/username/projects/sample1/core/index.d.ts.map -TSFILE: /user/username/projects/sample1/core/index.d.ts -TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo -TSFILE: /user/username/projects/sample1/logic/index.js.map -TSFILE: /user/username/projects/sample1/logic/index.js -TSFILE: /user/username/projects/sample1/logic/index.d.ts -TSFILE: /user/username/projects/sample1/logic/tsconfig.tsbuildinfo -TSFILE: /user/username/projects/sample1/tests/index.js -TSFILE: /user/username/projects/sample1/tests/index.d.ts -TSFILE: /user/username/projects/sample1/tests/tsconfig.tsbuildinfo -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } - -tsgo --b tests --listEmittedFiles -ExitStatus:: Success -Output:: -TSFILE: /user/username/projects/sample1/core/index.js -TSFILE: /user/username/projects/sample1/core/index.d.ts.map -TSFILE: /user/username/projects/sample1/core/index.d.ts -TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo -TSFILE: /user/username/projects/sample1/logic/index.js.map -TSFILE: /user/username/projects/sample1/logic/index.js -TSFILE: /user/username/projects/sample1/logic/tsconfig.tsbuildinfo -TSFILE: /user/username/projects/sample1/tests/index.js -TSFILE: /user/username/projects/sample1/tests/tsconfig.tsbuildinfo -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1883 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1916 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2075 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [1]:: incremental-declaration-doesnt-change -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } -class someClass2 { } - -tsgo --b tests --listEmittedFiles -ExitStatus:: Success -Output:: -TSFILE: /user/username/projects/sample1/core/index.js -TSFILE: /user/username/projects/sample1/core/index.d.ts.map -TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; -class someClass2 { -} - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1905 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - - -Edit [2]:: no change - -tsgo --b tests --listEmittedFiles -ExitStatus:: Success -Output:: - diff --git a/testdata/baselines/reference/tsbuild/sample/listFiles.js b/testdata/baselines/reference/tsbuild/sample/listFiles.js deleted file mode 100644 index 3f6d7f9965..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/listFiles.js +++ /dev/null @@ -1,892 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --listFiles -ExitStatus:: Success -Output:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/sample1/core/anotherModule.ts -/user/username/projects/sample1/core/index.ts -/user/username/projects/sample1/core/some_decl.d.ts -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/core/anotherModule.d.ts -/user/username/projects/sample1/logic/index.ts -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/core/anotherModule.d.ts -/user/username/projects/sample1/logic/index.d.ts -/user/username/projects/sample1/tests/index.ts -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } - -tsgo --b tests --listFiles -ExitStatus:: Success -Output:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/sample1/core/anotherModule.ts -/user/username/projects/sample1/core/index.ts -/user/username/projects/sample1/core/some_decl.d.ts -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/core/anotherModule.d.ts -/user/username/projects/sample1/logic/index.ts -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/core/anotherModule.d.ts -/user/username/projects/sample1/logic/index.d.ts -/user/username/projects/sample1/tests/index.ts -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1883 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1916 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2075 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [1]:: incremental-declaration-doesnt-change -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } -class someClass2 { } - -tsgo --b tests --listFiles -ExitStatus:: Success -Output:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/sample1/core/anotherModule.ts -/user/username/projects/sample1/core/index.ts -/user/username/projects/sample1/core/some_decl.d.ts -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; -class someClass2 { -} - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1905 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - - -Edit [2]:: no change - -tsgo --b tests --listFiles -ExitStatus:: Success -Output:: - diff --git a/testdata/baselines/reference/tsbuild/sample/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/testdata/baselines/reference/tsbuild/sample/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js deleted file mode 100644 index 0a3b7949b0..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ /dev/null @@ -1,524 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: convert tsbuildInfo version to something that is say to previous version -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTsPreviousVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTsPreviousVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTsPreviousVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output for it was generated with version 'FakeTsPreviousVersion' that differs with current version 'FakeTSVersion' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTsPreviousVersion' that differs with current version 'FakeTSVersion' - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTsPreviousVersion' that differs with current version 'FakeTSVersion' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/anotherModule.js] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/user/username/projects/sample1/tests/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/rebuilds-from-start-if-force-option-is-set.js b/testdata/baselines/reference/tsbuild/sample/rebuilds-from-start-if-force-option-is-set.js deleted file mode 100644 index fe5b8a8b51..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/rebuilds-from-start-if-force-option-is-set.js +++ /dev/null @@ -1,498 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: --force build - -tsgo --b tests --verbose --force -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is being forcibly rebuilt - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is being forcibly rebuilt - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is being forcibly rebuilt - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/anotherModule.js] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/user/username/projects/sample1/tests/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/rebuilds-when-extended-config-file-changes.js b/testdata/baselines/reference/tsbuild/sample/rebuilds-when-extended-config-file-changes.js deleted file mode 100644 index 529bf18c46..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/rebuilds-when-extended-config-file-changes.js +++ /dev/null @@ -1,572 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.base.json] *new* -{ - "compilerOptions": { - "target": "es5" - } -} -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "extends": "./tsconfig.base.json", "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":1},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "target": 1 - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2049 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: change extended file -//// [/user/username/projects/sample1/tests/tsconfig.base.json] *modified* -{ - "compilerOptions": { } -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.base.json' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -tests/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/removes-all-files-it-built.js b/testdata/baselines/reference/tsbuild/sample/removes-all-files-it-built.js deleted file mode 100644 index 4dbbe4597f..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/removes-all-files-it-built.js +++ /dev/null @@ -1,458 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: removes all files it built - -tsgo --b tests --clean -ExitStatus:: Success -Output:: -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *deleted* -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *deleted* -//// [/user/username/projects/sample1/core/anotherModule.js] *deleted* -//// [/user/username/projects/sample1/core/index.d.ts] *deleted* -//// [/user/username/projects/sample1/core/index.d.ts.map] *deleted* -//// [/user/username/projects/sample1/core/index.js] *deleted* -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *deleted* -//// [/user/username/projects/sample1/logic/index.d.ts] *deleted* -//// [/user/username/projects/sample1/logic/index.js] *deleted* -//// [/user/username/projects/sample1/logic/index.js.map] *deleted* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *deleted* -//// [/user/username/projects/sample1/tests/index.d.ts] *deleted* -//// [/user/username/projects/sample1/tests/index.js] *deleted* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *deleted* - - - -Edit [1]:: no change --clean - -tsgo --b tests --clean -ExitStatus:: Success -Output:: - diff --git a/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing-with-force.js b/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing-with-force.js deleted file mode 100644 index 11c9af0739..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing-with-force.js +++ /dev/null @@ -1,425 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "files": ["anotherModule.ts", "index.ts", "some_decl.d.ts"], -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose --force -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is being forcibly rebuilt - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is being forcibly rebuilt - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -logic/index.ts:5:22 - error TS2307: Cannot find module '../core/anotherModule' or its corresponding type declarations. - -5 import * as mod from '../core/anotherModule'; -   ~~~~~~~~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is being forcibly rebuilt - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -tests/index.ts:7:22 - error TS2307: Cannot find module '../core/anotherModule' or its corresponding type declarations. - -7 import * as mod from '../core/anotherModule'; -   ~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 logic/index.ts:5 - 1 tests/index.ts:7 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1539 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -export declare const m: any; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../core/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-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":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":126,"end":149,"code":2307,"category":1,"message":"Cannot find module '../core/anotherModule' or its corresponding type declarations."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 126, - "end": 149, - "code": 2307, - "category": 1, - "message": "Cannot find module '../core/anotherModule' or its corresponding type declarations." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -export declare const m: any; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":144,"end":167,"code":2307,"category":1,"message":"Cannot find module '../core/anotherModule' or its corresponding type declarations."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", - "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../logic/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 144, - "end": 167, - "code": 2307, - "category": 1, - "message": "Cannot find module '../core/anotherModule' or its corresponding type declarations." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 1913 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing.js b/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing.js deleted file mode 100644 index 7a726b775a..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing.js +++ /dev/null @@ -1,425 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "files": ["anotherModule.ts", "index.ts", "some_decl.d.ts"], -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -logic/index.ts:5:22 - error TS2307: Cannot find module '../core/anotherModule' or its corresponding type declarations. - -5 import * as mod from '../core/anotherModule'; -   ~~~~~~~~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -tests/index.ts:7:22 - error TS2307: Cannot find module '../core/anotherModule' or its corresponding type declarations. - -7 import * as mod from '../core/anotherModule'; -   ~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 logic/index.ts:5 - 1 tests/index.ts:7 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1539 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -export declare const m: any; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../core/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-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":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":126,"end":149,"code":2307,"category":1,"message":"Cannot find module '../core/anotherModule' or its corresponding type declarations."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 126, - "end": 149, - "code": 2307, - "category": 1, - "message": "Cannot find module '../core/anotherModule' or its corresponding type declarations." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -export declare const m: any; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":144,"end":167,"code":2307,"category":1,"message":"Cannot find module '../core/anotherModule' or its corresponding type declarations."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", - "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../logic/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 144, - "end": 167, - "code": 2307, - "category": 1, - "message": "Cannot find module '../core/anotherModule' or its corresponding type declarations." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 1913 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/sample.js b/testdata/baselines/reference/tsbuild/sample/sample.js deleted file mode 100644 index 2adc9789dc..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/sample.js +++ /dev/null @@ -1,1167 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'core' - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'core' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1883 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1916 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2075 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [1]:: incremental-declaration-doesnt-change -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } -class someClass2 { } - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; -class someClass2 { -} - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1905 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - - -Edit [2]:: no change - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' - - - - -Edit [3]:: when logic config changes declaration dir -//// [/user/username/projects/sample1/logic/tsconfig.json] *modified* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationDir": "decls", - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/tsconfig.json' - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'logic' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/logic/decls/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./decls/index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "declarationDir": "./decls", - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./decls/index.d.ts", - "size": 1949 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/decls/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/decls/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/decls/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/decls/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/decls/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2081 -} - -logic/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/decls/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/logic/decls/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [4]:: no change - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js b/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js deleted file mode 100644 index e356660329..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js +++ /dev/null @@ -1,646 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; }multiply(); -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose --stopBuildOnErrors -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. - -3 export function multiply(a: number, b: number) { return a * b; }multiply(); -   ~~~~~~~~ - - core/index.ts:3:26 - An argument for 'a' was not provided. - 3 export function multiply(a: number, b: number) { return a * b; }multiply(); -    ~~~~~~~~~ - -[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors - -[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' was not built - -[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'logic' was not built - - -Found 1 error in core/index.ts:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -multiply(); - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":177,"end":185,"code":2554,"category":1,"message":"Expected 2 arguments, but got 0.","relatedInformation":[{"pos":138,"end":147,"code":6210,"category":3,"message":"An argument for 'a' was not provided."}]}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 177, - "end": 185, - "code": 2554, - "category": 1, - "message": "Expected 2 arguments, but got 0.", - "relatedInformation": [ - { - "pos": 138, - "end": 147, - "code": 6210, - "category": 3, - "message": "An argument for 'a' was not provided." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2078 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - - -Edit [0]:: no change - -tsgo --b tests --verbose --stopBuildOnErrors -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. - -3 export function multiply(a: number, b: number) { return a * b; }multiply(); -   ~~~~~~~~ - - core/index.ts:3:26 - An argument for 'a' was not provided. - 3 export function multiply(a: number, b: number) { return a * b; }multiply(); -    ~~~~~~~~~ - -[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors - -[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' was not built - -[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'logic' was not built - - -Found 1 error in core/index.ts:3 - - -core/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: fix error -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -tsgo --b tests --verbose --stopBuildOnErrors -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js b/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js deleted file mode 100644 index c498d0fbe7..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js +++ /dev/null @@ -1,647 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; }multiply(); -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose --stopBuildOnErrors -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. - -3 export function multiply(a: number, b: number) { return a * b; }multiply(); -   ~~~~~~~~ - - core/index.ts:3:26 - An argument for 'a' was not provided. - 3 export function multiply(a: number, b: number) { return a * b; }multiply(); -    ~~~~~~~~~ - -[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors - -[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'core' has errors - - -Found 1 error in core/index.ts:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -multiply(); - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":177,"end":185,"code":2554,"category":1,"message":"Expected 2 arguments, but got 0.","relatedInformation":[{"pos":138,"end":147,"code":6210,"category":3,"message":"An argument for 'a' was not provided."}]}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 177, - "end": 185, - "code": 2554, - "category": 1, - "message": "Expected 2 arguments, but got 0.", - "relatedInformation": [ - { - "pos": 138, - "end": 147, - "code": 6210, - "category": 3, - "message": "An argument for 'a' was not provided." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2078 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - - -Edit [0]:: no change - -tsgo --b tests --verbose --stopBuildOnErrors -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. - -3 export function multiply(a: number, b: number) { return a * b; }multiply(); -   ~~~~~~~~ - - core/index.ts:3:26 - An argument for 'a' was not provided. - 3 export function multiply(a: number, b: number) { return a * b; }multiply(); -    ~~~~~~~~~ - -[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors - -[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'core' has errors - - -Found 1 error in core/index.ts:3 - - -core/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: fix error -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -tsgo --b tests --verbose --stopBuildOnErrors -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/tsbuildinfo-has-error.js b/testdata/baselines/reference/tsbuild/sample/tsbuildinfo-has-error.js deleted file mode 100644 index 4069a8e8c7..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/tsbuildinfo-has-error.js +++ /dev/null @@ -1,120 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -Some random string - -tsgo --b -i -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "size": 915 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: - - -Edit [0]:: tsbuildinfo written has error -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -Some random string{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} - -tsgo --b -i -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/main.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/when-declaration-option-changes.js b/testdata/baselines/reference/tsbuild/sample/when-declaration-option-changes.js deleted file mode 100644 index e8f06d8b91..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/when-declaration-option-changes.js +++ /dev/null @@ -1,297 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }",{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"skipDefaultLibCheck":true}} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "skipDefaultLibCheck": true - }, - "size": 1346 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: - - -Edit [0]:: incremental-declaration-changes -//// [/user/username/projects/sample1/core/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true,"skipDefaultLibCheck":true}} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true, - "skipDefaultLibCheck": true - }, - "size": 1741 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/when-declarationMap-changes.js b/testdata/baselines/reference/tsbuild/sample/when-declarationMap-changes.js deleted file mode 100644 index 19114f67c1..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/when-declarationMap-changes.js +++ /dev/null @@ -1,703 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Disable declarationMap -//// [/user/username/projects/sample1/core/tsconfig.json] *modified* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": false, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *modified* -export declare const World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": false, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1819 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Enable declarationMap -//// [/user/username/projects/sample1/core/tsconfig.json] *modified* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *modified* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/when-esModuleInterop-option-changes.js b/testdata/baselines/reference/tsbuild/sample/when-esModuleInterop-option-changes.js deleted file mode 100644 index ad887c9a82..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/when-esModuleInterop-option-changes.js +++ /dev/null @@ -1,626 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "esModuleInterop": false, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "esModuleInterop": false, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2062 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/user/username/projects/sample1/tests/tsconfig.json] *modified* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "esModuleInterop": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.json' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/tests/index.js] *modified* -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = __importStar(require("../core/index")); -const logic = __importStar(require("../logic/index")); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = __importStar(require("../core/anotherModule")); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "esModuleInterop": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2061 -} - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/testdata/baselines/reference/tsbuild/sample/when-input-file-text-does-not-change-but-its-modified-time-changes.js deleted file mode 100644 index c0fbf9ee98..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/when-input-file-text-does-not-change-but-its-modified-time-changes.js +++ /dev/null @@ -1,474 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: upstream project changes without changing file text -//// [/user/username/projects/sample1/core/index.ts] *mTime changed* - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - diff --git a/testdata/baselines/reference/tsbuild/sample/when-logic-specifies-tsBuildInfoFile.js b/testdata/baselines/reference/tsbuild/sample/when-logic-specifies-tsBuildInfoFile.js deleted file mode 100644 index b00d0590df..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/when-logic-specifies-tsBuildInfoFile.js +++ /dev/null @@ -1,447 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "tsBuildInfoFile": "ownFile.tsbuildinfo", - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/ownFile.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true, - "tsBuildInfoFile": "./ownFile.tsbuildinfo" - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1921 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/when-module-option-changes.js b/testdata/baselines/reference/tsbuild/sample/when-module-option-changes.js deleted file mode 100644 index 0a25a6d1df..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/when-module-option-changes.js +++ /dev/null @@ -1,319 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "module": "node18", - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.es2022.full.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }",{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"module":101}} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "module": 101 - }, - "size": 1344 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: - - -Edit [0]:: incremental-declaration-changes -//// [/user/username/projects/sample1/core/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "module": "nodenext", - }, -} - -tsgo --b core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/tsconfig.json' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.js] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.esnext.full.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"module":199}} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "module": 199 - }, - "size": 1720 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(used version) /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -(computed .d.ts) /user/username/projects/sample1/core/anotherModule.ts -(computed .d.ts) /user/username/projects/sample1/core/index.ts -(used version) /user/username/projects/sample1/core/some_decl.d.ts diff --git a/testdata/baselines/reference/tsbuild/sample/when-target-option-changes.js b/testdata/baselines/reference/tsbuild/sample/when-target-option-changes.js deleted file mode 100644 index b2100cff48..0000000000 --- a/testdata/baselines/reference/tsbuild/sample/when-target-option-changes.js +++ /dev/null @@ -1,327 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* -/// -/// -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *new* -/// -/// -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "listFiles": true, - "listEmittedFiles": true, - "target": "esnext", - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -TSFILE: /user/username/projects/sample1/core/anotherModule.js -TSFILE: /user/username/projects/sample1/core/index.js -TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo -/home/src/tslibs/TS/Lib/lib.esnext.d.ts -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -/user/username/projects/sample1/core/anotherModule.ts -/user/username/projects/sample1/core/index.ts -/user/username/projects/sample1/core/some_decl.d.ts -//// [/home/src/tslibs/TS/Lib/lib.esnext.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -export const World = "hello"; - -//// [/user/username/projects/sample1/core/index.js] *new* -export const someString = "HELLO WORLD"; -export function leftPad(s, n) { return s + n; } -export function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[3,5]],"fileNames":["lib.esnext.d.ts","lib.esnext.full.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"77c880b8984a58da26cd0cab7e052e50-/// \n/// ","19cd44ed7278957051fca663f821c916-export const World = \"hello\";","2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }",{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"target":99}} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 3, - 5 - ] - } - ], - "fileNames": [ - "lib.esnext.d.ts", - "lib.esnext.full.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "lib.esnext.full.d.ts", - "version": "77c880b8984a58da26cd0cab7e052e50-/// \n/// ", - "signature": "77c880b8984a58da26cd0cab7e052e50-/// \n/// ", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "target": 99 - }, - "size": 1471 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.d.ts -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: - - -Edit [0]:: incremental-declaration-changes -//// [/user/username/projects/sample1/core/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "listFiles": true, - "listEmittedFiles": true, - "target": "es5", - }, -} - -tsgo --b core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/tsconfig.json' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -TSFILE: /user/username/projects/sample1/core/anotherModule.js -TSFILE: /user/username/projects/sample1/core/index.js -TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/tslibs/TS/Lib/lib.esnext.d.ts -/user/username/projects/sample1/core/anotherModule.ts -/user/username/projects/sample1/core/index.ts -/user/username/projects/sample1/core/some_decl.d.ts -//// [/user/username/projects/sample1/core/anotherModule.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[3,5]],"fileNames":["lib.d.ts","lib.esnext.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":["77c880b8984a58da26cd0cab7e052e50-/// \n/// ",{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }",{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"target":1}} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 3, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "lib.esnext.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "77c880b8984a58da26cd0cab7e052e50-/// \n/// ", - "signature": "77c880b8984a58da26cd0cab7e052e50-/// \n/// ", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "lib.esnext.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "target": 1 - }, - "size": 1458 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -Signatures:: -(used version) /home/src/tslibs/TS/Lib/lib.d.ts diff --git a/testdata/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js b/testdata/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js deleted file mode 100644 index 1ae2b8dea6..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js +++ /dev/null @@ -1,405 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export function foo() { } -//// [/home/src/workspaces/project/b.ts] *new* -export function bar() { } -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "files": [ - "a.ts" - "b.ts" - ] -} - -tsgo --b -w -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare function foo(): void; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -function foo() { } - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare function bar(): void; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b8af959ef8294c415b0415508643e446-export function foo() { }","signature":"7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "b8af959ef8294c415b0415508643e446-export function foo() { }", - "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b8af959ef8294c415b0415508643e446-export function foo() { }", - "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "latestChangedDtsFile": "./b.d.ts", - "size": 1345 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: reports syntax errors after change to config file -//// [/home/src/workspaces/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "composite": true, "declaration": true - }, - "files": [ - "a.ts" - "b.ts" - ] -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: reports syntax errors after change to ts file -//// [/home/src/workspaces/project/a.ts] *modified* -export function foo() { }export function fooBar() { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare function foo(): void; -export declare function fooBar(): void; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; -exports.fooBar = fooBar; -function foo() { } -function fooBar() { } - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }","signature":"f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", - "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", - "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "latestChangedDtsFile": "./a.d.ts", - "size": 1433 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [2]:: reports error when there is no change to tsconfig file -//// [/home/src/workspaces/project/tsconfig.json] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [3]:: builds after fixing config file errors -//// [/home/src/workspaces/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "composite": true, "declaration": true - }, - "files": [ - "a.ts", - "b.ts" - ] -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }","signature":"f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", - "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", - "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", - "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./a.d.ts", - "size": 1382 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js b/testdata/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js deleted file mode 100644 index 3fdefa6ac5..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js +++ /dev/null @@ -1,908 +0,0 @@ -currentDirectory::/user/username/projects/demo -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/demo/animals/animal.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} -//// [/user/username/projects/demo/animals/dog.ts] *new* -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${ this.name } says "Woof"!`); - }, - name: makeRandomName() - }); -} -//// [/user/username/projects/demo/animals/index.ts] *new* -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; -//// [/user/username/projects/demo/animals/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": "." - }, - "references": [ - { "path": "../core" } - ] -} -//// [/user/username/projects/demo/core/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - }, -} -//// [/user/username/projects/demo/core/utilities.ts] *new* -import * as A from '../animals' -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} -//// [/user/username/projects/demo/tsconfig-base.json] *new* -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true, - }, -} -//// [/user/username/projects/demo/tsconfig.json] *new* -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals", - }, - { - "path": "./zoo", - }, - ], -} -//// [/user/username/projects/demo/zoo/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} -//// [/user/username/projects/demo/zoo/zoo.ts] *new* -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - -tsgo --b -w --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * animals/tsconfig.json - * zoo/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -animals/index.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/animal.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -1 import Animal from './animal'; -   ~~~~~~~~~~ - -animals/index.ts:4:32 - error TS6307: File '/user/username/projects/demo/animals/dog.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -4 import { createDog, Dog } from './dog'; -   ~~~~~~~ - -core/utilities.ts:1:13 - error TS6133: 'A' is declared but its value is never read. - -1 import * as A from '../animals' -   ~ - -core/utilities.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/index.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - The file is in the program because: - Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' - Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' - -1 import * as A from '../animals' -   ~~~~~~~~~~~~ - - animals/dog.ts:1:20 - File is included via import here. - 1 import Animal from '.'; -    ~~~ - -[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'animals/tsconfig.json'... - -[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... - -[HH:MM:SS AM] Found 4 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/demo/animals/animal.d.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - -//// [/user/username/projects/demo/animals/animal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/demo/animals/dog.d.ts] *new* -import Animal from '.'; -export interface Dog extends Animal { - woof(): void; - name: string; -} -export declare function createDog(): Dog; - -//// [/user/username/projects/demo/animals/dog.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = createDog; -const utilities_1 = require("../core/utilities"); -function createDog() { - return ({ - size: "medium", - woof: function () { - console.log(`${this.name} says "Woof"!`); - }, - name: (0, utilities_1.makeRandomName)() - }); -} - -//// [/user/username/projects/demo/animals/index.d.ts] *new* -import Animal from './animal'; -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - -//// [/user/username/projects/demo/animals/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = void 0; -const dog_1 = require("./dog"); -Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); - -//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - -//// [/user/username/projects/demo/lib/animals/animal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* -import Animal from '.'; -export interface Dog extends Animal { - woof(): void; - name: string; -} -export declare function createDog(): Dog; - -//// [/user/username/projects/demo/lib/animals/dog.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = createDog; -const utilities_1 = require("../core/utilities"); -function createDog() { - return ({ - size: "medium", - woof: function () { - console.log(`${this.name} says "Woof"!`); - }, - name: (0, utilities_1.makeRandomName)() - }); -} - -//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* -import Animal from './animal'; -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - -//// [/user/username/projects/demo/lib/animals/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = void 0; -const dog_1 = require("./dog"); -Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); - -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../animals/animal.ts", - "../../animals/index.ts" - ], - "original": [ - 2, - 3 - ] - }, - { - "files": [ - "../../animals/dog.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../animals/animal.ts", - "../../animals/index.ts", - "../core/utilities.d.ts", - "../../animals/dog.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/animal.ts", - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/index.ts", - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/utilities.d.ts", - "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../animals/dog.ts", - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../animals", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../../animals/dog.ts": [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - "../../animals/index.ts": [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - }, - "latestChangedDtsFile": "./dog.d.ts", - "size": 2794 -} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},{"version":"c71a99e072793c29cda49dd3fea04661-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"fileIdsList":[[4,5],[2,3],[4]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[[5,[{"pos":12,"end":13,"code":6133,"category":1,"message":"'A' is declared but its value is never read.","reportsUnnecessary":true}]]],"latestChangedDtsFile":"./utilities.d.ts"} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../../core/utilities.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../animals/animal.ts", - "../../animals/dog.ts", - "../../animals/index.ts", - "../../core/utilities.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/animal.ts", - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/dog.ts", - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/index.ts", - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../core/utilities.ts", - "version": "c71a99e072793c29cda49dd3fea04661-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c71a99e072793c29cda49dd3fea04661-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../animals/index.ts", - "../../core/utilities.ts" - ], - [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ], - [ - "../../animals/index.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../core", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../../animals/dog.ts": [ - "../../animals/index.ts", - "../../core/utilities.ts" - ], - "../../animals/index.ts": [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ], - "../../core/utilities.ts": [ - "../../animals/index.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../../core/utilities.ts", - [ - { - "pos": 12, - "end": 13, - "code": 6133, - "category": 1, - "message": "'A' is declared but its value is never read.", - "reportsUnnecessary": true - } - ] - ] - ], - "latestChangedDtsFile": "./utilities.d.ts", - "size": 3302 -} -//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* -export declare function makeRandomName(): string; -export declare function lastElementOf(arr: T[]): T | undefined; - -//// [/user/username/projects/demo/lib/core/utilities.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.makeRandomName = makeRandomName; -exports.lastElementOf = lastElementOf; -function makeRandomName() { - return "Bob!?! "; -} -function lastElementOf(arr) { - if (arr.length === 0) - return undefined; - return arr[arr.length - 1]; -} - -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../zoo/zoo.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../animals/animal.d.ts", - "../animals/dog.d.ts", - "../animals/index.d.ts", - "../../zoo/zoo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../animals/animal.d.ts", - "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/dog.d.ts", - "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/index.d.ts", - "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../zoo/zoo.ts", - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../animals/index.d.ts" - ], - [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../zoo", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../animals/dog.d.ts": [ - "../animals/index.d.ts" - ], - "../animals/index.d.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], - "../../zoo/zoo.ts": [ - "../animals/index.d.ts" - ] - }, - "latestChangedDtsFile": "./zoo.d.ts", - "size": 2104 -} -//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* -import { Dog } from '../animals/index'; -export declare function createZoo(): Array; - -//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createZoo = createZoo; -const index_1 = require("../animals/index"); -function createZoo() { - return [ - (0, index_1.createDog)() - ]; -} - - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/animals/animal.ts -*refresh* /user/username/projects/demo/animals/dog.ts -*refresh* /user/username/projects/demo/animals/index.ts -*refresh* /user/username/projects/demo/core/utilities.ts -Signatures:: -(stored at emit) /user/username/projects/demo/animals/animal.ts -(stored at emit) /user/username/projects/demo/animals/dog.ts -(stored at emit) /user/username/projects/demo/animals/index.ts -(stored at emit) /user/username/projects/demo/core/utilities.ts - -animals/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/animals/animal.ts -*refresh* /user/username/projects/demo/animals/index.ts -*refresh* /user/username/projects/demo/lib/core/utilities.d.ts -*refresh* /user/username/projects/demo/animals/dog.ts -Signatures:: -(stored at emit) /user/username/projects/demo/animals/animal.ts -(stored at emit) /user/username/projects/demo/animals/index.ts -(stored at emit) /user/username/projects/demo/animals/dog.ts - -zoo/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/lib/animals/animal.d.ts -*refresh* /user/username/projects/demo/lib/animals/dog.d.ts -*refresh* /user/username/projects/demo/lib/animals/index.d.ts -*refresh* /user/username/projects/demo/zoo/zoo.ts -Signatures:: -(stored at emit) /user/username/projects/demo/zoo/zoo.ts - - -Edit [0]:: Prepend a line -//// [/user/username/projects/demo/core/utilities.ts] *modified* - -import * as A from '../animals' -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * animals/tsconfig.json - * zoo/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'lib/core/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -animals/index.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/animal.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -1 import Animal from './animal'; -   ~~~~~~~~~~ - -animals/index.ts:4:32 - error TS6307: File '/user/username/projects/demo/animals/dog.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -4 import { createDog, Dog } from './dog'; -   ~~~~~~~ - -core/utilities.ts:2:13 - error TS6133: 'A' is declared but its value is never read. - -2 import * as A from '../animals' -   ~ - -core/utilities.ts:2:20 - error TS6307: File '/user/username/projects/demo/animals/index.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. - The file is in the program because: - Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' - Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' - -2 import * as A from '../animals' -   ~~~~~~~~~~~~ - - animals/dog.ts:1:20 - File is included via import here. - 1 import Animal from '.'; -    ~~~ - -[HH:MM:SS AM] Project 'animals/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'animals/tsconfig.json'... - -[HH:MM:SS AM] Found 4 errors. Watching for file changes. - -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},{"version":"c3e46c15bb789df9e21a5ca1964be7a1-\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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"fileIdsList":[[4,5],[2,3],[4]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[[5,[{"pos":13,"end":14,"code":6133,"category":1,"message":"'A' is declared but its value is never read.","reportsUnnecessary":true}]]],"latestChangedDtsFile":"./utilities.d.ts"} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../../core/utilities.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../animals/animal.ts", - "../../animals/dog.ts", - "../../animals/index.ts", - "../../core/utilities.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/animal.ts", - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/dog.ts", - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/index.ts", - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../core/utilities.ts", - "version": "c3e46c15bb789df9e21a5ca1964be7a1-\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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c3e46c15bb789df9e21a5ca1964be7a1-\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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../animals/index.ts", - "../../core/utilities.ts" - ], - [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ], - [ - "../../animals/index.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../core", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../../animals/dog.ts": [ - "../../animals/index.ts", - "../../core/utilities.ts" - ], - "../../animals/index.ts": [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ], - "../../core/utilities.ts": [ - "../../animals/index.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../../core/utilities.ts", - [ - { - "pos": 13, - "end": 14, - "code": 6133, - "category": 1, - "message": "'A' is declared but its value is never read.", - "reportsUnnecessary": true - } - ] - ] - ], - "latestChangedDtsFile": "./utilities.d.ts", - "size": 3304 -} -//// [/user/username/projects/demo/lib/core/utilities.js] *rewrite with same content* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/demo/core/utilities.ts -Signatures:: -(computed .d.ts) /user/username/projects/demo/core/utilities.ts diff --git a/testdata/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js b/testdata/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js deleted file mode 100644 index ea64adfac5..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js +++ /dev/null @@ -1,578 +0,0 @@ -currentDirectory::/user/username/projects/demo -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/demo/animals/animal.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} -//// [/user/username/projects/demo/animals/dog.ts] *new* -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${ this.name } says "Woof"!`); - }, - name: makeRandomName() - }); -} -//// [/user/username/projects/demo/animals/index.ts] *new* -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; -//// [/user/username/projects/demo/animals/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": "." - }, - "references": [ - { "path": "../core" } - ] -} -//// [/user/username/projects/demo/core/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - }, - "references": [ - { - "path": "../zoo", - } - ] -} -//// [/user/username/projects/demo/core/utilities.ts] *new* -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} -//// [/user/username/projects/demo/tsconfig-base.json] *new* -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true, - }, -} -//// [/user/username/projects/demo/tsconfig.json] *new* -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals", - }, - { - "path": "./zoo", - }, - ], -} -//// [/user/username/projects/demo/zoo/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} -//// [/user/username/projects/demo/zoo/zoo.ts] *new* -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - -tsgo --b -w --verbose -ExitStatus:: ProjectReferenceCycle_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * animals/tsconfig.json - * zoo/tsconfig.json - * core/tsconfig.json - * tsconfig.json - -error TS6202: Project references may not form a circular graph. Cycle detected: /user/username/projects/demo/tsconfig.json -/user/username/projects/demo/core/tsconfig.json -/user/username/projects/demo/zoo/tsconfig.json -/user/username/projects/demo/animals/tsconfig.json -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - - - -Edit [0]:: Fix error -//// [/user/username/projects/demo/core/tsconfig.json] *modified* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - }, -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * animals/tsconfig.json - * zoo/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'animals/tsconfig.json'... - -[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - -//// [/user/username/projects/demo/lib/animals/animal.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* -import Animal from '.'; -export interface Dog extends Animal { - woof(): void; - name: string; -} -export declare function createDog(): Dog; - -//// [/user/username/projects/demo/lib/animals/dog.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = createDog; -const utilities_1 = require("../core/utilities"); -function createDog() { - return ({ - size: "medium", - woof: function () { - console.log(`${this.name} says "Woof"!`); - }, - name: (0, utilities_1.makeRandomName)() - }); -} - -//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* -import Animal from './animal'; -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - -//// [/user/username/projects/demo/lib/animals/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDog = void 0; -const dog_1 = require("./dog"); -Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); - -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} -//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../animals/animal.ts", - "../../animals/index.ts" - ], - "original": [ - 2, - 3 - ] - }, - { - "files": [ - "../../animals/dog.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../../animals/animal.ts", - "../../animals/index.ts", - "../core/utilities.d.ts", - "../../animals/dog.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/animal.ts", - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../animals/index.ts", - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/utilities.d.ts", - "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../animals/dog.ts", - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "39dbb9b755eef022e56879989968e5cf-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}", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../animals", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../../animals/dog.ts": [ - "../../animals/index.ts", - "../core/utilities.d.ts" - ], - "../../animals/index.ts": [ - "../../animals/animal.ts", - "../../animals/dog.ts" - ] - }, - "latestChangedDtsFile": "./dog.d.ts", - "size": 2794 -} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"43144ca7c82db0f51f0d56a2b3e2f565-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"latestChangedDtsFile":"./utilities.d.ts"} -//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../core/utilities.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../../core/utilities.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../core/utilities.ts", - "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", - "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../core", - "strict": true, - "target": 1 - }, - "latestChangedDtsFile": "./utilities.d.ts", - "size": 1586 -} -//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* -export declare function makeRandomName(): string; -export declare function lastElementOf(arr: T[]): T | undefined; - -//// [/user/username/projects/demo/lib/core/utilities.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.makeRandomName = makeRandomName; -exports.lastElementOf = lastElementOf; -function makeRandomName() { - return "Bob!?! "; -} -function lastElementOf(arr) { - if (arr.length === 0) - return undefined; - return arr[arr.length - 1]; -} - -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} -//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../zoo/zoo.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../animals/animal.d.ts", - "../animals/dog.d.ts", - "../animals/index.d.ts", - "../../zoo/zoo.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../animals/animal.d.ts", - "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/dog.d.ts", - "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../animals/index.d.ts", - "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../zoo/zoo.ts", - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", - "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../animals/index.d.ts" - ], - [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 1, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "outDir": "./", - "rootDir": "../../zoo", - "strict": true, - "target": 1 - }, - "referencedMap": { - "../animals/dog.d.ts": [ - "../animals/index.d.ts" - ], - "../animals/index.d.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], - "../../zoo/zoo.ts": [ - "../animals/index.d.ts" - ] - }, - "latestChangedDtsFile": "./zoo.d.ts", - "size": 2104 -} -//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* -import { Dog } from '../animals/index'; -export declare function createZoo(): Array; - -//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createZoo = createZoo; -const index_1 = require("../animals/index"); -function createZoo() { - return [ - (0, index_1.createDog)() - ]; -} - - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/core/utilities.ts -Signatures:: -(stored at emit) /user/username/projects/demo/core/utilities.ts - -animals/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/animals/animal.ts -*refresh* /user/username/projects/demo/animals/index.ts -*refresh* /user/username/projects/demo/lib/core/utilities.d.ts -*refresh* /user/username/projects/demo/animals/dog.ts -Signatures:: -(stored at emit) /user/username/projects/demo/animals/animal.ts -(stored at emit) /user/username/projects/demo/animals/index.ts -(stored at emit) /user/username/projects/demo/animals/dog.ts - -zoo/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/demo/lib/animals/animal.d.ts -*refresh* /user/username/projects/demo/lib/animals/dog.d.ts -*refresh* /user/username/projects/demo/lib/animals/index.d.ts -*refresh* /user/username/projects/demo/zoo/zoo.ts -Signatures:: -(stored at emit) /user/username/projects/demo/zoo/zoo.ts diff --git a/testdata/baselines/reference/tsbuildWatch/extends/configDir-template.js b/testdata/baselines/reference/tsbuildWatch/extends/configDir-template.js deleted file mode 100644 index 930bfe52db..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/extends/configDir-template.js +++ /dev/null @@ -1,188 +0,0 @@ -currentDirectory::/home/src/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/configs/first/tsconfig.json] *new* -{ - "extends": "../second/tsconfig.json", - "include": ["${configDir}/src"], - "compilerOptions": { - "typeRoots": ["root1", "${configDir}/root2", "root3"], - "types": [], - }, -} -//// [/home/src/projects/configs/second/tsconfig.json] *new* -{ - "files": ["${configDir}/main.ts"], - "compilerOptions": { - "declarationDir": "${configDir}/decls", - "paths": { - "@myscope/*": ["${configDir}/types/*"], - }, - }, - "watchOptions": { - "excludeFiles": ["${configDir}/main.ts"], - }, -} -//// [/home/src/projects/myproject/main.ts] *new* -// some comment -export const y = 10; -import { x } from "@myscope/sometype"; -//// [/home/src/projects/myproject/tsconfig.json] *new* -{ - "extends": "../configs/first/tsconfig.json", - "compilerOptions": { - "declaration": true, - "outDir": "outDir", - "traceResolution": true, - }, -} -//// [/home/src/projects/myproject/types/sometype.ts] *new* -export const x = 10; - -tsgo --b -w --explainFiles --v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'outDir/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. -Module name '@myscope/sometype', matched pattern '@myscope/*'. -Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. -Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. -======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -types/sometype.ts - Imported via "@myscope/sometype" from file 'main.ts' -main.ts - Part of 'files' list in tsconfig.json -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/myproject/decls/main.d.ts] *new* -export declare const y = 10; - -//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *new* -export declare const x = 10; - -//// [/home/src/projects/myproject/outDir/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -// some comment -exports.y = 10; - -//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../main.ts"]} -//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../main.ts" - ], - "original": "../main.ts" - } - ], - "size": 49 -} -//// [/home/src/projects/myproject/outDir/types/sometype.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/myproject/types/sometype.ts -*refresh* /home/src/projects/myproject/main.ts -Signatures:: - - -Edit [0]:: edit extended config file -//// [/home/src/projects/configs/first/tsconfig.json] *modified* -{ - "extends": "../second/tsconfig.json", - "include": ["${configDir}/src"], - "compilerOptions": { - "typeRoots": ["${configDir}/root2"], - "types": [], - }, -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'outDir/tsconfig.tsbuildinfo' is older than input '../configs/first/tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. -Module name '@myscope/sometype', matched pattern '@myscope/*'. -Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. -Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. -======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -types/sometype.ts - Imported via "@myscope/sometype" from file 'main.ts' -main.ts - Part of 'files' list in tsconfig.json -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/myproject/decls/main.d.ts] *rewrite with same content* -//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *rewrite with same content* -//// [/home/src/projects/myproject/outDir/main.js] *rewrite with same content* -//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/home/src/projects/myproject/outDir/types/sometype.js] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/myproject/types/sometype.ts -*refresh* /home/src/projects/myproject/main.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/testdata/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js deleted file mode 100644 index e9cdbb7c50..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js +++ /dev/null @@ -1,307 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/node_modules/pkg2] -> /user/username/projects/myproject/packages/pkg2 *new* -//// [/user/username/projects/myproject/packages/pkg1/index.ts] *new* -import type { TheNum } from 'pkg2' -export const theNum: TheNum = 42; -//// [/user/username/projects/myproject/packages/pkg1/package.json] *new* -{ - "name": "pkg1", - "version": "1.0.0", - "main": "build/index.js" -} -//// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "build", - }, - "references": [{ "path": "../pkg2" }], -} -//// [/user/username/projects/myproject/packages/pkg2/const.ts] *new* -export type TheNum = 42; -//// [/user/username/projects/myproject/packages/pkg2/index.ts] *new* -export type { TheNum } from './const.js'; -//// [/user/username/projects/myproject/packages/pkg2/other.ts] *new* -export type TheStr = string; -//// [/user/username/projects/myproject/packages/pkg2/package.json] *new* -{ - "name": "pkg2", - "version": "1.0.0", - "main": "build/index.js" -} -//// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "build", - }, -} - -tsgo -b packages/pkg1 --verbose -w --traceResolution -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * packages/pkg2/tsconfig.json - * packages/pkg1/tsconfig.json - -[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... - -======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file types: TypeScript, JavaScript, Declaration, JSON. -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'. ======== -[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... - -======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. -Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules/@types' 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. -'package.json' does not have a 'peerDependencies' field. -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@1.0.0'. ======== -======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file types: TypeScript, JavaScript, Declaration, JSON. -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'. ======== -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.theNum = void 0; -exports.theNum = 42; - -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../index.ts"]} -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../index.ts" - ], - "original": "../index.ts" - } - ], - "size": 50 -} -//// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] *new* -export type TheNum = 42; - -//// [/user/username/projects/myproject/packages/pkg2/build/const.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] *new* -export type { TheNum } from './const.js'; - -//// [/user/username/projects/myproject/packages/pkg2/build/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/other.d.ts] *new* -export type TheStr = string; - -//// [/user/username/projects/myproject/packages/pkg2/build/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../const.ts","../index.ts","../other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"c95c354b23966e289caeaece40bb8d0a-export type { TheNum } from './const.js';","signature":"f257912cfebb94a04c6ba4e8f754166a-export type { TheNum } from './const.js';\n","impliedNodeFormat":1},{"version":"dfadcd1940a5dc36721d3311ebd8eb8b-export type TheStr = string;","signature":"9551f60bc06319547b96535db4cb8520-export type TheStr = string;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./other.d.ts"} -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../const.ts", - "../index.ts", - "../other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../const.ts", - "../index.ts", - "../other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../const.ts", - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "c95c354b23966e289caeaece40bb8d0a-export type { TheNum } from './const.js';", - "signature": "f257912cfebb94a04c6ba4e8f754166a-export type { TheNum } from './const.js';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c95c354b23966e289caeaece40bb8d0a-export type { TheNum } from './const.js';", - "signature": "f257912cfebb94a04c6ba4e8f754166a-export type { TheNum } from './const.js';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../other.ts", - "version": "dfadcd1940a5dc36721d3311ebd8eb8b-export type TheStr = string;", - "signature": "9551f60bc06319547b96535db4cb8520-export type TheStr = string;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dfadcd1940a5dc36721d3311ebd8eb8b-export type TheStr = string;", - "signature": "9551f60bc06319547b96535db4cb8520-export type TheStr = string;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../const.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../index.ts": [ - "../const.ts" - ] - }, - "latestChangedDtsFile": "./other.d.ts", - "size": 1564 -} - -packages/pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/const.ts -*refresh* /user/username/projects/myproject/packages/pkg2/index.ts -*refresh* /user/username/projects/myproject/packages/pkg2/other.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/packages/pkg2/const.ts -(stored at emit) /user/username/projects/myproject/packages/pkg2/index.ts -(stored at emit) /user/username/projects/myproject/packages/pkg2/other.ts - -packages/pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/build/index.d.ts -*refresh* /user/username/projects/myproject/packages/pkg1/index.ts -Signatures:: - - -Edit [0]:: reports import errors after change to package file -//// [/user/username/projects/myproject/packages/pkg2/package.json] *modified* -{ - "name": "pkg2", - "version": "1.0.0", - "main": "build/other.js" -} - - -Output:: - - - -Diff:: Package.json watch pending, so no change detected yet ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,5 +0,0 @@ --packages/pkg1/index.ts:1:15 - error TS2305: Module '"pkg2"' has no exported member 'TheNum'. -- --1 import type { TheNum } from 'pkg2' --   ~~~~~~ -- - -Edit [1]:: removes those errors when a package file is changed back -//// [/user/username/projects/myproject/packages/pkg2/package.json] *modified* -{ - "name": "pkg2", - "version": "1.0.0", - "main": "build/index.js" -} - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/moduleResolution/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/testdata/baselines/reference/tsbuildWatch/moduleResolution/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js deleted file mode 100644 index a5f58bb728..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/moduleResolution/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js +++ /dev/null @@ -1,404 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/node_modules/@types/bar/index.d.ts] *new* -export const bar = 10; -//// [/user/username/projects/myproject/node_modules/@types/foo/index.d.ts] *new* -export const foo = 10; -//// [/user/username/projects/myproject/project1/index.ts] *new* -import { foo } from "file"; -//// [/user/username/projects/myproject/project1/node_modules/file/index.d.ts] *new* -export const foo = 10; -//// [/user/username/projects/myproject/project1/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "types": ["foo", "bar"] - }, - "files": ["index.ts"], -} -//// [/user/username/projects/myproject/project2/index.ts] *new* -import { foo } from "file"; -//// [/user/username/projects/myproject/project2/node_modules/file/index.d.ts] *new* -export const foo = 10; -//// [/user/username/projects/myproject/project2/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "types": ["foo"], - "module": "nodenext", - "moduleResolution": "nodenext" - }, - "files": ["index.ts"], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "files": [], - "references": [ - { "path": "./project1" }, - { "path": "./project2" }, - ], -} - -tsgo --b -w -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * project1/tsconfig.json - * project2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'project1/tsconfig.json' is out of date because output file 'project1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1/tsconfig.json'... - -[HH:MM:SS AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/project1/index.d.ts] *new* -export {}; - -//// [/user/username/projects/myproject/project1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["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":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;",{"version":"7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;","a0d503557e945e94b2464694c91a48ba-export const bar = 10;"],"fileIdsList":[[2]],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "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": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/file/index.d.ts", - "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../node_modules/@types/foo/index.d.ts", - "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../node_modules/@types/bar/index.d.ts", - "version": "a0d503557e945e94b2464694c91a48ba-export const bar = 10;", - "signature": "a0d503557e945e94b2464694c91a48ba-export const bar = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./node_modules/file/index.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./index.ts": [ - "./node_modules/file/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1417 -} -//// [/user/username/projects/myproject/project2/index.d.ts] *new* -export {}; - -//// [/user/username/projects/myproject/project2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;",{"version":"7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;"],"fileIdsList":[[2]],"options":{"composite":true,"module":199},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "./node_modules/file/index.d.ts", - "./index.ts", - "../node_modules/@types/foo/index.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/file/index.d.ts", - "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../node_modules/@types/foo/index.d.ts", - "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./node_modules/file/index.d.ts" - ] - ], - "options": { - "composite": true, - "module": 199 - }, - "referencedMap": { - "./index.ts": [ - "./node_modules/file/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1344 -} - -project1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/project1/node_modules/file/index.d.ts -*refresh* /user/username/projects/myproject/project1/index.ts -*refresh* /user/username/projects/myproject/node_modules/@types/foo/index.d.ts -*refresh* /user/username/projects/myproject/node_modules/@types/bar/index.d.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/project1/index.ts - -project2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /user/username/projects/myproject/project2/node_modules/file/index.d.ts -*refresh* /user/username/projects/myproject/project2/index.ts -*refresh* /user/username/projects/myproject/node_modules/@types/foo/index.d.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/project2/index.ts - - -Edit [0]:: Append text -//// [/user/username/projects/myproject/project1/index.ts] *modified* -import { foo } from "file";const bar = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1/tsconfig.json - * project2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'project1/tsconfig.json' is out of date because output 'project1/tsconfig.tsbuildinfo' is older than input 'project1/index.ts' - -[HH:MM:SS AM] Building project 'project1/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/project1/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const bar = 10; - -//// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[3],"fileNames":["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":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;",{"version":"1ab147b130b9a5309305c28d6be6beb4-import { foo } from \"file\";const bar = 10;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;","a0d503557e945e94b2464694c91a48ba-export const bar = 10;"],"fileIdsList":[[2]],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "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": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/file/index.d.ts", - "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "1ab147b130b9a5309305c28d6be6beb4-import { foo } from \"file\";const bar = 10;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1ab147b130b9a5309305c28d6be6beb4-import { foo } from \"file\";const bar = 10;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../node_modules/@types/foo/index.d.ts", - "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../node_modules/@types/bar/index.d.ts", - "version": "a0d503557e945e94b2464694c91a48ba-export const bar = 10;", - "signature": "a0d503557e945e94b2464694c91a48ba-export const bar = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./node_modules/file/index.d.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./index.ts": [ - "./node_modules/file/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1432 -} - -project1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/project1/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/project1/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/testdata/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js deleted file mode 100644 index 44005f7815..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js +++ /dev/null @@ -1,501 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/node_modules/pkg2] -> /user/username/projects/myproject/packages/pkg2 *new* -//// [/user/username/projects/myproject/packages/pkg1/index.ts] *new* -import type { TheNum } from 'pkg2' -export const theNum: TheNum = 42; -//// [/user/username/projects/myproject/packages/pkg1/package.json] *new* -{ - "name": "pkg1", - "version": "1.0.0", - "main": "build/index.js", - "type": "module" -} -//// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "build", - "module": "node16", - }, - "references": [{ "path": "../pkg2" }], -} -//// [/user/username/projects/myproject/packages/pkg2/const.cts] *new* -export type TheNum = 42; -//// [/user/username/projects/myproject/packages/pkg2/index.ts] *new* -export type { TheNum } from './const.cjs'; -//// [/user/username/projects/myproject/packages/pkg2/package.json] *new* -{ - "name": "pkg2", - "version": "1.0.0", - "main": "build/index.js", - "type": "module" -} -//// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "build", - "module": "node16", - }, -} - -tsgo -b packages/pkg1 -w --verbose --traceResolution -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * packages/pkg2/tsconfig.json - * packages/pkg1/tsconfig.json - -[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... - -======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Module resolution kind is not specified, using 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file types: TypeScript, JavaScript, Declaration. -File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. -File '/user/username/projects/myproject/packages/pkg2/const.cts' exists - use it as a name resolution result. -======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.cts'. ======== -[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... - -======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. -Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, 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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'. -'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. -'package.json' does not have a 'peerDependencies' field. -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@1.0.0'. ======== -======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file types: TypeScript, JavaScript, Declaration. -File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. -File '/user/username/projects/myproject/packages/pkg2/const.cts' exists - use it as a name resolution result. -======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.cts'. ======== -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *new* -export const theNum = 42; - -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../index.ts"]} -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../index.ts" - ], - "original": "../index.ts" - } - ], - "size": 50 -} -//// [/user/username/projects/myproject/packages/pkg2/build/const.cjs] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/const.d.cts] *new* -export type TheNum = 42; - -//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] *new* -export type { TheNum } from './const.cjs'; - -//// [/user/username/projects/myproject/packages/pkg2/build/index.js] *new* -export {}; - -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.es2022.full.d.ts","../const.cts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';","signature":"2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"composite":true,"module":100,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../const.cts", - "../index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "../const.cts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../const.cts", - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';", - "signature": "2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';", - "signature": "2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "../const.cts" - ] - ], - "options": { - "composite": true, - "module": 100, - "outDir": "./" - }, - "referencedMap": { - "../index.ts": [ - "../const.cts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1403 -} - -packages/pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/const.cts -*refresh* /user/username/projects/myproject/packages/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/packages/pkg2/const.cts -(stored at emit) /user/username/projects/myproject/packages/pkg2/index.ts - -packages/pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.cts -*refresh* /user/username/projects/myproject/packages/pkg2/build/index.d.ts -*refresh* /user/username/projects/myproject/packages/pkg1/index.ts -Signatures:: - - -Edit [0]:: reports import errors after change to package file -//// [/user/username/projects/myproject/packages/pkg1/package.json] *modified* -{ - "name": "pkg1", - "version": "1.0.0", - "main": "build/index.js", - "type": "commonjs" -} - - -Output:: - - - -Diff:: Package.json watch pending, so no change detected yet ---- nonIncremental /user/username/projects/myproject/packages/pkg1/build/index.js -+++ incremental /user/username/projects/myproject/packages/pkg1/build/index.js -@@ -1,4 +1,1 @@ --"use strict"; --Object.defineProperty(exports, "__esModule", { value: true }); --exports.theNum = void 0; --exports.theNum = 42; -+export const theNum = 42; ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,6 +0,0 @@ --packages/pkg1/index.ts:1:29 - error TS1541: Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute. -- To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. -- --1 import type { TheNum } from 'pkg2' --   ~~~~~~ -- - -Edit [1]:: removes those errors when a package file is changed back -//// [/user/username/projects/myproject/packages/pkg1/package.json] *modified* -{ - "name": "pkg1", - "version": "1.0.0", - "main": "build/index.js", - "type": "module" -} - - -Output:: - - - -Edit [2]:: reports import errors after change to package file -//// [/user/username/projects/myproject/packages/pkg1/package.json] *modified* -{ - "name": "pkg1", - "version": "1.0.0", - "main": "build/index.js", - "type": "commonjs" -} - - -Output:: - - - -Diff:: Package.json watch pending, so no change detected yet ---- nonIncremental /user/username/projects/myproject/packages/pkg1/build/index.js -+++ incremental /user/username/projects/myproject/packages/pkg1/build/index.js -@@ -1,4 +1,1 @@ --"use strict"; --Object.defineProperty(exports, "__esModule", { value: true }); --exports.theNum = void 0; --exports.theNum = 42; -+export const theNum = 42; ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,6 +0,0 @@ --packages/pkg1/index.ts:1:29 - error TS1541: Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute. -- To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. -- --1 import type { TheNum } from 'pkg2' --   ~~~~~~ -- - -Edit [3]:: removes those errors when a package file is changed to cjs extensions -//// [/user/username/projects/myproject/packages/pkg2/index.cts] *new* -export type { TheNum } from './const.cjs'; -//// [/user/username/projects/myproject/packages/pkg2/index.ts] *deleted* -//// [/user/username/projects/myproject/packages/pkg2/package.json] *modified* -{ - "name": "pkg2", - "version": "1.0.0", - "main": "build/index.cjs", - "type": "module" -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * packages/pkg2/tsconfig.json - * packages/pkg1/tsconfig.json - -[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output 'packages/pkg2/build/tsconfig.tsbuildinfo' is older than input 'packages/pkg2/index.cts' - -[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... - -======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.cts'. ======== -Module resolution kind is not specified, using 'Node16'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file types: TypeScript, JavaScript, Declaration. -File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. -File '/user/username/projects/myproject/packages/pkg2/const.cts' exists - use it as a name resolution result. -======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.cts'. ======== -[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2/tsconfig.json' - -[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... - -======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'Node16'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. -Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, 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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules/@types' 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.cjs' that references '/user/username/projects/myproject/node_modules/pkg2/build/index.cjs'. -File name '/user/username/projects/myproject/node_modules/pkg2/build/index.cjs' has a '.cjs' extension - stripping it. -File '/user/username/projects/myproject/node_modules/pkg2/build/index.cts' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.cts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.cts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.cts'. -======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.cts' with Package ID 'pkg2@1.0.0'. ======== -======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.cts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'Node16'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file types: TypeScript, JavaScript, Declaration. -File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. -File '/user/username/projects/myproject/packages/pkg2/const.cts' exists - use it as a name resolution result. -======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.cts'. ======== -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.theNum = void 0; -exports.theNum = 42; - -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* -//// [/user/username/projects/myproject/packages/pkg2/build/index.cjs] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/myproject/packages/pkg2/build/index.d.cts] *new* -export type { TheNum } from './const.cjs'; - -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.es2022.full.d.ts","../const.cts","../index.cts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';","signature":"2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"module":100,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.cts"} -//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../const.cts", - "../index.cts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "../const.cts", - "../index.cts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../const.cts", - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", - "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.cts", - "version": "7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';", - "signature": "2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';", - "signature": "2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../const.cts" - ] - ], - "options": { - "composite": true, - "module": 100, - "outDir": "./" - }, - "referencedMap": { - "../index.cts": [ - "../const.cts" - ] - }, - "latestChangedDtsFile": "./index.d.cts", - "size": 1404 -} - -packages/pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/packages/pkg2/index.cts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/packages/pkg2/index.cts - -packages/pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.cts -*refresh* /user/username/projects/myproject/packages/pkg2/build/index.d.cts -*refresh* /user/username/projects/myproject/packages/pkg1/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js deleted file mode 100644 index 995b3e1d9a..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js +++ /dev/null @@ -1,242 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/a.js] *new* - -//// [/user/username/projects/myproject/b.ts] *new* - -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { - "allowJs": true, - "noEmit": true, - }, -} - -tsgo -b -w -verbose --incremental -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.js","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"99aa06d3014798d86001c324468d497f-","99aa06d3014798d86001c324468d497f-"],"options":{"allowJs":true},"affectedFilesPendingEmit":[2,3]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.js", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.js", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.js", - "version": "99aa06d3014798d86001c324468d497f-", - "signature": "99aa06d3014798d86001c324468d497f-", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "99aa06d3014798d86001c324468d497f-", - "signature": "99aa06d3014798d86001c324468d497f-", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "allowJs": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.js", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1001 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/a.js -*refresh* /user/username/projects/myproject/b.ts -Signatures:: - - -Edit [0]:: No change -//// [/user/username/projects/myproject/a.js] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - - - -Edit [1]:: change -//// [/user/username/projects/myproject/a.js] *modified* -const x = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.js' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.js","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"99aa06d3014798d86001c324468d497f-"],"options":{"allowJs":true},"affectedFilesPendingEmit":[2,3]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.js", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.js", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.js", - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "99aa06d3014798d86001c324468d497f-", - "signature": "99aa06d3014798d86001c324468d497f-", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "allowJs": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.js", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1145 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/a.js -Signatures:: -(computed .d.ts) /user/username/projects/myproject/a.js diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js b/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js deleted file mode 100644 index f73a69593a..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js +++ /dev/null @@ -1,135 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/a.js] *new* - -//// [/user/username/projects/myproject/b.ts] *new* - -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { - "allowJs": true, - "noEmit": true, - }, -} - -tsgo -b -w -verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./a.js","./b.ts"]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.js" - ], - "original": "./a.js" - }, - { - "files": [ - "./b.ts" - ], - "original": "./b.ts" - } - ], - "size": 54 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/a.js -*refresh* /user/username/projects/myproject/b.ts -Signatures:: - - -Edit [0]:: No change -//// [/user/username/projects/myproject/a.js] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.js' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/a.js -*refresh* /user/username/projects/myproject/b.ts -Signatures:: - - -Edit [1]:: change -//// [/user/username/projects/myproject/a.js] *modified* -const x = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.js' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/a.js -*refresh* /user/username/projects/myproject/b.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental-as-modules.js deleted file mode 100644 index 2f795e410b..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,711 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ] - ], - "size": 1368 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17],[3,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ] - ], - "size": 1181 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.d.ts] *new* -export declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/projects/project/b.ts - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1795 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1759 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental.js deleted file mode 100644 index 516fd9568c..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental.js +++ /dev/null @@ -1,620 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1341 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1117 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.d.ts] *new* -declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1081 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1614 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1578 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js deleted file mode 100644 index 89195e93aa..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js +++ /dev/null @@ -1,565 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1069 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1393 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1362 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental.js deleted file mode 100644 index 48624d3c0d..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental.js +++ /dev/null @@ -1,499 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1051 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1324 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1293 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled.js deleted file mode 100644 index 4fa764ad36..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled.js +++ /dev/null @@ -1,261 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'a.js' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors.js deleted file mode 100644 index 0cbf049d6d..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors.js +++ /dev/null @@ -1,335 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": true - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": true - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.d.ts] *new* -declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": true - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": true - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": true - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental-as-modules.js deleted file mode 100644 index 24ed893968..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,622 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a: number = "hello" -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", - "signature": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1204 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1327 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1296 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental.js deleted file mode 100644 index 1fbba049e3..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental.js +++ /dev/null @@ -1,554 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a: number = "hello" -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1184 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1258 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.js] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1227 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors.js b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors.js deleted file mode 100644 index aac03f9508..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors.js +++ /dev/null @@ -1,305 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a: number = "hello" -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./a.ts"],"semanticErrors":true} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 67, - "semanticErrors": true -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"],"semanticErrors":true} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 67, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.js] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental-as-modules.js deleted file mode 100644 index 737de58a96..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,593 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = "hello -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1101 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -*not cached* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"changeFileSet":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "changeFileSet": [ - "./a.ts" - ], - "size": 1189 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts" - ], - "size": 1197 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental.js deleted file mode 100644 index e9407f92c2..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental.js +++ /dev/null @@ -1,521 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = "hello -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts" - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1081 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"changeFileSet":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "changeFileSet": [ - "./a.ts" - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1126 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors.js b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors.js deleted file mode 100644 index dc1fb13fd7..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors.js +++ /dev/null @@ -1,307 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = "hello -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - -tsgo -b -verbose -w -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 45 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Emit after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [2]:: no Emit run after fixing error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [3]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": "./a.ts" - } - ], - "size": 59 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [4]:: Emit when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [5]:: no Emit run when error -//// [/home/src/projects/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - , "noEmit": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration-with-incremental.js deleted file mode 100644 index 11b28b91d7..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration-with-incremental.js +++ /dev/null @@ -1,1015 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -b -w -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js|Dts", - 2 - ], - [ - "../src/main.ts", - "Js|Dts", - 3 - ], - [ - "../src/other.ts", - "Js|Dts", - 4 - ] - ], - "size": 1369 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix syntax errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1596 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: -(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts -(stored at emit) /user/username/projects/noEmitOnError/src/other.ts - - -Edit [2]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* - - - -Edit [3]:: semantic errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[3]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 46, - "end": 47, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../src/main.ts", - "Js|Dts", - 3 - ] - ], - "size": 1755 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [4]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Fix semantic errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1587 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [6]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* - - - -Edit [7]:: dts errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","signature":"86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":53,"end":54,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":53,"end":54,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[3,17]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "signature": "86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "signature": "86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "emitDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 53, - "end": 54, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 53, - "end": 54, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../src/main.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ] - ], - "size": 2150 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [8]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [9]:: Fix dts errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1656 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [10]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* - diff --git a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration.js b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration.js deleted file mode 100644 index 9442ebc941..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration.js +++ /dev/null @@ -1,658 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -b -w -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix syntax errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [2]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [3]:: semantic errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"],"semanticErrors":true} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 117, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [4]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [5]:: Fix semantic errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [6]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [7]:: dts errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [8]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [9]:: Fix dts errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [10]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-incremental.js deleted file mode 100644 index 2e165e22e4..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-incremental.js +++ /dev/null @@ -1,892 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -b -w -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js", - 2 - ], - [ - "../src/main.ts", - "Js", - 3 - ], - [ - "../src/other.ts", - "Js", - 4 - ] - ], - "size": 1370 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix syntax errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1377 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [2]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* - - - -Edit [3]:: semantic errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[3]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 46, - "end": 47, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../src/main.ts", - "Js", - 3 - ] - ], - "size": 1536 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [4]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Fix semantic errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1368 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [6]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* - - - -Edit [7]:: dts errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","signature":"86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "signature": "86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "signature": "86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1605 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [8]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* - - - -Edit [9]:: Fix dts errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1437 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [10]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* - diff --git a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError.js b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError.js deleted file mode 100644 index ebda9421cd..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError.js +++ /dev/null @@ -1,563 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -b -w -v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix syntax errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [2]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [3]:: semantic errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"],"semanticErrors":true} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 117, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [4]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [5]:: Fix semantic errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts" - ], - "original": "../shared/types/db.ts" - }, - { - "files": [ - "../src/main.ts" - ], - "original": "../src/main.ts" - }, - { - "files": [ - "../src/other.ts" - ], - "original": "../src/other.ts" - } - ], - "size": 95 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [6]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [7]:: dts errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [8]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [9]:: Fix dts errors -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [10]:: No Change -//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-file-with-no-error-changes.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-file-with-no-error-changes.js deleted file mode 100644 index 100bdbf0cb..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-file-with-no-error-changes.js +++ /dev/null @@ -1,429 +0,0 @@ -currentDirectory::/user/username/projects/solution -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/solution/app/fileWithError.ts] *new* - export var myClassWithError = class { - tags() { } - - }; -//// [/user/username/projects/solution/app/fileWithoutError.ts] *new* -export class myClass { } -//// [/user/username/projects/solution/app/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} - -tsgo -b -w app -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/solution/app/fileWithError.d.ts] *new* -export declare var myClassWithError: { - new (): { - tags(): void; - }; -}; - -//// [/user/username/projects/solution/app/fileWithError.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClassWithError = void 0; -var myClassWithError = class { - tags() { } -}; -exports.myClassWithError = myClassWithError; - -//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *new* -export declare class myClass { -} - -//// [/user/username/projects/solution/app/fileWithoutError.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClass = void 0; -class myClass { -} -exports.myClass = myClass; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };","signature":"767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./fileWithoutError.d.ts"} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };", - "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };", - "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./fileWithoutError.d.ts", - "size": 1460 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/solution/app/fileWithError.ts -*refresh* /user/username/projects/solution/app/fileWithoutError.ts -Signatures:: -(stored at emit) /user/username/projects/solution/app/fileWithError.ts -(stored at emit) /user/username/projects/solution/app/fileWithoutError.ts - - -Edit [0]:: Introduce error -//// [/user/username/projects/solution/app/fileWithError.ts] *modified* -export var myClassWithError = class { - tags() { } - private p = 12 -}; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export var myClassWithError = class { -   ~~~~~~~~~~~~~~~~ - - app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. - 1 export var myClassWithError = class { -    ~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/solution/app/fileWithError.d.ts] *modified* -export declare var myClassWithError: { - new (): { - tags(): void; - p: number; - }; -}; - -//// [/user/username/projects/solution/app/fileWithError.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClassWithError = void 0; -var myClassWithError = class { - tags() { } - p = 12; -}; -exports.myClassWithError = myClassWithError; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "emitDiagnosticsPerFile": [ - [ - "./fileWithError.ts", - [ - { - "pos": 11, - "end": 27, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 11, - "end": 27, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable myClassWithError." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./fileWithError.d.ts", - "emitSignatures": [ - { - "file": "./fileWithError.ts", - "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", - "original": [ - 2, - "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" - ] - } - ], - "size": 2104 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/solution/app/fileWithError.ts -Signatures:: -(computed .d.ts) /user/username/projects/solution/app/fileWithError.ts - - -Edit [1]:: Change fileWithoutError -//// [/user/username/projects/solution/app/fileWithoutError.ts] *modified* -export class myClass2 { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export var myClassWithError = class { -   ~~~~~~~~~~~~~~~~ - - app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. - 1 export var myClassWithError = class { -    ~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *modified* -export declare class myClass2 { -} - -//// [/user/username/projects/solution/app/fileWithoutError.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClass2 = void 0; -class myClass2 { -} -exports.myClass2 = myClass2; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"4494620e0f3a6379be16c2477b86b919-export class myClass2 { }","signature":"cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }", - "signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }", - "signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "emitDiagnosticsPerFile": [ - [ - "./fileWithError.ts", - [ - { - "pos": 11, - "end": 27, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 11, - "end": 27, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable myClassWithError." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./fileWithoutError.d.ts", - "emitSignatures": [ - { - "file": "./fileWithError.ts", - "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", - "original": [ - 2, - "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" - ] - } - ], - "size": 2109 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/solution/app/fileWithoutError.ts -Signatures:: -(computed .d.ts) /user/username/projects/solution/app/fileWithoutError.ts diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-fixing-errors-only-changed-file-is-emitted.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-fixing-errors-only-changed-file-is-emitted.js deleted file mode 100644 index a1c5d40a3f..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-fixing-errors-only-changed-file-is-emitted.js +++ /dev/null @@ -1,394 +0,0 @@ -currentDirectory::/user/username/projects/solution -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/solution/app/fileWithError.ts] *new* - export var myClassWithError = class { - tags() { } - - }; -//// [/user/username/projects/solution/app/fileWithoutError.ts] *new* -export class myClass { } -//// [/user/username/projects/solution/app/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} - -tsgo -b -w app -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/solution/app/fileWithError.d.ts] *new* -export declare var myClassWithError: { - new (): { - tags(): void; - }; -}; - -//// [/user/username/projects/solution/app/fileWithError.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClassWithError = void 0; -var myClassWithError = class { - tags() { } -}; -exports.myClassWithError = myClassWithError; - -//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *new* -export declare class myClass { -} - -//// [/user/username/projects/solution/app/fileWithoutError.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClass = void 0; -class myClass { -} -exports.myClass = myClass; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };","signature":"767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./fileWithoutError.d.ts"} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };", - "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };", - "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./fileWithoutError.d.ts", - "size": 1460 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/solution/app/fileWithError.ts -*refresh* /user/username/projects/solution/app/fileWithoutError.ts -Signatures:: -(stored at emit) /user/username/projects/solution/app/fileWithError.ts -(stored at emit) /user/username/projects/solution/app/fileWithoutError.ts - - -Edit [0]:: Introduce error -//// [/user/username/projects/solution/app/fileWithError.ts] *modified* -export var myClassWithError = class { - tags() { } - private p = 12 -}; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export var myClassWithError = class { -   ~~~~~~~~~~~~~~~~ - - app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. - 1 export var myClassWithError = class { -    ~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/solution/app/fileWithError.d.ts] *modified* -export declare var myClassWithError: { - new (): { - tags(): void; - p: number; - }; -}; - -//// [/user/username/projects/solution/app/fileWithError.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClassWithError = void 0; -var myClassWithError = class { - tags() { } - p = 12; -}; -exports.myClassWithError = myClassWithError; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "emitDiagnosticsPerFile": [ - [ - "./fileWithError.ts", - [ - { - "pos": 11, - "end": 27, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 11, - "end": 27, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable myClassWithError." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./fileWithError.d.ts", - "emitSignatures": [ - { - "file": "./fileWithError.ts", - "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", - "original": [ - 2, - "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" - ] - } - ], - "size": 2104 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/solution/app/fileWithError.ts -Signatures:: -(computed .d.ts) /user/username/projects/solution/app/fileWithError.ts - - -Edit [1]:: Fix error -//// [/user/username/projects/solution/app/fileWithError.ts] *modified* -export var myClassWithError = class { - tags() { } - -}; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/solution/app/fileWithError.d.ts] *modified* -export declare var myClassWithError: { - new (): { - tags(): void; - }; -}; - -//// [/user/username/projects/solution/app/fileWithError.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClassWithError = void 0; -var myClassWithError = class { - tags() { } -}; -exports.myClassWithError = myClassWithError; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};","signature":"767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./fileWithError.d.ts"} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};", - "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};", - "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./fileWithError.d.ts", - "size": 1419 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/solution/app/fileWithError.ts -Signatures:: -(computed .d.ts) /user/username/projects/solution/app/fileWithError.ts diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js deleted file mode 100644 index 238dfdebf7..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js +++ /dev/null @@ -1,328 +0,0 @@ -currentDirectory::/user/username/projects/solution -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/solution/app/fileWithError.ts] *new* -export var myClassWithError = class { - tags() { } - private p = 12 -}; -//// [/user/username/projects/solution/app/fileWithoutError.ts] *new* -export class myClass { } -//// [/user/username/projects/solution/app/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} - -tsgo -b -w app -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export var myClassWithError = class { -   ~~~~~~~~~~~~~~~~ - - app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. - 1 export var myClassWithError = class { -    ~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/solution/app/fileWithError.d.ts] *new* -export declare var myClassWithError: { - new (): { - tags(): void; - p: number; - }; -}; - -//// [/user/username/projects/solution/app/fileWithError.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClassWithError = void 0; -var myClassWithError = class { - tags() { } - p = 12; -}; -exports.myClassWithError = myClassWithError; - -//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *new* -export declare class myClass { -} - -//// [/user/username/projects/solution/app/fileWithoutError.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClass = void 0; -class myClass { -} -exports.myClass = myClass; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "emitDiagnosticsPerFile": [ - [ - "./fileWithError.ts", - [ - { - "pos": 11, - "end": 27, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 11, - "end": 27, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable myClassWithError." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./fileWithoutError.d.ts", - "emitSignatures": [ - { - "file": "./fileWithError.ts", - "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", - "original": [ - 2, - "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" - ] - } - ], - "size": 2107 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/solution/app/fileWithError.ts -*refresh* /user/username/projects/solution/app/fileWithoutError.ts -Signatures:: -(stored at emit) /user/username/projects/solution/app/fileWithError.ts -(stored at emit) /user/username/projects/solution/app/fileWithoutError.ts - - -Edit [0]:: Change fileWithoutError -//// [/user/username/projects/solution/app/fileWithoutError.ts] *modified* -export class myClass2 { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export var myClassWithError = class { -   ~~~~~~~~~~~~~~~~ - - app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. - 1 export var myClassWithError = class { -    ~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *modified* -export declare class myClass2 { -} - -//// [/user/username/projects/solution/app/fileWithoutError.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClass2 = void 0; -class myClass2 { -} -exports.myClass2 = myClass2; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"4494620e0f3a6379be16c2477b86b919-export class myClass2 { }","signature":"cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }", - "signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }", - "signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "emitDiagnosticsPerFile": [ - [ - "./fileWithError.ts", - [ - { - "pos": 11, - "end": 27, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 11, - "end": 27, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable myClassWithError." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./fileWithoutError.d.ts", - "emitSignatures": [ - { - "file": "./fileWithError.ts", - "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", - "original": [ - 2, - "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" - ] - } - ], - "size": 2109 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/solution/app/fileWithoutError.ts -Signatures:: -(computed .d.ts) /user/username/projects/solution/app/fileWithoutError.ts diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-fixing-error-files-all-files-are-emitted.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-fixing-error-files-all-files-are-emitted.js deleted file mode 100644 index 14e00b8d9a..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-fixing-error-files-all-files-are-emitted.js +++ /dev/null @@ -1,293 +0,0 @@ -currentDirectory::/user/username/projects/solution -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/solution/app/fileWithError.ts] *new* -export var myClassWithError = class { - tags() { } - private p = 12 -}; -//// [/user/username/projects/solution/app/fileWithoutError.ts] *new* -export class myClass { } -//// [/user/username/projects/solution/app/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} - -tsgo -b -w app -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export var myClassWithError = class { -   ~~~~~~~~~~~~~~~~ - - app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. - 1 export var myClassWithError = class { -    ~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/solution/app/fileWithError.d.ts] *new* -export declare var myClassWithError: { - new (): { - tags(): void; - p: number; - }; -}; - -//// [/user/username/projects/solution/app/fileWithError.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClassWithError = void 0; -var myClassWithError = class { - tags() { } - p = 12; -}; -exports.myClassWithError = myClassWithError; - -//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *new* -export declare class myClass { -} - -//// [/user/username/projects/solution/app/fileWithoutError.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClass = void 0; -class myClass { -} -exports.myClass = myClass; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", - "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "emitDiagnosticsPerFile": [ - [ - "./fileWithError.ts", - [ - { - "pos": 11, - "end": 27, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 11, - "end": 27, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable myClassWithError." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./fileWithoutError.d.ts", - "emitSignatures": [ - { - "file": "./fileWithError.ts", - "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", - "original": [ - 2, - "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" - ] - } - ], - "size": 2107 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/solution/app/fileWithError.ts -*refresh* /user/username/projects/solution/app/fileWithoutError.ts -Signatures:: -(stored at emit) /user/username/projects/solution/app/fileWithError.ts -(stored at emit) /user/username/projects/solution/app/fileWithoutError.ts - - -Edit [0]:: Fix error -//// [/user/username/projects/solution/app/fileWithError.ts] *modified* -export var myClassWithError = class { - tags() { } - -}; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/solution/app/fileWithError.d.ts] *modified* -export declare var myClassWithError: { - new (): { - tags(): void; - }; -}; - -//// [/user/username/projects/solution/app/fileWithError.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.myClassWithError = void 0; -var myClassWithError = class { - tags() { } -}; -exports.myClassWithError = myClassWithError; - -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};","signature":"767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./fileWithError.d.ts"} -//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./fileWithError.ts", - "./fileWithoutError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithError.ts", - "version": "4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};", - "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};", - "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileWithoutError.ts", - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", - "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./fileWithError.d.ts", - "size": 1419 -} - -app/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/solution/app/fileWithError.ts -Signatures:: -(computed .d.ts) /user/username/projects/solution/app/fileWithError.ts diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js deleted file mode 100644 index 1aad07451f..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js +++ /dev/null @@ -1,91 +0,0 @@ -currentDirectory::/user/username/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/project/main.ts] *new* -export const x = 10; -//// [/user/username/projects/project/tsconfig.json] *new* -{} -//// [/user/username/projects/project/tsconfig.tsbuildinfo] *new* -Some random string - -tsgo --b -i -w -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/project/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/user/username/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} -//// [/user/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "size": 915 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/main.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js deleted file mode 100644 index 850351201a..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js +++ /dev/null @@ -1,401 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/App/app.ts] *new* -import { createSomeObject } from "../Library/library"; -createSomeObject().message; -//// [/user/username/projects/sample1/App/tsconfig.json] *new* -{ - "references": [{ "path": "../Library" }] -} -//// [/user/username/projects/sample1/Library/library.ts] *new* -interface SomeObject -{ - message: string; -} - -export function createSomeObject(): SomeObject -{ - return { - message: "new Object" - }; -} -//// [/user/username/projects/sample1/Library/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} - -tsgo -b -w App -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/App/app.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const library_1 = require("../Library/library"); -(0, library_1.createSomeObject)().message; - -//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./app.ts"]} -//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./app.ts" - ], - "original": "./app.ts" - } - ], - "size": 47 -} -//// [/user/username/projects/sample1/Library/library.d.ts] *new* -interface SomeObject { - message: string; -} -export declare function createSomeObject(): SomeObject; -export {}; - -//// [/user/username/projects/sample1/Library/library.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createSomeObject = createSomeObject; -function createSomeObject() { - return { - message: "new Object" - }; -} - -//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./library.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./library.d.ts"} -//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./library.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./library.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./library.ts", - "version": "e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", - "signature": "4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", - "signature": "4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./library.d.ts", - "size": 1326 -} - -Library/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/Library/library.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/Library/library.ts - -App/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/Library/library.d.ts -*refresh* /user/username/projects/sample1/App/app.ts -Signatures:: - - -Edit [0]:: Introduce error -//// [/user/username/projects/sample1/Library/library.ts] *modified* -interface SomeObject -{ - message2: string; -} - -export function createSomeObject(): SomeObject -{ - return { - message2: "new Object" - }; -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -App/app.ts:2:20 - error TS2551: Property 'message' does not exist on type 'SomeObject'. Did you mean 'message2'? - -2 createSomeObject().message; -   ~~~~~~~ - - Library/library.d.ts:2:5 - 'message2' is declared here. - 2 message2: string; -    ~~~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/sample1/App/app.js] *rewrite with same content* -//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./app.ts"],"semanticErrors":true} -//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./app.ts" - ], - "original": "./app.ts" - } - ], - "size": 69, - "semanticErrors": true -} -//// [/user/username/projects/sample1/Library/library.d.ts] *modified* -interface SomeObject { - message2: string; -} -export declare function createSomeObject(): SomeObject; -export {}; - -//// [/user/username/projects/sample1/Library/library.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createSomeObject = createSomeObject; -function createSomeObject() { - return { - message2: "new Object" - }; -} - -//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./library.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"81f8dc50fd9871a106f1c06cc8e652ac-interface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}","signature":"f8bbfda93d56bdf575656b7c6a31c95f-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./library.d.ts"} -//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./library.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./library.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./library.ts", - "version": "81f8dc50fd9871a106f1c06cc8e652ac-interface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}", - "signature": "f8bbfda93d56bdf575656b7c6a31c95f-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "81f8dc50fd9871a106f1c06cc8e652ac-interface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}", - "signature": "f8bbfda93d56bdf575656b7c6a31c95f-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./library.d.ts", - "size": 1329 -} - -Library/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/Library/library.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/Library/library.ts - -App/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/Library/library.d.ts -*refresh* /user/username/projects/sample1/App/app.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/sample1/Library/library.ts] *modified* -interface SomeObject -{ - message: string; -} - -export function createSomeObject(): SomeObject -{ - return { - message: "new Object" - }; -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/App/app.js] *rewrite with same content* -//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./app.ts"]} -//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./app.ts" - ], - "original": "./app.ts" - } - ], - "size": 47 -} -//// [/user/username/projects/sample1/Library/library.d.ts] *modified* -interface SomeObject { - message: string; -} -export declare function createSomeObject(): SomeObject; -export {}; - -//// [/user/username/projects/sample1/Library/library.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createSomeObject = createSomeObject; -function createSomeObject() { - return { - message: "new Object" - }; -} - -//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./library.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./library.d.ts"} -//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./library.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./library.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./library.ts", - "version": "e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", - "signature": "4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", - "signature": "4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./library.d.ts", - "size": 1326 -} - -Library/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/Library/library.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/Library/library.ts - -App/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/Library/library.d.ts -*refresh* /user/username/projects/sample1/App/app.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js deleted file mode 100644 index 26d41d3ab1..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js +++ /dev/null @@ -1,271 +0,0 @@ -currentDirectory::/user/username/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/project/alpha.tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true, - }, -} -//// [/user/username/projects/project/bravo.tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true, - }, -} -//// [/user/username/projects/project/commonFile1.ts] *new* -let x = 1 -//// [/user/username/projects/project/commonFile2.ts] *new* -let y = 1 -//// [/user/username/projects/project/other.ts] *new* -let z = 0; -//// [/user/username/projects/project/project1.tsconfig.json] *new* -{ - "extends": "./alpha.tsconfig.json", - "compilerOptions": { - "composite": true, - }, - "files": ["commonFile1.ts", "commonFile2.ts"], -} -//// [/user/username/projects/project/project2.tsconfig.json] *new* -{ - "extends": "./bravo.tsconfig.json", - "compilerOptions": { - "composite": true, - }, - "files": ["other.ts"], -} -//// [/user/username/projects/project/tsconfig.json] *new* -{ - "references": [ - { - "path": "./project1.tsconfig.json", - }, - { - "path": "./project2.tsconfig.json", - }, - ], - "files": [], -} - -tsgo -b -w -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'project1.tsconfig.json' is out of date because output file 'project1.tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1.tsconfig.json'... - -[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output file 'project2.tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2.tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/project/commonFile1.d.ts] *new* -declare let x: number; - -//// [/user/username/projects/project/commonFile1.js] *new* -let x = 1; - -//// [/user/username/projects/project/commonFile2.d.ts] *new* -declare let y: number; - -//// [/user/username/projects/project/commonFile2.js] *new* -let y = 1; - -//// [/user/username/projects/project/other.d.ts] *new* -declare let z: number; - -//// [/user/username/projects/project/other.js] *new* -let z = 0; - -//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./commonFile1.ts","./commonFile2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1","signature":"0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06ce815ba25b02847f0b8550f82f5a25-let y = 1","signature":"114cede92fdd1b7222858083021aeba2-declare let y: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":true},"latestChangedDtsFile":"./commonFile2.d.ts"} -//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./commonFile1.ts", - "./commonFile2.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./commonFile1.ts", - "./commonFile2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./commonFile1.ts", - "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", - "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", - "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./commonFile2.ts", - "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", - "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", - "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "strict": true - }, - "latestChangedDtsFile": "./commonFile2.d.ts", - "size": 1330 -} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7148e8559d706b66aaba2a2423755c63-let z = 0;","signature":"879426698e1db06899fd57775c19b230-declare let z: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":true},"latestChangedDtsFile":"./other.d.ts"} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./other.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./other.ts", - "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", - "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", - "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "strict": true - }, - "latestChangedDtsFile": "./other.d.ts", - "size": 1119 -} - -project1.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/commonFile1.ts -*refresh* /user/username/projects/project/commonFile2.ts -Signatures:: -(stored at emit) /user/username/projects/project/commonFile1.ts -(stored at emit) /user/username/projects/project/commonFile2.ts - -project2.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/other.ts -Signatures:: -(stored at emit) /user/username/projects/project/other.ts - - -Edit [0]:: Remove project2 from base config -//// [/user/username/projects/project/tsconfig.json] *modified* -{ - "references": [ - { - "path": "./project1.tsconfig.json", - }, - ], - "files": [], -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - - diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js deleted file mode 100644 index 5ff37bd8ce..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js +++ /dev/null @@ -1,110 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/index.ts] *new* -const fn = (a: string, b: string) => b; -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { - "noUnusedParameters": true, - }, -} - -tsgo -b -w -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -index.ts:1:13 - error TS6133: 'a' is declared but its value is never read. - -1 const fn = (a: string, b: string) => b; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/index.js] *new* -const fn = (a, b) => b; - -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./index.ts"],"semanticErrors":true} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": "./index.ts" - } - ], - "size": 71, - "semanticErrors": true -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/index.ts -Signatures:: - - -Edit [0]:: Change tsconfig to set noUnusedParameters to false -//// [/user/username/projects/myproject/tsconfig.json] *modified* -{ - "compilerOptions": { - "noUnusedParameters": false, - }, -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/index.js] *rewrite with same content* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./index.ts"]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": "./index.ts" - } - ], - "size": 49 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js deleted file mode 100644 index fca155d58a..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js +++ /dev/null @@ -1,804 +0,0 @@ -currentDirectory::/user/username/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/project/alpha.tsconfig.json] *new* -{} -//// [/user/username/projects/project/bravo.tsconfig.json] *new* -{ - "extends": "./alpha.tsconfig.json", -} -//// [/user/username/projects/project/commonFile1.ts] *new* -let x = 1 -//// [/user/username/projects/project/commonFile2.ts] *new* -let y = 1 -//// [/user/username/projects/project/extendsConfig1.tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, -} -//// [/user/username/projects/project/extendsConfig2.tsconfig.json] *new* -{ - "compilerOptions": { - "strictNullChecks": false, - }, -} -//// [/user/username/projects/project/extendsConfig3.tsconfig.json] *new* -{ - "compilerOptions": { - "noImplicitAny": true, - }, -} -//// [/user/username/projects/project/other.ts] *new* -let z = 0; -//// [/user/username/projects/project/other2.ts] *new* -let k = 0; -//// [/user/username/projects/project/project1.tsconfig.json] *new* -{ - "extends": "./alpha.tsconfig.json", - "compilerOptions": { - "composite": true, - }, - "files": ["commonFile1.ts", "commonFile2.ts"], -} -//// [/user/username/projects/project/project2.tsconfig.json] *new* -{ - "extends": "./bravo.tsconfig.json", - "compilerOptions": { - "composite": true, - }, - "files": ["other.ts"], -} -//// [/user/username/projects/project/project3.tsconfig.json] *new* -{ - "extends": [ - "./extendsConfig1.tsconfig.json", - "./extendsConfig2.tsconfig.json", - "./extendsConfig3.tsconfig.json", - ], - "compilerOptions": { - "composite": false, - }, - "files": ["other2.ts"], -} - -tsgo -b -w -v project1.tsconfig.json project2.tsconfig.json project3.tsconfig.json -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * project3.tsconfig.json - -[HH:MM:SS AM] Project 'project1.tsconfig.json' is out of date because output file 'project1.tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project1.tsconfig.json'... - -[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output file 'project2.tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project2.tsconfig.json'... - -[HH:MM:SS AM] Project 'project3.tsconfig.json' is out of date because output file 'project3.tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'project3.tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/project/commonFile1.d.ts] *new* -declare let x: number; - -//// [/user/username/projects/project/commonFile1.js] *new* -let x = 1; - -//// [/user/username/projects/project/commonFile2.d.ts] *new* -declare let y: number; - -//// [/user/username/projects/project/commonFile2.js] *new* -let y = 1; - -//// [/user/username/projects/project/other.d.ts] *new* -declare let z: number; - -//// [/user/username/projects/project/other.js] *new* -let z = 0; - -//// [/user/username/projects/project/other2.js] *new* -let k = 0; - -//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./commonFile1.ts","./commonFile2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1","signature":"0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06ce815ba25b02847f0b8550f82f5a25-let y = 1","signature":"114cede92fdd1b7222858083021aeba2-declare let y: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./commonFile2.d.ts"} -//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./commonFile1.ts", - "./commonFile2.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./commonFile1.ts", - "./commonFile2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./commonFile1.ts", - "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", - "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", - "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./commonFile2.ts", - "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", - "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", - "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./commonFile2.d.ts", - "size": 1316 -} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7148e8559d706b66aaba2a2423755c63-let z = 0;","signature":"879426698e1db06899fd57775c19b230-declare let z: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./other.d.ts"} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./other.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./other.ts", - "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", - "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", - "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./other.d.ts", - "size": 1105 -} -//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["./other2.ts"]} -//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./other2.ts" - ], - "original": "./other2.ts" - } - ], - "size": 50 -} - -project1.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/commonFile1.ts -*refresh* /user/username/projects/project/commonFile2.ts -Signatures:: -(stored at emit) /user/username/projects/project/commonFile1.ts -(stored at emit) /user/username/projects/project/commonFile2.ts - -project2.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/other.ts -Signatures:: -(stored at emit) /user/username/projects/project/other.ts - -project3.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/other2.ts -Signatures:: - - -Edit [0]:: Modify alpha config -//// [/user/username/projects/project/alpha.tsconfig.json] *modified* -{ - "compilerOptions": { - "strict": true - } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * project3.tsconfig.json - -[HH:MM:SS AM] Project 'project1.tsconfig.json' is out of date because output 'project1.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' - -[HH:MM:SS AM] Building project 'project1.tsconfig.json'... - -[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' - -[HH:MM:SS AM] Building project 'project2.tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/project/commonFile1.js] *rewrite with same content* -//// [/user/username/projects/project/commonFile2.js] *rewrite with same content* -//// [/user/username/projects/project/other.js] *rewrite with same content* -//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./commonFile1.ts","./commonFile2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1","signature":"0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06ce815ba25b02847f0b8550f82f5a25-let y = 1","signature":"114cede92fdd1b7222858083021aeba2-declare let y: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":true},"latestChangedDtsFile":"./commonFile2.d.ts"} -//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./commonFile1.ts", - "./commonFile2.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./commonFile1.ts", - "./commonFile2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./commonFile1.ts", - "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", - "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", - "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./commonFile2.ts", - "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", - "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", - "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "strict": true - }, - "latestChangedDtsFile": "./commonFile2.d.ts", - "size": 1330 -} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7148e8559d706b66aaba2a2423755c63-let z = 0;","signature":"879426698e1db06899fd57775c19b230-declare let z: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":true},"latestChangedDtsFile":"./other.d.ts"} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./other.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./other.ts", - "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", - "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", - "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "strict": true - }, - "latestChangedDtsFile": "./other.d.ts", - "size": 1119 -} - -project1.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/commonFile1.ts -*refresh* /user/username/projects/project/commonFile2.ts -Signatures:: - -project2.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/other.ts -Signatures:: - - -Edit [1]:: change bravo config -//// [/user/username/projects/project/bravo.tsconfig.json] *modified* -{ - "extends": "./alpha.tsconfig.json", - "compilerOptions": { "strict": false } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * project3.tsconfig.json - -[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'bravo.tsconfig.json' - -[HH:MM:SS AM] Building project 'project2.tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/project/other.js] *rewrite with same content* -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7148e8559d706b66aaba2a2423755c63-let z = 0;","signature":"879426698e1db06899fd57775c19b230-declare let z: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":false},"latestChangedDtsFile":"./other.d.ts"} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./other.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./other.ts", - "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", - "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", - "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "strict": false - }, - "latestChangedDtsFile": "./other.d.ts", - "size": 1120 -} - -project2.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/other.ts -Signatures:: - - -Edit [2]:: project 2 extends alpha -//// [/user/username/projects/project/project2.tsconfig.json] *modified* -{ - "extends": "./alpha.tsconfig.json", -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * project3.tsconfig.json - -[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output 'other2.js' is older than input 'project2.tsconfig.json' - -[HH:MM:SS AM] Building project 'project2.tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/project/commonFile1.js] *rewrite with same content* -//// [/user/username/projects/project/commonFile2.js] *rewrite with same content* -//// [/user/username/projects/project/other.js] *rewrite with same content* -//// [/user/username/projects/project/other2.js] *rewrite with same content* -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["./commonFile1.ts","./commonFile2.ts","./other.ts","./other2.ts"]} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./commonFile1.ts" - ], - "original": "./commonFile1.ts" - }, - { - "files": [ - "./commonFile2.ts" - ], - "original": "./commonFile2.ts" - }, - { - "files": [ - "./other.ts" - ], - "original": "./other.ts" - }, - { - "files": [ - "./other2.ts" - ], - "original": "./other2.ts" - } - ], - "size": 101 -} - -project2.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/commonFile1.ts -*refresh* /user/username/projects/project/commonFile2.ts -*refresh* /user/username/projects/project/other.ts -*refresh* /user/username/projects/project/other2.ts -Signatures:: - - -Edit [3]:: update aplha config -//// [/user/username/projects/project/alpha.tsconfig.json] *modified* -{} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * project3.tsconfig.json - -[HH:MM:SS AM] Project 'project1.tsconfig.json' is out of date because output 'project1.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' - -[HH:MM:SS AM] Building project 'project1.tsconfig.json'... - -[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' - -[HH:MM:SS AM] Building project 'project2.tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/project/commonFile1.js] *rewrite with same content* -//// [/user/username/projects/project/commonFile2.js] *rewrite with same content* -//// [/user/username/projects/project/other.js] *rewrite with same content* -//// [/user/username/projects/project/other2.js] *rewrite with same content* -//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./commonFile1.ts","./commonFile2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1","signature":"0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06ce815ba25b02847f0b8550f82f5a25-let y = 1","signature":"114cede92fdd1b7222858083021aeba2-declare let y: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./commonFile2.d.ts"} -//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./commonFile1.ts", - "./commonFile2.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./commonFile1.ts", - "./commonFile2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./commonFile1.ts", - "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", - "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", - "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./commonFile2.ts", - "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", - "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", - "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./commonFile2.d.ts", - "size": 1316 -} -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project1.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/commonFile1.ts -*refresh* /user/username/projects/project/commonFile2.ts -Signatures:: - -project2.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/commonFile1.ts -*refresh* /user/username/projects/project/commonFile2.ts -*refresh* /user/username/projects/project/other.ts -*refresh* /user/username/projects/project/other2.ts -Signatures:: - - -Edit [4]:: Modify extendsConfigFile2 -//// [/user/username/projects/project/extendsConfig2.tsconfig.json] *modified* -{ - "compilerOptions": { "strictNullChecks": true } -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * project3.tsconfig.json - -[HH:MM:SS AM] Project 'project3.tsconfig.json' is out of date because output 'project3.tsconfig.tsbuildinfo' is older than input 'extendsConfig2.tsconfig.json' - -[HH:MM:SS AM] Building project 'project3.tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/project/other2.js] *rewrite with same content* -//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project3.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/other2.ts -Signatures:: - - -Edit [5]:: Modify project 3 -//// [/user/username/projects/project/project3.tsconfig.json] *modified* -{ - "extends": ["./extendsConfig1.tsconfig.json", "./extendsConfig2.tsconfig.json"], - "compilerOptions": { "composite": false }, - "files": ["other2.ts"], -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * project3.tsconfig.json - -[HH:MM:SS AM] Project 'project3.tsconfig.json' is out of date because output 'project3.tsconfig.tsbuildinfo' is older than input 'project3.tsconfig.json' - -[HH:MM:SS AM] Building project 'project3.tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/project/other2.js] *rewrite with same content* -//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo] *rewrite with same content* -//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -project3.tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/project/other2.ts -Signatures:: - - -Edit [6]:: Delete extendedConfigFile2 and report error -//// [/user/username/projects/project/extendsConfig2.tsconfig.json] *deleted* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * project1.tsconfig.json - * project2.tsconfig.json - * project3.tsconfig.json - -[HH:MM:SS AM] Project 'project3.tsconfig.json' is up to date because newest input 'other2.ts' is older than output 'project3.tsconfig.tsbuildinfo' - -error TS5083: Cannot read file '/user/username/projects/project/extendsConfig2.tsconfig.json'. -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - diff --git a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js deleted file mode 100644 index 439e6d0f17..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js +++ /dev/null @@ -1,3114 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg0/index.ts] *new* -export const pkg0 = 0; -//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* - { - "compilerOptions": { "composite": true }, - - } -//// [/user/username/projects/myproject/pkg1/index.ts] *new* -export const pkg1 = 1; -//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg10/index.ts] *new* -export const pkg10 = 10; -//// [/user/username/projects/myproject/pkg10/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg11/index.ts] *new* -export const pkg11 = 11; -//// [/user/username/projects/myproject/pkg11/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg12/index.ts] *new* -export const pkg12 = 12; -//// [/user/username/projects/myproject/pkg12/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg13/index.ts] *new* -export const pkg13 = 13; -//// [/user/username/projects/myproject/pkg13/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg14/index.ts] *new* -export const pkg14 = 14; -//// [/user/username/projects/myproject/pkg14/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg15/index.ts] *new* -export const pkg15 = 15; -//// [/user/username/projects/myproject/pkg15/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg16/index.ts] *new* -export const pkg16 = 16; -//// [/user/username/projects/myproject/pkg16/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg17/index.ts] *new* -export const pkg17 = 17; -//// [/user/username/projects/myproject/pkg17/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg18/index.ts] *new* -export const pkg18 = 18; -//// [/user/username/projects/myproject/pkg18/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg19/index.ts] *new* -export const pkg19 = 19; -//// [/user/username/projects/myproject/pkg19/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg2/index.ts] *new* -export const pkg2 = 2; -//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg20/index.ts] *new* -export const pkg20 = 20; -//// [/user/username/projects/myproject/pkg20/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg21/index.ts] *new* -export const pkg21 = 21; -//// [/user/username/projects/myproject/pkg21/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg22/index.ts] *new* -export const pkg22 = 22; -//// [/user/username/projects/myproject/pkg22/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg3/index.ts] *new* -export const pkg3 = 3; -//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg4/index.ts] *new* -export const pkg4 = 4; -//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg5/index.ts] *new* -export const pkg5 = 5; -//// [/user/username/projects/myproject/pkg5/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg6/index.ts] *new* -export const pkg6 = 6; -//// [/user/username/projects/myproject/pkg6/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg7/index.ts] *new* -export const pkg7 = 7; -//// [/user/username/projects/myproject/pkg7/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg8/index.ts] *new* -export const pkg8 = 8; -//// [/user/username/projects/myproject/pkg8/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg9/index.ts] *new* -export const pkg9 = 9; -//// [/user/username/projects/myproject/pkg9/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [ - { "path": "./pkg0" }, - { "path": "./pkg1" }, - { "path": "./pkg2" }, - { "path": "./pkg3" }, - { "path": "./pkg4" }, - { "path": "./pkg5" }, - { "path": "./pkg6" }, - { "path": "./pkg7" }, - { "path": "./pkg8" }, - { "path": "./pkg9" }, - { "path": "./pkg10" }, - { "path": "./pkg11" }, - { "path": "./pkg12" }, - { "path": "./pkg13" }, - { "path": "./pkg14" }, - { "path": "./pkg15" }, - { "path": "./pkg16" }, - { "path": "./pkg17" }, - { "path": "./pkg18" }, - { "path": "./pkg19" }, - { "path": "./pkg20" }, - { "path": "./pkg21" }, - { "path": "./pkg22" } - ] -} - -tsgo -b -w -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * pkg8/tsconfig.json - * pkg9/tsconfig.json - * pkg10/tsconfig.json - * pkg11/tsconfig.json - * pkg12/tsconfig.json - * pkg13/tsconfig.json - * pkg14/tsconfig.json - * pkg15/tsconfig.json - * pkg16/tsconfig.json - * pkg17/tsconfig.json - * pkg18/tsconfig.json - * pkg19/tsconfig.json - * pkg20/tsconfig.json - * pkg21/tsconfig.json - * pkg22/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is out of date because output file 'pkg8/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg8/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is out of date because output file 'pkg9/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg9/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is out of date because output file 'pkg10/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg10/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is out of date because output file 'pkg11/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg11/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is out of date because output file 'pkg12/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg12/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is out of date because output file 'pkg13/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg13/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is out of date because output file 'pkg14/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg14/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is out of date because output file 'pkg15/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg15/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is out of date because output file 'pkg16/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg16/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is out of date because output file 'pkg17/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg17/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is out of date because output file 'pkg18/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg18/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is out of date because output file 'pkg19/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg19/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is out of date because output file 'pkg20/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg20/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is out of date because output file 'pkg21/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg21/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is out of date because output file 'pkg22/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg22/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* -export declare const pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* -export declare const pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg1 = void 0; -exports.pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg10/index.d.ts] *new* -export declare const pkg10 = 10; - -//// [/user/username/projects/myproject/pkg10/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg10 = void 0; -exports.pkg10 = 10; - -//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;","signature":"c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;", - "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;", - "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg11/index.d.ts] *new* -export declare const pkg11 = 11; - -//// [/user/username/projects/myproject/pkg11/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg11 = void 0; -exports.pkg11 = 11; - -//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;","signature":"adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;", - "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;", - "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg12/index.d.ts] *new* -export declare const pkg12 = 12; - -//// [/user/username/projects/myproject/pkg12/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg12 = void 0; -exports.pkg12 = 12; - -//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;","signature":"3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;", - "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;", - "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg13/index.d.ts] *new* -export declare const pkg13 = 13; - -//// [/user/username/projects/myproject/pkg13/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg13 = void 0; -exports.pkg13 = 13; - -//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;","signature":"8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;", - "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;", - "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg14/index.d.ts] *new* -export declare const pkg14 = 14; - -//// [/user/username/projects/myproject/pkg14/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg14 = void 0; -exports.pkg14 = 14; - -//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;","signature":"97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;", - "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;", - "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg15/index.d.ts] *new* -export declare const pkg15 = 15; - -//// [/user/username/projects/myproject/pkg15/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg15 = void 0; -exports.pkg15 = 15; - -//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;","signature":"58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;", - "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;", - "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg16/index.d.ts] *new* -export declare const pkg16 = 16; - -//// [/user/username/projects/myproject/pkg16/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg16 = void 0; -exports.pkg16 = 16; - -//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;","signature":"7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;", - "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;", - "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg17/index.d.ts] *new* -export declare const pkg17 = 17; - -//// [/user/username/projects/myproject/pkg17/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg17 = void 0; -exports.pkg17 = 17; - -//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;","signature":"6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;", - "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;", - "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg18/index.d.ts] *new* -export declare const pkg18 = 18; - -//// [/user/username/projects/myproject/pkg18/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg18 = void 0; -exports.pkg18 = 18; - -//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;","signature":"998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;", - "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;", - "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg19/index.d.ts] *new* -export declare const pkg19 = 19; - -//// [/user/username/projects/myproject/pkg19/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg19 = void 0; -exports.pkg19 = 19; - -//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ac602ee4cba12981e12105658930586-export const pkg19 = 19;","signature":"9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0ac602ee4cba12981e12105658930586-export const pkg19 = 19;", - "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0ac602ee4cba12981e12105658930586-export const pkg19 = 19;", - "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* -export declare const pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg2 = void 0; -exports.pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg20/index.d.ts] *new* -export declare const pkg20 = 20; - -//// [/user/username/projects/myproject/pkg20/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg20 = void 0; -exports.pkg20 = 20; - -//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;","signature":"3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;", - "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;", - "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg21/index.d.ts] *new* -export declare const pkg21 = 21; - -//// [/user/username/projects/myproject/pkg21/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg21 = void 0; -exports.pkg21 = 21; - -//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;","signature":"28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;", - "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;", - "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg22/index.d.ts] *new* -export declare const pkg22 = 22; - -//// [/user/username/projects/myproject/pkg22/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg22 = void 0; -exports.pkg22 = 22; - -//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;","signature":"4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;", - "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;", - "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1103 -} -//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* -export declare const pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg3 = void 0; -exports.pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* -export declare const pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg4 = void 0; -exports.pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg5/index.d.ts] *new* -export declare const pkg5 = 5; - -//// [/user/username/projects/myproject/pkg5/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg5 = void 0; -exports.pkg5 = 5; - -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;","signature":"77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg6/index.d.ts] *new* -export declare const pkg6 = 6; - -//// [/user/username/projects/myproject/pkg6/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg6 = void 0; -exports.pkg6 = 6; - -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;","signature":"579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg7/index.d.ts] *new* -export declare const pkg7 = 7; - -//// [/user/username/projects/myproject/pkg7/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg7 = void 0; -exports.pkg7 = 7; - -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;","signature":"5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg8/index.d.ts] *new* -export declare const pkg8 = 8; - -//// [/user/username/projects/myproject/pkg8/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg8 = void 0; -exports.pkg8 = 8; - -//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;","signature":"cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;", - "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;", - "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg9/index.d.ts] *new* -export declare const pkg9 = 9; - -//// [/user/username/projects/myproject/pkg9/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg9 = void 0; -exports.pkg9 = 9; - -//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;","signature":"9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;", - "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;", - "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,24]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg10/index.d.ts","./pkg11/index.d.ts","./pkg12/index.d.ts","./pkg13/index.d.ts","./pkg14/index.d.ts","./pkg15/index.d.ts","./pkg16/index.d.ts","./pkg17/index.d.ts","./pkg18/index.d.ts","./pkg19/index.d.ts","./pkg2/index.d.ts","./pkg20/index.d.ts","./pkg21/index.d.ts","./pkg22/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg8/index.d.ts","./pkg9/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg10/index.ts","./pkg11/index.ts","./pkg12/index.ts","./pkg13/index.ts","./pkg14/index.ts","./pkg15/index.ts","./pkg16/index.ts","./pkg17/index.ts","./pkg18/index.ts","./pkg19/index.ts","./pkg2/index.ts","./pkg20/index.ts","./pkg21/index.ts","./pkg22/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts","./pkg8/index.ts","./pkg9/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n"],"options":{"composite":true},"resolvedRoot":[[2,25],[3,26],[4,27],[5,28],[6,29],[7,30],[8,31],[9,32],[10,33],[11,34],[12,35],[13,36],[14,37],[15,38],[16,39],[17,40],[18,41],[19,42],[20,43],[21,44],[22,45],[23,46],[24,47]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg10/index.d.ts", - "./pkg11/index.d.ts", - "./pkg12/index.d.ts", - "./pkg13/index.d.ts", - "./pkg14/index.d.ts", - "./pkg15/index.d.ts", - "./pkg16/index.d.ts", - "./pkg17/index.d.ts", - "./pkg18/index.d.ts", - "./pkg19/index.d.ts", - "./pkg2/index.d.ts", - "./pkg20/index.d.ts", - "./pkg21/index.d.ts", - "./pkg22/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg8/index.d.ts", - "./pkg9/index.d.ts" - ], - "original": [ - 2, - 24 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg10/index.d.ts", - "./pkg11/index.d.ts", - "./pkg12/index.d.ts", - "./pkg13/index.d.ts", - "./pkg14/index.d.ts", - "./pkg15/index.d.ts", - "./pkg16/index.d.ts", - "./pkg17/index.d.ts", - "./pkg18/index.d.ts", - "./pkg19/index.d.ts", - "./pkg2/index.d.ts", - "./pkg20/index.d.ts", - "./pkg21/index.d.ts", - "./pkg22/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg8/index.d.ts", - "./pkg9/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg10/index.ts", - "./pkg11/index.ts", - "./pkg12/index.ts", - "./pkg13/index.ts", - "./pkg14/index.ts", - "./pkg15/index.ts", - "./pkg16/index.ts", - "./pkg17/index.ts", - "./pkg18/index.ts", - "./pkg19/index.ts", - "./pkg2/index.ts", - "./pkg20/index.ts", - "./pkg21/index.ts", - "./pkg22/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts", - "./pkg5/index.ts", - "./pkg6/index.ts", - "./pkg7/index.ts", - "./pkg8/index.ts", - "./pkg9/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg10/index.d.ts", - "version": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg11/index.d.ts", - "version": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg12/index.d.ts", - "version": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg13/index.d.ts", - "version": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg14/index.d.ts", - "version": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg15/index.d.ts", - "version": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg16/index.d.ts", - "version": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg17/index.d.ts", - "version": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg18/index.d.ts", - "version": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg19/index.d.ts", - "version": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg20/index.d.ts", - "version": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg21/index.d.ts", - "version": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg22/index.d.ts", - "version": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg5/index.d.ts", - "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg6/index.d.ts", - "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg7/index.d.ts", - "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg8/index.d.ts", - "version": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg9/index.d.ts", - "version": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg10/index.d.ts", - "./pkg10/index.ts" - ], - [ - "./pkg11/index.d.ts", - "./pkg11/index.ts" - ], - [ - "./pkg12/index.d.ts", - "./pkg12/index.ts" - ], - [ - "./pkg13/index.d.ts", - "./pkg13/index.ts" - ], - [ - "./pkg14/index.d.ts", - "./pkg14/index.ts" - ], - [ - "./pkg15/index.d.ts", - "./pkg15/index.ts" - ], - [ - "./pkg16/index.d.ts", - "./pkg16/index.ts" - ], - [ - "./pkg17/index.d.ts", - "./pkg17/index.ts" - ], - [ - "./pkg18/index.d.ts", - "./pkg18/index.ts" - ], - [ - "./pkg19/index.d.ts", - "./pkg19/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg20/index.d.ts", - "./pkg20/index.ts" - ], - [ - "./pkg21/index.d.ts", - "./pkg21/index.ts" - ], - [ - "./pkg22/index.d.ts", - "./pkg22/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ], - [ - "./pkg5/index.d.ts", - "./pkg5/index.ts" - ], - [ - "./pkg6/index.d.ts", - "./pkg6/index.ts" - ], - [ - "./pkg7/index.d.ts", - "./pkg7/index.ts" - ], - [ - "./pkg8/index.d.ts", - "./pkg8/index.ts" - ], - [ - "./pkg9/index.d.ts", - "./pkg9/index.ts" - ] - ], - "size": 3564 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg1/index.ts - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg2/index.ts - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg3/index.ts - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg4/index.ts - -pkg5/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg5/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg5/index.ts - -pkg6/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg6/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg6/index.ts - -pkg7/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg7/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg7/index.ts - -pkg8/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg8/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg8/index.ts - -pkg9/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg9/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg9/index.ts - -pkg10/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg10/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg10/index.ts - -pkg11/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg11/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg11/index.ts - -pkg12/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg12/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg12/index.ts - -pkg13/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg13/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg13/index.ts - -pkg14/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg14/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg14/index.ts - -pkg15/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg15/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg15/index.ts - -pkg16/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg16/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg16/index.ts - -pkg17/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg17/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg17/index.ts - -pkg18/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg18/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg18/index.ts - -pkg19/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg19/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg19/index.ts - -pkg20/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg20/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg20/index.ts - -pkg21/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg21/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg21/index.ts - -pkg22/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg22/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg22/index.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.d.ts -*refresh* /user/username/projects/myproject/pkg10/index.d.ts -*refresh* /user/username/projects/myproject/pkg11/index.d.ts -*refresh* /user/username/projects/myproject/pkg12/index.d.ts -*refresh* /user/username/projects/myproject/pkg13/index.d.ts -*refresh* /user/username/projects/myproject/pkg14/index.d.ts -*refresh* /user/username/projects/myproject/pkg15/index.d.ts -*refresh* /user/username/projects/myproject/pkg16/index.d.ts -*refresh* /user/username/projects/myproject/pkg17/index.d.ts -*refresh* /user/username/projects/myproject/pkg18/index.d.ts -*refresh* /user/username/projects/myproject/pkg19/index.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.d.ts -*refresh* /user/username/projects/myproject/pkg20/index.d.ts -*refresh* /user/username/projects/myproject/pkg21/index.d.ts -*refresh* /user/username/projects/myproject/pkg22/index.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.d.ts -*refresh* /user/username/projects/myproject/pkg5/index.d.ts -*refresh* /user/username/projects/myproject/pkg6/index.d.ts -*refresh* /user/username/projects/myproject/pkg7/index.d.ts -*refresh* /user/username/projects/myproject/pkg8/index.d.ts -*refresh* /user/username/projects/myproject/pkg9/index.d.ts -Signatures:: - - -Edit [0]:: dts doesn't change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * pkg8/tsconfig.json - * pkg9/tsconfig.json - * pkg10/tsconfig.json - * pkg11/tsconfig.json - * pkg12/tsconfig.json - * pkg13/tsconfig.json - * pkg14/tsconfig.json - * pkg15/tsconfig.json - * pkg16/tsconfig.json - * pkg17/tsconfig.json - * pkg18/tsconfig.json - * pkg19/tsconfig.json - * pkg20/tsconfig.json - * pkg21/tsconfig.json - * pkg22/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg8/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg9/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg10/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg11/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg12/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg13/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg14/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg15/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg16/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg17/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg18/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg19/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg20/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg21/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg22/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1121 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - - -Edit [1]:: no change - - -Output:: - - - -Edit [2]:: dts change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * pkg8/tsconfig.json - * pkg9/tsconfig.json - * pkg10/tsconfig.json - * pkg11/tsconfig.json - * pkg12/tsconfig.json - * pkg13/tsconfig.json - * pkg14/tsconfig.json - * pkg15/tsconfig.json - * pkg16/tsconfig.json - * pkg17/tsconfig.json - * pkg18/tsconfig.json - * pkg19/tsconfig.json - * pkg20/tsconfig.json - * pkg21/tsconfig.json - * pkg22/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg8/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg8/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg9/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg9/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg10/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg10/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg11/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg11/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg12/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg12/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg13/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg13/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg14/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg14/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg15/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg15/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is out of date because output 'pkg16/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg16/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg16/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is out of date because output 'pkg17/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg17/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg17/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is out of date because output 'pkg18/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg18/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg18/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is out of date because output 'pkg19/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg19/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg19/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is out of date because output 'pkg20/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg20/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg20/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is out of date because output 'pkg21/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg21/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg21/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is out of date because output 'pkg22/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg22/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg22/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* -export declare const pkg0 = 0; -export declare const someConst = 10; - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someConst = exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; -exports.someConst = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1187 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,24]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg10/index.d.ts","./pkg11/index.d.ts","./pkg12/index.d.ts","./pkg13/index.d.ts","./pkg14/index.d.ts","./pkg15/index.d.ts","./pkg16/index.d.ts","./pkg17/index.d.ts","./pkg18/index.d.ts","./pkg19/index.d.ts","./pkg2/index.d.ts","./pkg20/index.d.ts","./pkg21/index.d.ts","./pkg22/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg8/index.d.ts","./pkg9/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg10/index.ts","./pkg11/index.ts","./pkg12/index.ts","./pkg13/index.ts","./pkg14/index.ts","./pkg15/index.ts","./pkg16/index.ts","./pkg17/index.ts","./pkg18/index.ts","./pkg19/index.ts","./pkg2/index.ts","./pkg20/index.ts","./pkg21/index.ts","./pkg22/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts","./pkg8/index.ts","./pkg9/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n"],"options":{"composite":true},"resolvedRoot":[[2,25],[3,26],[4,27],[5,28],[6,29],[7,30],[8,31],[9,32],[10,33],[11,34],[12,35],[13,36],[14,37],[15,38],[16,39],[17,40],[18,41],[19,42],[20,43],[21,44],[22,45],[23,46],[24,47]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg10/index.d.ts", - "./pkg11/index.d.ts", - "./pkg12/index.d.ts", - "./pkg13/index.d.ts", - "./pkg14/index.d.ts", - "./pkg15/index.d.ts", - "./pkg16/index.d.ts", - "./pkg17/index.d.ts", - "./pkg18/index.d.ts", - "./pkg19/index.d.ts", - "./pkg2/index.d.ts", - "./pkg20/index.d.ts", - "./pkg21/index.d.ts", - "./pkg22/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg8/index.d.ts", - "./pkg9/index.d.ts" - ], - "original": [ - 2, - 24 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg10/index.d.ts", - "./pkg11/index.d.ts", - "./pkg12/index.d.ts", - "./pkg13/index.d.ts", - "./pkg14/index.d.ts", - "./pkg15/index.d.ts", - "./pkg16/index.d.ts", - "./pkg17/index.d.ts", - "./pkg18/index.d.ts", - "./pkg19/index.d.ts", - "./pkg2/index.d.ts", - "./pkg20/index.d.ts", - "./pkg21/index.d.ts", - "./pkg22/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg8/index.d.ts", - "./pkg9/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg10/index.ts", - "./pkg11/index.ts", - "./pkg12/index.ts", - "./pkg13/index.ts", - "./pkg14/index.ts", - "./pkg15/index.ts", - "./pkg16/index.ts", - "./pkg17/index.ts", - "./pkg18/index.ts", - "./pkg19/index.ts", - "./pkg2/index.ts", - "./pkg20/index.ts", - "./pkg21/index.ts", - "./pkg22/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts", - "./pkg5/index.ts", - "./pkg6/index.ts", - "./pkg7/index.ts", - "./pkg8/index.ts", - "./pkg9/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg10/index.d.ts", - "version": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg11/index.d.ts", - "version": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg12/index.d.ts", - "version": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg13/index.d.ts", - "version": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg14/index.d.ts", - "version": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg15/index.d.ts", - "version": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg16/index.d.ts", - "version": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg17/index.d.ts", - "version": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg18/index.d.ts", - "version": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg19/index.d.ts", - "version": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg20/index.d.ts", - "version": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg21/index.d.ts", - "version": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg22/index.d.ts", - "version": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg5/index.d.ts", - "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg6/index.d.ts", - "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg7/index.d.ts", - "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg8/index.d.ts", - "version": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg9/index.d.ts", - "version": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg10/index.d.ts", - "./pkg10/index.ts" - ], - [ - "./pkg11/index.d.ts", - "./pkg11/index.ts" - ], - [ - "./pkg12/index.d.ts", - "./pkg12/index.ts" - ], - [ - "./pkg13/index.d.ts", - "./pkg13/index.ts" - ], - [ - "./pkg14/index.d.ts", - "./pkg14/index.ts" - ], - [ - "./pkg15/index.d.ts", - "./pkg15/index.ts" - ], - [ - "./pkg16/index.d.ts", - "./pkg16/index.ts" - ], - [ - "./pkg17/index.d.ts", - "./pkg17/index.ts" - ], - [ - "./pkg18/index.d.ts", - "./pkg18/index.ts" - ], - [ - "./pkg19/index.d.ts", - "./pkg19/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg20/index.d.ts", - "./pkg20/index.ts" - ], - [ - "./pkg21/index.d.ts", - "./pkg21/index.ts" - ], - [ - "./pkg22/index.d.ts", - "./pkg22/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ], - [ - "./pkg5/index.d.ts", - "./pkg5/index.ts" - ], - [ - "./pkg6/index.d.ts", - "./pkg6/index.ts" - ], - [ - "./pkg7/index.d.ts", - "./pkg7/index.ts" - ], - [ - "./pkg8/index.d.ts", - "./pkg8/index.ts" - ], - [ - "./pkg9/index.d.ts", - "./pkg9/index.ts" - ] - ], - "size": 3602 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg5/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg6/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg7/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg8/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg9/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg10/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg11/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg12/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg13/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg14/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg15/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg16/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg17/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg18/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg19/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg20/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg21/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg22/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -Signatures:: -(used version) /user/username/projects/myproject/pkg0/index.d.ts - - -Edit [3]:: no change - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js deleted file mode 100644 index e5ed697ea6..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js +++ /dev/null @@ -1,674 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg0/index.ts] *new* -export const pkg0 = 0; -//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* - { - "compilerOptions": { "composite": true }, - - } -//// [/user/username/projects/myproject/pkg1/index.ts] *new* -export const pkg1 = 1; -//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg2/index.ts] *new* -export const pkg2 = 2; -//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [ - { "path": "./pkg0" }, - { "path": "./pkg1" }, - { "path": "./pkg2" } - ] -} - -tsgo -b -w -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* -export declare const pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* -export declare const pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg1 = void 0; -exports.pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* -export declare const pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg2 = void 0; -exports.pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n"],"options":{"composite":true},"resolvedRoot":[[2,5],[3,6],[4,7]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ] - ], - "size": 1233 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg1/index.ts - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg2/index.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.d.ts -Signatures:: - - -Edit [0]:: dts doesn't change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1121 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - - -Edit [1]:: no change - - -Output:: - - - -Edit [2]:: dts change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* -export declare const pkg0 = 0; -export declare const someConst = 10; - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someConst = exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; -exports.someConst = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1187 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n"],"options":{"composite":true},"resolvedRoot":[[2,5],[3,6],[4,7]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ] - ], - "size": 1271 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -Signatures:: -(used version) /user/username/projects/myproject/pkg0/index.d.ts - - -Edit [3]:: no change - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js deleted file mode 100644 index edb535d021..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js +++ /dev/null @@ -1,918 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg0/index.ts] *new* -export const pkg0 = 0; -//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* - { - "compilerOptions": { "composite": true }, - - } -//// [/user/username/projects/myproject/pkg1/index.ts] *new* -export const pkg1 = 1; -//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg2/index.ts] *new* -export const pkg2 = 2; -//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg3/index.ts] *new* -export const pkg3 = 3; -//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg4/index.ts] *new* -export const pkg4 = 4; -//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [ - { "path": "./pkg0" }, - { "path": "./pkg1" }, - { "path": "./pkg2" }, - { "path": "./pkg3" }, - { "path": "./pkg4" } - ] -} - -tsgo -b -w -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* -export declare const pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* -export declare const pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg1 = void 0; -exports.pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* -export declare const pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg2 = void 0; -exports.pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* -export declare const pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg3 = void 0; -exports.pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* -export declare const pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg4 = void 0; -exports.pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n"],"options":{"composite":true},"resolvedRoot":[[2,7],[3,8],[4,9],[5,10],[6,11]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ] - ], - "size": 1459 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg1/index.ts - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg2/index.ts - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg3/index.ts - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg4/index.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.d.ts -Signatures:: - - -Edit [0]:: dts doesn't change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1121 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - - -Edit [1]:: no change - - -Output:: - - - -Edit [2]:: dts change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* -export declare const pkg0 = 0; -export declare const someConst = 10; - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someConst = exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; -exports.someConst = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1187 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n"],"options":{"composite":true},"resolvedRoot":[[2,7],[3,8],[4,9],[5,10],[6,11]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ] - ], - "size": 1497 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -Signatures:: -(used version) /user/username/projects/myproject/pkg0/index.d.ts - - -Edit [3]:: no change - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js deleted file mode 100644 index 53b176f580..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js +++ /dev/null @@ -1,1284 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg0/index.ts] *new* -export const pkg0 = 0; -//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* - { - "compilerOptions": { "composite": true }, - - } -//// [/user/username/projects/myproject/pkg1/index.ts] *new* -export const pkg1 = 1; -//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg2/index.ts] *new* -export const pkg2 = 2; -//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg3/index.ts] *new* -export const pkg3 = 3; -//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg4/index.ts] *new* -export const pkg4 = 4; -//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg5/index.ts] *new* -export const pkg5 = 5; -//// [/user/username/projects/myproject/pkg5/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg6/index.ts] *new* -export const pkg6 = 6; -//// [/user/username/projects/myproject/pkg6/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/pkg7/index.ts] *new* -export const pkg7 = 7; -//// [/user/username/projects/myproject/pkg7/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [{ "path": "../pkg0" }], -} -//// [/user/username/projects/myproject/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "references": [ - { "path": "./pkg0" }, - { "path": "./pkg1" }, - { "path": "./pkg2" }, - { "path": "./pkg3" }, - { "path": "./pkg4" }, - { "path": "./pkg5" }, - { "path": "./pkg6" }, - { "path": "./pkg7" } - ] -} - -tsgo -b -w -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* -export declare const pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* -export declare const pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg1 = void 0; -exports.pkg1 = 1; - -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* -export declare const pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg2 = void 0; -exports.pkg2 = 2; - -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* -export declare const pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg3 = void 0; -exports.pkg3 = 3; - -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* -export declare const pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg4 = void 0; -exports.pkg4 = 4; - -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg5/index.d.ts] *new* -export declare const pkg5 = 5; - -//// [/user/username/projects/myproject/pkg5/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg5 = void 0; -exports.pkg5 = 5; - -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;","signature":"77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg6/index.d.ts] *new* -export declare const pkg6 = 6; - -//// [/user/username/projects/myproject/pkg6/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg6 = void 0; -exports.pkg6 = 6; - -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;","signature":"579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/pkg7/index.d.ts] *new* -export declare const pkg7 = 7; - -//// [/user/username/projects/myproject/pkg7/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg7 = void 0; -exports.pkg7 = 7; - -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;","signature":"5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1099 -} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,9]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n"],"options":{"composite":true},"resolvedRoot":[[2,10],[3,11],[4,12],[5,13],[6,14],[7,15],[8,16],[9,17]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts" - ], - "original": [ - 2, - 9 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts", - "./pkg5/index.ts", - "./pkg6/index.ts", - "./pkg7/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg5/index.d.ts", - "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg6/index.d.ts", - "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg7/index.d.ts", - "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ], - [ - "./pkg5/index.d.ts", - "./pkg5/index.ts" - ], - [ - "./pkg6/index.d.ts", - "./pkg6/index.ts" - ], - [ - "./pkg7/index.d.ts", - "./pkg7/index.ts" - ] - ], - "size": 1801 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg1/index.ts - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg2/index.ts - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg3/index.ts - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg4/index.ts - -pkg5/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg5/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg5/index.ts - -pkg6/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg6/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg6/index.ts - -pkg7/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg7/index.ts -Signatures:: -(stored at emit) /user/username/projects/myproject/pkg7/index.ts - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -*refresh* /user/username/projects/myproject/pkg1/index.d.ts -*refresh* /user/username/projects/myproject/pkg2/index.d.ts -*refresh* /user/username/projects/myproject/pkg3/index.d.ts -*refresh* /user/username/projects/myproject/pkg4/index.d.ts -*refresh* /user/username/projects/myproject/pkg5/index.d.ts -*refresh* /user/username/projects/myproject/pkg6/index.d.ts -*refresh* /user/username/projects/myproject/pkg7/index.d.ts -Signatures:: - - -Edit [0]:: dts doesn't change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", - "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1121 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - - -Edit [1]:: no change - - -Output:: - - - -Edit [2]:: dts change -//// [/user/username/projects/myproject/pkg0/index.ts] *modified* -export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * pkg0/tsconfig.json - * pkg1/tsconfig.json - * pkg2/tsconfig.json - * pkg3/tsconfig.json - * pkg4/tsconfig.json - * pkg5/tsconfig.json - * pkg6/tsconfig.json - * pkg7/tsconfig.json - * tsconfig.json - -[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg5/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg6/tsconfig.json'... - -[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' - -[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg7/tsconfig.json'... - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* -export declare const pkg0 = 0; -export declare const someConst = 10; - -//// [/user/username/projects/myproject/pkg0/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someConst = exports.pkg0 = void 0; -exports.pkg0 = 0; -const someConst2 = 10; -exports.someConst = 10; - -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1187 -} -//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,9]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n"],"options":{"composite":true},"resolvedRoot":[[2,10],[3,11],[4,12],[5,13],[6,14],[7,15],[8,16],[9,17]]} -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts" - ], - "original": [ - 2, - 9 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./pkg0/index.d.ts", - "./pkg1/index.d.ts", - "./pkg2/index.d.ts", - "./pkg3/index.d.ts", - "./pkg4/index.d.ts", - "./pkg5/index.d.ts", - "./pkg6/index.d.ts", - "./pkg7/index.d.ts", - "./pkg0/index.ts", - "./pkg1/index.ts", - "./pkg2/index.ts", - "./pkg3/index.ts", - "./pkg4/index.ts", - "./pkg5/index.ts", - "./pkg6/index.ts", - "./pkg7/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./pkg0/index.d.ts", - "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg1/index.d.ts", - "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg2/index.d.ts", - "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg3/index.d.ts", - "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg4/index.d.ts", - "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg5/index.d.ts", - "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg6/index.d.ts", - "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./pkg7/index.d.ts", - "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "composite": true - }, - "resolvedRoot": [ - [ - "./pkg0/index.d.ts", - "./pkg0/index.ts" - ], - [ - "./pkg1/index.d.ts", - "./pkg1/index.ts" - ], - [ - "./pkg2/index.d.ts", - "./pkg2/index.ts" - ], - [ - "./pkg3/index.d.ts", - "./pkg3/index.ts" - ], - [ - "./pkg4/index.d.ts", - "./pkg4/index.ts" - ], - [ - "./pkg5/index.d.ts", - "./pkg5/index.ts" - ], - [ - "./pkg6/index.d.ts", - "./pkg6/index.ts" - ], - [ - "./pkg7/index.d.ts", - "./pkg7/index.ts" - ] - ], - "size": 1839 -} - -pkg0/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts - -pkg1/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg2/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg3/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg4/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg5/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg6/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -pkg7/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/myproject/pkg0/index.d.ts -Signatures:: -(used version) /user/username/projects/myproject/pkg0/index.d.ts - - -Edit [3]:: no change - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js b/testdata/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js deleted file mode 100644 index 9cf1cf62a8..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js +++ /dev/null @@ -1,528 +0,0 @@ -currentDirectory::/user/username/projects/reexport -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/reexport/src/main/index.ts] *new* -import { Session } from "../pure"; - -export const session: Session = { - foo: 1 -}; -//// [/user/username/projects/reexport/src/main/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "../../out", - "rootDir": "../", - }, - "include": ["**/*.ts"], - "references": [{ "path": "../pure" }], -} -//// [/user/username/projects/reexport/src/pure/index.ts] *new* -export * from "./session"; -//// [/user/username/projects/reexport/src/pure/session.ts] *new* -export interface Session { - foo: number; - // bar: number; -} -//// [/user/username/projects/reexport/src/pure/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "../../out", - "rootDir": "../", - }, - "include": ["**/*.ts"], -} -//// [/user/username/projects/reexport/src/tsconfig.json] *new* -{ - "files": [], - "include": [], - "references": [{ "path": "./pure" }, { "path": "./main" }], -} - -tsgo -b -w -verbose src -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * src/pure/tsconfig.json - * src/main/tsconfig.json - * src/tsconfig.json - -[HH:MM:SS AM] Project 'src/pure/tsconfig.json' is out of date because output file 'out/pure/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'src/pure/tsconfig.json'... - -[HH:MM:SS AM] Project 'src/main/tsconfig.json' is out of date because output file 'out/main/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'src/main/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/reexport/out/main/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.session = void 0; -exports.session = { - foo: 1 -}; - -//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":["../../src/main/index.ts"]} -//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../src/main/index.ts" - ], - "original": "../../src/main/index.ts" - } - ], - "size": 62 -} -//// [/user/username/projects/reexport/out/pure/index.d.ts] *new* -export * from "./session"; - -//// [/user/username/projects/reexport/out/pure/index.js] *new* -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./session"), exports); - -//// [/user/username/projects/reexport/out/pure/session.d.ts] *new* -export interface Session { - foo: number; -} - -//// [/user/username/projects/reexport/out/pure/session.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}","signature":"90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n","impliedNodeFormat":1},{"version":"c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";","signature":"14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../src/pure/session.ts", - "../../src/pure/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../src/pure/session.ts", - "../../src/pure/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../src/pure/session.ts", - "version": "1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}", - "signature": "90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}", - "signature": "90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../src/pure/index.ts", - "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", - "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", - "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../src/pure/session.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../src" - }, - "referencedMap": { - "../../src/pure/index.ts": [ - "../../src/pure/session.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1463 -} - -src/pure/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/reexport/src/pure/session.ts -*refresh* /user/username/projects/reexport/src/pure/index.ts -Signatures:: -(stored at emit) /user/username/projects/reexport/src/pure/session.ts -(stored at emit) /user/username/projects/reexport/src/pure/index.ts - -src/main/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/reexport/out/pure/session.d.ts -*refresh* /user/username/projects/reexport/out/pure/index.d.ts -*refresh* /user/username/projects/reexport/src/main/index.ts -Signatures:: - - -Edit [0]:: Introduce error -//// [/user/username/projects/reexport/src/pure/session.ts] *modified* -export interface Session { - foo: number; - bar: number; -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * src/pure/tsconfig.json - * src/main/tsconfig.json - * src/tsconfig.json - -[HH:MM:SS AM] Project 'src/pure/tsconfig.json' is out of date because output 'out/pure/tsconfig.tsbuildinfo' is older than input 'src/pure/session.ts' - -[HH:MM:SS AM] Building project 'src/pure/tsconfig.json'... - -[HH:MM:SS AM] Project 'src/main/tsconfig.json' is out of date because output 'out/main/index.js' is older than input 'src/pure/tsconfig.json' - -[HH:MM:SS AM] Building project 'src/main/tsconfig.json'... - -src/main/index.ts:3:14 - error TS2741: Property 'bar' is missing in type '{ foo: number; }' but required in type 'Session'. - -3 export const session: Session = { -   ~~~~~~~ - - out/pure/session.d.ts:3:5 - 'bar' is declared here. - 3 bar: number; -    ~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/reexport/out/main/index.js] *rewrite with same content* -//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../../src/main/index.ts"],"semanticErrors":true} -//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../src/main/index.ts" - ], - "original": "../../src/main/index.ts" - } - ], - "size": 84, - "semanticErrors": true -} -//// [/user/username/projects/reexport/out/pure/index.js] *rewrite with same content* -//// [/user/username/projects/reexport/out/pure/session.d.ts] *modified* -export interface Session { - foo: number; - bar: number; -} - -//// [/user/username/projects/reexport/out/pure/session.js] *rewrite with same content* -//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f993dc94313f77cb079d7ee366b10997-export interface Session {\n foo: number;\n bar: number;\n}","signature":"5daeec8bad73c67127f3b3aae951c919-export interface Session {\n foo: number;\n bar: number;\n}\n","impliedNodeFormat":1},{"version":"c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";","signature":"14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./session.d.ts"} -//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../src/pure/session.ts", - "../../src/pure/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../src/pure/session.ts", - "../../src/pure/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../src/pure/session.ts", - "version": "f993dc94313f77cb079d7ee366b10997-export interface Session {\n foo: number;\n bar: number;\n}", - "signature": "5daeec8bad73c67127f3b3aae951c919-export interface Session {\n foo: number;\n bar: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f993dc94313f77cb079d7ee366b10997-export interface Session {\n foo: number;\n bar: number;\n}", - "signature": "5daeec8bad73c67127f3b3aae951c919-export interface Session {\n foo: number;\n bar: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../src/pure/index.ts", - "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", - "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", - "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../src/pure/session.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../src" - }, - "referencedMap": { - "../../src/pure/index.ts": [ - "../../src/pure/session.ts" - ] - }, - "latestChangedDtsFile": "./session.d.ts", - "size": 1480 -} - -src/pure/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/reexport/src/pure/session.ts -*refresh* /user/username/projects/reexport/src/pure/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/reexport/src/pure/session.ts -(computed .d.ts) /user/username/projects/reexport/src/pure/index.ts - -src/main/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/reexport/out/pure/session.d.ts -*refresh* /user/username/projects/reexport/out/pure/index.d.ts -*refresh* /user/username/projects/reexport/src/main/index.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/reexport/src/pure/session.ts] *modified* -export interface Session { - foo: number; - // bar: number; -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * src/pure/tsconfig.json - * src/main/tsconfig.json - * src/tsconfig.json - -[HH:MM:SS AM] Project 'src/pure/tsconfig.json' is out of date because output 'out/pure/tsconfig.tsbuildinfo' is older than input 'src/pure/session.ts' - -[HH:MM:SS AM] Building project 'src/pure/tsconfig.json'... - -[HH:MM:SS AM] Project 'src/main/tsconfig.json' is out of date because it has errors. - -[HH:MM:SS AM] Building project 'src/main/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/reexport/out/main/index.js] *rewrite with same content* -//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":["../../src/main/index.ts"]} -//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../src/main/index.ts" - ], - "original": "../../src/main/index.ts" - } - ], - "size": 62 -} -//// [/user/username/projects/reexport/out/pure/index.js] *rewrite with same content* -//// [/user/username/projects/reexport/out/pure/session.d.ts] *modified* -export interface Session { - foo: number; -} - -//// [/user/username/projects/reexport/out/pure/session.js] *rewrite with same content* -//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}","signature":"90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n","impliedNodeFormat":1},{"version":"c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";","signature":"14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./session.d.ts"} -//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../src/pure/session.ts", - "../../src/pure/index.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../src/pure/session.ts", - "../../src/pure/index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../src/pure/session.ts", - "version": "1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}", - "signature": "90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}", - "signature": "90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../src/pure/index.ts", - "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", - "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", - "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../src/pure/session.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../src" - }, - "referencedMap": { - "../../src/pure/index.ts": [ - "../../src/pure/session.ts" - ] - }, - "latestChangedDtsFile": "./session.d.ts", - "size": 1465 -} - -src/pure/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/reexport/src/pure/session.ts -*refresh* /user/username/projects/reexport/src/pure/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/reexport/src/pure/session.ts -(computed .d.ts) /user/username/projects/reexport/src/pure/index.ts - -src/main/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/reexport/out/pure/session.d.ts -*refresh* /user/username/projects/reexport/out/pure/index.d.ts -*refresh* /user/username/projects/reexport/src/main/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js b/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js deleted file mode 100644 index b3643a328a..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js +++ /dev/null @@ -1,870 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/projects/server/src/server.ts] *new* -import { MyClass } from ':shared/myClass.js'; -console.log('Hello, world!'); -//// [/home/src/workspaces/solution/projects/server/tsconfig.json] *new* -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "rootDir": "..", - "outDir": "./dist", - "paths": { - ":shared/*": ["./src/../../shared/src/*"], - }, - }, - "include": [ "../shared/src/**/*.ts", "src/**/*.ts" ], - "references": [ - { "path": "../shared" }, - ], -} -//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *new* -export function log(str: string) { - console.log(str); -} -//// [/home/src/workspaces/solution/projects/shared/src/myClass.ts] *new* -export class MyClass { } -//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *new* -export function randomFn(str: string) { - console.log(str); -} -//// [/home/src/workspaces/solution/projects/shared/tsconfig.json] *new* -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist", - }, - "include": ["src/**/*.ts"], -} -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "projects/server" }, - { "path": "projects/shared" }, - ], -} - -tsgo --b -w projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output file 'projects/shared/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/random.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output file 'projects/server/dist/server/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/myClass.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/shared/dist/src/random.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/random.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.d.ts] *new* -export {}; - -//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log('Hello, world!'); - -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../../shared/dist/src/random.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[5,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[3,7],[4,8]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../src/server.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../src/server.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/random.d.ts", - "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/random.ts" - ] - ], - "size": 1728 -} -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *new* -export declare function log(str: string): void; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.log = log; -function log(str) { - console.log(str); -} - -//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts] *new* -export declare class MyClass { -} - -//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MyClass = void 0; -class MyClass { -} -exports.MyClass = MyClass; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/random.d.ts] *new* -export declare function randomFn(str: string): void; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/random.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.randomFn = randomFn; -function randomFn(str) { - console.log(str); -} - -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}","signature":"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/random.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/random.ts", - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/random.d.ts", - "size": 1637 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/myClass.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/random.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/projects/shared/src/logging.ts -(stored at emit) /home/src/workspaces/solution/projects/shared/src/myClass.ts -(stored at emit) /home/src/workspaces/solution/projects/shared/src/random.ts - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/random.d.ts -*refresh* /home/src/workspaces/solution/projects/server/src/server.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/projects/server/src/server.ts - - -Edit [0]:: no change - - -Output:: - - - -Edit [1]:: edit logging file -//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *modified* -export function log(str: string) { - console.log(str); -}export const x = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output 'projects/shared/dist/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/random.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output 'projects/server/dist/server/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/myClass.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/shared/dist/src/random.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/random.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../../shared/dist/src/random.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[5,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[3,7],[4,8]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../src/server.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../src/server.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/random.d.ts", - "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/random.ts" - ] - ], - "size": 1758 -} -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *modified* -export declare function log(str: string): void; -export declare const x = 10; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.log = log; -function log(str) { - console.log(str); -} -exports.x = 10; - -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/random.ts", - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/logging.d.ts", - "size": 1688 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/projects/shared/src/logging.ts - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts -Signatures:: -(used version) /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts - - -Edit [2]:: no change - - -Output:: - - - -Edit [3]:: delete random file -//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *deleted* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because buildinfo file 'projects/shared/dist/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because buildinfo file 'projects/server/dist/server/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/myClass.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[4,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,5],[3,6]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/myClass.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ] - ], - "size": 1591 -} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/logging.d.ts", - "size": 1432 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project.js b/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project.js deleted file mode 100644 index 48f204da2b..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project.js +++ /dev/null @@ -1,870 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/projects/server/src/server.ts] *new* -import { MyClass } from ':shared/myClass.js'; -console.log('Hello, world!'); -//// [/home/src/workspaces/solution/projects/server/tsconfig.json] *new* -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "rootDir": "..", - "outDir": "./dist", - "paths": { - ":shared/*": ["./src/../../shared/src/*"], - }, - }, - "include": [ "src/**/*.ts", "../shared/src/**/*.ts" ], - "references": [ - { "path": "../shared" }, - ], -} -//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *new* -export function log(str: string) { - console.log(str); -} -//// [/home/src/workspaces/solution/projects/shared/src/myClass.ts] *new* -export class MyClass { } -//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *new* -export function randomFn(str: string) { - console.log(str); -} -//// [/home/src/workspaces/solution/projects/shared/tsconfig.json] *new* -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist", - }, - "include": ["src/**/*.ts"], -} -//// [/home/src/workspaces/solution/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - }, - "references": [ - { "path": "projects/server" }, - { "path": "projects/shared" }, - ], -} - -tsgo --b -w projects/server -v --traceResolution --explainFiles -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output file 'projects/shared/dist/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/random.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output file 'projects/server/dist/server/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/myClass.d.ts - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/random.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/random.ts' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.d.ts] *new* -export {}; - -//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log('Hello, world!'); - -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/random.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[4,7],[5,8]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/random.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/random.d.ts", - "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/random.ts" - ] - ], - "size": 1728 -} -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *new* -export declare function log(str: string): void; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.log = log; -function log(str) { - console.log(str); -} - -//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts] *new* -export declare class MyClass { -} - -//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MyClass = void 0; -class MyClass { -} -exports.MyClass = MyClass; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/random.d.ts] *new* -export declare function randomFn(str: string): void; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/random.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.randomFn = randomFn; -function randomFn(str) { - console.log(str); -} - -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}","signature":"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/random.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", - "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/random.ts", - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/random.d.ts", - "size": 1637 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/myClass.ts -*refresh* /home/src/workspaces/solution/projects/shared/src/random.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/projects/shared/src/logging.ts -(stored at emit) /home/src/workspaces/solution/projects/shared/src/myClass.ts -(stored at emit) /home/src/workspaces/solution/projects/shared/src/random.ts - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts -*refresh* /home/src/workspaces/solution/projects/server/src/server.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/random.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/projects/server/src/server.ts - - -Edit [0]:: no change - - -Output:: - - - -Edit [1]:: edit logging file -//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *modified* -export function log(str: string) { - console.log(str); -}export const x = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output 'projects/shared/dist/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/random.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output 'projects/server/dist/server/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/myClass.d.ts - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -projects/shared/dist/src/random.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/random.ts' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/random.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[4,7],[5,8]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/random.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/logging.ts", - "../../../shared/src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../../shared/dist/src/random.d.ts", - "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ], - [ - "../../../shared/dist/src/random.d.ts", - "../../../shared/src/random.ts" - ] - ], - "size": 1758 -} -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *modified* -export declare function log(str: string): void; -export declare const x = 10; - -//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.log = log; -function log(str) { - console.log(str); -} -exports.x = 10; - -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts", - "../src/random.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/random.ts", - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", - "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/logging.d.ts", - "size": 1688 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/solution/projects/shared/src/logging.ts - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts -Signatures:: -(used version) /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts - - -Edit [2]:: no change - - -Output:: - - - -Edit [3]:: delete random file -//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *deleted* - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * projects/shared/tsconfig.json - * projects/server/tsconfig.json - -[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because buildinfo file 'projects/shared/dist/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/src/logging.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -projects/shared/src/myClass.ts - Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' -[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because buildinfo file 'projects/server/dist/server/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. - -[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... - -======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. -Module name ':shared/myClass.js', matched pattern ':shared/*'. -Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. -Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. -File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. -File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. -======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -projects/shared/dist/src/myClass.d.ts - Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/myClass.ts' -projects/server/src/server.ts - Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' -projects/shared/dist/src/logging.d.ts - Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' - File is output of project reference source 'projects/shared/src/logging.ts' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,5],[4,6]]} -//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../../../shared/dist/src/myClass.d.ts", - "../../src/server.ts", - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/myClass.ts", - "../../../shared/src/logging.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/myClass.d.ts", - "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/server.ts", - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../../shared/dist/src/logging.d.ts", - "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../../../shared/dist/src/myClass.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "..", - "rootDir": "../../.." - }, - "referencedMap": { - "../../src/server.ts": [ - "../../../shared/dist/src/myClass.d.ts" - ] - }, - "latestChangedDtsFile": "./src/server.d.ts", - "resolvedRoot": [ - [ - "../../../shared/dist/src/myClass.d.ts", - "../../../shared/src/myClass.ts" - ], - [ - "../../../shared/dist/src/logging.d.ts", - "../../../shared/src/logging.ts" - ] - ], - "size": 1591 -} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} -//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/logging.ts", - "../src/myClass.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/logging.ts", - "../src/myClass.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/logging.ts", - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", - "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/myClass.ts", - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", - "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/logging.d.ts", - "size": 1432 -} - -projects/shared/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -projects/server/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates-with-circular-references.js b/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates-with-circular-references.js deleted file mode 100644 index 4ecab36d83..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates-with-circular-references.js +++ /dev/null @@ -1,689 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true - }, - "references": [ - { "path": "../tests", "circular": true } - ], -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w tests -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; - -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1769 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1801 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1960 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Change to new File and build core -//// [/user/username/projects/sample1/core/newfile.ts] *new* -export const newFileConst = 30; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/newfile.d.ts] *new* -export declare const newFileConst = 30; - -//// [/user/username/projects/sample1/core/newfile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.newFileConst = void 0; -exports.newFileConst = 30; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"046181f7f382942435700923f254abbd-export const newFileConst = 30;","signature":"a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./newfile.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./newfile.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./newfile.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./newfile.ts", - "version": "046181f7f382942435700923f254abbd-export const newFileConst = 30;", - "signature": "a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "046181f7f382942435700923f254abbd-export const newFileConst = 30;", - "signature": "a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./newfile.d.ts", - "size": 1976 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/newfile.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/newfile.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tests/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Change to new File and build core -//// [/user/username/projects/sample1/core/newfile.ts] *modified* - -export class someClass2 { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/newfile.d.ts] *modified* -export declare class someClass2 { -} - -//// [/user/username/projects/sample1/core/newfile.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass2 = void 0; -class someClass2 { -} -exports.someClass2 = someClass2; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }","signature":"6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./newfile.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./newfile.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./newfile.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./newfile.ts", - "version": "be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }", - "signature": "6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }", - "signature": "6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./newfile.d.ts", - "size": 1971 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/newfile.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/newfile.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tests/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates.js deleted file mode 100644 index 16f7da7a0d..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ /dev/null @@ -1,702 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w tests -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Change to new File and build core -//// [/user/username/projects/sample1/core/newfile.ts] *new* -export const newFileConst = 30; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/newfile.d.ts] *new* -export declare const newFileConst = 30; -//# sourceMappingURL=newfile.d.ts.map -//// [/user/username/projects/sample1/core/newfile.d.ts.map] *new* -{"version":3,"file":"newfile.d.ts","sourceRoot":"","sources":["newfile.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAK,CAAC"} -//// [/user/username/projects/sample1/core/newfile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.newFileConst = void 0; -exports.newFileConst = 30; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"046181f7f382942435700923f254abbd-export const newFileConst = 30;","signature":"a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./newfile.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./newfile.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./newfile.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./newfile.ts", - "version": "046181f7f382942435700923f254abbd-export const newFileConst = 30;", - "signature": "a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "046181f7f382942435700923f254abbd-export const newFileConst = 30;", - "signature": "a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./newfile.d.ts", - "size": 2025 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/newfile.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/newfile.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tests/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Change to new File and build core -//// [/user/username/projects/sample1/core/newfile.ts] *modified* - -export class someClass2 { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/newfile.d.ts] *modified* -export declare class someClass2 { -} -//# sourceMappingURL=newfile.d.ts.map -//// [/user/username/projects/sample1/core/newfile.d.ts.map] *modified* -{"version":3,"file":"newfile.d.ts","sourceRoot":"","sources":["newfile.ts"],"names":[],"mappings":"AACA,qBAAa,UAAU;CAAI"} -//// [/user/username/projects/sample1/core/newfile.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass2 = void 0; -class someClass2 { -} -exports.someClass2 = someClass2; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }","signature":"6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./newfile.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./newfile.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./newfile.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./newfile.ts", - "version": "be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }", - "signature": "6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }", - "signature": "6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./newfile.d.ts", - "size": 2020 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/newfile.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/newfile.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - -tests/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message-with-circular-references.js b/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message-with-circular-references.js deleted file mode 100644 index c3368f7f8f..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message-with-circular-references.js +++ /dev/null @@ -1,1348 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true - }, - "references": [ - { "path": "../tests", "circular": true } - ], -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w tests -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; - -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1769 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1801 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1960 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Make change to core -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} - -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1834 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1838 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1997 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [1]:: Revert core file -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1769 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1801 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1960 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [2]:: Make two changes -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } -export class someClass2 { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} -export declare class someClass2 { -} - -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass2 = exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; -class someClass2 { -} -exports.someClass2 = someClass2; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }","signature":"6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }", - "signature": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }", - "signature": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1901 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1876 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2035 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message.js b/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message.js deleted file mode 100644 index ef0e973e10..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message.js +++ /dev/null @@ -1,1365 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w tests -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Make change to core -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", - "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1883 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1916 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2075 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [1]:: Revert core file -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts - - -Edit [2]:: Make two changes -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -export class someClass { } -export class someClass2 { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts] *modified* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} -export declare class someClass2 { -} -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI;AAC1B,qBAAa,UAAU;CAAI"} -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someClass2 = exports.someClass = exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -class someClass { -} -exports.someClass = someClass; -class someClass2 { -} -exports.someClass2 = someClass2; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }","signature":"6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }", - "signature": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }", - "signature": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1950 -} -//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1954 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", - "signature": "d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2113 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/core/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/incremental-updates-in-verbose-mode.js b/testdata/baselines/reference/tsbuildWatch/sample/incremental-updates-in-verbose-mode.js deleted file mode 100644 index 9eb820ff03..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/incremental-updates-in-verbose-mode.js +++ /dev/null @@ -1,815 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w tests --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Make non dts change -//// [/user/username/projects/sample1/logic/index.ts] *modified* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -function someFn() { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/index.ts' - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/logic/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -function someFn() { } -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *modified* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,SAAS,MAAM,GAAG,EAAC,CAAE"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"56bc284b087dd9cc90ffa4704740b86c-import * as 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 someFn() { }","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "56bc284b087dd9cc90ffa4704740b86c-import * as 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 someFn() { }", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "56bc284b087dd9cc90ffa4704740b86c-import * as 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 someFn() { }", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1902 -} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - - -Edit [1]:: Make dts change -//// [/user/username/projects/sample1/logic/index.ts] *modified* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -export function someFn() { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/index.ts' - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/index.js' is older than input 'logic/tsconfig.json' - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/logic/index.d.ts] *modified* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; -export declare function someFn(): void; - -//// [/user/username/projects/sample1/logic/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -exports.someFn = someFn; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -function someFn() { } -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *modified* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,kBAAyB,EAAC,CAAE"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"d749596c6d4d5a27ed436fc0d564335c-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nexport function someFn() { }","signature":"2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "d749596c6d4d5a27ed436fc0d564335c-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nexport function someFn() { }", - "signature": "2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d749596c6d4d5a27ed436fc0d564335c-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nexport function someFn() { }", - "signature": "2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1950 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", - "signature": "2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2079 -} - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/logic/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects-with-circular-references.js b/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects-with-circular-references.js deleted file mode 100644 index 5c7569ea6b..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects-with-circular-references.js +++ /dev/null @@ -1,540 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true - }, - "references": [ - { "path": "../tests", "circular": true } - ], -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w tests -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; - -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1769 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1801 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1960 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Make local change to core -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -function foo() { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -function foo() { } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1789 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects.js b/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects.js deleted file mode 100644 index 89d76bca33..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects.js +++ /dev/null @@ -1,548 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w tests -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Make local change to core -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -function foo() { } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -function foo() { } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1838 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-not-used.js b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-not-used.js deleted file mode 100644 index 1597a6769e..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-not-used.js +++ /dev/null @@ -1,832 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo -b -w tests -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: change logic -//// [/user/username/projects/sample1/logic/index.ts] *modified* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -let y: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -7 let y: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/sample1/logic/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -let y = 10; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *modified* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,IAAI,CAAC,GAAW,EAAE,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":177,"end":178,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 177, - "end": 178, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2046 -} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - - -Edit [1]:: change core -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -let x: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -4 let x: string = 10; -   ~ - -logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -7 let y: string = 10; -   ~ - -[HH:MM:SS AM] Found 2 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -let x = 10; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":182,"end":183,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 182, - "end": 183, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 1985 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: fix error in logic -//// [/user/username/projects/sample1/logic/index.ts] *modified* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -4 let x: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/sample1/logic/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *modified* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/logic/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-passed-on-command-line.js b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-passed-on-command-line.js deleted file mode 100644 index 7f1d0027b3..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-passed-on-command-line.js +++ /dev/null @@ -1,832 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo -b -w tests --preserveWatchOutput -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: change logic -//// [/user/username/projects/sample1/logic/index.ts] *modified* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -let y: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -7 let y: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/sample1/logic/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -let y = 10; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *modified* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,IAAI,CAAC,GAAW,EAAE,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":177,"end":178,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 177, - "end": 178, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2046 -} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - - -Edit [1]:: change core -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -let x: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -4 let x: string = 10; -   ~ - -logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -7 let y: string = 10; -   ~ - -[HH:MM:SS AM] Found 2 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -let x = 10; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":182,"end":183,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 182, - "end": 183, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 1985 -} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: fix error in logic -//// [/user/username/projects/sample1/logic/index.ts] *modified* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -4 let x: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/sample1/logic/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *modified* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/logic/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-stopBuildOnErrors-is-passed-on-command-line.js b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-stopBuildOnErrors-is-passed-on-command-line.js deleted file mode 100644 index bb6fe8e3ae..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-stopBuildOnErrors-is-passed-on-command-line.js +++ /dev/null @@ -1,742 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo -b -w tests --stopBuildOnErrors -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: change logic -//// [/user/username/projects/sample1/logic/index.ts] *modified* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -let y: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -7 let y: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/user/username/projects/sample1/logic/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -let y = 10; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *modified* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,IAAI,CAAC,GAAW,EAAE,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":177,"end":178,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 177, - "end": 178, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2046 -} - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/logic/index.ts - - -Edit [1]:: change core -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -let x: string = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -4 let x: string = 10; -   ~ - -logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -7 let y: string = 10; -   ~ - -[HH:MM:SS AM] Found 2 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -let x = 10; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":182,"end":183,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 182, - "end": 183, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 1985 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - - -Diff:: Clean build will stop on error in core and will not report error in logic -Watch build will retain previous errors from logic and report it ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -3,3 +3,8 @@ - 4 let x: string = 10; -    ~ - -+logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. -+ -+7 let y: string = 10; -+   ~ -+ - -Edit [2]:: fix error in logic -//// [/user/username/projects/sample1/logic/index.ts] *modified* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. - -4 let x: string = 10; -   ~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - diff --git a/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js b/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js deleted file mode 100644 index bf6b1a70c2..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js +++ /dev/null @@ -1,350 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "outDir" - } -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/outDir/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/outDir/anotherModule.d.ts] *new* -export declare const World = "hello"; - -//// [/user/username/projects/sample1/core/outDir/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/outDir/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - -//// [/user/username/projects/sample1/core/outDir/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../anotherModule.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../anotherModule.ts", - "../index.ts", - "../some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../anotherModule.ts", - "../index.ts", - "../some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1767 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - - -Edit [0]:: no change - - -Output:: - - - -Edit [1]:: Add new file -//// [/user/username/projects/sample1/core/file3.ts] *new* -export const y = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/outDir/tsconfig.tsbuildinfo' is older than input 'core/file3.ts' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/outDir/file3.d.ts] *new* -export declare const y = 10; - -//// [/user/username/projects/sample1/core/outDir/file3.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = 10; - -//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../anotherModule.ts","../file3.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;","signature":"7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./file3.d.ts"} -//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../anotherModule.ts", - "../file3.ts", - "../index.ts", - "../some_decl.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../anotherModule.ts", - "../file3.ts", - "../index.ts", - "../some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../file3.ts", - "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", - "signature": "7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", - "signature": "7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./file3.d.ts", - "size": 1949 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/file3.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/file3.ts - - -Edit [2]:: no change - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit.js b/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit.js deleted file mode 100644 index c7580e8511..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit.js +++ /dev/null @@ -1,362 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w core --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - - -Edit [0]:: no change - - -Output:: - - - -Edit [1]:: Add new file -//// [/user/username/projects/sample1/core/file3.ts] *new* -export const y = 10; - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/file3.ts' - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/file3.d.ts] *new* -export declare const y = 10; -//# sourceMappingURL=file3.d.ts.map -//// [/user/username/projects/sample1/core/file3.d.ts.map] *new* -{"version":3,"file":"file3.d.ts","sourceRoot":"","sources":["file3.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/user/username/projects/sample1/core/file3.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -exports.y = 10; - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./file3.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;","signature":"7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./file3.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./file3.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./file3.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./file3.ts", - "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", - "signature": "7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", - "signature": "7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./file3.d.ts", - "size": 1999 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/file3.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/file3.ts - - -Edit [2]:: no change - - -Output:: - diff --git a/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js b/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js deleted file mode 100644 index 080b2d9e4e..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js +++ /dev/null @@ -1,610 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; }multiply(); -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose --stopBuildOnErrors --watch -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. - -3 export function multiply(a: number, b: number) { return a * b; }multiply(); -   ~~~~~~~~ - - core/index.ts:3:26 - An argument for 'a' was not provided. - 3 export function multiply(a: number, b: number) { return a * b; }multiply(); -    ~~~~~~~~~ - -[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors - -[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' was not built - -[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'logic' was not built - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -multiply(); - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":177,"end":185,"code":2554,"category":1,"message":"Expected 2 arguments, but got 0.","relatedInformation":[{"pos":138,"end":147,"code":6210,"category":3,"message":"An argument for 'a' was not provided."}]}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 177, - "end": 185, - "code": 2554, - "category": 1, - "message": "Expected 2 arguments, but got 0.", - "relatedInformation": [ - { - "pos": 138, - "end": 147, - "code": 6210, - "category": 3, - "message": "An argument for 'a' was not provided." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2078 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - - -Edit [0]:: fix error -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js b/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js deleted file mode 100644 index b9b4ba3e5e..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js +++ /dev/null @@ -1,611 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; }multiply(); -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b tests --verbose --stopBuildOnErrors --watch -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. - -3 export function multiply(a: number, b: number) { return a * b; }multiply(); -   ~~~~~~~~ - - core/index.ts:3:26 - An argument for 'a' was not provided. - 3 export function multiply(a: number, b: number) { return a * b; }multiply(); -    ~~~~~~~~~ - -[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors - -[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors - -[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'core' has errors - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } -multiply(); - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":177,"end":185,"code":2554,"category":1,"message":"Expected 2 arguments, but got 0.","relatedInformation":[{"pos":138,"end":147,"code":6210,"category":3,"message":"An argument for 'a' was not provided."}]}]]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 177, - "end": 185, - "code": 2554, - "category": 1, - "message": "Expected 2 arguments, but got 0.", - "relatedInformation": [ - { - "pos": 138, - "end": 147, - "code": 6210, - "category": 3, - "message": "An argument for 'a' was not provided." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2078 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - - -Edit [0]:: fix error -//// [/user/username/projects/sample1/core/index.ts] *modified* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Projects in this build: - * core/tsconfig.json - * logic/tsconfig.json - * tests/tsconfig.json - -[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'core/tsconfig.json'... - -[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'logic/tsconfig.json'... - -[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tests/tsconfig.json'... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* -//// [/user/username/projects/sample1/core/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/sample1/core/index.ts -Signatures:: -(computed .d.ts) /user/username/projects/sample1/core/index.ts - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/watches-config-files-that-are-not-present.js b/testdata/baselines/reference/tsbuildWatch/sample/watches-config-files-that-are-not-present.js deleted file mode 100644 index d33181dc37..0000000000 --- a/testdata/baselines/reference/tsbuildWatch/sample/watches-config-files-that-are-not-present.js +++ /dev/null @@ -1,580 +0,0 @@ -currentDirectory::/user/username/projects/sample1 -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/sample1/core/anotherModule.ts] *new* -export const World = "hello"; -//// [/user/username/projects/sample1/core/index.ts] *new* -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* -declare const dts: any; -//// [/user/username/projects/sample1/core/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - }, -} -//// [/user/username/projects/sample1/logic/index.ts] *new* -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/index.ts] *new* -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; -//// [/user/username/projects/sample1/tests/tsconfig.json] *new* -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" }, - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --b -w tests -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Starting compilation in watch mode... - -error TS6053: File '/user/username/projects/sample1/logic/tsconfig.json' not found. -tests/tsconfig.json:4:9 - error TS6053: File '/user/username/projects/sample1/logic' not found. - -4 { "path": "../logic" }, -   ~~~~~~~~~~~~~~~~~~~~~~ - -[HH:MM:SS AM] Found 2 errors. Watching for file changes. - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/sample1/core/anotherModule.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = void 0; -exports.World = "hello"; - -//// [/user/username/projects/sample1/core/index.d.ts] *new* -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/sample1/core/index.d.ts.map] *new* -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/sample1/core/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = void 0; -exports.leftPad = leftPad; -exports.multiply = multiply; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -function multiply(a, b) { return a * b; } - -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./anotherModule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./anotherModule.ts", - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", - "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", - "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./some_decl.d.ts", - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1818 -} -//// [/user/username/projects/sample1/logic/index.d.ts] *new* -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/logic/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/index.d.ts] *new* -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - -//// [/user/username/projects/sample1/tests/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -const c = require("../core/index"); -const logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -const mod = require("../core/anotherModule"); -exports.m = mod; - -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1},{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.ts", - "./index.ts" - ], - "latestChangedDtsFile": "./index.d.ts", - "size": 2352 -} - -core/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.ts -*refresh* /user/username/projects/sample1/core/index.ts -*refresh* /user/username/projects/sample1/core/some_decl.d.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/core/anotherModule.ts -(stored at emit) /user/username/projects/sample1/core/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/sample1/core/index.d.ts -*not cached* /user/username/projects/sample1/core/anotherModule.d.ts -*not cached* /user/username/projects/sample1/logic/index.ts -*not cached* /user/username/projects/sample1/tests/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts -(stored at emit) /user/username/projects/sample1/tests/index.ts - - -Edit [0]:: Write logic -//// [/user/username/projects/sample1/logic/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "skipDefaultLibCheck": true, - }, - "references": [ - { "path": "../core" }, - ], -} - - -Output:: -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -[HH:MM:SS AM] Found 0 errors. Watching for file changes. - -//// [/user/username/projects/sample1/logic/index.d.ts] *rewrite with same content* -//// [/user/username/projects/sample1/logic/index.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.getSecondsInDay = getSecondsInDay; -const c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -const mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map -//// [/user/username/projects/sample1/logic/index.js.map] *new* -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,MAAY,CAAC,4BAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,oCAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "referencedMap": { - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1879 -} -//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} -//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../core/index.d.ts", - "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../core/anotherModule.d.ts", - "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../logic/index.d.ts", - "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.ts", - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", - "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../core/anotherModule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anotherModule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anotherModule.d.ts", - "../logic/index.d.ts" - ] - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 2038 -} - -logic/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.ts -Signatures:: -(stored at emit) /user/username/projects/sample1/logic/index.ts - -tests/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/sample1/core/index.d.ts -*refresh* /user/username/projects/sample1/core/anotherModule.d.ts -*refresh* /user/username/projects/sample1/logic/index.d.ts -*refresh* /user/username/projects/sample1/tests/index.ts -Signatures:: -(used version) /user/username/projects/sample1/logic/index.d.ts -(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js index 52684620e4..e69de29bb2 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js @@ -1,40 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/first.ts] *new* -export const a = 1 -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true, - "noEmit": true - } -} - -tsgo -p /home/src/workspaces/project/tsconfig.json -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js index 2a5fd6fe78..e69de29bb2 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js @@ -1,40 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/first.ts] *new* -export const a = 1 -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true, - "noEmit": true - } -} - -tsgo -p /home/src/workspaces/project -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - diff --git a/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js b/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js index b7c372258f..e69de29bb2 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js @@ -1,31 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: - -tsgo --moduleResolution nodenext first.ts --module nodenext --target esnext --moduleDetection auto --jsx react --newLine crlf -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - diff --git a/testdata/baselines/reference/tsc/composite/converting-to-modules.js b/testdata/baselines/reference/tsc/composite/converting-to-modules.js deleted file mode 100644 index a7d6e9c3f5..0000000000 --- a/testdata/baselines/reference/tsc/composite/converting-to-modules.js +++ /dev/null @@ -1,172 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/main.ts] *new* -const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "none", - "composite": true, - }, -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/main.d.ts] *new* -declare const x = 10; - -//// [/home/src/workspaces/project/src/main.js] *new* -const x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./src/main.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true - }, - "latestChangedDtsFile": "./src/main.d.ts", - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/main.ts - - -Edit [0]:: convert to modules -//// [/home/src/workspaces/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "module": "es2015", - "composite": true, - }, -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/main.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"module":5},"latestChangedDtsFile":"./src/main.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "module": 5 - }, - "latestChangedDtsFile": "./src/main.d.ts", - "size": 1124 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-error-on-jsx-element.js b/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-error-on-jsx-element.js deleted file mode 100644 index 3dfafa66b8..0000000000 --- a/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-error-on-jsx-element.js +++ /dev/null @@ -1,162 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/node_modules/solid-js/jsx-runtime.d.ts] *new* -export namespace JSX { - type IntrinsicElements = { div: {}; }; -} -//// [/home/src/projects/project/node_modules/solid-js/package.json] *new* -{ - "name": "solid-js", - "type": "module" -} -//// [/home/src/projects/project/src/main.tsx] *new* -export default

; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "module": "Node16", - "jsx": "react-jsx", - "jsxImportSource": "solid-js", - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/main.tsx:1:16 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("solid-js/jsx-runtime")' call instead. - To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`. - -1 export default
; -   ~~~~~~ - - -Found 1 error in src/main.tsx:1 - -//// [/home/src/projects/project/src/main.d.ts] *new* -declare const _default: any; -export default _default; - -//// [/home/src/projects/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const jsx_runtime_1 = require("solid-js/jsx-runtime"); -exports.default = jsx_runtime_1.jsx("div", {}); - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.es2022.full.d.ts","./node_modules/solid-js/jsx-runtime.d.ts","./src/main.tsx"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}","impliedNodeFormat":99},{"version":"5af15af7f9b4d97300f8dcfb2bf5b7c4-export default
;","signature":"ca37c00363f904fe93e299b145186400-declare const _default: any;\nexport default _default;\n","impliedNodeFormat":1}],"options":{"composite":true,"jsx":4,"jsxImportSource":"solid-js","module":100},"semanticDiagnosticsPerFile":[[3,[{"pos":15,"end":21,"code":1479,"category":1,"message":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"solid-js/jsx-runtime\")' call instead.","messageChain":[{"pos":15,"end":21,"code":1483,"category":3,"message":"To convert this file to an ECMAScript module, create a local package.json file with `{ \"type\": \"module\" }`."}]}]]],"latestChangedDtsFile":"./src/main.d.ts"} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/main.tsx" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./node_modules/solid-js/jsx-runtime.d.ts", - "./src/main.tsx" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/solid-js/jsx-runtime.d.ts", - "version": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", - "signature": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", - "impliedNodeFormat": "ESNext", - "original": { - "version": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./src/main.tsx", - "version": "5af15af7f9b4d97300f8dcfb2bf5b7c4-export default
;", - "signature": "ca37c00363f904fe93e299b145186400-declare const _default: any;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5af15af7f9b4d97300f8dcfb2bf5b7c4-export default
;", - "signature": "ca37c00363f904fe93e299b145186400-declare const _default: any;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "jsx": 4, - "jsxImportSource": "solid-js", - "module": 100 - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/main.tsx", - [ - { - "pos": 15, - "end": 21, - "code": 1479, - "category": 1, - "message": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"solid-js/jsx-runtime\")' call instead.", - "messageChain": [ - { - "pos": 15, - "end": 21, - "code": 1483, - "category": 3, - "message": "To convert this file to an ECMAScript module, create a local package.json file with `{ \"type\": \"module\" }`." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./src/main.d.ts", - "size": 1905 -} -//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /home/src/projects/project/node_modules/solid-js/jsx-runtime.d.ts -*refresh* /home/src/projects/project/src/main.tsx -Signatures:: -(stored at emit) /home/src/projects/project/src/main.tsx diff --git a/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-no-crash-no-jsx-element.js b/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-no-crash-no-jsx-element.js deleted file mode 100644 index 1b88deb5da..0000000000 --- a/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-no-crash-no-jsx-element.js +++ /dev/null @@ -1,129 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/node_modules/solid-js/jsx-runtime.d.ts] *new* -export namespace JSX { - type IntrinsicElements = { div: {}; }; -} -//// [/home/src/projects/project/node_modules/solid-js/package.json] *new* -{ - "name": "solid-js", - "type": "module" -} -//// [/home/src/projects/project/src/main.ts] *new* -export default 42; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "module": "Node16", - "jsx": "react-jsx", - "jsxImportSource": "solid-js", - }, -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/src/main.d.ts] *new* -declare const _default: number; -export default _default; - -//// [/home/src/projects/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = 42; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.es2022.full.d.ts","./node_modules/solid-js/jsx-runtime.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}","impliedNodeFormat":99},{"version":"666fdc0c7a7f134c8c14dc85be1ebc28-export default 42;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1}],"options":{"composite":true,"jsx":4,"jsxImportSource":"solid-js","module":100},"latestChangedDtsFile":"./src/main.d.ts"} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/main.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./node_modules/solid-js/jsx-runtime.d.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/solid-js/jsx-runtime.d.ts", - "version": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", - "signature": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", - "impliedNodeFormat": "ESNext", - "original": { - "version": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./src/main.ts", - "version": "666fdc0c7a7f134c8c14dc85be1ebc28-export default 42;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "666fdc0c7a7f134c8c14dc85be1ebc28-export default 42;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "jsx": 4, - "jsxImportSource": "solid-js", - "module": 100 - }, - "latestChangedDtsFile": "./src/main.d.ts", - "size": 1373 -} -//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /home/src/projects/project/node_modules/solid-js/jsx-runtime.d.ts -*refresh* /home/src/projects/project/src/main.ts -Signatures:: -(stored at emit) /home/src/projects/project/src/main.ts diff --git a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js deleted file mode 100644 index 047a319921..0000000000 --- a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js +++ /dev/null @@ -1,51 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "composite": true, - "tsBuildInfoFile": "tsconfig.json.tsbuildinfo", - }, - "include": [ - "src/**/*.ts", - ], -} - -tsgo --composite false --tsBuildInfoFile null -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - - diff --git a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js deleted file mode 100644 index 4c32e8b1cb..0000000000 --- a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js +++ /dev/null @@ -1,51 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "composite": true, - "tsBuildInfoFile": "tsconfig.json.tsbuildinfo", - }, - "include": [ - "src/**/*.ts", - ], -} - -tsgo --composite false -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - - diff --git a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js deleted file mode 100644 index 70d9612868..0000000000 --- a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js +++ /dev/null @@ -1,50 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "composite": true, - }, - "include": [ - "src/**/*.ts", - ], -} - -tsgo --composite false -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - - diff --git a/testdata/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js b/testdata/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js deleted file mode 100644 index 285f20672a..0000000000 --- a/testdata/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js +++ /dev/null @@ -1,109 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "composite": true, - }, - "include": [ - "src/**/*.ts", - ], -} - -tsgo --composite null -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/main.d.ts] *new* -export declare const x = 10; - -//// [/home/src/workspaces/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"28e8748a7acd58f4f59388926e914f86-export const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"module":1,"target":1},"latestChangedDtsFile":"./src/main.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "module": 1, - "target": 1 - }, - "latestChangedDtsFile": "./src/main.d.ts", - "size": 1123 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/main.ts diff --git a/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors-with-incremental.js b/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors-with-incremental.js deleted file mode 100644 index 4cd9f7b922..0000000000 --- a/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors-with-incremental.js +++ /dev/null @@ -1,255 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/index.ts] *new* -import ky from 'ky'; -export const api = ky.extend({}); -//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new* -type KyInstance = { - extend(options: Record): KyInstance; -} -declare const ky: KyInstance; -export default ky; -//// [/home/src/workspaces/project/node_modules/ky/package.json] *new* -{ - "name": "ky", - "type": "module", - "main": "./distribution/index.js" -} -//// [/home/src/workspaces/project/package.json] *new* -{ - "type": "module" -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "NodeNext", - "moduleResolution": "NodeNext", - "composite": true, - "incremental": true, - "declaration": true, - "skipLibCheck": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --explainFiles --listEmittedFiles -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -TSFILE: /home/src/workspaces/project/index.js -TSFILE: /home/src/workspaces/project/index.d.ts -TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/index.d.ts] *new* -export declare const api: { - extend(options: Record): KyInstance; -}; - -//// [/home/src/workspaces/project/index.js] *new* -import ky from 'ky'; -export const api = ky.extend({}); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","./node_modules/ky/distribution/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;","impliedNodeFormat":99},{"version":"0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});","signature":"5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"composite":true,"declaration":true,"module":199,"skipLibCheck":true,"skipDefaultLibCheck":true},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":34,"end":37,"code":4023,"category":1,"message":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named."}]]],"latestChangedDtsFile":"./index.d.ts","emitSignatures":[[3,"5229c9e2248679a39697053812e5f6bb-export declare const api: {\n extend(options: Record): KyInstance;\n};\n"]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "./node_modules/ky/distribution/index.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/ky/distribution/index.d.ts", - "version": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", - "signature": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", - "impliedNodeFormat": "ESNext", - "original": { - "version": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./index.ts", - "version": "0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});", - "signature": "5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.", - "impliedNodeFormat": "ESNext", - "original": { - "version": "0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});", - "signature": "5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "./node_modules/ky/distribution/index.d.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 199, - "skipLibCheck": true, - "skipDefaultLibCheck": true - }, - "referencedMap": { - "./index.ts": [ - "./node_modules/ky/distribution/index.d.ts" - ] - }, - "emitDiagnosticsPerFile": [ - [ - "./index.ts", - [ - { - "pos": 34, - "end": 37, - "code": 4023, - "category": 1, - "message": "Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named." - } - ] - ] - ], - "latestChangedDtsFile": "./index.d.ts", - "emitSignatures": [ - { - "file": "./index.ts", - "signature": "5229c9e2248679a39697053812e5f6bb-export declare const api: {\n extend(options: Record): KyInstance;\n};\n", - "original": [ - 3, - "5229c9e2248679a39697053812e5f6bb-export declare const api: {\n extend(options: Record): KyInstance;\n};\n" - ] - } - ], - "size": 2171 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: no change - -tsgo --explainFiles --listEmittedFiles -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: build -b - -tsgo -b --explainFiles --listEmittedFiles --v -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors.js b/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors.js deleted file mode 100644 index 8a65be8347..0000000000 --- a/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors.js +++ /dev/null @@ -1,175 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/index.ts] *new* -import ky from 'ky'; -export const api = ky.extend({}); -//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new* -type KyInstance = { - extend(options: Record): KyInstance; -} -declare const ky: KyInstance; -export default ky; -//// [/home/src/workspaces/project/node_modules/ky/package.json] *new* -{ - "name": "ky", - "type": "module", - "main": "./distribution/index.js" -} -//// [/home/src/workspaces/project/package.json] *new* -{ - "type": "module" -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "NodeNext", - "moduleResolution": "NodeNext", - "composite": false, - "incremental": false, - "declaration": true, - "skipLibCheck": true, - "skipDefaultLibCheck": true, - }, -} - -tsgo --explainFiles --listEmittedFiles -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -TSFILE: /home/src/workspaces/project/index.js -TSFILE: /home/src/workspaces/project/index.d.ts -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/index.d.ts] *new* -export declare const api: { - extend(options: Record): KyInstance; -}; - -//// [/home/src/workspaces/project/index.js] *new* -import ky from 'ky'; -export const api = ky.extend({}); - - - - -Edit [0]:: no change - -tsgo --explainFiles --listEmittedFiles -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -TSFILE: /home/src/workspaces/project/index.js -TSFILE: /home/src/workspaces/project/index.d.ts -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - -//// [/home/src/workspaces/project/index.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/index.js] *rewrite with same content* - - - -Edit [1]:: build -b - -tsgo -b --explainFiles --listEmittedFiles --v -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -TSFILE: /home/src/workspaces/project/index.js -TSFILE: /home/src/workspaces/project/index.d.ts -TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo -../../tslibs/TS/Lib/lib.esnext.full.d.ts - Default library for target 'ESNext' -node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'index.ts' - File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" -index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'package.json' has field "type" with value "module" - -Found 1 error in index.ts:2 - -//// [/home/src/workspaces/project/index.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/index.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":["./index.ts"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./index.ts" - ], - "original": "./index.ts" - } - ], - "size": 63 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: diff --git a/testdata/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js b/testdata/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js deleted file mode 100644 index 75149f241c..0000000000 --- a/testdata/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js +++ /dev/null @@ -1,132 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/pkg1/dist/index.d.ts] *new* -export * from './types'; -//// [/user/username/projects/myproject/pkg1/dist/types.d.ts] *new* -export declare type A = { - id: string; -}; -export declare type B = { - id: number; -}; -export declare type IdType = A | B; -export declare class MetadataAccessor { - readonly key: string; - private constructor(); - toString(): string; - static create(key: string): MetadataAccessor; -} -//// [/user/username/projects/myproject/pkg1/package.json] *new* -{ - "name": "@raymondfeng/pkg1", - "version": "1.0.0", - "main": "dist/index.js", - "typings": "dist/index.d.ts" -} -//// [/user/username/projects/myproject/pkg2/dist/index.d.ts] *new* -export * from './types'; -//// [/user/username/projects/myproject/pkg2/dist/types.d.ts] *new* -export {MetadataAccessor} from '@raymondfeng/pkg1'; -//// [/user/username/projects/myproject/pkg2/node_modules/@raymondfeng/pkg1] -> /user/username/projects/myproject/pkg1 *new* -//// [/user/username/projects/myproject/pkg2/package.json] *new* -{ - "name": "@raymondfeng/pkg2", - "version": "1.0.0", - "main": "dist/index.js", - "typings": "dist/index.d.ts" -} -//// [/user/username/projects/myproject/pkg3/node_modules/@raymondfeng/pkg2] -> /user/username/projects/myproject/pkg2 *new* -//// [/user/username/projects/myproject/pkg3/src/index.ts] *new* -export * from './keys'; -//// [/user/username/projects/myproject/pkg3/src/keys.ts] *new* -import {MetadataAccessor} from "@raymondfeng/pkg2"; -export const ADMIN = MetadataAccessor.create('1'); -//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "dist", - "rootDir": "src", - "target": "es5", - "module": "commonjs", - "strict": true, - "esModuleInterop": true, - "declaration": true, - }, -} - -tsgo -p pkg3 --explainFiles -ExitStatus:: Success -Output:: -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -pkg1/dist/types.d.ts - Imported via './types' from file 'pkg1/dist/index.d.ts' -pkg1/dist/index.d.ts - Imported via '@raymondfeng/pkg1' from file 'pkg2/dist/types.d.ts' with packageId '@raymondfeng/pkg1@1.0.0' -pkg2/dist/types.d.ts - Imported via './types' from file 'pkg2/dist/index.d.ts' -pkg2/dist/index.d.ts - Imported via "@raymondfeng/pkg2" from file 'pkg3/src/keys.ts' with packageId '@raymondfeng/pkg2@1.0.0' -pkg3/src/keys.ts - Imported via './keys' from file 'pkg3/src/index.ts' - Matched by default include pattern '**/*' -pkg3/src/index.ts - Matched by default include pattern '**/*' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/pkg3/dist/index.d.ts] *new* -export * from './keys'; - -//// [/user/username/projects/myproject/pkg3/dist/index.js] *new* -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./keys"), exports); - -//// [/user/username/projects/myproject/pkg3/dist/keys.d.ts] *new* -import { MetadataAccessor } from "@raymondfeng/pkg2"; -export declare const ADMIN: MetadataAccessor; - -//// [/user/username/projects/myproject/pkg3/dist/keys.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ADMIN = void 0; -const pkg2_1 = require("@raymondfeng/pkg2"); -exports.ADMIN = pkg2_1.MetadataAccessor.create('1'); - - diff --git a/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js b/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js deleted file mode 100644 index 5cfa0d4d57..0000000000 --- a/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js +++ /dev/null @@ -1,216 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/temp/yarn/data/link/plugin-two] -> /user/username/projects/myproject/plugin-two *new* -//// [/user/username/projects/myproject/plugin-one/index.ts] *new* -import pluginTwo from "plugin-two"; // include this to add reference to symlink -import { actionCreatorFactory } from "typescript-fsa"; // Include version of shared lib -const action = actionCreatorFactory("somekey"); -const featureOne = action<{ route: string }>("feature-one"); -export const actions = { featureOne }; -//// [/user/username/projects/myproject/plugin-one/node_modules/plugin-two] -> /temp/yarn/data/link/plugin-two *new* -//// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] *new* -export interface Action { - type: string; - payload: Payload; -} -export declare type ActionCreator = { - type: string; - (payload: Payload): Action; -} -export interface ActionCreatorFactory { - (type: string): ActionCreator; -} -export declare function actionCreatorFactory(prefix?: string | null): ActionCreatorFactory; -export default actionCreatorFactory; -//// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] *new* -{ - "name": "typescript-fsa", - "version": "3.0.0-beta-2" -} -//// [/user/username/projects/myproject/plugin-one/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "traceResolution": true, - }, -} -//// [/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts] *new* -declare const _default: { - features: { - featureOne: { - actions: { - featureOne: { - (payload: { - name: string; - order: number; - }, meta?: { - [key: string]: any; - }): import("typescript-fsa").Action<{ - name: string; - order: number; - }>; - }; - }; - path: string; - }; - }; -}; -export default _default; -//// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts] *new* -export interface Action { - type: string; - payload: Payload; -} -export declare type ActionCreator = { - type: string; - (payload: Payload): Action; -} -export interface ActionCreatorFactory { - (type: string): ActionCreator; -} -export declare function actionCreatorFactory(prefix?: string | null): ActionCreatorFactory; -export default actionCreatorFactory; -//// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json] *new* -{ - "name": "typescript-fsa", - "version": "3.0.0-beta-2" -} -//// [/user/username/projects/myproject/plugin-two/package.json] *new* -{ - "name": "plugin-two", - "version": "0.1.3", - "main": "dist/commonjs/index.js" -} - -tsgo -p plugin-one --explainFiles -ExitStatus:: Success -Output:: -======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'plugin-two' 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 '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json'. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.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 'dist/commonjs/index.js' that references '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.js'. -File name '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.js' has a '.js' extension - stripping it. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.tsx' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.d.ts', result '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts'. -======== Module name 'plugin-two' was successfully resolved to '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts' with Package ID 'plugin-two@0.1.3'. ======== -======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'typescript-fsa' 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 '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.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' does not have a 'main' field. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.tsx' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -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@3.0.0-beta-2'. ======== -======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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'. -Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/user/username/projects/myproject/plugin-two/dist/commonjs/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/plugin-two/dist/commonjs/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/plugin-two/dist/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/plugin-two/dist/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.tsx' does not exist. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.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' does not have a 'main' field. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.ts' does not exist. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.tsx' does not exist. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -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@3.0.0-beta-2'. ======== -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -plugin-two/node_modules/typescript-fsa/index.d.ts - Imported via "typescript-fsa" from file 'plugin-two/dist/commonjs/index.d.ts' with packageId 'typescript-fsa@3.0.0-beta-2' -plugin-two/dist/commonjs/index.d.ts - Imported via "plugin-two" from file 'plugin-one/index.ts' with packageId 'plugin-two@0.1.3' -plugin-one/node_modules/typescript-fsa/index.d.ts - Imported via "typescript-fsa" from file 'plugin-one/index.ts' with packageId 'typescript-fsa@3.0.0-beta-2' -plugin-one/index.ts - Matched by default include pattern '**/*' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/plugin-one/index.d.ts] *new* -export declare const actions: { - featureOne: import("typescript-fsa").ActionCreator<{ - route: string; - }>; -}; - -//// [/user/username/projects/myproject/plugin-one/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.actions = void 0; -const typescript_fsa_1 = require("typescript-fsa"); // Include version of shared lib -const action = (0, typescript_fsa_1.actionCreatorFactory)("somekey"); -const featureOne = action("feature-one"); -exports.actions = { featureOne }; - - diff --git a/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js b/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js deleted file mode 100644 index 83b1575d13..0000000000 --- a/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js +++ /dev/null @@ -1,212 +0,0 @@ -currentDirectory::/user/username/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/myproject/plugin-one/action.ts] *new* -import { actionCreatorFactory } from "typescript-fsa"; // Include version of shared lib -const action = actionCreatorFactory("somekey"); -const featureOne = action<{ route: string }>("feature-one"); -export const actions = { featureOne }; -//// [/user/username/projects/myproject/plugin-one/index.ts] *new* -import pluginTwo from "plugin-two"; // include this to add reference to symlink -//// [/user/username/projects/myproject/plugin-one/node_modules/plugin-two] -> /user/username/projects/myproject/plugin-two *new* -//// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] *new* -export interface Action { - type: string; - payload: Payload; -} -export declare type ActionCreator = { - type: string; - (payload: Payload): Action; -} -export interface ActionCreatorFactory { - (type: string): ActionCreator; -} -export declare function actionCreatorFactory(prefix?: string | null): ActionCreatorFactory; -export default actionCreatorFactory; -//// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] *new* -{ - "name": "typescript-fsa", - "version": "3.0.0-beta-2" -} -//// [/user/username/projects/myproject/plugin-one/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "traceResolution": true, - }, -} -//// [/user/username/projects/myproject/plugin-two/index.d.ts] *new* -declare const _default: { - features: { - featureOne: { - actions: { - featureOne: { - (payload: { - name: string; - order: number; - }, meta?: { - [key: string]: any; - }): import("typescript-fsa").Action<{ - name: string; - order: number; - }>; - }; - }; - path: string; - }; - }; -}; -export default _default; -//// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts] *new* -export interface Action { - type: string; - payload: Payload; -} -export declare type ActionCreator = { - type: string; - (payload: Payload): Action; -} -export interface ActionCreatorFactory { - (type: string): ActionCreator; -} -export declare function actionCreatorFactory(prefix?: string | null): ActionCreatorFactory; -export default actionCreatorFactory; -//// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json] *new* -{ - "name": "typescript-fsa", - "version": "3.0.0-beta-2" -} - -tsgo -p plugin-one --explainFiles -ExitStatus:: Success -Output:: -======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/action.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'typescript-fsa' 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 '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.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' does not have a 'main' field. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.tsx' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -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@3.0.0-beta-2'. ======== -======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.ts' does not exist. -File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.tsx' does not exist. -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'. ======== -======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-two/index.d.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -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. -Loading module 'typescript-fsa' 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 '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.tsx' does not exist. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.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' does not have a 'main' field. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.ts' does not exist. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.tsx' does not exist. -File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -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@3.0.0-beta-2'. ======== -../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -plugin-one/node_modules/typescript-fsa/index.d.ts - Imported via "typescript-fsa" from file 'plugin-one/action.ts' with packageId 'typescript-fsa@3.0.0-beta-2' -plugin-one/action.ts - Matched by default include pattern '**/*' -plugin-two/node_modules/typescript-fsa/index.d.ts - Imported via "typescript-fsa" from file 'plugin-two/index.d.ts' with packageId 'typescript-fsa@3.0.0-beta-2' -plugin-two/index.d.ts - Imported via "plugin-two" from file 'plugin-one/index.ts' -plugin-one/index.ts - Matched by default include pattern '**/*' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/myproject/plugin-one/action.d.ts] *new* -export declare const actions: { - featureOne: import("typescript-fsa").ActionCreator<{ - route: string; - }>; -}; - -//// [/user/username/projects/myproject/plugin-one/action.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.actions = void 0; -const typescript_fsa_1 = require("typescript-fsa"); // Include version of shared lib -const action = (0, typescript_fsa_1.actionCreatorFactory)("somekey"); -const featureOne = action("feature-one"); -exports.actions = { featureOne }; - -//// [/user/username/projects/myproject/plugin-one/index.d.ts] *new* -export {}; - -//// [/user/username/projects/myproject/plugin-one/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - - diff --git a/testdata/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js b/testdata/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js deleted file mode 100644 index 6b382550cf..0000000000 --- a/testdata/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js +++ /dev/null @@ -1,129 +0,0 @@ -currentDirectory::D:/Work/pkg1 -useCaseSensitiveFileNames::false -Input:: -//// [D:/Work/pkg1/package.json] *new* -{ - "name": "ts-specifier-bug", - "version": "1.0.0", - "main": "index.js" -} -//// [D:/Work/pkg1/src/main.ts] *new* - import { PartialType } from './utils'; - - class Common {} - - export class Sub extends PartialType(Common) { - id: string; - } -//// [D:/Work/pkg1/src/utils/index.ts] *new* - import { MyType, MyReturnType } from './type-helpers'; - - export function PartialType(classRef: MyType) { - abstract class PartialClassType { - constructor() {} - } - - return PartialClassType as MyReturnType; - } -//// [D:/Work/pkg1/src/utils/type-helpers.ts] *new* - export type MyReturnType = { - new (...args: any[]): any; - }; - - export interface MyType extends Function { - new (...args: any[]): T; - } -//// [D:/Work/pkg1/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "target": "es2017", - "outDir": "./dist", - }, - "include": ["src"], -} - -tsgo -p D:\Work\pkg1 --explainFiles -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/utils/index.ts:8:27 - error TS2352: Conversion of type 'typeof PartialClassType' to type 'MyReturnType' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. - Cannot assign an abstract constructor type to a non-abstract constructor type. - -8 return PartialClassType as MyReturnType; -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -../../home/src/tslibs/TS/Lib/lib.es2017.full.d.ts - Default library for target 'ES2017' -src/utils/type-helpers.ts - Imported via './type-helpers' from file 'src/utils/index.ts' - Matched by include pattern 'src' in 'tsconfig.json' -src/utils/index.ts - Imported via './utils' from file 'src/main.ts' - Matched by include pattern 'src' in 'tsconfig.json' -src/main.ts - Matched by include pattern 'src' in 'tsconfig.json' - -Found 1 error in src/utils/index.ts:8 - -//// [D:/Work/pkg1/dist/main.d.ts] *new* -declare const Sub_base: import("./utils/type-helpers").MyReturnType; -export declare class Sub extends Sub_base { - id: string; -} -export {}; - -//// [D:/Work/pkg1/dist/main.js] *new* -import { PartialType } from './utils'; -class Common { -} -export class Sub extends PartialType(Common) { - id; -} - -//// [D:/Work/pkg1/dist/utils/index.d.ts] *new* -import { MyType, MyReturnType } from './type-helpers'; -export declare function PartialType(classRef: MyType): MyReturnType; - -//// [D:/Work/pkg1/dist/utils/index.js] *new* -export function PartialType(classRef) { - class PartialClassType { - constructor() { } - } - return PartialClassType; -} - -//// [D:/Work/pkg1/dist/utils/type-helpers.d.ts] *new* -export type MyReturnType = { - new (...args: any[]): any; -}; -export interface MyType extends Function { - new (...args: any[]): T; -} - -//// [D:/Work/pkg1/dist/utils/type-helpers.js] *new* -export {}; - -//// [D:/home/src/tslibs/TS/Lib/lib.es2017.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js b/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js deleted file mode 100644 index 4808a12b3a..0000000000 --- a/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js +++ /dev/null @@ -1,64 +0,0 @@ -currentDirectory::/home/src/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/configs/first/tsconfig.json] *new* -{ - "extends": "../second/tsconfig.json", - "include": ["${configDir}/src"], - "compilerOptions": { - "typeRoots": ["root1", "${configDir}/root2", "root3"], - "types": [], - }, -} -//// [/home/src/projects/configs/second/tsconfig.json] *new* -{ - "files": ["${configDir}/main.ts"], - "compilerOptions": { - "declarationDir": "${configDir}/decls", - "paths": { - "@myscope/*": ["${configDir}/types/*"], - }, - }, - "watchOptions": { - "excludeFiles": ["${configDir}/main.ts"], - }, -} -//// [/home/src/projects/myproject/main.ts] *new* -// some comment -export const y = 10; -import { x } from "@myscope/sometype"; -//// [/home/src/projects/myproject/tsconfig.json] *new* -{ - "extends": "../configs/first/tsconfig.json", - "compilerOptions": { - "declaration": true, - "outDir": "outDir", - "traceResolution": true, - }, -} -//// [/home/src/projects/myproject/types/sometype.ts] *new* -export const x = 10; - -tsgo --showConfig -ExitStatus:: Success -Output:: -{ - "declaration": true, - "declarationDir": "/home/src/projects/myproject/decls", - "outDir": "/home/src/projects/myproject/outDir", - "paths": { - "@myscope/*": [ - "/home/src/projects/myproject/types/*" - ] - }, - "traceResolution": true, - "typeRoots": [ - "/home/src/projects/configs/first/root1", - "/home/src/projects/myproject/root2", - "/home/src/projects/configs/first/root3" - ], - "types": [], - "configFilePath": "/home/src/projects/myproject/tsconfig.json", - "pathsBasePath": "/home/src/projects/configs/second", - "showConfig": true -} diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js deleted file mode 100644 index 09e7618c19..0000000000 --- a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js +++ /dev/null @@ -1,102 +0,0 @@ -currentDirectory::/home/src/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/configs/first/tsconfig.json] *new* -{ - "extends": "../second/tsconfig.json", - "include": ["${configDir}/src"], - "compilerOptions": { - "typeRoots": ["root1", "${configDir}/root2", "root3"], - "types": [], - }, -} -//// [/home/src/projects/configs/second/tsconfig.json] *new* -{ - "files": ["${configDir}/main.ts"], - "compilerOptions": { - "declarationDir": "${configDir}/decls", - "paths": { - "@myscope/*": ["${configDir}/types/*"], - }, - }, - "watchOptions": { - "excludeFiles": ["${configDir}/main.ts"], - }, -} -//// [/home/src/projects/myproject/main.ts] *new* -// some comment -export const y = 10; -import { x } from "@myscope/sometype"; -//// [/home/src/projects/myproject/tsconfig.json] *new* -{ - "extends": "../configs/first/tsconfig.json", - "compilerOptions": { - "declaration": true, - "outDir": "outDir", - "traceResolution": true, - }, -} -//// [/home/src/projects/myproject/types/sometype.ts] *new* -export const x = 10; - -tsgo --explainFiles --outDir ${configDir}/outDir -ExitStatus:: Success -Output:: -======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. -Module name '@myscope/sometype', matched pattern '@myscope/*'. -Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. -Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. -======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -types/sometype.ts - Imported via "@myscope/sometype" from file 'main.ts' -main.ts - Part of 'files' list in tsconfig.json -//// [/home/src/projects/myproject/${configDir}/outDir/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -// some comment -exports.y = 10; - -//// [/home/src/projects/myproject/${configDir}/outDir/types/sometype.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/projects/myproject/decls/main.d.ts] *new* -export declare const y = 10; - -//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *new* -export declare const x = 10; - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - diff --git a/testdata/baselines/reference/tsc/extends/configDir-template.js b/testdata/baselines/reference/tsc/extends/configDir-template.js deleted file mode 100644 index 1d74d5f546..0000000000 --- a/testdata/baselines/reference/tsc/extends/configDir-template.js +++ /dev/null @@ -1,102 +0,0 @@ -currentDirectory::/home/src/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/configs/first/tsconfig.json] *new* -{ - "extends": "../second/tsconfig.json", - "include": ["${configDir}/src"], - "compilerOptions": { - "typeRoots": ["root1", "${configDir}/root2", "root3"], - "types": [], - }, -} -//// [/home/src/projects/configs/second/tsconfig.json] *new* -{ - "files": ["${configDir}/main.ts"], - "compilerOptions": { - "declarationDir": "${configDir}/decls", - "paths": { - "@myscope/*": ["${configDir}/types/*"], - }, - }, - "watchOptions": { - "excludeFiles": ["${configDir}/main.ts"], - }, -} -//// [/home/src/projects/myproject/main.ts] *new* -// some comment -export const y = 10; -import { x } from "@myscope/sometype"; -//// [/home/src/projects/myproject/tsconfig.json] *new* -{ - "extends": "../configs/first/tsconfig.json", - "compilerOptions": { - "declaration": true, - "outDir": "outDir", - "traceResolution": true, - }, -} -//// [/home/src/projects/myproject/types/sometype.ts] *new* -export const x = 10; - -tsgo --explainFiles -ExitStatus:: Success -Output:: -======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'Bundler'. -Resolving in CJS mode with conditions 'require', 'types'. -'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. -Module name '@myscope/sometype', matched pattern '@myscope/*'. -Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. -Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. -======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -types/sometype.ts - Imported via "@myscope/sometype" from file 'main.ts' -main.ts - Part of 'files' list in tsconfig.json -//// [/home/src/projects/myproject/decls/main.d.ts] *new* -export declare const y = 10; - -//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *new* -export declare const x = 10; - -//// [/home/src/projects/myproject/outDir/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = void 0; -// some comment -exports.y = 10; - -//// [/home/src/projects/myproject/outDir/types/sometype.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - diff --git a/testdata/baselines/reference/tsc/extends/resolves-the-symlink-path.js b/testdata/baselines/reference/tsc/extends/resolves-the-symlink-path.js deleted file mode 100644 index 05b91aca0f..0000000000 --- a/testdata/baselines/reference/tsc/extends/resolves-the-symlink-path.js +++ /dev/null @@ -1,114 +0,0 @@ -currentDirectory::/users/user/projects/myproject -useCaseSensitiveFileNames::true -Input:: -//// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true } -} -//// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] *new* -{ - "extends": "@something/tsconfig-base/tsconfig.json", - "compilerOptions": { - "removeComments": true - } -} -//// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] -> /users/user/projects/myconfigs/node_modules/@something/tsconfig-node *new* -//// [/users/user/projects/myproject/src/index.ts] *new* -// some comment -export const x = 10; -//// [/users/user/projects/myproject/src/tsconfig.json] *new* -{ - "extends": "@something/tsconfig-node/tsconfig.json" -} - -tsgo -p src --extendedDiagnostics -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/users/user/projects/myproject/src/index.d.ts] *new* -export declare const x = 10; - -//// [/users/user/projects/myproject/src/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"removeComments":true},"latestChangedDtsFile":"./index.d.ts"} -//// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.ts", - "version": "03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "removeComments": true - }, - "latestChangedDtsFile": "./index.d.ts", - "size": 1134 -} - -src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /users/user/projects/myproject/src/index.ts -Signatures:: -(stored at emit) /users/user/projects/myproject/src/index.ts diff --git a/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js b/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js deleted file mode 100644 index 6733ef2ba7..0000000000 --- a/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js +++ /dev/null @@ -1,479 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -type ReturnType any> = T extends (...args: any) => infer R ? R : any; -type InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any; -//// [/home/src/workspaces/project/MessageablePerson.ts] *new* -const Messageable = () => { - return class MessageableClass { - public message = 'hello'; - } -}; -const wrapper = () => Messageable(); -type MessageablePerson = InstanceType>; -export default MessageablePerson; -//// [/home/src/workspaces/project/main.ts] *new* -import MessageablePerson from './MessageablePerson.js'; -function logMessage( person: MessageablePerson ) { - console.log( person.message ); -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "esnext", - "declaration": true - } -} - -tsgo --incremental -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/MessageablePerson.d.ts] *new* -declare const wrapper: () => { - new (): { - message: string; - }; -}; -type MessageablePerson = InstanceType>; -export default MessageablePerson; - -//// [/home/src/workspaces/project/MessageablePerson.js] *new* -const Messageable = () => { - return class MessageableClass { - message = 'hello'; - }; -}; -const wrapper = () => Messageable(); -export {}; - -//// [/home/src/workspaces/project/main.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/main.js] *new* -function logMessage(person) { - console.log(person.message); -} -export {}; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"module":99},"referencedMap":[[3,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./MessageablePerson.ts", - "./main.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./MessageablePerson.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./MessageablePerson.ts", - "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./MessageablePerson.ts" - ] - ], - "options": { - "declaration": true, - "module": 99 - }, - "referencedMap": { - "./main.ts": [ - "./MessageablePerson.ts" - ] - }, - "size": 2034 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/MessageablePerson.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/MessageablePerson.ts -(stored at emit) /home/src/workspaces/project/main.ts - - -Edit [0]:: no change - -tsgo --incremental -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: modify public to protected -//// [/home/src/workspaces/project/MessageablePerson.ts] *modified* -const Messageable = () => { - return class MessageableClass { - protected message = 'hello'; - } -}; -const wrapper = () => Messageable(); -type MessageablePerson = InstanceType>; -export default MessageablePerson; - -tsgo --incremental -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -MessageablePerson.ts:6:7 - error TS4094: Property 'message' of exported anonymous class type may not be private or protected. - -6 const wrapper = () => Messageable(); -   ~~~~~~~ - - MessageablePerson.ts:6:7 - Add a type annotation to the variable wrapper. - 6 const wrapper = () => Messageable(); -    ~~~~~~~ - -main.ts:3:25 - error TS2445: Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses. - -3 console.log( person.message ); -   ~~~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 MessageablePerson.ts:6 - 1 main.ts:3 - -//// [/home/src/workspaces/project/MessageablePerson.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/MessageablePerson.js] *rewrite with same content* -//// [/home/src/workspaces/project/main.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/main.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"module":99},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":131,"end":138,"code":2445,"category":1,"message":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses."}]]],"emitDiagnosticsPerFile":[[2,[{"pos":116,"end":123,"code":4094,"category":1,"message":"Property 'message' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":116,"end":123,"code":9027,"category":1,"message":"Add a type annotation to the variable wrapper."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./MessageablePerson.ts", - "./main.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./MessageablePerson.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./MessageablePerson.ts", - "version": "fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./MessageablePerson.ts" - ] - ], - "options": { - "declaration": true, - "module": 99 - }, - "referencedMap": { - "./main.ts": [ - "./MessageablePerson.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./main.ts", - [ - { - "pos": 131, - "end": 138, - "code": 2445, - "category": 1, - "message": "Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses." - } - ] - ] - ], - "emitDiagnosticsPerFile": [ - [ - "./MessageablePerson.ts", - [ - { - "pos": 116, - "end": 123, - "code": 4094, - "category": 1, - "message": "Property 'message' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 116, - "end": 123, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable wrapper." - } - ] - } - ] - ] - ], - "size": 2717 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/MessageablePerson.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/MessageablePerson.ts -(computed .d.ts) /home/src/workspaces/project/main.ts - - -Edit [2]:: no change - -tsgo --incremental -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -MessageablePerson.ts:6:7 - error TS4094: Property 'message' of exported anonymous class type may not be private or protected. - -6 const wrapper = () => Messageable(); -   ~~~~~~~ - - MessageablePerson.ts:6:7 - Add a type annotation to the variable wrapper. - 6 const wrapper = () => Messageable(); -    ~~~~~~~ - -main.ts:3:25 - error TS2445: Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses. - -3 console.log( person.message ); -   ~~~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 MessageablePerson.ts:6 - 1 main.ts:3 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: modify protected to public -//// [/home/src/workspaces/project/MessageablePerson.ts] *modified* -const Messageable = () => { - return class MessageableClass { - public message = 'hello'; - } -}; -const wrapper = () => Messageable(); -type MessageablePerson = InstanceType>; -export default MessageablePerson; - -tsgo --incremental -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/MessageablePerson.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/MessageablePerson.js] *rewrite with same content* -//// [/home/src/workspaces/project/main.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/main.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"module":99},"referencedMap":[[3,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./MessageablePerson.ts", - "./main.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./MessageablePerson.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./MessageablePerson.ts", - "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./MessageablePerson.ts" - ] - ], - "options": { - "declaration": true, - "module": 99 - }, - "referencedMap": { - "./main.ts": [ - "./MessageablePerson.ts" - ] - }, - "size": 2034 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/MessageablePerson.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/MessageablePerson.ts -(computed .d.ts) /home/src/workspaces/project/main.ts - - -Edit [4]:: no change - -tsgo --incremental -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js b/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js deleted file mode 100644 index 5fb23344b4..0000000000 --- a/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js +++ /dev/null @@ -1,398 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -type ReturnType any> = T extends (...args: any) => infer R ? R : any; -type InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any; -//// [/home/src/workspaces/project/MessageablePerson.ts] *new* -const Messageable = () => { - return class MessageableClass { - public message = 'hello'; - } -}; -const wrapper = () => Messageable(); -type MessageablePerson = InstanceType>; -export default MessageablePerson; -//// [/home/src/workspaces/project/main.ts] *new* -import MessageablePerson from './MessageablePerson.js'; -function logMessage( person: MessageablePerson ) { - console.log( person.message ); -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "esnext" - } -} - -tsgo --incremental -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/MessageablePerson.js] *new* -const Messageable = () => { - return class MessageableClass { - message = 'hello'; - }; -}; -const wrapper = () => Messageable(); -export {}; - -//// [/home/src/workspaces/project/main.js] *new* -function logMessage(person) { - console.log(person.message); -} -export {}; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},"500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}"],"fileIdsList":[[2]],"options":{"module":99},"referencedMap":[[3,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./MessageablePerson.ts", - "./main.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./MessageablePerson.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./MessageablePerson.ts", - "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./main.ts", - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./MessageablePerson.ts" - ] - ], - "options": { - "module": 99 - }, - "referencedMap": { - "./main.ts": [ - "./MessageablePerson.ts" - ] - }, - "size": 1651 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/MessageablePerson.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --incremental -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: modify public to protected -//// [/home/src/workspaces/project/MessageablePerson.ts] *modified* -const Messageable = () => { - return class MessageableClass { - protected message = 'hello'; - } -}; -const wrapper = () => Messageable(); -type MessageablePerson = InstanceType>; -export default MessageablePerson; - -tsgo --incremental -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -main.ts:3:25 - error TS2445: Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses. - -3 console.log( person.message ); -   ~~~~~~~ - - -Found 1 error in main.ts:3 - -//// [/home/src/workspaces/project/MessageablePerson.js] *rewrite with same content* -//// [/home/src/workspaces/project/main.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"module":99},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":131,"end":138,"code":2445,"category":1,"message":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./MessageablePerson.ts", - "./main.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./MessageablePerson.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./MessageablePerson.ts", - "version": "fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./MessageablePerson.ts" - ] - ], - "options": { - "module": 99 - }, - "referencedMap": { - "./main.ts": [ - "./MessageablePerson.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./main.ts", - [ - { - "pos": 131, - "end": 138, - "code": 2445, - "category": 1, - "message": "Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses." - } - ] - ] - ], - "size": 2392 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/MessageablePerson.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/MessageablePerson.ts -(computed .d.ts) /home/src/workspaces/project/main.ts - - -Edit [2]:: no change - -tsgo --incremental -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -main.ts:3:25 - error TS2445: Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses. - -3 console.log( person.message ); -   ~~~~~~~ - - -Found 1 error in main.ts:3 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: modify protected to public -//// [/home/src/workspaces/project/MessageablePerson.ts] *modified* -const Messageable = () => { - return class MessageableClass { - public message = 'hello'; - } -}; -const wrapper = () => Messageable(); -type MessageablePerson = InstanceType>; -export default MessageablePerson; - -tsgo --incremental -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/MessageablePerson.js] *rewrite with same content* -//// [/home/src/workspaces/project/main.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"module":99},"referencedMap":[[3,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./MessageablePerson.ts", - "./main.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./MessageablePerson.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./MessageablePerson.ts", - "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./MessageablePerson.ts" - ] - ], - "options": { - "module": 99 - }, - "referencedMap": { - "./main.ts": [ - "./MessageablePerson.ts" - ] - }, - "size": 2015 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/MessageablePerson.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/MessageablePerson.ts -(computed .d.ts) /home/src/workspaces/project/main.ts - - -Edit [4]:: no change - -tsgo --incremental -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js b/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js deleted file mode 100644 index 14d135d72d..0000000000 --- a/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js +++ /dev/null @@ -1,340 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/class1.ts] *new* -const a: MagicNumber = 1; -console.log(a); -//// [/home/src/workspaces/project/constants.ts] *new* -export default 1; -//// [/home/src/workspaces/project/reexport.ts] *new* -export { default as ConstantNumber } from "./constants" -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} -//// [/home/src/workspaces/project/types.d.ts] *new* -type MagicNumber = typeof import('./reexport').ConstantNumber - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/class1.d.ts] *new* -declare const a = 1; - -//// [/home/src/workspaces/project/class1.js] *new* -const a = 1; -console.log(a); - -//// [/home/src/workspaces/project/constants.d.ts] *new* -declare const _default: number; -export default _default; - -//// [/home/src/workspaces/project/constants.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = 1; - -//// [/home/src/workspaces/project/reexport.d.ts] *new* -export { default as ConstantNumber } from "./constants"; - -//// [/home/src/workspaces/project/reexport.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ConstantNumber = void 0; -const constants_1 = require("./constants"); -Object.defineProperty(exports, "ConstantNumber", { enumerable: true, get: function () { return constants_1.default; } }); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);","signature":"f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c93bc8f54a24dc311538894cf3d7ac17-export default 1;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1},{"version":"75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"","signature":"3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n","impliedNodeFormat":1},{"version":"d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[4]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./reexport.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./class1.ts", - "./constants.ts", - "./reexport.ts", - "./types.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./class1.ts", - "./constants.ts", - "./reexport.ts", - "./types.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./class1.ts", - "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./constants.ts", - "version": "c93bc8f54a24dc311538894cf3d7ac17-export default 1;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c93bc8f54a24dc311538894cf3d7ac17-export default 1;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./reexport.ts", - "version": "75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"", - "signature": "3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"", - "signature": "3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./types.d.ts", - "version": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", - "signature": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./constants.ts" - ], - [ - "./reexport.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./reexport.ts": [ - "./constants.ts" - ], - "./types.d.ts": [ - "./reexport.ts" - ] - }, - "latestChangedDtsFile": "./reexport.d.ts", - "size": 1831 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/class1.ts -*refresh* /home/src/workspaces/project/constants.ts -*refresh* /home/src/workspaces/project/reexport.ts -*refresh* /home/src/workspaces/project/types.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/class1.ts -(stored at emit) /home/src/workspaces/project/constants.ts -(stored at emit) /home/src/workspaces/project/reexport.ts - - -Edit [0]:: Modify imports used in global file -//// [/home/src/workspaces/project/constants.ts] *modified* -export default 2; - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/constants.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = 2; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);","signature":"f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b8fa0b3912c91197fa3ec685cbc93c70-export default 2;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1},{"version":"75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"","signature":"3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n","impliedNodeFormat":1},{"version":"d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[4]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./reexport.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./class1.ts", - "./constants.ts", - "./reexport.ts", - "./types.d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./class1.ts", - "./constants.ts", - "./reexport.ts", - "./types.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./class1.ts", - "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./constants.ts", - "version": "b8fa0b3912c91197fa3ec685cbc93c70-export default 2;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b8fa0b3912c91197fa3ec685cbc93c70-export default 2;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./reexport.ts", - "version": "75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"", - "signature": "3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"", - "signature": "3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./types.d.ts", - "version": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", - "signature": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./constants.ts" - ], - [ - "./reexport.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./reexport.ts": [ - "./constants.ts" - ], - "./types.d.ts": [ - "./reexport.ts" - ] - }, - "latestChangedDtsFile": "./reexport.d.ts", - "size": 1831 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/constants.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/constants.ts - - -Diff:: Currently there is issue with d.ts emit for export default = 1 to widen in dts which is why we are not re-computing errors and results in incorrect error reporting ---- nonIncremental /home/src/workspaces/project/class1.d.ts -+++ incremental /home/src/workspaces/project/class1.d.ts -@@ -1,1 +1,1 @@ --declare const a = 2; -+declare const a = 1; ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,8 +0,0 @@ --class1.ts:1:7 - error TS2322: Type '1' is not assignable to type '2'. -- --1 const a: MagicNumber = 1; --   ~ -- -- --Found 1 error in class1.ts:1 -- \ No newline at end of file diff --git a/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js b/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js deleted file mode 100644 index 87b69c8daf..0000000000 --- a/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js +++ /dev/null @@ -1,288 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/class1.ts] *new* -const a: MagicNumber = 1; -console.log(a); -//// [/home/src/workspaces/project/constants.ts] *new* -export default 1; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} -//// [/home/src/workspaces/project/types.d.ts] *new* -type MagicNumber = typeof import('./constants').default - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/class1.d.ts] *new* -declare const a = 1; - -//// [/home/src/workspaces/project/class1.js] *new* -const a = 1; -console.log(a); - -//// [/home/src/workspaces/project/constants.d.ts] *new* -declare const _default: number; -export default _default; - -//// [/home/src/workspaces/project/constants.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = 1; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);","signature":"f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c93bc8f54a24dc311538894cf3d7ac17-export default 1;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1},{"version":"45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./constants.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./class1.ts", - "./constants.ts", - "./types.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./class1.ts", - "./constants.ts", - "./types.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./class1.ts", - "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./constants.ts", - "version": "c93bc8f54a24dc311538894cf3d7ac17-export default 1;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c93bc8f54a24dc311538894cf3d7ac17-export default 1;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./types.d.ts", - "version": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", - "signature": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./constants.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./types.d.ts": [ - "./constants.ts" - ] - }, - "latestChangedDtsFile": "./constants.d.ts", - "size": 1565 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/class1.ts -*refresh* /home/src/workspaces/project/constants.ts -*refresh* /home/src/workspaces/project/types.d.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/class1.ts -(stored at emit) /home/src/workspaces/project/constants.ts - - -Edit [0]:: Modify imports used in global file -//// [/home/src/workspaces/project/constants.ts] *modified* -export default 2; - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/constants.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = 2; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);","signature":"f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b8fa0b3912c91197fa3ec685cbc93c70-export default 2;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1},{"version":"45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./constants.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./class1.ts", - "./constants.ts", - "./types.d.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./class1.ts", - "./constants.ts", - "./types.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./class1.ts", - "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./constants.ts", - "version": "b8fa0b3912c91197fa3ec685cbc93c70-export default 2;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b8fa0b3912c91197fa3ec685cbc93c70-export default 2;", - "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./types.d.ts", - "version": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", - "signature": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./constants.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./types.d.ts": [ - "./constants.ts" - ] - }, - "latestChangedDtsFile": "./constants.d.ts", - "size": 1565 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/constants.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/constants.ts - - -Diff:: Currently there is issue with d.ts emit for export default = 1 to widen in dts which is why we are not re-computing errors and results in incorrect error reporting ---- nonIncremental /home/src/workspaces/project/class1.d.ts -+++ incremental /home/src/workspaces/project/class1.d.ts -@@ -1,1 +1,1 @@ --declare const a = 2; -+declare const a = 1; ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,8 +0,0 @@ --class1.ts:1:7 - error TS2322: Type '1' is not assignable to type '2'. -- --1 const a: MagicNumber = 1; --   ~ -- -- --Found 1 error in class1.ts:1 -- \ No newline at end of file diff --git a/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js b/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js deleted file mode 100644 index abba6fc1fe..0000000000 --- a/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js +++ /dev/null @@ -1,604 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -import {A} from "./c" -let a = A.ONE -//// [/home/src/workspaces/project/b.d.ts] *new* -export { AWorker as A } from "./worker"; -//// [/home/src/workspaces/project/c.ts] *new* -import {A} from "./b" -let b = A.ONE -export {A} -//// [/home/src/workspaces/project/worker.d.ts] *new* -export const enum AWorker { - ONE = 1 -} - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 1 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"8a851657dbab1650611535d934e0e8a0-export const enum AWorker {\n ONE = 1\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "./worker.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./worker.d.ts", - "version": "8a851657dbab1650611535d934e0e8a0-export const enum AWorker {\n ONE = 1\n}", - "signature": "8a851657dbab1650611535d934e0e8a0-export const enum AWorker {\n ONE = 1\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.d.ts", - "version": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", - "signature": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./worker.d.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./b.d.ts": [ - "./worker.d.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1321 -} -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 1 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/worker.d.ts -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [0]:: change enum value -//// [/home/src/workspaces/project/worker.d.ts] *modified* -export const enum AWorker { - ONE = 2 -} - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 2 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"85732ecf91c49f8d8fff8ae96e3c1c8b-export const enum AWorker {\n ONE = 2\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "./worker.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./worker.d.ts", - "version": "85732ecf91c49f8d8fff8ae96e3c1c8b-export const enum AWorker {\n ONE = 2\n}", - "signature": "85732ecf91c49f8d8fff8ae96e3c1c8b-export const enum AWorker {\n ONE = 2\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.d.ts", - "version": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", - "signature": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./worker.d.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./b.d.ts": [ - "./worker.d.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1321 -} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 2 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/worker.d.ts -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/worker.d.ts -(used version) /home/src/workspaces/project/b.d.ts -(used version) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts - - -Edit [1]:: change enum value again -//// [/home/src/workspaces/project/worker.d.ts] *modified* -export const enum AWorker { - ONE = 3 -} - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 3 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "./worker.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./worker.d.ts", - "version": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", - "signature": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.d.ts", - "version": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", - "signature": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./worker.d.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./b.d.ts": [ - "./worker.d.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1321 -} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 3 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/worker.d.ts -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/worker.d.ts -(used version) /home/src/workspaces/project/b.d.ts -(used version) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts - - -Edit [2]:: something else changes in b.d.ts -//// [/home/src/workspaces/project/b.d.ts] *modified* -export { AWorker as A } from "./worker";export const randomThing = 10; - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}","7e628d40719306e63d220f210cef8697-export { AWorker as A } from \"./worker\";export const randomThing = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},{"version":"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "./worker.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./worker.d.ts", - "version": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", - "signature": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.d.ts", - "version": "7e628d40719306e63d220f210cef8697-export { AWorker as A } from \"./worker\";export const randomThing = 10;", - "signature": "7e628d40719306e63d220f210cef8697-export { AWorker as A } from \"./worker\";export const randomThing = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./worker.d.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./b.d.ts": [ - "./worker.d.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1570 -} -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [3]:: something else changes in b.d.ts again -//// [/home/src/workspaces/project/b.d.ts] *modified* -export { AWorker as A } from "./worker";export const randomThing = 10;export const randomThing2 = 10; - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}","85de628566e341d0050fe40f7319973e-export { AWorker as A } from \"./worker\";export const randomThing = 10;export const randomThing2 = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.d.ts", - "./worker.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./worker.d.ts", - "version": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", - "signature": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.d.ts", - "version": "85de628566e341d0050fe40f7319973e-export { AWorker as A } from \"./worker\";export const randomThing = 10;export const randomThing2 = 10;", - "signature": "85de628566e341d0050fe40f7319973e-export { AWorker as A } from \"./worker\";export const randomThing = 10;export const randomThing2 = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./worker.d.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./b.d.ts": [ - "./worker.d.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1507 -} -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts diff --git a/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js b/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js deleted file mode 100644 index 03688a899d..0000000000 --- a/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js +++ /dev/null @@ -1,556 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -import {A} from "./c" -let a = A.ONE -//// [/home/src/workspaces/project/b.d.ts] *new* -export const enum AWorker { - ONE = 1 -} -export { AWorker as A }; -//// [/home/src/workspaces/project/c.ts] *new* -import {A} from "./b" -let b = A.ONE -export {A} -//// [/home/src/workspaces/project/worker.d.ts] *new* -export const enum AWorker { - ONE = 1 -} - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 1 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ea072a4c56b3b914bbdded014050bb9b-export const enum AWorker {\n ONE = 1\n}\nexport { AWorker as A };","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "ea072a4c56b3b914bbdded014050bb9b-export const enum AWorker {\n ONE = 1\n}\nexport { AWorker as A };", - "signature": "ea072a4c56b3b914bbdded014050bb9b-export const enum AWorker {\n ONE = 1\n}\nexport { AWorker as A };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1243 -} -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 1 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [0]:: change enum value -//// [/home/src/workspaces/project/b.d.ts] *modified* -export const enum AWorker { - ONE = 2 -} -export { AWorker as A }; - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 2 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ec710e331e7d6432e994b69e21aae83c-export const enum AWorker {\n ONE = 2\n}\nexport { AWorker as A };",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},{"version":"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "ec710e331e7d6432e994b69e21aae83c-export const enum AWorker {\n ONE = 2\n}\nexport { AWorker as A };", - "signature": "ec710e331e7d6432e994b69e21aae83c-export const enum AWorker {\n ONE = 2\n}\nexport { AWorker as A };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1462 -} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 2 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [1]:: change enum value again -//// [/home/src/workspaces/project/b.d.ts] *modified* -export const enum AWorker { - ONE = 3 -} -export { AWorker as A }; - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 3 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a65f34f1792fbedf7b83c3bf4a12fc1d-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "a65f34f1792fbedf7b83c3bf4a12fc1d-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };", - "signature": "a65f34f1792fbedf7b83c3bf4a12fc1d-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1368 -} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 3 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts - - -Edit [2]:: something else changes in b.d.ts -//// [/home/src/workspaces/project/b.d.ts] *modified* -export const enum AWorker { - ONE = 3 -} -export { AWorker as A };export const randomThing = 10; - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"842b68cd3ee2dcec7d1df8517668c731-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "842b68cd3ee2dcec7d1df8517668c731-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;", - "signature": "842b68cd3ee2dcec7d1df8517668c731-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1398 -} -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts - - -Edit [3]:: something else changes in b.d.ts again -//// [/home/src/workspaces/project/b.d.ts] *modified* -export const enum AWorker { - ONE = 3 -} -export { AWorker as A };export const randomThing = 10;export const randomThing2 = 10; - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"2e80eb5c14425cedaabae48745225bc6-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;export const randomThing2 = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "2e80eb5c14425cedaabae48745225bc6-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;export const randomThing2 = 10;", - "signature": "2e80eb5c14425cedaabae48745225bc6-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;export const randomThing2 = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1429 -} -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts diff --git a/testdata/baselines/reference/tsc/incremental/const-enums.js b/testdata/baselines/reference/tsc/incremental/const-enums.js deleted file mode 100644 index eb13001905..0000000000 --- a/testdata/baselines/reference/tsc/incremental/const-enums.js +++ /dev/null @@ -1,551 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -import {A} from "./c" -let a = A.ONE -//// [/home/src/workspaces/project/b.d.ts] *new* -export const enum A { - ONE = 1 -} -//// [/home/src/workspaces/project/c.ts] *new* -import {A} from "./b" -let b = A.ONE -export {A} -//// [/home/src/workspaces/project/worker.d.ts] *new* -export const enum AWorker { - ONE = 1 -} - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 1 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"53c5c35ee54571b647e3f723569d09cf-export const enum A {\n ONE = 1\n}","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "53c5c35ee54571b647e3f723569d09cf-export const enum A {\n ONE = 1\n}", - "signature": "53c5c35ee54571b647e3f723569d09cf-export const enum A {\n ONE = 1\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1211 -} -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 1 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [0]:: change enum value -//// [/home/src/workspaces/project/b.d.ts] *modified* -export const enum A { - ONE = 2 -} - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 2 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"d04ca273da9def3b63557363c6eae3ca-export const enum A {\n ONE = 2\n}",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},{"version":"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "d04ca273da9def3b63557363c6eae3ca-export const enum A {\n ONE = 2\n}", - "signature": "d04ca273da9def3b63557363c6eae3ca-export const enum A {\n ONE = 2\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1430 -} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 2 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [1]:: change enum value again -//// [/home/src/workspaces/project/b.d.ts] *modified* -export const enum A { - ONE = 3 -} - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let a = 3 /* A.ONE */; - -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"097e7efa854e788c6281c17b46d9460a-export const enum A {\n ONE = 3\n}",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "097e7efa854e788c6281c17b46d9460a-export const enum A {\n ONE = 3\n}", - "signature": "097e7efa854e788c6281c17b46d9460a-export const enum A {\n ONE = 3\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1336 -} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let b = 3 /* A.ONE */; - - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts - - -Edit [2]:: something else changes in b.d.ts -//// [/home/src/workspaces/project/b.d.ts] *modified* -export const enum A { - ONE = 3 -}export const randomThing = 10; - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"40d09f9f7c0089340619c57a80ff0ab1-export const enum A {\n ONE = 3\n}export const randomThing = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "40d09f9f7c0089340619c57a80ff0ab1-export const enum A {\n ONE = 3\n}export const randomThing = 10;", - "signature": "40d09f9f7c0089340619c57a80ff0ab1-export const enum A {\n ONE = 3\n}export const randomThing = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1366 -} -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts - - -Edit [3]:: something else changes in b.d.ts again -//// [/home/src/workspaces/project/b.d.ts] *modified* -export const enum A { - ONE = 3 -}export const randomThing = 10;export const randomThing2 = 10; - -tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ee6472d5ac80e48bb4cea44493dd5fe8-export const enum A {\n ONE = 3\n}export const randomThing = 10;export const randomThing2 = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} -//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.d.ts", - "./b.d.ts", - "./c.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.d.ts", - "version": "ee6472d5ac80e48bb4cea44493dd5fe8-export const enum A {\n ONE = 3\n}export const randomThing = 10;export const randomThing2 = 10;", - "signature": "ee6472d5ac80e48bb4cea44493dd5fe8-export const enum A {\n ONE = 3\n}export const randomThing = 10;export const randomThing2 = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", - "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./c.ts" - ], - [ - "./b.d.ts" - ] - ], - "options": { - "tsBuildInfoFile": "./a.tsbuildinfo" - }, - "referencedMap": { - "./a.ts": [ - "./c.ts" - ], - "./c.ts": [ - "./b.d.ts" - ] - }, - "size": 1397 -} -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/b.d.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(used version) /home/src/workspaces/project/b.d.ts -(computed .d.ts) /home/src/workspaces/project/c.ts -(used version) /home/src/workspaces/project/a.ts diff --git a/testdata/baselines/reference/tsc/incremental/generates-typerefs-correctly.js b/testdata/baselines/reference/tsc/incremental/generates-typerefs-correctly.js deleted file mode 100644 index a8471af0bb..0000000000 --- a/testdata/baselines/reference/tsc/incremental/generates-typerefs-correctly.js +++ /dev/null @@ -1,367 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/box.ts] *new* -export interface Box { - unbox(): T -} -//// [/home/src/workspaces/project/src/bug.js] *new* -import * as B from "./box.js" -import * as W from "./wrap.js" - -/** - * @template {object} C - * @param {C} source - * @returns {W.Wrap} - */ -const wrap = source => { -throw source -} - -/** - * @returns {B.Box} - */ -const box = (n = 0) => ({ unbox: () => n }) - -export const bug = wrap({ n: box(1) }); -//// [/home/src/workspaces/project/src/wrap.ts] *new* -export type Wrap = { - [K in keyof C]: { wrapped: C[K] } -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "outDir", - "checkJs": true - }, - "include": ["src"], -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/outDir/src/box.d.ts] *new* -export interface Box { - unbox(): T; -} - -//// [/home/src/workspaces/project/outDir/src/box.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/outDir/src/bug.d.ts] *new* -import * as B from "./box.js"; -import * as W from "./wrap.js"; -export declare const bug: W.Wrap<{ - n: B.Box; -}>; - -//// [/home/src/workspaces/project/outDir/src/bug.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bug = void 0; -const B = require("./box.js"); -const W = require("./wrap.js"); -/** - * @template {object} C - * @param {C} source - * @returns {W.Wrap} - */ -const wrap = source => { - throw source; -}; -/** - * @returns {B.Box} - */ -const box = (n = 0) => ({ unbox: () => n }); -exports.bug = wrap({ n: box(1) }); - -//// [/home/src/workspaces/project/outDir/src/wrap.d.ts] *new* -export type Wrap = { - [K in keyof C]: { - wrapped: C[K]; - }; -}; - -//// [/home/src/workspaces/project/outDir/src/wrap.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}","signature":"ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n","impliedNodeFormat":1},{"version":"1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}","signature":"78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n","impliedNodeFormat":1},{"version":"b4e9b31d9609a8709f2fc33522d84448-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) });","signature":"7c385e40e65a179131e0621fad086d2a-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"referencedMap":[[4,1]],"latestChangedDtsFile":"./src/bug.d.ts"} -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/box.ts", - "../src/wrap.ts", - "../src/bug.js" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/box.ts", - "../src/wrap.ts", - "../src/bug.js" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/box.ts", - "version": "1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}", - "signature": "ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}", - "signature": "ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/wrap.ts", - "version": "1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}", - "signature": "78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}", - "signature": "78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/bug.js", - "version": "b4e9b31d9609a8709f2fc33522d84448-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) });", - "signature": "7c385e40e65a179131e0621fad086d2a-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b4e9b31d9609a8709f2fc33522d84448-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) });", - "signature": "7c385e40e65a179131e0621fad086d2a-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/box.ts", - "../src/wrap.ts" - ] - ], - "options": { - "checkJs": true, - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../src/bug.js": [ - "../src/box.ts", - "../src/wrap.ts" - ] - }, - "latestChangedDtsFile": "./src/bug.d.ts", - "size": 2092 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/box.ts -*refresh* /home/src/workspaces/project/src/wrap.ts -*refresh* /home/src/workspaces/project/src/bug.js -Signatures:: -(stored at emit) /home/src/workspaces/project/src/box.ts -(stored at emit) /home/src/workspaces/project/src/wrap.ts -(stored at emit) /home/src/workspaces/project/src/bug.js - - -Edit [0]:: modify js file -//// [/home/src/workspaces/project/src/bug.js] *modified* -import * as B from "./box.js" -import * as W from "./wrap.js" - -/** - * @template {object} C - * @param {C} source - * @returns {W.Wrap} - */ -const wrap = source => { -throw source -} - -/** - * @returns {B.Box} - */ -const box = (n = 0) => ({ unbox: () => n }) - -export const bug = wrap({ n: box(1) });export const something = 1; - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/outDir/src/bug.d.ts] *modified* -import * as B from "./box.js"; -import * as W from "./wrap.js"; -export declare const bug: W.Wrap<{ - n: B.Box; -}>; -export declare const something = 1; - -//// [/home/src/workspaces/project/outDir/src/bug.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.something = exports.bug = void 0; -const B = require("./box.js"); -const W = require("./wrap.js"); -/** - * @template {object} C - * @param {C} source - * @returns {W.Wrap} - */ -const wrap = source => { - throw source; -}; -/** - * @returns {B.Box} - */ -const box = (n = 0) => ({ unbox: () => n }); -exports.bug = wrap({ n: box(1) }); -exports.something = 1; - -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}","signature":"ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n","impliedNodeFormat":1},{"version":"1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}","signature":"78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n","impliedNodeFormat":1},{"version":"6eacf2e4d90c851011e8978446ec65d2-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) });export const something = 1;","signature":"d57e9c5bf62a61457d245408176c990e-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport declare const something = 1;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"referencedMap":[[4,1]],"latestChangedDtsFile":"./src/bug.d.ts"} -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/box.ts", - "../src/wrap.ts", - "../src/bug.js" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../src/box.ts", - "../src/wrap.ts", - "../src/bug.js" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/box.ts", - "version": "1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}", - "signature": "ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}", - "signature": "ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/wrap.ts", - "version": "1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}", - "signature": "78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}", - "signature": "78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/bug.js", - "version": "6eacf2e4d90c851011e8978446ec65d2-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) });export const something = 1;", - "signature": "d57e9c5bf62a61457d245408176c990e-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport declare const something = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6eacf2e4d90c851011e8978446ec65d2-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) });export const something = 1;", - "signature": "d57e9c5bf62a61457d245408176c990e-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport declare const something = 1;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../src/box.ts", - "../src/wrap.ts" - ] - ], - "options": { - "checkJs": true, - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../src/bug.js": [ - "../src/box.ts", - "../src/wrap.ts" - ] - }, - "latestChangedDtsFile": "./src/bug.d.ts", - "size": 2156 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/bug.js -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/bug.js diff --git a/testdata/baselines/reference/tsc/incremental/option-changes-with-composite.js b/testdata/baselines/reference/tsc/incremental/option-changes-with-composite.js deleted file mode 100644 index 31813b1f3a..0000000000 --- a/testdata/baselines/reference/tsc/incremental/option-changes-with-composite.js +++ /dev/null @@ -1,1569 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/project/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/project/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/project/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1762 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/d.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts -(stored at emit) /home/src/workspaces/project/c.ts -(stored at emit) /home/src/workspaces/project/d.ts - - -Edit [0]:: with sourceMap - -tsgo --sourceMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *new* -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *new* -{"version":3,"file":"b.js","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *new* -{"version":3,"file":"c.js","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *new* -{"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1779 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: should re-emit only js so they dont contain sourcemap - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; - -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1762 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: with declaration should not emit anything - -tsgo --declaration -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: with declaration and declarationMap - -tsgo --declaration --declarationMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = 10; -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/a.d.ts.map] *new* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/b.d.ts] *modified* -export declare const b = 10; -//# sourceMappingURL=b.d.ts.map -//// [/home/src/workspaces/project/b.d.ts.map] *new* -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/c.d.ts] *modified* -export declare const c = 10; -//# sourceMappingURL=c.d.ts.map -//// [/home/src/workspaces/project/c.d.ts.map] *new* -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} -//// [/home/src/workspaces/project/d.d.ts] *modified* -export declare const d = 10; -//# sourceMappingURL=d.d.ts.map -//// [/home/src/workspaces/project/d.d.ts.map] *new* -{"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1803 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: should re-emit only dts so they dont contain sourcemap - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = 10; - -//// [/home/src/workspaces/project/b.d.ts] *modified* -export declare const b = 10; - -//// [/home/src/workspaces/project/c.d.ts] *modified* -export declare const c = 10; - -//// [/home/src/workspaces/project/d.d.ts] *modified* -export declare const d = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1762 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [6]:: with emitDeclarationOnly should not emit anything - -tsgo --emitDeclarationOnly -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [8]:: local change -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = 10;const aLocal = 100; - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1763 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [9]:: with declaration should not emit anything - -tsgo --declaration -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: with inlineSourceMap - -tsgo --inlineSourceMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDIn0= -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDIn0= -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"inlineSourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "inlineSourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1786 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: with sourceMap - -tsgo --sourceMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *modified* -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,GAAG,CAAC"} -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1780 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: declarationMap enabling -//// [/home/src/workspaces/project/tsconfig.json] *modified* -{ - "compilerOptions": { - "composite": true, "declarationMap": true - } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = 10; -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; - -//// [/home/src/workspaces/project/b.d.ts] *modified* -export declare const b = 10; -//# sourceMappingURL=b.d.ts.map -//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.d.ts] *modified* -export declare const c = 10; -//# sourceMappingURL=c.d.ts.map -//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.d.ts] *modified* -export declare const d = 10; -//# sourceMappingURL=d.d.ts.map -//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1785 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [13]:: with sourceMap should not emit d.ts - -tsgo --sourceMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"declarationMap":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "latestChangedDtsFile": "./d.d.ts", - "size": 1802 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/option-changes-with-incremental.js b/testdata/baselines/reference/tsc/incremental/option-changes-with-incremental.js deleted file mode 100644 index 428799f3d1..0000000000 --- a/testdata/baselines/reference/tsc/incremental/option-changes-with-incremental.js +++ /dev/null @@ -1,1526 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = 10;const aLocal = 10; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10;const bLocal = 10; -//// [/home/src/workspaces/project/c.ts] *new* -import { a } from "./a";export const c = a; -//// [/home/src/workspaces/project/d.ts] *new* -import { b } from "./b";export const d = b; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1251 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -*refresh* /home/src/workspaces/project/c.ts -*refresh* /home/src/workspaces/project/d.ts -Signatures:: - - -Edit [0]:: with sourceMap - -tsgo --sourceMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *new* -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *new* -{"version":3,"file":"b.js","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *new* -{"version":3,"file":"c.js","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *new* -{"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"options":{"sourceMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1280 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: should re-emit only js so they dont contain sourcemap - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 10; - -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1251 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: with declaration, emit Dts and should not emit js - -tsgo --declaration -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a = 10; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c = 10; - -//// [/home/src/workspaces/project/d.d.ts] *new* -export declare const d = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1730 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts -(stored at emit) /home/src/workspaces/project/c.ts -(stored at emit) /home/src/workspaces/project/d.ts - - -Edit [3]:: with declaration and declarationMap - -tsgo --declaration --declarationMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = 10; -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/a.d.ts.map] *new* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/b.d.ts] *modified* -export declare const b = 10; -//# sourceMappingURL=b.d.ts.map -//// [/home/src/workspaces/project/b.d.ts.map] *new* -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/c.d.ts] *modified* -export declare const c = 10; -//# sourceMappingURL=c.d.ts.map -//// [/home/src/workspaces/project/c.d.ts.map] *new* -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} -//// [/home/src/workspaces/project/d.d.ts] *modified* -export declare const d = 10; -//# sourceMappingURL=d.d.ts.map -//// [/home/src/workspaces/project/d.d.ts.map] *new* -{"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1752 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: local change -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = 10;const aLocal = 100; - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1700 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [6]:: with declaration and declarationMap - -tsgo --declaration --declarationMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1753 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [8]:: with inlineSourceMap - -tsgo --inlineSourceMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDIn0= -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDIn0= -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"inlineSourceMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "inlineSourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1735 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [9]:: with sourceMap - -tsgo --sourceMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; -//# sourceMappingURL=a.js.map -//// [/home/src/workspaces/project/a.js.map] *modified* -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,GAAG,CAAC"} -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; -//# sourceMappingURL=b.js.map -//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; -//# sourceMappingURL=c.js.map -//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; -//# sourceMappingURL=d.js.map -//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"sourceMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "sourceMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1729 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: emit js files - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; -const aLocal = 100; - -//// [/home/src/workspaces/project/b.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; -const bLocal = 10; - -//// [/home/src/workspaces/project/c.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const a_1 = require("./a"); -exports.c = a_1.a; - -//// [/home/src/workspaces/project/d.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const b_1 = require("./b"); -exports.d = b_1.b; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1700 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: with declaration and declarationMap - -tsgo --declaration --declarationMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/d.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", - "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", - "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", - "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./a.ts" - ], - [ - "./b.ts" - ] - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "referencedMap": { - "./c.ts": [ - "./a.ts" - ], - "./d.ts": [ - "./b.ts" - ] - }, - "size": 1753 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: with declaration and declarationMap, should not re-emit - -tsgo --declaration --declarationMap -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash-under---strict.js b/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash-under---strict.js deleted file mode 100644 index ee5f85490e..0000000000 --- a/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash-under---strict.js +++ /dev/null @@ -1,150 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/node_modules/@types/react/index.d.ts] *new* -export {}; -declare global { - namespace JSX { - interface Element {} - interface IntrinsicElements { - div: { - propA?: boolean; - }; - } - } -} -//// [/home/src/workspaces/project/node_modules/react/jsx-runtime.js] *new* -export {} -//// [/home/src/workspaces/project/src/index.tsx] *new* -export const App = () =>
; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "commonjs", - "jsx": "react-jsx", - "incremental": true, - "jsxImportSource": "react" - } -} - -tsgo --strict -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/index.tsx:1:26 - error TS7016: Could not find a declaration file for module 'react/jsx-runtime'. '/home/src/workspaces/project/node_modules/react/jsx-runtime.js' implicitly has an 'any' type. - -1 export const App = () =>
; -   ~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in src/index.tsx:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.App = void 0; -const jsx_runtime_1 = require("react/jsx-runtime"); -const App = () => jsx_runtime_1.jsx("div", { propA: true }); -exports.App = App; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/index.tsx","./node_modules/@types/react/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;",{"version":"a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"jsx":4,"jsxImportSource":"react","module":1,"strict":true},"semanticDiagnosticsPerFile":[[2,[{"pos":25,"end":49,"code":7016,"category":1,"message":"Could not find a declaration file for module 'react/jsx-runtime'. '/home/src/workspaces/project/node_modules/react/jsx-runtime.js' implicitly has an 'any' type."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.tsx" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./src/index.tsx", - "./node_modules/@types/react/index.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/index.tsx", - "version": "0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;", - "signature": "0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/@types/react/index.d.ts", - "version": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "signature": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "jsx": 4, - "jsxImportSource": "react", - "module": 1, - "strict": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/index.tsx", - [ - { - "pos": 25, - "end": 49, - "code": 7016, - "category": 1, - "message": "Could not find a declaration file for module 'react/jsx-runtime'. '/home/src/workspaces/project/node_modules/react/jsx-runtime.js' implicitly has an 'any' type." - } - ] - ] - ], - "size": 1623 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/index.tsx -*refresh* /home/src/workspaces/project/node_modules/@types/react/index.d.ts -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash.js b/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash.js deleted file mode 100644 index 6346e64350..0000000000 --- a/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash.js +++ /dev/null @@ -1,127 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/node_modules/@types/react/index.d.ts] *new* -export {}; -declare global { - namespace JSX { - interface Element {} - interface IntrinsicElements { - div: { - propA?: boolean; - }; - } - } -} -//// [/home/src/workspaces/project/node_modules/react/jsx-runtime.js] *new* -export {} -//// [/home/src/workspaces/project/src/index.tsx] *new* -export const App = () =>
; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "commonjs", - "jsx": "react-jsx", - "incremental": true, - "jsxImportSource": "react" - } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.App = void 0; -const jsx_runtime_1 = require("react/jsx-runtime"); -const App = () => jsx_runtime_1.jsx("div", { propA: true }); -exports.App = App; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/index.tsx","./node_modules/@types/react/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;",{"version":"a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"jsx":4,"jsxImportSource":"react","module":1}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/index.tsx" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./src/index.tsx", - "./node_modules/@types/react/index.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/index.tsx", - "version": "0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;", - "signature": "0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/@types/react/index.d.ts", - "version": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "signature": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "jsx": 4, - "jsxImportSource": "react", - "module": 1 - }, - "size": 1354 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/index.tsx -*refresh* /home/src/workspaces/project/node_modules/@types/react/index.d.ts -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/serializing-composite-project.js b/testdata/baselines/reference/tsc/incremental/serializing-composite-project.js deleted file mode 100644 index 41015ff3fc..0000000000 --- a/testdata/baselines/reference/tsc/incremental/serializing-composite-project.js +++ /dev/null @@ -1,129 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/index.tsx] *new* -export const a = 1; -//// [/home/src/workspaces/project/other.ts] *new* -export const b = 2; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "strict": true, - "module": "esnext", - }, -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/index.d.ts] *new* -export declare const a = 1; - -//// [/home/src/workspaces/project/index.js] *new* -export const a = 1; - -//// [/home/src/workspaces/project/other.d.ts] *new* -export declare const b = 2; - -//// [/home/src/workspaces/project/other.js] *new* -export const b = 2; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./index.tsx","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5c8fff6e1fca35f4a292d48868d4086-export const a = 1;","signature":"67cd7ccc14045107336f34154f76a8ca-export declare const a = 1;\n","impliedNodeFormat":1},{"version":"a8da94c0a8fada72e123de05c6818d3a-export const b = 2;","signature":"e1d275f86bf4a4a1f6fd0e8d8709f902-export declare const b = 2;\n","impliedNodeFormat":1}],"options":{"composite":true,"module":99,"strict":true},"latestChangedDtsFile":"./other.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.tsx", - "./other.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./index.tsx", - "./other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.tsx", - "version": "f5c8fff6e1fca35f4a292d48868d4086-export const a = 1;", - "signature": "67cd7ccc14045107336f34154f76a8ca-export declare const a = 1;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5c8fff6e1fca35f4a292d48868d4086-export const a = 1;", - "signature": "67cd7ccc14045107336f34154f76a8ca-export declare const a = 1;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./other.ts", - "version": "a8da94c0a8fada72e123de05c6818d3a-export const b = 2;", - "signature": "e1d275f86bf4a4a1f6fd0e8d8709f902-export declare const b = 2;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a8da94c0a8fada72e123de05c6818d3a-export const b = 2;", - "signature": "e1d275f86bf4a4a1f6fd0e8d8709f902-export declare const b = 2;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "module": 99, - "strict": true - }, - "latestChangedDtsFile": "./other.d.ts", - "size": 1303 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/index.tsx -*refresh* /home/src/workspaces/project/other.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/index.tsx -(stored at emit) /home/src/workspaces/project/other.ts diff --git a/testdata/baselines/reference/tsc/incremental/serializing-error-chain.js b/testdata/baselines/reference/tsc/incremental/serializing-error-chain.js deleted file mode 100644 index 3a1c2607fc..0000000000 --- a/testdata/baselines/reference/tsc/incremental/serializing-error-chain.js +++ /dev/null @@ -1,216 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/index.tsx] *new* -declare namespace JSX { - interface ElementChildrenAttribute { children: {}; } - interface IntrinsicElements { div: {} } -} - -declare var React: any; - -declare function Component(props: never): any; -declare function Component(props: { children?: number }): any; -( -
-
-) -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "strict": true, - "jsx": "react", - "module": "esnext", - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -index.tsx:10:3 - error TS2769: No overload matches this call. - The last overload gave the following error. - Type '{ children: any[]; }' is not assignable to type '{ children?: number | undefined; }'. - Types of property 'children' are incompatible. - Type 'any[]' is not assignable to type 'number'. - -10 ( -   ~~~~~~~~~ - - index.tsx:9:18 - The last overload is declared here. - 9 declare function Component(props: { children?: number }): any; -    ~~~~~~~~~ - - -Found 1 error in index.tsx:10 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/index.js] *new* -(React.createElement(Component, null, - React.createElement("div", null), - React.createElement("div", null))); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.tsx"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8ca521424834f2ae3377cc3ccc9dd3ef-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,"impliedNodeFormat":1}],"options":{"jsx":3,"module":99,"strict":true},"semanticDiagnosticsPerFile":[[2,[{"pos":265,"end":274,"code":2769,"category":1,"message":"No overload matches this call.","messageChain":[{"pos":265,"end":274,"code":2770,"category":1,"message":"The last overload gave the following error.","messageChain":[{"pos":265,"end":274,"code":2322,"category":1,"message":"Type '{ children: any[]; }' is not assignable to type '{ children?: number | undefined; }'.","messageChain":[{"pos":265,"end":274,"code":2326,"category":1,"message":"Types of property 'children' are incompatible.","messageChain":[{"pos":265,"end":274,"code":2322,"category":1,"message":"Type 'any[]' is not assignable to type 'number'."}]}]}]}],"relatedInformation":[{"pos":217,"end":226,"code":2771,"category":1,"message":"The last overload is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.tsx" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./index.tsx" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./index.tsx", - "version": "8ca521424834f2ae3377cc3ccc9dd3ef-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": "8ca521424834f2ae3377cc3ccc9dd3ef-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, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8ca521424834f2ae3377cc3ccc9dd3ef-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, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "jsx": 3, - "module": 99, - "strict": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.tsx", - [ - { - "pos": 265, - "end": 274, - "code": 2769, - "category": 1, - "message": "No overload matches this call.", - "messageChain": [ - { - "pos": 265, - "end": 274, - "code": 2770, - "category": 1, - "message": "The last overload gave the following error.", - "messageChain": [ - { - "pos": 265, - "end": 274, - "code": 2322, - "category": 1, - "message": "Type '{ children: any[]; }' is not assignable to type '{ children?: number | undefined; }'.", - "messageChain": [ - { - "pos": 265, - "end": 274, - "code": 2326, - "category": 1, - "message": "Types of property 'children' are incompatible.", - "messageChain": [ - { - "pos": 265, - "end": 274, - "code": 2322, - "category": 1, - "message": "Type 'any[]' is not assignable to type 'number'." - } - ] - } - ] - } - ] - } - ], - "relatedInformation": [ - { - "pos": 217, - "end": 226, - "code": 2771, - "category": 1, - "message": "The last overload is declared here." - } - ] - } - ] - ] - ], - "size": 2109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/index.tsx -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -index.tsx:10:3 - error TS2769: No overload matches this call. - The last overload gave the following error. - Type '{ children: any[]; }' is not assignable to type '{ children?: number | undefined; }'. - Types of property 'children' are incompatible. - Type 'any[]' is not assignable to type 'number'. - -10 ( -   ~~~~~~~~~ - - index.tsx:9:18 - The last overload is declared here. - 9 declare function Component(props: { children?: number }): any; -    ~~~~~~~~~ - - -Found 1 error in index.tsx:10 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js b/testdata/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js deleted file mode 100644 index 84b80ae36d..0000000000 --- a/testdata/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js +++ /dev/null @@ -1,106 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -Some random string - -tsgo -i -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "size": 915 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: - - -Edit [0]:: tsbuildinfo written has error -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -Some random string{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} - -tsgo -i -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/main.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/main.ts -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-file-is-deleted.js b/testdata/baselines/reference/tsc/incremental/when-file-is-deleted.js deleted file mode 100644 index 6325023725..0000000000 --- a/testdata/baselines/reference/tsc/incremental/when-file-is-deleted.js +++ /dev/null @@ -1,200 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/file1.ts] *new* -export class C { } -//// [/home/src/workspaces/project/file2.ts] *new* -export class D { } -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "outDir" - } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/outDir/file1.d.ts] *new* -export declare class C { -} - -//// [/home/src/workspaces/project/outDir/file1.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.C = void 0; -class C { -} -exports.C = C; - -//// [/home/src/workspaces/project/outDir/file2.d.ts] *new* -export declare class D { -} - -//// [/home/src/workspaces/project/outDir/file2.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.D = void 0; -class D { -} -exports.D = D; - -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../file1.ts","../file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }","signature":"ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n","impliedNodeFormat":1},{"version":"f7d221ab360f516a6280e3b725f4cd31-export class D { }","signature":"d80eb8b520c91b72da4146d2d8059990-export declare class D {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./file2.d.ts"} -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../file1.ts", - "../file2.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../file1.ts", - "../file2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../file1.ts", - "version": "7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }", - "signature": "ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }", - "signature": "ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../file2.ts", - "version": "f7d221ab360f516a6280e3b725f4cd31-export class D { }", - "signature": "d80eb8b520c91b72da4146d2d8059990-export declare class D {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f7d221ab360f516a6280e3b725f4cd31-export class D { }", - "signature": "d80eb8b520c91b72da4146d2d8059990-export declare class D {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./file2.d.ts", - "size": 1291 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/file1.ts -*refresh* /home/src/workspaces/project/file2.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/file1.ts -(stored at emit) /home/src/workspaces/project/file2.ts - - -Edit [0]:: delete file with imports -//// [/home/src/workspaces/project/file2.ts] *deleted* - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../file1.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }","signature":"ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./file2.d.ts"} -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../file1.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../file1.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../file1.ts", - "version": "7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }", - "signature": "ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }", - "signature": "ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./file2.d.ts", - "size": 1108 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js b/testdata/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js deleted file mode 100644 index ffe2a4f5a4..0000000000 --- a/testdata/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js +++ /dev/null @@ -1,921 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/anotherFileWithSameReferenes.ts] *new* -/// -/// -function anotherFileWithSameReferenes() { } -//// [/home/src/workspaces/project/src/filePresent.ts] *new* -function something() { return 10; } -//// [/home/src/workspaces/project/src/main.ts] *new* -/// -/// -function main() { } -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true }, - "include": ["src/**/*.ts"], -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/anotherFileWithSameReferenes.d.ts] *new* -declare function anotherFileWithSameReferenes(): void; - -//// [/home/src/workspaces/project/src/anotherFileWithSameReferenes.js] *new* -/// -/// -function anotherFileWithSameReferenes() { } - -//// [/home/src/workspaces/project/src/filePresent.d.ts] *new* -declare function something(): number; - -//// [/home/src/workspaces/project/src/filePresent.js] *new* -function something() { return 10; } - -//// [/home/src/workspaces/project/src/main.d.ts] *new* -declare function main(): void; - -//// [/home/src/workspaces/project/src/main.js] *new* -/// -/// -function main() { } - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/anotherFileWithSameReferenes.ts","./src/main.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e3124823e3ef0a7f1ce70b317b1e4c8-/// \n/// \nfunction main() { }","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,5]],"options":{"composite":true},"referencedMap":[[3,1],[4,1]],"latestChangedDtsFile":"./src/main.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/filePresent.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/main.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/filePresent.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/main.ts", - "./src/fileNotFound.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/filePresent.ts", - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/anotherFileWithSameReferenes.ts", - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "4e3124823e3ef0a7f1ce70b317b1e4c8-/// \n/// \nfunction main() { }", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4e3124823e3ef0a7f1ce70b317b1e4c8-/// \n/// \nfunction main() { }", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/anotherFileWithSameReferenes.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - "./src/main.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ] - }, - "latestChangedDtsFile": "./src/main.d.ts", - "size": 1910 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/filePresent.ts -*refresh* /home/src/workspaces/project/src/anotherFileWithSameReferenes.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/filePresent.ts -(stored at emit) /home/src/workspaces/project/src/anotherFileWithSameReferenes.ts -(stored at emit) /home/src/workspaces/project/src/main.ts - - -Edit [0]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Modify main file -//// [/home/src/workspaces/project/src/main.ts] *modified* -/// -/// -function main() { }something(); - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/main.js] *modified* -/// -/// -function main() { } -something(); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/anotherFileWithSameReferenes.ts","./src/main.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9ece2abeadfdd790ae17f754892e8402-/// \n/// \nfunction main() { }something();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,5]],"options":{"composite":true},"referencedMap":[[3,1],[4,1]],"latestChangedDtsFile":"./src/main.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/filePresent.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/main.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/filePresent.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/main.ts", - "./src/fileNotFound.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/filePresent.ts", - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/anotherFileWithSameReferenes.ts", - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "9ece2abeadfdd790ae17f754892e8402-/// \n/// \nfunction main() { }something();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9ece2abeadfdd790ae17f754892e8402-/// \n/// \nfunction main() { }something();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/anotherFileWithSameReferenes.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - "./src/main.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ] - }, - "latestChangedDtsFile": "./src/main.d.ts", - "size": 1922 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/main.ts - - -Edit [2]:: Modify main file again -//// [/home/src/workspaces/project/src/main.ts] *modified* -/// -/// -function main() { }something();something(); - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/main.js] *modified* -/// -/// -function main() { } -something(); -something(); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/anotherFileWithSameReferenes.ts","./src/main.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1077a6c3f5daec777c602b0aac3793b9-/// \n/// \nfunction main() { }something();something();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,5]],"options":{"composite":true},"referencedMap":[[3,1],[4,1]],"latestChangedDtsFile":"./src/main.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/filePresent.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/main.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/filePresent.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/main.ts", - "./src/fileNotFound.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/filePresent.ts", - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/anotherFileWithSameReferenes.ts", - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "1077a6c3f5daec777c602b0aac3793b9-/// \n/// \nfunction main() { }something();something();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1077a6c3f5daec777c602b0aac3793b9-/// \n/// \nfunction main() { }something();something();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/anotherFileWithSameReferenes.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - "./src/main.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ] - }, - "latestChangedDtsFile": "./src/main.d.ts", - "size": 1934 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/main.ts - - -Edit [3]:: Add new file and update main file -//// [/home/src/workspaces/project/src/main.ts] *modified* -/// -/// -/// -function main() { }something();something();foo(); -//// [/home/src/workspaces/project/src/newFile.ts] *new* -function foo() { return 20; } - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/main.js] *modified* -/// -/// -/// -function main() { } -something(); -something(); -foo(); - -//// [/home/src/workspaces/project/src/newFile.d.ts] *new* -declare function foo(): number; - -//// [/home/src/workspaces/project/src/newFile.js] *new* -function foo() { return 20; } - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/anotherFileWithSameReferenes.ts","./src/newFile.ts","./src/main.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }","signature":"67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,6],[2,4,6]],"options":{"composite":true},"referencedMap":[[3,1],[5,2]],"latestChangedDtsFile":"./src/newFile.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/filePresent.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/filePresent.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/newFile.ts", - "./src/main.ts", - "./src/fileNotFound.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/filePresent.ts", - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/anotherFileWithSameReferenes.ts", - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/newFile.ts", - "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", - "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", - "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - [ - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/fileNotFound.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/anotherFileWithSameReferenes.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - "./src/main.ts": [ - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/fileNotFound.ts" - ] - }, - "latestChangedDtsFile": "./src/newFile.d.ts", - "size": 2216 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/newFile.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/newFile.ts -(computed .d.ts) /home/src/workspaces/project/src/main.ts - - -Edit [4]:: Write file that could not be resolved -//// [/home/src/workspaces/project/src/fileNotFound.ts] *new* -function something2() { return 20; } - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/anotherFileWithSameReferenes.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/fileNotFound.d.ts] *new* -declare function something2(): number; - -//// [/home/src/workspaces/project/src/fileNotFound.js] *new* -function something2() { return 20; } - -//// [/home/src/workspaces/project/src/main.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileWithSameReferenes.ts","./src/newFile.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }","signature":"6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }","signature":"67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,3],[2,3,5]],"options":{"composite":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./src/fileNotFound.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/filePresent.ts", - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/fileNotFound.ts", - "version": "d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }", - "signature": "6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }", - "signature": "6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/anotherFileWithSameReferenes.ts", - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/newFile.ts", - "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", - "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", - "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/newFile.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/anotherFileWithSameReferenes.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - "./src/main.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/newFile.ts" - ] - }, - "latestChangedDtsFile": "./src/fileNotFound.d.ts", - "size": 2441 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/fileNotFound.ts -*refresh* /home/src/workspaces/project/src/anotherFileWithSameReferenes.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/fileNotFound.ts -(computed .d.ts) /home/src/workspaces/project/src/anotherFileWithSameReferenes.ts -(computed .d.ts) /home/src/workspaces/project/src/main.ts - - -Edit [5]:: Modify main file -//// [/home/src/workspaces/project/src/main.ts] *modified* -/// -/// -/// -function main() { }something();something();foo();something(); - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/main.js] *modified* -/// -/// -/// -function main() { } -something(); -something(); -foo(); -something(); - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileWithSameReferenes.ts","./src/newFile.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }","signature":"6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }","signature":"67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"789a4176bd8e2c5d9b0deb6839d8f298-/// \n/// \n/// \nfunction main() { }something();something();foo();something();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,3],[2,3,5]],"options":{"composite":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./src/fileNotFound.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileWithSameReferenes.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/filePresent.ts", - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", - "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/fileNotFound.ts", - "version": "d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }", - "signature": "6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }", - "signature": "6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/anotherFileWithSameReferenes.ts", - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", - "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/newFile.ts", - "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", - "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", - "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "789a4176bd8e2c5d9b0deb6839d8f298-/// \n/// \n/// \nfunction main() { }something();something();foo();something();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "789a4176bd8e2c5d9b0deb6839d8f298-/// \n/// \n/// \nfunction main() { }something();something();foo();something();", - "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/newFile.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/anotherFileWithSameReferenes.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts" - ], - "./src/main.ts": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/newFile.ts" - ] - }, - "latestChangedDtsFile": "./src/fileNotFound.d.ts", - "size": 2453 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/main.ts diff --git a/testdata/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js b/testdata/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js deleted file mode 100644 index d4a4273007..0000000000 --- a/testdata/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js +++ /dev/null @@ -1,117 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs" - }, - "include": [ - "src/**/*.ts" - ], -} - -tsgo --incremental --tsBuildInfoFile .tsbuildinfo --explainFiles -ExitStatus:: Success -Output:: -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -src/main.ts - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"],"options":{"module":1,"target":1,"tsBuildInfoFile":"./.tsbuildinfo"}} -//// [/home/src/workspaces/project/.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "module": 1, - "target": 1, - "tsBuildInfoFile": "./.tsbuildinfo" - }, - "size": 988 -} -//// [/home/src/workspaces/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --incremental --tsBuildInfoFile .tsbuildinfo --explainFiles -ExitStatus:: Success -Output:: -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -src/main.ts - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js b/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js deleted file mode 100644 index acf230fde3..0000000000 --- a/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js +++ /dev/null @@ -1,105 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "outDir": "dist" - } -} - -tsgo --rootDir src -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/dist/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"],"options":{"outDir":"./dist","rootDir":"./src"}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/main.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "outDir": "./dist", - "rootDir": "./src" - }, - "size": 967 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --rootDir src -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js b/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js deleted file mode 100644 index adbad2fb31..0000000000 --- a/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js +++ /dev/null @@ -1,106 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "outDir": "dist", - "rootDir": "./" - } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/dist/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"],"options":{"outDir":"./","rootDir":".."}} -//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/main.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../src/main.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "outDir": "./", - "rootDir": ".." - }, - "size": 961 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/main.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js b/testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js deleted file mode 100644 index d6a1cd1182..0000000000 --- a/testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js +++ /dev/null @@ -1,141 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = 10; -//// [/home/src/workspaces/project/b.d.ts] *new* -interface NoName { - Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => { - stop: () => Promise; - }; -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "skipLibCheck": true, - "incremental": true, - } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"3a1e9965f8602302ee6ae53756eac8be-export const a = 10;",{"version":"53a40371b72faeca3dac96d61d6fb24f-interface NoName {\n Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => {\n stop: () => Promise;\n };\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"skipLibCheck":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "3a1e9965f8602302ee6ae53756eac8be-export const a = 10;", - "signature": "3a1e9965f8602302ee6ae53756eac8be-export const a = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.d.ts", - "version": "53a40371b72faeca3dac96d61d6fb24f-interface NoName {\n Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => {\n stop: () => Promise;\n };\n}", - "signature": "53a40371b72faeca3dac96d61d6fb24f-interface NoName {\n Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => {\n stop: () => Promise;\n };\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "53a40371b72faeca3dac96d61d6fb24f-interface NoName {\n Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => {\n stop: () => Promise;\n };\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "skipLibCheck": true - }, - "size": 1195 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.d.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: no change and tsc -b - -tsgo -b -v -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.d.ts' is older than output 'tsconfig.tsbuildinfo' - - diff --git a/testdata/baselines/reference/tsc/incremental/with-only-dts-files.js b/testdata/baselines/reference/tsc/incremental/with-only-dts-files.js deleted file mode 100644 index 93472e2a40..0000000000 --- a/testdata/baselines/reference/tsc/incremental/with-only-dts-files.js +++ /dev/null @@ -1,169 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/another.d.ts] *new* -export const y = 10; -//// [/home/src/workspaces/project/src/main.d.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{} - -tsgo --incremental -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./src/another.d.ts","./src/main.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;","28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/another.d.ts", - "./src/main.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/another.d.ts", - "./src/main.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/another.d.ts", - "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", - "signature": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/main.d.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "size": 1002 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/another.d.ts -*refresh* /home/src/workspaces/project/src/main.d.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --incremental -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: modify d.ts file -//// [/home/src/workspaces/project/src/main.d.ts] *modified* -export const x = 10;export const xy = 100; - -tsgo --incremental -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./src/another.d.ts","./src/main.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;","111e3074fef4387af38d77ffef382bad-export const x = 10;export const xy = 100;"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/another.d.ts", - "./src/main.d.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/another.d.ts", - "./src/main.d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/another.d.ts", - "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", - "signature": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/main.d.ts", - "version": "111e3074fef4387af38d77ffef382bad-export const x = 10;export const xy = 100;", - "signature": "111e3074fef4387af38d77ffef382bad-export const x = 10;export const xy = 100;", - "impliedNodeFormat": "CommonJS" - } - ], - "size": 1024 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/main.d.ts -Signatures:: -(used version) /home/src/workspaces/project/src/main.d.ts diff --git a/testdata/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js b/testdata/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js deleted file mode 100644 index 523b9d0031..0000000000 --- a/testdata/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js +++ /dev/null @@ -1,124 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/test.ts] *new* -export const x = 1; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{} - -tsgo --incremental --listFilesOnly -ExitStatus:: Success -Output:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/test.ts -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/test.ts -Signatures:: - - -Edit [0]:: incremental actual build - -tsgo --incremental -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/test.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 1; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./test.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6126f134de98f678e320a9793c4fea1c-export const x = 1;"]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./test.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./test.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./test.ts", - "version": "6126f134de98f678e320a9793c4fea1c-export const x = 1;", - "signature": "6126f134de98f678e320a9793c4fea1c-export const x = 1;", - "impliedNodeFormat": "CommonJS" - } - ], - "size": 914 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/test.ts -Signatures:: - - -Edit [1]:: no change - -tsgo --incremental --listFilesOnly -ExitStatus:: Success -Output:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/test.ts - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: incremental should not build - -tsgo --incremental -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/listFilesOnly/loose-file.js b/testdata/baselines/reference/tsc/listFilesOnly/loose-file.js deleted file mode 100644 index 5f21423cf8..0000000000 --- a/testdata/baselines/reference/tsc/listFilesOnly/loose-file.js +++ /dev/null @@ -1,35 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/test.ts] *new* -export const x = 1; - -tsgo test.ts --listFilesOnly -ExitStatus:: Success -Output:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/test.ts -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - diff --git a/testdata/baselines/reference/tsc/moduleResolution/alternateResult.js b/testdata/baselines/reference/tsc/moduleResolution/alternateResult.js deleted file mode 100644 index 7ac02e2f44..0000000000 --- a/testdata/baselines/reference/tsc/moduleResolution/alternateResult.js +++ /dev/null @@ -1,3477 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/index.mts] *new* -import { foo } from "foo"; -import { bar } from "bar"; -import { foo2 } from "foo2"; -import { bar2 } from "bar2"; -//// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] *new* -export declare const bar: number; -//// [/home/src/projects/project/node_modules/@types/bar/package.json] *new* - { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - - "require": "./index.d.ts" - } - } - } -//// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] *new* -export declare const bar2: number; -//// [/home/src/projects/project/node_modules/@types/bar2/package.json] *new* -{ - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" - } - } -} -//// [/home/src/projects/project/node_modules/bar/index.js] *new* -module.exports = { bar: 1 }; -//// [/home/src/projects/project/node_modules/bar/index.mjs] *new* -export const bar = 1; -//// [/home/src/projects/project/node_modules/bar/package.json] *new* - { - "name": "bar", - "version": "1.0.0", - "main": "index.js", - - "exports": { - ".": { - - "import": "./index.mjs", - "require": "./index.js" - } - } - } -//// [/home/src/projects/project/node_modules/bar2/index.js] *new* -module.exports = { bar2: 1 }; -//// [/home/src/projects/project/node_modules/bar2/index.mjs] *new* -export const bar2 = 1; -//// [/home/src/projects/project/node_modules/bar2/package.json] *new* - { - "name": "bar2", - "version": "1.0.0", - "main": "index.js", - - "exports": { - ".": { - - "import": "./index.mjs", - "require": "./index.js" - } - } - } -//// [/home/src/projects/project/node_modules/foo/index.d.ts] *new* -export declare const foo: number; -//// [/home/src/projects/project/node_modules/foo/index.js] *new* -module.exports = { foo: 1 }; -//// [/home/src/projects/project/node_modules/foo/index.mjs] *new* -export const foo = 1; -//// [/home/src/projects/project/node_modules/foo/package.json] *new* - { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - - "import": "./index.mjs", - "require": "./index.js" - } - } - } -//// [/home/src/projects/project/node_modules/foo2/index.d.ts] *new* -export declare const foo2: number; -//// [/home/src/projects/project/node_modules/foo2/index.js] *new* -module.exports = { foo2: 1 }; -//// [/home/src/projects/project/node_modules/foo2/index.mjs] *new* -export const foo2 = 1; -//// [/home/src/projects/project/node_modules/foo2/package.json] *new* -{ - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" - } - } -} -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "node16", - "moduleResolution": "node16", - "traceResolution": true, - "incremental": true, - "strict": true, - "types": [], - }, - "files": ["index.mts"], -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/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'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== -index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. - -1 import { foo } from "foo"; -   ~~~~~ - -index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/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. - -2 import { bar } from "bar"; -   ~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:1 - -//// [/home/src/projects/project/index.mjs] *new* -export {}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.es2022.full.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;","da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","impliedNodeFormat":99}],"fileIdsList":[[2,3]],"options":{"module":100,"strict":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":20,"end":25,"code":7016,"category":1,"message":"Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":20,"end":25,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings."}]},{"pos":47,"end":52,"code":7016,"category":1,"message":"Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":47,"end":52,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/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."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.mts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts", - "./index.mts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/foo2/index.d.ts", - "version": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", - "signature": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/@types/bar2/index.d.ts", - "version": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", - "signature": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.mts", - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "impliedNodeFormat": "ESNext", - "original": { - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts" - ] - ], - "options": { - "module": 100, - "strict": true - }, - "referencedMap": { - "./index.mts": [ - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.mts", - [ - { - "pos": 20, - "end": 25, - "code": 7016, - "category": 1, - "message": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.", - "messageChain": [ - { - "pos": 20, - "end": 25, - "code": 6278, - "category": 3, - "message": "There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings." - } - ] - }, - { - "pos": 47, - "end": 52, - "code": 7016, - "category": 1, - "message": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.", - "messageChain": [ - { - "pos": 47, - "end": 52, - "code": 6278, - "category": 3, - "message": "There are types at '/home/src/projects/project/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." - } - ] - } - ] - ] - ], - "size": 2399 -} -//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts -*refresh* /home/src/projects/project/node_modules/foo2/index.d.ts -*refresh* /home/src/projects/project/node_modules/@types/bar2/index.d.ts -*refresh* /home/src/projects/project/index.mts -Signatures:: - - -Edit [0]:: delete the alternateResult in @types -//// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] *deleted* - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/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'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/@types/bar/index.d.ts', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/@types/bar/index.d.ts' has a '.d.ts' extension - stripping it. -File '/home/src/projects/project/node_modules/@types/bar/index.ts' does not exist. -File '/home/src/projects/project/node_modules/@types/bar/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.ts' does not exist. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.tsx' does not exist. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== -index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. - -1 import { foo } from "foo"; -   ~~~~~ - -index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/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. - -2 import { bar } from "bar"; -   ~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Diff:: Currently we arent repopulating error chain so errors will be different ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -5,7 +5,7 @@ -    ~~~~~ - - index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. -- Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';` -+ There are types at '/home/src/projects/project/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. - - 2 import { bar } from "bar"; -    ~~~~~ - -Edit [1]:: delete the node10Result in package/types -//// [/home/src/projects/project/node_modules/foo/index.d.ts] *deleted* - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/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'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/foo/index.d.ts', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/foo/index.d.ts' has a '.d.ts' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.ts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/foo/index.d.ts.ts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.ts.tsx' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.ts.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/@types/bar/index.d.ts', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/@types/bar/index.d.ts' has a '.d.ts' extension - stripping it. -File '/home/src/projects/project/node_modules/@types/bar/index.ts' does not exist. -File '/home/src/projects/project/node_modules/@types/bar/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.ts' does not exist. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.tsx' does not exist. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== -index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. - -1 import { foo } from "foo"; -   ~~~~~ - -index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/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. - -2 import { bar } from "bar"; -   ~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Diff:: Currently we arent repopulating error chain so errors will be different ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,11 +1,11 @@ - index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. -- Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';` -+ There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. - - 1 import { foo } from "foo"; -    ~~~~~ - - index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. -- Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';` -+ There are types at '/home/src/projects/project/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. - - 2 import { bar } from "bar"; -    ~~~~~ - -Edit [2]:: add the alternateResult in @types -//// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] *new* -export declare const bar: number; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/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'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/foo/index.d.ts', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/foo/index.d.ts' has a '.d.ts' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.ts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/foo/index.d.ts.ts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.ts.tsx' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.ts.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== -index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. - -1 import { foo } from "foo"; -   ~~~~~ - -index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/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. - -2 import { bar } from "bar"; -   ~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Diff:: Currently we arent repopulating error chain so errors will be different ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,5 +1,5 @@ - index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. -- Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';` -+ There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. - - 1 import { foo } from "foo"; -    ~~~~~ - -Edit [3]:: add the alternateResult in package/types -//// [/home/src/projects/project/node_modules/foo/index.d.ts] *new* -export declare const foo: number; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/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'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== -index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. - -1 import { foo } from "foo"; -   ~~~~~ - -index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/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. - -2 import { bar } from "bar"; -   ~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: update package.json from @types so error is fixed -//// [/home/src/projects/project/node_modules/@types/bar/package.json] *modified* -{ - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" - } - } -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/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'. -File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== -index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. - -1 import { foo } from "foo"; -   ~~~~~ - - -Found 1 error in index.mts:1 - -//// [/home/src/projects/project/index.mjs] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.es2022.full.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;","165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;","da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":99}],"fileIdsList":[[2,3,4]],"options":{"module":100,"strict":true},"referencedMap":[[5,1]],"semanticDiagnosticsPerFile":[[5,[{"pos":20,"end":25,"code":7016,"category":1,"message":"Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":20,"end":25,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.mts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts", - "./index.mts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/@types/bar/index.d.ts", - "version": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", - "signature": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/foo2/index.d.ts", - "version": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", - "signature": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/@types/bar2/index.d.ts", - "version": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", - "signature": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.mts", - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts" - ] - ], - "options": { - "module": 100, - "strict": true - }, - "referencedMap": { - "./index.mts": [ - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.mts", - [ - { - "pos": 20, - "end": 25, - "code": 7016, - "category": 1, - "message": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.", - "messageChain": [ - { - "pos": 20, - "end": 25, - "code": 6278, - "category": 3, - "message": "There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings." - } - ] - } - ] - ] - ], - "size": 2063 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/node_modules/@types/bar/index.d.ts -*refresh* /home/src/projects/project/index.mts -Signatures:: -(used version) /home/src/projects/project/node_modules/@types/bar/index.d.ts -(computed .d.ts) /home/src/projects/project/index.mts - - -Edit [5]:: update package.json so error is fixed -//// [/home/src/projects/project/node_modules/foo/package.json] *modified* -{ - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" - } - } -} - -tsgo -ExitStatus:: Success -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== -//// [/home/src/projects/project/index.mjs] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[6],"fileNames":["lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;","78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;","165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;","da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":99}],"fileIdsList":[[2,3,4,5]],"options":{"module":100,"strict":true},"referencedMap":[[6,1]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.mts" - ], - "original": 6 - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts", - "./index.mts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/foo/index.d.ts", - "version": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", - "signature": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/@types/bar/index.d.ts", - "version": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", - "signature": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/foo2/index.d.ts", - "version": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", - "signature": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/@types/bar2/index.d.ts", - "version": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", - "signature": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.mts", - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts" - ] - ], - "options": { - "module": 100, - "strict": true - }, - "referencedMap": { - "./index.mts": [ - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts", - "./node_modules/@types/bar2/index.d.ts" - ] - }, - "size": 1637 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/node_modules/foo/index.d.ts -*refresh* /home/src/projects/project/index.mts -Signatures:: -(used version) /home/src/projects/project/node_modules/foo/index.d.ts -(computed .d.ts) /home/src/projects/project/index.mts - - -Edit [6]:: update package.json from @types so error is introduced -//// [/home/src/projects/project/node_modules/@types/bar2/package.json] *modified* - { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - - "require": "./index.d.ts" - } - } - } - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== -index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. - -4 import { bar2 } from "bar2"; -   ~~~~~~ - - -Found 1 error in index.mts:4 - -//// [/home/src/projects/project/index.mjs] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[5],"fileNames":["lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;","78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;","165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":99}],"fileIdsList":[[2,3,4]],"options":{"module":100,"strict":true},"referencedMap":[[5,1]],"semanticDiagnosticsPerFile":[[5,[{"pos":104,"end":110,"code":7016,"category":1,"message":"Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":104,"end":110,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.mts" - ], - "original": 5 - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts", - "./index.mts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/foo/index.d.ts", - "version": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", - "signature": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/@types/bar/index.d.ts", - "version": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", - "signature": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/foo2/index.d.ts", - "version": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", - "signature": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.mts", - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts" - ] - ], - "options": { - "module": 100, - "strict": true - }, - "referencedMap": { - "./index.mts": [ - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts", - "./node_modules/foo2/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.mts", - [ - { - "pos": 104, - "end": 110, - "code": 7016, - "category": 1, - "message": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.", - "messageChain": [ - { - "pos": 104, - "end": 110, - "code": 6278, - "category": 3, - "message": "There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings." - } - ] - } - ] - ] - ], - "size": 2076 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/index.mts -Signatures:: -(computed .d.ts) /home/src/projects/project/index.mts - - -Edit [7]:: update package.json so error is introduced -//// [/home/src/projects/project/node_modules/foo2/package.json] *modified* - { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - - "import": "./index.mjs", - "require": "./index.js" - } - } - } - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== -index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. - -3 import { foo2 } from "foo2"; -   ~~~~~~ - -index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. - -4 import { bar2 } from "bar2"; -   ~~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:3 - -//// [/home/src/projects/project/index.mjs] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[4],"fileNames":["lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;","78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":99}],"fileIdsList":[[2,3]],"options":{"module":100,"strict":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":75,"end":81,"code":7016,"category":1,"message":"Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":75,"end":81,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings."}]},{"pos":104,"end":110,"code":7016,"category":1,"message":"Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":104,"end":110,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./index.mts" - ], - "original": 4 - } - ], - "fileNames": [ - "lib.es2022.full.d.ts", - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts", - "./index.mts" - ], - "fileInfos": [ - { - "fileName": "lib.es2022.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./node_modules/foo/index.d.ts", - "version": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", - "signature": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./node_modules/@types/bar/index.d.ts", - "version": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", - "signature": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./index.mts", - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 99 - } - } - ], - "fileIdsList": [ - [ - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts" - ] - ], - "options": { - "module": 100, - "strict": true - }, - "referencedMap": { - "./index.mts": [ - "./node_modules/foo/index.d.ts", - "./node_modules/@types/bar/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./index.mts", - [ - { - "pos": 75, - "end": 81, - "code": 7016, - "category": 1, - "message": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.", - "messageChain": [ - { - "pos": 75, - "end": 81, - "code": 6278, - "category": 3, - "message": "There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings." - } - ] - }, - { - "pos": 104, - "end": 110, - "code": 7016, - "category": 1, - "message": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.", - "messageChain": [ - { - "pos": 104, - "end": 110, - "code": 6278, - "category": 3, - "message": "There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings." - } - ] - } - ] - ] - ], - "size": 2467 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/index.mts -Signatures:: -(computed .d.ts) /home/src/projects/project/index.mts - - -Edit [8]:: delete the alternateResult in @types -//// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] *deleted* - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' has a '.d.ts' extension - stripping it. -File '/home/src/projects/project/node_modules/@types/bar2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/@types/bar2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.ts' does not exist. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.tsx' does not exist. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== -index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. - -3 import { foo2 } from "foo2"; -   ~~~~~~ - -index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. - -4 import { bar2 } from "bar2"; -   ~~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:3 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Diff:: Currently we arent repopulating error chain so errors will be different ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -5,7 +5,7 @@ -    ~~~~~~ - - index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. -- Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';` -+ There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. - - 4 import { bar2 } from "bar2"; -    ~~~~~~ - -Edit [9]:: delete the node10Result in package/types -//// [/home/src/projects/project/node_modules/foo2/index.d.ts] *deleted* - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/foo2/index.d.ts', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/foo2/index.d.ts' has a '.d.ts' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/foo2/index.d.ts.ts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.ts.tsx' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.ts.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' has a '.d.ts' extension - stripping it. -File '/home/src/projects/project/node_modules/@types/bar2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/@types/bar2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.ts' does not exist. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.tsx' does not exist. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== -index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. - -3 import { foo2 } from "foo2"; -   ~~~~~~ - -index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. - -4 import { bar2 } from "bar2"; -   ~~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:3 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Diff:: Currently we arent repopulating error chain so errors will be different ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,11 +1,11 @@ - index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. -- Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';` -+ There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. - - 3 import { foo2 } from "foo2"; -    ~~~~~~ - - index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. -- Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';` -+ There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. - - 4 import { bar2 } from "bar2"; -    ~~~~~~ - -Edit [10]:: add the alternateResult in @types -//// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] *new* -export declare const bar2: number; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/foo2/index.d.ts', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/foo2/index.d.ts' has a '.d.ts' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/foo2/index.d.ts.ts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.ts.tsx' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.ts.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== -index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. - -3 import { foo2 } from "foo2"; -   ~~~~~~ - -index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. - -4 import { bar2 } from "bar2"; -   ~~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:3 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Diff:: Currently we arent repopulating error chain so errors will be different ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,5 +1,5 @@ - index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. -- Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';` -+ There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. - - 3 import { foo2 } from "foo2"; -    ~~~~~~ - -Edit [11]:: add the ndoe10Result in package/types -//// [/home/src/projects/project/node_modules/foo2/index.d.ts] *new* -export declare const foo2: number; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/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. -Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. -======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== -======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. -Entering conditional exports. -Matched 'exports' condition 'types'. -Using 'exports' subpath '.' with target './index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'types'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. -======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== -======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. -File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. -======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== -======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== -Explicitly specified module resolution kind: 'Node16'. -Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. -Failed to resolve under condition 'import'. -Saw non-matching condition 'require'. -Exiting conditional exports. -Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. -Entering conditional exports. -Saw non-matching condition 'require'. -Exiting conditional exports. -Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules/@types' does not exist, skipping all lookups in it. -Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -Entering conditional exports. -Matched 'exports' condition 'import'. -Using 'exports' subpath '.' with target './index.mjs'. -File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolved under condition 'import'. -Exiting conditional exports. -Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. -Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. -File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/package.json' does not exist according to earlier cached lookups. -File '/home/src/package.json' does not exist according to earlier cached lookups. -File '/home/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. -Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. -'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. -Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. -File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. -File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. -File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. -File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. -Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. -File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. -======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== -index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. - -3 import { foo2 } from "foo2"; -   ~~~~~~ - -index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. - There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. - -4 import { bar2 } from "bar2"; -   ~~~~~~ - - -Found 2 errors in the same file, starting at: index.mts:3 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/moduleResolution/package-json-scope.js b/testdata/baselines/reference/tsc/moduleResolution/package-json-scope.js deleted file mode 100644 index d50d7c12a5..0000000000 --- a/testdata/baselines/reference/tsc/moduleResolution/package-json-scope.js +++ /dev/null @@ -1,281 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/package.json] *new* -{ - "name": "app", - "version": "1.0.0" -} -//// [/home/src/workspaces/project/src/fileA.ts] *new* -import { foo } from "./fileB.mjs"; -foo(); -//// [/home/src/workspaces/project/src/fileB.mts] *new* -export function foo() {} -//// [/home/src/workspaces/project/src/main.ts] *new* -export const x = 10; -//// [/home/src/workspaces/project/src/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "ES2016", - "composite": true, - "module": "Node16", - "traceResolution": true, - }, - "files": [ - "main.ts", - "fileA.ts", - "fileB.mts", - ], -} - -tsgo -p src --explainFiles --extendedDiagnostics -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module './fileB.mjs' from '/home/src/workspaces/project/src/fileA.ts'. ======== -Module resolution kind is not specified, using 'Node16'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -Loading module as file / folder, candidate module location '/home/src/workspaces/project/src/fileB.mjs', target file types: TypeScript, JavaScript, Declaration. -File name '/home/src/workspaces/project/src/fileB.mjs' has a '.mjs' extension - stripping it. -File '/home/src/workspaces/project/src/fileB.mts' exists - use it as a name resolution result. -======== Module name './fileB.mjs' was successfully resolved to '/home/src/workspaces/project/src/fileB.mts'. ======== -src/fileA.ts:1:21 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./fileB.mjs")' call instead. - To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/home/src/workspaces/project/package.json'. - -1 import { foo } from "./fileB.mjs"; -   ~~~~~~~~~~~~~ - -../../tslibs/TS/Lib/lib.es2016.full.d.ts - Default library for target 'ES2016' -src/main.ts - Part of 'files' list in tsconfig.json - File is CommonJS module because 'package.json' does not have field "type" -src/fileB.mts - Imported via "./fileB.mjs" from file 'src/fileA.ts' - Part of 'files' list in tsconfig.json -src/fileA.ts - Part of 'files' list in tsconfig.json - File is CommonJS module because 'package.json' does not have field "type" - -Found 1 error in src/fileA.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.es2016.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/fileA.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/fileA.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const fileB_mjs_1 = require("./fileB.mjs"); -(0, fileB_mjs_1.foo)(); - -//// [/home/src/workspaces/project/src/fileB.d.mts] *new* -export declare function foo(): void; - -//// [/home/src/workspaces/project/src/fileB.mjs] *new* -export function foo() { } - -//// [/home/src/workspaces/project/src/main.d.ts] *new* -export declare const x = 10; - -//// [/home/src/workspaces/project/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - -//// [/home/src/workspaces/project/src/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.es2016.full.d.ts","./main.ts","./fileB.mts","./fileA.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"28e8748a7acd58f4f59388926e914f86-export const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1},{"version":"d03690d860e74c03bcacf63f0dd68b93-export function foo() {}","signature":"7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n","impliedNodeFormat":99},{"version":"cc520ca096f0b81d18073ba8a9776fe3-import { foo } from \"./fileB.mjs\";\nfoo();","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"module":100,"target":3},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":20,"end":33,"code":1479,"category":1,"message":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.","messageChain":[{"pos":20,"end":33,"code":1481,"category":3,"message":"To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/home/src/workspaces/project/package.json'."}]}]]],"latestChangedDtsFile":"./fileA.d.ts"} -//// [/home/src/workspaces/project/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./main.ts", - "./fileB.mts", - "./fileA.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.es2016.full.d.ts", - "./main.ts", - "./fileB.mts", - "./fileA.ts" - ], - "fileInfos": [ - { - "fileName": "lib.es2016.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./main.ts", - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", - "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./fileB.mts", - "version": "d03690d860e74c03bcacf63f0dd68b93-export function foo() {}", - "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", - "impliedNodeFormat": "ESNext", - "original": { - "version": "d03690d860e74c03bcacf63f0dd68b93-export function foo() {}", - "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", - "impliedNodeFormat": 99 - } - }, - { - "fileName": "./fileA.ts", - "version": "cc520ca096f0b81d18073ba8a9776fe3-import { foo } from \"./fileB.mjs\";\nfoo();", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "cc520ca096f0b81d18073ba8a9776fe3-import { foo } from \"./fileB.mjs\";\nfoo();", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./fileB.mts" - ] - ], - "options": { - "composite": true, - "module": 100, - "target": 3 - }, - "referencedMap": { - "./fileA.ts": [ - "./fileB.mts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./fileA.ts", - [ - { - "pos": 20, - "end": 33, - "code": 1479, - "category": 1, - "message": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.", - "messageChain": [ - { - "pos": 20, - "end": 33, - "code": 1481, - "category": 3, - "message": "To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/home/src/workspaces/project/package.json'." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./fileA.d.ts", - "size": 2140 -} - -src/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.es2016.full.d.ts -*refresh* /home/src/workspaces/project/src/main.ts -*refresh* /home/src/workspaces/project/src/fileB.mts -*refresh* /home/src/workspaces/project/src/fileA.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/main.ts -(stored at emit) /home/src/workspaces/project/src/fileB.mts -(stored at emit) /home/src/workspaces/project/src/fileA.ts - - -Edit [0]:: Delete package.json -//// [/home/src/workspaces/project/package.json] *deleted* - -tsgo -p src --explainFiles --extendedDiagnostics -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -======== Resolving module './fileB.mjs' from '/home/src/workspaces/project/src/fileA.ts'. ======== -Module resolution kind is not specified, using 'Node16'. -Resolving in CJS mode with conditions 'require', 'types', 'node'. -Loading module as file / folder, candidate module location '/home/src/workspaces/project/src/fileB.mjs', target file types: TypeScript, JavaScript, Declaration. -File name '/home/src/workspaces/project/src/fileB.mjs' has a '.mjs' extension - stripping it. -File '/home/src/workspaces/project/src/fileB.mts' exists - use it as a name resolution result. -======== Module name './fileB.mjs' was successfully resolved to '/home/src/workspaces/project/src/fileB.mts'. ======== -src/fileA.ts:1:21 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./fileB.mjs")' call instead. - To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/home/src/workspaces/project/package.json'. - -1 import { foo } from "./fileB.mjs"; -   ~~~~~~~~~~~~~ - -../../tslibs/TS/Lib/lib.es2016.full.d.ts - Default library for target 'ES2016' -src/main.ts - Part of 'files' list in tsconfig.json - File is CommonJS module because 'package.json' was not found -src/fileB.mts - Imported via "./fileB.mjs" from file 'src/fileA.ts' - Part of 'files' list in tsconfig.json -src/fileA.ts - Part of 'files' list in tsconfig.json - File is CommonJS module because 'package.json' was not found - -Found 1 error in src/fileA.ts:1 - - -src/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Diff:: Currently we arent repopulating error chain so errors will be different ---- nonIncremental.output.txt -+++ incremental.output.txt -@@ -1,5 +1,5 @@ - src/fileA.ts:1:21 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./fileB.mjs")' call instead. -- To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. -+ To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/home/src/workspaces/project/package.json'. - - 1 import { foo } from "./fileB.mjs"; -    ~~~~~~~~~~~~~ \ No newline at end of file diff --git a/testdata/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js b/testdata/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js deleted file mode 100644 index 15244da570..0000000000 --- a/testdata/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js +++ /dev/null @@ -1,308 +0,0 @@ -currentDirectory::/home/src/projects/component-type-checker/packages/app -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/package.json] *new* -{ - "name": "@component-type-checker/button", - "version": "0.0.1", - "main": "./src/index.ts" -} -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts] *new* -export interface Button { - a: number; - b: number; -} -export function createButton(): Button { - return { - a: 0, - b: 1, - }; -} -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/package.json] *new* -{ - "name": "@component-type-checker/button", - "version": "0.0.2", - "main": "./src/index.ts" -} -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts] *new* -export interface Button { - a: number; - c: number; -} -export function createButton(): Button { - return { - a: 0, - c: 2, - }; -} -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button *new* -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/package.json] *new* -{ - "name": "@component-type-checker/components", - "version": "0.0.1", - "main": "./src/index.ts", - "peerDependencies": { - "@component-type-checker/button": "*" - }, - "devDependencies": { - "@component-type-checker/button": "0.0.2" - } -} -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts] *new* -export { createButton, Button } from "@component-type-checker/button"; -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button *new* -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/package.json] *new* -{ - "name": "@component-type-checker/components", - "version": "0.0.1", - "main": "./src/index.ts", - "peerDependencies": { - "@component-type-checker/button": "*" - }, - "devDependencies": { - "@component-type-checker/button": "0.0.2" - } -} -//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts] *new* -export { createButton, Button } from "@component-type-checker/button"; -//// [/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button *new* -//// [/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components *new* -//// [/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk] -> /home/src/projects/component-type-checker/packages/sdk *new* -//// [/home/src/projects/component-type-checker/packages/app/package.json] *new* -{ - "name": "app", - "version": "1.0.0", - "dependencies": { - "@component-type-checker/button": "0.0.2", - "@component-type-checker/components": "0.0.1", - "@component-type-checker/sdk": "0.0.2" - } -} -//// [/home/src/projects/component-type-checker/packages/app/src/app.tsx] *new* -import { VERSION } from "@component-type-checker/sdk"; -import { Button } from "@component-type-checker/components"; -import { createButton } from "@component-type-checker/button"; -const button: Button = createButton(); -//// [/home/src/projects/component-type-checker/packages/app/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "module": "esnext", - "lib": ["ES5"], - "moduleResolution": "node", - "outDir": "dist", - }, - "include": ["src"], -} -//// [/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/button] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button *new* -//// [/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components *new* -//// [/home/src/projects/component-type-checker/packages/sdk/package.json] *new* -{ - "name": "@component-type-checker/sdk1", - "version": "0.0.2", - "main": "./src/index.ts", - "dependencies": { - "@component-type-checker/components": "0.0.1", - "@component-type-checker/button": "0.0.1" - } -} -//// [/home/src/projects/component-type-checker/packages/sdk/src/index.ts] *new* -export { Button, createButton } from "@component-type-checker/components"; -export const VERSION = "0.0.2"; - -tsgo --traceResolution --explainFiles -ExitStatus:: Success -Output:: -======== Resolving module '@component-type-checker/sdk' from '/home/src/projects/component-type-checker/packages/app/src/app.tsx'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -File '/home/src/projects/component-type-checker/packages/app/src/package.json' does not exist. -Found 'package.json' at '/home/src/projects/component-type-checker/packages/app/package.json'. -Loading module '@component-type-checker/sdk' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__sdk' -Found 'package.json' at '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk/package.json'. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk.ts' does not exist. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk.tsx' does not exist. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk.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 './src/index.ts' that references '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk/src/index.ts'. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk/src/index.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk/src/index.ts', result '/home/src/projects/component-type-checker/packages/sdk/src/index.ts'. -======== Module name '@component-type-checker/sdk' was successfully resolved to '/home/src/projects/component-type-checker/packages/sdk/src/index.ts' with Package ID '@component-type-checker/sdk1@0.0.2'. ======== -======== Resolving module '@component-type-checker/components' from '/home/src/projects/component-type-checker/packages/app/src/app.tsx'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -File '/home/src/projects/component-type-checker/packages/app/src/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/component-type-checker/packages/app/package.json' exists according to earlier cached lookups. -Loading module '@component-type-checker/components' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__components' -Found 'package.json' at '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components/package.json'. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components.ts' does not exist. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components.tsx' does not exist. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components.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 './src/index.ts' that references '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components/src/index.ts'. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components/src/index.ts' exists - use it as a name resolution result. -'package.json' has a 'peerDependencies' field. -Resolving real path for '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components'. -Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/package.json'. -Found peerDependency '@component-type-checker/button' with '0.0.2' version. -Resolving real path for '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts'. -======== Module name '@component-type-checker/components' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts' with Package ID '@component-type-checker/components@0.0.1+@component-type-checker/button@0.0.2'. ======== -======== Resolving module '@component-type-checker/button' from '/home/src/projects/component-type-checker/packages/app/src/app.tsx'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -File '/home/src/projects/component-type-checker/packages/app/src/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/component-type-checker/packages/app/package.json' exists according to earlier cached lookups. -Loading module '@component-type-checker/button' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__button' -Found 'package.json' at '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button/package.json'. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button.ts' does not exist. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button.tsx' does not exist. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button.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 './src/index.ts' that references '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button/src/index.ts'. -File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button/src/index.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts'. -======== Module name '@component-type-checker/button' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts' with Package ID '@component-type-checker/button@0.0.2'. ======== -======== Resolving module '@component-type-checker/components' from '/home/src/projects/component-type-checker/packages/sdk/src/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -File '/home/src/projects/component-type-checker/packages/sdk/src/package.json' does not exist. -Found 'package.json' at '/home/src/projects/component-type-checker/packages/sdk/package.json'. -Loading module '@component-type-checker/components' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/projects/component-type-checker/packages/sdk/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/packages/sdk/src/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__components' -Found 'package.json' at '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components/package.json'. -File '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components.ts' does not exist. -File '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components.tsx' does not exist. -File '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components.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 './src/index.ts' that references '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components/src/index.ts'. -File '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components/src/index.ts' exists - use it as a name resolution result. -'package.json' has a 'peerDependencies' field. -Resolving real path for '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components'. -Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/package.json'. -Found peerDependency '@component-type-checker/button' with '0.0.1' version. -Resolving real path for '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts'. -======== Module name '@component-type-checker/components' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts' with Package ID '@component-type-checker/components@0.0.1+@component-type-checker/button@0.0.1'. ======== -======== Resolving module '@component-type-checker/button' from '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/package.json' does not exist. -Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/package.json'. -Loading module '@component-type-checker/button' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__button' -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__button' -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__button' -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/package.json' exists according to earlier cached lookups. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button.ts' does not exist. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button.tsx' does not exist. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button.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 './src/index.ts' that references '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts'. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts'. -======== Module name '@component-type-checker/button' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts' with Package ID '@component-type-checker/button@0.0.1'. ======== -======== Resolving module '@component-type-checker/button' from '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts'. ======== -Explicitly specified module resolution kind: 'Bundler'. -Resolving in CJS mode with conditions 'import', 'types'. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/package.json' does not exist. -Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/package.json'. -Loading module '@component-type-checker/button' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__button' -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__button' -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/node_modules' does not exist, skipping all lookups in it. -Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/node_modules/@types' does not exist, skipping all lookups in it. -Scoped package detected, looking in 'component-type-checker__button' -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/package.json' exists according to earlier cached lookups. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button.ts' does not exist. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button.tsx' does not exist. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button.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 './src/index.ts' that references '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts'. -File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts' exists - use it as a name resolution result. -'package.json' does not have a 'peerDependencies' field. -Resolving real path for '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts'. -======== Module name '@component-type-checker/button' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts' with Package ID '@component-type-checker/button@0.0.2'. ======== -../../../../tslibs/TS/Lib/lib.es5.d.ts - Library 'lib.es5.d.ts' specified in compilerOptions -../../node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts - Imported via "@component-type-checker/button" from file '../../node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts' with packageId '@component-type-checker/button@0.0.1' -../../node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts - Imported via "@component-type-checker/components" from file '../sdk/src/index.ts' with packageId '@component-type-checker/components@0.0.1+@component-type-checker/button@0.0.1' -../sdk/src/index.ts - Imported via "@component-type-checker/sdk" from file 'src/app.tsx' with packageId '@component-type-checker/sdk1@0.0.2' -../../node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts - Imported via "@component-type-checker/button" from file '../../node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts' with packageId '@component-type-checker/button@0.0.2' - Imported via "@component-type-checker/button" from file 'src/app.tsx' with packageId '@component-type-checker/button@0.0.2' -../../node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts - Imported via "@component-type-checker/components" from file 'src/app.tsx' with packageId '@component-type-checker/components@0.0.1+@component-type-checker/button@0.0.2' -src/app.tsx - Matched by include pattern 'src' in 'tsconfig.json' -//// [/home/src/projects/component-type-checker/packages/app/dist/app.js] *new* -import { createButton } from "@component-type-checker/button"; -const button = createButton(); - -//// [/home/src/tslibs/TS/Lib/lib.es5.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - diff --git a/testdata/baselines/reference/tsc/noCheck/dts-errors-with-incremental.js b/testdata/baselines/reference/tsc/noCheck/dts-errors-with-incremental.js deleted file mode 100644 index 31b85a5cb9..0000000000 --- a/testdata/baselines/reference/tsc/noCheck/dts-errors-with-incremental.js +++ /dev/null @@ -1,1382 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": true - } -} - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1810 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: no change - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1307 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [2]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [3]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = class { private p = 10; }; - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1806 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [7]:: no change - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [8]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1753 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1303 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [10]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/c.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/c.ts - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = class { private p = 10; }; - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 2114 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1611 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [14]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [15]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [16]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noCheck/dts-errors.js b/testdata/baselines/reference/tsc/noCheck/dts-errors.js deleted file mode 100644 index e7df523f48..0000000000 --- a/testdata/baselines/reference/tsc/noCheck/dts-errors.js +++ /dev/null @@ -1,447 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": false - } -} - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - - - - -Edit [0]:: no change - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [2]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [3]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [4]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [5]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = class { private p = 10; }; - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [7]:: no change - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [8]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [10]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - - - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = class { private p = 10; }; - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [14]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [15]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [16]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noCheck/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsc/noCheck/semantic-errors-with-incremental.js deleted file mode 100644 index 79f7062075..0000000000 --- a/testdata/baselines/reference/tsc/noCheck/semantic-errors-with-incremental.js +++ /dev/null @@ -1,1194 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a: number = "hello"; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": true - } -} - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1311 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1307 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [2]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [3]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a: number = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1307 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [7]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [8]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello"; -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1398 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1303 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [10]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/c.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/c.ts - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a: number = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", - "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1615 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1611 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [14]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [15]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [16]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noCheck/semantic-errors.js b/testdata/baselines/reference/tsc/noCheck/semantic-errors.js deleted file mode 100644 index a845267123..0000000000 --- a/testdata/baselines/reference/tsc/noCheck/semantic-errors.js +++ /dev/null @@ -1,337 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a: number = "hello"; -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": false - } -} - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - - - - -Edit [0]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [2]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [3]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [4]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [5]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a: number = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [7]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [8]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello"; -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [10]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - - - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a: number = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a: number; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [14]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [15]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [16]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noCheck/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsc/noCheck/syntax-errors-with-incremental.js deleted file mode 100644 index 3dea3854e6..0000000000 --- a/testdata/baselines/reference/tsc/noCheck/syntax-errors-with-incremental.js +++ /dev/null @@ -1,1242 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = "hello -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": true - } -} - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1318 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: no change - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "size": 1307 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [2]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/a.ts -*not cached* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [3]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: - - -Edit [4]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1314 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [7]:: no change - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [8]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1294 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1303 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [10]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/c.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/c.ts - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1622 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "checkPending": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - "./a.ts", - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1611 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [14]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", - "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1589 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/a.ts -Signatures:: - - -Edit [15]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [16]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noCheck/syntax-errors.js b/testdata/baselines/reference/tsc/noCheck/syntax-errors.js deleted file mode 100644 index 196a61e059..0000000000 --- a/testdata/baselines/reference/tsc/noCheck/syntax-errors.js +++ /dev/null @@ -1,392 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -export const a = "hello -//// [/home/src/workspaces/project/b.ts] *new* -export const b = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "declaration": true, - "incremental": false - } -} - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -export declare const a = "hello"; - -//// [/home/src/workspaces/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/workspaces/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - - - - -Edit [0]:: no change - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [1]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [2]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [3]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [4]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [5]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [6]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [7]:: no change - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [8]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [9]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [10]:: No Change run with checking - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* - - - -Edit [11]:: Add file with error -//// [/home/src/workspaces/project/c.ts] *new* -export const c: number = "hello"; - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *new* -export declare const c: number; - -//// [/home/src/workspaces/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -exports.c = "hello"; - - - - -Edit [12]:: Introduce error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello - -tsgo --noCheck -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [13]:: Fix `a` error with noCheck -//// [/home/src/workspaces/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [14]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [15]:: no change - -tsgo --noCheck -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - - - -Edit [16]:: No Change run with checking - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const c: number = "hello"; -   ~ - - -Found 1 error in c.ts:1 - -//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/b.js] *rewrite with same content* -//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/c.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noEmit/changes-composite.js b/testdata/baselines/reference/tsc/noEmit/changes-composite.js deleted file mode 100644 index 684ab7b066..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/changes-composite.js +++ /dev/null @@ -1,1573 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/class.d.ts] *new* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* -import { classC } from './class'; -export declare class indirectClass { - classC: classC; -} - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* -export declare function writeLog(s: string): void; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* -declare function someFunc(arguments: boolean, ...rest: any[]): void; - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", - "size": 2590 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/class.ts -(stored at emit) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts - - -Edit [0]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: Introduce error but still noEmit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts","emitSignatures":[[2,"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|Dts", - 2 - ], - [ - "./src/directUse.ts", - "Dts", - [ - 4 - ] - ], - [ - "./src/indirectClass.ts", - "Js|Dts", - 3 - ], - [ - "./src/indirectUse.ts", - "Dts", - [ - 5 - ] - ] - ], - "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", - "emitSignatures": [ - { - "file": "./src/class.ts", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "original": [ - 2, - "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n" - ] - }, - { - "file": "./src/directUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 4, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - }, - { - "file": "./src/indirectUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 5, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - } - ], - "size": 3190 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: Fix error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", - "size": 2590 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [4]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [6]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [8]:: Introduce error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop1: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"latestChangedDtsFile":"./src/class.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./src/class.d.ts", - "size": 3093 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [9]:: No Change run with emit - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: No Change run with emit - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [13]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]],"latestChangedDtsFile":"./src/class.d.ts","emitSignatures":[[2,"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "latestChangedDtsFile": "./src/class.d.ts", - "emitSignatures": [ - { - "file": "./src/class.ts", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "original": [ - 2, - "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n" - ] - }, - { - "file": "./src/directUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 4, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - }, - { - "file": "./src/indirectUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 5, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - } - ], - "size": 2648 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [14]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/class.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/class.d.ts", - "size": 2562 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [15]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [16]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [17]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/changes-incremental-declaration.js b/testdata/baselines/reference/tsc/noEmit/changes-incremental-declaration.js deleted file mode 100644 index 5b783b64e3..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/changes-incremental-declaration.js +++ /dev/null @@ -1,1525 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true, "declaration": true } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/class.d.ts] *new* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* -import { classC } from './class'; -export declare class indirectClass { - classC: classC; -} - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* -export declare function writeLog(s: string): void; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* -declare function someFunc(arguments: boolean, ...rest: any[]): void; - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/src/class.ts -(stored at emit) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts - - -Edit [0]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: Introduce error but still noEmit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|Dts", - 2 - ], - [ - "./src/directUse.ts", - "Dts", - [ - 4 - ] - ], - [ - "./src/indirectClass.ts", - "Js|Dts", - 3 - ], - [ - "./src/indirectUse.ts", - "Dts", - [ - 5 - ] - ] - ], - "size": 2906 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: Fix error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [4]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [6]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [8]:: Introduce error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop1: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "size": 3053 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [9]:: No Change run with emit - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: No Change run with emit - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [13]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "size": 2391 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [14]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [15]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [16]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [17]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/changes-incremental.js b/testdata/baselines/reference/tsc/noEmit/changes-incremental.js deleted file mode 100644 index e7d2f13ae7..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/changes-incremental.js +++ /dev/null @@ -1,1356 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true } -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 1737 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: - - -Edit [0]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: Introduce error but still noEmit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,4,3,5]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js", - 2 - ], - [ - "./src/directUse.ts", - "Js", - 4 - ], - [ - "./src/indirectClass.ts", - "Js", - 3 - ], - [ - "./src/indirectUse.ts", - "Js", - 5 - ] - ], - "size": 2807 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(computed .d.ts) /home/src/workspaces/project/src/directUse.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: Fix error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/directUse.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2051 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [4]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [6]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [8]:: Introduce error and emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "size": 2582 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [9]:: No Change run with emit - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [10]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [11]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [12]:: No Change run with emit - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [13]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js", - 2 - ], - [ - "./src/indirectClass.ts", - "Js", - 3 - ] - ], - "size": 2084 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [14]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2051 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [15]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [16]:: No Change run with noEmit - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [17]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-composite.js b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-composite.js deleted file mode 100644 index 36c0d08c5f..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-composite.js +++ /dev/null @@ -1,1092 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "composite": true } -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,17],[3,17],[5,17],[6,17],[7,17]],"emitSignatures":[2,3,4,5,6,7]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "Js|DtsEmit", - [ - 4, - 17 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "Js|DtsEmit", - [ - 5, - 17 - ] - ], - [ - "./src/noChangeFile.ts", - "Js|DtsEmit", - [ - 6, - 17 - ] - ], - [ - "./src/noChangeFileWithEmitSpecificError.ts", - "Js|DtsEmit", - [ - 7, - 17 - ] - ] - ], - "emitSignatures": [ - { - "file": "./src/class.ts", - "original": 2 - }, - { - "file": "./src/indirectClass.ts", - "original": 3 - }, - { - "file": "./src/directUse.ts", - "original": 4 - }, - { - "file": "./src/indirectUse.ts", - "original": 5 - }, - { - "file": "./src/noChangeFile.ts", - "original": 6 - }, - { - "file": "./src/noChangeFileWithEmitSpecificError.ts", - "original": 7 - } - ], - "size": 1868 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: - - -Edit [0]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.d.ts] *new* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* -import { classC } from './class'; -export declare class indirectClass { - classC: classC; -} - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* -export declare function writeLog(s: string): void; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* -declare function someFunc(arguments: boolean, ...rest: any[]): void; - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", - "size": 2590 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/class.ts -(stored at emit) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts - - -Edit [1]:: Introduce error with emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop1: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"latestChangedDtsFile":"./src/class.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "latestChangedDtsFile": "./src/class.d.ts", - "size": 3093 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [2]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]],"latestChangedDtsFile":"./src/class.d.ts","emitSignatures":[[2,"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "latestChangedDtsFile": "./src/class.d.ts", - "emitSignatures": [ - { - "file": "./src/class.ts", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "original": [ - 2, - "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n" - ] - }, - { - "file": "./src/directUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 4, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - }, - { - "file": "./src/indirectUse.ts", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "original": [ - 5, - "abe7d9981d6018efb6b2b794f40a1607-export {};\n" - ] - } - ], - "size": 2648 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/class.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "composite": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "latestChangedDtsFile": "./src/class.d.ts", - "size": 2562 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts diff --git a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental-declaration.js b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental-declaration.js deleted file mode 100644 index 06cf8ee6c6..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental-declaration.js +++ /dev/null @@ -1,1042 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true, "declaration": true } -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,17],[3,17],[5,17],[6,17],[7,17]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "Js|DtsEmit", - [ - 4, - 17 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "Js|DtsEmit", - [ - 5, - 17 - ] - ], - [ - "./src/noChangeFile.ts", - "Js|DtsEmit", - [ - 6, - 17 - ] - ], - [ - "./src/noChangeFileWithEmitSpecificError.ts", - "Js|DtsEmit", - [ - 7, - 17 - ] - ] - ], - "size": 1839 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: - - -Edit [0]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.d.ts] *new* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* -import { classC } from './class'; -export declare class indirectClass { - classC: classC; -} - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* -export declare function writeLog(s: string): void; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* -declare function someFunc(arguments: boolean, ...rest: any[]): void; - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/class.ts -(stored at emit) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts -(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts - - -Edit [1]:: Introduce error with emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop1: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "size": 3053 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [2]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./src/directUse.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./src/indirectClass.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./src/indirectUse.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "size": 2391 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.d.ts] *modified* -export declare class classC { - prop: number; -} - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "options": { - "declaration": true - }, - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2522 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/workspaces/project/src/directUse.ts -(stored at emit) /home/src/workspaces/project/src/indirectUse.ts diff --git a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental.js b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental.js deleted file mode 100644 index 30ecfe7660..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental.js +++ /dev/null @@ -1,888 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/src/class.ts] *new* -export class classC { - prop = 1; -} -//// [/home/src/workspaces/project/src/directUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/indirectClass.ts] *new* -import { classC } from './class'; -export class indirectClass { - classC = new classC(); -} -//// [/home/src/workspaces/project/src/indirectUse.ts] *new* -import { indirectClass } from './indirectClass'; -new indirectClass().classC.prop; -//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* -export function writeLog(s: string) { -} -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* -function someFunc(arguments: boolean, ...rest: any[]) { -} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { "incremental": true } -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,4,3,5,6,7]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js", - 2 - ], - [ - "./src/directUse.ts", - "Js", - 4 - ], - [ - "./src/indirectClass.ts", - "Js", - 3 - ], - [ - "./src/indirectUse.ts", - "Js", - 5 - ], - [ - "./src/noChangeFile.ts", - "Js", - 6 - ], - [ - "./src/noChangeFileWithEmitSpecificError.ts", - "Js", - 7 - ] - ], - "size": 1778 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -*refresh* /home/src/workspaces/project/src/noChangeFile.ts -*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts -Signatures:: - - -Edit [0]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/indirectClass.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.indirectClass = void 0; -const class_1 = require("./class"); -class indirectClass { - classC = new class_1.classC(); -} -exports.indirectClass = indirectClass; - -//// [/home/src/workspaces/project/src/indirectUse.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const indirectClass_1 = require("./indirectClass"); -new indirectClass_1.indirectClass().classC.prop; - -//// [/home/src/workspaces/project/src/noChangeFile.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeLog = writeLog; -function writeLog(s) { -} - -//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* -function someFunc(arguments, ...rest) { -} - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 1737 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Introduce error with emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop1 = 1; -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 'prop1' is declared here. - 2 prop1 = 1; -    ~~~~~ - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop1 = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/directUse.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/src/indirectUse.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", - "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./src/directUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ], - [ - "./src/indirectUse.ts", - [ - { - "pos": 76, - "end": 80, - "code": 2551, - "category": 1, - "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./src/class.ts", - "pos": 26, - "end": 31, - "code": 2728, - "category": 3, - "message": "'prop1' is declared here." - } - ] - } - ] - ] - ], - "size": 2770 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(computed .d.ts) /home/src/workspaces/project/src/directUse.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [2]:: Fix error and no emit -//// [/home/src/workspaces/project/src/class.ts] *modified* -export class classC { - prop = 1; -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "affectedFilesPendingEmit": [ - [ - "./src/class.ts", - "Js", - 2 - ], - [ - "./src/indirectClass.ts", - "Js", - 3 - ] - ], - "size": 2084 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/src/class.ts -*refresh* /home/src/workspaces/project/src/indirectClass.ts -*refresh* /home/src/workspaces/project/src/directUse.ts -*refresh* /home/src/workspaces/project/src/indirectUse.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/src/class.ts -(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts -(used version) /home/src/workspaces/project/src/directUse.ts -(used version) /home/src/workspaces/project/src/indirectUse.ts - - -Edit [3]:: No Change run with emit - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/src/class.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classC = void 0; -class classC { - prop = 1; -} -exports.classC = classC; - -//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "original": [ - 2, - 7 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./src/class.ts", - "./src/indirectClass.ts", - "./src/directUse.ts", - "./src/indirectUse.ts", - "./src/noChangeFile.ts", - "./src/noChangeFileWithEmitSpecificError.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/class.ts", - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", - "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/indirectClass.ts", - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./src/directUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/indirectUse.ts", - "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFile.ts", - "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./src/noChangeFileWithEmitSpecificError.ts", - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "./src/indirectClass.ts" - ], - [ - "./src/class.ts" - ] - ], - "referencedMap": { - "./src/directUse.ts": [ - "./src/indirectClass.ts" - ], - "./src/indirectClass.ts": [ - "./src/class.ts" - ], - "./src/indirectUse.ts": [ - "./src/indirectClass.ts" - ] - }, - "size": 2051 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js deleted file mode 100644 index fbd4468cd3..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js +++ /dev/null @@ -1,1586 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/c.ts] *new* -export const c = class { private p = 10; }; -//// [/home/src/projects/project/d.ts] *new* -export const d = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - } -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"affectedFilesPendingEmit":[2,3,4,5]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - } - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ], - [ - "./c.ts", - "Js", - 4 - ], - [ - "./d.ts", - "Js", - 5 - ] - ], - "size": 1217 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -*refresh* /home/src/projects/project/c.ts -*refresh* /home/src/projects/project/d.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: With declaration enabled noEmit - Should report errors - -tsgo --noEmit --declaration -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 3 errors in 3 files. - -Errors Files - 1 a.ts:1 - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17],[4,17],[5,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ], - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "./c.ts", - "Js|DtsEmit", - [ - 4, - 17 - ] - ], - [ - "./d.ts", - "Js|DtsEmit", - [ - 5, - 17 - ] - ] - ], - "size": 2084 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [2]:: With declaration and declarationMap noEmit - Should report errors - -tsgo --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 3 errors in 3 files. - -Errors Files - 1 a.ts:1 - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,49],[4,49],[5,49]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ], - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit|DtsMap", - [ - 2, - 49 - ] - ], - [ - "./b.ts", - "Js|DtsEmit|DtsMap", - [ - 3, - 49 - ] - ], - [ - "./c.ts", - "Js|DtsEmit|DtsMap", - [ - 4, - 49 - ] - ], - [ - "./d.ts", - "Js|DtsEmit|DtsMap", - [ - 5, - 49 - ] - ] - ], - "size": 2106 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: Dts Emit with error - -tsgo --declaration -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 3 errors in 3 files. - -Errors Files - 1 a.ts:1 - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/a.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/home/src/projects/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/c.d.ts] *new* -export declare const c: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/c.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.c = void 0; -const c = class { - p = 10; -}; -exports.c = c; - -//// [/home/src/projects/project/d.d.ts] *new* -export declare const d: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/d.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.d = void 0; -const d = class { - p = 10; -}; -exports.d = d; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ], - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "size": 3087 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/projects/project/a.ts -(stored at emit) /home/src/projects/project/b.ts -(stored at emit) /home/src/projects/project/c.ts -(stored at emit) /home/src/projects/project/d.ts - - -Edit [5]:: Fix the error -//// [/home/src/projects/project/a.ts] *modified* -export const a = class { public p = 10; }; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "emitDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 2663 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: With declaration enabled noEmit - -tsgo --noEmit --declaration -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 2 errors in 2 files. - -Errors Files - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,16],[4,16],[5,16]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "DtsEmit", - [ - 3, - 16 - ] - ], - [ - "./c.ts", - "DtsEmit", - [ - 4, - 16 - ] - ], - [ - "./d.ts", - "DtsEmit", - [ - 5, - 16 - ] - ] - ], - "size": 2720 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: With declaration and declarationMap noEmit - -tsgo --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - Add a type annotation to the variable c. - 1 export const c = class { private p = 10; }; -    ~ - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 2 errors in 2 files. - -Errors Files - 1 c.ts:1 - 1 d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,48],[4,48],[5,48]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", - "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "emitDiagnosticsPerFile": [ - [ - "./c.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable c." - } - ] - } - ] - ], - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit|DtsMap", - [ - 2, - 49 - ] - ], - [ - "./b.ts", - "DtsEmit|DtsMap", - [ - 3, - 48 - ] - ], - [ - "./c.ts", - "DtsEmit|DtsMap", - [ - 4, - 48 - ] - ], - [ - "./d.ts", - "DtsEmit|DtsMap", - [ - 5, - 48 - ] - ] - ], - "size": 2742 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [8]:: Fix the another -//// [/home/src/projects/project/c.ts] *modified* -export const c = class { public p = 10; }; - -tsgo --noEmit --declaration --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - Add a type annotation to the variable d. - 1 export const d = class { private p = 10; }; -    ~ - - -Found 1 error in d.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };","signature":"17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,48],[4,49],[5,48]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "original": [ - 2, - 5 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts", - "./c.ts", - "./d.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./c.ts", - "version": "dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };", - "signature": "17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };", - "signature": "17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./d.ts", - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", - "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true, - "declarationMap": true - }, - "emitDiagnosticsPerFile": [ - [ - "./d.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable d." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit|DtsMap", - [ - 2, - 49 - ] - ], - [ - "./b.ts", - "DtsEmit|DtsMap", - [ - 3, - 48 - ] - ], - [ - "./c.ts", - "Js|DtsEmit|DtsMap", - [ - 4, - 49 - ] - ], - [ - "./d.ts", - "DtsEmit|DtsMap", - [ - 5, - 48 - ] - ] - ], - "size": 2318 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/c.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/c.ts diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental-as-modules.js deleted file mode 100644 index 0813159493..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,655 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 13, - "end": 14, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ] - ], - "size": 1368 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - Add a type annotation to the variable a. - 1 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17],[3,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "./b.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ] - ], - "size": 1181 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.d.ts] *new* -export declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.d.ts] *new* -export declare const b = 10; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1250 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: -(stored at emit) /home/src/projects/project/b.ts - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1795 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1759 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental.js deleted file mode 100644 index 21f7e2d3af..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental.js +++ /dev/null @@ -1,564 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": true - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1341 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1117 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.d.ts] *new* -declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "size": 1081 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ] - ], - "size": 1614 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": true - }, - "emitDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 6, - "end": 7, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "size": 1578 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js deleted file mode 100644 index ad330475c2..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js +++ /dev/null @@ -1,482 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = class { private p = 10; }; -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1069 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1393 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1362 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental.js deleted file mode 100644 index e75cb2871d..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental.js +++ /dev/null @@ -1,416 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1051 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1324 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", - "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1293 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled.js deleted file mode 100644 index 3fad90e79f..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled.js +++ /dev/null @@ -1,116 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - - - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - - - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors.js b/testdata/baselines/reference/tsc/noEmit/dts-errors.js deleted file mode 100644 index c7f5c76797..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/dts-errors.js +++ /dev/null @@ -1,186 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = class { private p = 10; }; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": true - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.d.ts] *new* -declare const a = "hello"; - -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - - - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = class { private p = 10; }; - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.d.ts] *modified* -declare const a: { - new (): { - p: number; - }; -}; - -//// [/home/src/projects/project/a.js] *modified* -const a = class { - p = 10; -}; - - - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -1 const a = class { private p = 10; }; -   ~ - - a.ts:1:7 - Add a type annotation to the variable a. - 1 const a = class { private p = 10; }; -    ~ - - -Found 1 error in a.ts:1 - - diff --git a/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental-as-modules.js deleted file mode 100644 index 549ea01b34..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,562 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a: number = "hello" -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", - "signature": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1204 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 export const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1327 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1296 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental.js deleted file mode 100644 index d8d37eb0bb..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental.js +++ /dev/null @@ -1,494 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a: number = "hello" -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1184 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1258 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *rewrite with same content* -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", - "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "size": 1227 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/semantic-errors.js b/testdata/baselines/reference/tsc/noEmit/semantic-errors.js deleted file mode 100644 index 36fae3f3bb..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/semantic-errors.js +++ /dev/null @@ -1,152 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a: number = "hello" -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - - - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a: number = "hello" - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *rewrite with same content* - - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. - -1 const a: number = "hello" -   ~ - - -Found 1 error in a.ts:1 - - diff --git a/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental-as-modules.js deleted file mode 100644 index 7061ddd72e..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental-as-modules.js +++ /dev/null @@ -1,536 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -export const a = "hello -//// [/home/src/projects/project/b.ts] *new* -export const b = 10; -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "signature": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1101 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -*not cached* /home/src/projects/project/b.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:24 - error TS1002: Unterminated string literal. - -1 export const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -*not cached* /home/src/projects/project/b.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -export const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ], - [ - "./b.ts", - "Js", - 3 - ] - ], - "size": 1172 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -*refresh* /home/src/projects/project/b.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = "hello"; - -//// [/home/src/projects/project/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = void 0; -exports.b = 10; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "size": 1139 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"changeFileSet":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "changeFileSet": [ - "./a.ts" - ], - "size": 1189 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts" - ], - "size": 1197 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental.js deleted file mode 100644 index d972602abd..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental.js +++ /dev/null @@ -1,463 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = "hello -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "./a.ts" - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1081 -} -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js", - 2 - ] - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "size": 1082 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"changeFileSet":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "changeFileSet": [ - "./a.ts" - ], - "size": 1113 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - -//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[2]} -//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "./a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", - "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "declaration": false - }, - "semanticDiagnosticsPerFile": [ - "./a.ts" - ], - "size": 1126 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: -(computed .d.ts) /home/src/projects/project/a.ts - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/projects/project/a.ts -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/syntax-errors.js b/testdata/baselines/reference/tsc/noEmit/syntax-errors.js deleted file mode 100644 index af0bb3bd8b..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/syntax-errors.js +++ /dev/null @@ -1,154 +0,0 @@ -currentDirectory::/home/src/projects/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/projects/project/a.ts] *new* -const a = "hello -//// [/home/src/projects/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": false, - "declaration": false - } -} - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - - - -Edit [1]:: Fix error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello"; - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [2]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [3]:: Emit after fixing error - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/projects/project/a.js] *new* -const a = "hello"; - - - - -Edit [4]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - - - -Edit [5]:: Introduce error -//// [/home/src/projects/project/a.ts] *modified* -const a = "hello - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - - - -Edit [6]:: Emit when error - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/projects/project/a.js] *modified* -const a = "hello; - - - - -Edit [7]:: no change - -tsgo --noEmit -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:17 - error TS1002: Unterminated string literal. - -1 const a = "hello -   ~ - - -Found 1 error in a.ts:1 - - diff --git a/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js b/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js deleted file mode 100644 index 30347c3a4c..0000000000 --- a/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js +++ /dev/null @@ -1,105 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/class1.ts] *new* -export class class1 {} -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "incremental": true, - "strict": true - } -} - -tsgo --noEmit -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./class1.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ee12676c27db5c4cb0594b79ca02cbb0-export class class1 {}"],"options":{"strict":true},"affectedFilesPendingEmit":[2]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./class1.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "./class1.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./class1.ts", - "version": "ee12676c27db5c4cb0594b79ca02cbb0-export class class1 {}", - "signature": "ee12676c27db5c4cb0594b79ca02cbb0-export class class1 {}", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "strict": true - }, - "affectedFilesPendingEmit": [ - [ - "./class1.ts", - "Js", - 2 - ] - ], - "size": 976 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/class1.ts -Signatures:: - - -Edit [0]:: no change - -tsgo --noEmit -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration-with-incremental.js deleted file mode 100644 index 9ad5ae42c0..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration-with-incremental.js +++ /dev/null @@ -1,364 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":53,"end":54,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":53,"end":54,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17],[4,17]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "signature": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "emitDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 53, - "end": 54, - "code": 4094, - "category": 1, - "message": "Property 'p' of exported anonymous class type may not be private or protected.", - "relatedInformation": [ - { - "pos": 53, - "end": 54, - "code": 9027, - "category": 1, - "message": "Add a type annotation to the variable a." - } - ] - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js|DtsEmit", - [ - 2, - 17 - ] - ], - [ - "../src/main.ts", - "Js|DtsEmit", - [ - 3, - 17 - ] - ], - [ - "../src/other.ts", - "Js|DtsEmit", - [ - 4, - 17 - ] - ] - ], - "size": 1628 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in src/main.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1656 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts -(stored at emit) /user/username/projects/noEmitOnError/src/other.ts - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration.js b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration.js deleted file mode 100644 index be55cad377..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration.js +++ /dev/null @@ -1,140 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. - -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - Add a type annotation to the variable a. - 2 export const a = class { private p = 10; }; -    ~ - - -Found 1 error in src/main.ts:2 - - - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export declare const a: { - new (): { - p: number; - }; -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - - - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-incremental.js deleted file mode 100644 index 2a7fd5a479..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-incremental.js +++ /dev/null @@ -1,265 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "signature": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1289 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", - "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1437 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors.js b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors.js deleted file mode 100644 index 4c1b51f4f2..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors.js +++ /dev/null @@ -1,104 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -export const a = class { private p = 10; }; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - - - - -Edit [0]:: no change - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* - - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -export const a = class { p = 10; }; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* - - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noEmitOnError/file-deleted-before-fixing-error-with-noEmitOnError.js b/testdata/baselines/reference/tsc/noEmitOnError/file-deleted-before-fixing-error-with-noEmitOnError.js deleted file mode 100644 index 68b5044997..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/file-deleted-before-fixing-error-with-noEmitOnError.js +++ /dev/null @@ -1,220 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/file1.ts] *new* -export const x: 30 = "hello"; -//// [/home/src/workspaces/project/file2.ts] *new* -export class D { } -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "outDir", - "noEmitOnError": true, - }, -} - -tsgo -i -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -file1.ts:1:14 - error TS2322: Type '"hello"' is not assignable to type '30'. - -1 export const x: 30 = "hello"; -   ~ - - -Found 1 error in file1.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../file1.ts","../file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";","f7d221ab360f516a6280e3b725f4cd31-export class D { }"],"options":{"noEmitOnError":true,"outDir":"./"},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type '\"hello\"' is not assignable to type '30'."}]]],"affectedFilesPendingEmit":[2,3]} -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../file1.ts", - "../file2.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../file1.ts", - "../file2.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../file1.ts", - "version": "15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";", - "signature": "15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../file2.ts", - "version": "f7d221ab360f516a6280e3b725f4cd31-export class D { }", - "signature": "f7d221ab360f516a6280e3b725f4cd31-export class D { }", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "noEmitOnError": true, - "outDir": "./" - }, - "semanticDiagnosticsPerFile": [ - [ - "../file1.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type '\"hello\"' is not assignable to type '30'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../file1.ts", - "Js", - 2 - ], - [ - "../file2.ts", - "Js", - 3 - ] - ], - "size": 1223 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/file1.ts -*refresh* /home/src/workspaces/project/file2.ts -Signatures:: - - -Edit [0]:: delete file without error -//// [/home/src/workspaces/project/file2.ts] *deleted* - -tsgo -i -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -file1.ts:1:14 - error TS2322: Type '"hello"' is not assignable to type '30'. - -1 export const x: 30 = "hello"; -   ~ - - -Found 1 error in file1.ts:1 - -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../file1.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";"],"options":{"noEmitOnError":true,"outDir":"./"},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type '\"hello\"' is not assignable to type '30'."}]]],"affectedFilesPendingEmit":[2]} -//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../file1.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../file1.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../file1.ts", - "version": "15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";", - "signature": "15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";", - "impliedNodeFormat": "CommonJS" - } - ], - "options": { - "noEmitOnError": true, - "outDir": "./" - }, - "semanticDiagnosticsPerFile": [ - [ - "../file1.ts", - [ - { - "pos": 13, - "end": 14, - "code": 2322, - "category": 1, - "message": "Type '\"hello\"' is not assignable to type '30'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../file1.ts", - "Js", - 2 - ] - ], - "size": 1149 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration-with-incremental.js deleted file mode 100644 index 19e0e565e2..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration-with-incremental.js +++ /dev/null @@ -1,330 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a: string = 10; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 46, - "end": 47, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js|Dts", - 2 - ], - [ - "../src/main.ts", - "Js|Dts", - 3 - ], - [ - "../src/other.ts", - "Js|Dts", - 4 - ] - ], - "size": 1445 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1587 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts -(stored at emit) /user/username/projects/noEmitOnError/src/other.ts - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration.js b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration.js deleted file mode 100644 index 0c81e93b84..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration.js +++ /dev/null @@ -1,124 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a: string = 10; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - - - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - - - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-incremental.js deleted file mode 100644 index 6720293a58..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-incremental.js +++ /dev/null @@ -1,307 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a: string = 10; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../src/main.ts", - [ - { - "pos": 46, - "end": 47, - "code": 2322, - "category": 1, - "message": "Type 'number' is not assignable to type 'string'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js", - 2 - ], - [ - "../src/main.ts", - "Js", - 3 - ], - [ - "../src/other.ts", - "Js", - 4 - ] - ], - "size": 1446 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1368 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /user/username/projects/noEmitOnError/src/main.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors.js b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors.js deleted file mode 100644 index 7e8a424be9..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors.js +++ /dev/null @@ -1,110 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a: string = 10; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 const a: string = 10; -   ~ - - -Found 1 error in src/main.ts:2 - - - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a: string = "hello"; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = "hello"; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - - - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration-with-incremental.js deleted file mode 100644 index deb1013ad3..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration-with-incremental.js +++ /dev/null @@ -1,336 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js|Dts", - 2 - ], - [ - "../src/main.ts", - "Js|Dts", - 3 - ], - [ - "../src/other.ts", - "Js|Dts", - 4 - ] - ], - "size": 1369 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/main.ts", - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": true, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1596 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: -(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts -(stored at emit) /user/username/projects/noEmitOnError/src/other.ts - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration.js b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration.js deleted file mode 100644 index 9a6fa3efa3..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration.js +++ /dev/null @@ -1,130 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": true, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - - - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* -export interface A { - name: string; -} - -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* -export {}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - - - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-incremental.js deleted file mode 100644 index 99ef2044b1..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-incremental.js +++ /dev/null @@ -1,313 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": true, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "affectedFilesPendingEmit": [ - [ - "../shared/types/db.ts", - "Js", - 2 - ], - [ - "../src/main.ts", - "Js", - 3 - ], - [ - "../src/other.ts", - "Js", - 4 - ] - ], - "size": 1370 -} - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - - -tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts -*not cached* /user/username/projects/noEmitOnError/src/main.ts -*not cached* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} -//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "original": [ - 2, - 4 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../shared/types/db.ts", - "../src/main.ts", - "../src/other.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../shared/types/db.ts", - "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../src/main.ts", - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/other.ts", - "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", - "impliedNodeFormat": "CommonJS" - } - ], - "fileIdsList": [ - [ - "../shared/types/db.ts" - ] - ], - "options": { - "declaration": false, - "noEmitOnError": true, - "outDir": "./" - }, - "referencedMap": { - "../src/main.ts": [ - "../shared/types/db.ts" - ] - }, - "size": 1377 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts -*refresh* /user/username/projects/noEmitOnError/src/main.ts -*refresh* /user/username/projects/noEmitOnError/src/other.ts -Signatures:: -(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors.js b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors.js deleted file mode 100644 index 179d830561..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors.js +++ /dev/null @@ -1,116 +0,0 @@ -currentDirectory::/user/username/projects/noEmitOnError -useCaseSensitiveFileNames::true -Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* -export interface A { - name: string; -} -//// [/user/username/projects/noEmitOnError/src/main.ts] *new* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; -//// [/user/username/projects/noEmitOnError/src/other.ts] *new* -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* -{ - "compilerOptions": { - "outDir": "./dev-build", - "declaration": false, - "incremental": false, - "noEmitOnError": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - - - -Edit [0]:: no change - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -src/main.ts:4:1 - error TS1005: ',' expected. - -4 ; -  ~ - - -Found 1 error in src/main.ts:4 - - - - -Edit [1]:: Fix error -//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -}; - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = { - lastName: 'sdsd' -}; - -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -console.log("hi"); - - - - -Edit [2]:: no change - -tsgo -ExitStatus:: Success -Output:: -//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* -//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* - diff --git a/testdata/baselines/reference/tsc/noEmitOnError/when-declarationMap-changes.js b/testdata/baselines/reference/tsc/noEmitOnError/when-declarationMap-changes.js deleted file mode 100644 index 28ab717dad..0000000000 --- a/testdata/baselines/reference/tsc/noEmitOnError/when-declarationMap-changes.js +++ /dev/null @@ -1,376 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/a.ts] *new* -const x = 10; -//// [/home/src/workspaces/project/b.ts] *new* -const y = 10; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "noEmitOnError": true, - "declaration": true, - "composite": true, - }, -} - -tsgo -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/a.d.ts] *new* -declare const x = 10; - -//// [/home/src/workspaces/project/a.js] *new* -const x = 10; - -//// [/home/src/workspaces/project/b.d.ts] *new* -declare const y = 10; - -//// [/home/src/workspaces/project/b.js] *new* -const y = 10; - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4448aee3ffd6eaf52054c6f2413c128a-const y = 10;","signature":"b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"noEmitOnError":true},"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", - "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", - "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "noEmitOnError": true - }, - "latestChangedDtsFile": "./b.d.ts", - "size": 1332 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -*refresh* /home/src/workspaces/project/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/a.ts -(stored at emit) /home/src/workspaces/project/b.ts - - -Edit [0]:: error and enable declarationMap -//// [/home/src/workspaces/project/a.ts] *modified* -const x: 20 = 10; - -tsgo --declarationMap -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -a.ts:1:7 - error TS2322: Type '10' is not assignable to type '20'. - -1 const x: 20 = 10; -   ~ - - -Found 1 error in a.ts:1 - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6792320cbdee0286d2b3e83ff1d9fcc1-const x: 20 = 10;","signature":"c4dd771ef0ee0838482d28bc7dea6269-declare const x: 20;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4448aee3ffd6eaf52054c6f2413c128a-const y = 10;","signature":"b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type '10' is not assignable to type '20'."}]]],"affectedFilesPendingEmit":[2,[3,48]],"latestChangedDtsFile":"./b.d.ts","emitSignatures":[[2,["4be7af7f970696121f4f582a5d074177-declare const x = 10;\n"]],[3,[]]]} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "6792320cbdee0286d2b3e83ff1d9fcc1-const x: 20 = 10;", - "signature": "c4dd771ef0ee0838482d28bc7dea6269-declare const x: 20;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "6792320cbdee0286d2b3e83ff1d9fcc1-const x: 20 = 10;", - "signature": "c4dd771ef0ee0838482d28bc7dea6269-declare const x: 20;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", - "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", - "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "noEmitOnError": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.ts", - [ - { - "pos": 6, - "end": 7, - "code": 2322, - "category": 1, - "message": "Type '10' is not assignable to type '20'." - } - ] - ] - ], - "affectedFilesPendingEmit": [ - [ - "./a.ts", - "Js|Dts|DtsMap", - 2 - ], - [ - "./b.ts", - "DtsEmit|DtsMap", - [ - 3, - 48 - ] - ] - ], - "latestChangedDtsFile": "./b.d.ts", - "emitSignatures": [ - { - "file": "./a.ts", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "differsInOptions": true, - "original": [ - 2, - [ - "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n" - ] - ] - }, - { - "file": "./b.ts", - "differsOnlyInDtsMap": true, - "original": [ - 3, - [] - ] - } - ], - "size": 1620 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts - - -Edit [1]:: fix error declarationMap -//// [/home/src/workspaces/project/a.ts] *modified* -const x = 10; - -tsgo --declarationMap -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/a.d.ts] *modified* -declare const x = 10; -//# sourceMappingURL=a.d.ts.map -//// [/home/src/workspaces/project/a.d.ts.map] *new* -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/a.js] *rewrite with same content* -//// [/home/src/workspaces/project/b.d.ts] *modified* -declare const y = 10; -//# sourceMappingURL=b.d.ts.map -//// [/home/src/workspaces/project/b.d.ts.map] *new* -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,CAAC,KAAK,CAAC"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4448aee3ffd6eaf52054c6f2413c128a-const y = 10;","signature":"b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true},"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "./a.ts", - "./b.ts" - ], - "original": [ - 2, - 3 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./a.ts", - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", - "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "./b.ts", - "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", - "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", - "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "noEmitOnError": true - }, - "latestChangedDtsFile": "./b.d.ts", - "size": 1354 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/a.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js b/testdata/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js deleted file mode 100644 index 6a508b1a77..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js +++ /dev/null @@ -1,89 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/app/src/index.ts] *new* -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 -//// [/home/src/workspaces/project/app/src/local.ts] *new* -export const local = 0; -//// [/home/src/workspaces/project/app/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "esnext", - "moduleResolution": "bundler", - "rootDir": "src", - "outDir": "dist", - }, - "include": ["src"], - "references": [ - { "path": "../lib" }, - ], -} -//// [/home/src/workspaces/project/lib/dist/a.d.ts] *new* -export declare const a = 0; -//// [/home/src/workspaces/project/lib/src/a.ts] *new* -export const a = 0; -//// [/home/src/workspaces/project/lib/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "src", - "outDir": "dist", - "module": "esnext", - "moduleResolution": "bundler", - }, - "include": ["src"], -} -//// [/home/src/workspaces/project/node_modules/ambiguous-package/index.d.ts] *new* -export declare const ambiguous: number; -//// [/home/src/workspaces/project/node_modules/ambiguous-package/package.json] *new* -{ - "name": "ambiguous-package" -} -//// [/home/src/workspaces/project/node_modules/esm-package/index.d.ts] *new* -export declare const esm: number; -//// [/home/src/workspaces/project/node_modules/esm-package/package.json] *new* -{ - "name": "esm-package", - "type": "module" -} - -tsgo --p app --pretty false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -app/src/index.ts(1,8): error TS2613: Module '"/home/src/workspaces/project/app/src/local"' has no default export. Did you mean to use 'import { local } from "/home/src/workspaces/project/app/src/local"' instead? -app/src/index.ts(2,8): error TS2613: Module '"/home/src/workspaces/project/node_modules/esm-package/index"' has no default export. Did you mean to use 'import { esm } from "/home/src/workspaces/project/node_modules/esm-package/index"' instead? -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/app/dist/index.js] *new* -export {}; - -//// [/home/src/workspaces/project/app/dist/local.js] *new* -export const local = 0; - - diff --git a/testdata/baselines/reference/tsc/projectReferences/default-setup-was-created-correctly.js b/testdata/baselines/reference/tsc/projectReferences/default-setup-was-created-correctly.js deleted file mode 100644 index bd3ffd157f..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/default-setup-was-created-correctly.js +++ /dev/null @@ -1,114 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/primary/a.ts] *new* -export { }; -//// [/home/src/workspaces/project/primary/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - } -} -//// [/home/src/workspaces/project/secondary/b.ts] *new* -import * as mod_1 from "../primary/a"; -//// [/home/src/workspaces/project/secondary/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "references": [{ - "path": "../primary" - }] -} - -tsgo --p primary/tsconfig.json -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/primary/bin/a.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/primary/bin/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3145b36c4687eb0550eabb198d0c0d22-export { };","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../a.ts", - "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./a.d.ts", - "size": 1075 -} - -primary/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/primary/a.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/primary/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js b/testdata/baselines/reference/tsc/projectReferences/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js deleted file mode 100644 index 39592769fa..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js +++ /dev/null @@ -1,45 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/primary/a.ts] *new* -export { }; -//// [/home/src/workspaces/project/primary/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": false, - "outDir": "bin", - } -} -//// [/home/src/workspaces/project/reference/b.ts] *new* -import * as mod_1 from "../primary/a"; -//// [/home/src/workspaces/project/reference/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "files": [ ], - "references": [{ - "path": "../primary" - }] -} - -tsgo --p reference/tsconfig.json -ExitStatus:: Success -Output:: -//// [/home/src/workspaces/project/reference/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","fileInfos":[],"options":{"composite":true,"outDir":"./"}} -//// [/home/src/workspaces/project/reference/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "fileInfos": [], - "options": { - "composite": true, - "outDir": "./" - }, - "size": 85 -} - -reference/tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tsc/projectReferences/doesnt-infer-the-rootDir-from-source-paths.js b/testdata/baselines/reference/tsc/projectReferences/doesnt-infer-the-rootDir-from-source-paths.js deleted file mode 100644 index 2f3df08970..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/doesnt-infer-the-rootDir-from-source-paths.js +++ /dev/null @@ -1,105 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/alpha/src/a.ts] *new* -export const m: number = 3; -//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "references": [] -} - -tsgo --p alpha/tsconfig.json -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/alpha/bin/src/a.d.ts] *new* -export declare const m: number; - -//// [/home/src/workspaces/project/alpha/bin/src/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.m = void 0; -exports.m = 3; - -//// [/home/src/workspaces/project/alpha/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../src/a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b6cc65e84778a8f25c0bc94021b2656-export const m: number = 3;","signature":"b9eb93bd7f963b3a9524dc6c507eb73b-export declare const m: number;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/a.d.ts"} -//// [/home/src/workspaces/project/alpha/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../src/a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../src/a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/a.ts", - "version": "2b6cc65e84778a8f25c0bc94021b2656-export const m: number = 3;", - "signature": "b9eb93bd7f963b3a9524dc6c507eb73b-export declare const m: number;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "2b6cc65e84778a8f25c0bc94021b2656-export const m: number = 3;", - "signature": "b9eb93bd7f963b3a9524dc6c507eb73b-export declare const m: number;\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "latestChangedDtsFile": "./src/a.d.ts", - "size": 1120 -} - -alpha/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/alpha/src/a.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/alpha/src/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-a-file-is-outside-the-rootdir.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-a-file-is-outside-the-rootdir.js deleted file mode 100644 index f2762c5778..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/errors-when-a-file-is-outside-the-rootdir.js +++ /dev/null @@ -1,145 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/alpha/src/a.ts] *new* -import * as b from '../../beta/b' -//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "references": [] -} -//// [/home/src/workspaces/project/beta/b.ts] *new* -export { } - -tsgo --p alpha/tsconfig.json -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -alpha/src/a.ts:1:20 - error TS6307: File '/home/src/workspaces/project/beta/b.ts' is not listed within the file list of project '/home/src/workspaces/project/alpha/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -1 import * as b from '../../beta/b' -   ~~~~~~~~~~~~~~ - - -Found 1 error in alpha/src/a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/alpha/bin/src/a.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/alpha/bin/src/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/alpha/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[3],"fileNames":["lib.d.ts","../../beta/b.ts","../src/a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7aa180f19a42166d3166e266d7e59ec-export { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"48cb0b944bf6ab58a2c0fa2f1d92b81b-import * as b from '../../beta/b'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/a.d.ts"} -//// [/home/src/workspaces/project/alpha/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../src/a.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../../beta/b.ts", - "../src/a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../beta/b.ts", - "version": "c7aa180f19a42166d3166e266d7e59ec-export { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "c7aa180f19a42166d3166e266d7e59ec-export { }", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../src/a.ts", - "version": "48cb0b944bf6ab58a2c0fa2f1d92b81b-import * as b from '../../beta/b'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "48cb0b944bf6ab58a2c0fa2f1d92b81b-import * as b from '../../beta/b'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../beta/b.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../src/a.ts": [ - "../../beta/b.ts" - ] - }, - "latestChangedDtsFile": "./src/a.d.ts", - "size": 1321 -} -//// [/home/src/workspaces/project/beta/b.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/beta/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - - -alpha/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/beta/b.ts -*refresh* /home/src/workspaces/project/alpha/src/a.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/beta/b.ts -(stored at emit) /home/src/workspaces/project/alpha/src/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-declaration-=-false.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-declaration-=-false.js deleted file mode 100644 index e69a8f2e94..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/errors-when-declaration-=-false.js +++ /dev/null @@ -1,117 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/primary/a.ts] *new* -export { }; -//// [/home/src/workspaces/project/primary/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - "declaration": false - } -} - -tsgo --p primary/tsconfig.json -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -primary/tsconfig.json:5:9 - error TS6304: Composite projects may not disable declaration emit. - -5 "declaration": false -   ~~~~~~~~~~~~~ - - -Found 1 error in primary/tsconfig.json:5 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/primary/bin/a.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/primary/bin/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","../a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3145b36c4687eb0550eabb198d0c0d22-export { };","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":false,"outDir":"./"},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../a.ts", - "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "declaration": false, - "outDir": "./" - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../a.ts" - ], - "latestChangedDtsFile": "./a.d.ts", - "size": 1144 -} - -primary/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/primary/a.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/primary/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-file-list-is-not-exhaustive.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-file-list-is-not-exhaustive.js deleted file mode 100644 index 285d5fe478..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-file-list-is-not-exhaustive.js +++ /dev/null @@ -1,145 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/primary/a.ts] *new* -import * as b from './b' -//// [/home/src/workspaces/project/primary/b.ts] *new* -export {} -//// [/home/src/workspaces/project/primary/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "files": [ "a.ts" ] -} - -tsgo --p primary/tsconfig.json -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -primary/a.ts:1:20 - error TS6307: File '/home/src/workspaces/project/primary/b.ts' is not listed within the file list of project '/home/src/workspaces/project/primary/tsconfig.json'. Projects must list all files or use an 'include' pattern. - -1 import * as b from './b' -   ~~~~~ - - -Found 1 error in primary/a.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/primary/bin/a.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/primary/bin/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/primary/bin/b.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/primary/bin/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[3],"fileNames":["lib.d.ts","../b.ts","../a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90c7c4de561fe02d475f60b509bcbb33-export {}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"a18553e6686c657dd18ba74b9d5c69ef-import * as b from './b'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../a.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../b.ts", - "../a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../b.ts", - "version": "90c7c4de561fe02d475f60b509bcbb33-export {}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "90c7c4de561fe02d475f60b509bcbb33-export {}", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../a.ts", - "version": "a18553e6686c657dd18ba74b9d5c69ef-import * as b from './b'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a18553e6686c657dd18ba74b9d5c69ef-import * as b from './b'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../b.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../a.ts": [ - "../b.ts" - ] - }, - "latestChangedDtsFile": "./a.d.ts", - "size": 1295 -} - -primary/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/primary/b.ts -*refresh* /home/src/workspaces/project/primary/a.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/primary/b.ts -(stored at emit) /home/src/workspaces/project/primary/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-exist.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-exist.js deleted file mode 100644 index 5cb1be4b61..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-exist.js +++ /dev/null @@ -1,122 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/primary/a.ts] *new* -export { }; -//// [/home/src/workspaces/project/primary/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "references": [{ - "path": "../foo" - }] -} - -tsgo --p primary/tsconfig.json -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -primary/tsconfig.json:6:20 - error TS6053: File '/home/src/workspaces/project/foo' not found. - -6 "references": [{ -   ~ -7 "path": "../foo" -  ~~~~~~~~~~~~~~~~~~~~~~~~ -8 }] -  ~~~~~ - - -Found 1 error in primary/tsconfig.json:6 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/primary/bin/a.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/primary/bin/a.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","../a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3145b36c4687eb0550eabb198d0c0d22-export { };","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"} -//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../a.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../a.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../a.ts", - "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../a.ts" - ], - "latestChangedDtsFile": "./a.d.ts", - "size": 1124 -} - -primary/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/primary/a.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/primary/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-have-composite.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-have-composite.js deleted file mode 100644 index afa623062e..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-have-composite.js +++ /dev/null @@ -1,126 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/primary/a.ts] *new* -export { }; -//// [/home/src/workspaces/project/primary/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": false, - "outDir": "bin", - } -} -//// [/home/src/workspaces/project/reference/b.ts] *new* -import * as mod_1 from "../primary/a"; -//// [/home/src/workspaces/project/reference/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "files": [ "b.ts" ], - "references": [ { "path": "../primary" } ] -} - -tsgo --p reference/tsconfig.json -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -reference/tsconfig.json:7:21 - error TS6306: Referenced project '/home/src/workspaces/project/primary' must have setting "composite": true. - -7 "references": [ { "path": "../primary" } ] -   ~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in reference/tsconfig.json:7 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/reference/bin/b.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/reference/bin/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/reference/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","../b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d666db15c62586dc1d15295600f7d94a-import * as mod_1 from \"../primary/a\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/project/reference/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "root": [ - { - "files": [ - "../b.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../b.ts", - "version": "d666db15c62586dc1d15295600f7d94a-import * as mod_1 from \"../primary/a\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d666db15c62586dc1d15295600f7d94a-import * as mod_1 from \"../primary/a\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "semanticDiagnosticsPerFile": [ - "lib.d.ts", - "../b.ts" - ], - "latestChangedDtsFile": "./b.d.ts", - "size": 1153 -} - -reference/tsconfig.json:: -SemanticDiagnostics:: -*not cached* /home/src/tslibs/TS/Lib/lib.d.ts -*not cached* /home/src/workspaces/project/reference/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/reference/b.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js b/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js deleted file mode 100644 index 1bb030b983..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js +++ /dev/null @@ -1,78 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/no-preserve/index.d.ts] *new* -export declare const enum F { A = 1 } -//// [/home/src/workspaces/solution/no-preserve/index.ts] *new* -export const enum E { A = 1 } -//// [/home/src/workspaces/solution/no-preserve/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "preserveConstEnums": false, - }, -} -//// [/home/src/workspaces/solution/preserve/index.d.ts] *new* -export declare const enum E { A = 1 } -//// [/home/src/workspaces/solution/preserve/index.ts] *new* -export const enum E { A = 1 } -//// [/home/src/workspaces/solution/preserve/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "preserveConstEnums": true, - }, -} -//// [/home/src/workspaces/solution/project/index.ts] *new* -import { E } from "../preserve"; -import { F } from "../no-preserve"; -E.A; -F.A; -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "preserve", - "verbatimModuleSyntax": true, - }, - "references": [ - { "path": "../preserve" }, - { "path": "../no-preserve" }, - ], -} - -tsgo --p project --pretty false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -project/index.ts(2,10): error TS2748: Cannot access ambient const enums when 'verbatimModuleSyntax' is enabled. -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/index.js] *new* -import { E } from "../preserve"; -import { F } from "../no-preserve"; -E.A; -F.A; - - diff --git a/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js b/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js deleted file mode 100644 index 8175413de0..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js +++ /dev/null @@ -1,137 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/alpha/a.ts] *new* -export const m: number = 3; -//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - } -} -//// [/home/src/workspaces/project/beta/b.ts] *new* -import { m } from '@alpha/a' -//// [/home/src/workspaces/project/beta/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - "paths": { - "@alpha/*": ["../alpha/*"], - }, - }, - "references": [ { "path": "../alpha" } ] -} - -tsgo --p beta/tsconfig.json -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -beta/b.ts:1:19 - error TS6305: Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'. - -1 import { m } from '@alpha/a' -   ~~~~~~~~~~ - - -Found 1 error in beta/b.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/beta/bin/b.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/beta/bin/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"311c3bac923f08ac35ab2246c3464fb7-import { m } from '@alpha/a'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"semanticDiagnosticsPerFile":[[2,[{"pos":18,"end":28,"code":6305,"category":1,"message":"Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'."}]]],"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../b.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../b.ts", - "version": "311c3bac923f08ac35ab2246c3464fb7-import { m } from '@alpha/a'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "311c3bac923f08ac35ab2246c3464fb7-import { m } from '@alpha/a'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "semanticDiagnosticsPerFile": [ - [ - "../b.ts", - [ - { - "pos": 18, - "end": 28, - "code": 6305, - "category": 1, - "message": "Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'." - } - ] - ] - ], - "latestChangedDtsFile": "./b.d.ts", - "size": 1325 -} - -beta/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/beta/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/beta/b.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing.js b/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing.js deleted file mode 100644 index be88f86fa1..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing.js +++ /dev/null @@ -1,135 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/alpha/a.ts] *new* -export const m: number = 3; -//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "references": [] -} -//// [/home/src/workspaces/project/beta/b.ts] *new* -import { m } from '../alpha/a' -//// [/home/src/workspaces/project/beta/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "references": [ { "path": "../alpha" } ] -} - -tsgo --p beta/tsconfig.json -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -beta/b.ts:1:19 - error TS6305: Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'. - -1 import { m } from '../alpha/a' -   ~~~~~~~~~~~~ - - -Found 1 error in beta/b.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/beta/bin/b.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/beta/bin/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"semanticDiagnosticsPerFile":[[2,[{"pos":18,"end":30,"code":6305,"category":1,"message":"Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'."}]]],"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../b.ts" - ], - "original": 2 - } - ], - "fileNames": [ - "lib.d.ts", - "../b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../b.ts", - "version": "fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "options": { - "composite": true, - "outDir": "./" - }, - "semanticDiagnosticsPerFile": [ - [ - "../b.ts", - [ - { - "pos": 18, - "end": 30, - "code": 6305, - "category": 1, - "message": "Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'." - } - ] - ] - ], - "latestChangedDtsFile": "./b.d.ts", - "size": 1327 -} - -beta/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/beta/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/beta/b.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/redirects-to-the-output-dts-file.js b/testdata/baselines/reference/tsc/projectReferences/redirects-to-the-output-dts-file.js deleted file mode 100644 index fad1de3193..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/redirects-to-the-output-dts-file.js +++ /dev/null @@ -1,161 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/alpha/a.ts] *new* -export const m: number = 3; -//// [/home/src/workspaces/project/alpha/bin/a.d.ts] *new* -export { }; -//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - } -} -//// [/home/src/workspaces/project/beta/b.ts] *new* -import { m } from '../alpha/a' -//// [/home/src/workspaces/project/beta/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - }, - "references": [ { "path": "../alpha" } ] -} - -tsgo --p beta/tsconfig.json --explainFiles -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -beta/b.ts:1:10 - error TS2305: Module '"../alpha/bin/a"' has no exported member 'm'. - -1 import { m } from '../alpha/a' -   ~ - -../../tslibs/TS/Lib/lib.d.ts - Default library for target 'ES5' -alpha/bin/a.d.ts - Imported via '../alpha/a' from file 'beta/b.ts' - File is output of project reference source 'alpha/a.ts' -beta/b.ts - Matched by default include pattern '**/*' - -Found 1 error in beta/b.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/beta/bin/b.d.ts] *new* -export {}; - -//// [/home/src/workspaces/project/beta/bin/b.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../../alpha/bin/a.d.ts","../b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"3145b36c4687eb0550eabb198d0c0d22-export { };",{"version":"fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":9,"end":10,"code":2305,"category":1,"message":"Module '\"../alpha/bin/a\"' has no exported member 'm'."}]]],"latestChangedDtsFile":"./b.d.ts"} -//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../b.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.d.ts", - "../../alpha/bin/a.d.ts", - "../b.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../../alpha/bin/a.d.ts", - "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", - "signature": "3145b36c4687eb0550eabb198d0c0d22-export { };", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../b.ts", - "version": "fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../../alpha/bin/a.d.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": { - "../b.ts": [ - "../../alpha/bin/a.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../b.ts", - [ - { - "pos": 9, - "end": 10, - "code": 2305, - "category": 1, - "message": "Module '\"../alpha/bin/a\"' has no exported member 'm'." - } - ] - ] - ], - "latestChangedDtsFile": "./b.d.ts", - "size": 1359 -} - -beta/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/alpha/bin/a.d.ts -*refresh* /home/src/workspaces/project/beta/b.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/beta/b.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/referencing-ambient-const-enum-from-referenced-project-with-preserveConstEnums.js b/testdata/baselines/reference/tsc/projectReferences/referencing-ambient-const-enum-from-referenced-project-with-preserveConstEnums.js deleted file mode 100644 index 378f04e0d4..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/referencing-ambient-const-enum-from-referenced-project-with-preserveConstEnums.js +++ /dev/null @@ -1,60 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/index.ts] *new* -import { E } from "../utils"; E.A; -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "compilerOptions": { - "isolatedModules": true, - }, - "references": [ - { "path": "../utils" }, - ], -} -//// [/home/src/workspaces/solution/utils/index.d.ts] *new* -export declare const enum E { A = 1 } -//// [/home/src/workspaces/solution/utils/index.ts] *new* -export const enum E { A = 1 } -//// [/home/src/workspaces/solution/utils/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "preserveConstEnums": true, - }, -} - -tsgo --p project -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("../utils"); -utils_1.E.A; - - diff --git a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences1.js b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences1.js deleted file mode 100644 index b0b402f89e..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences1.js +++ /dev/null @@ -1,78 +0,0 @@ -currentDirectory::/home/src/workspaces -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/packages/common/dist/index.d.ts] *new* -export {}; -//// [/home/src/workspaces/packages/common/package.json] *new* -{ - "name": "common", - "version": "1.0.0", - "type": "module", - "exports": { - ".": { - "source": "./src/index.ts", - "default": "./dist/index.js" - } - } -} -//// [/home/src/workspaces/packages/common/src/index.ts] *new* -export {}; -//// [/home/src/workspaces/packages/common/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "rootDir": "src", - "outDir": "dist", - "module": "nodenext" - } -} -//// [/home/src/workspaces/packages/main/package.json] *new* -{ - "type": "module" -} -//// [/home/src/workspaces/packages/main/src/index.ts] *new* -import {} from "../../common/src/index.ts"; -//// [/home/src/workspaces/packages/main/tsconfig.json] *new* -{ - "compilerOptions": { - "module": "nodenext", - "rewriteRelativeImportExtensions": true, - "rootDir": "src", - "outDir": "dist" - }, - "references": [ - { "path": "../common" } - ] -} - -tsgo -p packages/main --pretty false -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -packages/main/src/index.ts(1,16): error TS2878: This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files. -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/packages/main/dist/index.js] *new* -export {}; - - diff --git a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences2.js b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences2.js deleted file mode 100644 index 8b6cb9c9d9..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences2.js +++ /dev/null @@ -1,143 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/dist/compiler/parser.d.ts] *new* -export {}; -//// [/home/src/workspaces/solution/src/compiler/parser.ts] *new* -export {}; -//// [/home/src/workspaces/solution/src/compiler/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": {} -} -//// [/home/src/workspaces/solution/src/services/services.ts] *new* -import {} from "../compiler/parser.ts"; -//// [/home/src/workspaces/solution/src/services/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": {}, - "references": [ - { "path": "../compiler" } - ] -} -//// [/home/src/workspaces/solution/src/tsconfig-base.json] *new* -{ - "compilerOptions": { - "module": "nodenext", - "composite": true, - "rootDir": ".", - "outDir": "../dist", - "rewriteRelativeImportExtensions": true - } -} - -tsgo --p src/services --pretty false -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/dist/services/services.d.ts] *new* -export {}; - -//// [/home/src/workspaces/solution/dist/services/services.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/solution/dist/services/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","../compiler/parser.d.ts","../../src/services/services.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"e7d000b03d217d92080c065ffa5ccd5e-export {};",{"version":"a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"module":199,"outDir":"..","rewriteRelativeImportExtensions":true,"rootDir":"../../src"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./services.d.ts"} -//// [/home/src/workspaces/solution/dist/services/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../src/services/services.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "../compiler/parser.d.ts", - "../../src/services/services.ts" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../compiler/parser.d.ts", - "version": "e7d000b03d217d92080c065ffa5ccd5e-export {};", - "signature": "e7d000b03d217d92080c065ffa5ccd5e-export {};", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/services/services.ts", - "version": "a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../compiler/parser.d.ts" - ] - ], - "options": { - "composite": true, - "module": 199, - "outDir": "..", - "rewriteRelativeImportExtensions": true, - "rootDir": "../../src" - }, - "referencedMap": { - "../../src/services/services.ts": [ - "../compiler/parser.d.ts" - ] - }, - "latestChangedDtsFile": "./services.d.ts", - "size": 1337 -} - -src/services/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/solution/dist/compiler/parser.d.ts -*refresh* /home/src/workspaces/solution/src/services/services.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/src/services/services.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences3.js b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences3.js deleted file mode 100644 index c102021778..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences3.js +++ /dev/null @@ -1,147 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/dist/compiler/parser.d.ts] *new* -export {}; -//// [/home/src/workspaces/solution/src/compiler/parser.ts] *new* -export {}; -//// [/home/src/workspaces/solution/src/compiler/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "../../dist/compiler" - } -} -//// [/home/src/workspaces/solution/src/services/services.ts] *new* -import {} from "../compiler/parser.ts"; -//// [/home/src/workspaces/solution/src/services/tsconfig.json] *new* -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "../../dist/services" - }, - "references": [ - { "path": "../compiler" } - ] -} -//// [/home/src/workspaces/solution/src/tsconfig-base.json] *new* -{ - "compilerOptions": { - "module": "nodenext", - "composite": true, - "rewriteRelativeImportExtensions": true - } -} - -tsgo --p src/services --pretty false -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/dist/services/services.d.ts] *new* -export {}; - -//// [/home/src/workspaces/solution/dist/services/services.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//// [/home/src/workspaces/solution/dist/services/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","../compiler/parser.d.ts","../../src/services/services.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"e7d000b03d217d92080c065ffa5ccd5e-export {};",{"version":"a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"module":199,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../../src/services"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./services.d.ts"} -//// [/home/src/workspaces/solution/dist/services/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../../src/services/services.ts" - ], - "original": 3 - } - ], - "fileNames": [ - "lib.esnext.full.d.ts", - "../compiler/parser.d.ts", - "../../src/services/services.ts" - ], - "fileInfos": [ - { - "fileName": "lib.esnext.full.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../compiler/parser.d.ts", - "version": "e7d000b03d217d92080c065ffa5ccd5e-export {};", - "signature": "e7d000b03d217d92080c065ffa5ccd5e-export {};", - "impliedNodeFormat": "CommonJS" - }, - { - "fileName": "../../src/services/services.ts", - "version": "a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";", - "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../compiler/parser.d.ts" - ] - ], - "options": { - "composite": true, - "module": 199, - "outDir": "./", - "rewriteRelativeImportExtensions": true, - "rootDir": "../../src/services" - }, - "referencedMap": { - "../../src/services/services.ts": [ - "../compiler/parser.d.ts" - ] - }, - "latestChangedDtsFile": "./services.d.ts", - "size": 1346 -} - -src/services/tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts -*refresh* /home/src/workspaces/solution/dist/compiler/parser.d.ts -*refresh* /home/src/workspaces/solution/src/services/services.ts -Signatures:: -(stored at emit) /home/src/workspaces/solution/src/services/services.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js b/testdata/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js deleted file mode 100644 index b3d59be07e..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js +++ /dev/null @@ -1,53 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "references": [ - { "path": "../utils" }, - ], -} - -tsgo --p project -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -project/tsconfig.json:3:9 - error TS6053: File '/home/src/workspaces/solution/utils' not found. - -3 { "path": "../utils" }, -   ~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project/tsconfig.json:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 10; - - diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-reference-is-not-built.js b/testdata/baselines/reference/tsc/projectReferences/when-project-reference-is-not-built.js deleted file mode 100644 index b7ebae5101..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/when-project-reference-is-not-built.js +++ /dev/null @@ -1,59 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/index.ts] *new* -import { x } from "../utils"; -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "references": [ - { "path": "../utils" }, - ], -} -//// [/home/src/workspaces/solution/utils/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/solution/utils/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} - -tsgo --p project -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -project/index.ts:1:19 - error TS6305: Output file '/home/src/workspaces/solution/utils/index.d.ts' has not been built from source file '/home/src/workspaces/solution/utils/index.ts'. - -1 import { x } from "../utils"; -   ~~~~~~~~~~ - - -Found 1 error in project/index.ts:1 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - - diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js deleted file mode 100644 index 38e6f71d13..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js +++ /dev/null @@ -1,60 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/index.ts] *new* -import { x } from "../utils"; -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "references": [ - { "path": "../utils" }, - ], -} -//// [/home/src/workspaces/solution/utils/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/solution/utils/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "noEmit": true - } -} - -tsgo --p project -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -project/tsconfig.json:3:9 - error TS6310: Referenced project '/home/src/workspaces/solution/utils' may not disable emit. - -3 { "path": "../utils" }, -   ~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error in project/tsconfig.json:3 - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - - diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite.js b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite.js deleted file mode 100644 index 8d701b99f7..0000000000 --- a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite.js +++ /dev/null @@ -1,53 +0,0 @@ -currentDirectory::/home/src/workspaces/solution -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/solution/project/index.ts] *new* -import { x } from "../utils"; -//// [/home/src/workspaces/solution/project/tsconfig.json] *new* -{ - "references": [ - { "path": "../utils" }, - ], -} -//// [/home/src/workspaces/solution/utils/index.d.ts] *new* -export declare const x = 10; -//// [/home/src/workspaces/solution/utils/index.ts] *new* -export const x = 10; -//// [/home/src/workspaces/solution/utils/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true - } -} - -tsgo --p project -ExitStatus:: Success -Output:: -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/solution/project/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - - diff --git a/testdata/baselines/reference/tsc/typeAcquisition/parse-tsconfig-with-typeAcquisition.js b/testdata/baselines/reference/tsc/typeAcquisition/parse-tsconfig-with-typeAcquisition.js deleted file mode 100644 index 0a7f765952..0000000000 --- a/testdata/baselines/reference/tsc/typeAcquisition/parse-tsconfig-with-typeAcquisition.js +++ /dev/null @@ -1,40 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "composite": true, - "noEmit": true, - }, - "typeAcquisition": { - "enable": true, - "include": ["0.d.ts", "1.d.ts"], - "exclude": ["0.js", "1.js"], - "disableFilenameBasedTypeAcquisition": true, - }, -} - -tsgo -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -error TS18003: No inputs were found in config file '/home/src/workspaces/project/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. - -Found 1 error. - -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","errors":true,"fileInfos":[],"options":{"composite":true}} -//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "errors": true, - "fileInfos": [], - "options": { - "composite": true - }, - "size": 85 -} - -tsconfig.json:: -SemanticDiagnostics:: -Signatures:: diff --git a/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js b/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js deleted file mode 100644 index 6a59db07d6..0000000000 --- a/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js +++ /dev/null @@ -1,149 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: - -tsgo -w --watchInterval 1000 -ExitStatus:: DiagnosticsPresent_OutputsSkipped -Output:: -Version FakeTSVersion -tsc: The TypeScript Compiler - Version FakeTSVersion - -COMMON COMMANDS - - tsc - Compiles the current project (tsconfig.json in the working directory.) - - tsc app.ts util.ts - Ignoring tsconfig.json, compiles the specified files with default compiler options. - - tsc -b - Build a composite project in the working directory. - - tsc --init - Creates a tsconfig.json with the recommended settings in the working directory. - - tsc -p ./path/to/tsconfig.json - Compiles the TypeScript project located at the specified path. - - tsc --help --all - An expanded version of this information, showing all possible compiler options - - tsc --noEmit - tsc --target esnext - Compiles the current project, with additional settings. - -COMMAND LINE FLAGS - ---help, -h -Print this message. - ---watch, -w -Watch input files. - ---all -Show all compiler options. - ---version, -v -Print the compiler's version. - ---init -Initializes a TypeScript project and creates a tsconfig.json file. - ---project, -p -Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'. - ---showConfig -Print the final configuration instead of building. - ---build, -b -Build one or more projects and their dependencies, if out of date - -COMMON COMPILER OPTIONS - ---pretty -Enable color and formatting in TypeScript's output to make compiler errors easier to read. -type: boolean -default: true - ---declaration, -d -Generate .d.ts files from TypeScript and JavaScript files in your project. -type: boolean -default: `false`, unless `composite` is set - ---declarationMap -Create sourcemaps for d.ts files. -type: boolean -default: false - ---emitDeclarationOnly -Only output d.ts files and not JavaScript files. -type: boolean -default: false - ---sourceMap -Create source map files for emitted JavaScript files. -type: boolean -default: false - ---noEmit -Disable emitting files from a compilation. -type: boolean -default: false - ---target, -t -Set the JavaScript language version for emitted JavaScript and include compatible library declarations. -one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext -default: es5 - ---module, -m -Specify what module code is generated. -one of: none, commonjs, amd, system, umd, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve -default: undefined - ---lib -Specify a set of bundled library declaration files that describe the target runtime environment. -one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext, dom, dom.iterable, dom.asynciterable, webworker, webworker.importscripts, webworker.iterable, webworker.asynciterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2016.intl, es2017.arraybuffer, es2017.date, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable/esnext.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol/esnext.symbol, es2019.intl, es2020.bigint/esnext.bigint, es2020.date, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2020.number, es2021.promise, es2021.string, es2021.weakref/esnext.weakref, es2021.intl, es2022.array, es2022.error, es2022.intl, es2022.object, es2022.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, esnext.error, esnext.sharedmemory, decorators, decorators.legacy -default: undefined - ---allowJs -Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. -type: boolean -default: false - ---checkJs -Enable error reporting in type-checked JavaScript files. -type: boolean -default: false - ---jsx -Specify what JSX code is generated. -one of: preserve, react-native, react-jsx, react-jsxdev, react -default: undefined - ---outFile -Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. - ---outDir -Specify an output folder for all emitted files. - ---removeComments -Disable emitting comments. -type: boolean -default: false - ---strict -Enable all strict type-checking options. -type: boolean -default: false - ---types -Specify type package names to be included without being referenced in a source file. - ---esModuleInterop -Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. -type: boolean -default: false - -You can learn about all of the compiler options at https://aka.ms/tsc - - diff --git a/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option.js b/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option.js deleted file mode 100644 index ee2b9ae875..0000000000 --- a/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option.js +++ /dev/null @@ -1,47 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/first.ts] *new* -export const a = 1 -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "strict": true, - "noEmit": true - } -} - -tsgo -w --watchInterval 1000 -ExitStatus:: Success -Output:: -build starting at HH:MM:SS AM -build finished in d.ddds -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -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 {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/first.ts -Signatures:: From e549e3b727320f81d81a9238d3313952034d7b5c Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 27 Oct 2025 11:39:01 -0700 Subject: [PATCH 2/7] Update fourslash tests --- internal/fourslash/_scripts/failingTests.txt | 14 +- ...stForTransitivelyExportedMembers04_test.go | 11 +- .../completionListInImportClause01_test.go | 19 +- ...PropertyShorthandForObjectLiteral5_test.go | 4 +- .../gen/completionsImportBaseUrl_test.go | 4 +- ...ompletionsImport_default_anonymous_test.go | 4 +- ...nsImport_default_didNotExistBefore_test.go | 6 +- ...rt_default_exportDefaultIdentifier_test.go | 6 +- ...mpletionsImport_default_symbolName_test.go | 2 +- ...tionsImport_exportEquals_anonymous_test.go | 2 +- .../completionsImport_exportEquals_test.go | 2 +- ...letionsImport_multipleWithSameName_test.go | 8 +- ...Import_named_exportEqualsNamespace_test.go | 6 +- ...ionsImport_ofAlias_preferShortPath_test.go | 11 +- .../gen/completionsImport_quoteStyle_test.go | 2 +- .../completionsImport_reExportDefault_test.go | 11 +- ...etionsImport_weirdDefaultSynthesis_test.go | 2 +- .../completionsUniqueSymbol_import_test.go | 4 +- ...rtSuggestionsCache_exportUndefined_test.go | 6 +- .../tests/gen/importTypeCompletions7_test.go | 2 +- internal/module/resolver.go | 5 +- ...lightAtInheritedProperties1.baseline.jsonc | 15 + ...lightAtInheritedProperties2.baseline.jsonc | 15 + ...lightAtInheritedProperties3.baseline.jsonc | 49 + ...lightAtInheritedProperties4.baseline.jsonc | 49 + ...lightAtInheritedProperties5.baseline.jsonc | 82 + ...lightAtInheritedProperties6.baseline.jsonc | 63 + ...rameterPropertyDeclaration1.baseline.jsonc | 165 ++ ...rameterPropertyDeclaration2.baseline.jsonc | 109 + ...rameterPropertyDeclaration3.baseline.jsonc | 109 + ...ntHighlightDefaultInKeyword.baseline.jsonc | 11 + ...entHighlightDefaultInSwitch.baseline.jsonc | 21 + .../documentHighlightInExport1.baseline.jsonc | 32 + .../documentHighlightInKeyword.baseline.jsonc | 31 + ...cumentHighlightInTypeExport.baseline.jsonc | 98 + ...cumentHighlightJSDocTypedef.baseline.jsonc | 45 + ...ghtMultilineTemplateStrings.baseline.jsonc | 7 + ...entHighlightTemplateStrings.baseline.jsonc | 11 + ...tHighlightVarianceModifiers.baseline.jsonc | 11 + .../documentHighlights01.baseline.jsonc | 29 + ...HighlightsInvalidGlobalThis.baseline.jsonc | 5 + ...htsInvalidModifierLocations.baseline.jsonc | 44 + ...ParameterInHeritageClause01.baseline.jsonc | 18 + .../documentHighlights_33722.baseline.jsonc | 5 + .../documentHighlights_40082.baseline.jsonc | 6 + ...entHighlights_filesToSearch.baseline.jsonc | 9 + .../emptyExportFindReferences.baseline.jsonc | 5 + .../findAllRefsForModule.baseline.jsonc | 9 + .../findReferencesJSXTagName3.baseline.jsonc | 124 + .../getOccurrencesAbstract01.baseline.jsonc | 67 + .../getOccurrencesAbstract02.baseline.jsonc | 48 + .../getOccurrencesAbstract03.baseline.jsonc | 69 + .../getOccurrencesAfterEdit.baseline.jsonc | 22 + .../getOccurrencesAsyncAwait.baseline.jsonc | 87 + .../getOccurrencesAsyncAwait2.baseline.jsonc | 57 + .../getOccurrencesAsyncAwait3.baseline.jsonc | 6 + ...sClassExpressionConstructor.baseline.jsonc | 53 + ...encesClassExpressionPrivate.baseline.jsonc | 82 + ...rencesClassExpressionPublic.baseline.jsonc | 82 + ...rencesClassExpressionStatic.baseline.jsonc | 69 + ...esClassExpressionStaticThis.baseline.jsonc | 92 + ...urrencesClassExpressionThis.baseline.jsonc | 303 +++ .../getOccurrencesConst01.baseline.jsonc | 19 + .../getOccurrencesConst04.baseline.jsonc | 27 + .../getOccurrencesConstructor.baseline.jsonc | 53 + .../getOccurrencesConstructor2.baseline.jsonc | 9 + .../getOccurrencesDeclare1.baseline.jsonc | 66 + .../getOccurrencesDeclare2.baseline.jsonc | 11 + .../getOccurrencesDeclare3.baseline.jsonc | 73 + .../getOccurrencesExport1.baseline.jsonc | 182 ++ .../getOccurrencesExport2.baseline.jsonc | 11 + .../getOccurrencesExport3.baseline.jsonc | 54 + .../getOccurrencesIfElse.baseline.jsonc | 158 ++ .../getOccurrencesIfElse2.baseline.jsonc | 23 + .../getOccurrencesIfElse3.baseline.jsonc | 31 + .../getOccurrencesIfElseBroken.baseline.jsonc | 57 + ...ccurrencesLoopBreakContinue.baseline.jsonc | 130 + ...currencesLoopBreakContinue2.baseline.jsonc | 102 + ...currencesLoopBreakContinue3.baseline.jsonc | 200 ++ ...currencesLoopBreakContinue4.baseline.jsonc | 301 +++ ...currencesLoopBreakContinue5.baseline.jsonc | 21 + ...urrencesModifiersNegatives1.baseline.jsonc | 813 ++++++ ...cesNonStringImportAssertion.baseline.jsonc | 4 + ...esNonStringImportAttributes.baseline.jsonc | 4 + ...urrencesOfAnonymousFunction.baseline.jsonc | 15 + ...rrencesOfAnonymousFunction2.baseline.jsonc | 25 + .../getOccurrencesOfDecorators.baseline.jsonc | 10 + ...ccurrencesOfUndefinedSymbol.baseline.jsonc | 9 + .../getOccurrencesPrivate1.baseline.jsonc | 195 ++ .../getOccurrencesPrivate2.baseline.jsonc | 31 + ...sPropertyInAliasedInterface.baseline.jsonc | 85 + .../getOccurrencesProtected1.baseline.jsonc | 183 ++ .../getOccurrencesProtected2.baseline.jsonc | 45 + .../getOccurrencesPublic1.baseline.jsonc | 285 +++ .../getOccurrencesPublic2.baseline.jsonc | 33 + .../getOccurrencesReadonly1.baseline.jsonc | 5 + .../getOccurrencesReadonly2.baseline.jsonc | 5 + .../getOccurrencesReadonly3.baseline.jsonc | 34 + .../getOccurrencesReturn.baseline.jsonc | 57 + .../getOccurrencesReturn2.baseline.jsonc | 69 + .../getOccurrencesReturn3.baseline.jsonc | 11 + .../getOccurrencesSetAndGet.baseline.jsonc | 25 + .../getOccurrencesSetAndGet2.baseline.jsonc | 31 + .../getOccurrencesSetAndGet3.baseline.jsonc | 29 + .../getOccurrencesStatic1.baseline.jsonc | 45 + ...currencesStringLiteralTypes.baseline.jsonc | 11 + ...etOccurrencesStringLiterals.baseline.jsonc | 11 + .../getOccurrencesSuper.baseline.jsonc | 235 ++ .../getOccurrencesSuper2.baseline.jsonc | 60 + .../getOccurrencesSuper3.baseline.jsonc | 51 + ...etOccurrencesSuperNegatives.baseline.jsonc | 61 + ...ccurrencesSwitchCaseDefault.baseline.jsonc | 195 ++ ...currencesSwitchCaseDefault2.baseline.jsonc | 117 + ...currencesSwitchCaseDefault3.baseline.jsonc | 157 ++ .../getOccurrencesThis.baseline.jsonc | 19 + .../getOccurrencesThis2.baseline.jsonc | 129 + .../getOccurrencesThis3.baseline.jsonc | 31 + .../getOccurrencesThis4.baseline.jsonc | 556 ++++ .../getOccurrencesThis5.baseline.jsonc | 556 ++++ .../getOccurrencesThrow.baseline.jsonc | 317 +++ .../getOccurrencesThrow2.baseline.jsonc | 12 + .../getOccurrencesThrow3.baseline.jsonc | 39 + .../getOccurrencesThrow4.baseline.jsonc | 102 + .../getOccurrencesThrow5.baseline.jsonc | 12 + .../getOccurrencesThrow6.baseline.jsonc | 51 + .../getOccurrencesThrow7.baseline.jsonc | 112 + .../getOccurrencesThrow8.baseline.jsonc | 11 + .../getOccurrencesYield.baseline.jsonc | 33 + ...olsFromBaseTypesDoesntCrash.baseline.jsonc | 5 + .../occurrences01.baseline.jsonc | 81 + .../occurrences02.baseline.jsonc | 29 + ...eDefaultImportDifferentName.baseline.jsonc | 6 + ...ambientShorthandFindAllRefs.baseline.jsonc | 9 + ...ortProvider_referencesCrash.baseline.jsonc | 9 + ...nstructorFindAllReferences1.baseline.jsonc | 8 + ...nstructorFindAllReferences2.baseline.jsonc | 8 + ...nstructorFindAllReferences3.baseline.jsonc | 8 + ...nstructorFindAllReferences4.baseline.jsonc | 8 + ...uleInteropFindAllReferences.baseline.jsonc | 29 + ...leInteropFindAllReferences2.baseline.jsonc | 26 + ...sNodeNextWithTypesReference.baseline.jsonc | 5 + ...essExpressionHeritageClause.baseline.jsonc | 30 + ...AllReferencesDynamicImport1.baseline.jsonc | 29 + ...AllReferencesDynamicImport2.baseline.jsonc | 17 + ...AllReferencesDynamicImport3.baseline.jsonc | 11 + ...FilteringMappedTypeProperty.baseline.jsonc | 21 + ...rencesFromLinkTagReference1.baseline.jsonc | 6 + ...rencesFromLinkTagReference2.baseline.jsonc | 9 + ...rencesFromLinkTagReference3.baseline.jsonc | 11 + ...rencesFromLinkTagReference4.baseline.jsonc | 7 + ...rencesFromLinkTagReference5.baseline.jsonc | 6 + ...findAllReferencesImportMeta.baseline.jsonc | 5 + ...lReferencesJSDocFunctionNew.baseline.jsonc | 4 + ...ReferencesJSDocFunctionThis.baseline.jsonc | 4 + ...lReferencesJsDocTypeLiteral.baseline.jsonc | 21 + ...OverloadedFunctionParameter.baseline.jsonc | 17 + ...encesJsRequireDestructuring.baseline.jsonc | 3 + ...ncesJsRequireDestructuring1.baseline.jsonc | 3 + .../findAllReferencesLinkTag1.baseline.jsonc | 208 ++ .../findAllReferencesLinkTag2.baseline.jsonc | 138 + .../findAllReferencesLinkTag3.baseline.jsonc | 138 + ...cesNonExistentExportBinding.baseline.jsonc | 3 + ...dAllReferencesOfConstructor.baseline.jsonc | 105 + ...esOfConstructor_badOverload.baseline.jsonc | 15 + ...ndAllReferencesOfJsonModule.baseline.jsonc | 18 + ...indAllReferencesTripleSlash.baseline.jsonc | 11 + ...encesUmdModuleAsGlobalConst.baseline.jsonc | 39 + .../findAllReferencesUndefined.baseline.jsonc | 8 + .../findAllRefsBadImport.baseline.jsonc | 9 + .../findAllRefsCatchClause.baseline.jsonc | 15 + ...findAllRefsClassExpression0.baseline.jsonc | 45 + ...findAllRefsClassExpression1.baseline.jsonc | 17 + ...findAllRefsClassExpression2.baseline.jsonc | 27 + ...indAllRefsClassStaticBlocks.baseline.jsonc | 34 + ...fsClassWithStaticThisAccess.baseline.jsonc | 45 + .../findAllRefsCommonJsRequire.baseline.jsonc | 8 + ...findAllRefsCommonJsRequire2.baseline.jsonc | 8 + ...findAllRefsCommonJsRequire3.baseline.jsonc | 4 + ...AllRefsConstructorFunctions.baseline.jsonc | 55 + .../findAllRefsDeclareClass.baseline.jsonc | 13 + .../findAllRefsDefaultImport.baseline.jsonc | 15 + .../findAllRefsDefinition.baseline.jsonc | 11 + ...ndAllRefsDestructureGeneric.baseline.jsonc | 17 + ...indAllRefsDestructureGetter.baseline.jsonc | 69 + .../findAllRefsEnumAsNamespace.baseline.jsonc | 18 + .../findAllRefsEnumMember.baseline.jsonc | 18 + ...RefsExportConstEqualToClass.baseline.jsonc | 17 + ...portDefaultClassConstructor.baseline.jsonc | 5 + .../findAllRefsExportEquals.baseline.jsonc | 44 + ...dAllRefsExportNotAtTopLevel.baseline.jsonc | 24 + ...llRefsForComputedProperties.baseline.jsonc | 45 + ...lRefsForComputedProperties2.baseline.jsonc | 45 + ...findAllRefsForDefaultExport.baseline.jsonc | 14 + ...ndAllRefsForDefaultExport01.baseline.jsonc | 41 + ...ndAllRefsForDefaultExport02.baseline.jsonc | 94 + ...ndAllRefsForDefaultExport03.baseline.jsonc | 141 ++ ...ndAllRefsForDefaultExport04.baseline.jsonc | 40 + ...ndAllRefsForDefaultExport09.baseline.jsonc | 91 + ...sForDefaultExport_anonymous.baseline.jsonc | 3 + ...fsForDefaultExport_reExport.baseline.jsonc | 23 + ...indAllRefsForDefaultKeyword.baseline.jsonc | 58 + ...RefsForFunctionExpression01.baseline.jsonc | 53 + .../findAllRefsForImportCall.baseline.jsonc | 12 + ...indAllRefsForImportCallType.baseline.jsonc | 8 + .../findAllRefsForMappedType.baseline.jsonc | 7 + .../findAllRefsForModule.baseline.jsonc | 33 + ...sForObjectLiteralProperties.baseline.jsonc | 43 + .../findAllRefsForObjectSpread.baseline.jsonc | 45 + .../findAllRefsForRest.baseline.jsonc | 23 + ...icInstanceMethodInheritance.baseline.jsonc | 91 + ...InstancePropertyInheritance.baseline.jsonc | 211 ++ ...findAllRefsForStringLiteral.baseline.jsonc | 8 + ...llRefsForStringLiteralTypes.baseline.jsonc | 11 + ...ndAllRefsForUMDModuleAlias1.baseline.jsonc | 29 + ...orVariableInExtendsClause01.baseline.jsonc | 18 + ...orVariableInExtendsClause02.baseline.jsonc | 27 + ...ariableInImplementsClause01.baseline.jsonc | 4 + ...fsGlobalThisKeywordInModule.baseline.jsonc | 4 + .../findAllRefsImportEquals.baseline.jsonc | 4 + .../findAllRefsImportType.baseline.jsonc | 23 + ...indAllRefsInClassExpression.baseline.jsonc | 15 + ...ndAllRefsIndexedAccessTypes.baseline.jsonc | 49 + ...AllRefsInheritedProperties1.baseline.jsonc | 49 + ...AllRefsInheritedProperties2.baseline.jsonc | 49 + ...AllRefsInheritedProperties3.baseline.jsonc | 163 ++ ...AllRefsInheritedProperties4.baseline.jsonc | 70 + ...AllRefsInheritedProperties5.baseline.jsonc | 60 + ...findAllRefsInsideTemplates1.baseline.jsonc | 25 + ...findAllRefsInsideTemplates2.baseline.jsonc | 32 + .../findAllRefsInsideWithBlock.baseline.jsonc | 49 + .../findAllRefsIsDefinition.baseline.jsonc | 103 + .../findAllRefsJsDocImportTag.baseline.jsonc | 13 + .../findAllRefsJsDocImportTag2.baseline.jsonc | 25 + .../findAllRefsJsDocImportTag3.baseline.jsonc | 25 + .../findAllRefsJsDocImportTag4.baseline.jsonc | 8 + .../findAllRefsJsDocImportTag5.baseline.jsonc | 15 + ...lRefsJsDocTemplateTag_class.baseline.jsonc | 11 + ...fsJsDocTemplateTag_function.baseline.jsonc | 11 + .../findAllRefsJsDocTypeDef.baseline.jsonc | 4 + ...efsJsThisPropertyAssignment.baseline.jsonc | 25 + ...fsJsThisPropertyAssignment2.baseline.jsonc | 53 + .../findAllRefsMappedType.baseline.jsonc | 30 + ...fsMappedType_nonHomomorphic.baseline.jsonc | 15 + ...odulesOverlappingSpecifiers.baseline.jsonc | 13 + ...findAllRefsModuleDotExports.baseline.jsonc | 3 + .../findAllRefsNoImportClause.baseline.jsonc | 9 + ...tionTemplateLiteralNoCrash1.baseline.jsonc | 3 + .../findAllRefsNonModule.baseline.jsonc | 17 + ...NonexistentPropertyNoCrash1.baseline.jsonc | 11 + ...indingElementPropertyName01.baseline.jsonc | 31 + ...indingElementPropertyName02.baseline.jsonc | 31 + ...indingElementPropertyName03.baseline.jsonc | 21 + ...indingElementPropertyName04.baseline.jsonc | 59 + ...indingElementPropertyName05.baseline.jsonc | 10 + ...indingElementPropertyName06.baseline.jsonc | 97 + ...indingElementPropertyName07.baseline.jsonc | 5 + ...indingElementPropertyName10.baseline.jsonc | 45 + ...sOfConstructor_withModifier.baseline.jsonc | 6 + .../findAllRefsOnDecorators.baseline.jsonc | 93 + .../findAllRefsOnDefinition.baseline.jsonc | 60 + .../findAllRefsOnDefinition2.baseline.jsonc | 48 + .../findAllRefsOnImportAliases.baseline.jsonc | 33 + ...findAllRefsOnImportAliases2.baseline.jsonc | 56 + ...OnPrivateParameterProperty1.baseline.jsonc | 36 + ...rameterPropertyDeclaration1.baseline.jsonc | 8 + ...rameterPropertyDeclaration2.baseline.jsonc | 30 + ...rameterPropertyDeclaration3.baseline.jsonc | 30 + ...ertyDeclaration_inheritance.baseline.jsonc | 54 + .../findAllRefsPrimitiveJsDoc.baseline.jsonc | 37 + ...AllRefsPrivateNameAccessors.baseline.jsonc | 142 ++ ...ndAllRefsPrivateNameMethods.baseline.jsonc | 51 + ...llRefsPrivateNameProperties.baseline.jsonc | 67 + ...textuallyTypedByTypeParam01.baseline.jsonc | 18 + .../findAllRefsReExport_broken.baseline.jsonc | 9 + ...findAllRefsReExport_broken2.baseline.jsonc | 9 + ...dPropertyInDerivedInterface.baseline.jsonc | 49 + .../findAllRefsRootSymbols.baseline.jsonc | 33 + .../findAllRefsThisKeyword.baseline.jsonc | 149 ++ ...efsThisKeywordMultipleFiles.baseline.jsonc | 55 + ...eParameterInMergedInterface.baseline.jsonc | 25 + .../findAllRefsTypedef.baseline.jsonc | 36 + ...ndAllRefsTypedef_importType.baseline.jsonc | 24 + .../findAllRefsTypeofImport.baseline.jsonc | 21 + .../findAllRefsUnionProperty.baseline.jsonc | 150 ++ ...ndAllRefsUnresolvedSymbols1.baseline.jsonc | 107 + ...ndAllRefsUnresolvedSymbols2.baseline.jsonc | 134 + ...ndAllRefsUnresolvedSymbols3.baseline.jsonc | 134 + ...WithLeadingUnderscoreNames1.baseline.jsonc | 30 + ...WithLeadingUnderscoreNames2.baseline.jsonc | 30 + ...WithLeadingUnderscoreNames3.baseline.jsonc | 30 + ...WithLeadingUnderscoreNames4.baseline.jsonc | 30 + ...WithLeadingUnderscoreNames5.baseline.jsonc | 48 + ...WithLeadingUnderscoreNames6.baseline.jsonc | 48 + ...WithLeadingUnderscoreNames7.baseline.jsonc | 21 + ...WithLeadingUnderscoreNames8.baseline.jsonc | 21 + ...WithLeadingUnderscoreNames9.baseline.jsonc | 21 + ...ShorthandPropertyAssignment.baseline.jsonc | 47 + ...horthandPropertyAssignment2.baseline.jsonc | 46 + .../findAllRefsWriteAccess.baseline.jsonc | 19 + .../findAllRefs_importType_js4.baseline.jsonc | 11 + ...mportType_meaningAtLocation.baseline.jsonc | 59 + ...indAllRefs_importType_named.baseline.jsonc | 63 + ...efs_importType_typeofImport.baseline.jsonc | 25 + .../findAllRefs_jsEnum.baseline.jsonc | 47 + ...encesAcrossMultipleProjects.baseline.jsonc | 53 + .../findReferencesAfterEdit.baseline.jsonc | 59 + ...encesDefinitionDisplayParts.baseline.jsonc | 43 + .../findReferencesJSXTagName.baseline.jsonc | 25 + .../findReferencesJSXTagName2.baseline.jsonc | 18 + .../findReferencesJSXTagName3.baseline.jsonc | 156 ++ .../findReferencesSeeTagInTs.baseline.jsonc | 7 + ...IsDefinitionOfArrowFunction.baseline.jsonc | 18 + ...sDefinitionOfBindingPattern.baseline.jsonc | 18 + ...urrencesIsDefinitionOfClass.baseline.jsonc | 33 + ...efinitionOfComputedProperty.baseline.jsonc | 29 + ...currencesIsDefinitionOfEnum.baseline.jsonc | 27 + ...rrencesIsDefinitionOfExport.baseline.jsonc | 17 + ...encesIsDefinitionOfFunction.baseline.jsonc | 21 + ...ncesIsDefinitionOfInterface.baseline.jsonc | 24 + ...nitionOfInterfaceClassMerge.baseline.jsonc | 141 ++ ...ncesIsDefinitionOfNamespace.baseline.jsonc | 24 + ...nitionOfNumberNamedProperty.baseline.jsonc | 11 + ...ncesIsDefinitionOfParameter.baseline.jsonc | 13 + ...nitionOfStringNamedProperty.baseline.jsonc | 18 + ...ncesIsDefinitionOfTypeAlias.baseline.jsonc | 18 + ...encesIsDefinitionOfVariable.baseline.jsonc | 349 +++ .../indirectJsRequireRename.baseline.jsonc | 6 + ...initionAcrossGlobalProjects.baseline.jsonc | 121 + ...initionAcrossModuleProjects.baseline.jsonc | 225 ++ ...tionInterfaceImplementation.baseline.jsonc | 27 + .../isDefinitionOverloads.baseline.jsonc | 30 + ...DefinitionShorthandProperty.baseline.jsonc | 18 + .../isDefinitionSingleImport.baseline.jsonc | 15 + ...isDefinitionSingleReference.baseline.jsonc | 11 + ...sdocLink_findAllReferences1.baseline.jsonc | 7 + ...tisfiesTagFindAllReferences.baseline.jsonc | 9 + ...ThrowsTag_findAllReferences.baseline.jsonc | 7 + ...cTypedefTagSemanticMeaning0.baseline.jsonc | 51 + ...cTypedefTagSemanticMeaning1.baseline.jsonc | 33 + ...esOnRuntimeImportWithPaths1.baseline.jsonc | 3 + .../localGetReferences.baseline.jsonc | 2080 +++++++++++++++ ...arameterPropertyDeclaration.baseline.jsonc | 53 + .../referenceToClass.baseline.jsonc | 123 + .../referenceToEmptyObject.baseline.jsonc | 3 + .../references01.baseline.jsonc | 9 + .../referencesBloomFilters.baseline.jsonc | 12 + .../referencesBloomFilters2.baseline.jsonc | 12 + .../referencesBloomFilters3.baseline.jsonc | 24 + .../referencesForAmbients.baseline.jsonc | 228 ++ .../referencesForClassLocal.baseline.jsonc | 77 + .../referencesForClassMembers.baseline.jsonc | 99 + ...mbersExtendingAbstractClass.baseline.jsonc | 99 + ...embersExtendingGenericClass.baseline.jsonc | 99 + ...referencesForClassParameter.baseline.jsonc | 81 + ...ypedObjectLiteralProperties.baseline.jsonc | 26 + ...encesForDeclarationKeywords.baseline.jsonc | 229 ++ .../referencesForEnums.baseline.jsonc | 132 + ...referencesForExportedValues.baseline.jsonc | 50 + ...rencesForExpressionKeywords.baseline.jsonc | 165 ++ ...encesForExternalModuleNames.baseline.jsonc | 36 + ...erencesForFunctionOverloads.baseline.jsonc | 42 + ...erencesForFunctionParameter.baseline.jsonc | 33 + .../referencesForGlobals.baseline.jsonc | 127 + .../referencesForGlobals2.baseline.jsonc | 30 + .../referencesForGlobals3.baseline.jsonc | 30 + .../referencesForGlobals4.baseline.jsonc | 30 + .../referencesForGlobals5.baseline.jsonc | 36 + ...sForGlobalsInExternalModule.baseline.jsonc | 162 ++ ...erencesForIllegalAssignment.baseline.jsonc | 21 + .../referencesForImports.baseline.jsonc | 53 + .../referencesForIndexProperty.baseline.jsonc | 49 + ...referencesForIndexProperty2.baseline.jsonc | 4 + ...referencesForIndexProperty3.baseline.jsonc | 39 + ...encesForInheritedProperties.baseline.jsonc | 97 + ...cesForInheritedProperties10.baseline.jsonc | 75 + ...ncesForInheritedProperties2.baseline.jsonc | 25 + ...ncesForInheritedProperties3.baseline.jsonc | 49 + ...ncesForInheritedProperties4.baseline.jsonc | 49 + ...ncesForInheritedProperties5.baseline.jsonc | 31 + ...ncesForInheritedProperties6.baseline.jsonc | 11 + ...ncesForInheritedProperties7.baseline.jsonc | 121 + ...ncesForInheritedProperties8.baseline.jsonc | 27 + ...ncesForInheritedProperties9.baseline.jsonc | 38 + .../referencesForLabel.baseline.jsonc | 69 + .../referencesForLabel2.baseline.jsonc | 7 + .../referencesForLabel3.baseline.jsonc | 5 + .../referencesForLabel4.baseline.jsonc | 27 + .../referencesForLabel5.baseline.jsonc | 103 + .../referencesForLabel6.baseline.jsonc | 33 + ...rencesForMergedDeclarations.baseline.jsonc | 147 ++ ...encesForMergedDeclarations2.baseline.jsonc | 49 + ...encesForMergedDeclarations3.baseline.jsonc | 40 + ...encesForMergedDeclarations4.baseline.jsonc | 261 ++ ...encesForMergedDeclarations5.baseline.jsonc | 37 + ...encesForMergedDeclarations6.baseline.jsonc | 39 + ...encesForMergedDeclarations7.baseline.jsonc | 51 + ...encesForMergedDeclarations8.baseline.jsonc | 39 + .../referencesForModifiers.baseline.jsonc | 127 + .../referencesForNoContext.baseline.jsonc | 51 + ...NumericLiteralPropertyNames.baseline.jsonc | 10 + ...sForObjectLiteralProperties.baseline.jsonc | 37 + .../referencesForOverrides.baseline.jsonc | 160 ++ ...sForPropertiesOfGenericType.baseline.jsonc | 39 + ...erencesForStatementKeywords.baseline.jsonc | 268 ++ .../referencesForStatic.baseline.jsonc | 276 ++ ...ticsAndMembersWithSameNames.baseline.jsonc | 250 ++ ...rStringLiteralPropertyNames.baseline.jsonc | 11 + ...StringLiteralPropertyNames2.baseline.jsonc | 30 + ...StringLiteralPropertyNames3.baseline.jsonc | 57 + ...StringLiteralPropertyNames4.baseline.jsonc | 13 + ...StringLiteralPropertyNames5.baseline.jsonc | 13 + ...StringLiteralPropertyNames6.baseline.jsonc | 13 + ...StringLiteralPropertyNames7.baseline.jsonc | 13 + .../referencesForTypeKeywords.baseline.jsonc | 67 + ...eferencesForUnionProperties.baseline.jsonc | 66 + .../referencesInComment.baseline.jsonc | 33 + ...ferencesInConfiguredProject.baseline.jsonc | 8 + ...ptyFileWithMultipleProjects.baseline.jsonc | 10 + ...alValueWithMultipleProjects.baseline.jsonc | 10 + ...ailableThroughGlobalNoCrash.baseline.jsonc | 13 + ...onPropertyNameStringLiteral.baseline.jsonc | 3 + ...erencesToStringLiteralValue.baseline.jsonc | 3 + .../remoteGetReferences.baseline.jsonc | 1920 ++++++++++++++ ...eDefaultImportDifferentName.baseline.jsonc | 19 + ...eImportAndExportInDiffFiles.baseline.jsonc | 27 + .../renameImportOfExportEquals.baseline.jsonc | 68 + ...esOnRuntimeImportWithPaths1.baseline.jsonc | 3 + .../tsxFindAllReferences1.baseline.jsonc | 39 + .../tsxFindAllReferences10.baseline.jsonc | 11 + .../tsxFindAllReferences11.baseline.jsonc | 7 + .../tsxFindAllReferences2.baseline.jsonc | 11 + .../tsxFindAllReferences3.baseline.jsonc | 12 + .../tsxFindAllReferences4.baseline.jsonc | 75 + .../tsxFindAllReferences5.baseline.jsonc | 162 ++ .../tsxFindAllReferences6.baseline.jsonc | 7 + .../tsxFindAllReferences7.baseline.jsonc | 11 + .../tsxFindAllReferences8.baseline.jsonc | 288 +++ .../tsxFindAllReferences9.baseline.jsonc | 11 + ...ReferencesUnionElementType1.baseline.jsonc | 40 + ...ReferencesUnionElementType2.baseline.jsonc | 40 + ...eclarationMapGoToDefinition.baseline.jsonc | 14 + ...efinitionRelativeSourceRoot.baseline.jsonc | 14 + ...nSameNameDifferentDirectory.baseline.jsonc | 39 + ...arationMapsOutOfDateMapping.baseline.jsonc | 8 + .../goToDefinition/definition.baseline.jsonc | 7 + .../definition01.baseline.jsonc | 7 + .../definitionNameOnEnumMember.baseline.jsonc | 8 + ...findAllRefsForDefaultExport.baseline.jsonc | 7 + ...itionAcrossMultipleProjects.baseline.jsonc | 19 + .../goToDefinitionAlias.baseline.jsonc | 65 + .../goToDefinitionAmbiants.baseline.jsonc | 87 + ...itionApparentTypeProperties.baseline.jsonc | 21 + .../goToDefinitionAwait1.baseline.jsonc | 19 + .../goToDefinitionAwait2.baseline.jsonc | 3 + .../goToDefinitionAwait3.baseline.jsonc | 23 + .../goToDefinitionAwait4.baseline.jsonc | 7 + .../goToDefinitionBuiltInTypes.baseline.jsonc | 33 + ...goToDefinitionBuiltInValues.baseline.jsonc | 47 + ...tionCSSPatternAmbientModule.baseline.jsonc | 9 + ...DefinitionClassConstructors.baseline.jsonc | 63 + ...DefinitionClassStaticBlocks.baseline.jsonc | 34 + ...structorOfClassExpression01.baseline.jsonc | 138 + ...lassIsPrecededByNamespace01.baseline.jsonc | 12 + ...initionConstructorOverloads.baseline.jsonc | 81 + .../goToDefinitionDecorator.baseline.jsonc | 33 + ...efinitionDecoratorOverloads.baseline.jsonc | 29 + ...initionDestructuredRequire1.baseline.jsonc | 8 + ...initionDestructuredRequire2.baseline.jsonc | 8 + ...goToDefinitionDifferentFile.baseline.jsonc | 82 + ...tionDifferentFileIndirectly.baseline.jsonc | 82 + ...oToDefinitionDynamicImport1.baseline.jsonc | 13 + ...oToDefinitionDynamicImport2.baseline.jsonc | 7 + ...oToDefinitionDynamicImport3.baseline.jsonc | 4 + ...oToDefinitionDynamicImport4.baseline.jsonc | 4 + ...goToDefinitionExpandoClass1.baseline.jsonc | 9 + ...goToDefinitionExpandoClass2.baseline.jsonc | 11 + ...initionExpandoElementAccess.baseline.jsonc | 5 + ...efinitionExternalModuleName.baseline.jsonc | 7 + ...finitionExternalModuleName2.baseline.jsonc | 8 + ...finitionExternalModuleName3.baseline.jsonc | 9 + ...finitionExternalModuleName4.baseline.jsonc | 3 + ...finitionExternalModuleName5.baseline.jsonc | 5 + ...finitionExternalModuleName6.baseline.jsonc | 8 + ...finitionExternalModuleName7.baseline.jsonc | 8 + ...finitionExternalModuleName8.baseline.jsonc | 8 + ...finitionExternalModuleName9.baseline.jsonc | 8 + ...DefinitionFunctionOverloads.baseline.jsonc | 45 + ...ionFunctionOverloadsInClass.baseline.jsonc | 25 + .../goToDefinitionFunctionType.baseline.jsonc | 35 + ...finitionImplicitConstructor.baseline.jsonc | 5 + .../goToDefinitionImport1.baseline.jsonc | 6 + .../goToDefinitionImport2.baseline.jsonc | 3 + .../goToDefinitionImport3.baseline.jsonc | 3 + ...goToDefinitionImportedNames.baseline.jsonc | 13 + ...ToDefinitionImportedNames10.baseline.jsonc | 10 + ...ToDefinitionImportedNames11.baseline.jsonc | 10 + ...oToDefinitionImportedNames2.baseline.jsonc | 13 + ...oToDefinitionImportedNames3.baseline.jsonc | 31 + ...oToDefinitionImportedNames4.baseline.jsonc | 13 + ...oToDefinitionImportedNames5.baseline.jsonc | 13 + ...oToDefinitionImportedNames6.baseline.jsonc | 13 + ...oToDefinitionImportedNames7.baseline.jsonc | 9 + ...oToDefinitionImportedNames8.baseline.jsonc | 9 + ...oToDefinitionImportedNames9.baseline.jsonc | 10 + .../goToDefinitionImports.baseline.jsonc | 57 + ...finitionInMemberDeclaration.baseline.jsonc | 154 ++ ...oToDefinitionInTypeArgument.baseline.jsonc | 17 + ...oToDefinitionIndexSignature.baseline.jsonc | 100 + ...ToDefinitionIndexSignature2.baseline.jsonc | 4 + .../goToDefinitionInstanceof1.baseline.jsonc | 6 + .../goToDefinitionInstanceof2.baseline.jsonc | 7 + ...tionInterfaceAfterImplement.baseline.jsonc | 12 + ...ToDefinitionJsDocImportTag1.baseline.jsonc | 5 + ...ToDefinitionJsDocImportTag2.baseline.jsonc | 5 + ...ToDefinitionJsDocImportTag3.baseline.jsonc | 5 + ...ToDefinitionJsDocImportTag4.baseline.jsonc | 8 + ...ToDefinitionJsDocImportTag5.baseline.jsonc | 13 + ...ToDefinitionJsModuleExports.baseline.jsonc | 15 + .../goToDefinitionJsModuleName.baseline.jsonc | 6 + ...ionJsModuleNameAtImportName.baseline.jsonc | 53 + .../goToDefinitionJsxCall.baseline.jsonc | 8 + .../goToDefinitionJsxNotSet.baseline.jsonc | 10 + .../goToDefinitionLabels.baseline.jsonc | 49 + .../goToDefinitionMember.baseline.jsonc | 5 + .../goToDefinitionMetaProperty.baseline.jsonc | 46 + ...ToDefinitionMethodOverloads.baseline.jsonc | 106 + .../goToDefinitionModifiers.baseline.jsonc | 199 ++ ...finitionMultipleDefinitions.baseline.jsonc | 32 + ...NewExpressionTargetNotClass.baseline.jsonc | 23 + ...indingElementPropertyName01.baseline.jsonc | 9 + ...tionObjectLiteralProperties.baseline.jsonc | 87 + ...ionObjectLiteralProperties1.baseline.jsonc | 29 + .../goToDefinitionObjectSpread.baseline.jsonc | 8 + ...sInMultiplePropertyAccesses.baseline.jsonc | 10 + ...DefinitionOverriddenMember1.baseline.jsonc | 8 + ...efinitionOverriddenMember10.baseline.jsonc | 7 + ...efinitionOverriddenMember11.baseline.jsonc | 57 + ...efinitionOverriddenMember12.baseline.jsonc | 8 + ...efinitionOverriddenMember13.baseline.jsonc | 8 + ...efinitionOverriddenMember14.baseline.jsonc | 9 + ...efinitionOverriddenMember15.baseline.jsonc | 9 + ...efinitionOverriddenMember16.baseline.jsonc | 9 + ...efinitionOverriddenMember17.baseline.jsonc | 8 + ...efinitionOverriddenMember18.baseline.jsonc | 8 + ...efinitionOverriddenMember19.baseline.jsonc | 8 + ...DefinitionOverriddenMember2.baseline.jsonc | 9 + ...efinitionOverriddenMember20.baseline.jsonc | 8 + ...efinitionOverriddenMember21.baseline.jsonc | 9 + ...efinitionOverriddenMember22.baseline.jsonc | 9 + ...efinitionOverriddenMember23.baseline.jsonc | 8 + ...efinitionOverriddenMember24.baseline.jsonc | 8 + ...efinitionOverriddenMember25.baseline.jsonc | 9 + ...efinitionOverriddenMember26.baseline.jsonc | 9 + ...DefinitionOverriddenMember3.baseline.jsonc | 9 + ...DefinitionOverriddenMember4.baseline.jsonc | 10 + ...DefinitionOverriddenMember5.baseline.jsonc | 7 + ...DefinitionOverriddenMember6.baseline.jsonc | 8 + ...DefinitionOverriddenMember7.baseline.jsonc | 5 + ...DefinitionOverriddenMember8.baseline.jsonc | 11 + ...DefinitionOverriddenMember9.baseline.jsonc | 11 + ...nitionPartialImplementation.baseline.jsonc | 16 + .../goToDefinitionPrimitives.baseline.jsonc | 3 + .../goToDefinitionPrivateName.baseline.jsonc | 45 + ...efinitionPropertyAssignment.baseline.jsonc | 19 + .../goToDefinitionRest.baseline.jsonc | 10 + .../goToDefinitionReturn1.baseline.jsonc | 5 + .../goToDefinitionReturn2.baseline.jsonc | 7 + .../goToDefinitionReturn3.baseline.jsonc | 7 + .../goToDefinitionReturn4.baseline.jsonc | 3 + .../goToDefinitionReturn5.baseline.jsonc | 7 + .../goToDefinitionReturn6.baseline.jsonc | 7 + .../goToDefinitionReturn7.baseline.jsonc | 7 + .../goToDefinitionSameFile.baseline.jsonc | 82 + ...initionSatisfiesExpression1.baseline.jsonc | 19 + .../goToDefinitionScriptImport.baseline.jsonc | 11 + ...efinitionScriptImportServer.baseline.jsonc | 21 + ...oToDefinitionShadowVariable.baseline.jsonc | 7 + ...nShadowVariableInsideModule.baseline.jsonc | 6 + ...finitionShorthandProperty01.baseline.jsonc | 41 + ...finitionShorthandProperty02.baseline.jsonc | 5 + ...finitionShorthandProperty03.baseline.jsonc | 19 + ...finitionShorthandProperty04.baseline.jsonc | 9 + ...finitionShorthandProperty05.baseline.jsonc | 9 + ...finitionShorthandProperty06.baseline.jsonc | 9 + ...itionSignatureAlias_require.baseline.jsonc | 17 + .../goToDefinitionSimple.baseline.jsonc | 17 + .../goToDefinitionSourceUnit.baseline.jsonc | 22 + .../goToDefinitionSwitchCase1.baseline.jsonc | 5 + .../goToDefinitionSwitchCase2.baseline.jsonc | 5 + .../goToDefinitionSwitchCase3.baseline.jsonc | 21 + .../goToDefinitionSwitchCase4.baseline.jsonc | 9 + .../goToDefinitionSwitchCase5.baseline.jsonc | 3 + .../goToDefinitionSwitchCase6.baseline.jsonc | 21 + .../goToDefinitionSwitchCase7.baseline.jsonc | 5 + ...tionTaggedTemplateOverloads.baseline.jsonc | 19 + .../goToDefinitionThis.baseline.jsonc | 33 + ...oToDefinitionTypeOnlyImport.baseline.jsonc | 8 + ...goToDefinitionTypePredicate.baseline.jsonc | 15 + ...itionTypeReferenceDirective.baseline.jsonc | 4 + .../goToDefinitionTypeofThis.baseline.jsonc | 33 + ...oDefinitionUndefinedSymbols.baseline.jsonc | 33 + ...efinitionUnionTypeProperty1.baseline.jsonc | 16 + ...efinitionUnionTypeProperty2.baseline.jsonc | 18 + ...efinitionUnionTypeProperty3.baseline.jsonc | 10 + ...efinitionUnionTypeProperty4.baseline.jsonc | 19 + ...nTypeProperty_discriminated.baseline.jsonc | 95 + ...efinitionVariableAssignment.baseline.jsonc | 6 + ...finitionVariableAssignment1.baseline.jsonc | 5 + ...finitionVariableAssignment2.baseline.jsonc | 6 + ...finitionVariableAssignment3.baseline.jsonc | 5 + .../goToDefinitionYield1.baseline.jsonc | 21 + .../goToDefinitionYield2.baseline.jsonc | 8 + .../goToDefinitionYield3.baseline.jsonc | 23 + .../goToDefinitionYield4.baseline.jsonc | 5 + ..._filteringGenericMappedType.baseline.jsonc | 14 + ...inition_filteringMappedType.baseline.jsonc | 5 + .../goToDefinition_mappedType.baseline.jsonc | 5 + .../goToDefinition_super.baseline.jsonc | 46 + ...oToDefinition_untypedModule.baseline.jsonc | 4 + .../goToModuleAliasDefinition.baseline.jsonc | 4 + .../goToTypeDefinition4.baseline.jsonc | 8 + ...finitionConstructorFunction.baseline.jsonc | 10 + ...tionInObjectBindingPattern1.baseline.jsonc | 7 + ...tionInObjectBindingPattern2.baseline.jsonc | 18 + .../gotoDefinitionLinkTag1.baseline.jsonc | 125 + .../gotoDefinitionLinkTag2.baseline.jsonc | 6 + .../gotoDefinitionLinkTag3.baseline.jsonc | 9 + .../gotoDefinitionLinkTag4.baseline.jsonc | 6 + .../gotoDefinitionLinkTag5.baseline.jsonc | 7 + .../gotoDefinitionLinkTag6.baseline.jsonc | 6 + ...essExpressionHeritageClause.baseline.jsonc | 19 + .../gotoDefinitionSatisfiesTag.baseline.jsonc | 9 + .../gotoDefinitionThrowsTag.baseline.jsonc | 8 + ...mportTypeNodeGoToDefinition.baseline.jsonc | 95 + .../javaScriptClass3.baseline.jsonc | 27 + .../goToDefinition/jsDocSee1.baseline.jsonc | 91 + .../goToDefinition/jsDocSee2.baseline.jsonc | 87 + .../goToDefinition/jsDocSee3.baseline.jsonc | 9 + .../goToDefinition/jsDocSee4.baseline.jsonc | 52 + ...docTypedefTagGoToDefinition.baseline.jsonc | 34 + .../jsxSpreadReference.baseline.jsonc | 8 + ..._with_variable_entity_names.baseline.jsonc | 11 + .../reallyLargeFile.baseline.jsonc | 7 + .../tsxGoToDefinitionClasses.baseline.jsonc | 48 + ...tsxGoToDefinitionIntrinsics.baseline.jsonc | 48 + ...efinitionStatelessFunction1.baseline.jsonc | 87 + ...efinitionStatelessFunction2.baseline.jsonc | 104 + ...DefinitionUnionElementType1.baseline.jsonc | 14 + ...DefinitionUnionElementType2.baseline.jsonc | 8 + .../goToTypeDefinition.baseline.jsonc | 9 + .../goToTypeDefinition2.baseline.jsonc | 11 + .../goToTypeDefinition3.baseline.jsonc | 4 + .../goToTypeDefinition4.baseline.jsonc | 4 + .../goToTypeDefinition5.baseline.jsonc | 5 + .../goToTypeDefinitionAliases.baseline.jsonc | 23 + ...ToTypeDefinitionEnumMembers.baseline.jsonc | 9 + ...oToTypeDefinitionImportMeta.baseline.jsonc | 9 + ...goToTypeDefinitionModifiers.baseline.jsonc | 227 ++ .../goToTypeDefinitionModule.baseline.jsonc | 23 + ...oToTypeDefinitionPrimitives.baseline.jsonc | 33 + ...goToTypeDefinitionUnionType.baseline.jsonc | 19 + .../goToTypeDefinition_Pick.baseline.jsonc | 19 + ...oToTypeDefinition_arrayType.baseline.jsonc | 37 + ...oTypeDefinition_promiseType.baseline.jsonc | 19 + ...ToTypeDefinition_returnType.baseline.jsonc | 179 ++ ...ypeDefinition_typeReference.baseline.jsonc | 6 + .../goToTypeDefinition_typedef.baseline.jsonc | 9 + .../goToType/typedefinition01.baseline.jsonc | 7 + ...fContextSensitiveParameterNoCrash.baseline | 124 + .../deprecatedInheritedJSDocOverload.baseline | 63 + .../quickInfo/jsDocAliasQuickInfo.baseline | 61 + .../quickInfo/jsDocTypeTagQuickInfo1.baseline | 472 ++++ .../quickInfo/jsDocTypeTagQuickInfo2.baseline | 436 ++++ .../quickInfo/jsDocTypedefQuickInfo1.baseline | 98 + .../fourslash/quickInfo/jsdocLink1.baseline | 58 + .../fourslash/quickInfo/jsdocLink4.baseline | 122 + .../fourslash/quickInfo/jsdocLink5.baseline | 47 + .../jsdocOnInheritedMembers1.baseline | 51 + .../jsdocOnInheritedMembers2.baseline | 51 + ...InfoDisplayPartsClassDefaultNamed.baseline | 104 + .../quickInfoDisplayPartsConst.baseline | 569 +++++ .../quickInfoDisplayPartsEnum1.baseline | 1042 ++++++++ .../quickInfoDisplayPartsEnum2.baseline | 1042 ++++++++ .../quickInfoDisplayPartsEnum3.baseline | 1042 ++++++++ .../quickInfoDisplayPartsEnum4.baseline | 78 + ...foDisplayPartsExternalModuleAlias.baseline | 104 + ...ckInfoDisplayPartsExternalModules.baseline | 576 +++++ .../quickInfoDisplayPartsFunction.baseline | 510 ++++ ...nfoDisplayPartsFunctionExpression.baseline | 216 ++ ...nfoDisplayPartsFunctionIncomplete.baseline | 72 + .../quickInfoDisplayPartsInterface.baseline | 109 + ...kInfoDisplayPartsInterfaceMembers.baseline | 320 +++ ...foDisplayPartsInternalModuleAlias.baseline | 290 +++ .../quickInfoDisplayPartsLet.baseline | 569 +++++ ...nfoDisplayPartsLiteralLikeNames01.baseline | 357 +++ ...uickInfoDisplayPartsLocalFunction.baseline | 581 +++++ .../quickInfoDisplayPartsModules.baseline | 576 +++++ .../quickInfoDisplayPartsParameters.baseline | 319 +++ .../quickInfoDisplayPartsTypeAlias.baseline | 212 ++ ...oDisplayPartsTypeParameterInClass.baseline | 1418 +++++++++++ ...splayPartsTypeParameterInFunction.baseline | 420 ++++ ...arameterInFunctionLikeInTypeAlias.baseline | 108 + ...playPartsTypeParameterInInterface.baseline | 2232 +++++++++++++++++ ...playPartsTypeParameterInTypeAlias.baseline | 210 ++ .../quickInfoDisplayPartsUsing.baseline | 76 + .../quickInfoDisplayPartsVar.baseline | 495 ++++ ...oDisplayPartsVarWithStringTypes01.baseline | 109 + ...ForArgumentsPropertyNameInJsMode1.baseline | 81 + ...ForArgumentsPropertyNameInJsMode2.baseline | 77 + .../quickInfoForConstAssertions.baseline | 144 ++ .../quickInfoForJSDocCodefence.baseline | 101 + .../quickInfoForJSDocUnknownTag.baseline | 249 ++ .../quickInfoForJSDocWithHttpLinks.baseline | 230 ++ ...foForJSDocWithUnresolvedHttpLinks.baseline | 79 + ...InfoForObjectBindingElementName03.baseline | 48 + ...InfoForObjectBindingElementName04.baseline | 88 + ...InfoForObjectBindingElementName05.baseline | 51 + ...InfoForObjectBindingElementName06.baseline | 56 + .../quickInfo/quickInfoImportMeta.baseline | 57 + .../quickInfo/quickInfoInheritDoc.baseline | 179 ++ .../quickInfo/quickInfoInheritDoc2.baseline | 55 + .../quickInfo/quickInfoInheritDoc3.baseline | 56 + .../quickInfo/quickInfoInheritDoc4.baseline | 50 + .../quickInfo/quickInfoInheritDoc5.baseline | 50 + .../quickInfo/quickInfoInheritDoc6.baseline | 48 + .../quickInfoJSDocAtBeforeSpace.baseline | 129 + .../quickInfo/quickInfoJSDocTags.baseline | 486 ++++ .../quickInfo/quickInfoJsDoc.baseline | 473 ++++ .../quickInfo/quickInfoJsDocAlias.baseline | 22 + .../quickInfoJsDocGetterSetter.baseline | 381 +++ .../quickInfoJsDocInheritage.baseline | 924 +++++++ .../quickInfo/quickInfoJsDocTags1.baseline | 51 + .../quickInfo/quickInfoJsDocTags10.baseline | 51 + .../quickInfo/quickInfoJsDocTags11.baseline | 55 + .../quickInfo/quickInfoJsDocTags12.baseline | 55 + .../quickInfo/quickInfoJsDocTags14.baseline | 56 + .../quickInfo/quickInfoJsDocTags15.baseline | 121 + .../quickInfo/quickInfoJsDocTags16.baseline | 88 + .../quickInfo/quickInfoJsDocTags3.baseline | 55 + .../quickInfo/quickInfoJsDocTags4.baseline | 58 + .../quickInfo/quickInfoJsDocTags5.baseline | 58 + .../quickInfo/quickInfoJsDocTags6.baseline | 61 + .../quickInfo/quickInfoJsDocTags7.baseline | 49 + .../quickInfo/quickInfoJsDocTags8.baseline | 49 + .../quickInfo/quickInfoJsDocTags9.baseline | 50 + .../quickInfoJsDocTagsCallback.baseline | 83 + ...ckInfoJsDocTagsFunctionOverload01.baseline | 84 + ...ckInfoJsDocTagsFunctionOverload05.baseline | 80 + .../quickInfoJsDocTagsTypedef.baseline | 87 + .../quickInfo/quickInfoJsDocThisTag.baseline | 44 + .../quickInfo/quickInfoLink10.baseline | 42 + .../quickInfo/quickInfoLink11.baseline | 50 + .../quickInfo/quickInfoLink5.baseline | 43 + .../quickInfo/quickInfoLink6.baseline | 43 + .../quickInfo/quickInfoLink7.baseline | 42 + .../quickInfo/quickInfoLink8.baseline | 43 + .../quickInfo/quickInfoLink9.baseline | 26 + ...nfoNestedExportEqualExportDefault.baseline | 58 + ...laredUsingCatchCallIndexSignature.baseline | 42 + ...singTemplateLiteralTypeSignatures.baseline | 80 + .../quickInfoOnJsxNamespacedName.baseline | 21 + .../quickInfoOnParameterProperties.baseline | 97 + .../quickInfo/quickInfoOnThis5.baseline | 210 ++ ...rtiesWithIdenticalJSDocComments01.baseline | 63 + ...hodsOnAssignedFunctionExpressions.baseline | 48 + .../quickInfo/quickInfoSatisfiesTag.baseline | 42 + .../quickInfo/quickInfoTypedefTag.baseline | 128 + .../quickInfoUniqueSymbolJsDoc.baseline | 41 + .../jsDocDontBreakWithNamespaces.baseline | 94 + .../jsDocFunctionSignatures5.baseline | 54 + .../jsDocFunctionSignatures6.baseline | 164 ++ .../jsDocSignature_43394.baseline | 25 + .../signatureHelp/jsdocReturnsTag.baseline | 46 + .../quickInfoJsDocTags13.baseline | 100 + .../trailingCommaSignatureHelp.baseline | 85 + .../doubleUnderscoreRenames.baseline.jsonc | 23 + ...AllReferencesDynamicImport2.baseline.jsonc | 17 + ...AllReferencesDynamicImport3.baseline.jsonc | 11 + ...fsClassWithStaticThisAccess.baseline.jsonc | 7 + ...ssWithStaticThisAccess.baseline.jsonc.diff | 14 + ...findAllRefsOnImportAliases2.baseline.jsonc | 56 + ...llRefsOnImportAliases2.baseline.jsonc.diff | 8 + ...sForExportFromUnfoundModule.baseline.jsonc | 5 + ...xportFromUnfoundModule.baseline.jsonc.diff | 9 + .../javaScriptClass2.baseline.jsonc | 53 + .../jsDocSee_rename1.baseline.jsonc | 27 + .../jsDocSee_rename1.baseline.jsonc.diff | 24 + .../jsdocCallbackTagRename01.baseline.jsonc | 9 + ...docCallbackTagRename01.baseline.jsonc.diff | 10 + .../jsdocLink_rename1.baseline.jsonc | 7 + .../jsdocSatisfiesTagRename.baseline.jsonc | 9 + .../jsdocThrowsTag_rename.baseline.jsonc | 7 + .../jsdocThrowsTag_rename.baseline.jsonc.diff | 10 + .../jsdocTypedefTagRename01.baseline.jsonc | 33 + ...sdocTypedefTagRename01.baseline.jsonc.diff | 46 + .../jsdocTypedefTagRename02.baseline.jsonc | 15 + ...sdocTypedefTagRename02.baseline.jsonc.diff | 20 + .../jsdocTypedefTagRename03.baseline.jsonc | 25 + ...sdocTypedefTagRename03.baseline.jsonc.diff | 20 + .../jsxSpreadReference.baseline.jsonc | 19 + .../jsxSpreadReference.baseline.jsonc.diff | 8 + .../processInvalidSyntax1.baseline.jsonc | 14 + .../processInvalidSyntax1.baseline.jsonc.diff | 25 + .../rename01.baseline.jsonc | 7 + .../rename01.baseline.jsonc.diff | 13 + ...enameAcrossMultipleProjects.baseline.jsonc | 39 + .../renameAlias.baseline.jsonc | 13 + .../renameAlias2.baseline.jsonc | 13 + .../renameAlias3.baseline.jsonc | 13 + .../renameAliasExternalModule.baseline.jsonc | 11 + .../renameAliasExternalModule2.baseline.jsonc | 25 + .../renameAliasExternalModule3.baseline.jsonc | 19 + ...gElementInitializerExternal.baseline.jsonc | 115 + ...entInitializerExternal.baseline.jsonc.diff | 73 + ...gElementInitializerProperty.baseline.jsonc | 52 + .../renameCommentsAndStrings1.baseline.jsonc | 7 + .../renameCommentsAndStrings2.baseline.jsonc | 7 + ...ameCommentsAndStrings2.baseline.jsonc.diff | 12 + .../renameCommentsAndStrings3.baseline.jsonc | 7 + ...ameCommentsAndStrings3.baseline.jsonc.diff | 12 + .../renameCommentsAndStrings4.baseline.jsonc | 8 + ...ameCommentsAndStrings4.baseline.jsonc.diff | 20 + ...ContextuallyTypedProperties.baseline.jsonc | 374 +++ ...xtuallyTypedProperties.baseline.jsonc.diff | 430 ++++ ...ontextuallyTypedProperties2.baseline.jsonc | 373 +++ ...tuallyTypedProperties2.baseline.jsonc.diff | 430 ++++ .../renameCrossJsTs01.baseline.jsonc | 21 + .../renameDeclarationKeywords.baseline.jsonc | 191 ++ ...ameDeclarationKeywords.baseline.jsonc.diff | 266 ++ ...eDefaultImportDifferentName.baseline.jsonc | 22 + ...ultImportDifferentName.baseline.jsonc.diff | 8 + .../renameDefaultLibDontWork.baseline.jsonc | 4 + ...nameDefaultLibDontWork.baseline.jsonc.diff | 8 + ...nameDestructuringAssignment.baseline.jsonc | 19 + ...ignmentNestedInArrayLiteral.baseline.jsonc | 45 + ...ingAssignmentNestedInForOf2.baseline.jsonc | 83 + ...eDestructuringClassProperty.baseline.jsonc | 78 + ...ructuringClassProperty.baseline.jsonc.diff | 10 + ...structuringDeclarationInFor.baseline.jsonc | 55 + ...ructuringDeclarationInForOf.baseline.jsonc | 57 + ...tructuringFunctionParameter.baseline.jsonc | 21 + ...cturingNestedBindingElement.baseline.jsonc | 59 + .../renameExportCrash.baseline.jsonc | 5 + .../renameExportSpecifier.baseline.jsonc | 6 + .../renameExportSpecifier.baseline.jsonc.diff | 12 + .../renameExportSpecifier2.baseline.jsonc | 6 + ...renameExportSpecifier2.baseline.jsonc.diff | 12 + .../renameForStringLiteral.baseline.jsonc | 8 + ...renameForStringLiteral.baseline.jsonc.diff | 16 + .../renameFunctionParameter1.baseline.jsonc | 10 + ...nameFunctionParameter1.baseline.jsonc.diff | 11 + .../renameFunctionParameter2.baseline.jsonc | 8 + ...nameFunctionParameter2.baseline.jsonc.diff | 11 + .../renameImportAndExport.baseline.jsonc | 11 + .../renameImportAndExport.baseline.jsonc.diff | 17 + ...eImportAndExportInDiffFiles.baseline.jsonc | 21 + ...rtAndExportInDiffFiles.baseline.jsonc.diff | 25 + .../renameImportAndShorthand.baseline.jsonc | 11 + ...ImportNamespaceAndShorthand.baseline.jsonc | 11 + .../renameImportOfExportEquals.baseline.jsonc | 121 + ...meImportOfExportEquals.baseline.jsonc.diff | 85 + .../renameImportRequire.baseline.jsonc | 47 + .../renameImportRequire.baseline.jsonc.diff | 60 + ...ImportSpecifierPropertyName.baseline.jsonc | 6 + .../renameInConfiguredProject.baseline.jsonc | 15 + ...ameInConfiguredProject.baseline.jsonc.diff | 15 + .../tsxRename1.baseline.jsonc | 29 + .../tsxRename2.baseline.jsonc | 21 + .../tsxRename2.baseline.jsonc.diff | 26 + .../tsxRename3.baseline.jsonc | 22 + .../tsxRename3.baseline.jsonc.diff | 23 + .../tsxRename5.baseline.jsonc | 19 + .../tsxRename6.baseline.jsonc | 87 + .../tsxRename7.baseline.jsonc | 34 + .../tsxRename7.baseline.jsonc.diff | 52 + .../tsxRename9.baseline.jsonc | 245 ++ .../tsxRename9.baseline.jsonc.diff | 98 + .../smartSelection_comment2.baseline | 6 + .../smartSelection_complex.baseline | 12 + .../smartSelection_complex.baseline.diff | 11 + .../smartSelection_emptyRanges.baseline | 95 + .../smartSelection_emptyRanges.baseline.diff | 128 + .../smartSelection_function1.baseline | 17 + .../smartSelection_function2.baseline | 13 + .../smartSelection_function3.baseline | 17 + .../smartSelection_functionParams1.baseline | 24 + ...artSelection_functionParams1.baseline.diff | 11 + .../smartSelection_functionParams2.baseline | 15 + ...artSelection_functionParams2.baseline.diff | 21 + .../smartSelection_imports.baseline | 15 + .../smartSelection_imports.baseline.diff | 38 + .../smartSelection_lastBlankLine.baseline | 5 + ...smartSelection_lastBlankLine.baseline.diff | 8 + ...Selection_loneVariableDeclaration.baseline | 5 + .../smartSelection_mappedTypes.baseline | 44 + .../smartSelection_mappedTypes.baseline.diff | 67 + .../smartSelection_objectTypes.baseline | 134 + .../smartSelection_objectTypes.baseline.diff | 128 + ...martSelection_punctuationPriority.baseline | 6 + ...election_punctuationPriority.baseline.diff | 10 + .../smartSelection_simple1.baseline | 90 + .../smartSelection_simple1.baseline.diff | 124 + .../smartSelection_simple2.baseline | 38 + .../smartSelection_simple2.baseline.diff | 61 + .../smartSelection_stringLiteral.baseline | 9 + ...smartSelection_stringLiteral.baseline.diff | 12 + .../smartSelection_templateStrings.baseline | 24 + ...artSelection_templateStrings.baseline.diff | 38 + .../smartSelection_templateStrings2.baseline | 5 + ...rtSelection_templateStrings2.baseline.diff | 9 + 910 files changed, 60604 insertions(+), 72 deletions(-) create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInKeyword.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInSwitch.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInExport1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInKeyword.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInTypeExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightJSDocTypedef.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightMultilineTemplateStrings.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightTemplateStrings.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightVarianceModifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlights01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidGlobalThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidModifierLocations.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsTypeParameterInHeritageClause01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_33722.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_40082.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_filesToSearch.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/emptyExportFindReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/findAllRefsForModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/findReferencesJSXTagName3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAfterEdit.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPrivate.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPublic.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStatic.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStaticThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst04.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElseBroken.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesModifiersNegatives1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAssertion.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAttributes.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfDecorators.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfUndefinedSymbol.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPropertyInAliasedInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStatic1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiteralTypes.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiterals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuperNegatives.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesYield.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getPropertySymbolsFromBaseTypesDoesntCrash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/documentHighlights/renameDefaultImportDifferentName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesTripleSlash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUmdModuleAsGlobalConst.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportEquals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsModuleDotExports.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_typeofImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesAfterEdit.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocLink_findAllReferences1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/jsxFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/localGetReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForExportedValues.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStatementKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesInComment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesIsAvailableThroughGlobalNoCrash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/renameDefaultImportDifferentName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tslibFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember17.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember18.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember19.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember20.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember21.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember22.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember23.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember24.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember25.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember26.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/goToTypeDefinition4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/qualifiedName_import_declaration_with_variable_entity_names.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionAliases.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionEnumMembers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionImportMeta.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionPrimitives.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionUnionType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_Pick.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_arrayType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_promiseType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_returnType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typeReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typedef.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToType/typedefinition01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/deprecatedInheritedJSDocOverload.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsDocAliasQuickInfo.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo1.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo2.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsDocTypedefQuickInfo1.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocLink1.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocLink4.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocLink5.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers1.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers2.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsConst.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum1.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum2.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum3.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum4.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModules.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunction.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionExpression.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterface.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterfaceMembers.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLet.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLocalFunction.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsModules.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsParameters.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeAlias.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVar.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForConstAssertions.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocCodefence.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocUnknownTag.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName03.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName05.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName06.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoImportMeta.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc2.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc3.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc4.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc5.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc6.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocAtBeforeSpace.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocTags.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDoc.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocAlias.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocGetterSetter.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocInheritage.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags1.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags10.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags11.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags12.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags14.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags15.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags16.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags3.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags6.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags7.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags8.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags9.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsCallback.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload01.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload05.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsTypedef.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocThisTag.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink10.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink11.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink5.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink6.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink7.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink8.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoLink9.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoNestedExportEqualExportDefault.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxNamespacedName.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnParameterProperties.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnThis5.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoSatisfiesTag.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoTypedefTag.baseline create mode 100644 testdata/baselines/reference/fourslash/quickInfo/quickInfoUniqueSymbolJsDoc.baseline create mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline create mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline create mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline create mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline create mode 100644 testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline create mode 100644 testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline create mode 100644 testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocLink_rename1.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCrossJsTs01.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_comment2.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function1.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function2.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function3.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_loneVariableDeclaration.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline create mode 100644 testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline.diff diff --git a/internal/fourslash/_scripts/failingTests.txt b/internal/fourslash/_scripts/failingTests.txt index 3596e01173..f2ad135364 100644 --- a/internal/fourslash/_scripts/failingTests.txt +++ b/internal/fourslash/_scripts/failingTests.txt @@ -92,12 +92,10 @@ TestCompletionInJsDoc TestCompletionInUncheckedJSFile TestCompletionListBuilderLocations_VariableDeclarations TestCompletionListForDerivedType1 -TestCompletionListForTransitivelyExportedMembers04 TestCompletionListFunctionExpression TestCompletionListInArrowFunctionInUnclosedCallSite01 TestCompletionListInClassExpressionWithTypeParameter TestCompletionListInClassStaticBlocks -TestCompletionListInImportClause01 TestCompletionListInImportClause05 TestCompletionListInImportClause06 TestCompletionListInNamedClassExpression @@ -138,7 +136,6 @@ TestCompletionOfAwaitPromise6 TestCompletionOfAwaitPromise7 TestCompletionOfInterfaceAndVar TestCompletionPreferredSuggestions1 -TestCompletionPropertyShorthandForObjectLiteral5 TestCompletionWithConditionalOperatorMissingColon TestCompletionsAfterJSDoc TestCompletionsBeforeRestArg1 @@ -149,13 +146,12 @@ TestCompletionsClassMemberImportTypeNodeParameter4 TestCompletionsElementAccessNumeric TestCompletionsExportImport TestCompletionsGenericTypeWithMultipleBases1 -TestCompletionsImportBaseUrl TestCompletionsImportOrExportSpecifier TestCompletionsImport_default_alreadyExistedWithRename TestCompletionsImport_default_anonymous -TestCompletionsImport_default_didNotExistBefore -TestCompletionsImport_default_exportDefaultIdentifier +TestCompletionsImport_default_symbolName TestCompletionsImport_details_withMisspelledName +TestCompletionsImport_exportEquals TestCompletionsImport_exportEquals_anonymous TestCompletionsImport_exportEquals_global TestCompletionsImport_filteredByInvalidPackageJson_direct @@ -167,21 +163,18 @@ TestCompletionsImport_filteredByPackageJson_typesOnly TestCompletionsImport_importType TestCompletionsImport_jsxOpeningTagImportDefault TestCompletionsImport_mergedReExport -TestCompletionsImport_multipleWithSameName TestCompletionsImport_named_didNotExistBefore -TestCompletionsImport_named_exportEqualsNamespace TestCompletionsImport_named_namespaceImportExists TestCompletionsImport_noSemicolons -TestCompletionsImport_ofAlias_preferShortPath TestCompletionsImport_packageJsonImportsPreference TestCompletionsImport_quoteStyle -TestCompletionsImport_reExportDefault TestCompletionsImport_reExportDefault2 TestCompletionsImport_reExport_wrongName TestCompletionsImport_require_addToExisting TestCompletionsImport_typeOnly TestCompletionsImport_umdDefaultNoCrash1 TestCompletionsImport_uriStyleNodeCoreModules2 +TestCompletionsImport_weirdDefaultSynthesis TestCompletionsImport_windowsPathsProjectRelative TestCompletionsInExport TestCompletionsInExport_moduleBlock @@ -280,7 +273,6 @@ TestImportCompletions_importsMap3 TestImportCompletions_importsMap4 TestImportCompletions_importsMap5 TestImportNameCodeFixExportAsDefault -TestImportSuggestionsCache_exportUndefined TestImportTypeCompletions1 TestImportTypeCompletions3 TestImportTypeCompletions4 diff --git a/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go b/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go index 0061cd86a6..695a4b7f53 100644 --- a/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go +++ b/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go @@ -10,10 +10,9 @@ import ( func TestCompletionListForTransitivelyExportedMembers04(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @ModuleResolution: classic -// @Filename: A.ts + const content = `// @Filename: A.ts export interface I1 { one: number } export interface I2 { two: string } export type I1_OR_I2 = I1 | I2; @@ -35,10 +34,10 @@ export module Inner { export var bVar = "bee!"; // @Filename: C.ts export var cVar = "see!"; -export * from "A"; -export * from "B" +export * from "./A"; +export * from "./B" // @Filename: D.ts -import * as c from "C"; +import * as c from "./C"; var x: c.Inner./**/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ diff --git a/internal/fourslash/tests/gen/completionListInImportClause01_test.go b/internal/fourslash/tests/gen/completionListInImportClause01_test.go index baf14e33e1..a991772673 100644 --- a/internal/fourslash/tests/gen/completionListInImportClause01_test.go +++ b/internal/fourslash/tests/gen/completionListInImportClause01_test.go @@ -10,21 +10,20 @@ import ( func TestCompletionListInImportClause01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @ModuleResolution: classic -// @Filename: m1.ts + const content = `// @Filename: m1.ts export var foo: number = 1; export function bar() { return 10; } export function baz() { return 10; } // @Filename: m2.ts -import {/*1*/, /*2*/ from "m1" -import {/*3*/} from "m1" -import {foo,/*4*/ from "m1" -import {bar as /*5*/, /*6*/ from "m1" -import {foo, bar, baz as b,/*7*/} from "m1" -import { type /*8*/ } from "m1"; -import { type b/*9*/ } from "m1";` +import {/*1*/, /*2*/ from "./m1" +import {/*3*/} from "./m1" +import {foo,/*4*/ from "./m1" +import {bar as /*5*/, /*6*/ from "./m1" +import {foo, bar, baz as b,/*7*/} from "./m1" +import { type /*8*/ } from "./m1"; +import { type b/*9*/ } from "./m1";` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"8", "9"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral5_test.go b/internal/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral5_test.go index ed5e08c7ff..be134f1c72 100644 --- a/internal/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral5_test.go +++ b/internal/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral5_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionPropertyShorthandForObjectLiteral5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts @@ -33,7 +33,7 @@ const obj = { exp/**/` Label: "exportedConstant", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/a", + ModuleSpecifier: "./a", }, })), AdditionalTextEdits: fourslash.AnyTextEdits, diff --git a/internal/fourslash/tests/gen/completionsImportBaseUrl_test.go b/internal/fourslash/tests/gen/completionsImportBaseUrl_test.go index e73fae4069..524919274b 100644 --- a/internal/fourslash/tests/gen/completionsImportBaseUrl_test.go +++ b/internal/fourslash/tests/gen/completionsImportBaseUrl_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImportBaseUrl(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { @@ -38,7 +38,7 @@ fo/**/` Label: "foo", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/src/a", + ModuleSpecifier: "./a", }, })), Detail: PtrTo("const foo: 0"), diff --git a/internal/fourslash/tests/gen/completionsImport_default_anonymous_test.go b/internal/fourslash/tests/gen/completionsImport_default_anonymous_test.go index fce12a0932..fc96c437da 100644 --- a/internal/fourslash/tests/gen/completionsImport_default_anonymous_test.go +++ b/internal/fourslash/tests/gen/completionsImport_default_anonymous_test.go @@ -46,7 +46,7 @@ fooB/*1*/` Label: "fooBar", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/src/foo-bar", + ModuleSpecifier: "./foo-bar", }, })), Detail: PtrTo("(property) default: 0"), @@ -59,7 +59,7 @@ fooB/*1*/` }) f.VerifyApplyCodeActionFromCompletion(t, PtrTo("1"), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "fooBar", - Source: "/src/foo-bar", + Source: "./foo-bar", Description: "Add import from \"./foo-bar\"", NewFileContent: PtrTo(`import fooBar from "./foo-bar" diff --git a/internal/fourslash/tests/gen/completionsImport_default_didNotExistBefore_test.go b/internal/fourslash/tests/gen/completionsImport_default_didNotExistBefore_test.go index 26576cab49..7e641a338e 100644 --- a/internal/fourslash/tests/gen/completionsImport_default_didNotExistBefore_test.go +++ b/internal/fourslash/tests/gen/completionsImport_default_didNotExistBefore_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImport_default_didNotExistBefore(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts @@ -32,7 +32,7 @@ f/**/;` Label: "foo", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/a", + ModuleSpecifier: "./a", }, })), Detail: PtrTo("function foo(): void"), @@ -45,7 +45,7 @@ f/**/;` }) f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "foo", - Source: "/a", + Source: "./a", Description: "Add import from \"./a\"", NewFileContent: PtrTo(`import foo from "./a"; diff --git a/internal/fourslash/tests/gen/completionsImport_default_exportDefaultIdentifier_test.go b/internal/fourslash/tests/gen/completionsImport_default_exportDefaultIdentifier_test.go index ae41e12f86..8af15aaa3f 100644 --- a/internal/fourslash/tests/gen/completionsImport_default_exportDefaultIdentifier_test.go +++ b/internal/fourslash/tests/gen/completionsImport_default_exportDefaultIdentifier_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImport_default_exportDefaultIdentifier(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts @@ -34,7 +34,7 @@ f/**/;` Label: "foo", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/a", + ModuleSpecifier: "./a", }, })), Detail: PtrTo("(alias) const foo: 0\nexport default foo"), @@ -47,7 +47,7 @@ f/**/;` }) f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "foo", - Source: "/a", + Source: "./a", Description: "Add import from \"./a\"", NewFileContent: PtrTo(`import foo from "./a"; diff --git a/internal/fourslash/tests/gen/completionsImport_default_symbolName_test.go b/internal/fourslash/tests/gen/completionsImport_default_symbolName_test.go index bae20c6a6d..4145b4d095 100644 --- a/internal/fourslash/tests/gen/completionsImport_default_symbolName_test.go +++ b/internal/fourslash/tests/gen/completionsImport_default_symbolName_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImport_default_symbolName(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: false diff --git a/internal/fourslash/tests/gen/completionsImport_exportEquals_anonymous_test.go b/internal/fourslash/tests/gen/completionsImport_exportEquals_anonymous_test.go index f3b7805d04..40d012f3b6 100644 --- a/internal/fourslash/tests/gen/completionsImport_exportEquals_anonymous_test.go +++ b/internal/fourslash/tests/gen/completionsImport_exportEquals_anonymous_test.go @@ -60,7 +60,7 @@ fooB/*1*/` }, true), }, }) - f.VerifyApplyCodeActionFromCompletion(t, PtrTo("0"), &fourslash.ApplyCodeActionFromCompletionOptions{ + f.VerifyApplyCodeActionFromCompletion(t, PtrTo("1"), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "fooBar", Source: "./foo-bar", Description: "Add import from \"./foo-bar\"", diff --git a/internal/fourslash/tests/gen/completionsImport_exportEquals_test.go b/internal/fourslash/tests/gen/completionsImport_exportEquals_test.go index 5a1ef9edd0..071fb88853 100644 --- a/internal/fourslash/tests/gen/completionsImport_exportEquals_test.go +++ b/internal/fourslash/tests/gen/completionsImport_exportEquals_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImport_exportEquals(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: false diff --git a/internal/fourslash/tests/gen/completionsImport_multipleWithSameName_test.go b/internal/fourslash/tests/gen/completionsImport_multipleWithSameName_test.go index 5d5285e010..f455288f50 100644 --- a/internal/fourslash/tests/gen/completionsImport_multipleWithSameName_test.go +++ b/internal/fourslash/tests/gen/completionsImport_multipleWithSameName_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImport_multipleWithSameName(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @noLib: true @@ -45,7 +45,7 @@ fo/**/` Label: "foo", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/a", + ModuleSpecifier: "./a", }, })), Detail: PtrTo("const foo: 0"), @@ -57,7 +57,7 @@ fo/**/` Label: "foo", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/b", + ModuleSpecifier: "./b", }, })), Detail: PtrTo("const foo: 1"), @@ -70,7 +70,7 @@ fo/**/` }) f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "foo", - Source: "/b", + Source: "./b", Description: "Add import from \"./b\"", NewFileContent: PtrTo(`import { foo } from "./b"; diff --git a/internal/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_test.go b/internal/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_test.go index 17317b5fe3..19df35a031 100644 --- a/internal/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_test.go +++ b/internal/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImport_named_exportEqualsNamespace(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.d.ts @@ -35,7 +35,7 @@ f/**/;` Label: "foo", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/a", + ModuleSpecifier: "./a", }, })), Detail: PtrTo("const N.foo: 0"), @@ -48,7 +48,7 @@ f/**/;` }) f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "foo", - Source: "/a", + Source: "./a", Description: "Add import from \"./a\"", NewFileContent: PtrTo(`import { foo } from "./a"; diff --git a/internal/fourslash/tests/gen/completionsImport_ofAlias_preferShortPath_test.go b/internal/fourslash/tests/gen/completionsImport_ofAlias_preferShortPath_test.go index 3c6b93f2c4..008ee6d8c3 100644 --- a/internal/fourslash/tests/gen/completionsImport_ofAlias_preferShortPath_test.go +++ b/internal/fourslash/tests/gen/completionsImport_ofAlias_preferShortPath_test.go @@ -12,10 +12,9 @@ import ( func TestCompletionsImport_ofAlias_preferShortPath(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @moduleResolution: node10 -// @module: commonJs + const content = `// @module: commonJs // @noLib: true // @Filename: /foo/index.ts export { foo } from "./lib/foo"; @@ -37,10 +36,10 @@ fo/**/` Label: "foo", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/foo/lib/foo", + ModuleSpecifier: "./foo", }, })), - Detail: PtrTo("const foo: 0"), + Detail: PtrTo("(alias) const foo: 0\nexport foo"), Kind: PtrTo(lsproto.CompletionItemKindVariable), AdditionalTextEdits: fourslash.AnyTextEdits, SortText: PtrTo(string(ls.SortTextAutoImportSuggestions)), @@ -50,7 +49,7 @@ fo/**/` }) f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "foo", - Source: "/foo/lib/foo", + Source: "./foo", Description: "Add import from \"./foo\"", NewFileContent: PtrTo(`import { foo } from "./foo"; diff --git a/internal/fourslash/tests/gen/completionsImport_quoteStyle_test.go b/internal/fourslash/tests/gen/completionsImport_quoteStyle_test.go index 8be7bbd0e0..dd7412d400 100644 --- a/internal/fourslash/tests/gen/completionsImport_quoteStyle_test.go +++ b/internal/fourslash/tests/gen/completionsImport_quoteStyle_test.go @@ -21,7 +21,7 @@ fo/**/` f.GoToMarker(t, "") f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "foo", - Source: "/a", + Source: "./a", Description: "Add import from \"./a\"", NewFileContent: PtrTo(`import { foo } from './a'; diff --git a/internal/fourslash/tests/gen/completionsImport_reExportDefault_test.go b/internal/fourslash/tests/gen/completionsImport_reExportDefault_test.go index f6e4129652..97f460b0e1 100644 --- a/internal/fourslash/tests/gen/completionsImport_reExportDefault_test.go +++ b/internal/fourslash/tests/gen/completionsImport_reExportDefault_test.go @@ -12,10 +12,9 @@ import ( func TestCompletionsImport_reExportDefault(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext -// @moduleResolution: node10 // @Filename: /a/b/impl.ts export default function foo() {} // @Filename: /a/index.ts @@ -36,11 +35,11 @@ fo/**/` Label: "foo", Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/a/b/impl", + ModuleSpecifier: "./a", }, })), - Detail: PtrTo("function foo(): void"), - Kind: PtrTo(lsproto.CompletionItemKindFunction), + Detail: PtrTo("(alias) function foo(): void\nexport foo"), + Kind: PtrTo(lsproto.CompletionItemKindVariable), AdditionalTextEdits: fourslash.AnyTextEdits, SortText: PtrTo(string(ls.SortTextAutoImportSuggestions)), }, @@ -49,7 +48,7 @@ fo/**/` }) f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "foo", - Source: "/a/b/impl", + Source: "./a", Description: "Add import from \"./a\"", NewFileContent: PtrTo(`import { foo } from "./a"; diff --git a/internal/fourslash/tests/gen/completionsImport_weirdDefaultSynthesis_test.go b/internal/fourslash/tests/gen/completionsImport_weirdDefaultSynthesis_test.go index 5514308ba0..463ea288be 100644 --- a/internal/fourslash/tests/gen/completionsImport_weirdDefaultSynthesis_test.go +++ b/internal/fourslash/tests/gen/completionsImport_weirdDefaultSynthesis_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsImport_weirdDefaultSynthesis(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: false diff --git a/internal/fourslash/tests/gen/completionsUniqueSymbol_import_test.go b/internal/fourslash/tests/gen/completionsUniqueSymbol_import_test.go index acdd1674ab..cf8f74f548 100644 --- a/internal/fourslash/tests/gen/completionsUniqueSymbol_import_test.go +++ b/internal/fourslash/tests/gen/completionsUniqueSymbol_import_test.go @@ -45,7 +45,7 @@ i[|./**/|];` InsertText: PtrTo("[publicSym]"), Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/a", + ModuleSpecifier: "./a", }, })), SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)), @@ -62,7 +62,7 @@ i[|./**/|];` }) f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ Name: "publicSym", - Source: "/a", + Source: "./a", Description: "Update import from \"./a\"", NewFileContent: PtrTo(`import { i, publicSym } from "./a"; i.;`), diff --git a/internal/fourslash/tests/gen/importSuggestionsCache_exportUndefined_test.go b/internal/fourslash/tests/gen/importSuggestionsCache_exportUndefined_test.go index 33022ac27d..ede6bfef6d 100644 --- a/internal/fourslash/tests/gen/importSuggestionsCache_exportUndefined_test.go +++ b/internal/fourslash/tests/gen/importSuggestionsCache_exportUndefined_test.go @@ -12,7 +12,7 @@ import ( func TestImportSuggestionsCache_exportUndefined(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "esnext" } } @@ -39,7 +39,7 @@ export = x; SortText: PtrTo(string(ls.SortTextAutoImportSuggestions)), Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/home/src/workspaces/project/undefinedAlias", + ModuleSpecifier: "./undefinedAlias", }, })), }, @@ -60,7 +60,7 @@ export = x; SortText: PtrTo(string(ls.SortTextAutoImportSuggestions)), Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ - ModuleSpecifier: "/home/src/workspaces/project/undefinedAlias", + ModuleSpecifier: "./undefinedAlias", }, })), }, diff --git a/internal/fourslash/tests/gen/importTypeCompletions7_test.go b/internal/fourslash/tests/gen/importTypeCompletions7_test.go index e927da63ff..1e2a29b9b5 100644 --- a/internal/fourslash/tests/gen/importTypeCompletions7_test.go +++ b/internal/fourslash/tests/gen/importTypeCompletions7_test.go @@ -33,7 +33,7 @@ export = Foo; Exact: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "Foo", - InsertText: PtrTo("import * as Foo from \"./foo\";"), + InsertText: PtrTo("import Foo from \"./foo\";"), Data: PtrTo(any(&ls.CompletionItemData{ AutoImport: &ls.AutoImportData{ ModuleSpecifier: "./foo", diff --git a/internal/module/resolver.go b/internal/module/resolver.go index 7f83beb76d..1130604759 100644 --- a/internal/module/resolver.go +++ b/internal/module/resolver.go @@ -231,9 +231,8 @@ func (r *Resolver) ResolveModuleName(moduleName string, containingFile string, r } containingDirectory := tspath.GetDirectoryPath(containingFile) - moduleResolution := compilerOptions.ModuleResolution - if moduleResolution == core.ModuleResolutionKindUnknown { - moduleResolution = compilerOptions.GetModuleResolutionKind() + moduleResolution := compilerOptions.GetModuleResolutionKind() + if compilerOptions.ModuleResolution != moduleResolution { if traceBuilder != nil { traceBuilder.write(diagnostics.Module_resolution_kind_is_not_specified_using_0.Format(moduleResolution.String())) } diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties1.baseline.jsonc new file mode 100644 index 0000000000..1878204506 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties1.baseline.jsonc @@ -0,0 +1,15 @@ +// === documentHighlights === +// === /file1.ts === +// interface interface1 extends interface1 { +// /*HIGHLIGHTS*/[|doStuff|](): void; +// propName: string; +// } + + + +// === documentHighlights === +// === /file1.ts === +// interface interface1 extends interface1 { +// doStuff(): void; +// /*HIGHLIGHTS*/[|propName|]: string; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties2.baseline.jsonc new file mode 100644 index 0000000000..85ba0dee42 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties2.baseline.jsonc @@ -0,0 +1,15 @@ +// === documentHighlights === +// === /file1.ts === +// class class1 extends class1 { +// /*HIGHLIGHTS*/[|doStuff|]() { } +// propName: string; +// } + + + +// === documentHighlights === +// === /file1.ts === +// class class1 extends class1 { +// doStuff() { } +// /*HIGHLIGHTS*/[|propName|]: string; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties3.baseline.jsonc new file mode 100644 index 0000000000..c6cf1d5d22 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties3.baseline.jsonc @@ -0,0 +1,49 @@ +// === documentHighlights === +// === /file1.ts === +// interface interface1 extends interface1 { +// /*HIGHLIGHTS*/[|doStuff|](): void; +// propName: string; +// } +// +// var v: interface1; +// v.propName; +// v.[|doStuff|](); + + + +// === documentHighlights === +// === /file1.ts === +// interface interface1 extends interface1 { +// doStuff(): void; +// /*HIGHLIGHTS*/[|propName|]: string; +// } +// +// var v: interface1; +// v.[|propName|]; +// v.doStuff(); + + + +// === documentHighlights === +// === /file1.ts === +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// +// var v: interface1; +// v./*HIGHLIGHTS*/[|propName|]; +// v.doStuff(); + + + +// === documentHighlights === +// === /file1.ts === +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// +// var v: interface1; +// v.propName; +// v./*HIGHLIGHTS*/[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties4.baseline.jsonc new file mode 100644 index 0000000000..d716513d69 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties4.baseline.jsonc @@ -0,0 +1,49 @@ +// === documentHighlights === +// === /file1.ts === +// class class1 extends class1 { +// /*HIGHLIGHTS*/[|doStuff|]() { } +// propName: string; +// } +// +// var c: class1; +// c.[|doStuff|](); +// c.propName; + + + +// === documentHighlights === +// === /file1.ts === +// class class1 extends class1 { +// doStuff() { } +// /*HIGHLIGHTS*/[|propName|]: string; +// } +// +// var c: class1; +// c.doStuff(); +// c.[|propName|]; + + + +// === documentHighlights === +// === /file1.ts === +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var c: class1; +// c./*HIGHLIGHTS*/[|doStuff|](); +// c.propName; + + + +// === documentHighlights === +// === /file1.ts === +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var c: class1; +// c.doStuff(); +// c./*HIGHLIGHTS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties5.baseline.jsonc new file mode 100644 index 0000000000..430b6bd370 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties5.baseline.jsonc @@ -0,0 +1,82 @@ +// === documentHighlights === +// === /file1.ts === +// interface C extends D { +// /*HIGHLIGHTS*/[|prop0|]: string; +// prop1: number; +// } +// +// interface D extends C { +// [|prop0|]: string; +// prop1: number; +// } +// +// var d: D; +// d.prop1; + + + +// === documentHighlights === +// === /file1.ts === +// interface C extends D { +// prop0: string; +// /*HIGHLIGHTS*/[|prop1|]: number; +// } +// +// interface D extends C { +// prop0: string; +// [|prop1|]: number; +// } +// +// var d: D; +// d.[|prop1|]; + + + +// === documentHighlights === +// === /file1.ts === +// interface C extends D { +// [|prop0|]: string; +// prop1: number; +// } +// +// interface D extends C { +// /*HIGHLIGHTS*/[|prop0|]: string; +// prop1: number; +// } +// +// var d: D; +// d.prop1; + + + +// === documentHighlights === +// === /file1.ts === +// interface C extends D { +// prop0: string; +// [|prop1|]: number; +// } +// +// interface D extends C { +// prop0: string; +// /*HIGHLIGHTS*/[|prop1|]: number; +// } +// +// var d: D; +// d.[|prop1|]; + + + +// === documentHighlights === +// === /file1.ts === +// interface C extends D { +// prop0: string; +// [|prop1|]: number; +// } +// +// interface D extends C { +// prop0: string; +// [|prop1|]: number; +// } +// +// var d: D; +// d./*HIGHLIGHTS*/[|prop1|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties6.baseline.jsonc new file mode 100644 index 0000000000..e819cd0446 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtInheritedProperties6.baseline.jsonc @@ -0,0 +1,63 @@ +// === documentHighlights === +// === /file1.ts === +// class C extends D { +// /*HIGHLIGHTS*/[|prop0|]: string; +// prop1: string; +// } +// +// // --- (line: 6) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class C extends D { +// prop0: string; +// /*HIGHLIGHTS*/[|prop1|]: string; +// } +// +// class D extends C { +// // --- (line: 7) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// --- (line: 3) skipped --- +// } +// +// class D extends C { +// /*HIGHLIGHTS*/[|prop0|]: string; +// prop1: string; +// } +// +// var d: D; +// d.prop1; + + + +// === documentHighlights === +// === /file1.ts === +// --- (line: 4) skipped --- +// +// class D extends C { +// prop0: string; +// /*HIGHLIGHTS*/[|prop1|]: string; +// } +// +// var d: D; +// d.[|prop1|]; + + + +// === documentHighlights === +// === /file1.ts === +// --- (line: 4) skipped --- +// +// class D extends C { +// prop0: string; +// [|prop1|]: string; +// } +// +// var d: D; +// d./*HIGHLIGHTS*/[|prop1|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc new file mode 100644 index 0000000000..5176a15ed5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc @@ -0,0 +1,165 @@ +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private /*HIGHLIGHTS*/[|privateParam|]: number, +// public publicParam: string, +// protected protectedParam: boolean) { +// +// let localPrivate = [|privateParam|]; +// this.[|privateParam|] += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// // --- (line: 11) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private privateParam: number, +// public /*HIGHLIGHTS*/[|publicParam|]: string, +// protected protectedParam: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = [|publicParam|]; +// this.[|publicParam|] += " Hello!"; +// +// let localProtected = protectedParam; +// this.protectedParam = false; +// } +// } + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private privateParam: number, +// public publicParam: string, +// protected /*HIGHLIGHTS*/[|protectedParam|]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = [|protectedParam|]; +// this.[|protectedParam|] = false; +// } +// } + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private [|privateParam|]: number, +// public publicParam: string, +// protected protectedParam: boolean) { +// +// let localPrivate = /*HIGHLIGHTS*/[|privateParam|]; +// this.[|privateParam|] += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// // --- (line: 11) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private [|privateParam|]: number, +// public publicParam: string, +// protected protectedParam: boolean) { +// +// let localPrivate = [|privateParam|]; +// this./*HIGHLIGHTS*/[|privateParam|] += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// // --- (line: 11) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private privateParam: number, +// public [|publicParam|]: string, +// protected protectedParam: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = /*HIGHLIGHTS*/[|publicParam|]; +// this.[|publicParam|] += " Hello!"; +// +// let localProtected = protectedParam; +// this.protectedParam = false; +// } +// } + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private privateParam: number, +// public [|publicParam|]: string, +// protected protectedParam: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = [|publicParam|]; +// this./*HIGHLIGHTS*/[|publicParam|] += " Hello!"; +// +// let localProtected = protectedParam; +// this.protectedParam = false; +// } +// } + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private privateParam: number, +// public publicParam: string, +// protected [|protectedParam|]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = /*HIGHLIGHTS*/[|protectedParam|]; +// this.[|protectedParam|] = false; +// } +// } + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// constructor(private privateParam: number, +// public publicParam: string, +// protected [|protectedParam|]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = [|protectedParam|]; +// this./*HIGHLIGHTS*/[|protectedParam|] = false; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc new file mode 100644 index 0000000000..69914c5798 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc @@ -0,0 +1,109 @@ +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private {/*HIGHLIGHTS*/[|privateParam|]}: number, +// public {publicParam}: string, +// protected {protectedParam}: boolean) { +// +// let localPrivate = [|privateParam|]; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// // --- (line: 11) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private {privateParam}: number, +// public {/*HIGHLIGHTS*/[|publicParam|]}: string, +// protected {protectedParam}: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = [|publicParam|]; +// this.publicParam += " Hello!"; +// +// let localProtected = protectedParam; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private {privateParam}: number, +// public {publicParam}: string, +// protected {/*HIGHLIGHTS*/[|protectedParam|]}: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = [|protectedParam|]; +// this.protectedParam = false; +// } +// } + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private {[|privateParam|]}: number, +// public {publicParam}: string, +// protected {protectedParam}: boolean) { +// +// let localPrivate = /*HIGHLIGHTS*/[|privateParam|]; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// // --- (line: 11) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private {privateParam}: number, +// public {[|publicParam|]}: string, +// protected {protectedParam}: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = /*HIGHLIGHTS*/[|publicParam|]; +// this.publicParam += " Hello!"; +// +// let localProtected = protectedParam; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private {privateParam}: number, +// public {publicParam}: string, +// protected {[|protectedParam|]}: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = /*HIGHLIGHTS*/[|protectedParam|]; +// this.protectedParam = false; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc new file mode 100644 index 0000000000..c5e2753dbe --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc @@ -0,0 +1,109 @@ +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private [/*HIGHLIGHTS*/[|privateParam|]]: number, +// public [publicParam]: string, +// protected [protectedParam]: boolean) { +// +// let localPrivate = [|privateParam|]; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// // --- (line: 11) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private [privateParam]: number, +// public [/*HIGHLIGHTS*/[|publicParam|]]: string, +// protected [protectedParam]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = [|publicParam|]; +// this.publicParam += " Hello!"; +// +// let localProtected = protectedParam; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private [privateParam]: number, +// public [publicParam]: string, +// protected [/*HIGHLIGHTS*/[|protectedParam|]]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = [|protectedParam|]; +// this.protectedParam = false; +// } +// } + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private [[|privateParam|]]: number, +// public [publicParam]: string, +// protected [protectedParam]: boolean) { +// +// let localPrivate = /*HIGHLIGHTS*/[|privateParam|]; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// // --- (line: 11) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private [privateParam]: number, +// public [[|publicParam|]]: string, +// protected [protectedParam]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = /*HIGHLIGHTS*/[|publicParam|]; +// this.publicParam += " Hello!"; +// +// let localProtected = protectedParam; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /file1.ts === +// class Foo { +// // This is not valid syntax: parameter property can't be binding pattern +// constructor(private [privateParam]: number, +// public [publicParam]: string, +// protected [[|protectedParam|]]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = /*HIGHLIGHTS*/[|protectedParam|]; +// this.protectedParam = false; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInKeyword.baseline.jsonc new file mode 100644 index 0000000000..4d164587b5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInKeyword.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /documentHighlightDefaultInKeyword.ts === +// /*HIGHLIGHTS*/case +// default + + + +// === documentHighlights === +// === /documentHighlightDefaultInKeyword.ts === +// case +// /*HIGHLIGHTS*/default \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInSwitch.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInSwitch.baseline.jsonc new file mode 100644 index 0000000000..0e160b3e4c --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightDefaultInSwitch.baseline.jsonc @@ -0,0 +1,21 @@ +// === documentHighlights === +// === /documentHighlightDefaultInSwitch.ts === +// const foo = 'foo'; +// [|switch|] (foo) { +// /*HIGHLIGHTS*/[|case|] 'foo': +// [|break|]; +// [|default|]: +// [|break|]; +// } + + + +// === documentHighlights === +// === /documentHighlightDefaultInSwitch.ts === +// const foo = 'foo'; +// [|switch|] (foo) { +// [|case|] 'foo': +// [|break|]; +// [|default|]: +// /*HIGHLIGHTS*/[|break|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInExport1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInExport1.baseline.jsonc new file mode 100644 index 0000000000..22a8f5e37a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInExport1.baseline.jsonc @@ -0,0 +1,32 @@ +// === documentHighlights === +// === /documentHighlightInExport1.ts === +// class /*HIGHLIGHTS*/[|C|] {} +// export { C as D }; + + + +// === documentHighlights === +// === /documentHighlightInExport1.ts === +// class C {} +// /*HIGHLIGHTS*/export { C as D }; + + + +// === documentHighlights === +// === /documentHighlightInExport1.ts === +// class [|C|] {} +// export { /*HIGHLIGHTS*/C as D }; + + + +// === documentHighlights === +// === /documentHighlightInExport1.ts === +// class C {} +// export { C /*HIGHLIGHTS*/as D }; + + + +// === documentHighlights === +// === /documentHighlightInExport1.ts === +// class C {} +// export { C as /*HIGHLIGHTS*/D }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInKeyword.baseline.jsonc new file mode 100644 index 0000000000..1b627f9ea7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInKeyword.baseline.jsonc @@ -0,0 +1,31 @@ +// === documentHighlights === +// === /documentHighlightInKeyword.ts === +// export type Foo = { +// [K /*HIGHLIGHTS*/in keyof T]: any; +// } +// +// "a" in {}; +// +// for (let a in {}) {} + + + +// === documentHighlights === +// === /documentHighlightInKeyword.ts === +// export type Foo = { +// [K in keyof T]: any; +// } +// +// "a" /*HIGHLIGHTS*/in {}; +// +// for (let a in {}) {} + + + +// === documentHighlights === +// === /documentHighlightInKeyword.ts === +// --- (line: 3) skipped --- +// +// "a" in {}; +// +// for (let a /*HIGHLIGHTS*/in {}) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInTypeExport.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInTypeExport.baseline.jsonc new file mode 100644 index 0000000000..2eaebb3867 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightInTypeExport.baseline.jsonc @@ -0,0 +1,98 @@ +// === documentHighlights === +// === /1.ts === +// type /*HIGHLIGHTS*/[|A|] = 1; +// export { A as B }; + + + +// === documentHighlights === +// === /1.ts === +// type A = 1; +// export { /*HIGHLIGHTS*/A as B }; + + + +// === documentHighlights === +// === /1.ts === +// type A = 1; +// export { A as /*HIGHLIGHTS*/B }; + + + +// === documentHighlights === +// === /2.ts === +// type /*HIGHLIGHTS*/[|A|] = 1; +// let A: [|A|] = 1; +// export { A as B }; + + + +// === documentHighlights === +// === /2.ts === +// type A = 1; +// let /*HIGHLIGHTS*/[|A|]: A = 1; +// export { A as B }; + + + +// === documentHighlights === +// === /2.ts === +// type [|A|] = 1; +// let A: /*HIGHLIGHTS*/[|A|] = 1; +// export { A as B }; + + + +// === documentHighlights === +// === /2.ts === +// type A = 1; +// let [|A|]: A = 1; +// export { /*HIGHLIGHTS*/A as B }; + + + +// === documentHighlights === +// === /2.ts === +// type A = 1; +// let A: A = 1; +// export { A as /*HIGHLIGHTS*/B }; + + + +// === documentHighlights === +// === /3.ts === +// type /*HIGHLIGHTS*/[|A|] = 1; +// let A: [|A|] = 1; +// export type { A as B }; + + + +// === documentHighlights === +// === /3.ts === +// type A = 1; +// let /*HIGHLIGHTS*/[|A|]: A = 1; +// export type { A as B }; + + + +// === documentHighlights === +// === /3.ts === +// type [|A|] = 1; +// let A: /*HIGHLIGHTS*/[|A|] = 1; +// export type { A as B }; + + + +// === documentHighlights === +// === /3.ts === +// type A = 1; +// let [|A|]: A = 1; +// export type { /*HIGHLIGHTS*/A as B }; + + + +// === documentHighlights === +// === /3.ts === +// type A = 1; +// let A: A = 1; +// export type { A as /*HIGHLIGHTS*/B }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightJSDocTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightJSDocTypedef.baseline.jsonc new file mode 100644 index 0000000000..8e19a1b263 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightJSDocTypedef.baseline.jsonc @@ -0,0 +1,45 @@ +// === documentHighlights === +// === /index.js === +// /** +// * @typedef {{ +// * /*HIGHLIGHTS*/foo: string; +// * bar: number; +// * }} Foo +// */ +// // --- (line: 7) skipped --- + + + +// === documentHighlights === +// === /index.js === +// /** +// * @typedef {{ +// * foo: string; +// * /*HIGHLIGHTS*/bar: number; +// * }} Foo +// */ +// +// // --- (line: 8) skipped --- + + + +// === documentHighlights === +// === /index.js === +// --- (line: 6) skipped --- +// +// /** @type {Foo} */ +// const x = { +// /*HIGHLIGHTS*/[|foo|]: "", +// bar: 42, +// }; + + + +// === documentHighlights === +// === /index.js === +// --- (line: 7) skipped --- +// /** @type {Foo} */ +// const x = { +// foo: "", +// /*HIGHLIGHTS*/[|bar|]: 42, +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightMultilineTemplateStrings.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightMultilineTemplateStrings.baseline.jsonc new file mode 100644 index 0000000000..c8e706c822 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightMultilineTemplateStrings.baseline.jsonc @@ -0,0 +1,7 @@ +// === documentHighlights === +// === /documentHighlightMultilineTemplateStrings.ts === +// const foo = ` +// a +// /*HIGHLIGHTS*/b +// c +// ` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightTemplateStrings.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightTemplateStrings.baseline.jsonc new file mode 100644 index 0000000000..e7504bc218 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightTemplateStrings.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /documentHighlightTemplateStrings.ts === +// --- (line: 3) skipped --- +// p: Foo = `a`; +// m() { +// switch (this.p) { +// case `/*HIGHLIGHTS*/a`: +// return 1; +// case "b": +// return 2; +// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightVarianceModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightVarianceModifiers.baseline.jsonc new file mode 100644 index 0000000000..3eef4f868a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightVarianceModifiers.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /documentHighlightVarianceModifiers.ts === +// type TFoo = { value: Value }; +// type TBar = TFoo; + + + +// === documentHighlights === +// === /documentHighlightVarianceModifiers.ts === +// type TFoo = { value: Value }; +// type TBar = TFoo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights01.baseline.jsonc new file mode 100644 index 0000000000..5fbec7f68f --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights01.baseline.jsonc @@ -0,0 +1,29 @@ +// === documentHighlights === +// === /a.ts === +// function /*HIGHLIGHTS*/[|f|](x: typeof [|f|]) { +// [|f|]([|f|]); +// } + + + +// === documentHighlights === +// === /a.ts === +// function [|f|](x: typeof /*HIGHLIGHTS*/[|f|]) { +// [|f|]([|f|]); +// } + + + +// === documentHighlights === +// === /a.ts === +// function [|f|](x: typeof [|f|]) { +// /*HIGHLIGHTS*/[|f|]([|f|]); +// } + + + +// === documentHighlights === +// === /a.ts === +// function [|f|](x: typeof [|f|]) { +// [|f|](/*HIGHLIGHTS*/[|f|]); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidGlobalThis.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidGlobalThis.baseline.jsonc new file mode 100644 index 0000000000..b4ca954745 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidGlobalThis.baseline.jsonc @@ -0,0 +1,5 @@ +// === documentHighlights === +// === /documentHighlightsInvalidGlobalThis.ts === +// declare global { +// export { globalThis as /*HIGHLIGHTS*/global } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidModifierLocations.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidModifierLocations.baseline.jsonc new file mode 100644 index 0000000000..694ac0952d --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsInvalidModifierLocations.baseline.jsonc @@ -0,0 +1,44 @@ +// === documentHighlights === +// === /documentHighlightsInvalidModifierLocations.ts === +// class C { +// m(/*HIGHLIGHTS*/[|readonly|] p) {} +// } +// function f(readonly p) {} +// +// // --- (line: 6) skipped --- + + + +// === documentHighlights === +// === /documentHighlightsInvalidModifierLocations.ts === +// class C { +// m(readonly p) {} +// } +// function f(/*HIGHLIGHTS*/[|readonly|] p) {} +// +// class D { +// m(public p) {} +// } +// function g(public p) {} + + + +// === documentHighlights === +// === /documentHighlightsInvalidModifierLocations.ts === +// --- (line: 3) skipped --- +// function f(readonly p) {} +// +// class D { +// m(/*HIGHLIGHTS*/[|public|] p) {} +// } +// function g(public p) {} + + + +// === documentHighlights === +// === /documentHighlightsInvalidModifierLocations.ts === +// --- (line: 5) skipped --- +// class D { +// m(public p) {} +// } +// function g(/*HIGHLIGHTS*/[|public|] p) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsTypeParameterInHeritageClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsTypeParameterInHeritageClause01.baseline.jsonc new file mode 100644 index 0000000000..d930af83ea --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlightsTypeParameterInHeritageClause01.baseline.jsonc @@ -0,0 +1,18 @@ +// === documentHighlights === +// === /documentHighlightsTypeParameterInHeritageClause01.ts === +// interface I extends I<[|T|]>, [|T|] { +// } + + + +// === documentHighlights === +// === /documentHighlightsTypeParameterInHeritageClause01.ts === +// interface I<[|T|]> extends I, [|T|] { +// } + + + +// === documentHighlights === +// === /documentHighlightsTypeParameterInHeritageClause01.ts === +// interface I<[|T|]> extends I<[|T|]>, /*HIGHLIGHTS*/[|T|] { +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_33722.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_33722.baseline.jsonc new file mode 100644 index 0000000000..a789840493 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_33722.baseline.jsonc @@ -0,0 +1,5 @@ +// === documentHighlights === +// === /x.ts === +// import y from "./y"; +// +// y()./*HIGHLIGHTS*/foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_40082.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_40082.baseline.jsonc new file mode 100644 index 0000000000..9a74597f6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_40082.baseline.jsonc @@ -0,0 +1,6 @@ +// === documentHighlights === +// === /documentHighlights_40082.ts === +// export = (state, messages) => { +// export /*HIGHLIGHTS*/default { +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_filesToSearch.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_filesToSearch.baseline.jsonc new file mode 100644 index 0000000000..e8e985a42a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/documentHighlights_filesToSearch.baseline.jsonc @@ -0,0 +1,9 @@ +// === documentHighlights === +// === /a.ts === +// export const /*HIGHLIGHTS*/[|x|] = 0; + + + +// === documentHighlights === +// === /b.ts === +// import { /*HIGHLIGHTS*/[|x|] } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/emptyExportFindReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/emptyExportFindReferences.baseline.jsonc new file mode 100644 index 0000000000..d013f7427a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/emptyExportFindReferences.baseline.jsonc @@ -0,0 +1,5 @@ +// === documentHighlights === +// === /Foo.js === +// /*HIGHLIGHTS*/module.exports = { +// +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/findAllRefsForModule.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/findAllRefsForModule.baseline.jsonc new file mode 100644 index 0000000000..35e8e3f07c --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/findAllRefsForModule.baseline.jsonc @@ -0,0 +1,9 @@ +// === documentHighlights === +// === /b.ts === +// import { x } from "/*HIGHLIGHTS*/[|./a|]"; + + + +// === documentHighlights === +// === /c/sub.js === +// const a = require("/*HIGHLIGHTS*/[|../a|]"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/findReferencesJSXTagName3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/findReferencesJSXTagName3.baseline.jsonc new file mode 100644 index 0000000000..e2ffbc30f3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/findReferencesJSXTagName3.baseline.jsonc @@ -0,0 +1,124 @@ +// === documentHighlights === +// === /a.tsx === +// namespace JSX { +// export interface Element { } +// export interface IntrinsicElements { +// /*HIGHLIGHTS*/[|div|]: any; +// } +// } +// +// const Comp = () => +// <[|div|]> +// Some content +// <[|div|]>More content +// ; +// +// const x = +// Content +// ; + + + +// === documentHighlights === +// === /a.tsx === +// --- (line: 5) skipped --- +// } +// +// const Comp = () => +// [||] +// Some content +//
More content
+// [|
|]; +// +// const x = +// Content +// ; + + + +// === documentHighlights === +// === /a.tsx === +// --- (line: 7) skipped --- +// const Comp = () => +//
+// Some content +// [||]More content[|
|] +//
; +// +// const x = +// Content +// ; + + + +// === documentHighlights === +// === /a.tsx === +// --- (line: 7) skipped --- +// const Comp = () => +//
+// Some content +// [|
|]More content[||] +//
; +// +// const x = +// Content +// ; + + + +// === documentHighlights === +// === /a.tsx === +// --- (line: 5) skipped --- +// } +// +// const Comp = () => +// [|
|] +// Some content +//
More content
+// [||]; +// +// const x = +// Content +// ; + + + +// === documentHighlights === +// === /a.tsx === +// --- (line: 4) skipped --- +// } +// } +// +// const /*HIGHLIGHTS*/[|Comp|] = () => +//
+// Some content +//
More content
+//
; +// +// const x = <[|Comp|]> +// Content +// ; + + + +// === documentHighlights === +// === /a.tsx === +// --- (line: 10) skipped --- +//
More content
+//
; +// +// const x = [||] +// Content +// [||]; + + + +// === documentHighlights === +// === /a.tsx === +// --- (line: 10) skipped --- +//
More content
+//
; +// +// const x = [||] +// Content +// [||]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract01.baseline.jsonc new file mode 100644 index 0000000000..3d811b7b7a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract01.baseline.jsonc @@ -0,0 +1,67 @@ +// === documentHighlights === +// === /getOccurrencesAbstract01.ts === +// /*HIGHLIGHTS*/[|abstract|] class Animal { +// [|abstract|] prop1; // Does not compile +// [|abstract|] abstract(); +// [|abstract|] walk(): void; +// [|abstract|] makeSound(): void; +// } +// // Abstract class below should not get highlighted +// abstract class Foo { +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAbstract01.ts === +// [|abstract|] class Animal { +// /*HIGHLIGHTS*/[|abstract|] prop1; // Does not compile +// [|abstract|] abstract(); +// [|abstract|] walk(): void; +// [|abstract|] makeSound(): void; +// } +// // Abstract class below should not get highlighted +// abstract class Foo { +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAbstract01.ts === +// [|abstract|] class Animal { +// [|abstract|] prop1; // Does not compile +// /*HIGHLIGHTS*/[|abstract|] abstract(); +// [|abstract|] walk(): void; +// [|abstract|] makeSound(): void; +// } +// // Abstract class below should not get highlighted +// abstract class Foo { +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAbstract01.ts === +// [|abstract|] class Animal { +// [|abstract|] prop1; // Does not compile +// [|abstract|] abstract(); +// /*HIGHLIGHTS*/[|abstract|] walk(): void; +// [|abstract|] makeSound(): void; +// } +// // Abstract class below should not get highlighted +// abstract class Foo { +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAbstract01.ts === +// [|abstract|] class Animal { +// [|abstract|] prop1; // Does not compile +// [|abstract|] abstract(); +// [|abstract|] walk(): void; +// /*HIGHLIGHTS*/[|abstract|] makeSound(): void; +// } +// // Abstract class below should not get highlighted +// abstract class Foo { +// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract02.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract02.baseline.jsonc new file mode 100644 index 0000000000..08faaf8825 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract02.baseline.jsonc @@ -0,0 +1,48 @@ +// === documentHighlights === +// === /getOccurrencesAbstract02.ts === +// --- (line: 3) skipped --- +// abstract makeSound(): void; +// } +// // abstract cannot appear here, won't get highlighted +// let c = /*HIGHLIGHTS*/abstract class Foo { +// abstract foo(): void; +// abstract bar(): void; +// } + + + +// === documentHighlights === +// === /getOccurrencesAbstract02.ts === +// --- (line: 4) skipped --- +// } +// // abstract cannot appear here, won't get highlighted +// let c = abstract class Foo { +// /*HIGHLIGHTS*/[|abstract|] foo(): void; +// [|abstract|] bar(): void; +// } + + + +// === documentHighlights === +// === /getOccurrencesAbstract02.ts === +// // Not valid TS (abstract methods can only appear in abstract classes) +// class Animal { +// /*HIGHLIGHTS*/[|abstract|] walk(): void; +// [|abstract|] makeSound(): void; +// } +// // abstract cannot appear here, won't get highlighted +// let c = abstract class Foo { +// // --- (line: 8) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAbstract02.ts === +// // Not valid TS (abstract methods can only appear in abstract classes) +// class Animal { +// [|abstract|] walk(): void; +// /*HIGHLIGHTS*/[|abstract|] makeSound(): void; +// } +// // abstract cannot appear here, won't get highlighted +// let c = abstract class Foo { +// // --- (line: 8) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract03.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract03.baseline.jsonc new file mode 100644 index 0000000000..10c2925c08 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAbstract03.baseline.jsonc @@ -0,0 +1,69 @@ +// === documentHighlights === +// === /getOccurrencesAbstract03.ts === +// function f() { +// /*HIGHLIGHTS*/[|abstract|] class A { +// [|abstract|] m(): void; +// } +// abstract class B {} +// } +// // --- (line: 7) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAbstract03.ts === +// function f() { +// [|abstract|] class A { +// /*HIGHLIGHTS*/[|abstract|] m(): void; +// } +// abstract class B {} +// } +// // --- (line: 7) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAbstract03.ts === +// --- (line: 5) skipped --- +// } +// switch (0) { +// case 0: +// /*HIGHLIGHTS*/[|abstract|] class A { [|abstract|] m(): void; } +// default: +// abstract class B { abstract m(): void; } +// } + + + +// === documentHighlights === +// === /getOccurrencesAbstract03.ts === +// --- (line: 5) skipped --- +// } +// switch (0) { +// case 0: +// [|abstract|] class A { /*HIGHLIGHTS*/[|abstract|] m(): void; } +// default: +// abstract class B { abstract m(): void; } +// } + + + +// === documentHighlights === +// === /getOccurrencesAbstract03.ts === +// --- (line: 7) skipped --- +// case 0: +// abstract class A { abstract m(): void; } +// default: +// /*HIGHLIGHTS*/[|abstract|] class B { [|abstract|] m(): void; } +// } + + + +// === documentHighlights === +// === /getOccurrencesAbstract03.ts === +// --- (line: 7) skipped --- +// case 0: +// abstract class A { abstract m(): void; } +// default: +// [|abstract|] class B { /*HIGHLIGHTS*/[|abstract|] m(): void; } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAfterEdit.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAfterEdit.baseline.jsonc new file mode 100644 index 0000000000..c056b68775 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAfterEdit.baseline.jsonc @@ -0,0 +1,22 @@ +// === documentHighlights === +// === /getOccurrencesAfterEdit.ts === +// +// interface A { +// [|foo|]: string; +// } +// function foo(x: A) { +// x.[|f/*HIGHLIGHTS*/oo|] +// } + + + +// === documentHighlights === +// === /getOccurrencesAfterEdit.ts === +// +// +// interface A { +// [|foo|]: string; +// } +// function foo(x: A) { +// x.[|f/*HIGHLIGHTS*/oo|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait.baseline.jsonc new file mode 100644 index 0000000000..4934e838b1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait.baseline.jsonc @@ -0,0 +1,87 @@ +// === documentHighlights === +// === /getOccurrencesAsyncAwait.ts === +// /*HIGHLIGHTS*/[|async|] function f() { +// [|await|] 100; +// [|await|] [|await|] 200; +// class Foo { +// async memberFunction() { +// await 1; +// } +// } +// return [|await|] async function () { +// await 300; +// } +// } +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAsyncAwait.ts === +// [|async|] function f() { +// /*HIGHLIGHTS*/[|await|] 100; +// [|await|] [|await|] 200; +// class Foo { +// async memberFunction() { +// await 1; +// } +// } +// return [|await|] async function () { +// await 300; +// } +// } +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAsyncAwait.ts === +// [|async|] function f() { +// [|await|] 100; +// /*HIGHLIGHTS*/[|await|] [|await|] 200; +// class Foo { +// async memberFunction() { +// await 1; +// } +// } +// return [|await|] async function () { +// await 300; +// } +// } +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAsyncAwait.ts === +// [|async|] function f() { +// [|await|] 100; +// [|await|] /*HIGHLIGHTS*/[|await|] 200; +// class Foo { +// async memberFunction() { +// await 1; +// } +// } +// return [|await|] async function () { +// await 300; +// } +// } +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesAsyncAwait.ts === +// [|async|] function f() { +// [|await|] 100; +// [|await|] [|await|] 200; +// class Foo { +// async memberFunction() { +// await 1; +// } +// } +// return /*HIGHLIGHTS*/[|await|] async function () { +// await 300; +// } +// } +// // --- (line: 13) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait2.baseline.jsonc new file mode 100644 index 0000000000..308b71fb35 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait2.baseline.jsonc @@ -0,0 +1,57 @@ +// === documentHighlights === +// === /getOccurrencesAsyncAwait2.ts === +// /*HIGHLIGHTS*/[|async|] function f() { +// [|await|] 100; +// [|await|] [|await|] 200; +// return [|await|] async function () { +// await 300; +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesAsyncAwait2.ts === +// [|async|] function f() { +// /*HIGHLIGHTS*/[|await|] 100; +// [|await|] [|await|] 200; +// return [|await|] async function () { +// await 300; +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesAsyncAwait2.ts === +// [|async|] function f() { +// [|await|] 100; +// /*HIGHLIGHTS*/[|await|] [|await|] 200; +// return [|await|] async function () { +// await 300; +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesAsyncAwait2.ts === +// [|async|] function f() { +// [|await|] 100; +// [|await|] /*HIGHLIGHTS*/[|await|] 200; +// return [|await|] async function () { +// await 300; +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesAsyncAwait2.ts === +// [|async|] function f() { +// [|await|] 100; +// [|await|] [|await|] 200; +// return /*HIGHLIGHTS*/[|await|] async function () { +// await 300; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait3.baseline.jsonc new file mode 100644 index 0000000000..f8ae89bc84 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesAsyncAwait3.baseline.jsonc @@ -0,0 +1,6 @@ +// === documentHighlights === +// === /getOccurrencesAsyncAwait3.ts === +// a/*HIGHLIGHTS*/wait 100; +// async function f() { +// await 300; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionConstructor.baseline.jsonc new file mode 100644 index 0000000000..7b5c4730a1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionConstructor.baseline.jsonc @@ -0,0 +1,53 @@ +// === documentHighlights === +// === /getOccurrencesClassExpressionConstructor.ts === +// let A = class Foo { +// /*HIGHLIGHTS*/[|constructor|](); +// [|constructor|](x: number); +// [|constructor|](y: string); +// [|constructor|](a?: any) { +// } +// } +// +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionConstructor.ts === +// let A = class Foo { +// [|constructor|](); +// /*HIGHLIGHTS*/[|constructor|](x: number); +// [|constructor|](y: string); +// [|constructor|](a?: any) { +// } +// } +// +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionConstructor.ts === +// let A = class Foo { +// [|constructor|](); +// [|constructor|](x: number); +// /*HIGHLIGHTS*/[|constructor|](y: string); +// [|constructor|](a?: any) { +// } +// } +// +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionConstructor.ts === +// let A = class Foo { +// [|constructor|](); +// [|constructor|](x: number); +// [|constructor|](y: string); +// /*HIGHLIGHTS*/[|constructor|](a?: any) { +// } +// } +// +// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPrivate.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPrivate.baseline.jsonc new file mode 100644 index 0000000000..923a851a0c --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPrivate.baseline.jsonc @@ -0,0 +1,82 @@ +// === documentHighlights === +// === /getOccurrencesClassExpressionPrivate.ts === +// let A = class Foo { +// /*HIGHLIGHTS*/[|private|] foo; +// [|private|] private; +// constructor([|private|] y: string, public x: string) { +// } +// [|private|] method() { } +// public method2() { } +// [|private|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionPrivate.ts === +// let A = class Foo { +// [|private|] foo; +// /*HIGHLIGHTS*/[|private|] private; +// constructor([|private|] y: string, public x: string) { +// } +// [|private|] method() { } +// public method2() { } +// [|private|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionPrivate.ts === +// let A = class Foo { +// [|private|] foo; +// [|private|] private; +// constructor(/*HIGHLIGHTS*/[|private|] y: string, public x: string) { +// } +// [|private|] method() { } +// public method2() { } +// [|private|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionPrivate.ts === +// let A = class Foo { +// [|private|] foo; +// [|private|] private; +// constructor([|private|] y: string, public x: string) { +// } +// /*HIGHLIGHTS*/[|private|] method() { } +// public method2() { } +// [|private|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionPrivate.ts === +// let A = class Foo { +// [|private|] foo; +// [|private|] private; +// constructor([|private|] y: string, public x: string) { +// } +// [|private|] method() { } +// public method2() { } +// /*HIGHLIGHTS*/[|private|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPublic.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPublic.baseline.jsonc new file mode 100644 index 0000000000..44ea7bf572 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionPublic.baseline.jsonc @@ -0,0 +1,82 @@ +// === documentHighlights === +// === /getOccurrencesClassExpressionPublic.ts === +// let A = class Foo { +// /*HIGHLIGHTS*/[|public|] foo; +// [|public|] public; +// constructor([|public|] y: string, private x: string) { +// } +// [|public|] method() { } +// private method2() {} +// [|public|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionPublic.ts === +// let A = class Foo { +// [|public|] foo; +// /*HIGHLIGHTS*/[|public|] public; +// constructor([|public|] y: string, private x: string) { +// } +// [|public|] method() { } +// private method2() {} +// [|public|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionPublic.ts === +// let A = class Foo { +// [|public|] foo; +// [|public|] public; +// constructor(/*HIGHLIGHTS*/[|public|] y: string, private x: string) { +// } +// [|public|] method() { } +// private method2() {} +// [|public|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionPublic.ts === +// let A = class Foo { +// [|public|] foo; +// [|public|] public; +// constructor([|public|] y: string, private x: string) { +// } +// /*HIGHLIGHTS*/[|public|] method() { } +// private method2() {} +// [|public|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionPublic.ts === +// let A = class Foo { +// [|public|] foo; +// [|public|] public; +// constructor([|public|] y: string, private x: string) { +// } +// [|public|] method() { } +// private method2() {} +// /*HIGHLIGHTS*/[|public|] static static() { } +// } +// +// let B = class D { +// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStatic.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStatic.baseline.jsonc new file mode 100644 index 0000000000..6e552e9a49 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStatic.baseline.jsonc @@ -0,0 +1,69 @@ +// === documentHighlights === +// === /getOccurrencesClassExpressionStatic.ts === +// let A = class Foo { +// public /*HIGHLIGHTS*/[|static|] foo; +// [|static|] a; +// constructor(public y: string, private x: string) { +// } +// public method() { } +// private method2() {} +// public [|static|] static() { } +// private [|static|] static2() { } +// } +// +// let B = class D { +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionStatic.ts === +// let A = class Foo { +// public [|static|] foo; +// /*HIGHLIGHTS*/[|static|] a; +// constructor(public y: string, private x: string) { +// } +// public method() { } +// private method2() {} +// public [|static|] static() { } +// private [|static|] static2() { } +// } +// +// let B = class D { +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionStatic.ts === +// let A = class Foo { +// public [|static|] foo; +// [|static|] a; +// constructor(public y: string, private x: string) { +// } +// public method() { } +// private method2() {} +// public /*HIGHLIGHTS*/[|static|] static() { } +// private [|static|] static2() { } +// } +// +// let B = class D { +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionStatic.ts === +// let A = class Foo { +// public [|static|] foo; +// [|static|] a; +// constructor(public y: string, private x: string) { +// } +// public method() { } +// private method2() {} +// public [|static|] static() { } +// private /*HIGHLIGHTS*/[|static|] static2() { } +// } +// +// let B = class D { +// // --- (line: 13) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStaticThis.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStaticThis.baseline.jsonc new file mode 100644 index 0000000000..d5d4cce282 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionStaticThis.baseline.jsonc @@ -0,0 +1,92 @@ +// === documentHighlights === +// === /getOccurrencesClassExpressionStaticThis.ts === +// --- (line: 26) skipped --- +// } +// +// static bar() { +// /*HIGHLIGHTS*/[|this|]; +// [|this|].staticX; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// // --- (line: 39) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionStaticThis.ts === +// --- (line: 26) skipped --- +// } +// +// static bar() { +// [|this|]; +// /*HIGHLIGHTS*/[|this|].staticX; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// // --- (line: 39) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionStaticThis.ts === +// --- (line: 26) skipped --- +// } +// +// static bar() { +// [|this|]; +// [|this|].staticX; +// () => /*HIGHLIGHTS*/[|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// // --- (line: 39) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionStaticThis.ts === +// --- (line: 26) skipped --- +// } +// +// static bar() { +// [|this|]; +// [|this|].staticX; +// () => [|this|]; +// () => { +// if (/*HIGHLIGHTS*/[|this|]) { +// [|this|]; +// } +// } +// function inside() { +// // --- (line: 39) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionStaticThis.ts === +// --- (line: 26) skipped --- +// } +// +// static bar() { +// [|this|]; +// [|this|].staticX; +// () => [|this|]; +// () => { +// if ([|this|]) { +// /*HIGHLIGHTS*/[|this|]; +// } +// } +// function inside() { +// // --- (line: 39) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionThis.baseline.jsonc new file mode 100644 index 0000000000..0b18513ac4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesClassExpressionThis.baseline.jsonc @@ -0,0 +1,303 @@ +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// /*HIGHLIGHTS*/[|this|]; +// [|this|].x; +// [|this|].y; +// [|this|].z; +// } +// foo() { +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return [|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// [|this|]; +// /*HIGHLIGHTS*/[|this|].x; +// [|this|].y; +// [|this|].z; +// } +// foo() { +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return [|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// [|this|]; +// [|this|].x; +// /*HIGHLIGHTS*/[|this|].y; +// [|this|].z; +// } +// foo() { +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return [|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// [|this|]; +// [|this|].x; +// [|this|].y; +// /*HIGHLIGHTS*/[|this|].z; +// } +// foo() { +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return [|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// [|this|]; +// [|this|].x; +// [|this|].y; +// [|this|].z; +// } +// foo() { +// /*HIGHLIGHTS*/[|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return [|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// [|this|]; +// [|this|].x; +// [|this|].y; +// [|this|].z; +// } +// foo() { +// [|this|]; +// () => /*HIGHLIGHTS*/[|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return [|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// [|this|]; +// [|this|].x; +// [|this|].y; +// [|this|].z; +// } +// foo() { +// [|this|]; +// () => [|this|]; +// () => { +// if (/*HIGHLIGHTS*/[|this|]) { +// [|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return [|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// [|this|]; +// [|this|].x; +// [|this|].y; +// [|this|].z; +// } +// foo() { +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// /*HIGHLIGHTS*/[|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return [|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesClassExpressionThis.ts === +// var x = class C { +// public x; +// public y; +// public z; +// constructor() { +// [|this|]; +// [|this|].x; +// [|this|].y; +// [|this|].z; +// } +// foo() { +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// } +// function inside() { +// this; +// (function (_) { +// this; +// })(this); +// } +// return /*HIGHLIGHTS*/[|this|].x; +// } +// +// static bar() { +// // --- (line: 29) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst01.baseline.jsonc new file mode 100644 index 0000000000..57f75d7218 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst01.baseline.jsonc @@ -0,0 +1,19 @@ +// === documentHighlights === +// === /getOccurrencesConst01.ts === +// /*HIGHLIGHTS*/[|const|] enum E1 { +// v1, +// v2 +// } +// +// const c = 0; + + + +// === documentHighlights === +// === /getOccurrencesConst01.ts === +// const enum E1 { +// v1, +// v2 +// } +// +// /*HIGHLIGHTS*/const c = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst04.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst04.baseline.jsonc new file mode 100644 index 0000000000..ef739ce89e --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConst04.baseline.jsonc @@ -0,0 +1,27 @@ +// === documentHighlights === +// === /getOccurrencesConst04.ts === +// export const class C { +// private static [|c/*HIGHLIGHTS*/onst|] foo; +// constructor(public const foo) { +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesConst04.ts === +// export const class C { +// private static const [|f/*HIGHLIGHTS*/oo|]; +// constructor(public const foo) { +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesConst04.ts === +// export const class C { +// private static [|const|] foo; +// constructor(public con/*HIGHLIGHTS*/st foo) { +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor.baseline.jsonc new file mode 100644 index 0000000000..9a0d835004 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor.baseline.jsonc @@ -0,0 +1,53 @@ +// === documentHighlights === +// === /getOccurrencesConstructor.ts === +// class C { +// /*HIGHLIGHTS*/[|constructor|](); +// [|constructor|](x: number); +// [|constructor|](y: string, x: number); +// [|constructor|](a?: any, ...r: any[]) { +// if (a === undefined && r.length === 0) { +// return; +// } +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesConstructor.ts === +// class C { +// [|constructor|](); +// /*HIGHLIGHTS*/[|constructor|](x: number); +// [|constructor|](y: string, x: number); +// [|constructor|](a?: any, ...r: any[]) { +// if (a === undefined && r.length === 0) { +// return; +// } +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesConstructor.ts === +// class C { +// [|constructor|](); +// [|constructor|](x: number); +// /*HIGHLIGHTS*/[|constructor|](y: string, x: number); +// [|constructor|](a?: any, ...r: any[]) { +// if (a === undefined && r.length === 0) { +// return; +// } +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesConstructor.ts === +// class C { +// [|constructor|](); +// [|constructor|](x: number); +// [|constructor|](y: string, x: number); +// /*HIGHLIGHTS*/[|constructor|](a?: any, ...r: any[]) { +// if (a === undefined && r.length === 0) { +// return; +// } +// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor2.baseline.jsonc new file mode 100644 index 0000000000..786cff277a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesConstructor2.baseline.jsonc @@ -0,0 +1,9 @@ +// === documentHighlights === +// === /getOccurrencesConstructor2.ts === +// --- (line: 11) skipped --- +// } +// +// class D { +// /*HIGHLIGHTS*/[|constructor|](public x: number, public y: number) { +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare1.baseline.jsonc new file mode 100644 index 0000000000..dcb84d6fb3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare1.baseline.jsonc @@ -0,0 +1,66 @@ +// === documentHighlights === +// === /getOccurrencesDeclare1.ts === +// --- (line: 27) skipped --- +// export interface I1 { +// } +// +// export /*HIGHLIGHTS*/[|declare|] module ma.m1.m2.m3 { +// interface I2 { +// } +// } +// // --- (line: 35) skipped --- + +// --- (line: 45) skipped --- +// } +// } +// +// [|declare|] var ambientThing: number; +// export var exportedThing = 10; +// [|declare|] function foo(): string; +// } + + + +// === documentHighlights === +// === /getOccurrencesDeclare1.ts === +// --- (line: 27) skipped --- +// export interface I1 { +// } +// +// export [|declare|] module ma.m1.m2.m3 { +// interface I2 { +// } +// } +// // --- (line: 35) skipped --- + +// --- (line: 45) skipped --- +// } +// } +// +// /*HIGHLIGHTS*/[|declare|] var ambientThing: number; +// export var exportedThing = 10; +// [|declare|] function foo(): string; +// } + + + +// === documentHighlights === +// === /getOccurrencesDeclare1.ts === +// --- (line: 27) skipped --- +// export interface I1 { +// } +// +// export [|declare|] module ma.m1.m2.m3 { +// interface I2 { +// } +// } +// // --- (line: 35) skipped --- + +// --- (line: 45) skipped --- +// } +// } +// +// [|declare|] var ambientThing: number; +// export var exportedThing = 10; +// /*HIGHLIGHTS*/[|declare|] function foo(): string; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare2.baseline.jsonc new file mode 100644 index 0000000000..e8aad750bf --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare2.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /getOccurrencesDeclare2.ts === +// --- (line: 33) skipped --- +// } +// +// export module mb.m1.m2.m3 { +// /*HIGHLIGHTS*/[|declare|] var foo; +// +// export class C2 { +// public pub1; +// // --- (line: 41) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare3.baseline.jsonc new file mode 100644 index 0000000000..fe4b8851c5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesDeclare3.baseline.jsonc @@ -0,0 +1,73 @@ +// === documentHighlights === +// === /getOccurrencesDeclare3.ts === +// /*HIGHLIGHTS*/[|declare|] var x; +// export [|declare|] var y, z; +// +// module m { +// export class C1 { +// // --- (line: 6) skipped --- + +// --- (line: 53) skipped --- +// declare function foo(): string; +// } +// +// [|declare|] export var v1, v2; +// [|declare|] module dm { } +// export class EC { } + + + +// === documentHighlights === +// === /getOccurrencesDeclare3.ts === +// [|declare|] var x; +// export /*HIGHLIGHTS*/[|declare|] var y, z; +// +// module m { +// export class C1 { +// // --- (line: 6) skipped --- + +// --- (line: 53) skipped --- +// declare function foo(): string; +// } +// +// [|declare|] export var v1, v2; +// [|declare|] module dm { } +// export class EC { } + + + +// === documentHighlights === +// === /getOccurrencesDeclare3.ts === +// [|declare|] var x; +// export [|declare|] var y, z; +// +// module m { +// export class C1 { +// // --- (line: 6) skipped --- + +// --- (line: 53) skipped --- +// declare function foo(): string; +// } +// +// /*HIGHLIGHTS*/[|declare|] export var v1, v2; +// [|declare|] module dm { } +// export class EC { } + + + +// === documentHighlights === +// === /getOccurrencesDeclare3.ts === +// [|declare|] var x; +// export [|declare|] var y, z; +// +// module m { +// export class C1 { +// // --- (line: 6) skipped --- + +// --- (line: 53) skipped --- +// declare function foo(): string; +// } +// +// [|declare|] export var v1, v2; +// /*HIGHLIGHTS*/[|declare|] module dm { } +// export class EC { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport1.baseline.jsonc new file mode 100644 index 0000000000..bc27b75743 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport1.baseline.jsonc @@ -0,0 +1,182 @@ +// === documentHighlights === +// === /getOccurrencesExport1.ts === +// module m { +// /*HIGHLIGHTS*/[|export|] class C1 { +// public pub1; +// public pub2; +// private priv1; +// // --- (line: 6) skipped --- + +// --- (line: 24) skipped --- +// protected static statProt; +// } +// +// [|export|] interface I1 { +// } +// +// [|export|] declare module ma.m1.m2.m3 { +// interface I2 { +// } +// } +// +// [|export|] module mb.m1.m2.m3 { +// declare var foo; +// +// export class C2 { +// // --- (line: 40) skipped --- + +// --- (line: 46) skipped --- +// } +// +// declare var ambientThing: number; +// [|export|] var exportedThing = 10; +// declare function foo(): string; +// } + + + +// === documentHighlights === +// === /getOccurrencesExport1.ts === +// module m { +// [|export|] class C1 { +// public pub1; +// public pub2; +// private priv1; +// // --- (line: 6) skipped --- + +// --- (line: 24) skipped --- +// protected static statProt; +// } +// +// /*HIGHLIGHTS*/[|export|] interface I1 { +// } +// +// [|export|] declare module ma.m1.m2.m3 { +// interface I2 { +// } +// } +// +// [|export|] module mb.m1.m2.m3 { +// declare var foo; +// +// export class C2 { +// // --- (line: 40) skipped --- + +// --- (line: 46) skipped --- +// } +// +// declare var ambientThing: number; +// [|export|] var exportedThing = 10; +// declare function foo(): string; +// } + + + +// === documentHighlights === +// === /getOccurrencesExport1.ts === +// module m { +// [|export|] class C1 { +// public pub1; +// public pub2; +// private priv1; +// // --- (line: 6) skipped --- + +// --- (line: 24) skipped --- +// protected static statProt; +// } +// +// [|export|] interface I1 { +// } +// +// /*HIGHLIGHTS*/[|export|] declare module ma.m1.m2.m3 { +// interface I2 { +// } +// } +// +// [|export|] module mb.m1.m2.m3 { +// declare var foo; +// +// export class C2 { +// // --- (line: 40) skipped --- + +// --- (line: 46) skipped --- +// } +// +// declare var ambientThing: number; +// [|export|] var exportedThing = 10; +// declare function foo(): string; +// } + + + +// === documentHighlights === +// === /getOccurrencesExport1.ts === +// module m { +// [|export|] class C1 { +// public pub1; +// public pub2; +// private priv1; +// // --- (line: 6) skipped --- + +// --- (line: 24) skipped --- +// protected static statProt; +// } +// +// [|export|] interface I1 { +// } +// +// [|export|] declare module ma.m1.m2.m3 { +// interface I2 { +// } +// } +// +// /*HIGHLIGHTS*/[|export|] module mb.m1.m2.m3 { +// declare var foo; +// +// export class C2 { +// // --- (line: 40) skipped --- + +// --- (line: 46) skipped --- +// } +// +// declare var ambientThing: number; +// [|export|] var exportedThing = 10; +// declare function foo(): string; +// } + + + +// === documentHighlights === +// === /getOccurrencesExport1.ts === +// module m { +// [|export|] class C1 { +// public pub1; +// public pub2; +// private priv1; +// // --- (line: 6) skipped --- + +// --- (line: 24) skipped --- +// protected static statProt; +// } +// +// [|export|] interface I1 { +// } +// +// [|export|] declare module ma.m1.m2.m3 { +// interface I2 { +// } +// } +// +// [|export|] module mb.m1.m2.m3 { +// declare var foo; +// +// export class C2 { +// // --- (line: 40) skipped --- + +// --- (line: 46) skipped --- +// } +// +// declare var ambientThing: number; +// /*HIGHLIGHTS*/[|export|] var exportedThing = 10; +// declare function foo(): string; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport2.baseline.jsonc new file mode 100644 index 0000000000..a870127ec7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport2.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /getOccurrencesExport2.ts === +// --- (line: 35) skipped --- +// export module mb.m1.m2.m3 { +// declare var foo; +// +// /*HIGHLIGHTS*/[|export|] class C2 { +// public pub1; +// private priv1; +// protected prot1; +// // --- (line: 43) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport3.baseline.jsonc new file mode 100644 index 0000000000..f403d6f737 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesExport3.baseline.jsonc @@ -0,0 +1,54 @@ +// === documentHighlights === +// === /getOccurrencesExport3.ts === +// declare var x; +// /*HIGHLIGHTS*/[|export|] declare var y, z; +// +// module m { +// export class C1 { +// // --- (line: 6) skipped --- + +// --- (line: 53) skipped --- +// declare function foo(): string; +// } +// +// declare [|export|] var v1, v2; +// declare module dm { } +// [|export|] class EC { } + + + +// === documentHighlights === +// === /getOccurrencesExport3.ts === +// declare var x; +// [|export|] declare var y, z; +// +// module m { +// export class C1 { +// // --- (line: 6) skipped --- + +// --- (line: 53) skipped --- +// declare function foo(): string; +// } +// +// declare /*HIGHLIGHTS*/[|export|] var v1, v2; +// declare module dm { } +// [|export|] class EC { } + + + +// === documentHighlights === +// === /getOccurrencesExport3.ts === +// declare var x; +// [|export|] declare var y, z; +// +// module m { +// export class C1 { +// // --- (line: 6) skipped --- + +// --- (line: 53) skipped --- +// declare function foo(): string; +// } +// +// declare [|export|] var v1, v2; +// declare module dm { } +// /*HIGHLIGHTS*/[|export|] class EC { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse.baseline.jsonc new file mode 100644 index 0000000000..f8dcb8e4ee --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse.baseline.jsonc @@ -0,0 +1,158 @@ +// === documentHighlights === +// === /getOccurrencesIfElse.ts === +// /*HIGHLIGHTS*/[|if|] (true) { +// if (false) { +// } +// else { +// // --- (line: 5) skipped --- + +// --- (line: 10) skipped --- +// var x = undefined; +// } +// } +// [|else if|] (null) { +// } +// [|else|] /* whar garbl */ [|if|] (undefined) { +// } +// [|else|] +// [|if|] (false) { +// } +// [|else|] { } + + + +// === documentHighlights === +// === /getOccurrencesIfElse.ts === +// [|if|] (true) { +// if (false) { +// } +// else { +// // --- (line: 5) skipped --- + +// --- (line: 10) skipped --- +// var x = undefined; +// } +// } +// /*HIGHLIGHTS*/[|else if|] (null) { +// } +// [|else|] /* whar garbl */ [|if|] (undefined) { +// } +// [|else|] +// [|if|] (false) { +// } +// [|else|] { } + + + +// === documentHighlights === +// === /getOccurrencesIfElse.ts === +// [|if|] (true) { +// if (false) { +// } +// else { +// // --- (line: 5) skipped --- + +// --- (line: 10) skipped --- +// var x = undefined; +// } +// } +// [|else if|] (null) { +// } +// /*HIGHLIGHTS*/[|else|] /* whar garbl */ [|if|] (undefined) { +// } +// [|else|] +// [|if|] (false) { +// } +// [|else|] { } + + + +// === documentHighlights === +// === /getOccurrencesIfElse.ts === +// [|if|] (true) { +// if (false) { +// } +// else { +// // --- (line: 5) skipped --- + +// --- (line: 10) skipped --- +// var x = undefined; +// } +// } +// [|else if|] (null) { +// } +// [|else|] /* whar garbl */ /*HIGHLIGHTS*/[|if|] (undefined) { +// } +// [|else|] +// [|if|] (false) { +// } +// [|else|] { } + + + +// === documentHighlights === +// === /getOccurrencesIfElse.ts === +// [|if|] (true) { +// if (false) { +// } +// else { +// // --- (line: 5) skipped --- + +// --- (line: 10) skipped --- +// var x = undefined; +// } +// } +// [|else if|] (null) { +// } +// [|else|] /* whar garbl */ [|if|] (undefined) { +// } +// /*HIGHLIGHTS*/[|else|] +// [|if|] (false) { +// } +// [|else|] { } + + + +// === documentHighlights === +// === /getOccurrencesIfElse.ts === +// [|if|] (true) { +// if (false) { +// } +// else { +// // --- (line: 5) skipped --- + +// --- (line: 10) skipped --- +// var x = undefined; +// } +// } +// [|else if|] (null) { +// } +// [|else|] /* whar garbl */ [|if|] (undefined) { +// } +// [|else|] +// /*HIGHLIGHTS*/[|if|] (false) { +// } +// [|else|] { } + + + +// === documentHighlights === +// === /getOccurrencesIfElse.ts === +// [|if|] (true) { +// if (false) { +// } +// else { +// // --- (line: 5) skipped --- + +// --- (line: 10) skipped --- +// var x = undefined; +// } +// } +// [|else if|] (null) { +// } +// [|else|] /* whar garbl */ [|if|] (undefined) { +// } +// [|else|] +// [|if|] (false) { +// } +// /*HIGHLIGHTS*/[|else|] { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse2.baseline.jsonc new file mode 100644 index 0000000000..1bfc0a9616 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse2.baseline.jsonc @@ -0,0 +1,23 @@ +// === documentHighlights === +// === /getOccurrencesIfElse2.ts === +// if (true) { +// /*HIGHLIGHTS*/[|if|] (false) { +// } +// [|else|]{ +// } +// if (true) { +// } +// // --- (line: 8) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesIfElse2.ts === +// if (true) { +// [|if|] (false) { +// } +// /*HIGHLIGHTS*/[|else|]{ +// } +// if (true) { +// } +// // --- (line: 8) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse3.baseline.jsonc new file mode 100644 index 0000000000..b519b05023 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElse3.baseline.jsonc @@ -0,0 +1,31 @@ +// === documentHighlights === +// === /getOccurrencesIfElse3.ts === +// if (true) { +// if (false) { +// } +// else { +// } +// /*HIGHLIGHTS*/[|if|] (true) { +// } +// [|else|] { +// if (false) +// if (true) +// var x = undefined; +// // --- (line: 12) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesIfElse3.ts === +// if (true) { +// if (false) { +// } +// else { +// } +// [|if|] (true) { +// } +// /*HIGHLIGHTS*/[|else|] { +// if (false) +// if (true) +// var x = undefined; +// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElseBroken.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElseBroken.baseline.jsonc new file mode 100644 index 0000000000..c1c381e16a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElseBroken.baseline.jsonc @@ -0,0 +1,57 @@ +// === documentHighlights === +// === /getOccurrencesIfElseBroken.ts === +// /*HIGHLIGHTS*/[|if|] (true) { +// var x = 1; +// } +// [|else if|] () +// [|else if|] +// [|else|] /* whar garbl */ [|if|] (if (true) { } else { }) +// else + + + +// === documentHighlights === +// === /getOccurrencesIfElseBroken.ts === +// [|if|] (true) { +// var x = 1; +// } +// /*HIGHLIGHTS*/[|else if|] () +// [|else if|] +// [|else|] /* whar garbl */ [|if|] (if (true) { } else { }) +// else + + + +// === documentHighlights === +// === /getOccurrencesIfElseBroken.ts === +// [|if|] (true) { +// var x = 1; +// } +// [|else if|] () +// /*HIGHLIGHTS*/[|else if|] +// [|else|] /* whar garbl */ [|if|] (if (true) { } else { }) +// else + + + +// === documentHighlights === +// === /getOccurrencesIfElseBroken.ts === +// [|if|] (true) { +// var x = 1; +// } +// [|else if|] () +// [|else if|] +// /*HIGHLIGHTS*/[|else|] /* whar garbl */ [|if|] (if (true) { } else { }) +// else + + + +// === documentHighlights === +// === /getOccurrencesIfElseBroken.ts === +// [|if|] (true) { +// var x = 1; +// } +// [|else if|] () +// [|else if|] +// [|else|] /* whar garbl */ /*HIGHLIGHTS*/[|if|] (if (true) { } else { }) +// else \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue.baseline.jsonc new file mode 100644 index 0000000000..18d8c97660 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue.baseline.jsonc @@ -0,0 +1,130 @@ +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue.ts === +// var arr = [1, 2, 3, 4]; +// label1: /*HIGHLIGHTS*/[|for|] (var n in arr) { +// [|break|]; +// [|continue|]; +// [|break|] label1; +// [|continue|] label1; +// +// label2: for (var i = 0; i < arr[n]; i++) { +// [|break|] label1; +// [|continue|] label1; +// +// break; +// continue; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue.ts === +// var arr = [1, 2, 3, 4]; +// label1: [|for|] (var n in arr) { +// /*HIGHLIGHTS*/[|break|]; +// [|continue|]; +// [|break|] label1; +// [|continue|] label1; +// +// label2: for (var i = 0; i < arr[n]; i++) { +// [|break|] label1; +// [|continue|] label1; +// +// break; +// continue; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue.ts === +// var arr = [1, 2, 3, 4]; +// label1: [|for|] (var n in arr) { +// [|break|]; +// /*HIGHLIGHTS*/[|continue|]; +// [|break|] label1; +// [|continue|] label1; +// +// label2: for (var i = 0; i < arr[n]; i++) { +// [|break|] label1; +// [|continue|] label1; +// +// break; +// continue; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue.ts === +// var arr = [1, 2, 3, 4]; +// label1: [|for|] (var n in arr) { +// [|break|]; +// [|continue|]; +// /*HIGHLIGHTS*/[|break|] label1; +// [|continue|] label1; +// +// label2: for (var i = 0; i < arr[n]; i++) { +// [|break|] label1; +// [|continue|] label1; +// +// break; +// continue; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue.ts === +// var arr = [1, 2, 3, 4]; +// label1: [|for|] (var n in arr) { +// [|break|]; +// [|continue|]; +// [|break|] label1; +// /*HIGHLIGHTS*/[|continue|] label1; +// +// label2: for (var i = 0; i < arr[n]; i++) { +// [|break|] label1; +// [|continue|] label1; +// +// break; +// continue; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue.ts === +// var arr = [1, 2, 3, 4]; +// label1: [|for|] (var n in arr) { +// [|break|]; +// [|continue|]; +// [|break|] label1; +// [|continue|] label1; +// +// label2: for (var i = 0; i < arr[n]; i++) { +// /*HIGHLIGHTS*/[|break|] label1; +// [|continue|] label1; +// +// break; +// continue; +// // --- (line: 14) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue.ts === +// var arr = [1, 2, 3, 4]; +// label1: [|for|] (var n in arr) { +// [|break|]; +// [|continue|]; +// [|break|] label1; +// [|continue|] label1; +// +// label2: for (var i = 0; i < arr[n]; i++) { +// [|break|] label1; +// /*HIGHLIGHTS*/[|continue|] label1; +// +// break; +// continue; +// // --- (line: 14) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue2.baseline.jsonc new file mode 100644 index 0000000000..2449c57254 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue2.baseline.jsonc @@ -0,0 +1,102 @@ +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue2.ts === +// --- (line: 4) skipped --- +// break label1; +// continue label1; +// +// label2: /*HIGHLIGHTS*/[|for|] (var i = 0; i < arr[n]; i++) { +// break label1; +// continue label1; +// +// [|break|]; +// [|continue|]; +// [|break|] label2; +// [|continue|] label2; +// +// function foo() { +// label3: while (true) { +// // --- (line: 19) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue2.ts === +// --- (line: 4) skipped --- +// break label1; +// continue label1; +// +// label2: [|for|] (var i = 0; i < arr[n]; i++) { +// break label1; +// continue label1; +// +// /*HIGHLIGHTS*/[|break|]; +// [|continue|]; +// [|break|] label2; +// [|continue|] label2; +// +// function foo() { +// label3: while (true) { +// // --- (line: 19) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue2.ts === +// --- (line: 4) skipped --- +// break label1; +// continue label1; +// +// label2: [|for|] (var i = 0; i < arr[n]; i++) { +// break label1; +// continue label1; +// +// [|break|]; +// /*HIGHLIGHTS*/[|continue|]; +// [|break|] label2; +// [|continue|] label2; +// +// function foo() { +// label3: while (true) { +// // --- (line: 19) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue2.ts === +// --- (line: 4) skipped --- +// break label1; +// continue label1; +// +// label2: [|for|] (var i = 0; i < arr[n]; i++) { +// break label1; +// continue label1; +// +// [|break|]; +// [|continue|]; +// /*HIGHLIGHTS*/[|break|] label2; +// [|continue|] label2; +// +// function foo() { +// label3: while (true) { +// // --- (line: 19) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue2.ts === +// --- (line: 4) skipped --- +// break label1; +// continue label1; +// +// label2: [|for|] (var i = 0; i < arr[n]; i++) { +// break label1; +// continue label1; +// +// [|break|]; +// [|continue|]; +// [|break|] label2; +// /*HIGHLIGHTS*/[|continue|] label2; +// +// function foo() { +// label3: while (true) { +// // --- (line: 19) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue3.baseline.jsonc new file mode 100644 index 0000000000..dda8ff0265 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue3.baseline.jsonc @@ -0,0 +1,200 @@ +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue3.ts === +// --- (line: 14) skipped --- +// continue label2; +// +// function foo() { +// label3: /*HIGHLIGHTS*/[|while|] (true) { +// [|break|]; +// [|continue|]; +// [|break|] label3; +// [|continue|] label3; +// +// // these cross function boundaries +// break label1; +// // --- (line: 26) skipped --- + +// --- (line: 32) skipped --- +// break label4; +// continue label4; +// +// [|break|] label3; +// [|continue|] label3; +// +// switch (10) { +// case 1: +// // --- (line: 41) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue3.ts === +// --- (line: 14) skipped --- +// continue label2; +// +// function foo() { +// label3: [|while|] (true) { +// /*HIGHLIGHTS*/[|break|]; +// [|continue|]; +// [|break|] label3; +// [|continue|] label3; +// +// // these cross function boundaries +// break label1; +// // --- (line: 26) skipped --- + +// --- (line: 32) skipped --- +// break label4; +// continue label4; +// +// [|break|] label3; +// [|continue|] label3; +// +// switch (10) { +// case 1: +// // --- (line: 41) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue3.ts === +// --- (line: 14) skipped --- +// continue label2; +// +// function foo() { +// label3: [|while|] (true) { +// [|break|]; +// /*HIGHLIGHTS*/[|continue|]; +// [|break|] label3; +// [|continue|] label3; +// +// // these cross function boundaries +// break label1; +// // --- (line: 26) skipped --- + +// --- (line: 32) skipped --- +// break label4; +// continue label4; +// +// [|break|] label3; +// [|continue|] label3; +// +// switch (10) { +// case 1: +// // --- (line: 41) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue3.ts === +// --- (line: 14) skipped --- +// continue label2; +// +// function foo() { +// label3: [|while|] (true) { +// [|break|]; +// [|continue|]; +// /*HIGHLIGHTS*/[|break|] label3; +// [|continue|] label3; +// +// // these cross function boundaries +// break label1; +// // --- (line: 26) skipped --- + +// --- (line: 32) skipped --- +// break label4; +// continue label4; +// +// [|break|] label3; +// [|continue|] label3; +// +// switch (10) { +// case 1: +// // --- (line: 41) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue3.ts === +// --- (line: 14) skipped --- +// continue label2; +// +// function foo() { +// label3: [|while|] (true) { +// [|break|]; +// [|continue|]; +// [|break|] label3; +// /*HIGHLIGHTS*/[|continue|] label3; +// +// // these cross function boundaries +// break label1; +// // --- (line: 26) skipped --- + +// --- (line: 32) skipped --- +// break label4; +// continue label4; +// +// [|break|] label3; +// [|continue|] label3; +// +// switch (10) { +// case 1: +// // --- (line: 41) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue3.ts === +// --- (line: 14) skipped --- +// continue label2; +// +// function foo() { +// label3: [|while|] (true) { +// [|break|]; +// [|continue|]; +// [|break|] label3; +// [|continue|] label3; +// +// // these cross function boundaries +// break label1; +// // --- (line: 26) skipped --- + +// --- (line: 32) skipped --- +// break label4; +// continue label4; +// +// /*HIGHLIGHTS*/[|break|] label3; +// [|continue|] label3; +// +// switch (10) { +// case 1: +// // --- (line: 41) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue3.ts === +// --- (line: 14) skipped --- +// continue label2; +// +// function foo() { +// label3: [|while|] (true) { +// [|break|]; +// [|continue|]; +// [|break|] label3; +// [|continue|] label3; +// +// // these cross function boundaries +// break label1; +// // --- (line: 26) skipped --- + +// --- (line: 32) skipped --- +// break label4; +// continue label4; +// +// [|break|] label3; +// /*HIGHLIGHTS*/[|continue|] label3; +// +// switch (10) { +// case 1: +// // --- (line: 41) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue4.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue4.baseline.jsonc new file mode 100644 index 0000000000..36319f7756 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue4.baseline.jsonc @@ -0,0 +1,301 @@ +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue4.ts === +// --- (line: 26) skipped --- +// break label2; +// continue label2; +// +// label4: /*HIGHLIGHTS*/[|do|] { +// [|break|]; +// [|continue|]; +// [|break|] label4; +// [|continue|] label4; +// +// break label3; +// continue label3; +// +// switch (10) { +// case 1: +// case 2: +// break; +// [|break|] label4; +// default: +// [|continue|]; +// } +// +// // these cross function boundaries +// break label1; +// continue label1; +// break label2; +// continue label2; +// () => { break; } +// } [|while|] (true) +// } +// } +// } +// // --- (line: 58) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue4.ts === +// --- (line: 26) skipped --- +// break label2; +// continue label2; +// +// label4: [|do|] { +// /*HIGHLIGHTS*/[|break|]; +// [|continue|]; +// [|break|] label4; +// [|continue|] label4; +// +// break label3; +// continue label3; +// +// switch (10) { +// case 1: +// case 2: +// break; +// [|break|] label4; +// default: +// [|continue|]; +// } +// +// // these cross function boundaries +// break label1; +// continue label1; +// break label2; +// continue label2; +// () => { break; } +// } [|while|] (true) +// } +// } +// } +// // --- (line: 58) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue4.ts === +// --- (line: 26) skipped --- +// break label2; +// continue label2; +// +// label4: [|do|] { +// [|break|]; +// /*HIGHLIGHTS*/[|continue|]; +// [|break|] label4; +// [|continue|] label4; +// +// break label3; +// continue label3; +// +// switch (10) { +// case 1: +// case 2: +// break; +// [|break|] label4; +// default: +// [|continue|]; +// } +// +// // these cross function boundaries +// break label1; +// continue label1; +// break label2; +// continue label2; +// () => { break; } +// } [|while|] (true) +// } +// } +// } +// // --- (line: 58) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue4.ts === +// --- (line: 26) skipped --- +// break label2; +// continue label2; +// +// label4: [|do|] { +// [|break|]; +// [|continue|]; +// /*HIGHLIGHTS*/[|break|] label4; +// [|continue|] label4; +// +// break label3; +// continue label3; +// +// switch (10) { +// case 1: +// case 2: +// break; +// [|break|] label4; +// default: +// [|continue|]; +// } +// +// // these cross function boundaries +// break label1; +// continue label1; +// break label2; +// continue label2; +// () => { break; } +// } [|while|] (true) +// } +// } +// } +// // --- (line: 58) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue4.ts === +// --- (line: 26) skipped --- +// break label2; +// continue label2; +// +// label4: [|do|] { +// [|break|]; +// [|continue|]; +// [|break|] label4; +// /*HIGHLIGHTS*/[|continue|] label4; +// +// break label3; +// continue label3; +// +// switch (10) { +// case 1: +// case 2: +// break; +// [|break|] label4; +// default: +// [|continue|]; +// } +// +// // these cross function boundaries +// break label1; +// continue label1; +// break label2; +// continue label2; +// () => { break; } +// } [|while|] (true) +// } +// } +// } +// // --- (line: 58) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue4.ts === +// --- (line: 26) skipped --- +// break label2; +// continue label2; +// +// label4: [|do|] { +// [|break|]; +// [|continue|]; +// [|break|] label4; +// [|continue|] label4; +// +// break label3; +// continue label3; +// +// switch (10) { +// case 1: +// case 2: +// break; +// /*HIGHLIGHTS*/[|break|] label4; +// default: +// [|continue|]; +// } +// +// // these cross function boundaries +// break label1; +// continue label1; +// break label2; +// continue label2; +// () => { break; } +// } [|while|] (true) +// } +// } +// } +// // --- (line: 58) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue4.ts === +// --- (line: 26) skipped --- +// break label2; +// continue label2; +// +// label4: [|do|] { +// [|break|]; +// [|continue|]; +// [|break|] label4; +// [|continue|] label4; +// +// break label3; +// continue label3; +// +// switch (10) { +// case 1: +// case 2: +// break; +// [|break|] label4; +// default: +// /*HIGHLIGHTS*/[|continue|]; +// } +// +// // these cross function boundaries +// break label1; +// continue label1; +// break label2; +// continue label2; +// () => { break; } +// } [|while|] (true) +// } +// } +// } +// // --- (line: 58) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue4.ts === +// --- (line: 26) skipped --- +// break label2; +// continue label2; +// +// label4: [|do|] { +// [|break|]; +// [|continue|]; +// [|break|] label4; +// [|continue|] label4; +// +// break label3; +// continue label3; +// +// switch (10) { +// case 1: +// case 2: +// break; +// [|break|] label4; +// default: +// [|continue|]; +// } +// +// // these cross function boundaries +// break label1; +// continue label1; +// break label2; +// continue label2; +// () => { break; } +// } /*HIGHLIGHTS*/[|while|] (true) +// } +// } +// } +// // --- (line: 58) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue5.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue5.baseline.jsonc new file mode 100644 index 0000000000..41073f8721 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesLoopBreakContinue5.baseline.jsonc @@ -0,0 +1,21 @@ +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue5.ts === +// --- (line: 56) skipped --- +// } +// } +// +// label5: /*HIGHLIGHTS*/[|while|] (true) [|break|] label5; +// +// label7: while (true) continue label5; + + + +// === documentHighlights === +// === /getOccurrencesLoopBreakContinue5.ts === +// --- (line: 56) skipped --- +// } +// } +// +// label5: [|while|] (true) /*HIGHLIGHTS*/[|break|] label5; +// +// label7: while (true) continue label5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesModifiersNegatives1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesModifiersNegatives1.baseline.jsonc new file mode 100644 index 0000000000..6bdbd543a4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesModifiersNegatives1.baseline.jsonc @@ -0,0 +1,813 @@ +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// /*HIGHLIGHTS*/[|export|] foo; +// declare bar; +// [|export|] declare foobar; +// declare [|export|] barfoo; +// +// constructor(export conFoo, +// declare conBar, +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// /*HIGHLIGHTS*/[|declare|] bar; +// export [|declare|] foobar; +// [|declare|] export barfoo; +// +// constructor(export conFoo, +// declare conBar, +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// [|export|] foo; +// declare bar; +// /*HIGHLIGHTS*/[|export|] declare foobar; +// declare [|export|] barfoo; +// +// constructor(export conFoo, +// declare conBar, +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// [|declare|] bar; +// export /*HIGHLIGHTS*/[|declare|] foobar; +// [|declare|] export barfoo; +// +// constructor(export conFoo, +// declare conBar, +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// [|declare|] bar; +// export [|declare|] foobar; +// /*HIGHLIGHTS*/[|declare|] export barfoo; +// +// constructor(export conFoo, +// declare conBar, +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// [|export|] foo; +// declare bar; +// [|export|] declare foobar; +// declare /*HIGHLIGHTS*/[|export|] barfoo; +// +// constructor(export conFoo, +// declare conBar, +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// [|export|] foo; +// declare bar; +// [|export|] declare foobar; +// declare [|export|] barfoo; +// +// constructor(/*HIGHLIGHTS*/[|export|] conFoo, +// declare conBar, +// [|export|] declare conFooBar, +// declare [|export|] conBarFoo, +// static sue, +// static [|export|] declare sueFooBar, +// static declare [|export|] sueBarFoo, +// declare static [|export|] barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// [|declare|] bar; +// export [|declare|] foobar; +// [|declare|] export barfoo; +// +// constructor(export conFoo, +// /*HIGHLIGHTS*/[|declare|] conBar, +// export [|declare|] conFooBar, +// [|declare|] export conBarFoo, +// static sue, +// static export [|declare|] sueFooBar, +// static [|declare|] export sueBarFoo, +// [|declare|] static export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// [|export|] foo; +// declare bar; +// [|export|] declare foobar; +// declare [|export|] barfoo; +// +// constructor([|export|] conFoo, +// declare conBar, +// /*HIGHLIGHTS*/[|export|] declare conFooBar, +// declare [|export|] conBarFoo, +// static sue, +// static [|export|] declare sueFooBar, +// static declare [|export|] sueBarFoo, +// declare static [|export|] barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// [|declare|] bar; +// export [|declare|] foobar; +// [|declare|] export barfoo; +// +// constructor(export conFoo, +// [|declare|] conBar, +// export /*HIGHLIGHTS*/[|declare|] conFooBar, +// [|declare|] export conBarFoo, +// static sue, +// static export [|declare|] sueFooBar, +// static [|declare|] export sueBarFoo, +// [|declare|] static export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// [|declare|] bar; +// export [|declare|] foobar; +// [|declare|] export barfoo; +// +// constructor(export conFoo, +// [|declare|] conBar, +// export [|declare|] conFooBar, +// /*HIGHLIGHTS*/[|declare|] export conBarFoo, +// static sue, +// static export [|declare|] sueFooBar, +// static [|declare|] export sueBarFoo, +// [|declare|] static export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// [|export|] foo; +// declare bar; +// [|export|] declare foobar; +// declare [|export|] barfoo; +// +// constructor([|export|] conFoo, +// declare conBar, +// [|export|] declare conFooBar, +// declare /*HIGHLIGHTS*/[|export|] conBarFoo, +// static sue, +// static [|export|] declare sueFooBar, +// static declare [|export|] sueBarFoo, +// declare static [|export|] barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 7) skipped --- +// declare conBar, +// export declare conFooBar, +// declare export conBarFoo, +// /*HIGHLIGHTS*/[|static|] sue, +// [|static|] export declare sueFooBar, +// [|static|] declare export sueBarFoo, +// declare [|static|] export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 7) skipped --- +// declare conBar, +// export declare conFooBar, +// declare export conBarFoo, +// [|static|] sue, +// /*HIGHLIGHTS*/[|static|] export declare sueFooBar, +// [|static|] declare export sueBarFoo, +// declare [|static|] export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// [|export|] foo; +// declare bar; +// [|export|] declare foobar; +// declare [|export|] barfoo; +// +// constructor([|export|] conFoo, +// declare conBar, +// [|export|] declare conFooBar, +// declare [|export|] conBarFoo, +// static sue, +// static /*HIGHLIGHTS*/[|export|] declare sueFooBar, +// static declare [|export|] sueBarFoo, +// declare static [|export|] barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// [|declare|] bar; +// export [|declare|] foobar; +// [|declare|] export barfoo; +// +// constructor(export conFoo, +// [|declare|] conBar, +// export [|declare|] conFooBar, +// [|declare|] export conBarFoo, +// static sue, +// static export /*HIGHLIGHTS*/[|declare|] sueFooBar, +// static [|declare|] export sueBarFoo, +// [|declare|] static export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 7) skipped --- +// declare conBar, +// export declare conFooBar, +// declare export conBarFoo, +// [|static|] sue, +// [|static|] export declare sueFooBar, +// /*HIGHLIGHTS*/[|static|] declare export sueBarFoo, +// declare [|static|] export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// [|declare|] bar; +// export [|declare|] foobar; +// [|declare|] export barfoo; +// +// constructor(export conFoo, +// [|declare|] conBar, +// export [|declare|] conFooBar, +// [|declare|] export conBarFoo, +// static sue, +// static export [|declare|] sueFooBar, +// static /*HIGHLIGHTS*/[|declare|] export sueBarFoo, +// [|declare|] static export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// [|export|] foo; +// declare bar; +// [|export|] declare foobar; +// declare [|export|] barfoo; +// +// constructor([|export|] conFoo, +// declare conBar, +// [|export|] declare conFooBar, +// declare [|export|] conBarFoo, +// static sue, +// static [|export|] declare sueFooBar, +// static declare /*HIGHLIGHTS*/[|export|] sueBarFoo, +// declare static [|export|] barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// export foo; +// [|declare|] bar; +// export [|declare|] foobar; +// [|declare|] export barfoo; +// +// constructor(export conFoo, +// [|declare|] conBar, +// export [|declare|] conFooBar, +// [|declare|] export conBarFoo, +// static sue, +// static export [|declare|] sueFooBar, +// static [|declare|] export sueBarFoo, +// /*HIGHLIGHTS*/[|declare|] static export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 7) skipped --- +// declare conBar, +// export declare conFooBar, +// declare export conBarFoo, +// [|static|] sue, +// [|static|] export declare sueFooBar, +// [|static|] declare export sueBarFoo, +// declare /*HIGHLIGHTS*/[|static|] export barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// class C { +// [|export|] foo; +// declare bar; +// [|export|] declare foobar; +// declare [|export|] barfoo; +// +// constructor([|export|] conFoo, +// declare conBar, +// [|export|] declare conFooBar, +// declare [|export|] conBarFoo, +// static sue, +// static [|export|] declare sueFooBar, +// static declare [|export|] sueBarFoo, +// declare static /*HIGHLIGHTS*/[|export|] barSueFoo) { +// } +// } +// +// // --- (line: 18) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 15) skipped --- +// } +// +// module m { +// /*HIGHLIGHTS*/static a; +// public b; +// private c; +// protected d; +// // --- (line: 23) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 16) skipped --- +// +// module m { +// static a; +// /*HIGHLIGHTS*/public b; +// private c; +// protected d; +// static public private protected e; +// // --- (line: 24) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 17) skipped --- +// module m { +// static a; +// public b; +// /*HIGHLIGHTS*/private c; +// protected d; +// static public private protected e; +// public static protected private f; +// // --- (line: 25) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 18) skipped --- +// static a; +// public b; +// private c; +// /*HIGHLIGHTS*/protected d; +// static public private protected e; +// public static protected private f; +// protected static public g; +// // --- (line: 26) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 19) skipped --- +// public b; +// private c; +// protected d; +// /*HIGHLIGHTS*/static public private protected e; +// public static protected private f; +// protected static public g; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 19) skipped --- +// public b; +// private c; +// protected d; +// static /*HIGHLIGHTS*/public private protected e; +// public static protected private f; +// protected static public g; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 19) skipped --- +// public b; +// private c; +// protected d; +// static public /*HIGHLIGHTS*/private protected e; +// public static protected private f; +// protected static public g; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 19) skipped --- +// public b; +// private c; +// protected d; +// static public private /*HIGHLIGHTS*/protected e; +// public static protected private f; +// protected static public g; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 20) skipped --- +// private c; +// protected d; +// static public private protected e; +// /*HIGHLIGHTS*/public static protected private f; +// protected static public g; +// } +// static a; +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 20) skipped --- +// private c; +// protected d; +// static public private protected e; +// public /*HIGHLIGHTS*/static protected private f; +// protected static public g; +// } +// static a; +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 20) skipped --- +// private c; +// protected d; +// static public private protected e; +// public static /*HIGHLIGHTS*/protected private f; +// protected static public g; +// } +// static a; +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 20) skipped --- +// private c; +// protected d; +// static public private protected e; +// public static protected /*HIGHLIGHTS*/private f; +// protected static public g; +// } +// static a; +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 21) skipped --- +// protected d; +// static public private protected e; +// public static protected private f; +// /*HIGHLIGHTS*/protected static public g; +// } +// static a; +// public b; +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 21) skipped --- +// protected d; +// static public private protected e; +// public static protected private f; +// protected /*HIGHLIGHTS*/static public g; +// } +// static a; +// public b; +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 21) skipped --- +// protected d; +// static public private protected e; +// public static protected private f; +// protected static /*HIGHLIGHTS*/public g; +// } +// static a; +// public b; +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 23) skipped --- +// public static protected private f; +// protected static public g; +// } +// /*HIGHLIGHTS*/static a; +// public b; +// private c; +// protected d; +// // --- (line: 31) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 24) skipped --- +// protected static public g; +// } +// static a; +// /*HIGHLIGHTS*/public b; +// private c; +// protected d; +// static public private protected e; +// public static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 25) skipped --- +// } +// static a; +// public b; +// /*HIGHLIGHTS*/private c; +// protected d; +// static public private protected e; +// public static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 26) skipped --- +// static a; +// public b; +// private c; +// /*HIGHLIGHTS*/protected d; +// static public private protected e; +// public static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 27) skipped --- +// public b; +// private c; +// protected d; +// /*HIGHLIGHTS*/static public private protected e; +// public static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 27) skipped --- +// public b; +// private c; +// protected d; +// static /*HIGHLIGHTS*/public private protected e; +// public static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 27) skipped --- +// public b; +// private c; +// protected d; +// static public /*HIGHLIGHTS*/private protected e; +// public static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 27) skipped --- +// public b; +// private c; +// protected d; +// static public private /*HIGHLIGHTS*/protected e; +// public static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 28) skipped --- +// private c; +// protected d; +// static public private protected e; +// /*HIGHLIGHTS*/public static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 28) skipped --- +// private c; +// protected d; +// static public private protected e; +// public /*HIGHLIGHTS*/static protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 28) skipped --- +// private c; +// protected d; +// static public private protected e; +// public static /*HIGHLIGHTS*/protected private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 28) skipped --- +// private c; +// protected d; +// static public private protected e; +// public static protected /*HIGHLIGHTS*/private f; +// protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 29) skipped --- +// protected d; +// static public private protected e; +// public static protected private f; +// /*HIGHLIGHTS*/protected static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 29) skipped --- +// protected d; +// static public private protected e; +// public static protected private f; +// protected /*HIGHLIGHTS*/static public g; + + + +// === documentHighlights === +// === /getOccurrencesModifiersNegatives1.ts === +// --- (line: 29) skipped --- +// protected d; +// static public private protected e; +// public static protected private f; +// protected static /*HIGHLIGHTS*/public g; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAssertion.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAssertion.baseline.jsonc new file mode 100644 index 0000000000..8f74025002 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAssertion.baseline.jsonc @@ -0,0 +1,4 @@ +// === documentHighlights === +// === /getOccurrencesNonStringImportAssertion.ts === +// import * as react from "react" assert { cache: /*HIGHLIGHTS*/0 }; +// react.Children; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAttributes.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAttributes.baseline.jsonc new file mode 100644 index 0000000000..495cc04088 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesNonStringImportAttributes.baseline.jsonc @@ -0,0 +1,4 @@ +// === documentHighlights === +// === /getOccurrencesNonStringImportAttributes.ts === +// import * as react from "react" with { cache: /*HIGHLIGHTS*/0 }; +// react.Children; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction.baseline.jsonc new file mode 100644 index 0000000000..3b02bd09b6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction.baseline.jsonc @@ -0,0 +1,15 @@ +// === documentHighlights === +// === /getOccurrencesOfAnonymousFunction.ts === +// (function /*HIGHLIGHTS*/foo(): number { +// var x = [|foo|]; +// return 0; +// }) + + + +// === documentHighlights === +// === /getOccurrencesOfAnonymousFunction.ts === +// (function foo(): number { +// var x = /*HIGHLIGHTS*/[|foo|]; +// return 0; +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction2.baseline.jsonc new file mode 100644 index 0000000000..9a267b1549 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfAnonymousFunction2.baseline.jsonc @@ -0,0 +1,25 @@ +// === documentHighlights === +// === /getOccurrencesOfAnonymousFunction2.ts === +// //global foo definition +// function foo() {} +// +// (function [|f/*HIGHLIGHTS*/oo|](): number { +// return [|foo|](); // local foo reference +// }) +// //global foo references +// foo(); +// var f = foo; + + + +// === documentHighlights === +// === /getOccurrencesOfAnonymousFunction2.ts === +// //global foo definition +// function [|foo|]() {} +// +// (function foo(): number { +// return foo(); // local foo reference +// }) +// //global foo references +// [|fo/*HIGHLIGHTS*/o|](); +// var f = [|foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfDecorators.baseline.jsonc new file mode 100644 index 0000000000..39f4a722e1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfDecorators.baseline.jsonc @@ -0,0 +1,10 @@ +// === documentHighlights === +// === /b.ts === +// @/*HIGHLIGHTS*/[|decorator|] +// class C { +// @[|decorator|] +// method() {} +// } +// function [|decorator|](target) { +// return target; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfUndefinedSymbol.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfUndefinedSymbol.baseline.jsonc new file mode 100644 index 0000000000..046ff4e22a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesOfUndefinedSymbol.baseline.jsonc @@ -0,0 +1,9 @@ +// === documentHighlights === +// === /getOccurrencesOfUndefinedSymbol.ts === +// --- (line: 7) skipped --- +// +// class cls3 { +// property zeFunc() { +// super.ceFun/*HIGHLIGHTS*/c(); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate1.baseline.jsonc new file mode 100644 index 0000000000..3617a1c9ba --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate1.baseline.jsonc @@ -0,0 +1,195 @@ +// === documentHighlights === +// === /getOccurrencesPrivate1.ts === +// module m { +// export class C1 { +// public pub1; +// public pub2; +// /*HIGHLIGHTS*/[|private|] priv1; +// [|private|] priv2; +// protected prot1; +// protected prot2; +// +// public public; +// [|private|] private; +// protected protected; +// +// public constructor(public a, [|private|] b, protected c, public d, [|private|] e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// public get x() { return 10; } +// public set x(value) { } +// +// public static statPub; +// [|private|] static statPriv; +// protected static statProt; +// } +// +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPrivate1.ts === +// module m { +// export class C1 { +// public pub1; +// public pub2; +// [|private|] priv1; +// /*HIGHLIGHTS*/[|private|] priv2; +// protected prot1; +// protected prot2; +// +// public public; +// [|private|] private; +// protected protected; +// +// public constructor(public a, [|private|] b, protected c, public d, [|private|] e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// public get x() { return 10; } +// public set x(value) { } +// +// public static statPub; +// [|private|] static statPriv; +// protected static statProt; +// } +// +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPrivate1.ts === +// module m { +// export class C1 { +// public pub1; +// public pub2; +// [|private|] priv1; +// [|private|] priv2; +// protected prot1; +// protected prot2; +// +// public public; +// /*HIGHLIGHTS*/[|private|] private; +// protected protected; +// +// public constructor(public a, [|private|] b, protected c, public d, [|private|] e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// public get x() { return 10; } +// public set x(value) { } +// +// public static statPub; +// [|private|] static statPriv; +// protected static statProt; +// } +// +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPrivate1.ts === +// module m { +// export class C1 { +// public pub1; +// public pub2; +// [|private|] priv1; +// [|private|] priv2; +// protected prot1; +// protected prot2; +// +// public public; +// [|private|] private; +// protected protected; +// +// public constructor(public a, /*HIGHLIGHTS*/[|private|] b, protected c, public d, [|private|] e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// public get x() { return 10; } +// public set x(value) { } +// +// public static statPub; +// [|private|] static statPriv; +// protected static statProt; +// } +// +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPrivate1.ts === +// module m { +// export class C1 { +// public pub1; +// public pub2; +// [|private|] priv1; +// [|private|] priv2; +// protected prot1; +// protected prot2; +// +// public public; +// [|private|] private; +// protected protected; +// +// public constructor(public a, [|private|] b, protected c, public d, /*HIGHLIGHTS*/[|private|] e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// public get x() { return 10; } +// public set x(value) { } +// +// public static statPub; +// [|private|] static statPriv; +// protected static statProt; +// } +// +// // --- (line: 28) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPrivate1.ts === +// module m { +// export class C1 { +// public pub1; +// public pub2; +// [|private|] priv1; +// [|private|] priv2; +// protected prot1; +// protected prot2; +// +// public public; +// [|private|] private; +// protected protected; +// +// public constructor(public a, [|private|] b, protected c, public d, [|private|] e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// public get x() { return 10; } +// public set x(value) { } +// +// public static statPub; +// /*HIGHLIGHTS*/[|private|] static statPriv; +// protected static statProt; +// } +// +// // --- (line: 28) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate2.baseline.jsonc new file mode 100644 index 0000000000..f60965a862 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPrivate2.baseline.jsonc @@ -0,0 +1,31 @@ +// === documentHighlights === +// === /getOccurrencesPrivate2.ts === +// --- (line: 37) skipped --- +// +// export class C2 { +// public pub1; +// /*HIGHLIGHTS*/[|private|] priv1; +// protected prot1; +// +// protected constructor(public public, protected protected, [|private|] private) { +// public = private = protected; +// } +// } +// // --- (line: 48) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPrivate2.ts === +// --- (line: 37) skipped --- +// +// export class C2 { +// public pub1; +// [|private|] priv1; +// protected prot1; +// +// protected constructor(public public, protected protected, /*HIGHLIGHTS*/[|private|] private) { +// public = private = protected; +// } +// } +// // --- (line: 48) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPropertyInAliasedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPropertyInAliasedInterface.baseline.jsonc new file mode 100644 index 0000000000..d0cba623f7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPropertyInAliasedInterface.baseline.jsonc @@ -0,0 +1,85 @@ +// === documentHighlights === +// === /getOccurrencesPropertyInAliasedInterface.ts === +// module m { +// export interface Foo { +// /*HIGHLIGHTS*/[|abc|] +// } +// } +// +// import Bar = m.Foo; +// +// export interface I extends Bar { +// [|abc|] +// } +// +// class C implements Bar { +// [|abc|] +// } +// +// (new C()).[|abc|]; + + + +// === documentHighlights === +// === /getOccurrencesPropertyInAliasedInterface.ts === +// module m { +// export interface Foo { +// [|abc|] +// } +// } +// +// import Bar = m.Foo; +// +// export interface I extends Bar { +// /*HIGHLIGHTS*/[|abc|] +// } +// +// class C implements Bar { +// [|abc|] +// } +// +// (new C()).[|abc|]; + + + +// === documentHighlights === +// === /getOccurrencesPropertyInAliasedInterface.ts === +// module m { +// export interface Foo { +// [|abc|] +// } +// } +// +// import Bar = m.Foo; +// +// export interface I extends Bar { +// [|abc|] +// } +// +// class C implements Bar { +// /*HIGHLIGHTS*/[|abc|] +// } +// +// (new C()).[|abc|]; + + + +// === documentHighlights === +// === /getOccurrencesPropertyInAliasedInterface.ts === +// module m { +// export interface Foo { +// [|abc|] +// } +// } +// +// import Bar = m.Foo; +// +// export interface I extends Bar { +// [|abc|] +// } +// +// class C implements Bar { +// [|abc|] +// } +// +// (new C())./*HIGHLIGHTS*/[|abc|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected1.baseline.jsonc new file mode 100644 index 0000000000..8490faf1d0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected1.baseline.jsonc @@ -0,0 +1,183 @@ +// === documentHighlights === +// === /getOccurrencesProtected1.ts === +// --- (line: 3) skipped --- +// public pub2; +// private priv1; +// private priv2; +// /*HIGHLIGHTS*/[|protected|] prot1; +// [|protected|] prot2; +// +// public public; +// private private; +// [|protected|] protected; +// +// public constructor(public a, private b, [|protected|] c, public d, private e, [|protected|] f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// // --- (line: 18) skipped --- + +// --- (line: 21) skipped --- +// +// public static statPub; +// private static statPriv; +// [|protected|] static statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesProtected1.ts === +// --- (line: 3) skipped --- +// public pub2; +// private priv1; +// private priv2; +// [|protected|] prot1; +// /*HIGHLIGHTS*/[|protected|] prot2; +// +// public public; +// private private; +// [|protected|] protected; +// +// public constructor(public a, private b, [|protected|] c, public d, private e, [|protected|] f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// // --- (line: 18) skipped --- + +// --- (line: 21) skipped --- +// +// public static statPub; +// private static statPriv; +// [|protected|] static statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesProtected1.ts === +// --- (line: 3) skipped --- +// public pub2; +// private priv1; +// private priv2; +// [|protected|] prot1; +// [|protected|] prot2; +// +// public public; +// private private; +// /*HIGHLIGHTS*/[|protected|] protected; +// +// public constructor(public a, private b, [|protected|] c, public d, private e, [|protected|] f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// // --- (line: 18) skipped --- + +// --- (line: 21) skipped --- +// +// public static statPub; +// private static statPriv; +// [|protected|] static statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesProtected1.ts === +// --- (line: 3) skipped --- +// public pub2; +// private priv1; +// private priv2; +// [|protected|] prot1; +// [|protected|] prot2; +// +// public public; +// private private; +// [|protected|] protected; +// +// public constructor(public a, private b, /*HIGHLIGHTS*/[|protected|] c, public d, private e, [|protected|] f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// // --- (line: 18) skipped --- + +// --- (line: 21) skipped --- +// +// public static statPub; +// private static statPriv; +// [|protected|] static statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesProtected1.ts === +// --- (line: 3) skipped --- +// public pub2; +// private priv1; +// private priv2; +// [|protected|] prot1; +// [|protected|] prot2; +// +// public public; +// private private; +// [|protected|] protected; +// +// public constructor(public a, private b, [|protected|] c, public d, private e, /*HIGHLIGHTS*/[|protected|] f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// // --- (line: 18) skipped --- + +// --- (line: 21) skipped --- +// +// public static statPub; +// private static statPriv; +// [|protected|] static statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesProtected1.ts === +// --- (line: 3) skipped --- +// public pub2; +// private priv1; +// private priv2; +// [|protected|] prot1; +// [|protected|] prot2; +// +// public public; +// private private; +// [|protected|] protected; +// +// public constructor(public a, private b, [|protected|] c, public d, private e, [|protected|] f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// // --- (line: 18) skipped --- + +// --- (line: 21) skipped --- +// +// public static statPub; +// private static statPriv; +// /*HIGHLIGHTS*/[|protected|] static statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected2.baseline.jsonc new file mode 100644 index 0000000000..70dd56fa8a --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesProtected2.baseline.jsonc @@ -0,0 +1,45 @@ +// === documentHighlights === +// === /getOccurrencesProtected2.ts === +// --- (line: 38) skipped --- +// export class C2 { +// public pub1; +// private priv1; +// /*HIGHLIGHTS*/[|protected|] prot1; +// +// [|protected|] constructor(public public, [|protected|] protected, private private) { +// public = private = protected; +// } +// } +// // --- (line: 48) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesProtected2.ts === +// --- (line: 38) skipped --- +// export class C2 { +// public pub1; +// private priv1; +// [|protected|] prot1; +// +// /*HIGHLIGHTS*/[|protected|] constructor(public public, [|protected|] protected, private private) { +// public = private = protected; +// } +// } +// // --- (line: 48) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesProtected2.ts === +// --- (line: 38) skipped --- +// export class C2 { +// public pub1; +// private priv1; +// [|protected|] prot1; +// +// [|protected|] constructor(public public, /*HIGHLIGHTS*/[|protected|] protected, private private) { +// public = private = protected; +// } +// } +// // --- (line: 48) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic1.baseline.jsonc new file mode 100644 index 0000000000..f0245158d1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic1.baseline.jsonc @@ -0,0 +1,285 @@ +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// /*HIGHLIGHTS*/[|public|] pub1; +// [|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// [|public|] public; +// private private; +// protected protected; +// +// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// [|public|] get x() { return 10; } +// [|public|] set x(value) { } +// +// [|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// [|public|] pub1; +// /*HIGHLIGHTS*/[|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// [|public|] public; +// private private; +// protected protected; +// +// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// [|public|] get x() { return 10; } +// [|public|] set x(value) { } +// +// [|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// [|public|] pub1; +// [|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// /*HIGHLIGHTS*/[|public|] public; +// private private; +// protected protected; +// +// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// [|public|] get x() { return 10; } +// [|public|] set x(value) { } +// +// [|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// [|public|] pub1; +// [|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// [|public|] public; +// private private; +// protected protected; +// +// /*HIGHLIGHTS*/[|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// [|public|] get x() { return 10; } +// [|public|] set x(value) { } +// +// [|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// [|public|] pub1; +// [|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// [|public|] public; +// private private; +// protected protected; +// +// [|public|] constructor(/*HIGHLIGHTS*/[|public|] a, private b, protected c, [|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// [|public|] get x() { return 10; } +// [|public|] set x(value) { } +// +// [|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// [|public|] pub1; +// [|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// [|public|] public; +// private private; +// protected protected; +// +// [|public|] constructor([|public|] a, private b, protected c, /*HIGHLIGHTS*/[|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// [|public|] get x() { return 10; } +// [|public|] set x(value) { } +// +// [|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// [|public|] pub1; +// [|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// [|public|] public; +// private private; +// protected protected; +// +// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// /*HIGHLIGHTS*/[|public|] get x() { return 10; } +// [|public|] set x(value) { } +// +// [|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// [|public|] pub1; +// [|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// [|public|] public; +// private private; +// protected protected; +// +// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// [|public|] get x() { return 10; } +// /*HIGHLIGHTS*/[|public|] set x(value) { } +// +// [|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic1.ts === +// module m { +// export class C1 { +// [|public|] pub1; +// [|public|] pub2; +// private priv1; +// private priv2; +// protected prot1; +// protected prot2; +// +// [|public|] public; +// private private; +// protected protected; +// +// [|public|] constructor([|public|] a, private b, protected c, [|public|] d, private e, protected f) { +// this.public = 10; +// this.private = 10; +// this.protected = 10; +// } +// +// [|public|] get x() { return 10; } +// [|public|] set x(value) { } +// +// /*HIGHLIGHTS*/[|public|] static statPub; +// private static statPriv; +// protected static statProt; +// } +// // --- (line: 27) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic2.baseline.jsonc new file mode 100644 index 0000000000..368425ff54 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesPublic2.baseline.jsonc @@ -0,0 +1,33 @@ +// === documentHighlights === +// === /getOccurrencesPublic2.ts === +// --- (line: 36) skipped --- +// declare var foo; +// +// export class C2 { +// /*HIGHLIGHTS*/[|public|] pub1; +// private priv1; +// protected prot1; +// +// protected constructor([|public|] public, protected protected, private private) { +// public = private = protected; +// } +// } +// // --- (line: 48) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesPublic2.ts === +// --- (line: 36) skipped --- +// declare var foo; +// +// export class C2 { +// [|public|] pub1; +// private priv1; +// protected prot1; +// +// protected constructor(/*HIGHLIGHTS*/[|public|] public, protected protected, private private) { +// public = private = protected; +// } +// } +// // --- (line: 48) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly1.baseline.jsonc new file mode 100644 index 0000000000..55af9fc7a9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly1.baseline.jsonc @@ -0,0 +1,5 @@ +// === documentHighlights === +// === /getOccurrencesReadonly1.ts === +// interface I { +// /*HIGHLIGHTS*/[|readonly|] prop: string; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly2.baseline.jsonc new file mode 100644 index 0000000000..e627f6211b --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly2.baseline.jsonc @@ -0,0 +1,5 @@ +// === documentHighlights === +// === /getOccurrencesReadonly2.ts === +// type T = { +// /*HIGHLIGHTS*/[|readonly|] prop: string; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly3.baseline.jsonc new file mode 100644 index 0000000000..aa353f0e86 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReadonly3.baseline.jsonc @@ -0,0 +1,34 @@ +// === documentHighlights === +// === /getOccurrencesReadonly3.ts === +// class C { +// /*HIGHLIGHTS*/[|readonly|] prop: readonly string[] = []; +// constructor([|readonly|] prop2: string) { +// class D { +// readonly prop: string = ""; +// } +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesReadonly3.ts === +// class C { +// [|readonly|] prop: readonly string[] = []; +// constructor(/*HIGHLIGHTS*/[|readonly|] prop2: string) { +// class D { +// readonly prop: string = ""; +// } +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesReadonly3.ts === +// class C { +// readonly prop: /*HIGHLIGHTS*/[|readonly|] string[] = []; +// constructor(readonly prop2: string) { +// class D { +// readonly prop: string = ""; +// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn.baseline.jsonc new file mode 100644 index 0000000000..e1e04ea209 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn.baseline.jsonc @@ -0,0 +1,57 @@ +// === documentHighlights === +// === /getOccurrencesReturn.ts === +// function f(a: number) { +// if (a > 0) { +// /*HIGHLIGHTS*/[|return|] (function () { +// return; +// return; +// return; +// // --- (line: 7) skipped --- + +// --- (line: 12) skipped --- +// +// var unusued = [1, 2, 3, 4].map(x => { return 4 }) +// +// [|return|]; +// [|return|] true; +// } + + + +// === documentHighlights === +// === /getOccurrencesReturn.ts === +// function f(a: number) { +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 7) skipped --- + +// --- (line: 12) skipped --- +// +// var unusued = [1, 2, 3, 4].map(x => { return 4 }) +// +// /*HIGHLIGHTS*/[|return|]; +// [|return|] true; +// } + + + +// === documentHighlights === +// === /getOccurrencesReturn.ts === +// function f(a: number) { +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 7) skipped --- + +// --- (line: 12) skipped --- +// +// var unusued = [1, 2, 3, 4].map(x => { return 4 }) +// +// [|return|]; +// /*HIGHLIGHTS*/[|return|] true; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn2.baseline.jsonc new file mode 100644 index 0000000000..6a7fa7bfdd --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn2.baseline.jsonc @@ -0,0 +1,69 @@ +// === documentHighlights === +// === /getOccurrencesReturn2.ts === +// function f(a: number) { +// if (a > 0) { +// return (function () { +// /*HIGHLIGHTS*/[|return|]; +// [|return|]; +// [|return|]; +// +// while (false) { +// [|return|] true; +// } +// })() || true; +// } +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesReturn2.ts === +// function f(a: number) { +// if (a > 0) { +// return (function () { +// [|return|]; +// /*HIGHLIGHTS*/[|return|]; +// [|return|]; +// +// while (false) { +// [|return|] true; +// } +// })() || true; +// } +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesReturn2.ts === +// function f(a: number) { +// if (a > 0) { +// return (function () { +// [|return|]; +// [|return|]; +// /*HIGHLIGHTS*/[|return|]; +// +// while (false) { +// [|return|] true; +// } +// })() || true; +// } +// // --- (line: 13) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesReturn2.ts === +// function f(a: number) { +// if (a > 0) { +// return (function () { +// [|return|]; +// [|return|]; +// [|return|]; +// +// while (false) { +// /*HIGHLIGHTS*/[|return|] true; +// } +// })() || true; +// } +// // --- (line: 13) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn3.baseline.jsonc new file mode 100644 index 0000000000..c7c2ed6336 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesReturn3.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /getOccurrencesReturn3.ts === +// --- (line: 10) skipped --- +// })() || true; +// } +// +// var unusued = [1, 2, 3, 4].map(x => { /*HIGHLIGHTS*/[|return|] 4 }) +// +// return; +// return true; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet.baseline.jsonc new file mode 100644 index 0000000000..f8e611291b --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet.baseline.jsonc @@ -0,0 +1,25 @@ +// === documentHighlights === +// === /getOccurrencesSetAndGet.ts === +// class Foo { +// /*HIGHLIGHTS*/[|set|] bar(b: any) { +// } +// +// public [|get|] bar(): any { +// return undefined; +// } +// +// // --- (line: 9) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSetAndGet.ts === +// class Foo { +// [|set|] bar(b: any) { +// } +// +// public /*HIGHLIGHTS*/[|get|] bar(): any { +// return undefined; +// } +// +// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet2.baseline.jsonc new file mode 100644 index 0000000000..99684a437f --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet2.baseline.jsonc @@ -0,0 +1,31 @@ +// === documentHighlights === +// === /getOccurrencesSetAndGet2.ts === +// --- (line: 5) skipped --- +// return undefined; +// } +// +// public /*HIGHLIGHTS*/[|set|] set(s: any) { +// } +// +// public [|get|] set(): any { +// return undefined; +// } +// +// // --- (line: 16) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSetAndGet2.ts === +// --- (line: 5) skipped --- +// return undefined; +// } +// +// public [|set|] set(s: any) { +// } +// +// public /*HIGHLIGHTS*/[|get|] set(): any { +// return undefined; +// } +// +// // --- (line: 16) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet3.baseline.jsonc new file mode 100644 index 0000000000..c6fd4fe2b8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSetAndGet3.baseline.jsonc @@ -0,0 +1,29 @@ +// === documentHighlights === +// === /getOccurrencesSetAndGet3.ts === +// --- (line: 12) skipped --- +// return undefined; +// } +// +// public /*HIGHLIGHTS*/[|set|] get(g: any) { +// } +// +// public [|get|] get(): any { +// return undefined; +// } +// } + + + +// === documentHighlights === +// === /getOccurrencesSetAndGet3.ts === +// --- (line: 12) skipped --- +// return undefined; +// } +// +// public [|set|] get(g: any) { +// } +// +// public /*HIGHLIGHTS*/[|get|] get(): any { +// return undefined; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStatic1.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStatic1.baseline.jsonc new file mode 100644 index 0000000000..669bccd3c2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStatic1.baseline.jsonc @@ -0,0 +1,45 @@ +// === documentHighlights === +// === /getOccurrencesStatic1.ts === +// --- (line: 19) skipped --- +// public get x() { return 10; } +// public set x(value) { } +// +// public /*HIGHLIGHTS*/[|static|] statPub; +// private [|static|] statPriv; +// protected [|static|] statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesStatic1.ts === +// --- (line: 19) skipped --- +// public get x() { return 10; } +// public set x(value) { } +// +// public [|static|] statPub; +// private /*HIGHLIGHTS*/[|static|] statPriv; +// protected [|static|] statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesStatic1.ts === +// --- (line: 19) skipped --- +// public get x() { return 10; } +// public set x(value) { } +// +// public [|static|] statPub; +// private [|static|] statPriv; +// protected /*HIGHLIGHTS*/[|static|] statProt; +// } +// +// export interface I1 { +// // --- (line: 29) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiteralTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiteralTypes.baseline.jsonc new file mode 100644 index 0000000000..8596a66052 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiteralTypes.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /getOccurrencesStringLiteralTypes.ts === +// function foo(a: "/*HIGHLIGHTS*/option 1") { } +// foo("option 1"); + + + +// === documentHighlights === +// === /getOccurrencesStringLiteralTypes.ts === +// function foo(a: "option 1") { } +// foo("/*HIGHLIGHTS*/option 1"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiterals.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiterals.baseline.jsonc new file mode 100644 index 0000000000..e50c26727d --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesStringLiterals.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /getOccurrencesStringLiterals.ts === +// var x = "/*HIGHLIGHTS*/string"; +// function f(a = "initial value") { } + + + +// === documentHighlights === +// === /getOccurrencesStringLiterals.ts === +// var x = "string"; +// function f(a = "/*HIGHLIGHTS*/initial value") { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper.baseline.jsonc new file mode 100644 index 0000000000..a89f8f9810 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper.baseline.jsonc @@ -0,0 +1,235 @@ +// === documentHighlights === +// === /getOccurrencesSuper.ts === +// --- (line: 7) skipped --- +// } +// +// class SubType extends SuperType { +// public prop1 = /*HIGHLIGHTS*/[|super|].superMethod; +// private prop2 = [|super|].superMethod; +// +// constructor() { +// [|super|](); +// } +// +// public method1() { +// return [|super|].superMethod(); +// } +// +// private method2() { +// return [|super|].superMethod(); +// } +// +// public method3() { +// var x = () => [|super|].superMethod(); +// +// // Bad but still gets highlighted +// function f() { +// [|super|].superMethod(); +// } +// } +// +// // --- (line: 35) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper.ts === +// --- (line: 7) skipped --- +// } +// +// class SubType extends SuperType { +// public prop1 = [|super|].superMethod; +// private prop2 = /*HIGHLIGHTS*/[|super|].superMethod; +// +// constructor() { +// [|super|](); +// } +// +// public method1() { +// return [|super|].superMethod(); +// } +// +// private method2() { +// return [|super|].superMethod(); +// } +// +// public method3() { +// var x = () => [|super|].superMethod(); +// +// // Bad but still gets highlighted +// function f() { +// [|super|].superMethod(); +// } +// } +// +// // --- (line: 35) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper.ts === +// --- (line: 7) skipped --- +// } +// +// class SubType extends SuperType { +// public prop1 = [|super|].superMethod; +// private prop2 = [|super|].superMethod; +// +// constructor() { +// /*HIGHLIGHTS*/[|super|](); +// } +// +// public method1() { +// return [|super|].superMethod(); +// } +// +// private method2() { +// return [|super|].superMethod(); +// } +// +// public method3() { +// var x = () => [|super|].superMethod(); +// +// // Bad but still gets highlighted +// function f() { +// [|super|].superMethod(); +// } +// } +// +// // --- (line: 35) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper.ts === +// --- (line: 7) skipped --- +// } +// +// class SubType extends SuperType { +// public prop1 = [|super|].superMethod; +// private prop2 = [|super|].superMethod; +// +// constructor() { +// [|super|](); +// } +// +// public method1() { +// return /*HIGHLIGHTS*/[|super|].superMethod(); +// } +// +// private method2() { +// return [|super|].superMethod(); +// } +// +// public method3() { +// var x = () => [|super|].superMethod(); +// +// // Bad but still gets highlighted +// function f() { +// [|super|].superMethod(); +// } +// } +// +// // --- (line: 35) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper.ts === +// --- (line: 7) skipped --- +// } +// +// class SubType extends SuperType { +// public prop1 = [|super|].superMethod; +// private prop2 = [|super|].superMethod; +// +// constructor() { +// [|super|](); +// } +// +// public method1() { +// return [|super|].superMethod(); +// } +// +// private method2() { +// return /*HIGHLIGHTS*/[|super|].superMethod(); +// } +// +// public method3() { +// var x = () => [|super|].superMethod(); +// +// // Bad but still gets highlighted +// function f() { +// [|super|].superMethod(); +// } +// } +// +// // --- (line: 35) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper.ts === +// --- (line: 7) skipped --- +// } +// +// class SubType extends SuperType { +// public prop1 = [|super|].superMethod; +// private prop2 = [|super|].superMethod; +// +// constructor() { +// [|super|](); +// } +// +// public method1() { +// return [|super|].superMethod(); +// } +// +// private method2() { +// return [|super|].superMethod(); +// } +// +// public method3() { +// var x = () => /*HIGHLIGHTS*/[|super|].superMethod(); +// +// // Bad but still gets highlighted +// function f() { +// [|super|].superMethod(); +// } +// } +// +// // --- (line: 35) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper.ts === +// --- (line: 7) skipped --- +// } +// +// class SubType extends SuperType { +// public prop1 = [|super|].superMethod; +// private prop2 = [|super|].superMethod; +// +// constructor() { +// [|super|](); +// } +// +// public method1() { +// return [|super|].superMethod(); +// } +// +// private method2() { +// return [|super|].superMethod(); +// } +// +// public method3() { +// var x = () => [|super|].superMethod(); +// +// // Bad but still gets highlighted +// function f() { +// /*HIGHLIGHTS*/[|super|].superMethod(); +// } +// } +// +// // --- (line: 35) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper2.baseline.jsonc new file mode 100644 index 0000000000..199a3e90e5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper2.baseline.jsonc @@ -0,0 +1,60 @@ +// === documentHighlights === +// === /getOccurrencesSuper2.ts === +// --- (line: 32) skipped --- +// } +// +// // Bad but still gets highlighted. +// public static statProp1 = /*HIGHLIGHTS*/[|super|].superStaticMethod; +// +// public static staticMethod1() { +// return [|super|].superStaticMethod(); +// } +// +// private static staticMethod2() { +// return [|super|].superStaticMethod(); +// } +// +// // Are not actually 'super' keywords. +// // --- (line: 47) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper2.ts === +// --- (line: 32) skipped --- +// } +// +// // Bad but still gets highlighted. +// public static statProp1 = [|super|].superStaticMethod; +// +// public static staticMethod1() { +// return /*HIGHLIGHTS*/[|super|].superStaticMethod(); +// } +// +// private static staticMethod2() { +// return [|super|].superStaticMethod(); +// } +// +// // Are not actually 'super' keywords. +// // --- (line: 47) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper2.ts === +// --- (line: 32) skipped --- +// } +// +// // Bad but still gets highlighted. +// public static statProp1 = [|super|].superStaticMethod; +// +// public static staticMethod1() { +// return [|super|].superStaticMethod(); +// } +// +// private static staticMethod2() { +// return /*HIGHLIGHTS*/[|super|].superStaticMethod(); +// } +// +// // Are not actually 'super' keywords. +// // --- (line: 47) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper3.baseline.jsonc new file mode 100644 index 0000000000..527a1d8087 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuper3.baseline.jsonc @@ -0,0 +1,51 @@ +// === documentHighlights === +// === /getOccurrencesSuper3.ts === +// let x = { +// a() { +// return /*HIGHLIGHTS*/[|super|].b(); +// }, +// b() { +// return [|super|].a(); +// }, +// c: function () { +// return super.a(); +// // --- (line: 10) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper3.ts === +// let x = { +// a() { +// return [|super|].b(); +// }, +// b() { +// return /*HIGHLIGHTS*/[|super|].a(); +// }, +// c: function () { +// return super.a(); +// // --- (line: 10) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuper3.ts === +// --- (line: 5) skipped --- +// return super.a(); +// }, +// c: function () { +// return /*HIGHLIGHTS*/super.a(); +// } +// d: () => super.b(); +// } + + + +// === documentHighlights === +// === /getOccurrencesSuper3.ts === +// --- (line: 7) skipped --- +// c: function () { +// return super.a(); +// } +// d: () => /*HIGHLIGHTS*/super.b(); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuperNegatives.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuperNegatives.baseline.jsonc new file mode 100644 index 0000000000..c1812ce56f --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSuperNegatives.baseline.jsonc @@ -0,0 +1,61 @@ +// === documentHighlights === +// === /getOccurrencesSuperNegatives.ts === +// function f(x = /*HIGHLIGHTS*/super) { +// super; +// } +// +// // --- (line: 5) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuperNegatives.ts === +// function f(x = super) { +// /*HIGHLIGHTS*/super; +// } +// +// module M { +// // --- (line: 6) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuperNegatives.ts === +// function f(x = super) { +// super; +// } +// +// module M { +// /*HIGHLIGHTS*/super; +// function f(x = super) { +// super; +// } +// // --- (line: 10) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuperNegatives.ts === +// --- (line: 3) skipped --- +// +// module M { +// super; +// function f(x = /*HIGHLIGHTS*/super) { +// super; +// } +// +// // --- (line: 11) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSuperNegatives.ts === +// --- (line: 4) skipped --- +// module M { +// super; +// function f(x = super) { +// /*HIGHLIGHTS*/super; +// } +// +// class A { +// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault.baseline.jsonc new file mode 100644 index 0000000000..d71e3b477f --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault.baseline.jsonc @@ -0,0 +1,195 @@ +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// /*HIGHLIGHTS*/[|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 4: +// [|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// [|case|] 0xBEEF: +// [|default|]: +// [|break|]; +// [|case|] 16: +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// [|switch|] (10) { +// /*HIGHLIGHTS*/[|case|] 1: +// [|case|] 2: +// [|case|] 4: +// [|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// [|case|] 0xBEEF: +// [|default|]: +// [|break|]; +// [|case|] 16: +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// [|switch|] (10) { +// [|case|] 1: +// /*HIGHLIGHTS*/[|case|] 2: +// [|case|] 4: +// [|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// [|case|] 0xBEEF: +// [|default|]: +// [|break|]; +// [|case|] 16: +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// /*HIGHLIGHTS*/[|case|] 4: +// [|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// [|case|] 0xBEEF: +// [|default|]: +// [|break|]; +// [|case|] 16: +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 4: +// /*HIGHLIGHTS*/[|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// [|case|] 0xBEEF: +// [|default|]: +// [|break|]; +// [|case|] 16: +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 4: +// [|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// /*HIGHLIGHTS*/[|case|] 0xBEEF: +// [|default|]: +// [|break|]; +// [|case|] 16: +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 4: +// [|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// [|case|] 0xBEEF: +// /*HIGHLIGHTS*/[|default|]: +// [|break|]; +// [|case|] 16: +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 4: +// [|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// [|case|] 0xBEEF: +// [|default|]: +// /*HIGHLIGHTS*/[|break|]; +// [|case|] 16: +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault.ts === +// [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 4: +// [|case|] 8: +// foo: switch (20) { +// case 1: +// case 2: +// break; +// default: +// break foo; +// } +// [|case|] 0xBEEF: +// [|default|]: +// [|break|]; +// /*HIGHLIGHTS*/[|case|] 16: +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault2.baseline.jsonc new file mode 100644 index 0000000000..2f45fd199e --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault2.baseline.jsonc @@ -0,0 +1,117 @@ +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault2.ts === +// switch (10) { +// case 1: +// case 2: +// case 4: +// case 8: +// foo: /*HIGHLIGHTS*/[|switch|] (20) { +// [|case|] 1: +// [|case|] 2: +// [|break|]; +// [|default|]: +// [|break|] foo; +// } +// case 0xBEEF: +// default: +// // --- (line: 15) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault2.ts === +// switch (10) { +// case 1: +// case 2: +// case 4: +// case 8: +// foo: [|switch|] (20) { +// /*HIGHLIGHTS*/[|case|] 1: +// [|case|] 2: +// [|break|]; +// [|default|]: +// [|break|] foo; +// } +// case 0xBEEF: +// default: +// // --- (line: 15) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault2.ts === +// switch (10) { +// case 1: +// case 2: +// case 4: +// case 8: +// foo: [|switch|] (20) { +// [|case|] 1: +// /*HIGHLIGHTS*/[|case|] 2: +// [|break|]; +// [|default|]: +// [|break|] foo; +// } +// case 0xBEEF: +// default: +// // --- (line: 15) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault2.ts === +// switch (10) { +// case 1: +// case 2: +// case 4: +// case 8: +// foo: [|switch|] (20) { +// [|case|] 1: +// [|case|] 2: +// /*HIGHLIGHTS*/[|break|]; +// [|default|]: +// [|break|] foo; +// } +// case 0xBEEF: +// default: +// // --- (line: 15) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault2.ts === +// switch (10) { +// case 1: +// case 2: +// case 4: +// case 8: +// foo: [|switch|] (20) { +// [|case|] 1: +// [|case|] 2: +// [|break|]; +// /*HIGHLIGHTS*/[|default|]: +// [|break|] foo; +// } +// case 0xBEEF: +// default: +// // --- (line: 15) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault2.ts === +// switch (10) { +// case 1: +// case 2: +// case 4: +// case 8: +// foo: [|switch|] (20) { +// [|case|] 1: +// [|case|] 2: +// [|break|]; +// [|default|]: +// /*HIGHLIGHTS*/[|break|] foo; +// } +// case 0xBEEF: +// default: +// // --- (line: 15) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault3.baseline.jsonc new file mode 100644 index 0000000000..43f829ea61 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesSwitchCaseDefault3.baseline.jsonc @@ -0,0 +1,157 @@ +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault3.ts === +// foo: /*HIGHLIGHTS*/[|switch|] (1) { +// [|case|] 1: +// [|case|] 2: +// [|break|]; +// [|case|] 3: +// switch (2) { +// case 1: +// [|break|] foo; +// continue; // invalid +// default: +// break; +// } +// [|default|]: +// [|break|]; +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault3.ts === +// foo: [|switch|] (1) { +// /*HIGHLIGHTS*/[|case|] 1: +// [|case|] 2: +// [|break|]; +// [|case|] 3: +// switch (2) { +// case 1: +// [|break|] foo; +// continue; // invalid +// default: +// break; +// } +// [|default|]: +// [|break|]; +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault3.ts === +// foo: [|switch|] (1) { +// [|case|] 1: +// /*HIGHLIGHTS*/[|case|] 2: +// [|break|]; +// [|case|] 3: +// switch (2) { +// case 1: +// [|break|] foo; +// continue; // invalid +// default: +// break; +// } +// [|default|]: +// [|break|]; +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault3.ts === +// foo: [|switch|] (1) { +// [|case|] 1: +// [|case|] 2: +// /*HIGHLIGHTS*/[|break|]; +// [|case|] 3: +// switch (2) { +// case 1: +// [|break|] foo; +// continue; // invalid +// default: +// break; +// } +// [|default|]: +// [|break|]; +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault3.ts === +// foo: [|switch|] (1) { +// [|case|] 1: +// [|case|] 2: +// [|break|]; +// /*HIGHLIGHTS*/[|case|] 3: +// switch (2) { +// case 1: +// [|break|] foo; +// continue; // invalid +// default: +// break; +// } +// [|default|]: +// [|break|]; +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault3.ts === +// foo: [|switch|] (1) { +// [|case|] 1: +// [|case|] 2: +// [|break|]; +// [|case|] 3: +// switch (2) { +// case 1: +// /*HIGHLIGHTS*/[|break|] foo; +// continue; // invalid +// default: +// break; +// } +// [|default|]: +// [|break|]; +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault3.ts === +// foo: [|switch|] (1) { +// [|case|] 1: +// [|case|] 2: +// [|break|]; +// [|case|] 3: +// switch (2) { +// case 1: +// [|break|] foo; +// continue; // invalid +// default: +// break; +// } +// /*HIGHLIGHTS*/[|default|]: +// [|break|]; +// } + + + +// === documentHighlights === +// === /getOccurrencesSwitchCaseDefault3.ts === +// foo: [|switch|] (1) { +// [|case|] 1: +// [|case|] 2: +// [|break|]; +// [|case|] 3: +// switch (2) { +// case 1: +// [|break|] foo; +// continue; // invalid +// default: +// break; +// } +// [|default|]: +// /*HIGHLIGHTS*/[|break|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis.baseline.jsonc new file mode 100644 index 0000000000..2418ead776 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis.baseline.jsonc @@ -0,0 +1,19 @@ +// === documentHighlights === +// === /getOccurrencesThis.ts === +// /*HIGHLIGHTS*/[|this|]; +// [|this|]; +// +// function f() { +// this; +// // --- (line: 6) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis.ts === +// [|this|]; +// /*HIGHLIGHTS*/[|this|]; +// +// function f() { +// this; +// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis2.baseline.jsonc new file mode 100644 index 0000000000..76d9c05eb4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis2.baseline.jsonc @@ -0,0 +1,129 @@ +// === documentHighlights === +// === /getOccurrencesThis2.ts === +// this; +// this; +// +// function f() { +// /*HIGHLIGHTS*/[|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 17) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis2.ts === +// this; +// this; +// +// function f() { +// [|this|]; +// /*HIGHLIGHTS*/[|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 17) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis2.ts === +// this; +// this; +// +// function f() { +// [|this|]; +// [|this|]; +// () => /*HIGHLIGHTS*/[|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 17) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis2.ts === +// this; +// this; +// +// function f() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if (/*HIGHLIGHTS*/[|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 17) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis2.ts === +// this; +// this; +// +// function f() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// /*HIGHLIGHTS*/[|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 17) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis2.ts === +// this; +// this; +// +// function f() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// /*HIGHLIGHTS*/[|this|].this; +// } +// } +// function inside() { +// // --- (line: 17) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis3.baseline.jsonc new file mode 100644 index 0000000000..8beeaf0051 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis3.baseline.jsonc @@ -0,0 +1,31 @@ +// === documentHighlights === +// === /getOccurrencesThis3.ts === +// --- (line: 13) skipped --- +// } +// } +// function inside() { +// /*HIGHLIGHTS*/[|this|]; +// (function (_) { +// this; +// })([|this|]); +// } +// } +// +// // --- (line: 24) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis3.ts === +// --- (line: 13) skipped --- +// } +// } +// function inside() { +// [|this|]; +// (function (_) { +// this; +// })(/*HIGHLIGHTS*/[|this|]); +// } +// } +// +// // --- (line: 24) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis4.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis4.baseline.jsonc new file mode 100644 index 0000000000..71a4333334 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis4.baseline.jsonc @@ -0,0 +1,556 @@ +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = /*HIGHLIGHTS*/[|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// /*HIGHLIGHTS*/[|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// /*HIGHLIGHTS*/[|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => /*HIGHLIGHTS*/[|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if (/*HIGHLIGHTS*/[|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// /*HIGHLIGHTS*/[|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// /*HIGHLIGHTS*/[|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// /*HIGHLIGHTS*/[|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// /*HIGHLIGHTS*/[|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => /*HIGHLIGHTS*/[|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if (/*HIGHLIGHTS*/[|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// /*HIGHLIGHTS*/[|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } +// +// class A { +// public b = [|this|].method1; +// +// public method1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 62) skipped --- + +// --- (line: 66) skipped --- +// } +// +// private method2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// /*HIGHLIGHTS*/[|this|].this; +// } +// } +// function inside() { +// // --- (line: 82) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis5.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis5.baseline.jsonc new file mode 100644 index 0000000000..12d80173a7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThis5.baseline.jsonc @@ -0,0 +1,556 @@ +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = /*HIGHLIGHTS*/[|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// /*HIGHLIGHTS*/[|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// /*HIGHLIGHTS*/[|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => /*HIGHLIGHTS*/[|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if (/*HIGHLIGHTS*/[|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// /*HIGHLIGHTS*/[|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// /*HIGHLIGHTS*/[|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// /*HIGHLIGHTS*/[|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// /*HIGHLIGHTS*/[|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => /*HIGHLIGHTS*/[|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if (/*HIGHLIGHTS*/[|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// /*HIGHLIGHTS*/[|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThis5.ts === +// --- (line: 85) skipped --- +// } +// } +// +// public static staticB = [|this|].staticMethod1; +// +// public static staticMethod1() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// [|this|].this; +// } +// } +// function inside() { +// // --- (line: 104) skipped --- + +// --- (line: 108) skipped --- +// } +// +// private static staticMethod2() { +// [|this|]; +// [|this|]; +// () => [|this|]; +// () => { +// if ([|this|]) { +// [|this|]; +// } +// else { +// /*HIGHLIGHTS*/[|this|].this; +// } +// } +// function inside() { +// // --- (line: 124) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow.baseline.jsonc new file mode 100644 index 0000000000..b554a64c91 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow.baseline.jsonc @@ -0,0 +1,317 @@ +// === documentHighlights === +// === /getOccurrencesThrow.ts === +// --- (line: 5) skipped --- +// throw 10; +// } +// catch (x) { +// /*HIGHLIGHTS*/[|return|] 100; +// } +// finally { +// throw 10; +// } +// } +// catch (x) { +// [|throw|] "Something"; +// } +// finally { +// [|throw|] "Also something"; +// } +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 26) skipped --- + +// --- (line: 30) skipped --- +// })() || true; +// } +// +// [|throw|] 10; +// +// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) +// +// [|return|]; +// [|return|] true; +// [|throw|] false; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow.ts === +// --- (line: 5) skipped --- +// throw 10; +// } +// catch (x) { +// [|return|] 100; +// } +// finally { +// throw 10; +// } +// } +// catch (x) { +// /*HIGHLIGHTS*/[|throw|] "Something"; +// } +// finally { +// [|throw|] "Also something"; +// } +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 26) skipped --- + +// --- (line: 30) skipped --- +// })() || true; +// } +// +// [|throw|] 10; +// +// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) +// +// [|return|]; +// [|return|] true; +// [|throw|] false; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow.ts === +// --- (line: 5) skipped --- +// throw 10; +// } +// catch (x) { +// [|return|] 100; +// } +// finally { +// throw 10; +// } +// } +// catch (x) { +// [|throw|] "Something"; +// } +// finally { +// /*HIGHLIGHTS*/[|throw|] "Also something"; +// } +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 26) skipped --- + +// --- (line: 30) skipped --- +// })() || true; +// } +// +// [|throw|] 10; +// +// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) +// +// [|return|]; +// [|return|] true; +// [|throw|] false; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow.ts === +// --- (line: 5) skipped --- +// throw 10; +// } +// catch (x) { +// [|return|] 100; +// } +// finally { +// throw 10; +// } +// } +// catch (x) { +// [|throw|] "Something"; +// } +// finally { +// [|throw|] "Also something"; +// } +// if (a > 0) { +// /*HIGHLIGHTS*/[|return|] (function () { +// return; +// return; +// return; +// // --- (line: 26) skipped --- + +// --- (line: 30) skipped --- +// })() || true; +// } +// +// [|throw|] 10; +// +// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) +// +// [|return|]; +// [|return|] true; +// [|throw|] false; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow.ts === +// --- (line: 5) skipped --- +// throw 10; +// } +// catch (x) { +// [|return|] 100; +// } +// finally { +// throw 10; +// } +// } +// catch (x) { +// [|throw|] "Something"; +// } +// finally { +// [|throw|] "Also something"; +// } +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 26) skipped --- + +// --- (line: 30) skipped --- +// })() || true; +// } +// +// /*HIGHLIGHTS*/[|throw|] 10; +// +// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) +// +// [|return|]; +// [|return|] true; +// [|throw|] false; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow.ts === +// --- (line: 5) skipped --- +// throw 10; +// } +// catch (x) { +// [|return|] 100; +// } +// finally { +// throw 10; +// } +// } +// catch (x) { +// [|throw|] "Something"; +// } +// finally { +// [|throw|] "Also something"; +// } +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 26) skipped --- + +// --- (line: 30) skipped --- +// })() || true; +// } +// +// [|throw|] 10; +// +// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) +// +// /*HIGHLIGHTS*/[|return|]; +// [|return|] true; +// [|throw|] false; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow.ts === +// --- (line: 5) skipped --- +// throw 10; +// } +// catch (x) { +// [|return|] 100; +// } +// finally { +// throw 10; +// } +// } +// catch (x) { +// [|throw|] "Something"; +// } +// finally { +// [|throw|] "Also something"; +// } +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 26) skipped --- + +// --- (line: 30) skipped --- +// })() || true; +// } +// +// [|throw|] 10; +// +// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) +// +// [|return|]; +// /*HIGHLIGHTS*/[|return|] true; +// [|throw|] false; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow.ts === +// --- (line: 5) skipped --- +// throw 10; +// } +// catch (x) { +// [|return|] 100; +// } +// finally { +// throw 10; +// } +// } +// catch (x) { +// [|throw|] "Something"; +// } +// finally { +// [|throw|] "Also something"; +// } +// if (a > 0) { +// [|return|] (function () { +// return; +// return; +// return; +// // --- (line: 26) skipped --- + +// --- (line: 30) skipped --- +// })() || true; +// } +// +// [|throw|] 10; +// +// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) +// +// [|return|]; +// [|return|] true; +// /*HIGHLIGHTS*/[|throw|] false; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow2.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow2.baseline.jsonc new file mode 100644 index 0000000000..db010fa874 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow2.baseline.jsonc @@ -0,0 +1,12 @@ +// === documentHighlights === +// === /getOccurrencesThrow2.ts === +// function f(a: number) { +// try { +// throw "Hello"; +// +// try { +// /*HIGHLIGHTS*/[|throw|] 10; +// } +// catch (x) { +// return 100; +// // --- (line: 10) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow3.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow3.baseline.jsonc new file mode 100644 index 0000000000..86ca2055fc --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow3.baseline.jsonc @@ -0,0 +1,39 @@ +// === documentHighlights === +// === /getOccurrencesThrow3.ts === +// function f(a: number) { +// try { +// /*HIGHLIGHTS*/[|throw|] "Hello"; +// +// try { +// throw 10; +// } +// catch (x) { +// return 100; +// } +// finally { +// [|throw|] 10; +// } +// } +// catch (x) { +// // --- (line: 16) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThrow3.ts === +// function f(a: number) { +// try { +// [|throw|] "Hello"; +// +// try { +// throw 10; +// } +// catch (x) { +// return 100; +// } +// finally { +// /*HIGHLIGHTS*/[|throw|] 10; +// } +// } +// catch (x) { +// // --- (line: 16) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow4.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow4.baseline.jsonc new file mode 100644 index 0000000000..ffe619c700 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow4.baseline.jsonc @@ -0,0 +1,102 @@ +// === documentHighlights === +// === /getOccurrencesThrow4.ts === +// --- (line: 19) skipped --- +// } +// if (a > 0) { +// return (function () { +// /*HIGHLIGHTS*/[|return|]; +// [|return|]; +// [|return|]; +// +// if (false) { +// [|return|] true; +// } +// [|throw|] "Hello!"; +// })() || true; +// } +// +// // --- (line: 34) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThrow4.ts === +// --- (line: 19) skipped --- +// } +// if (a > 0) { +// return (function () { +// [|return|]; +// /*HIGHLIGHTS*/[|return|]; +// [|return|]; +// +// if (false) { +// [|return|] true; +// } +// [|throw|] "Hello!"; +// })() || true; +// } +// +// // --- (line: 34) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThrow4.ts === +// --- (line: 19) skipped --- +// } +// if (a > 0) { +// return (function () { +// [|return|]; +// [|return|]; +// /*HIGHLIGHTS*/[|return|]; +// +// if (false) { +// [|return|] true; +// } +// [|throw|] "Hello!"; +// })() || true; +// } +// +// // --- (line: 34) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThrow4.ts === +// --- (line: 19) skipped --- +// } +// if (a > 0) { +// return (function () { +// [|return|]; +// [|return|]; +// [|return|]; +// +// if (false) { +// /*HIGHLIGHTS*/[|return|] true; +// } +// [|throw|] "Hello!"; +// })() || true; +// } +// +// // --- (line: 34) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesThrow4.ts === +// --- (line: 19) skipped --- +// } +// if (a > 0) { +// return (function () { +// [|return|]; +// [|return|]; +// [|return|]; +// +// if (false) { +// [|return|] true; +// } +// /*HIGHLIGHTS*/[|throw|] "Hello!"; +// })() || true; +// } +// +// // --- (line: 34) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow5.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow5.baseline.jsonc new file mode 100644 index 0000000000..99dc8e9e67 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow5.baseline.jsonc @@ -0,0 +1,12 @@ +// === documentHighlights === +// === /getOccurrencesThrow5.ts === +// --- (line: 32) skipped --- +// +// throw 10; +// +// var unusued = [1, 2, 3, 4].map(x => { /*HIGHLIGHTS*/[|throw|] 4 }) +// +// return; +// return true; +// throw false; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow6.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow6.baseline.jsonc new file mode 100644 index 0000000000..9ffa80d02c --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow6.baseline.jsonc @@ -0,0 +1,51 @@ +// === documentHighlights === +// === /getOccurrencesThrow6.ts === +// /*HIGHLIGHTS*/[|throw|] 100; +// +// try { +// throw 0; +// var x = () => { throw 0; }; +// } +// catch (y) { +// var x = () => { throw 0; }; +// [|throw|] 200; +// } +// finally { +// [|throw|] 300; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow6.ts === +// [|throw|] 100; +// +// try { +// throw 0; +// var x = () => { throw 0; }; +// } +// catch (y) { +// var x = () => { throw 0; }; +// /*HIGHLIGHTS*/[|throw|] 200; +// } +// finally { +// [|throw|] 300; +// } + + + +// === documentHighlights === +// === /getOccurrencesThrow6.ts === +// [|throw|] 100; +// +// try { +// throw 0; +// var x = () => { throw 0; }; +// } +// catch (y) { +// var x = () => { throw 0; }; +// [|throw|] 200; +// } +// finally { +// /*HIGHLIGHTS*/[|throw|] 300; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow7.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow7.baseline.jsonc new file mode 100644 index 0000000000..ac78ae0dd3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow7.baseline.jsonc @@ -0,0 +1,112 @@ +// === documentHighlights === +// === /getOccurrencesThrow7.ts === +// try { +// /*HIGHLIGHTS*/[|throw|] 10; +// +// try { +// throw 10; +// } +// catch (x) { +// [|throw|] 10; +// } +// finally { +// [|throw|] 10; +// } +// } +// finally { +// [|throw|] 10; +// } +// +// [|throw|] 10; + + + +// === documentHighlights === +// === /getOccurrencesThrow7.ts === +// try { +// [|throw|] 10; +// +// try { +// throw 10; +// } +// catch (x) { +// /*HIGHLIGHTS*/[|throw|] 10; +// } +// finally { +// [|throw|] 10; +// } +// } +// finally { +// [|throw|] 10; +// } +// +// [|throw|] 10; + + + +// === documentHighlights === +// === /getOccurrencesThrow7.ts === +// try { +// [|throw|] 10; +// +// try { +// throw 10; +// } +// catch (x) { +// [|throw|] 10; +// } +// finally { +// /*HIGHLIGHTS*/[|throw|] 10; +// } +// } +// finally { +// [|throw|] 10; +// } +// +// [|throw|] 10; + + + +// === documentHighlights === +// === /getOccurrencesThrow7.ts === +// try { +// [|throw|] 10; +// +// try { +// throw 10; +// } +// catch (x) { +// [|throw|] 10; +// } +// finally { +// [|throw|] 10; +// } +// } +// finally { +// /*HIGHLIGHTS*/[|throw|] 10; +// } +// +// [|throw|] 10; + + + +// === documentHighlights === +// === /getOccurrencesThrow7.ts === +// try { +// [|throw|] 10; +// +// try { +// throw 10; +// } +// catch (x) { +// [|throw|] 10; +// } +// finally { +// [|throw|] 10; +// } +// } +// finally { +// [|throw|] 10; +// } +// +// /*HIGHLIGHTS*/[|throw|] 10; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow8.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow8.baseline.jsonc new file mode 100644 index 0000000000..64af032ca9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesThrow8.baseline.jsonc @@ -0,0 +1,11 @@ +// === documentHighlights === +// === /getOccurrencesThrow8.ts === +// try { +// throw 10; +// +// try { +// /*HIGHLIGHTS*/[|throw|] 10; +// } +// catch (x) { +// throw 10; +// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesYield.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesYield.baseline.jsonc new file mode 100644 index 0000000000..721e41c40c --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesYield.baseline.jsonc @@ -0,0 +1,33 @@ +// === documentHighlights === +// === /getOccurrencesYield.ts === +// function* f() { +// /*HIGHLIGHTS*/[|yield|] 100; +// [|yield|] [|yield|] 200; +// class Foo { +// *memberFunction() { +// return yield 1; +// // --- (line: 7) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesYield.ts === +// function* f() { +// [|yield|] 100; +// /*HIGHLIGHTS*/[|yield|] [|yield|] 200; +// class Foo { +// *memberFunction() { +// return yield 1; +// // --- (line: 7) skipped --- + + + +// === documentHighlights === +// === /getOccurrencesYield.ts === +// function* f() { +// [|yield|] 100; +// [|yield|] /*HIGHLIGHTS*/[|yield|] 200; +// class Foo { +// *memberFunction() { +// return yield 1; +// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getPropertySymbolsFromBaseTypesDoesntCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getPropertySymbolsFromBaseTypesDoesntCrash.baseline.jsonc new file mode 100644 index 0000000000..8a4bdb1ec2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/getPropertySymbolsFromBaseTypesDoesntCrash.baseline.jsonc @@ -0,0 +1,5 @@ +// === documentHighlights === +// === /file1.ts === +// class ClassA implements IInterface { +// private /*HIGHLIGHTS*/[|value|]: number; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/occurrences01.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/occurrences01.baseline.jsonc index e69de29bb2..55b9ef31ff 100644 --- a/testdata/baselines/reference/fourslash/documentHighlights/occurrences01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/documentHighlights/occurrences01.baseline.jsonc @@ -0,0 +1,81 @@ +// === documentHighlights === +// === /occurrences01.ts === +// foo: /*HIGHLIGHTS*/[|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 3: +// [|break|]; +// [|break|] foo; +// continue; +// continue foo; +// } + + + +// === documentHighlights === +// === /occurrences01.ts === +// foo: [|switch|] (10) { +// /*HIGHLIGHTS*/[|case|] 1: +// [|case|] 2: +// [|case|] 3: +// [|break|]; +// [|break|] foo; +// continue; +// continue foo; +// } + + + +// === documentHighlights === +// === /occurrences01.ts === +// foo: [|switch|] (10) { +// [|case|] 1: +// /*HIGHLIGHTS*/[|case|] 2: +// [|case|] 3: +// [|break|]; +// [|break|] foo; +// continue; +// continue foo; +// } + + + +// === documentHighlights === +// === /occurrences01.ts === +// foo: [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// /*HIGHLIGHTS*/[|case|] 3: +// [|break|]; +// [|break|] foo; +// continue; +// continue foo; +// } + + + +// === documentHighlights === +// === /occurrences01.ts === +// foo: [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 3: +// /*HIGHLIGHTS*/[|break|]; +// [|break|] foo; +// continue; +// continue foo; +// } + + + +// === documentHighlights === +// === /occurrences01.ts === +// foo: [|switch|] (10) { +// [|case|] 1: +// [|case|] 2: +// [|case|] 3: +// [|break|]; +// /*HIGHLIGHTS*/[|break|] foo; +// continue; +// continue foo; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/occurrences02.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/occurrences02.baseline.jsonc index e69de29bb2..642adeaae6 100644 --- a/testdata/baselines/reference/fourslash/documentHighlights/occurrences02.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/documentHighlights/occurrences02.baseline.jsonc @@ -0,0 +1,29 @@ +// === documentHighlights === +// === /occurrences02.ts === +// function /*HIGHLIGHTS*/[|f|](x: typeof [|f|]) { +// [|f|]([|f|]); +// } + + + +// === documentHighlights === +// === /occurrences02.ts === +// function [|f|](x: typeof /*HIGHLIGHTS*/[|f|]) { +// [|f|]([|f|]); +// } + + + +// === documentHighlights === +// === /occurrences02.ts === +// function [|f|](x: typeof [|f|]) { +// /*HIGHLIGHTS*/[|f|]([|f|]); +// } + + + +// === documentHighlights === +// === /occurrences02.ts === +// function [|f|](x: typeof [|f|]) { +// [|f|](/*HIGHLIGHTS*/[|f|]); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/renameDefaultImportDifferentName.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/renameDefaultImportDifferentName.baseline.jsonc new file mode 100644 index 0000000000..6d4f8ba8f7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/documentHighlights/renameDefaultImportDifferentName.baseline.jsonc @@ -0,0 +1,6 @@ +// === documentHighlights === +// === /B.ts === +// export default class /*HIGHLIGHTS*/[|C|] { +// test() { +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc new file mode 100644 index 0000000000..41dd664993 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /user.ts === +// import {/*FIND ALL REFS*/[|x|]} from "jquery"; + + + +// === findAllReferences === +// === /user2.ts === +// import {/*FIND ALL REFS*/[|x|]} from "jquery"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc new file mode 100644 index 0000000000..a1f16deccb --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/index.d.ts === +// declare class [|A|] { +// } +// //# sourceMappingURL=index.d.ts.map + +// === /home/src/workspaces/project/b/b.ts === +// /// +// new [|A|]/*FIND ALL REFS*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc new file mode 100644 index 0000000000..ee50558949 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /constructorFindAllReferences1.ts === +// export class C { +// /*FIND ALL REFS*/public [|constructor|]() { } +// public foo() { } +// } +// +// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc new file mode 100644 index 0000000000..a6c3c02e0f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /constructorFindAllReferences2.ts === +// export class C { +// /*FIND ALL REFS*/private [|constructor|]() { } +// public foo() { } +// } +// +// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc new file mode 100644 index 0000000000..79b101605b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /constructorFindAllReferences3.ts === +// export class C { +// /*FIND ALL REFS*/[|constructor|]() { } +// public foo() { } +// } +// +// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc new file mode 100644 index 0000000000..cf4ebb836b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /constructorFindAllReferences4.ts === +// export class C { +// /*FIND ALL REFS*/protected [|constructor|]() { } +// public foo() { } +// } +// +// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc new file mode 100644 index 0000000000..4d5f38434d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc @@ -0,0 +1,29 @@ +// === findAllReferences === +// === /abc.d.ts === +// declare module "a" { +// /*FIND ALL REFS*/export const x: number; +// } + + + +// === findAllReferences === +// === /abc.d.ts === +// declare module "a" { +// export const /*FIND ALL REFS*/[|x|]: number; +// } + +// === /b.ts === +// import a from "a"; +// a.[|x|]; + + + +// === findAllReferences === +// === /abc.d.ts === +// declare module "a" { +// export const [|x|]: number; +// } + +// === /b.ts === +// import a from "a"; +// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc new file mode 100644 index 0000000000..59537e30fd --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /a.d.ts === +// export as namespace abc; +// /*FIND ALL REFS*/export const x: number; + + + +// === findAllReferences === +// === /a.d.ts === +// export as namespace abc; +// export const /*FIND ALL REFS*/[|x|]: number; + +// === /b.ts === +// import a from "./a"; +// a.[|x|]; + + + +// === findAllReferences === +// === /a.d.ts === +// export as namespace abc; +// export const [|x|]: number; + +// === /b.ts === +// import a from "./a"; +// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc new file mode 100644 index 0000000000..dbb948be89 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /node_modules/react-hook-form/dist/index.d.ts === +// /// +// export type Foo = React.Whatever; +// export function useForm(): any; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc new file mode 100644 index 0000000000..33a4389032 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /findAllReferPropertyAccessExpressionHeritageClause.ts === +// class B {} +// function foo() { +// return {/*FIND ALL REFS*/[|B|]: B}; +// } +// class C extends (foo()).[|B|] {} +// class C1 extends foo().[|B|] {} + + + +// === findAllReferences === +// === /findAllReferPropertyAccessExpressionHeritageClause.ts === +// class B {} +// function foo() { +// return {[|B|]: B}; +// } +// class C extends (foo())./*FIND ALL REFS*/[|B|] {} +// class C1 extends foo().[|B|] {} + + + +// === findAllReferences === +// === /findAllReferPropertyAccessExpressionHeritageClause.ts === +// class B {} +// function foo() { +// return {[|B|]: B}; +// } +// class C extends (foo()).[|B|] {} +// class C1 extends foo()./*FIND ALL REFS*/[|B|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport1.baseline.jsonc new file mode 100644 index 0000000000..af501fac1d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport1.baseline.jsonc @@ -0,0 +1,29 @@ +// === findAllReferences === +// === /foo.ts === +// export function foo() { return "foo"; } +// /*FIND ALL REFS*/import("./foo") +// var x = import("./foo") + + + +// === findAllReferences === +// === /foo.ts === +// export function foo() { return "foo"; } +// import("/*FIND ALL REFS*/[|./foo|]") +// var x = import("[|./foo|]") + + + +// === findAllReferences === +// === /foo.ts === +// export function foo() { return "foo"; } +// import("./foo") +// /*FIND ALL REFS*/var [|x|] = import("./foo") + + + +// === findAllReferences === +// === /foo.ts === +// export function foo() { return "foo"; } +// import("[|./foo|]") +// var x = import("/*FIND ALL REFS*/[|./foo|]") \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc new file mode 100644 index 0000000000..eeeb1aa1ac --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc @@ -0,0 +1,17 @@ +// === findAllReferences === +// === /foo.ts === +// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.[|bar|](); +// }) + + + +// === findAllReferences === +// === /foo.ts === +// export function [|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo./*FIND ALL REFS*/[|bar|](); +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc new file mode 100644 index 0000000000..456169201b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /foo.ts === +// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } +// import('./foo').then(({ [|bar|] }) => undefined); + + + +// === findAllReferences === +// === /foo.ts === +// export function [|bar|]() { return "bar"; } +// import('./foo').then(({ /*FIND ALL REFS*/[|bar|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc new file mode 100644 index 0000000000..43a226d585 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /findAllReferencesFilteringMappedTypeProperty.ts === +// const obj = { /*FIND ALL REFS*/[|a|]: 1, b: 2 }; +// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; +// filtered.[|a|]; + + + +// === findAllReferences === +// === /findAllReferencesFilteringMappedTypeProperty.ts === +// const obj = { [|a|]: 1, b: 2 }; +// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { /*FIND ALL REFS*/[|a|]: 0 }; +// filtered.[|a|]; + + + +// === findAllReferences === +// === /findAllReferencesFilteringMappedTypeProperty.ts === +// const obj = { [|a|]: 1, b: 2 }; +// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; +// filtered./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc new file mode 100644 index 0000000000..408f4e9f88 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /findAllReferencesFromLinkTagReference1.ts === +// enum E { +// /** {@link /*FIND ALL REFS*/[|A|]} */ +// [|A|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc new file mode 100644 index 0000000000..d13a60bfb3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /a.ts === +// enum E { +// /** {@link /*FIND ALL REFS*/[|Foo|]} */ +// [|Foo|] +// } +// interface Foo { +// foo: E.[|Foo|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc new file mode 100644 index 0000000000..a47fd93b30 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /a.ts === +// interface Foo { +// foo: E.[|Foo|]; +// } + +// === /b.ts === +// enum E { +// /** {@link /*FIND ALL REFS*/[|Foo|]} */ +// [|Foo|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc new file mode 100644 index 0000000000..910ac924e3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /findAllReferencesFromLinkTagReference4.ts === +// enum E { +// /** {@link /*FIND ALL REFS*/[|B|]} */ +// A, +// [|B|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc new file mode 100644 index 0000000000..03866a1e00 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /findAllReferencesFromLinkTagReference5.ts === +// enum E { +// /** {@link E./*FIND ALL REFS*/[|A|]} */ +// [|A|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc new file mode 100644 index 0000000000..f0113af254 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /findAllReferencesImportMeta.ts === +// // Haha that's so meta! +// +// let x = import.[|meta|]/*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc new file mode 100644 index 0000000000..31ac7af7f7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /Foo.js === +// /** @type {function (/*FIND ALL REFS*/new: string, string): string} */ +// var f; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc new file mode 100644 index 0000000000..7746e07493 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /Foo.js === +// /** @type {function (this: string, string): string} */ +// var f = function (s) { return /*FIND ALL REFS*/[|this|] + s; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc new file mode 100644 index 0000000000..5d43200755 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /foo.js === +// /** +// * @param {object} o - very important! +// * @param {string} o.x - a thing, its ok +// * @param {number} o.y - another thing +// * @param {Object} o.nested - very nested +// * @param {boolean} o.nested./*FIND ALL REFS*/great - much greatness +// * @param {number} o.nested.times - twice? probably!?? +// */ +// function f(o) { return o.nested.great; } + + + +// === findAllReferences === +// === /foo.js === +// --- (line: 5) skipped --- +// * @param {boolean} o.nested.great - much greatness +// * @param {number} o.nested.times - twice? probably!?? +// */ +// function f(o) { return o.nested./*FIND ALL REFS*/[|great|]; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..75ac5ac896 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc @@ -0,0 +1,17 @@ +// === findAllReferences === +// === /foo.js === +// /** +// * @overload +// * @param {number} [|x|] +// * @returns {number} +// * +// * @overload +// * @param {string} [|x|] +// * @returns {string} +// * +// * @param {unknown} [|x|] +// * @returns {unknown} +// */ +// function foo([|x|]/*FIND ALL REFS*/) { +// return [|x|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc new file mode 100644 index 0000000000..bf269035c5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /bar.js === +// const { /*FIND ALL REFS*/[|foo|]: bar } = require('./foo'); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc new file mode 100644 index 0000000000..cb07e32a56 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /Y.js === +// const { /*FIND ALL REFS*/[|x|]: { y } } = require("./X"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc new file mode 100644 index 0000000000..8db971a964 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc @@ -0,0 +1,208 @@ +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === +// class C { +// [|m|]/*FIND ALL REFS*/() { } +// n = 1 +// static s() { } +// /** +// * {@link [|m|]} +// * @see {[|m|]} +// * {@link C.[|m|]} +// * @see {C.[|m|]} +// * {@link C#[|m|]} +// * @see {C#[|m|]} +// * {@link C.prototype.[|m|]} +// * @see {C.prototype.[|m|]} +// */ +// p() { } +// /** +// // --- (line: 17) skipped --- + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === +// class C { +// m() { } +// [|n|]/*FIND ALL REFS*/ = 1 +// static s() { } +// /** +// * {@link m} +// // --- (line: 7) skipped --- + +// --- (line: 13) skipped --- +// */ +// p() { } +// /** +// * {@link [|n|]} +// * @see {[|n|]} +// * {@link C.[|n|]} +// * @see {C.[|n|]} +// * {@link C#[|n|]} +// * @see {C#[|n|]} +// * {@link C.prototype.[|n|]} +// * @see {C.prototype.[|n|]} +// */ +// q() { } +// /** +// // --- (line: 28) skipped --- + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === +// class C { +// m() { } +// n = 1 +// static [|s|]/*FIND ALL REFS*/() { } +// /** +// * {@link m} +// * @see {m} +// // --- (line: 8) skipped --- + +// --- (line: 24) skipped --- +// */ +// q() { } +// /** +// * {@link [|s|]} +// * @see {[|s|]} +// * {@link C.[|s|]} +// * @see {C.[|s|]} +// */ +// r() { } +// } +// // --- (line: 35) skipped --- + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === +// --- (line: 33) skipped --- +// } +// +// interface I { +// [|a|]/*FIND ALL REFS*/() +// b: 1 +// /** +// * {@link [|a|]} +// * @see {[|a|]} +// * {@link I.[|a|]} +// * @see {I.[|a|]} +// * {@link I#[|a|]} +// * @see {I#[|a|]} +// */ +// c() +// /** +// // --- (line: 49) skipped --- + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === +// --- (line: 34) skipped --- +// +// interface I { +// a() +// [|b|]/*FIND ALL REFS*/: 1 +// /** +// * {@link a} +// * @see {a} +// // --- (line: 42) skipped --- + +// --- (line: 45) skipped --- +// */ +// c() +// /** +// * {@link [|b|]} +// * @see {[|b|]} +// * {@link I.[|b|]} +// * @see {I.[|b|]} +// */ +// d() +// } +// // --- (line: 56) skipped --- + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === +// --- (line: 54) skipped --- +// } +// +// function nestor() { +// /** {@link [|r2|]} */ +// function ref() { } +// /** @see {[|r2|]} */ +// function d3() { } +// function [|r2|]/*FIND ALL REFS*/() { } +// } + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === +// class [|C|]/*FIND ALL REFS*/ { +// m() { } +// n = 1 +// static s() { } +// /** +// * {@link m} +// * @see {m} +// * {@link [|C|].m} +// * @see {[|C|].m} +// * {@link [|C|]#m} +// * @see {[|C|]#m} +// * {@link [|C|].prototype.m} +// * @see {[|C|].prototype.m} +// */ +// p() { } +// /** +// * {@link n} +// * @see {n} +// * {@link [|C|].n} +// * @see {[|C|].n} +// * {@link [|C|]#n} +// * @see {[|C|]#n} +// * {@link [|C|].prototype.n} +// * @see {[|C|].prototype.n} +// */ +// q() { } +// /** +// * {@link s} +// * @see {s} +// * {@link [|C|].s} +// * @see {[|C|].s} +// */ +// r() { } +// } +// // --- (line: 35) skipped --- + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === +// --- (line: 32) skipped --- +// r() { } +// } +// +// interface [|I|]/*FIND ALL REFS*/ { +// a() +// b: 1 +// /** +// * {@link a} +// * @see {a} +// * {@link [|I|].a} +// * @see {[|I|].a} +// * {@link [|I|]#a} +// * @see {[|I|]#a} +// */ +// c() +// /** +// * {@link b} +// * @see {b} +// * {@link [|I|].b} +// * @see {[|I|].b} +// */ +// d() +// } +// // --- (line: 56) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc new file mode 100644 index 0000000000..164c894c14 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc @@ -0,0 +1,138 @@ +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === +// namespace NPR { +// export class Consider { +// This = class { +// show() { } +// } +// [|m|]/*FIND ALL REFS*/() { } +// } +// /** +// * @see {Consider.prototype.[|m|]} +// * {@link Consider#[|m|]} +// * @see {Consider#This#show} +// * {@link Consider.This.show} +// * @see {NPR.Consider#This#show} +// // --- (line: 14) skipped --- + + + +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === +// namespace NPR { +// export class Consider { +// This = class { +// [|show|]/*FIND ALL REFS*/() { } +// } +// m() { } +// } +// /** +// * @see {Consider.prototype.m} +// * {@link Consider#m} +// * @see {Consider#This#[|show|]} +// * {@link Consider.This.[|show|]} +// * @see {NPR.Consider#This#[|show|]} +// * {@link NPR.Consider.This#[|show|]} +// * @see {NPR.Consider#This.show} # doesn't parse trailing . +// * @see {NPR.Consider.This.[|show|]} +// */ +// export function ref() { } +// } +// /** +// * {@link NPR.Consider#This#[|show|] hello hello} +// * {@link NPR.Consider.This#[|show|]} +// * @see {NPR.Consider#This.show} # doesn't parse trailing . +// * @see {NPR.Consider.This.[|show|]} +// */ +// export function outerref() { } + + + +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === +// namespace NPR { +// export class Consider { +// [|This|]/*FIND ALL REFS*/ = class { +// show() { } +// } +// m() { } +// } +// /** +// * @see {Consider.prototype.m} +// * {@link Consider#m} +// * @see {Consider#[|This|]#show} +// * {@link Consider.[|This|].show} +// * @see {NPR.Consider#[|This|]#show} +// * {@link NPR.Consider.[|This|]#show} +// * @see {NPR.Consider#[|This|].show} # doesn't parse trailing . +// * @see {NPR.Consider.[|This|].show} +// */ +// export function ref() { } +// } +// /** +// * {@link NPR.Consider#[|This|]#show hello hello} +// * {@link NPR.Consider.[|This|]#show} +// * @see {NPR.Consider#[|This|].show} # doesn't parse trailing . +// * @see {NPR.Consider.[|This|].show} +// */ +// export function outerref() { } + + + +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === +// namespace NPR { +// export class [|Consider|]/*FIND ALL REFS*/ { +// This = class { +// show() { } +// } +// m() { } +// } +// /** +// * @see {[|Consider|].prototype.m} +// * {@link [|Consider|]#m} +// * @see {[|Consider|]#This#show} +// * {@link [|Consider|].This.show} +// * @see {NPR.[|Consider|]#This#show} +// * {@link NPR.[|Consider|].This#show} +// * @see {NPR.[|Consider|]#This.show} # doesn't parse trailing . +// * @see {NPR.[|Consider|].This.show} +// */ +// export function ref() { } +// } +// /** +// * {@link NPR.[|Consider|]#This#show hello hello} +// * {@link NPR.[|Consider|].This#show} +// * @see {NPR.[|Consider|]#This.show} # doesn't parse trailing . +// * @see {NPR.[|Consider|].This.show} +// */ +// export function outerref() { } + + + +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === +// namespace [|NPR|]/*FIND ALL REFS*/ { +// export class Consider { +// This = class { +// show() { } +// // --- (line: 5) skipped --- + +// --- (line: 9) skipped --- +// * {@link Consider#m} +// * @see {Consider#This#show} +// * {@link Consider.This.show} +// * @see {[|NPR|].Consider#This#show} +// * {@link [|NPR|].Consider.This#show} +// * @see {[|NPR|].Consider#This.show} # doesn't parse trailing . +// * @see {[|NPR|].Consider.This.show} +// */ +// export function ref() { } +// } +// /** +// * {@link [|NPR|].Consider#This#show hello hello} +// * {@link [|NPR|].Consider.This#show} +// * @see {[|NPR|].Consider#This.show} # doesn't parse trailing . +// * @see {[|NPR|].Consider.This.show} +// */ +// export function outerref() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc new file mode 100644 index 0000000000..37e0a9e126 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc @@ -0,0 +1,138 @@ +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === +// namespace NPR { +// export class Consider { +// This = class { +// show() { } +// } +// [|m|]/*FIND ALL REFS*/() { } +// } +// /** +// * {@linkcode Consider.prototype.[|m|]} +// * {@linkplain Consider#[|m|]} +// * {@linkcode Consider#This#show} +// * {@linkplain Consider.This.show} +// * {@linkcode NPR.Consider#This#show} +// // --- (line: 14) skipped --- + + + +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === +// namespace NPR { +// export class Consider { +// This = class { +// [|show|]/*FIND ALL REFS*/() { } +// } +// m() { } +// } +// /** +// * {@linkcode Consider.prototype.m} +// * {@linkplain Consider#m} +// * {@linkcode Consider#This#[|show|]} +// * {@linkplain Consider.This.[|show|]} +// * {@linkcode NPR.Consider#This#[|show|]} +// * {@linkplain NPR.Consider.This#[|show|]} +// * {@linkcode NPR.Consider#This.show} # doesn't parse trailing . +// * {@linkcode NPR.Consider.This.[|show|]} +// */ +// export function ref() { } +// } +// /** +// * {@linkplain NPR.Consider#This#[|show|] hello hello} +// * {@linkplain NPR.Consider.This#[|show|]} +// * {@linkcode NPR.Consider#This.show} # doesn't parse trailing . +// * {@linkcode NPR.Consider.This.[|show|]} +// */ +// export function outerref() { } + + + +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === +// namespace NPR { +// export class Consider { +// [|This|]/*FIND ALL REFS*/ = class { +// show() { } +// } +// m() { } +// } +// /** +// * {@linkcode Consider.prototype.m} +// * {@linkplain Consider#m} +// * {@linkcode Consider#[|This|]#show} +// * {@linkplain Consider.[|This|].show} +// * {@linkcode NPR.Consider#[|This|]#show} +// * {@linkplain NPR.Consider.[|This|]#show} +// * {@linkcode NPR.Consider#[|This|].show} # doesn't parse trailing . +// * {@linkcode NPR.Consider.[|This|].show} +// */ +// export function ref() { } +// } +// /** +// * {@linkplain NPR.Consider#[|This|]#show hello hello} +// * {@linkplain NPR.Consider.[|This|]#show} +// * {@linkcode NPR.Consider#[|This|].show} # doesn't parse trailing . +// * {@linkcode NPR.Consider.[|This|].show} +// */ +// export function outerref() { } + + + +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === +// namespace NPR { +// export class [|Consider|]/*FIND ALL REFS*/ { +// This = class { +// show() { } +// } +// m() { } +// } +// /** +// * {@linkcode [|Consider|].prototype.m} +// * {@linkplain [|Consider|]#m} +// * {@linkcode [|Consider|]#This#show} +// * {@linkplain [|Consider|].This.show} +// * {@linkcode NPR.[|Consider|]#This#show} +// * {@linkplain NPR.[|Consider|].This#show} +// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing . +// * {@linkcode NPR.[|Consider|].This.show} +// */ +// export function ref() { } +// } +// /** +// * {@linkplain NPR.[|Consider|]#This#show hello hello} +// * {@linkplain NPR.[|Consider|].This#show} +// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing . +// * {@linkcode NPR.[|Consider|].This.show} +// */ +// export function outerref() { } + + + +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === +// namespace [|NPR|]/*FIND ALL REFS*/ { +// export class Consider { +// This = class { +// show() { } +// // --- (line: 5) skipped --- + +// --- (line: 9) skipped --- +// * {@linkplain Consider#m} +// * {@linkcode Consider#This#show} +// * {@linkplain Consider.This.show} +// * {@linkcode [|NPR|].Consider#This#show} +// * {@linkplain [|NPR|].Consider.This#show} +// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . +// * {@linkcode [|NPR|].Consider.This.show} +// */ +// export function ref() { } +// } +// /** +// * {@linkplain [|NPR|].Consider#This#show hello hello} +// * {@linkplain [|NPR|].Consider.This#show} +// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . +// * {@linkcode [|NPR|].Consider.This.show} +// */ +// export function outerref() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc new file mode 100644 index 0000000000..e3ba1d5b6a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /bar.ts === +// import { [|Foo|]/*FIND ALL REFS*/ } from "./foo"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc new file mode 100644 index 0000000000..fc41d645a1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc @@ -0,0 +1,105 @@ +// === findAllReferences === +// === /a.ts === +// export class C { +// /*FIND ALL REFS*/[|constructor|](n: number); +// [|constructor|](); +// [|constructor|](n?: number){} +// static f() { +// this.f(); +// new [|this|](); +// } +// } +// new [|C|](); +// const D = C; +// new D(); + +// === /b.ts === +// import { C } from "./a"; +// new [|C|](); + +// === /c.ts === +// import { C } from "./a"; +// class D extends C { +// constructor() { +// [|super|](); +// super.method(); +// } +// method() { super(); } +// // --- (line: 8) skipped --- + +// === /d.ts === +// import * as a from "./a"; +// new a.C(); +// class d extends a.C { constructor() { [|super|](); } + + + +// === findAllReferences === +// === /a.ts === +// export class C { +// [|constructor|](n: number); +// /*FIND ALL REFS*/[|constructor|](); +// [|constructor|](n?: number){} +// static f() { +// this.f(); +// new [|this|](); +// } +// } +// new [|C|](); +// const D = C; +// new D(); + +// === /b.ts === +// import { C } from "./a"; +// new [|C|](); + +// === /c.ts === +// import { C } from "./a"; +// class D extends C { +// constructor() { +// [|super|](); +// super.method(); +// } +// method() { super(); } +// // --- (line: 8) skipped --- + +// === /d.ts === +// import * as a from "./a"; +// new a.C(); +// class d extends a.C { constructor() { [|super|](); } + + + +// === findAllReferences === +// === /a.ts === +// export class C { +// [|constructor|](n: number); +// [|constructor|](); +// /*FIND ALL REFS*/[|constructor|](n?: number){} +// static f() { +// this.f(); +// new [|this|](); +// } +// } +// new [|C|](); +// const D = C; +// new D(); + +// === /b.ts === +// import { C } from "./a"; +// new [|C|](); + +// === /c.ts === +// import { C } from "./a"; +// class D extends C { +// constructor() { +// [|super|](); +// super.method(); +// } +// method() { super(); } +// // --- (line: 8) skipped --- + +// === /d.ts === +// import * as a from "./a"; +// new a.C(); +// class d extends a.C { constructor() { [|super|](); } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc new file mode 100644 index 0000000000..9947e3cb5d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc @@ -0,0 +1,15 @@ +// === findAllReferences === +// === /findAllReferencesOfConstructor_badOverload.ts === +// class C { +// /*FIND ALL REFS*/[|constructor|](n: number); +// [|constructor|](){} +// } + + + +// === findAllReferences === +// === /findAllReferencesOfConstructor_badOverload.ts === +// class C { +// [|constructor|](n: number); +// /*FIND ALL REFS*/[|constructor|](){} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc new file mode 100644 index 0000000000..2560521003 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /foo.ts === +// /*FIND ALL REFS*/import [|settings|] from "./settings.json"; +// [|settings|]; + + + +// === findAllReferences === +// === /foo.ts === +// import /*FIND ALL REFS*/[|settings|] from "./settings.json"; +// [|settings|]; + + + +// === findAllReferences === +// === /foo.ts === +// import [|settings|] from "./settings.json"; +// /*FIND ALL REFS*/[|settings|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesTripleSlash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesTripleSlash.baseline.jsonc new file mode 100644 index 0000000000..952ecb8e3b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesTripleSlash.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /a.ts === +// /// +// /// + + + +// === findAllReferences === +// === /a.ts === +// /// +// /// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUmdModuleAsGlobalConst.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUmdModuleAsGlobalConst.baseline.jsonc new file mode 100644 index 0000000000..63169a81fa --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUmdModuleAsGlobalConst.baseline.jsonc @@ -0,0 +1,39 @@ +// === findAllReferences === +// === /node_modules/@types/three/index.d.ts === +// export * from "./three-core"; +// export as namespace /*FIND ALL REFS*/[|THREE|]; + + + +// === findAllReferences === +// === /typings/global.d.ts === +// import * as _THREE from '/*FIND ALL REFS*/[|three|]'; +// declare global { +// const THREE: typeof _THREE; +// } + + + +// === findAllReferences === +// === /src/index.ts === +// export const a = {}; +// let v = new [|THREE|].Vector2(); + +// === /typings/global.d.ts === +// import * as _THREE from 'three'; +// declare global { +// const /*FIND ALL REFS*/[|THREE|]: typeof _THREE; +// } + + + +// === findAllReferences === +// === /src/index.ts === +// export const a = {}; +// let v = new /*FIND ALL REFS*/[|THREE|].Vector2(); + +// === /typings/global.d.ts === +// import * as _THREE from 'three'; +// declare global { +// const [|THREE|]: typeof _THREE; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc new file mode 100644 index 0000000000..da1581a151 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/[|undefined|]; +// +// void [|undefined|]; + +// === /b.ts === +// [|undefined|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc new file mode 100644 index 0000000000..4282a2d249 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /findAllRefsBadImport.ts === +// import { /*FIND ALL REFS*/ab as cd } from "doesNotExist"; + + + +// === findAllReferences === +// === /findAllRefsBadImport.ts === +// import { ab as /*FIND ALL REFS*/[|cd|] } from "doesNotExist"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc new file mode 100644 index 0000000000..c9c57b48c4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc @@ -0,0 +1,15 @@ +// === findAllReferences === +// === /findAllRefsCatchClause.ts === +// try { } +// catch (/*FIND ALL REFS*/[|err|]) { +// [|err|]; +// } + + + +// === findAllReferences === +// === /findAllRefsCatchClause.ts === +// try { } +// catch ([|err|]) { +// /*FIND ALL REFS*/[|err|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc new file mode 100644 index 0000000000..29550fa58b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc @@ -0,0 +1,45 @@ +// === findAllReferences === +// === /a.ts === +// export = class /*FIND ALL REFS*/[|A|] { +// m() { [|A|]; } +// }; + +// === /b.ts === +// import [|A|] = require("./a"); +// [|A|]; + + + +// === findAllReferences === +// === /a.ts === +// export = class [|A|] { +// m() { /*FIND ALL REFS*/[|A|]; } +// }; + +// === /b.ts === +// import [|A|] = require("./a"); +// [|A|]; + + + +// === findAllReferences === +// === /a.ts === +// export = class [|A|] { +// m() { [|A|]; } +// }; + +// === /b.ts === +// import /*FIND ALL REFS*/[|A|] = require("./a"); +// [|A|]; + + + +// === findAllReferences === +// === /a.ts === +// export = class [|A|] { +// m() { [|A|]; } +// }; + +// === /b.ts === +// import [|A|] = require("./a"); +// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc new file mode 100644 index 0000000000..28ff6fba96 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc @@ -0,0 +1,17 @@ +// === findAllReferences === +// === /a.js === +// module.exports = class /*FIND ALL REFS*/[|A|] {}; + + + +// === findAllReferences === +// === /b.js === +// import /*FIND ALL REFS*/[|A|] = require("./a"); +// [|A|]; + + + +// === findAllReferences === +// === /b.js === +// import [|A|] = require("./a"); +// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc new file mode 100644 index 0000000000..f5cf4ae9a5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /a.js === +// exports./*FIND ALL REFS*/[|A|] = class {}; + +// === /b.js === +// import { [|A|] } from "./a"; +// [|A|]; + + + +// === findAllReferences === +// === /a.js === +// exports.[|A|] = class {}; + +// === /b.js === +// import { /*FIND ALL REFS*/[|A|] } from "./a"; +// [|A|]; + + + +// === findAllReferences === +// === /a.js === +// exports.[|A|] = class {}; + +// === /b.js === +// import { [|A|] } from "./a"; +// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc new file mode 100644 index 0000000000..d2862f3610 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc @@ -0,0 +1,34 @@ +// === findAllReferences === +// === /findAllRefsClassStaticBlocks.ts === +// class ClassStaticBocks { +// static x; +// /*FIND ALL REFS*/[|static|] {} +// static y; +// static {} +// static y; +// static {} +// } + + + +// === findAllReferences === +// === /findAllRefsClassStaticBlocks.ts === +// class ClassStaticBocks { +// static x; +// static {} +// static y; +// /*FIND ALL REFS*/[|static|] {} +// static y; +// static {} +// } + + + +// === findAllReferences === +// === /findAllRefsClassStaticBlocks.ts === +// --- (line: 3) skipped --- +// static y; +// static {} +// static y; +// /*FIND ALL REFS*/[|static|] {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc new file mode 100644 index 0000000000..62eab0f718 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -0,0 +1,45 @@ +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === +// class /*FIND ALL REFS*/[|C|] { +// static s() { +// [|this|]; +// } +// static get f() { +// return [|this|]; +// +// function inner() { this; } +// class Inner { x = this; } +// } +// } + + + +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === +// class C { +// static s() { +// /*FIND ALL REFS*/[|this|]; +// } +// static get f() { +// return [|this|]; +// +// function inner() { this; } +// class Inner { x = this; } +// } +// } + + + +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === +// class C { +// static s() { +// [|this|]; +// } +// static get f() { +// return /*FIND ALL REFS*/[|this|]; +// +// function inner() { this; } +// class Inner { x = this; } +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire.baseline.jsonc new file mode 100644 index 0000000000..9cefb6e7a4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /a.js === +// function [|f|]() { } +// export { f } + +// === /b.js === +// const { [|f|] } = require('./a') +// /*FIND ALL REFS*/[|f|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire2.baseline.jsonc new file mode 100644 index 0000000000..7e46109e4b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire2.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /a.js === +// function f() { } +// module.exports.[|f|] = f + +// === /b.js === +// const { [|f|] } = require('./a') +// /*FIND ALL REFS*/[|f|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire3.baseline.jsonc new file mode 100644 index 0000000000..16838bc5b6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCommonJsRequire3.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /b.js === +// const { [|f|] } = require('./a') +// /*FIND ALL REFS*/[|f|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc new file mode 100644 index 0000000000..49d198d629 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc @@ -0,0 +1,55 @@ +// === findAllReferences === +// === /a.js === +// function f() { +// /*FIND ALL REFS*/[|this|].x = 0; +// } +// f.prototype.setX = function() { +// this.x = 1; +// } +// f.prototype.useX = function() { this.x; } + + + +// === findAllReferences === +// === /a.js === +// function f() { +// this./*FIND ALL REFS*/x = 0; +// } +// f.prototype.setX = function() { +// this.x = 1; +// } +// f.prototype.useX = function() { this.x; } + + + +// === findAllReferences === +// === /a.js === +// function f() { +// this.x = 0; +// } +// f.prototype.setX = function() { +// /*FIND ALL REFS*/[|this|].x = 1; +// } +// f.prototype.useX = function() { this.x; } + + + +// === findAllReferences === +// === /a.js === +// function f() { +// this.x = 0; +// } +// f.prototype.setX = function() { +// this./*FIND ALL REFS*/x = 1; +// } +// f.prototype.useX = function() { this.x; } + + + +// === findAllReferences === +// === /a.js === +// --- (line: 3) skipped --- +// f.prototype.setX = function() { +// this.x = 1; +// } +// f.prototype.useX = function() { this./*FIND ALL REFS*/x; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc new file mode 100644 index 0000000000..4b37e613d9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /findAllRefsDeclareClass.ts === +// /*FIND ALL REFS*/declare class [|C|] { +// static m(): void; +// } + + + +// === findAllReferences === +// === /findAllRefsDeclareClass.ts === +// declare class /*FIND ALL REFS*/[|C|] { +// static m(): void; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc new file mode 100644 index 0000000000..bbefa6332d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc @@ -0,0 +1,15 @@ +// === findAllReferences === +// === /a.ts === +// export default function /*FIND ALL REFS*/[|a|]() {} + +// === /b.ts === +// import [|a|], * as ns from "./a"; + + + +// === findAllReferences === +// === /a.ts === +// export default function [|a|]() {} + +// === /b.ts === +// import /*FIND ALL REFS*/[|a|], * as ns from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc new file mode 100644 index 0000000000..14c7bebeaf --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /findAllRefsDefinition.ts === +// const /*FIND ALL REFS*/[|x|] = 0; +// [|x|]; + + + +// === findAllReferences === +// === /findAllRefsDefinition.ts === +// const [|x|] = 0; +// /*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc new file mode 100644 index 0000000000..271c0e841d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc @@ -0,0 +1,17 @@ +// === findAllReferences === +// === /findAllRefsDestructureGeneric.ts === +// interface I { +// /*FIND ALL REFS*/[|x|]: boolean; +// } +// declare const i: I; +// const { [|x|] } = i; + + + +// === findAllReferences === +// === /findAllRefsDestructureGeneric.ts === +// interface I { +// [|x|]: boolean; +// } +// declare const i: I; +// const { /*FIND ALL REFS*/[|x|] } = i; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc new file mode 100644 index 0000000000..ba0f7fb3b3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc @@ -0,0 +1,69 @@ +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === +// class Test { +// get /*FIND ALL REFS*/[|x|]() { return 0; } +// +// set y(a: number) {} +// } +// const { [|x|], y } = new Test(); +// x; y; + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === +// class Test { +// get [|x|]() { return 0; } +// +// set y(a: number) {} +// } +// const { /*FIND ALL REFS*/[|x|], y } = new Test(); +// [|x|]; y; + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === +// class Test { +// get x() { return 0; } +// +// set y(a: number) {} +// } +// const { [|x|], y } = new Test(); +// /*FIND ALL REFS*/[|x|]; y; + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === +// class Test { +// get x() { return 0; } +// +// set /*FIND ALL REFS*/[|y|](a: number) {} +// } +// const { x, [|y|] } = new Test(); +// x; y; + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === +// class Test { +// get x() { return 0; } +// +// set [|y|](a: number) {} +// } +// const { x, /*FIND ALL REFS*/[|y|] } = new Test(); +// x; [|y|]; + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === +// class Test { +// get x() { return 0; } +// +// set y(a: number) {} +// } +// const { x, [|y|] } = new Test(); +// x; /*FIND ALL REFS*/[|y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc new file mode 100644 index 0000000000..4bd7d96f89 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /findAllRefsEnumAsNamespace.ts === +// /*FIND ALL REFS*/enum [|E|] { A } +// let e: [|E|].A; + + + +// === findAllReferences === +// === /findAllRefsEnumAsNamespace.ts === +// enum /*FIND ALL REFS*/[|E|] { A } +// let e: [|E|].A; + + + +// === findAllReferences === +// === /findAllRefsEnumAsNamespace.ts === +// enum [|E|] { A } +// let e: /*FIND ALL REFS*/[|E|].A; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc new file mode 100644 index 0000000000..caca53e1d7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /findAllRefsEnumMember.ts === +// enum E { /*FIND ALL REFS*/[|A|], B } +// const e: E.[|A|] = E.[|A|]; + + + +// === findAllReferences === +// === /findAllRefsEnumMember.ts === +// enum E { [|A|], B } +// const e: E./*FIND ALL REFS*/[|A|] = E.[|A|]; + + + +// === findAllReferences === +// === /findAllRefsEnumMember.ts === +// enum E { [|A|], B } +// const e: E.[|A|] = E./*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc new file mode 100644 index 0000000000..e745202e15 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc @@ -0,0 +1,17 @@ +// === findAllReferences === +// === /a.ts === +// class C {} +// export const /*FIND ALL REFS*/[|D|] = C; + +// === /b.ts === +// import { [|D|] } from "./a"; + + + +// === findAllReferences === +// === /a.ts === +// class C {} +// export const [|D|] = C; + +// === /b.ts === +// import { /*FIND ALL REFS*/[|D|] } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc new file mode 100644 index 0000000000..af95e7e1a7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /findAllRefsExportDefaultClassConstructor.ts === +// export default class { +// /*FIND ALL REFS*/constructor() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportEquals.baseline.jsonc new file mode 100644 index 0000000000..bc114597e4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportEquals.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /a.ts === +// type /*FIND ALL REFS*/[|T|] = number; +// export = T; + + + +// === findAllReferences === +// === /a.ts === +// type T = number; +// /*FIND ALL REFS*/export = [|T|]; + +// === /b.ts === +// import [|T|] = require("./a"); + + + +// === findAllReferences === +// === /a.ts === +// type T = number; +// export = /*FIND ALL REFS*/[|T|]; + +// === /b.ts === +// import [|T|] = require("./a"); + + + +// === findAllReferences === +// === /a.ts === +// type [|T|] = number; +// export = [|T|]; + +// === /b.ts === +// import /*FIND ALL REFS*/[|T|] = require("./a"); + + + +// === findAllReferences === +// === /a.ts === +// type [|T|] = number; +// [|export|] = [|T|]; + +// === /b.ts === +// import [|T|] = require("/*FIND ALL REFS*/[|./a|]"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc new file mode 100644 index 0000000000..3341d80afa --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /findAllRefsExportNotAtTopLevel.ts === +// { +// /*FIND ALL REFS*/export const x = 0; +// x; +// } + + + +// === findAllReferences === +// === /findAllRefsExportNotAtTopLevel.ts === +// { +// export const /*FIND ALL REFS*/[|x|] = 0; +// [|x|]; +// } + + + +// === findAllReferences === +// === /findAllRefsExportNotAtTopLevel.ts === +// { +// export const [|x|] = 0; +// /*FIND ALL REFS*/[|x|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc new file mode 100644 index 0000000000..11fe2e4161 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc @@ -0,0 +1,45 @@ +// === findAllReferences === +// === /findAllRefsForComputedProperties.ts === +// interface I { +// ["/*FIND ALL REFS*/[|prop1|]"]: () => void; +// } +// +// class C implements I { +// ["[|prop1|]"]: any; +// } +// +// var x: I = { +// ["[|prop1|]"]: function () { }, +// } + + + +// === findAllReferences === +// === /findAllRefsForComputedProperties.ts === +// interface I { +// ["[|prop1|]"]: () => void; +// } +// +// class C implements I { +// ["/*FIND ALL REFS*/[|prop1|]"]: any; +// } +// +// var x: I = { +// ["[|prop1|]"]: function () { }, +// } + + + +// === findAllReferences === +// === /findAllRefsForComputedProperties.ts === +// interface I { +// ["[|prop1|]"]: () => void; +// } +// +// class C implements I { +// ["[|prop1|]"]: any; +// } +// +// var x: I = { +// ["/*FIND ALL REFS*/[|prop1|]"]: function () { }, +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc new file mode 100644 index 0000000000..4f276e9251 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc @@ -0,0 +1,45 @@ +// === findAllReferences === +// === /findAllRefsForComputedProperties2.ts === +// interface I { +// [/*FIND ALL REFS*/[|42|]](): void; +// } +// +// class C implements I { +// [[|42|]]: any; +// } +// +// var x: I = { +// ["[|42|]"]: function () { } +// } + + + +// === findAllReferences === +// === /findAllRefsForComputedProperties2.ts === +// interface I { +// [[|42|]](): void; +// } +// +// class C implements I { +// [/*FIND ALL REFS*/[|42|]]: any; +// } +// +// var x: I = { +// ["[|42|]"]: function () { } +// } + + + +// === findAllReferences === +// === /findAllRefsForComputedProperties2.ts === +// interface I { +// [[|42|]](): void; +// } +// +// class C implements I { +// [[|42|]]: any; +// } +// +// var x: I = { +// ["/*FIND ALL REFS*/[|42|]"]: function () { } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc new file mode 100644 index 0000000000..0c7e30155f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /a.ts === +// export default function /*FIND ALL REFS*/[|f|]() {} + +// === /b.ts === +// import [|g|] from "./a"; +// [|g|](); + + + +// === findAllReferences === +// === /b.ts === +// import /*FIND ALL REFS*/[|g|] from "./a"; +// [|g|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc new file mode 100644 index 0000000000..f936ce1ea0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc @@ -0,0 +1,41 @@ +// === findAllReferences === +// === /findAllRefsForDefaultExport01.ts === +// /*FIND ALL REFS*/export default class [|DefaultExportedClass|] { +// } +// +// var x: [|DefaultExportedClass|]; +// +// var y = new [|DefaultExportedClass|]; + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport01.ts === +// export default class /*FIND ALL REFS*/[|DefaultExportedClass|] { +// } +// +// var x: [|DefaultExportedClass|]; +// +// var y = new [|DefaultExportedClass|]; + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport01.ts === +// export default class [|DefaultExportedClass|] { +// } +// +// var x: /*FIND ALL REFS*/[|DefaultExportedClass|]; +// +// var y = new [|DefaultExportedClass|]; + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport01.ts === +// export default class [|DefaultExportedClass|] { +// } +// +// var x: [|DefaultExportedClass|]; +// +// var y = new /*FIND ALL REFS*/[|DefaultExportedClass|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc new file mode 100644 index 0000000000..6f553cd654 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc @@ -0,0 +1,94 @@ +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === +// /*FIND ALL REFS*/export default function [|DefaultExportedFunction|]() { +// return [|DefaultExportedFunction|]; +// } +// +// var x: typeof [|DefaultExportedFunction|]; +// +// var y = [|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === +// export default function /*FIND ALL REFS*/[|DefaultExportedFunction|]() { +// return [|DefaultExportedFunction|]; +// } +// +// var x: typeof [|DefaultExportedFunction|]; +// +// var y = [|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === +// export default function [|DefaultExportedFunction|]() { +// return /*FIND ALL REFS*/[|DefaultExportedFunction|]; +// } +// +// var x: typeof [|DefaultExportedFunction|]; +// +// var y = [|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === +// export default function [|DefaultExportedFunction|]() { +// return [|DefaultExportedFunction|]; +// } +// +// var x: typeof /*FIND ALL REFS*/[|DefaultExportedFunction|]; +// +// var y = [|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === +// export default function [|DefaultExportedFunction|]() { +// return [|DefaultExportedFunction|]; +// } +// +// var x: typeof [|DefaultExportedFunction|]; +// +// var y = /*FIND ALL REFS*/[|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === +// --- (line: 5) skipped --- +// +// var y = DefaultExportedFunction(); +// +// /*FIND ALL REFS*/namespace [|DefaultExportedFunction|] { +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === +// --- (line: 5) skipped --- +// +// var y = DefaultExportedFunction(); +// +// namespace /*FIND ALL REFS*/[|DefaultExportedFunction|] { +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport03.baseline.jsonc new file mode 100644 index 0000000000..137945bf4a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport03.baseline.jsonc @@ -0,0 +1,141 @@ +// === findAllReferences === +// === /findAllRefsForDefaultExport03.ts === +// /*FIND ALL REFS*/function [|f|]() { +// return 100; +// } +// +// export default [|f|]; +// +// var x: typeof [|f|]; +// +// var y = [|f|](); +// +// namespace [|f|] { +// var local = 100; +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport03.ts === +// function /*FIND ALL REFS*/[|f|]() { +// return 100; +// } +// +// export default [|f|]; +// +// var x: typeof [|f|]; +// +// var y = [|f|](); +// +// namespace [|f|] { +// var local = 100; +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport03.ts === +// function [|f|]() { +// return 100; +// } +// +// /*FIND ALL REFS*/export default [|f|]; +// +// var x: typeof [|f|]; +// +// var y = [|f|](); +// +// namespace [|f|] { +// var local = 100; +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport03.ts === +// function [|f|]() { +// return 100; +// } +// +// export default /*FIND ALL REFS*/[|f|]; +// +// var x: typeof [|f|]; +// +// var y = [|f|](); +// +// namespace [|f|] { +// var local = 100; +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport03.ts === +// function [|f|]() { +// return 100; +// } +// +// export default [|f|]; +// +// var x: typeof /*FIND ALL REFS*/[|f|]; +// +// var y = [|f|](); +// +// namespace [|f|] { +// var local = 100; +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport03.ts === +// function [|f|]() { +// return 100; +// } +// +// export default [|f|]; +// +// var x: typeof [|f|]; +// +// var y = /*FIND ALL REFS*/[|f|](); +// +// namespace [|f|] { +// var local = 100; +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport03.ts === +// function [|f|]() { +// return 100; +// } +// +// export default [|f|]; +// +// var x: typeof [|f|]; +// +// var y = [|f|](); +// +// /*FIND ALL REFS*/namespace [|f|] { +// var local = 100; +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport03.ts === +// function [|f|]() { +// return 100; +// } +// +// export default [|f|]; +// +// var x: typeof [|f|]; +// +// var y = [|f|](); +// +// namespace /*FIND ALL REFS*/[|f|] { +// var local = 100; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc new file mode 100644 index 0000000000..a5fd072cef --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc @@ -0,0 +1,40 @@ +// === findAllReferences === +// === /a.ts === +// const /*FIND ALL REFS*/[|a|] = 0; +// export default [|a|]; + +// === /b.ts === +// import [|a|] from "./a"; +// [|a|]; + + + +// === findAllReferences === +// === /a.ts === +// const [|a|] = 0; +// export default /*FIND ALL REFS*/[|a|]; + +// === /b.ts === +// import [|a|] from "./a"; +// [|a|]; + + + +// === findAllReferences === +// === /a.ts === +// const a = 0; +// export /*FIND ALL REFS*/default a; + + + +// === findAllReferences === +// === /b.ts === +// import /*FIND ALL REFS*/[|a|] from "./a"; +// [|a|]; + + + +// === findAllReferences === +// === /b.ts === +// import [|a|] from "./a"; +// /*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc new file mode 100644 index 0000000000..5a1931dc42 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc @@ -0,0 +1,91 @@ +// === findAllReferences === +// === /foo.ts === +// import * as /*FIND ALL REFS*/[|a|] from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// // --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /foo.ts === +// import * as a from "./a.js" +// import /*FIND ALL REFS*/[|aDefault|] from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as /*FIND ALL REFS*/[|b|] from "./b.js" +// import bDefault from "./b.js" +// +// import * as c from "./c" +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import /*FIND ALL REFS*/[|bDefault|] from "./b.js" +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + + + +// === findAllReferences === +// === /foo.ts === +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// import * as /*FIND ALL REFS*/[|c|] from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + + + +// === findAllReferences === +// === /foo.ts === +// --- (line: 3) skipped --- +// import bDefault from "./b.js" +// +// import * as c from "./c" +// import /*FIND ALL REFS*/[|cDefault|] from "./c" +// import * as d from "./d" +// import dDefault from "./d" + + + +// === findAllReferences === +// === /foo.ts === +// --- (line: 4) skipped --- +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as /*FIND ALL REFS*/[|d|] from "./d" +// import dDefault from "./d" + + + +// === findAllReferences === +// === /foo.ts === +// --- (line: 5) skipped --- +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import /*FIND ALL REFS*/[|dDefault|] from "./d" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc new file mode 100644 index 0000000000..5f0ee63378 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /a.ts === +// export /*FIND ALL REFS*/default 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc new file mode 100644 index 0000000000..c6e337ef4b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /export.ts === +// const /*FIND ALL REFS*/[|foo|] = 1; +// export default [|foo|]; + + + +// === findAllReferences === +// === /export.ts === +// const [|foo|] = 1; +// export default /*FIND ALL REFS*/[|foo|]; + + + +// === findAllReferences === +// === /re-export.ts === +// export { /*FIND ALL REFS*/default } from "./export"; + + + +// === findAllReferences === +// === /re-export-dep.ts === +// import /*FIND ALL REFS*/[|fooDefault|] from "./re-export"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc new file mode 100644 index 0000000000..c4f30551ac --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc @@ -0,0 +1,58 @@ +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === +// function f(value: string, /*FIND ALL REFS*/default: string) {} +// +// const default = 1; +// +// // --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === +// function f(value: string, default: string) {} +// +// const /*FIND ALL REFS*/default = 1; +// +// function default() {} +// +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === +// function f(value: string, default: string) {} +// +// const default = 1; +// +// function /*FIND ALL REFS*/default() {} +// +// class default {} +// +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === +// --- (line: 3) skipped --- +// +// function default() {} +// +// class /*FIND ALL REFS*/default {} +// +// const foo = { +// default: 1 +// } + + + +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === +// --- (line: 6) skipped --- +// class default {} +// +// const foo = { +// /*FIND ALL REFS*/[|default|]: 1 +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc new file mode 100644 index 0000000000..f02db6604a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc @@ -0,0 +1,53 @@ +// === findAllReferences === +// === /file1.ts === +// var foo = /*FIND ALL REFS*/function foo(a = foo(), b = () => foo) { +// foo(foo, foo); +// } + + + +// === findAllReferences === +// === /file1.ts === +// var foo = function /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { +// [|foo|]([|foo|], [|foo|]); +// } + + + +// === findAllReferences === +// === /file1.ts === +// var foo = function [|foo|](a = /*FIND ALL REFS*/[|foo|](), b = () => [|foo|]) { +// [|foo|]([|foo|], [|foo|]); +// } + + + +// === findAllReferences === +// === /file1.ts === +// var foo = function [|foo|](a = [|foo|](), b = () => /*FIND ALL REFS*/[|foo|]) { +// [|foo|]([|foo|], [|foo|]); +// } + + + +// === findAllReferences === +// === /file1.ts === +// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { +// /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); +// } + + + +// === findAllReferences === +// === /file1.ts === +// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { +// [|foo|](/*FIND ALL REFS*/[|foo|], [|foo|]); +// } + + + +// === findAllReferences === +// === /file1.ts === +// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { +// [|foo|]([|foo|], /*FIND ALL REFS*/[|foo|]); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc new file mode 100644 index 0000000000..571d62441b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /app.ts === +// export function [|he/*FIND ALL REFS*/llo|]() {}; + +// === /direct-use.ts === +// async function main() { +// const mod = await import("./app") +// mod.[|hello|](); +// } + +// === /indirect-use.ts === +// import("./re-export").then(mod => mod.services.app.[|hello|]()); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc new file mode 100644 index 0000000000..7addf059ff --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /app.ts === +// export function [|he/*FIND ALL REFS*/llo|]() {}; + +// === /indirect-use.ts === +// import type { app } from "./re-export"; +// declare const app: app +// app.[|hello|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc new file mode 100644 index 0000000000..3004bf50f2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /findAllRefsForMappedType.ts === +// interface T { /*FIND ALL REFS*/[|a|]: number }; +// type U = { [K in keyof T]: string }; +// type V = { [K in keyof U]: boolean }; +// const u: U = { [|a|]: "" } +// const v: V = { [|a|]: true } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForModule.baseline.jsonc new file mode 100644 index 0000000000..9ffdfecb1a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForModule.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /b.ts === +// import { x } from "/*FIND ALL REFS*/[|./a|]"; + +// === /c/sub.js === +// const a = require("[|../a|]"); + +// === /d.ts === +// /// [||] + + + +// === findAllReferences === +// === /b.ts === +// import { x } from "[|./a|]"; + +// === /c/sub.js === +// const a = require("/*FIND ALL REFS*/[|../a|]"); + +// === /d.ts === +// /// [||] + + + +// === findAllReferences === +// === /b.ts === +// import { x } from "[|./a|]"; + +// === /c/sub.js === +// const a = require("[|../a|]"); + +// === /d.ts === +// /// [||] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc new file mode 100644 index 0000000000..0ee98f9be7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc @@ -0,0 +1,43 @@ +// === findAllReferences === +// === /findAllRefsForObjectLiteralProperties.ts === +// var x = { +// /*FIND ALL REFS*/[|property|]: {} +// }; +// +// x.[|property|]; +// +// let {[|property|]: pVar} = x; + + + +// === findAllReferences === +// === /findAllRefsForObjectLiteralProperties.ts === +// var x = { +// [|property|]: {} +// }; +// +// x./*FIND ALL REFS*/[|property|]; +// +// let {[|property|]: pVar} = x; + + + +// === findAllReferences === +// === /findAllRefsForObjectLiteralProperties.ts === +// --- (line: 3) skipped --- +// +// x.property; +// +// /*FIND ALL REFS*/let {property: pVar} = x; + + + +// === findAllReferences === +// === /findAllRefsForObjectLiteralProperties.ts === +// var x = { +// [|property|]: {} +// }; +// +// x.[|property|]; +// +// let {/*FIND ALL REFS*/[|property|]: pVar} = x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc new file mode 100644 index 0000000000..89ba3ee24a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc @@ -0,0 +1,45 @@ +// === findAllReferences === +// === /findAllRefsForObjectSpread.ts === +// interface A1 { readonly /*FIND ALL REFS*/[|a|]: string }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.[|a|]; +// a1.[|a|]; + + + +// === findAllReferences === +// === /findAllRefsForObjectSpread.ts === +// interface A1 { readonly a: string }; +// interface A2 { /*FIND ALL REFS*/[|a|]?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.[|a|]; +// a1.a; + + + +// === findAllReferences === +// === /findAllRefsForObjectSpread.ts === +// interface A1 { readonly [|a|]: string }; +// interface A2 { [|a|]?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12./*FIND ALL REFS*/[|a|]; +// a1.[|a|]; + + + +// === findAllReferences === +// === /findAllRefsForObjectSpread.ts === +// interface A1 { readonly [|a|]: string }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.[|a|]; +// a1./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc new file mode 100644 index 0000000000..fa428c7a86 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /findAllRefsForRest.ts === +// interface Gen { +// x: number +// /*FIND ALL REFS*/[|parent|]: Gen; +// millenial: string; +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest.[|parent|]; + + + +// === findAllReferences === +// === /findAllRefsForRest.ts === +// interface Gen { +// x: number +// [|parent|]: Gen; +// millenial: string; +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest./*FIND ALL REFS*/[|parent|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc new file mode 100644 index 0000000000..872fa19d94 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc @@ -0,0 +1,91 @@ +// === findAllReferences === +// === /findAllRefsForStaticInstanceMethodInheritance.ts === +// class X{ +// /*FIND ALL REFS*/[|foo|](): void{} +// } +// +// class Y extends X{ +// static foo(): void{} +// } +// +// class Z extends Y{ +// static foo(): void{} +// [|foo|](): void{} +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|](); +// y.[|foo|](); +// z.[|foo|](); +// Y.foo(); +// Z.foo(); + + + +// === findAllReferences === +// === /findAllRefsForStaticInstanceMethodInheritance.ts === +// class X{ +// foo(): void{} +// } +// +// class Y extends X{ +// static /*FIND ALL REFS*/[|foo|](): void{} +// } +// +// class Z extends Y{ +// // --- (line: 10) skipped --- + +// --- (line: 16) skipped --- +// x.foo(); +// y.foo(); +// z.foo(); +// Y.[|foo|](); +// Z.foo(); + + + +// === findAllReferences === +// === /findAllRefsForStaticInstanceMethodInheritance.ts === +// --- (line: 6) skipped --- +// } +// +// class Z extends Y{ +// static /*FIND ALL REFS*/[|foo|](): void{} +// foo(): void{} +// } +// +// // --- (line: 14) skipped --- + +// --- (line: 17) skipped --- +// y.foo(); +// z.foo(); +// Y.foo(); +// Z.[|foo|](); + + + +// === findAllReferences === +// === /findAllRefsForStaticInstanceMethodInheritance.ts === +// class X{ +// [|foo|](): void{} +// } +// +// class Y extends X{ +// static foo(): void{} +// } +// +// class Z extends Y{ +// static foo(): void{} +// /*FIND ALL REFS*/[|foo|](): void{} +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|](); +// y.[|foo|](); +// z.[|foo|](); +// Y.foo(); +// Z.foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc new file mode 100644 index 0000000000..ef28551cd5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc @@ -0,0 +1,211 @@ +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// class X{ +// /*FIND ALL REFS*/[|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// [|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|]; +// y.[|foo|]; +// z.[|foo|]; +// Y.foo; +// Z.foo; + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// class X{ +// foo:any +// } +// +// class Y extends X{ +// static /*FIND ALL REFS*/[|foo|]:any +// } +// +// class Z extends Y{ +// // --- (line: 10) skipped --- + +// --- (line: 16) skipped --- +// x.foo; +// y.foo; +// z.foo; +// Y.[|foo|]; +// Z.foo; + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// --- (line: 6) skipped --- +// } +// +// class Z extends Y{ +// static /*FIND ALL REFS*/[|foo|]:any +// foo:any +// } +// +// // --- (line: 14) skipped --- + +// --- (line: 17) skipped --- +// y.foo; +// z.foo; +// Y.foo; +// Z.[|foo|]; + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// class X{ +// [|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// /*FIND ALL REFS*/[|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|]; +// y.[|foo|]; +// z.[|foo|]; +// Y.foo; +// Z.foo; + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// class X{ +// [|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// [|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x./*FIND ALL REFS*/[|foo|]; +// y.[|foo|]; +// z.[|foo|]; +// Y.foo; +// Z.foo; + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// class X{ +// [|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// [|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|]; +// y./*FIND ALL REFS*/[|foo|]; +// z.[|foo|]; +// Y.foo; +// Z.foo; + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// class X{ +// [|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// [|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|]; +// y.[|foo|]; +// z./*FIND ALL REFS*/[|foo|]; +// Y.foo; +// Z.foo; + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// class X{ +// foo:any +// } +// +// class Y extends X{ +// static [|foo|]:any +// } +// +// class Z extends Y{ +// // --- (line: 10) skipped --- + +// --- (line: 16) skipped --- +// x.foo; +// y.foo; +// z.foo; +// Y./*FIND ALL REFS*/[|foo|]; +// Z.foo; + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === +// --- (line: 6) skipped --- +// } +// +// class Z extends Y{ +// static [|foo|]:any +// foo:any +// } +// +// // --- (line: 14) skipped --- + +// --- (line: 17) skipped --- +// y.foo; +// z.foo; +// Y.foo; +// Z./*FIND ALL REFS*/[|foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc new file mode 100644 index 0000000000..25e25f788a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /a.ts === +// interface Foo { +// property: /*FIND ALL REFS*/"foo"; +// } +// /** +// * @type {{ property: "foo"}} +// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc new file mode 100644 index 0000000000..761c82bd75 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /findAllRefsForStringLiteralTypes.ts === +// type Options = "/*FIND ALL REFS*/option 1" | "option 2"; +// let myOption: Options = "option 1"; + + + +// === findAllReferences === +// === /findAllRefsForStringLiteralTypes.ts === +// type Options = "option 1" | "option 2"; +// let myOption: Options = "/*FIND ALL REFS*/option 1"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc new file mode 100644 index 0000000000..544b2dd589 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc @@ -0,0 +1,29 @@ +// === findAllReferences === +// === /0.d.ts === +// export function doThing(): string; +// export function doTheOtherThing(): void; +// /*FIND ALL REFS*/export as namespace myLib; + + + +// === findAllReferences === +// === /0.d.ts === +// export function doThing(): string; +// export function doTheOtherThing(): void; +// export as namespace /*FIND ALL REFS*/[|myLib|]; + +// === /1.ts === +// /// +// [|myLib|].doThing(); + + + +// === findAllReferences === +// === /0.d.ts === +// export function doThing(): string; +// export function doTheOtherThing(): void; +// export as namespace [|myLib|]; + +// === /1.ts === +// /// +// /*FIND ALL REFS*/[|myLib|].doThing(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc new file mode 100644 index 0000000000..4064c53b01 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause01.ts === +// /*FIND ALL REFS*/var [|Base|] = class { }; +// class C extends [|Base|] { } + + + +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause01.ts === +// var /*FIND ALL REFS*/[|Base|] = class { }; +// class C extends [|Base|] { } + + + +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause01.ts === +// var [|Base|] = class { }; +// class C extends /*FIND ALL REFS*/[|Base|] { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc new file mode 100644 index 0000000000..692886f089 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause02.ts === +// /*FIND ALL REFS*/interface [|Base|] { } +// namespace n { +// var Base = class { }; +// interface I extends [|Base|] { } +// } + + + +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause02.ts === +// interface /*FIND ALL REFS*/[|Base|] { } +// namespace n { +// var Base = class { }; +// interface I extends [|Base|] { } +// } + + + +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause02.ts === +// interface [|Base|] { } +// namespace n { +// var Base = class { }; +// interface I extends /*FIND ALL REFS*/[|Base|] { } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc new file mode 100644 index 0000000000..87c2ca3367 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /findAllRefsForVariableInImplementsClause01.ts === +// var Base = class { }; +// class C extends Base implements /*FIND ALL REFS*/Base { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc new file mode 100644 index 0000000000..6cdbc9c1bc --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /findAllRefsGlobalThisKeywordInModule.ts === +// /*FIND ALL REFS*/this; +// export const c = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc new file mode 100644 index 0000000000..d1ae3b9984 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /findAllRefsImportEquals.ts === +// import j = N./*FIND ALL REFS*/[|q|]; +// namespace N { export const q = 0; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc new file mode 100644 index 0000000000..479db50506 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /a.js === +// module.exports = 0; +// /*FIND ALL REFS*/export type [|N|] = number; + +// === /b.js === +// type T = import("./a").[|N|]; + + + +// === findAllReferences === +// === /a.js === +// module.exports = 0; +// export type /*FIND ALL REFS*/[|N|] = number; + +// === /b.js === +// type T = import("./a").[|N|]; + + + +// === findAllReferences === +// === /b.js === +// type T = import("./a")./*FIND ALL REFS*/N; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc new file mode 100644 index 0000000000..1b7957d5e9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc @@ -0,0 +1,15 @@ +// === findAllReferences === +// === /findAllRefsInClassExpression.ts === +// interface I { /*FIND ALL REFS*/[|boom|](): void; } +// new class C implements I { +// [|boom|](){} +// } + + + +// === findAllReferences === +// === /findAllRefsInClassExpression.ts === +// interface I { [|boom|](): void; } +// new class C implements I { +// /*FIND ALL REFS*/[|boom|](){} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc new file mode 100644 index 0000000000..d725fe036e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /findAllRefsIndexedAccessTypes.ts === +// interface I { +// /*FIND ALL REFS*/[|0|]: number; +// s: string; +// } +// interface J { +// a: I[[|0|]], +// b: I["s"], +// } + + + +// === findAllReferences === +// === /findAllRefsIndexedAccessTypes.ts === +// interface I { +// 0: number; +// /*FIND ALL REFS*/[|s|]: string; +// } +// interface J { +// a: I[0], +// b: I["[|s|]"], +// } + + + +// === findAllReferences === +// === /findAllRefsIndexedAccessTypes.ts === +// interface I { +// [|0|]: number; +// s: string; +// } +// interface J { +// a: I[/*FIND ALL REFS*/[|0|]], +// b: I["s"], +// } + + + +// === findAllReferences === +// === /findAllRefsIndexedAccessTypes.ts === +// interface I { +// 0: number; +// [|s|]: string; +// } +// interface J { +// a: I[0], +// b: I["/*FIND ALL REFS*/[|s|]"], +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc new file mode 100644 index 0000000000..785fffc0b1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties1.ts === +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// +// var v: class1; +// v.[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties1.ts === +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var v: class1; +// v.doStuff(); +// v.[|propName|]; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties1.ts === +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class1; +// v./*FIND ALL REFS*/[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties1.ts === +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class1; +// v.doStuff(); +// v./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc new file mode 100644 index 0000000000..e97abb0aa8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties2.ts === +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; // r0 +// propName: string; // r1 +// } +// +// var v: interface1; +// v.[|doStuff|](); // r2 +// v.propName; // r3 + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties2.ts === +// interface interface1 extends interface1 { +// doStuff(): void; // r0 +// /*FIND ALL REFS*/[|propName|]: string; // r1 +// } +// +// var v: interface1; +// v.doStuff(); // r2 +// v.[|propName|]; // r3 + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties2.ts === +// interface interface1 extends interface1 { +// [|doStuff|](): void; // r0 +// propName: string; // r1 +// } +// +// var v: interface1; +// v./*FIND ALL REFS*/[|doStuff|](); // r2 +// v.propName; // r3 + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties2.ts === +// interface interface1 extends interface1 { +// doStuff(): void; // r0 +// [|propName|]: string; // r1 +// } +// +// var v: interface1; +// v.doStuff(); // r2 +// v./*FIND ALL REFS*/[|propName|]; // r3 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc new file mode 100644 index 0000000000..5ea694ce25 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc @@ -0,0 +1,163 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === +// class class1 extends class1 { +// doStuff() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === +// --- (line: 3) skipped --- +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v./*FIND ALL REFS*/[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc new file mode 100644 index 0000000000..7574b69cc6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc @@ -0,0 +1,70 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === +// interface C extends D { +// /*FIND ALL REFS*/[|prop0|]: string; +// prop1: number; +// } +// +// interface D extends C { +// [|prop0|]: string; +// } +// +// var d: D; +// d.[|prop0|]; +// d.prop1; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === +// interface C extends D { +// [|prop0|]: string; +// prop1: number; +// } +// +// interface D extends C { +// /*FIND ALL REFS*/[|prop0|]: string; +// } +// +// var d: D; +// d.[|prop0|]; +// d.prop1; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === +// interface C extends D { +// [|prop0|]: string; +// prop1: number; +// } +// +// interface D extends C { +// [|prop0|]: string; +// } +// +// var d: D; +// d./*FIND ALL REFS*/[|prop0|]; +// d.prop1; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === +// interface C extends D { +// prop0: string; +// /*FIND ALL REFS*/[|prop1|]: number; +// } +// +// interface D extends C { +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === +// --- (line: 8) skipped --- +// +// var d: D; +// d.prop0; +// d./*FIND ALL REFS*/prop1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc new file mode 100644 index 0000000000..0e213dc93d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc @@ -0,0 +1,60 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === +// class C extends D { +// /*FIND ALL REFS*/[|prop0|]: string; +// prop1: number; +// } +// +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === +// class C extends D { +// prop0: string; +// /*FIND ALL REFS*/[|prop1|]: number; +// } +// +// class D extends C { +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === +// --- (line: 3) skipped --- +// } +// +// class D extends C { +// /*FIND ALL REFS*/[|prop0|]: string; +// } +// +// var d: D; +// d.[|prop0|]; +// d.prop1; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === +// --- (line: 3) skipped --- +// } +// +// class D extends C { +// [|prop0|]: string; +// } +// +// var d: D; +// d./*FIND ALL REFS*/[|prop0|]; +// d.prop1; + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === +// --- (line: 8) skipped --- +// +// var d: D; +// d.prop0; +// d./*FIND ALL REFS*/prop1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc new file mode 100644 index 0000000000..b433189590 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /findAllRefsInsideTemplates1.ts === +// /*FIND ALL REFS*/var [|x|] = 10; +// var y = `${ [|x|] } ${ [|x|] }` + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates1.ts === +// var /*FIND ALL REFS*/[|x|] = 10; +// var y = `${ [|x|] } ${ [|x|] }` + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates1.ts === +// var [|x|] = 10; +// var y = `${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates1.ts === +// var [|x|] = 10; +// var y = `${ [|x|] } ${ /*FIND ALL REFS*/[|x|] }` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc new file mode 100644 index 0000000000..8ca4acea24 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc @@ -0,0 +1,32 @@ +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === +// /*FIND ALL REFS*/function [|f|](...rest: any[]) { } +// [|f|] `${ [|f|] } ${ [|f|] }` + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === +// function /*FIND ALL REFS*/[|f|](...rest: any[]) { } +// [|f|] `${ [|f|] } ${ [|f|] }` + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === +// function [|f|](...rest: any[]) { } +// /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === +// function [|f|](...rest: any[]) { } +// [|f|] `${ /*FIND ALL REFS*/[|f|] } ${ [|f|] }` + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === +// function [|f|](...rest: any[]) { } +// [|f|] `${ [|f|] } ${ /*FIND ALL REFS*/[|f|] }` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc new file mode 100644 index 0000000000..19b1d2ba3d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /findAllRefsInsideWithBlock.ts === +// /*FIND ALL REFS*/var [|x|] = 0; +// +// with ({}) { +// var y = x; // Reference of x here should not be picked +// y++; // also reference for y should be ignored +// } +// +// [|x|] = [|x|] + 1; + + + +// === findAllReferences === +// === /findAllRefsInsideWithBlock.ts === +// var /*FIND ALL REFS*/[|x|] = 0; +// +// with ({}) { +// var y = x; // Reference of x here should not be picked +// y++; // also reference for y should be ignored +// } +// +// [|x|] = [|x|] + 1; + + + +// === findAllReferences === +// === /findAllRefsInsideWithBlock.ts === +// var [|x|] = 0; +// +// with ({}) { +// var y = x; // Reference of x here should not be picked +// y++; // also reference for y should be ignored +// } +// +// /*FIND ALL REFS*/[|x|] = [|x|] + 1; + + + +// === findAllReferences === +// === /findAllRefsInsideWithBlock.ts === +// var [|x|] = 0; +// +// with ({}) { +// var y = x; // Reference of x here should not be picked +// y++; // also reference for y should be ignored +// } +// +// [|x|] = /*FIND ALL REFS*/[|x|] + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc new file mode 100644 index 0000000000..b1d0fc3619 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc @@ -0,0 +1,103 @@ +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === +// declare function [|foo|](a: number): number; +// declare function [|foo|](a: string): string; +// declare function [|foo|]/*FIND ALL REFS*/(a: string | number): string | number; +// +// function foon(a: number): number; +// function foon(a: string): string; +// function foon(a: string | number): string | number { +// return a +// } +// +// [|foo|]; foon; +// +// export const bar = 123; +// console.log({ bar }); +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === +// declare function foo(a: number): number; +// declare function foo(a: string): string; +// declare function foo(a: string | number): string | number; +// +// function [|foon|](a: number): number; +// function [|foon|](a: string): string; +// function [|foon|]/*FIND ALL REFS*/(a: string | number): string | number { +// return a +// } +// +// foo; [|foon|]; +// +// export const bar = 123; +// console.log({ bar }); +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === +// --- (line: 9) skipped --- +// +// foo; foon; +// +// export const [|bar|]/*FIND ALL REFS*/ = 123; +// console.log({ [|bar|] }); +// +// interface IFoo { +// foo(): void; +// // --- (line: 18) skipped --- + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === +// --- (line: 13) skipped --- +// console.log({ bar }); +// +// interface IFoo { +// [|foo|]/*FIND ALL REFS*/(): void; +// } +// class Foo implements IFoo { +// constructor(n: number) +// constructor() +// constructor(n: number?) { } +// [|foo|](): void { } +// static init() { return new this() } +// } + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === +// --- (line: 16) skipped --- +// foo(): void; +// } +// class Foo implements IFoo { +// [|constructor|](n: number) +// [|constructor|]() +// /*FIND ALL REFS*/[|constructor|](n: number?) { } +// foo(): void { } +// static init() { return new [|this|]() } +// } + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === +// --- (line: 13) skipped --- +// console.log({ bar }); +// +// interface IFoo { +// [|foo|](): void; +// } +// class Foo implements IFoo { +// constructor(n: number) +// constructor() +// constructor(n: number?) { } +// [|foo|]/*FIND ALL REFS*/(): void { } +// static init() { return new this() } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc new file mode 100644 index 0000000000..8d4374f0f1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /a.js === +// /** +// * @import { [|A|] } from "./b"; +// */ +// +// /** +// * @param { [|A|]/*FIND ALL REFS*/ } a +// */ +// function f(a) {} + +// === /b.ts === +// export interface [|A|] { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc new file mode 100644 index 0000000000..44d151af3a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /component.js === +// export default class [|Component|] { +// constructor() { +// this.id_ = Math.random(); +// } +// // --- (line: 5) skipped --- + +// === /player.js === +// import [|Component|] from './component.js'; +// +// /** +// * @extends [|Component|]/*FIND ALL REFS*/ +// */ +// export class Player extends [|Component|] {} + +// === /spatial-navigation.js === +// /** @import [|Component|] from './component.js' */ +// +// export class SpatialNavigation { +// /** +// * @param {[|Component|]} component +// */ +// add(component) {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc new file mode 100644 index 0000000000..fe331dd151 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /component.js === +// export class [|Component|] { +// constructor() { +// this.id_ = Math.random(); +// } +// // --- (line: 5) skipped --- + +// === /player.js === +// import { [|Component|] } from './component.js'; +// +// /** +// * @extends [|Component|]/*FIND ALL REFS*/ +// */ +// export class Player extends [|Component|] {} + +// === /spatial-navigation.js === +// /** @import { [|Component|] } from './component.js' */ +// +// export class SpatialNavigation { +// /** +// * @param {[|Component|]} component +// */ +// add(component) {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc new file mode 100644 index 0000000000..c3af1c6944 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /player.js === +// import * as [|C|] from './component.js'; +// +// /** +// * @extends [|C|]/*FIND ALL REFS*/.Component +// */ +// export class Player extends Component {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc new file mode 100644 index 0000000000..9d98322358 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc @@ -0,0 +1,15 @@ +// === findAllReferences === +// === /a.js === +// export default function /*FIND ALL REFS*/[|a|]() {} + +// === /b.js === +// /** @import [|a|], * as ns from "./a" */ + + + +// === findAllReferences === +// === /a.js === +// export default function [|a|]() {} + +// === /b.js === +// /** @import /*FIND ALL REFS*/[|a|], * as ns from "./a" */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc new file mode 100644 index 0000000000..587b5c0e14 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /findAllRefsJsDocTemplateTag_class.ts === +// /** @template /*FIND ALL REFS*/T */ +// class C {} + + + +// === findAllReferences === +// === /findAllRefsJsDocTemplateTag_class.ts === +// /** @template T */ +// class C {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc new file mode 100644 index 0000000000..132af93f79 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /findAllRefsJsDocTemplateTag_function.ts === +// /** @template /*FIND ALL REFS*/T */ +// function f() {} + + + +// === findAllReferences === +// === /findAllRefsJsDocTemplateTag_function.ts === +// /** @template T */ +// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc new file mode 100644 index 0000000000..7abed0e240 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /findAllRefsJsDocTypeDef.ts === +// /** @typedef {Object} /*FIND ALL REFS*/T */ +// function foo() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc new file mode 100644 index 0000000000..10c5f56ae9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /a.js === +// import { infer } from "./infer"; +// infer({ +// m() { +// this.[|x|] = 1; +// this./*FIND ALL REFS*/[|x|]; +// }, +// }); + +// === /infer.d.ts === +// export declare function infer(o: { m(): void } & ThisType<{ [|x|]: number }>): void; + + + +// === findAllReferences === +// === /b.js === +// --- (line: 4) skipped --- +// function infer(o) {} +// infer({ +// m() { +// this.[|x|] = 2; +// this./*FIND ALL REFS*/[|x|]; +// }, +// }); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc new file mode 100644 index 0000000000..031de898a8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc @@ -0,0 +1,53 @@ +// === findAllReferences === +// === /a.js === +// import { infer } from "./infer"; +// infer({ +// m: { +// initData() { +// this.[|x|] = 1; +// this./*FIND ALL REFS*/[|x|]; +// }, +// } +// }); + +// === /b.ts === +// import { infer } from "./infer"; +// infer({ +// m: { +// initData() { +// this.[|x|] = 1; +// this.[|x|]; +// }, +// } +// }); + +// === /infer.d.ts === +// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; + + + +// === findAllReferences === +// === /a.js === +// import { infer } from "./infer"; +// infer({ +// m: { +// initData() { +// this.[|x|] = 1; +// this.[|x|]; +// }, +// } +// }); + +// === /b.ts === +// import { infer } from "./infer"; +// infer({ +// m: { +// initData() { +// this.[|x|] = 1; +// this./*FIND ALL REFS*/[|x|]; +// }, +// } +// }); + +// === /infer.d.ts === +// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc new file mode 100644 index 0000000000..87daf167b0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /findAllRefsMappedType.ts === +// interface T { /*FIND ALL REFS*/[|a|]: number; } +// type U = { readonly [K in keyof T]?: string }; +// declare const t: T; +// t.[|a|]; +// declare const u: U; +// u.[|a|]; + + + +// === findAllReferences === +// === /findAllRefsMappedType.ts === +// interface T { [|a|]: number; } +// type U = { readonly [K in keyof T]?: string }; +// declare const t: T; +// t./*FIND ALL REFS*/[|a|]; +// declare const u: U; +// u.[|a|]; + + + +// === findAllReferences === +// === /findAllRefsMappedType.ts === +// interface T { [|a|]: number; } +// type U = { readonly [K in keyof T]?: string }; +// declare const t: T; +// t.[|a|]; +// declare const u: U; +// u./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc new file mode 100644 index 0000000000..fbc0d6c2b1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc @@ -0,0 +1,15 @@ +// === findAllReferences === +// === /findAllRefsMappedType_nonHomomorphic.ts === +// function f(x: { [K in "m"]: number; }) { +// x./*FIND ALL REFS*/[|m|]; +// x.[|m|] +// } + + + +// === findAllReferences === +// === /findAllRefsMappedType_nonHomomorphic.ts === +// function f(x: { [K in "m"]: number; }) { +// x.[|m|]; +// x./*FIND ALL REFS*/[|m|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc new file mode 100644 index 0000000000..6aaee5897e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /findAllRefsMissingModulesOverlappingSpecifiers.ts === +// // https://github.com/microsoft/TypeScript/issues/5551 +// import { resolve/*FIND ALL REFS*/ as resolveUrl } from "idontcare"; +// import { resolve } from "whatever"; + + + +// === findAllReferences === +// === /findAllRefsMissingModulesOverlappingSpecifiers.ts === +// // https://github.com/microsoft/TypeScript/issues/5551 +// import { resolve as resolveUrl } from "idontcare"; +// import { [|resolve|]/*FIND ALL REFS*/ } from "whatever"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsModuleDotExports.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsModuleDotExports.baseline.jsonc new file mode 100644 index 0000000000..55f48ed43e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsModuleDotExports.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /a.js === +// /*FIND ALL REFS*/const [|b|] = require("./b"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc new file mode 100644 index 0000000000..7538271b44 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/export const x = 0; + + + +// === findAllReferences === +// === /a.ts === +// export const /*FIND ALL REFS*/[|x|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc new file mode 100644 index 0000000000..f475c56be3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /findAllRefsNoSubstitutionTemplateLiteralNoCrash1.ts === +// type Test = `T/*FIND ALL REFS*/`; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc new file mode 100644 index 0000000000..851c5ebc14 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc @@ -0,0 +1,17 @@ +// === findAllReferences === +// === /import.ts === +// import "./script/*FIND ALL REFS*/"; + + + +// === findAllReferences === +// === /require.js === +// require("./script/*FIND ALL REFS*/"); +// console.log("./script"); + + + +// === findAllReferences === +// === /require.js === +// require("./script"); +// console.log("./script/*FIND ALL REFS*/"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc new file mode 100644 index 0000000000..effe8abd26 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /src/parser.js === +// --- (line: 10) skipped --- +// variable: function () { +// let name; +// +// if (parserInput.currentChar() === "/*FIND ALL REFS*/@") { +// return name[1]; +// } +// }, +// // --- (line: 18) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc new file mode 100644 index 0000000000..88473b4793 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc @@ -0,0 +1,31 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName01.ts === +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { [|property1|]: prop1 } = foo; + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName01.ts === +// --- (line: 3) skipped --- +// } +// +// var foo: I; +// /*FIND ALL REFS*/var { property1: prop1 } = foo; + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName01.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { /*FIND ALL REFS*/[|property1|]: prop1 } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc new file mode 100644 index 0000000000..a20ffda8ca --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc @@ -0,0 +1,31 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName02.ts === +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { [|property1|]: {} } = foo; + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName02.ts === +// --- (line: 3) skipped --- +// } +// +// var foo: I; +// /*FIND ALL REFS*/var { property1: {} } = foo; + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName02.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { /*FIND ALL REFS*/[|property1|]: {} } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc new file mode 100644 index 0000000000..4a97e32610 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName03.ts === +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var [ { [|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName03.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var [ { [|property1|]: prop1 }, { /*FIND ALL REFS*/[|property1|], property2 } ] = [foo, foo]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc new file mode 100644 index 0000000000..8a01daa2da --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc @@ -0,0 +1,59 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName04.ts === +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// function f({ [|property1|]: p1 }: I, +// { [|property1|] }: I, +// { property1: p2 }) { +// +// return property1 + 1; +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName04.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// function f({ /*FIND ALL REFS*/[|property1|]: p1 }: I, +// { [|property1|] }: I, +// { property1: p2 }) { +// +// return property1 + 1; +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName04.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// function f({ [|property1|]: p1 }: I, +// { /*FIND ALL REFS*/[|property1|] }: I, +// { property1: p2 }) { +// +// return [|property1|] + 1; +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName04.ts === +// --- (line: 3) skipped --- +// } +// +// function f({ property1: p1 }: I, +// { [|property1|] }: I, +// { property1: p2 }) { +// +// return /*FIND ALL REFS*/[|property1|] + 1; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc new file mode 100644 index 0000000000..fc60af735d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc @@ -0,0 +1,10 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName05.ts === +// interface I { +// property1: number; +// property2: string; +// } +// +// function f({ /*FIND ALL REFS*/property1: p }, { property1 }) { +// let x = property1; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc new file mode 100644 index 0000000000..bb0311f6e4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc @@ -0,0 +1,97 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { [|property1|]: p } of elems) { +// } +// for (let { [|property1|] } of elems) { +// } +// for (var { [|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ [|property1|] : p2 } of elems) { +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { /*FIND ALL REFS*/[|property1|]: p } of elems) { +// } +// for (let { [|property1|] } of elems) { +// } +// for (var { [|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ [|property1|] : p2 } of elems) { +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { [|property1|]: p } of elems) { +// } +// for (let { [|property1|] } of elems) { +// } +// for (var { /*FIND ALL REFS*/[|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ [|property1|] : p2 } of elems) { +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { [|property1|]: p } of elems) { +// } +// for (let { [|property1|] } of elems) { +// } +// for (var { [|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ /*FIND ALL REFS*/[|property1|] : p2 } of elems) { +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { [|property1|]: p } of elems) { +// } +// for (let { /*FIND ALL REFS*/[|property1|] } of elems) { +// } +// for (var { [|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ [|property1|] : p2 } of elems) { +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc new file mode 100644 index 0000000000..46279d6946 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName07.ts === +// let p, b; +// +// p, [{ /*FIND ALL REFS*/[|a|]: p, b }] = [{ [|a|]: 10, b: true }]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc new file mode 100644 index 0000000000..369cf2fa1d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc @@ -0,0 +1,45 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName10.ts === +// interface Recursive { +// /*FIND ALL REFS*/[|next|]?: Recursive; +// value: any; +// } +// +// function f ({ [|next|]: { [|next|]: x} }: Recursive) { +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName10.ts === +// interface Recursive { +// next?: Recursive; +// value: any; +// } +// +// function f (/*FIND ALL REFS*/{ next: { next: x} }: Recursive) { +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName10.ts === +// interface Recursive { +// [|next|]?: Recursive; +// value: any; +// } +// +// function f ({ /*FIND ALL REFS*/[|next|]: { [|next|]: x} }: Recursive) { +// } + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName10.ts === +// interface Recursive { +// [|next|]?: Recursive; +// value: any; +// } +// +// function f ({ [|next|]: { /*FIND ALL REFS*/[|next|]: x} }: Recursive) { +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc new file mode 100644 index 0000000000..1843c960f8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /findAllRefsOfConstructor_withModifier.ts === +// class X { +// public /*FIND ALL REFS*/[|constructor|]() {} +// } +// var x = new [|X|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc new file mode 100644 index 0000000000..a362eb779e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc @@ -0,0 +1,93 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/function [|decorator|](target) { +// return target; +// } +// [|decorator|](); + +// === /b.ts === +// @[|decorator|] @[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + +// === findAllReferences === +// === /a.ts === +// function /*FIND ALL REFS*/[|decorator|](target) { +// return target; +// } +// [|decorator|](); + +// === /b.ts === +// @[|decorator|] @[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + +// === findAllReferences === +// === /a.ts === +// function [|decorator|](target) { +// return target; +// } +// /*FIND ALL REFS*/[|decorator|](); + +// === /b.ts === +// @[|decorator|] @[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + +// === findAllReferences === +// === /a.ts === +// function [|decorator|](target) { +// return target; +// } +// [|decorator|](); + +// === /b.ts === +// @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + +// === findAllReferences === +// === /a.ts === +// function [|decorator|](target) { +// return target; +// } +// [|decorator|](); + +// === /b.ts === +// @[|decorator|] @/*FIND ALL REFS*/[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + +// === findAllReferences === +// === /a.ts === +// function [|decorator|](target) { +// return target; +// } +// [|decorator|](); + +// === /b.ts === +// @[|decorator|] @[|decorator|]("again") +// class C { +// @/*FIND ALL REFS*/[|decorator|] +// method() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc new file mode 100644 index 0000000000..1ce9c15254 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc @@ -0,0 +1,60 @@ +// === findAllReferences === +// === /findAllRefsOnDefinition-import.ts === +// --- (line: 3) skipped --- +// +// } +// +// /*FIND ALL REFS*/public [|start|](){ +// return this; +// } +// +// // --- (line: 11) skipped --- + +// === /findAllRefsOnDefinition.ts === +// import Second = require("./findAllRefsOnDefinition-import"); +// +// var second = new Second.Test() +// second.[|start|](); +// second.stop(); + + + +// === findAllReferences === +// === /findAllRefsOnDefinition-import.ts === +// --- (line: 3) skipped --- +// +// } +// +// public /*FIND ALL REFS*/[|start|](){ +// return this; +// } +// +// // --- (line: 11) skipped --- + +// === /findAllRefsOnDefinition.ts === +// import Second = require("./findAllRefsOnDefinition-import"); +// +// var second = new Second.Test() +// second.[|start|](); +// second.stop(); + + + +// === findAllReferences === +// === /findAllRefsOnDefinition-import.ts === +// --- (line: 3) skipped --- +// +// } +// +// public [|start|](){ +// return this; +// } +// +// // --- (line: 11) skipped --- + +// === /findAllRefsOnDefinition.ts === +// import Second = require("./findAllRefsOnDefinition-import"); +// +// var second = new Second.Test() +// second./*FIND ALL REFS*/[|start|](); +// second.stop(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc new file mode 100644 index 0000000000..948c4ea942 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc @@ -0,0 +1,48 @@ +// === findAllReferences === +// === /findAllRefsOnDefinition2-import.ts === +// export module Test{ +// +// /*FIND ALL REFS*/export interface [|start|] { } +// +// export interface stop { } +// } + +// === /findAllRefsOnDefinition2.ts === +// import Second = require("./findAllRefsOnDefinition2-import"); +// +// var start: Second.Test.[|start|]; +// var stop: Second.Test.stop; + + + +// === findAllReferences === +// === /findAllRefsOnDefinition2-import.ts === +// export module Test{ +// +// export interface /*FIND ALL REFS*/[|start|] { } +// +// export interface stop { } +// } + +// === /findAllRefsOnDefinition2.ts === +// import Second = require("./findAllRefsOnDefinition2-import"); +// +// var start: Second.Test.[|start|]; +// var stop: Second.Test.stop; + + + +// === findAllReferences === +// === /findAllRefsOnDefinition2-import.ts === +// export module Test{ +// +// export interface [|start|] { } +// +// export interface stop { } +// } + +// === /findAllRefsOnDefinition2.ts === +// import Second = require("./findAllRefsOnDefinition2-import"); +// +// var start: Second.Test./*FIND ALL REFS*/[|start|]; +// var stop: Second.Test.stop; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc new file mode 100644 index 0000000000..0074e398ae --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /a.ts === +// export class /*FIND ALL REFS*/[|Class|] { +// } + +// === /b.ts === +// import { [|Class|] } from "./a"; +// +// var c = new [|Class|](); + + + +// === findAllReferences === +// === /a.ts === +// export class [|Class|] { +// } + +// === /b.ts === +// import { /*FIND ALL REFS*/[|Class|] } from "./a"; +// +// var c = new [|Class|](); + + + +// === findAllReferences === +// === /a.ts === +// export class [|Class|] { +// } + +// === /b.ts === +// import { [|Class|] } from "./a"; +// +// var c = new /*FIND ALL REFS*/[|Class|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc new file mode 100644 index 0000000000..78284dcace --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /a.ts === +// export class /*FIND ALL REFS*/[|Class|] {} + +// === /b.ts === +// import { [|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + +// === /c.ts === +// export { [|Class|] as C3 } from "./a"; + + + +// === findAllReferences === +// === /a.ts === +// export class [|Class|] {} + +// === /b.ts === +// import { /*FIND ALL REFS*/[|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + +// === /c.ts === +// export { [|Class|] as C3 } from "./a"; + + + +// === findAllReferences === +// === /a.ts === +// export class [|Class|] {} + +// === /b.ts === +// import { [|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + +// === /c.ts === +// export { /*FIND ALL REFS*/[|Class|] as C3 } from "./a"; + + + +// === findAllReferences === +// === /b.ts === +// import { Class as /*FIND ALL REFS*/[|C2|] } from "./a"; +// var c = new [|C2|](); + + + +// === findAllReferences === +// === /b.ts === +// import { Class as [|C2|] } from "./a"; +// var c = new /*FIND ALL REFS*/[|C2|](); + + + +// === findAllReferences === +// === /c.ts === +// export { Class as /*FIND ALL REFS*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc new file mode 100644 index 0000000000..ff228b6549 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /findAllRefsOnPrivateParameterProperty1.ts === +// class ABCD { +// constructor(private x: number, public y: number, /*FIND ALL REFS*/private [|z|]: number) { +// } +// +// func() { +// return this.[|z|]; +// } +// } + + + +// === findAllReferences === +// === /findAllRefsOnPrivateParameterProperty1.ts === +// class ABCD { +// constructor(private x: number, public y: number, private /*FIND ALL REFS*/[|z|]: number) { +// } +// +// func() { +// return this.[|z|]; +// } +// } + + + +// === findAllReferences === +// === /findAllRefsOnPrivateParameterProperty1.ts === +// class ABCD { +// constructor(private x: number, public y: number, private [|z|]: number) { +// } +// +// func() { +// return this./*FIND ALL REFS*/[|z|]; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc new file mode 100644 index 0000000000..86c9802651 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration1.ts === +// class Foo { +// constructor(private /*FIND ALL REFS*/[|privateParam|]: number) { +// let localPrivate = [|privateParam|]; +// this.[|privateParam|] += 10; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc new file mode 100644 index 0000000000..9a12ebdbb9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration2.ts === +// class Foo { +// constructor(public /*FIND ALL REFS*/[|publicParam|]: number) { +// let localPublic = [|publicParam|]; +// this.[|publicParam|] += 10; +// } +// } + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration2.ts === +// class Foo { +// constructor(public [|publicParam|]: number) { +// let localPublic = /*FIND ALL REFS*/[|publicParam|]; +// this.[|publicParam|] += 10; +// } +// } + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration2.ts === +// class Foo { +// constructor(public [|publicParam|]: number) { +// let localPublic = [|publicParam|]; +// this./*FIND ALL REFS*/[|publicParam|] += 10; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc new file mode 100644 index 0000000000..3c60be1d26 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration3.ts === +// class Foo { +// constructor(protected /*FIND ALL REFS*/[|protectedParam|]: number) { +// let localProtected = [|protectedParam|]; +// this.[|protectedParam|] += 10; +// } +// } + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration3.ts === +// class Foo { +// constructor(protected [|protectedParam|]: number) { +// let localProtected = /*FIND ALL REFS*/[|protectedParam|]; +// this.[|protectedParam|] += 10; +// } +// } + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration3.ts === +// class Foo { +// constructor(protected [|protectedParam|]: number) { +// let localProtected = [|protectedParam|]; +// this./*FIND ALL REFS*/[|protectedParam|] += 10; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc new file mode 100644 index 0000000000..035894ef83 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc @@ -0,0 +1,54 @@ +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === +// class C { +// constructor(public /*FIND ALL REFS*/[|x|]: string) { +// [|x|]; +// } +// } +// class D extends C { +// constructor(public [|x|]: string) { +// super([|x|]); +// } +// } + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === +// class C { +// constructor(public [|x|]: string) { +// /*FIND ALL REFS*/[|x|]; +// } +// } +// class D extends C { +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === +// class C { +// constructor(public [|x|]: string) { +// [|x|]; +// } +// } +// class D extends C { +// constructor(public /*FIND ALL REFS*/[|x|]: string) { +// super([|x|]); +// } +// } + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === +// class C { +// constructor(public [|x|]: string) { +// [|x|]; +// } +// } +// class D extends C { +// constructor(public [|x|]: string) { +// super(/*FIND ALL REFS*/[|x|]); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc new file mode 100644 index 0000000000..0b90e046e7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc @@ -0,0 +1,37 @@ +// === findAllReferences === +// === /findAllRefsPrimitiveJsDoc.ts === +// /** +// * @param {/*FIND ALL REFS*/[|number|]} n +// * @returns {[|number|]} +// */ +// function f(n: [|number|]): [|number|] {} + + + +// === findAllReferences === +// === /findAllRefsPrimitiveJsDoc.ts === +// /** +// * @param {[|number|]} n +// * @returns {/*FIND ALL REFS*/[|number|]} +// */ +// function f(n: [|number|]): [|number|] {} + + + +// === findAllReferences === +// === /findAllRefsPrimitiveJsDoc.ts === +// /** +// * @param {[|number|]} n +// * @returns {[|number|]} +// */ +// function f(n: /*FIND ALL REFS*/[|number|]): [|number|] {} + + + +// === findAllReferences === +// === /findAllRefsPrimitiveJsDoc.ts === +// /** +// * @param {[|number|]} n +// * @returns {[|number|]} +// */ +// function f(n: [|number|]): /*FIND ALL REFS*/[|number|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc new file mode 100644 index 0000000000..590bc48285 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc @@ -0,0 +1,142 @@ +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// class C { +// /*FIND ALL REFS*/get [|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// class C { +// get /*FIND ALL REFS*/[|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// class C { +// get [|#foo|](){ return 1; } +// /*FIND ALL REFS*/set [|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// class C { +// get [|#foo|](){ return 1; } +// set /*FIND ALL REFS*/[|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// class C { +// get [|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this./*FIND ALL REFS*/[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// --- (line: 11) skipped --- +// } +// } +// class E { +// /*FIND ALL REFS*/get [|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// --- (line: 11) skipped --- +// } +// } +// class E { +// get /*FIND ALL REFS*/[|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// --- (line: 11) skipped --- +// } +// } +// class E { +// get [|#foo|](){ return 1; } +// /*FIND ALL REFS*/set [|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// --- (line: 11) skipped --- +// } +// } +// class E { +// get [|#foo|](){ return 1; } +// set /*FIND ALL REFS*/[|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === +// --- (line: 11) skipped --- +// } +// } +// class E { +// get [|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this./*FIND ALL REFS*/[|#foo|](); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc new file mode 100644 index 0000000000..b115a88835 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc @@ -0,0 +1,51 @@ +// === findAllReferences === +// === /findAllRefsPrivateNameMethods.ts === +// class C { +// /*FIND ALL REFS*/[|#foo|](){ } +// constructor() { +// this.[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 8) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameMethods.ts === +// class C { +// [|#foo|](){ } +// constructor() { +// this./*FIND ALL REFS*/[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 8) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameMethods.ts === +// --- (line: 10) skipped --- +// } +// } +// class E { +// /*FIND ALL REFS*/[|#foo|](){ } +// constructor() { +// this.[|#foo|](); +// } +// } + + + +// === findAllReferences === +// === /findAllRefsPrivateNameMethods.ts === +// --- (line: 10) skipped --- +// } +// } +// class E { +// [|#foo|](){ } +// constructor() { +// this./*FIND ALL REFS*/[|#foo|](); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc new file mode 100644 index 0000000000..cbc205cc2d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc @@ -0,0 +1,67 @@ +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === +// class C { +// /*FIND ALL REFS*/[|#foo|] = 10; +// constructor() { +// this.[|#foo|] = 20; +// [|#foo|] in this; +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === +// class C { +// [|#foo|] = 10; +// constructor() { +// this./*FIND ALL REFS*/[|#foo|] = 20; +// [|#foo|] in this; +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === +// class C { +// [|#foo|] = 10; +// constructor() { +// this.[|#foo|] = 20; +// /*FIND ALL REFS*/[|#foo|] in this; +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === +// --- (line: 11) skipped --- +// } +// } +// class E { +// /*FIND ALL REFS*/[|#foo|]: number; +// constructor() { +// this.[|#foo|] = 20; +// } +// } + + + +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === +// --- (line: 11) skipped --- +// } +// } +// class E { +// [|#foo|]: number; +// constructor() { +// this./*FIND ALL REFS*/[|#foo|] = 20; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc new file mode 100644 index 0000000000..8700a8fdc9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /findAllRefsPropertyContextuallyTypedByTypeParam01.ts === +// interface IFoo { +// /*FIND ALL REFS*/[|a|]: string; +// } +// class C { +// method() { +// var x: T = { +// [|a|]: "" +// }; +// x.[|a|]; +// } +// } +// +// +// var x: IFoo = { +// [|a|]: "ss" +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken.baseline.jsonc new file mode 100644 index 0000000000..68ba7882f2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/export { x }; + + + +// === findAllReferences === +// === /a.ts === +// export { /*FIND ALL REFS*/x }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc new file mode 100644 index 0000000000..6dc48c5a33 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/export { x } from "nonsense"; + + + +// === findAllReferences === +// === /a.ts === +// export { /*FIND ALL REFS*/x } from "nonsense"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc new file mode 100644 index 0000000000..443196f6f9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === +// interface A { +// readonly /*FIND ALL REFS*/[|x|]: number | string; +// } +// interface B extends A { +// readonly [|x|]: number; +// } +// const a: A = { [|x|]: 0 }; +// const b: B = { [|x|]: 0 }; + + + +// === findAllReferences === +// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === +// interface A { +// readonly [|x|]: number | string; +// } +// interface B extends A { +// readonly /*FIND ALL REFS*/[|x|]: number; +// } +// const a: A = { [|x|]: 0 }; +// const b: B = { [|x|]: 0 }; + + + +// === findAllReferences === +// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === +// interface A { +// readonly [|x|]: number | string; +// } +// interface B extends A { +// readonly [|x|]: number; +// } +// const a: A = { /*FIND ALL REFS*/[|x|]: 0 }; +// const b: B = { [|x|]: 0 }; + + + +// === findAllReferences === +// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === +// interface A { +// readonly [|x|]: number | string; +// } +// interface B extends A { +// readonly [|x|]: number; +// } +// const a: A = { [|x|]: 0 }; +// const b: B = { /*FIND ALL REFS*/[|x|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc new file mode 100644 index 0000000000..68ecb662d8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /findAllRefsRootSymbols.ts === +// interface I { /*FIND ALL REFS*/[|x|]: {}; } +// interface J { x: {}; } +// declare const o: (I | J) & { x: string }; +// o.[|x|]; + + + +// === findAllReferences === +// === /findAllRefsRootSymbols.ts === +// interface I { x: {}; } +// interface J { /*FIND ALL REFS*/[|x|]: {}; } +// declare const o: (I | J) & { x: string }; +// o.[|x|]; + + + +// === findAllReferences === +// === /findAllRefsRootSymbols.ts === +// interface I { x: {}; } +// interface J { x: {}; } +// declare const o: (I | J) & { /*FIND ALL REFS*/[|x|]: string }; +// o.[|x|]; + + + +// === findAllReferences === +// === /findAllRefsRootSymbols.ts === +// interface I { [|x|]: {}; } +// interface J { [|x|]: {}; } +// declare const o: (I | J) & { [|x|]: string }; +// o./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc new file mode 100644 index 0000000000..f8e13748e3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc @@ -0,0 +1,149 @@ +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// /*FIND ALL REFS*/[|this|]; +// function f(this) { +// return this; +// function g(this) { return this; } +// // --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// this; +// function f(/*FIND ALL REFS*/[|this|]) { +// return [|this|]; +// function g(this) { return this; } +// } +// class C { +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// this; +// function f([|this|]) { +// return /*FIND ALL REFS*/[|this|]; +// function g(this) { return this; } +// } +// class C { +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// this; +// function f(this) { +// return this; +// function g(/*FIND ALL REFS*/[|this|]) { return [|this|]; } +// } +// class C { +// static x() { +// // --- (line: 8) skipped --- + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// this; +// function f(this) { +// return this; +// function g([|this|]) { return /*FIND ALL REFS*/[|this|]; } +// } +// class C { +// static x() { +// // --- (line: 8) skipped --- + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// --- (line: 4) skipped --- +// } +// class C { +// static x() { +// /*FIND ALL REFS*/[|this|]; +// } +// static y() { +// () => [|this|]; +// } +// constructor() { +// this; +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// --- (line: 4) skipped --- +// } +// class C { +// static x() { +// [|this|]; +// } +// static y() { +// () => /*FIND ALL REFS*/[|this|]; +// } +// constructor() { +// this; +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// --- (line: 10) skipped --- +// () => this; +// } +// constructor() { +// /*FIND ALL REFS*/[|this|]; +// } +// method() { +// () => [|this|]; +// } +// } +// // These are *not* real uses of the 'this' keyword, they are identifiers. +// const x = { this: 0 } +// x.this; + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// --- (line: 10) skipped --- +// () => this; +// } +// constructor() { +// [|this|]; +// } +// method() { +// () => /*FIND ALL REFS*/[|this|]; +// } +// } +// // These are *not* real uses of the 'this' keyword, they are identifiers. +// const x = { this: 0 } +// x.this; + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// --- (line: 17) skipped --- +// } +// } +// // These are *not* real uses of the 'this' keyword, they are identifiers. +// const x = { /*FIND ALL REFS*/[|this|]: 0 } +// x.[|this|]; + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === +// --- (line: 17) skipped --- +// } +// } +// // These are *not* real uses of the 'this' keyword, they are identifiers. +// const x = { [|this|]: 0 } +// x./*FIND ALL REFS*/[|this|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc new file mode 100644 index 0000000000..1864e0a2c2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc @@ -0,0 +1,55 @@ +// === findAllReferences === +// === /file1.ts === +// /*FIND ALL REFS*/[|this|]; [|this|]; + + + +// === findAllReferences === +// === /file1.ts === +// [|this|]; /*FIND ALL REFS*/[|this|]; + + + +// === findAllReferences === +// === /file2.ts === +// /*FIND ALL REFS*/[|this|]; +// [|this|]; + + + +// === findAllReferences === +// === /file2.ts === +// [|this|]; +// /*FIND ALL REFS*/[|this|]; + + + +// === findAllReferences === +// === /file3.ts === +// ((x = /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); +// // different 'this' +// function f(this) { return this; } + + + +// === findAllReferences === +// === /file3.ts === +// ((x = [|this|], y) => /*FIND ALL REFS*/[|this|])([|this|], [|this|]); +// // different 'this' +// function f(this) { return this; } + + + +// === findAllReferences === +// === /file3.ts === +// ((x = [|this|], y) => [|this|])(/*FIND ALL REFS*/[|this|], [|this|]); +// // different 'this' +// function f(this) { return this; } + + + +// === findAllReferences === +// === /file3.ts === +// ((x = [|this|], y) => [|this|])([|this|], /*FIND ALL REFS*/[|this|]); +// // different 'this' +// function f(this) { return this; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc new file mode 100644 index 0000000000..2573cb4e41 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /findAllRefsTypeParameterInMergedInterface.ts === +// interface I { a: [|T|] } +// interface I<[|T|]> { b: [|T|] } + + + +// === findAllReferences === +// === /findAllRefsTypeParameterInMergedInterface.ts === +// interface I<[|T|]> { a: /*FIND ALL REFS*/[|T|] } +// interface I<[|T|]> { b: [|T|] } + + + +// === findAllReferences === +// === /findAllRefsTypeParameterInMergedInterface.ts === +// interface I<[|T|]> { a: [|T|] } +// interface I { b: [|T|] } + + + +// === findAllReferences === +// === /findAllRefsTypeParameterInMergedInterface.ts === +// interface I<[|T|]> { a: [|T|] } +// interface I<[|T|]> { b: /*FIND ALL REFS*/[|T|] } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc new file mode 100644 index 0000000000..1065a70060 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /a.js === +// /** +// * @typedef I {Object} +// * /*FIND ALL REFS*/@prop p {number} +// */ +// +// /** @type {I} */ +// let x; +// x.p; + + + +// === findAllReferences === +// === /a.js === +// /** +// * @typedef I {Object} +// * @prop /*FIND ALL REFS*/[|p|] {number} +// */ +// +// /** @type {I} */ +// let x; +// x.[|p|]; + + + +// === findAllReferences === +// === /a.js === +// /** +// * @typedef I {Object} +// * @prop [|p|] {number} +// */ +// +// /** @type {I} */ +// let x; +// x./*FIND ALL REFS*/[|p|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc new file mode 100644 index 0000000000..d58e4feb85 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /a.js === +// module.exports = 0; +// /** /*FIND ALL REFS*/@typedef {number} Foo */ +// const dummy = 0; + + + +// === findAllReferences === +// === /a.js === +// module.exports = 0; +// /** @typedef {number} /*FIND ALL REFS*/[|Foo|] */ +// const dummy = 0; + +// === /b.js === +// /** @type {import('./a').[|Foo|]} */ +// const x = 0; + + + +// === findAllReferences === +// === /b.js === +// /** @type {import('./a')./*FIND ALL REFS*/Foo} */ +// const x = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc new file mode 100644 index 0000000000..96b25fccdf --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/export const x = 0; +// declare const a: typeof import("./a"); +// a.x; + + + +// === findAllReferences === +// === /a.ts === +// export const /*FIND ALL REFS*/[|x|] = 0; +// declare const a: typeof import("./a"); +// a.[|x|]; + + + +// === findAllReferences === +// === /a.ts === +// export const [|x|] = 0; +// declare const a: typeof import("./a"); +// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc new file mode 100644 index 0000000000..7eb77a494a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc @@ -0,0 +1,150 @@ +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { /*FIND ALL REFS*/[|type|]: "a", prop: number } +// | { [|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t.[|type|]; +// } else { +// t.[|type|]; +// } + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { [|type|]: "a", prop: number } +// | { /*FIND ALL REFS*/[|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t.[|type|]; +// } else { +// t.[|type|]; +// } + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { [|type|]: "a", prop: number } +// | { [|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t./*FIND ALL REFS*/[|type|] === "a") { +// t.[|type|]; +// } else { +// t.[|type|]; +// } + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { [|type|]: "a", prop: number } +// | { [|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t./*FIND ALL REFS*/[|type|]; +// } else { +// t.[|type|]; +// } + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { [|type|]: "a", prop: number } +// | { [|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t.[|type|]; +// } else { +// t./*FIND ALL REFS*/[|type|]; +// } + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { [|type|]: "a", prop: number } +// | { type: "b", prop: string }; +// const tt: T = { +// /*FIND ALL REFS*/[|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t.[|type|]; +// } else { +// t.type; +// } + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { type: "a", /*FIND ALL REFS*/[|prop|]: number } +// | { type: "b", [|prop|]: string }; +// const tt: T = { +// type: "a", +// [|prop|]: 0, +// }; +// declare const t: T; +// if (t.type === "a") { +// // --- (line: 10) skipped --- + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { type: "a", [|prop|]: number } +// | { type: "b", /*FIND ALL REFS*/[|prop|]: string }; +// const tt: T = { +// type: "a", +// [|prop|]: 0, +// }; +// declare const t: T; +// if (t.type === "a") { +// // --- (line: 10) skipped --- + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === +// type T = +// | { type: "a", [|prop|]: number } +// | { type: "b", prop: string }; +// const tt: T = { +// type: "a", +// /*FIND ALL REFS*/[|prop|]: 0, +// }; +// declare const t: T; +// if (t.type === "a") { +// // --- (line: 10) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc new file mode 100644 index 0000000000..c65b6a9fb7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc @@ -0,0 +1,107 @@ +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: /*FIND ALL REFS*/[|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: [|Bar|]; +// let b: /*FIND ALL REFS*/[|Bar|]; +// let c: [|Bar|]; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: /*FIND ALL REFS*/[|Bar|]; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: /*FIND ALL REFS*/[|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: [|Bar|].X; +// let e: /*FIND ALL REFS*/[|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: /*FIND ALL REFS*/[|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar./*FIND ALL REFS*/[|X|]; +// let e: Bar.[|X|]; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.[|X|]; +// let e: Bar./*FIND ALL REFS*/[|X|]; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar./*FIND ALL REFS*/[|X|].Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc new file mode 100644 index 0000000000..d542f719cd --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc @@ -0,0 +1,134 @@ +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { /*FIND ALL REFS*/[|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { [|Bar|] } from "does-not-exist"; +// +// let a: /*FIND ALL REFS*/[|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: /*FIND ALL REFS*/[|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: /*FIND ALL REFS*/[|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: /*FIND ALL REFS*/[|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: /*FIND ALL REFS*/[|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: /*FIND ALL REFS*/[|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { Bar } from "does-not-exist"; +// +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar./*FIND ALL REFS*/[|X|]; +// let e: Bar.[|X|]; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// import { Bar } from "does-not-exist"; +// +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.[|X|]; +// let e: Bar./*FIND ALL REFS*/[|X|]; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// --- (line: 4) skipped --- +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar./*FIND ALL REFS*/[|X|].Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === +// --- (line: 4) skipped --- +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc new file mode 100644 index 0000000000..890fd6f9b0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc @@ -0,0 +1,134 @@ +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as /*FIND ALL REFS*/[|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as [|Bar|] from "does-not-exist"; +// +// let a: /*FIND ALL REFS*/[|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: /*FIND ALL REFS*/[|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: /*FIND ALL REFS*/[|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: /*FIND ALL REFS*/[|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: /*FIND ALL REFS*/[|Bar|].X; +// let f: [|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: /*FIND ALL REFS*/[|Bar|].X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as Bar from "does-not-exist"; +// +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar./*FIND ALL REFS*/[|X|]; +// let e: Bar.[|X|]; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// import * as Bar from "does-not-exist"; +// +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.[|X|]; +// let e: Bar./*FIND ALL REFS*/[|X|]; +// let f: Bar.X.Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// --- (line: 4) skipped --- +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar./*FIND ALL REFS*/[|X|].Y; + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === +// --- (line: 4) skipped --- +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc new file mode 100644 index 0000000000..38bc2fe401 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames1.ts === +// class Foo { +// /*FIND ALL REFS*/public [|_bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|_bar|]; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames1.ts === +// class Foo { +// public /*FIND ALL REFS*/[|_bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|_bar|]; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames1.ts === +// class Foo { +// public [|_bar|]() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|_bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc new file mode 100644 index 0000000000..def74d86dd --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames2.ts === +// class Foo { +// /*FIND ALL REFS*/public [|__bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|__bar|]; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames2.ts === +// class Foo { +// public /*FIND ALL REFS*/[|__bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|__bar|]; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames2.ts === +// class Foo { +// public [|__bar|]() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|__bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc new file mode 100644 index 0000000000..b1c169241e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames3.ts === +// class Foo { +// /*FIND ALL REFS*/public [|___bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|___bar|]; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames3.ts === +// class Foo { +// public /*FIND ALL REFS*/[|___bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|___bar|]; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames3.ts === +// class Foo { +// public [|___bar|]() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|___bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc new file mode 100644 index 0000000000..ba04ab6467 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames4.ts === +// class Foo { +// /*FIND ALL REFS*/public [|____bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|____bar|]; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames4.ts === +// class Foo { +// public /*FIND ALL REFS*/[|____bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|____bar|]; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames4.ts === +// class Foo { +// public [|____bar|]() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|____bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc new file mode 100644 index 0000000000..18e8118cfb --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc @@ -0,0 +1,48 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames5.ts === +// class Foo { +// public _bar; +// public __bar; +// /*FIND ALL REFS*/public [|___bar|]; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x.__bar; +// x.[|___bar|]; +// x.____bar; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames5.ts === +// class Foo { +// public _bar; +// public __bar; +// public /*FIND ALL REFS*/[|___bar|]; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x.__bar; +// x.[|___bar|]; +// x.____bar; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames5.ts === +// class Foo { +// public _bar; +// public __bar; +// public [|___bar|]; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x.__bar; +// x./*FIND ALL REFS*/[|___bar|]; +// x.____bar; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc new file mode 100644 index 0000000000..371052938b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc @@ -0,0 +1,48 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames6.ts === +// class Foo { +// public _bar; +// /*FIND ALL REFS*/public [|__bar|]; +// public ___bar; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x.[|__bar|]; +// x.___bar; +// x.____bar; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames6.ts === +// class Foo { +// public _bar; +// public /*FIND ALL REFS*/[|__bar|]; +// public ___bar; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x.[|__bar|]; +// x.___bar; +// x.____bar; + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames6.ts === +// class Foo { +// public _bar; +// public [|__bar|]; +// public ___bar; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x./*FIND ALL REFS*/[|__bar|]; +// x.___bar; +// x.____bar; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc new file mode 100644 index 0000000000..46abb67ad4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames7.ts === +// /*FIND ALL REFS*/function [|__foo|]() { +// [|__foo|](); +// } + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames7.ts === +// function /*FIND ALL REFS*/[|__foo|]() { +// [|__foo|](); +// } + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames7.ts === +// function [|__foo|]() { +// /*FIND ALL REFS*/[|__foo|](); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc new file mode 100644 index 0000000000..16510e0f5b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames8.ts === +// (/*FIND ALL REFS*/function __foo() { +// __foo(); +// }) + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames8.ts === +// (function /*FIND ALL REFS*/__foo() { +// [|__foo|](); +// }) + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames8.ts === +// (function __foo() { +// /*FIND ALL REFS*/[|__foo|](); +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc new file mode 100644 index 0000000000..099cdfee54 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames9.ts === +// (/*FIND ALL REFS*/function ___foo() { +// ___foo(); +// }) + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames9.ts === +// (function /*FIND ALL REFS*/___foo() { +// [|___foo|](); +// }) + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames9.ts === +// (function ___foo() { +// /*FIND ALL REFS*/[|___foo|](); +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc new file mode 100644 index 0000000000..1666c1f148 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc @@ -0,0 +1,47 @@ +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === +// var /*FIND ALL REFS*/[|name|] = "Foo"; +// +// var obj = { name }; +// var obj1 = { name: name }; +// obj.name; + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === +// var name = "Foo"; +// +// var obj = { [|name|] }; +// var obj1 = { name: /*FIND ALL REFS*/[|name|] }; +// obj.name; + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === +// var name = "Foo"; +// +// var obj = { /*FIND ALL REFS*/[|name|] }; +// var obj1 = { name: [|name|] }; +// obj.[|name|]; + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === +// var name = "Foo"; +// +// var obj = { name }; +// var obj1 = { /*FIND ALL REFS*/[|name|]: name }; +// obj.name; + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === +// var name = "Foo"; +// +// var obj = { [|name|] }; +// var obj1 = { name: name }; +// obj./*FIND ALL REFS*/[|name|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc new file mode 100644 index 0000000000..4aa27d262c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc @@ -0,0 +1,46 @@ +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment2.ts === +// var /*FIND ALL REFS*/[|dx|] = "Foo"; +// +// module M { export var dx; } +// module M { +// // --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment2.ts === +// var dx = "Foo"; +// +// module M { export var /*FIND ALL REFS*/[|dx|]; } +// module M { +// var z = 100; +// export var y = { [|dx|], z }; +// } +// M.y.dx; + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment2.ts === +// var dx = "Foo"; +// +// module M { export var [|dx|]; } +// module M { +// var z = 100; +// export var y = { /*FIND ALL REFS*/[|dx|], z }; +// } +// M.y.[|dx|]; + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment2.ts === +// var dx = "Foo"; +// +// module M { export var dx; } +// module M { +// var z = 100; +// export var y = { [|dx|], z }; +// } +// M.y./*FIND ALL REFS*/[|dx|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc new file mode 100644 index 0000000000..23ff101c44 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc @@ -0,0 +1,19 @@ +// === findAllReferences === +// === /findAllRefsWriteAccess.ts === +// interface Obj { +// [`/*FIND ALL REFS*/[|num|]`]: number; +// } +// +// let o: Obj = { +// [`[|num|]`]: 0 +// }; +// +// o = { +// ['[|num|]']: 1 +// }; +// +// o['[|num|]'] = 2; +// o[`[|num|]`] = 3; +// +// o['[|num|]']; +// o[`[|num|]`]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc new file mode 100644 index 0000000000..a59140e4ff --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /a.js === +// /** +// * @callback /*FIND ALL REFS*/[|A|] +// * @param {unknown} response +// */ +// +// module.exports = {}; + +// === /b.js === +// /** @typedef {import("./a").[|A|]} A */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc new file mode 100644 index 0000000000..a39cb0e4e4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc @@ -0,0 +1,59 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/export type [|T|] = 0; +// export const T = 0; + +// === /b.ts === +// const x: import("./a").[|T|] = 0; +// const x: typeof import("./a").T = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type /*FIND ALL REFS*/[|T|] = 0; +// export const T = 0; + +// === /b.ts === +// const x: import("./a").[|T|] = 0; +// const x: typeof import("./a").T = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type T = 0; +// /*FIND ALL REFS*/export const T = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type T = 0; +// export const /*FIND ALL REFS*/[|T|] = 0; + +// === /b.ts === +// const x: import("./a").T = 0; +// const x: typeof import("./a").[|T|] = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type [|T|] = 0; +// export const T = 0; + +// === /b.ts === +// const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; +// const x: typeof import("./a").T = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type T = 0; +// export const [|T|] = 0; + +// === /b.ts === +// const x: import("./a").T = 0; +// const x: typeof import("./a")./*FIND ALL REFS*/[|T|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc new file mode 100644 index 0000000000..2d8b8e38a2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc @@ -0,0 +1,63 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/export type [|T|] = number; +// export type U = string; + +// === /b.ts === +// const x: import("./a").[|T|] = 0; +// const x: import("./a").U = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type /*FIND ALL REFS*/[|T|] = number; +// export type U = string; + +// === /b.ts === +// const x: import("./a").[|T|] = 0; +// const x: import("./a").U = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type T = number; +// /*FIND ALL REFS*/export type [|U|] = string; + +// === /b.ts === +// const x: import("./a").T = 0; +// const x: import("./a").[|U|] = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type T = number; +// export type /*FIND ALL REFS*/[|U|] = string; + +// === /b.ts === +// const x: import("./a").T = 0; +// const x: import("./a").[|U|] = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type [|T|] = number; +// export type U = string; + +// === /b.ts === +// const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; +// const x: import("./a").U = 0; + + + +// === findAllReferences === +// === /a.ts === +// export type T = number; +// export type [|U|] = string; + +// === /b.ts === +// const x: import("./a").T = 0; +// const x: import("./a")./*FIND ALL REFS*/[|U|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_typeofImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_typeofImport.baseline.jsonc new file mode 100644 index 0000000000..b1dc44da2b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_typeofImport.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /b.ts === +// /*FIND ALL REFS*/const [|x|]: typeof import("./a") = { x: 0 }; +// const y: typeof import("./a") = { x: 0 }; + + + +// === findAllReferences === +// === /b.ts === +// const x: typeof import("/*FIND ALL REFS*/[|./a|]") = { x: 0 }; +// const y: typeof import("[|./a|]") = { x: 0 }; + + + +// === findAllReferences === +// === /b.ts === +// const x: typeof import("./a") = { x: 0 }; +// /*FIND ALL REFS*/const [|y|]: typeof import("./a") = { x: 0 }; + + + +// === findAllReferences === +// === /b.ts === +// const x: typeof import("[|./a|]") = { x: 0 }; +// const y: typeof import("/*FIND ALL REFS*/[|./a|]") = { x: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc new file mode 100644 index 0000000000..77cd5d46e7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc @@ -0,0 +1,47 @@ +// === findAllReferences === +// === /a.js === +// /** @enum {string} */ +// /*FIND ALL REFS*/const [|E|] = { A: "" }; +// [|E|]["A"]; +// /** @type {E} */ +// const e = [|E|].A; + + + +// === findAllReferences === +// === /a.js === +// /** @enum {string} */ +// const /*FIND ALL REFS*/[|E|] = { A: "" }; +// [|E|]["A"]; +// /** @type {E} */ +// const e = [|E|].A; + + + +// === findAllReferences === +// === /a.js === +// /** @enum {string} */ +// const [|E|] = { A: "" }; +// /*FIND ALL REFS*/[|E|]["A"]; +// /** @type {E} */ +// const e = [|E|].A; + + + +// === findAllReferences === +// === /a.js === +// /** @enum {string} */ +// const E = { A: "" }; +// E["A"]; +// /** @type {/*FIND ALL REFS*/[|E|]} */ +// const e = E.A; + + + +// === findAllReferences === +// === /a.js === +// /** @enum {string} */ +// const [|E|] = { A: "" }; +// [|E|]["A"]; +// /** @type {E} */ +// const e = /*FIND ALL REFS*/[|E|].A; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..2b80f1d44d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc @@ -0,0 +1,53 @@ +// === findAllReferences === +// === /a.ts === +// /*FIND ALL REFS*/var [|x|]: number; + +// === /b.ts === +// /// +// [|x|]++; + +// === /c.ts === +// /// +// [|x|]++; + + + +// === findAllReferences === +// === /a.ts === +// var /*FIND ALL REFS*/[|x|]: number; + +// === /b.ts === +// /// +// [|x|]++; + +// === /c.ts === +// /// +// [|x|]++; + + + +// === findAllReferences === +// === /a.ts === +// var [|x|]: number; + +// === /b.ts === +// /// +// /*FIND ALL REFS*/[|x|]++; + +// === /c.ts === +// /// +// [|x|]++; + + + +// === findAllReferences === +// === /a.ts === +// var [|x|]: number; + +// === /b.ts === +// /// +// [|x|]++; + +// === /c.ts === +// /// +// /*FIND ALL REFS*/[|x|]++; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAfterEdit.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAfterEdit.baseline.jsonc new file mode 100644 index 0000000000..6564e1d11a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAfterEdit.baseline.jsonc @@ -0,0 +1,59 @@ +// === findAllReferences === +// === /a.ts === +// interface A { +// /*FIND ALL REFS*/[|foo|]: string; +// } + +// === /b.ts === +// /// +// +// function foo(x: A) { +// x.[|foo|] +// } + + + +// === findAllReferences === +// === /a.ts === +// interface A { +// [|foo|]: string; +// } + +// === /b.ts === +// /// +// +// function foo(x: A) { +// x./*FIND ALL REFS*/[|foo|] +// } + + + +// === findAllReferences === +// === /a.ts === +// interface A { +// /*FIND ALL REFS*/[|foo|]: string; +// } + +// === /b.ts === +// /// +// +// +// function foo(x: A) { +// x.[|foo|] +// } + + + +// === findAllReferences === +// === /a.ts === +// interface A { +// [|foo|]: string; +// } + +// === /b.ts === +// /// +// +// +// function foo(x: A) { +// x./*FIND ALL REFS*/[|foo|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc new file mode 100644 index 0000000000..01bbfdfb3a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc @@ -0,0 +1,43 @@ +// === findAllReferences === +// === /findReferencesDefinitionDisplayParts.ts === +// class [|Gre/*FIND ALL REFS*/eter|] { +// someFunction() { this; } +// } +// +// // --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /findReferencesDefinitionDisplayParts.ts === +// class Greeter { +// someFunction() { [|th/*FIND ALL REFS*/is|]; } +// } +// +// type Options = "option 1" | "option 2"; +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /findReferencesDefinitionDisplayParts.ts === +// class Greeter { +// someFunction() { this; } +// } +// +// type Options = "opt/*FIND ALL REFS*/ion 1" | "option 2"; +// let myOption: Options = "option 1"; +// +// someLabel: +// break someLabel; + + + +// === findAllReferences === +// === /findReferencesDefinitionDisplayParts.ts === +// --- (line: 4) skipped --- +// type Options = "option 1" | "option 2"; +// let myOption: Options = "option 1"; +// +// [|some/*FIND ALL REFS*/Label|]: +// break [|someLabel|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc new file mode 100644 index 0000000000..b0d90630ef --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /RedditSubmission.ts === +// export const [|SubmissionComp|] = (submission: SubmissionProps) => +//
; + +// === /index.tsx === +// import { /*FIND ALL REFS*/[|SubmissionComp|] } from "./RedditSubmission" +// function displaySubreddit(subreddit: string) { +// let components = submissions +// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); +// } + + + +// === findAllReferences === +// === /RedditSubmission.ts === +// export const /*FIND ALL REFS*/[|SubmissionComp|] = (submission: SubmissionProps) => +//
; + +// === /index.tsx === +// import { [|SubmissionComp|] } from "./RedditSubmission" +// function displaySubreddit(subreddit: string) { +// let components = submissions +// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc new file mode 100644 index 0000000000..aac6454a10 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /index.tsx === +// /*FIND ALL REFS*/const [|obj|] = {Component: () =>
}; +// const element = <[|obj|].Component/>; + + + +// === findAllReferences === +// === /index.tsx === +// const /*FIND ALL REFS*/[|obj|] = {Component: () =>
}; +// const element = <[|obj|].Component/>; + + + +// === findAllReferences === +// === /index.tsx === +// const [|obj|] = {Component: () =>
}; +// const element = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName3.baseline.jsonc new file mode 100644 index 0000000000..253af58c2a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName3.baseline.jsonc @@ -0,0 +1,156 @@ +// === findAllReferences === +// === /a.tsx === +// namespace JSX { +// export interface Element { } +// export interface IntrinsicElements { +// /*FIND ALL REFS*/[|div|]: any; +// } +// } +// +// const Comp = () => +// <[|div|]> +// Some content +// <[|div|]>More content +// ; +// +// const x = +// Content +// ; + + + +// === findAllReferences === +// === /a.tsx === +// namespace JSX { +// export interface Element { } +// export interface IntrinsicElements { +// [|div|]: any; +// } +// } +// +// const Comp = () => +// +// Some content +// <[|div|]>More content +// ; +// +// const x = +// Content +// ; + + + +// === findAllReferences === +// === /a.tsx === +// namespace JSX { +// export interface Element { } +// export interface IntrinsicElements { +// [|div|]: any; +// } +// } +// +// const Comp = () => +// <[|div|]> +// Some content +// More content +// ; +// +// const x = +// Content +// ; + + + +// === findAllReferences === +// === /a.tsx === +// namespace JSX { +// export interface Element { } +// export interface IntrinsicElements { +// [|div|]: any; +// } +// } +// +// const Comp = () => +// <[|div|]> +// Some content +// <[|div|]>More content +// ; +// +// const x = +// Content +// ; + + + +// === findAllReferences === +// === /a.tsx === +// namespace JSX { +// export interface Element { } +// export interface IntrinsicElements { +// [|div|]: any; +// } +// } +// +// const Comp = () => +// <[|div|]> +// Some content +// <[|div|]>More content +// ; +// +// const x = +// Content +// ; + + + +// === findAllReferences === +// === /a.tsx === +// --- (line: 4) skipped --- +// } +// } +// +// const /*FIND ALL REFS*/[|Comp|] = () => +//
+// Some content +//
More content
+//
; +// +// const x = <[|Comp|]> +// Content +// ; + + + +// === findAllReferences === +// === /a.tsx === +// --- (line: 4) skipped --- +// } +// } +// +// const [|Comp|] = () => +//
+// Some content +//
More content
+//
; +// +// const x = +// Content +// ; + + + +// === findAllReferences === +// === /a.tsx === +// --- (line: 4) skipped --- +// } +// } +// +// const [|Comp|] = () => +//
+// Some content +//
More content
+//
; +// +// const x = <[|Comp|]> +// Content +// ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc new file mode 100644 index 0000000000..1c1a1e53e5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /findReferencesSeeTagInTs.ts === +// function [|doStuffWithStuff|]/*FIND ALL REFS*/(stuff: { quantity: number }) {} +// +// declare const stuff: { quantity: number }; +// /** @see {[|doStuffWithStuff|]} */ +// if (stuff.quantity) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc new file mode 100644 index 0000000000..45d4e9154c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfArrowFunction.ts === +// /*FIND ALL REFS*/var [|f|] = x => x + 1; +// [|f|](12); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfArrowFunction.ts === +// var /*FIND ALL REFS*/[|f|] = x => x + 1; +// [|f|](12); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfArrowFunction.ts === +// var [|f|] = x => x + 1; +// /*FIND ALL REFS*/[|f|](12); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc new file mode 100644 index 0000000000..7b39ee9210 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfBindingPattern.ts === +// const { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; +// const z = [|x|]; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfBindingPattern.ts === +// const { [|x|], y } = { /*FIND ALL REFS*/[|x|]: 1, y: 2 }; +// const z = x; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfBindingPattern.ts === +// const { [|x|], y } = { x: 1, y: 2 }; +// const z = /*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc new file mode 100644 index 0000000000..250b824282 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfClass.ts === +// /*FIND ALL REFS*/class [|C|] { +// n: number; +// constructor() { +// this.n = 12; +// } +// } +// let c = new [|C|](); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfClass.ts === +// class /*FIND ALL REFS*/[|C|] { +// n: number; +// constructor() { +// this.n = 12; +// } +// } +// let c = new [|C|](); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfClass.ts === +// class [|C|] { +// n: number; +// constructor() { +// this.n = 12; +// } +// } +// let c = new /*FIND ALL REFS*/[|C|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc new file mode 100644 index 0000000000..01ccd7b8dc --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc @@ -0,0 +1,29 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfComputedProperty.ts === +// let o = { /*FIND ALL REFS*/["foo"]: 12 }; +// let y = o.foo; +// let z = o['foo']; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfComputedProperty.ts === +// let o = { ["/*FIND ALL REFS*/[|foo|]"]: 12 }; +// let y = o.[|foo|]; +// let z = o['[|foo|]']; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfComputedProperty.ts === +// let o = { ["[|foo|]"]: 12 }; +// let y = o./*FIND ALL REFS*/[|foo|]; +// let z = o['[|foo|]']; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfComputedProperty.ts === +// let o = { ["[|foo|]"]: 12 }; +// let y = o.[|foo|]; +// let z = o['/*FIND ALL REFS*/[|foo|]']; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc new file mode 100644 index 0000000000..fc51da704e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfEnum.ts === +// /*FIND ALL REFS*/enum [|E|] { +// First, +// Second +// } +// let first = [|E|].First; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfEnum.ts === +// enum /*FIND ALL REFS*/[|E|] { +// First, +// Second +// } +// let first = [|E|].First; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfEnum.ts === +// enum [|E|] { +// First, +// Second +// } +// let first = /*FIND ALL REFS*/[|E|].First; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc new file mode 100644 index 0000000000..75f7ea71d1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc @@ -0,0 +1,17 @@ +// === findAllReferences === +// === /m.ts === +// export var /*FIND ALL REFS*/[|x|] = 12; + +// === /main.ts === +// import { [|x|] } from "./m"; +// const y = [|x|]; + + + +// === findAllReferences === +// === /m.ts === +// export var [|x|] = 12; + +// === /main.ts === +// import { /*FIND ALL REFS*/[|x|] } from "./m"; +// const y = [|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc new file mode 100644 index 0000000000..fb25553e8f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfFunction.ts === +// /*FIND ALL REFS*/function [|func|](x: number) { +// } +// [|func|](x) + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfFunction.ts === +// function /*FIND ALL REFS*/[|func|](x: number) { +// } +// [|func|](x) + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfFunction.ts === +// function [|func|](x: number) { +// } +// /*FIND ALL REFS*/[|func|](x) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc new file mode 100644 index 0000000000..3465e29156 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterface.ts === +// /*FIND ALL REFS*/interface [|I|] { +// p: number; +// } +// let i: [|I|] = { p: 12 }; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterface.ts === +// interface /*FIND ALL REFS*/[|I|] { +// p: number; +// } +// let i: [|I|] = { p: 12 }; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterface.ts === +// interface [|I|] { +// p: number; +// } +// let i: /*FIND ALL REFS*/[|I|] = { p: 12 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc new file mode 100644 index 0000000000..06b881e54c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc @@ -0,0 +1,141 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === +// /*FIND ALL REFS*/interface [|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === +// interface /*FIND ALL REFS*/[|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === +// interface [|Numbers|] { +// p: number; +// } +// /*FIND ALL REFS*/interface [|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === +// interface [|Numbers|] { +// p: number; +// } +// interface /*FIND ALL REFS*/[|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === +// interface [|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// /*FIND ALL REFS*/class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === +// interface [|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class /*FIND ALL REFS*/[|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === +// interface [|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: /*FIND ALL REFS*/[|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === +// interface [|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new /*FIND ALL REFS*/[|Numbers|](); +// let x = i.f(i.p + i.m); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc new file mode 100644 index 0000000000..1ea8914044 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNamespace.ts === +// /*FIND ALL REFS*/namespace [|Numbers|] { +// export var n = 12; +// } +// let x = [|Numbers|].n + 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNamespace.ts === +// namespace /*FIND ALL REFS*/[|Numbers|] { +// export var n = 12; +// } +// let x = [|Numbers|].n + 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNamespace.ts === +// namespace [|Numbers|] { +// export var n = 12; +// } +// let x = /*FIND ALL REFS*/[|Numbers|].n + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc new file mode 100644 index 0000000000..4c7d71532e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === +// let o = { /*FIND ALL REFS*/[|1|]: 12 }; +// let y = o[[|1|]]; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === +// let o = { [|1|]: 12 }; +// let y = o[/*FIND ALL REFS*/[|1|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc new file mode 100644 index 0000000000..311de56bc8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfParameter.ts === +// function f(/*FIND ALL REFS*/[|x|]: number) { +// return [|x|] + 1 +// } + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfParameter.ts === +// function f([|x|]: number) { +// return /*FIND ALL REFS*/[|x|] + 1 +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc new file mode 100644 index 0000000000..76d23e15de --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === +// let o = { /*FIND ALL REFS*/"[|x|]": 12 }; +// let y = o.[|x|]; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === +// let o = { "/*FIND ALL REFS*/[|x|]": 12 }; +// let y = o.[|x|]; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === +// let o = { "[|x|]": 12 }; +// let y = o./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc new file mode 100644 index 0000000000..7dfa3f7a3b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfTypeAlias.ts === +// /*FIND ALL REFS*/type [|Alias|]= number; +// let n: [|Alias|] = 12; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfTypeAlias.ts === +// type /*FIND ALL REFS*/[|Alias|]= number; +// let n: [|Alias|] = 12; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfTypeAlias.ts === +// type [|Alias|]= number; +// let n: /*FIND ALL REFS*/[|Alias|] = 12; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc new file mode 100644 index 0000000000..9ee407ef13 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc @@ -0,0 +1,349 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// /*FIND ALL REFS*/var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var /*FIND ALL REFS*/[|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = /*FIND ALL REFS*/[|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + /*FIND ALL REFS*/[|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// /*FIND ALL REFS*/[|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = /*FIND ALL REFS*/[|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + /*FIND ALL REFS*/[|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// /*FIND ALL REFS*/[|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// /*FIND ALL REFS*/[|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++/*FIND ALL REFS*/[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = /*FIND ALL REFS*/[|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --/*FIND ALL REFS*/[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = /*FIND ALL REFS*/[|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// /*FIND ALL REFS*/[|x|] += 1; +// [|x|] <<= 1; + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// /*FIND ALL REFS*/[|x|] <<= 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc new file mode 100644 index 0000000000..fc53c36f09 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /lib/classes/Error.js === +// module.exports.[|logWarning|] = message => { }; + +// === /bin/serverless.js === +// require('../lib/classes/Error').log/*FIND ALL REFS*/Warning(`CLI triage crashed with: ${error.stack}`); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc new file mode 100644 index 0000000000..d97e39c38f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc @@ -0,0 +1,121 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === +// namespace NS { +// export function /*FIND ALL REFS*/[|FA|]() { +// FB(); +// } +// } +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === +// --- (line: 3) skipped --- +// } +// } +// +// interface /*FIND ALL REFS*/[|I|] { +// FA(); +// } +// +// const ia: [|I|] = { +// FA() { }, +// FB() { }, +// FC() { }, +// }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === +// --- (line: 4) skipped --- +// } +// +// interface I { +// /*FIND ALL REFS*/[|FA|](); +// } +// +// const ia: I = { +// [|FA|]() { }, +// FB() { }, +// FC() { }, +// }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === +// namespace NS { +// export function /*FIND ALL REFS*/[|FB|]() {} +// } +// +// interface I { +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === +// namespace NS { +// export function FB() {} +// } +// +// interface /*FIND ALL REFS*/[|I|] { +// FB(); +// } +// +// const ib: [|I|] = { FB() {} }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === +// namespace NS { +// export function FB() {} +// } +// +// interface I { +// /*FIND ALL REFS*/[|FB|](); +// } +// +// const ib: I = { [|FB|]() {} }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === +// namespace NS { +// export function /*FIND ALL REFS*/[|FC|]() {} +// } +// +// interface I { +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === +// namespace NS { +// export function FC() {} +// } +// +// interface /*FIND ALL REFS*/[|I|] { +// FC(); +// } +// +// const ic: [|I|] = { FC() {} }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === +// namespace NS { +// export function FC() {} +// } +// +// interface I { +// /*FIND ALL REFS*/[|FC|](); +// } +// +// const ic: I = { [|FC|]() {} }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc new file mode 100644 index 0000000000..bab15b51fa --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc @@ -0,0 +1,225 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === +// import { NS } from "../b"; +// import { I } from "../c"; +// +// declare module "../b" { +// export namespace NS { +// export function /*FIND ALL REFS*/[|FA|](); +// } +// } +// +// // --- (line: 10) skipped --- + +// --- (line: 13) skipped --- +// } +// +// const ia: I = { +// FA: NS.[|FA|], +// FC() { }, +// }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === +// import { NS } from "../b"; +// import { [|I|] } from "../c"; +// +// declare module "../b" { +// export namespace NS { +// export function FA(); +// } +// } +// +// declare module "../c" { +// export interface /*FIND ALL REFS*/[|I|] { +// FA(); +// } +// } +// +// const ia: [|I|] = { +// FA: NS.FA, +// FC() { }, +// }; + +// === /home/src/workspaces/project/c/index.ts === +// export namespace NS { +// export function FC() {} +// } +// +// export interface [|I|] { +// FC(); +// } +// +// const ic: [|I|] = { FC() {} }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === +// --- (line: 8) skipped --- +// +// declare module "../c" { +// export interface I { +// /*FIND ALL REFS*/[|FA|](); +// } +// } +// +// const ia: I = { +// [|FA|]: NS.FA, +// FC() { }, +// }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/a2/index.ts === +// import { NS } from "../b"; +// import { I } from "../c"; +// +// declare module "../b" { +// export namespace NS { +// export function /*FIND ALL REFS*/[|FA|](); +// } +// } +// +// // --- (line: 10) skipped --- + +// --- (line: 13) skipped --- +// } +// +// const ia: I = { +// FA: NS.[|FA|], +// FC() { }, +// }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/a2/index.ts === +// import { NS } from "../b"; +// import { [|I|] } from "../c"; +// +// declare module "../b" { +// export namespace NS { +// export function FA(); +// } +// } +// +// declare module "../c" { +// export interface /*FIND ALL REFS*/[|I|] { +// FA(); +// } +// } +// +// const ia: [|I|] = { +// FA: NS.FA, +// FC() { }, +// }; + +// === /home/src/workspaces/project/c/index.ts === +// export namespace NS { +// export function FC() {} +// } +// +// export interface [|I|] { +// FC(); +// } +// +// const ic: [|I|] = { FC() {} }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/a2/index.ts === +// --- (line: 8) skipped --- +// +// declare module "../c" { +// export interface I { +// /*FIND ALL REFS*/[|FA|](); +// } +// } +// +// const ia: I = { +// [|FA|]: NS.FA, +// FC() { }, +// }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === +// export namespace NS { +// export function /*FIND ALL REFS*/[|FB|]() {} +// } +// +// export interface I { +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === +// export namespace NS { +// export function FB() {} +// } +// +// export interface /*FIND ALL REFS*/[|I|] { +// FB(); +// } +// +// const ib: [|I|] = { FB() {} }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === +// export namespace NS { +// export function FB() {} +// } +// +// export interface I { +// /*FIND ALL REFS*/[|FB|](); +// } +// +// const ib: I = { [|FB|]() {} }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === +// export namespace NS { +// export function /*FIND ALL REFS*/[|FC|]() {} +// } +// +// export interface I { +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === +// export namespace NS { +// export function FC() {} +// } +// +// export interface /*FIND ALL REFS*/[|I|] { +// FC(); +// } +// +// const ic: [|I|] = { FC() {} }; + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === +// export namespace NS { +// export function FC() {} +// } +// +// export interface I { +// /*FIND ALL REFS*/[|FC|](); +// } +// +// const ic: I = { [|FC|]() {} }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc new file mode 100644 index 0000000000..e51b9e8cad --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /isDefinitionInterfaceImplementation.ts === +// interface I { +// /*FIND ALL REFS*/[|M|](): void; +// } +// +// class C implements I { +// [|M|]() { } +// } +// +// ({} as I).[|M|](); +// ({} as C).[|M|](); + + + +// === findAllReferences === +// === /isDefinitionInterfaceImplementation.ts === +// interface I { +// [|M|](): void; +// } +// +// class C implements I { +// /*FIND ALL REFS*/[|M|]() { } +// } +// +// ({} as I).[|M|](); +// ({} as C).[|M|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc new file mode 100644 index 0000000000..29eeb6d11a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /isDefinitionOverloads.ts === +// function /*FIND ALL REFS*/[|f|](x: number): void; +// function [|f|](x: string): void; +// function [|f|](x: number | string) { } +// +// [|f|](1); +// [|f|]("a"); + + + +// === findAllReferences === +// === /isDefinitionOverloads.ts === +// function [|f|](x: number): void; +// function /*FIND ALL REFS*/[|f|](x: string): void; +// function [|f|](x: number | string) { } +// +// [|f|](1); +// [|f|]("a"); + + + +// === findAllReferences === +// === /isDefinitionOverloads.ts === +// function [|f|](x: number): void; +// function [|f|](x: string): void; +// function /*FIND ALL REFS*/[|f|](x: number | string) { } +// +// [|f|](1); +// [|f|]("a"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc new file mode 100644 index 0000000000..837a87c67a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /isDefinitionShorthandProperty.ts === +// const /*FIND ALL REFS*/[|x|] = 1; +// const y: { x: number } = { [|x|] }; + + + +// === findAllReferences === +// === /isDefinitionShorthandProperty.ts === +// const x = 1; +// const y: { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; + + + +// === findAllReferences === +// === /isDefinitionShorthandProperty.ts === +// const [|x|] = 1; +// const y: { [|x|]: number } = { /*FIND ALL REFS*/[|x|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc new file mode 100644 index 0000000000..52a7e63c1b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc @@ -0,0 +1,15 @@ +// === findAllReferences === +// === /a.ts === +// export function /*FIND ALL REFS*/[|f|]() {} + +// === /b.ts === +// import { [|f|] } from "./a"; + + + +// === findAllReferences === +// === /a.ts === +// export function [|f|]() {} + +// === /b.ts === +// import { /*FIND ALL REFS*/[|f|] } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc new file mode 100644 index 0000000000..9b9178931c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /isDefinitionSingleReference.ts === +// function /*FIND ALL REFS*/[|f|]() {} +// [|f|](); + + + +// === findAllReferences === +// === /isDefinitionSingleReference.ts === +// function [|f|]() {} +// /*FIND ALL REFS*/[|f|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocLink_findAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocLink_findAllReferences1.baseline.jsonc new file mode 100644 index 0000000000..6013c35191 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocLink_findAllReferences1.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /jsdocLink_findAllReferences1.ts === +// interface [|A|]/*FIND ALL REFS*/ {} +// /** +// * {@link [|A|]()} is ok +// */ +// declare const a: [|A|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc new file mode 100644 index 0000000000..b7690faa79 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /a.js === +// /** +// * @typedef {Object} [|T|] +// * @property {number} a +// */ +// +// /** @satisfies {/*FIND ALL REFS*/[|T|]} comment */ +// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc new file mode 100644 index 0000000000..d399b6dc09 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /jsdocThrowsTag_findAllReferences.ts === +// class /*FIND ALL REFS*/[|E|] extends Error {} +// /** +// * @throws {E} +// */ +// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc new file mode 100644 index 0000000000..db5fd49cb4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc @@ -0,0 +1,51 @@ +// === findAllReferences === +// === /a.js === +// /** /*FIND ALL REFS*/@typedef {number} T */ +// const T = 1; +// /** @type {T} */ +// const n = T; + + + +// === findAllReferences === +// === /a.js === +// /** @typedef {number} /*FIND ALL REFS*/[|T|] */ +// const T = 1; +// /** @type {[|T|]} */ +// const n = T; + + + +// === findAllReferences === +// === /a.js === +// /** @typedef {number} T */ +// /*FIND ALL REFS*/const [|T|] = 1; +// /** @type {T} */ +// const n = [|T|]; + + + +// === findAllReferences === +// === /a.js === +// /** @typedef {number} T */ +// const /*FIND ALL REFS*/[|T|] = 1; +// /** @type {T} */ +// const n = [|T|]; + + + +// === findAllReferences === +// === /a.js === +// /** @typedef {number} [|T|] */ +// const T = 1; +// /** @type {/*FIND ALL REFS*/[|T|]} */ +// const n = T; + + + +// === findAllReferences === +// === /a.js === +// /** @typedef {number} T */ +// const [|T|] = 1; +// /** @type {T} */ +// const n = /*FIND ALL REFS*/[|T|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc new file mode 100644 index 0000000000..f67cbe6091 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /a.js === +// /** @typedef {number} */ +// /*FIND ALL REFS*/const [|T|] = 1; +// /** @type {T} */ +// const n = [|T|]; + + + +// === findAllReferences === +// === /a.js === +// /** @typedef {number} */ +// const /*FIND ALL REFS*/[|T|] = 1; +// /** @type {T} */ +// const n = [|T|]; + + + +// === findAllReferences === +// === /a.js === +// /** @typedef {number} */ +// const T = 1; +// /** @type {/*FIND ALL REFS*/[|T|]} */ +// const n = T; + + + +// === findAllReferences === +// === /a.js === +// /** @typedef {number} */ +// const [|T|] = 1; +// /** @type {T} */ +// const n = /*FIND ALL REFS*/[|T|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsxFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsxFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc new file mode 100644 index 0000000000..392e16b4b2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsxFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /project/src/foo.ts === +// import * as x from /*FIND ALL REFS*/"[|@foo/dir/jsx-runtime|]"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/localGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/localGetReferences.baseline.jsonc new file mode 100644 index 0000000000..11a750c0a7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/localGetReferences.baseline.jsonc @@ -0,0 +1,2080 @@ +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// /*FIND ALL REFS*/var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var /*FIND ALL REFS*/[|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 3) skipped --- +// +// class fooCls { +// // References to static variable declared in a class. +// /*FIND ALL REFS*/static [|clsSVar|] = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.[|clsSVar|]++; +// // References to a class parameter. +// this.clsParam++; +// modTest.modVar++; +// // --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; +// +// //Increments +// fooCls.[|clsSVar|]++; +// globalVar++; +// modTest.modVar++; +// fnVar++; +// // --- (line: 32) skipped --- + +// --- (line: 39) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// +// class testCls { +// // --- (line: 47) skipped --- + +// --- (line: 51) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// } +// +// // --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); +// +// //Increments +// fooCls.[|clsSVar|]++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// // --- (line: 78) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 3) skipped --- +// +// class fooCls { +// // References to static variable declared in a class. +// static /*FIND ALL REFS*/[|clsSVar|] = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.[|clsSVar|]++; +// // References to a class parameter. +// this.clsParam++; +// modTest.modVar++; +// // --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; +// +// //Increments +// fooCls.[|clsSVar|]++; +// globalVar++; +// modTest.modVar++; +// fnVar++; +// // --- (line: 32) skipped --- + +// --- (line: 39) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// +// class testCls { +// // --- (line: 47) skipped --- + +// --- (line: 51) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// } +// +// // --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); +// +// //Increments +// fooCls.[|clsSVar|]++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// // --- (line: 78) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 5) skipped --- +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// /*FIND ALL REFS*/[|clsVar|] = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.[|clsVar|]++; +// fooCls.clsSVar++; +// // References to a class parameter. +// this.clsParam++; +// // --- (line: 18) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 7) skipped --- +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (/*FIND ALL REFS*/public [|clsParam|]: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// this.[|clsParam|]++; +// modTest.modVar++; +// } +// } +// // --- (line: 21) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 7) skipped --- +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public /*FIND ALL REFS*/[|clsParam|]: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// this.[|clsParam|]++; +// modTest.modVar++; +// } +// } +// // --- (line: 21) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// /*FIND ALL REFS*/[|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 5) skipped --- +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// [|clsVar|] = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this./*FIND ALL REFS*/[|clsVar|]++; +// fooCls.clsSVar++; +// // References to a class parameter. +// this.clsParam++; +// // --- (line: 18) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 3) skipped --- +// +// class fooCls { +// // References to static variable declared in a class. +// static [|clsSVar|] = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls./*FIND ALL REFS*/[|clsSVar|]++; +// // References to a class parameter. +// this.clsParam++; +// modTest.modVar++; +// // --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; +// +// //Increments +// fooCls.[|clsSVar|]++; +// globalVar++; +// modTest.modVar++; +// fnVar++; +// // --- (line: 32) skipped --- + +// --- (line: 39) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// +// class testCls { +// // --- (line: 47) skipped --- + +// --- (line: 51) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// } +// +// // --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); +// +// //Increments +// fooCls.[|clsSVar|]++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// // --- (line: 78) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 7) skipped --- +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public [|clsParam|]: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// this./*FIND ALL REFS*/[|clsParam|]++; +// modTest.modVar++; +// } +// } +// // --- (line: 21) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// /*FIND ALL REFS*/function [|foo|](x: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 43) skipped --- +// modVar++; +// +// class testCls { +// static boo = [|foo|]; +// } +// +// function testFn(){ +// static boo = [|foo|]; +// +// //Increments +// globalVar++; +// fooCls.clsSVar++; +// modVar++; +// } +// +// module testMod { +// var boo = [|foo|]; +// } +// } +// +// // --- (line: 64) skipped --- + +// --- (line: 67) skipped --- +// // References to a class argument. +// clsTest = new fooCls(globalVar); +// // References to a function argument. +// [|foo|](globalVar); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// //ETC - Other cases +// globalVar = 3; +// // References to illegal assignment. +// [|foo|] = [|foo|] + 1; +// err = err++; +// +// //Shadowed fn Parameter +// // --- (line: 85) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function /*FIND ALL REFS*/[|foo|](x: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 43) skipped --- +// modVar++; +// +// class testCls { +// static boo = [|foo|]; +// } +// +// function testFn(){ +// static boo = [|foo|]; +// +// //Increments +// globalVar++; +// fooCls.clsSVar++; +// modVar++; +// } +// +// module testMod { +// var boo = [|foo|]; +// } +// } +// +// // --- (line: 64) skipped --- + +// --- (line: 67) skipped --- +// // References to a class argument. +// clsTest = new fooCls(globalVar); +// // References to a function argument. +// [|foo|](globalVar); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// //ETC - Other cases +// globalVar = 3; +// // References to illegal assignment. +// [|foo|] = [|foo|] + 1; +// err = err++; +// +// //Shadowed fn Parameter +// // --- (line: 85) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function foo(/*FIND ALL REFS*/[|x|]: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 30) skipped --- +// fnVar++; +// +// //Return +// return [|x|]++; +// } +// +// module modTest { +// // --- (line: 38) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 21) skipped --- +// // References to a function parameter. +// function foo(x: number) { +// // References to a variable declared in a function. +// /*FIND ALL REFS*/var [|fnVar|] = 1; +// +// //Increments +// fooCls.clsSVar++; +// globalVar++; +// modTest.modVar++; +// [|fnVar|]++; +// +// //Return +// return x++; +// // --- (line: 35) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 21) skipped --- +// // References to a function parameter. +// function foo(x: number) { +// // References to a variable declared in a function. +// var /*FIND ALL REFS*/[|fnVar|] = 1; +// +// //Increments +// fooCls.clsSVar++; +// globalVar++; +// modTest.modVar++; +// [|fnVar|]++; +// +// //Return +// return x++; +// // --- (line: 35) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 3) skipped --- +// +// class fooCls { +// // References to static variable declared in a class. +// static [|clsSVar|] = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.[|clsSVar|]++; +// // References to a class parameter. +// this.clsParam++; +// modTest.modVar++; +// // --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; +// +// //Increments +// fooCls./*FIND ALL REFS*/[|clsSVar|]++; +// globalVar++; +// modTest.modVar++; +// fnVar++; +// // --- (line: 32) skipped --- + +// --- (line: 39) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// +// class testCls { +// // --- (line: 47) skipped --- + +// --- (line: 51) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// } +// +// // --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); +// +// //Increments +// fooCls.[|clsSVar|]++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// // --- (line: 78) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// /*FIND ALL REFS*/[|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 21) skipped --- +// // References to a function parameter. +// function foo(x: number) { +// // References to a variable declared in a function. +// var [|fnVar|] = 1; +// +// //Increments +// fooCls.clsSVar++; +// globalVar++; +// modTest.modVar++; +// /*FIND ALL REFS*/[|fnVar|]++; +// +// //Return +// return x++; +// // --- (line: 35) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function foo([|x|]: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 30) skipped --- +// fnVar++; +// +// //Return +// return /*FIND ALL REFS*/[|x|]++; +// } +// +// module modTest { +// // --- (line: 38) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// /*FIND ALL REFS*/[|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 3) skipped --- +// +// class fooCls { +// // References to static variable declared in a class. +// static [|clsSVar|] = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.[|clsSVar|]++; +// // References to a class parameter. +// this.clsParam++; +// modTest.modVar++; +// // --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; +// +// //Increments +// fooCls.[|clsSVar|]++; +// globalVar++; +// modTest.modVar++; +// fnVar++; +// // --- (line: 32) skipped --- + +// --- (line: 39) skipped --- +// +// //Increments +// globalVar++; +// fooCls./*FIND ALL REFS*/[|clsSVar|]++; +// modVar++; +// +// class testCls { +// // --- (line: 47) skipped --- + +// --- (line: 51) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// } +// +// // --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); +// +// //Increments +// fooCls.[|clsSVar|]++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// // --- (line: 78) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function [|foo|](x: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 43) skipped --- +// modVar++; +// +// class testCls { +// static boo = /*FIND ALL REFS*/[|foo|]; +// } +// +// function testFn(){ +// static boo = [|foo|]; +// +// //Increments +// globalVar++; +// fooCls.clsSVar++; +// modVar++; +// } +// +// module testMod { +// var boo = [|foo|]; +// } +// } +// +// // --- (line: 64) skipped --- + +// --- (line: 67) skipped --- +// // References to a class argument. +// clsTest = new fooCls(globalVar); +// // References to a function argument. +// [|foo|](globalVar); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// //ETC - Other cases +// globalVar = 3; +// // References to illegal assignment. +// [|foo|] = [|foo|] + 1; +// err = err++; +// +// //Shadowed fn Parameter +// // --- (line: 85) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function [|foo|](x: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 43) skipped --- +// modVar++; +// +// class testCls { +// static boo = [|foo|]; +// } +// +// function testFn(){ +// static boo = /*FIND ALL REFS*/[|foo|]; +// +// //Increments +// globalVar++; +// fooCls.clsSVar++; +// modVar++; +// } +// +// module testMod { +// var boo = [|foo|]; +// } +// } +// +// // --- (line: 64) skipped --- + +// --- (line: 67) skipped --- +// // References to a class argument. +// clsTest = new fooCls(globalVar); +// // References to a function argument. +// [|foo|](globalVar); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// //ETC - Other cases +// globalVar = 3; +// // References to illegal assignment. +// [|foo|] = [|foo|] + 1; +// err = err++; +// +// //Shadowed fn Parameter +// // --- (line: 85) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// /*FIND ALL REFS*/[|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 3) skipped --- +// +// class fooCls { +// // References to static variable declared in a class. +// static [|clsSVar|] = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.[|clsSVar|]++; +// // References to a class parameter. +// this.clsParam++; +// modTest.modVar++; +// // --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; +// +// //Increments +// fooCls.[|clsSVar|]++; +// globalVar++; +// modTest.modVar++; +// fnVar++; +// // --- (line: 32) skipped --- + +// --- (line: 39) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// +// class testCls { +// // --- (line: 47) skipped --- + +// --- (line: 51) skipped --- +// +// //Increments +// globalVar++; +// fooCls./*FIND ALL REFS*/[|clsSVar|]++; +// modVar++; +// } +// +// // --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); +// +// //Increments +// fooCls.[|clsSVar|]++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// // --- (line: 78) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function [|foo|](x: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 43) skipped --- +// modVar++; +// +// class testCls { +// static boo = [|foo|]; +// } +// +// function testFn(){ +// static boo = [|foo|]; +// +// //Increments +// globalVar++; +// fooCls.clsSVar++; +// modVar++; +// } +// +// module testMod { +// var boo = /*FIND ALL REFS*/[|foo|]; +// } +// } +// +// // --- (line: 64) skipped --- + +// --- (line: 67) skipped --- +// // References to a class argument. +// clsTest = new fooCls(globalVar); +// // References to a function argument. +// [|foo|](globalVar); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// //ETC - Other cases +// globalVar = 3; +// // References to illegal assignment. +// [|foo|] = [|foo|] + 1; +// err = err++; +// +// //Shadowed fn Parameter +// // --- (line: 85) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls(/*FIND ALL REFS*/[|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function [|foo|](x: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 43) skipped --- +// modVar++; +// +// class testCls { +// static boo = [|foo|]; +// } +// +// function testFn(){ +// static boo = [|foo|]; +// +// //Increments +// globalVar++; +// fooCls.clsSVar++; +// modVar++; +// } +// +// module testMod { +// var boo = [|foo|]; +// } +// } +// +// // --- (line: 64) skipped --- + +// --- (line: 67) skipped --- +// // References to a class argument. +// clsTest = new fooCls(globalVar); +// // References to a function argument. +// /*FIND ALL REFS*/[|foo|](globalVar); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// //ETC - Other cases +// globalVar = 3; +// // References to illegal assignment. +// [|foo|] = [|foo|] + 1; +// err = err++; +// +// //Shadowed fn Parameter +// // --- (line: 85) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo(/*FIND ALL REFS*/[|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 3) skipped --- +// +// class fooCls { +// // References to static variable declared in a class. +// static [|clsSVar|] = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.[|clsSVar|]++; +// // References to a class parameter. +// this.clsParam++; +// modTest.modVar++; +// // --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; +// +// //Increments +// fooCls.[|clsSVar|]++; +// globalVar++; +// modTest.modVar++; +// fnVar++; +// // --- (line: 32) skipped --- + +// --- (line: 39) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// +// class testCls { +// // --- (line: 47) skipped --- + +// --- (line: 51) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|clsSVar|]++; +// modVar++; +// } +// +// // --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); +// +// //Increments +// fooCls./*FIND ALL REFS*/[|clsSVar|]++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// // --- (line: 78) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// /*FIND ALL REFS*/[|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = /*FIND ALL REFS*/[|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + /*FIND ALL REFS*/[|globalVar|]; +// +// //ETC - Other cases +// [|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// var [|globalVar|]: number = 2; +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// // --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// // --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// // --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// // --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// /*FIND ALL REFS*/[|globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// // --- (line: 83) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function [|foo|](x: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 43) skipped --- +// modVar++; +// +// class testCls { +// static boo = [|foo|]; +// } +// +// function testFn(){ +// static boo = [|foo|]; +// +// //Increments +// globalVar++; +// fooCls.clsSVar++; +// modVar++; +// } +// +// module testMod { +// var boo = [|foo|]; +// } +// } +// +// // --- (line: 64) skipped --- + +// --- (line: 67) skipped --- +// // References to a class argument. +// clsTest = new fooCls(globalVar); +// // References to a function argument. +// [|foo|](globalVar); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// //ETC - Other cases +// globalVar = 3; +// // References to illegal assignment. +// /*FIND ALL REFS*/[|foo|] = [|foo|] + 1; +// err = err++; +// +// //Shadowed fn Parameter +// // --- (line: 85) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function [|foo|](x: number) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// // --- (line: 27) skipped --- + +// --- (line: 43) skipped --- +// modVar++; +// +// class testCls { +// static boo = [|foo|]; +// } +// +// function testFn(){ +// static boo = [|foo|]; +// +// //Increments +// globalVar++; +// fooCls.clsSVar++; +// modVar++; +// } +// +// module testMod { +// var boo = [|foo|]; +// } +// } +// +// // --- (line: 64) skipped --- + +// --- (line: 67) skipped --- +// // References to a class argument. +// clsTest = new fooCls(globalVar); +// // References to a function argument. +// [|foo|](globalVar); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// //ETC - Other cases +// globalVar = 3; +// // References to illegal assignment. +// [|foo|] = /*FIND ALL REFS*/[|foo|] + 1; +// err = err++; +// +// //Shadowed fn Parameter +// // --- (line: 85) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 81) skipped --- +// err = err++; +// +// //Shadowed fn Parameter +// function shdw(/*FIND ALL REFS*/[|globalVar|]: number) { +// //Increments +// [|globalVar|]++; +// return [|globalVar|]; +// } +// +// //Remotes +// // --- (line: 92) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 81) skipped --- +// err = err++; +// +// //Shadowed fn Parameter +// function shdw([|globalVar|]: number) { +// //Increments +// /*FIND ALL REFS*/[|globalVar|]++; +// return [|globalVar|]; +// } +// +// //Remotes +// // --- (line: 92) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 81) skipped --- +// err = err++; +// +// //Shadowed fn Parameter +// function shdw([|globalVar|]: number) { +// //Increments +// [|globalVar|]++; +// return /*FIND ALL REFS*/[|globalVar|]; +// } +// +// //Remotes +// // --- (line: 92) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 113) skipped --- +// array.forEach( +// +// +// function(/*FIND ALL REFS*/[|str|]) { +// +// +// +// // Reference misses function parameter. +// return [|str|] + " "; +// +// }); + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 113) skipped --- +// array.forEach( +// +// +// function([|str|]) { +// +// +// +// // Reference misses function parameter. +// return /*FIND ALL REFS*/[|str|] + " "; +// +// }); + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// // Comment Refence Test: g/*FIND ALL REFS*/lobalVar +// // References to a variable declared in global. +// var globalVar: number = 2; +// +// // --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 78) skipped --- +// globalVar = 3; +// // References to illegal assignment. +// foo = foo + 1; +// /*FIND ALL REFS*/err = err++; +// +// //Shadowed fn Parameter +// function shdw(globalVar: number) { +// // --- (line: 86) skipped --- + + + +// === findAllReferences === +// === /localGetReferences_1.ts === +// --- (line: 79) skipped --- +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// /*FIND ALL REFS*/ +// //Shadowed fn Parameter +// function shdw(globalVar: number) { +// //Increments +// // --- (line: 87) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc new file mode 100644 index 0000000000..4cc9699bb0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc @@ -0,0 +1,53 @@ +// === findAllReferences === +// === /file1.ts === +// class Foo { +// constructor(private /*FIND ALL REFS*/[|privateParam|]: number, +// public publicParam: string, +// protected protectedParam: boolean) { +// +// let localPrivate = [|privateParam|]; +// this.[|privateParam|] += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /file1.ts === +// class Foo { +// constructor(private privateParam: number, +// public /*FIND ALL REFS*/[|publicParam|]: string, +// protected protectedParam: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = [|publicParam|]; +// this.[|publicParam|] += " Hello!"; +// +// let localProtected = protectedParam; +// this.protectedParam = false; +// } +// } + + + +// === findAllReferences === +// === /file1.ts === +// class Foo { +// constructor(private privateParam: number, +// public publicParam: string, +// protected /*FIND ALL REFS*/[|protectedParam|]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = [|protectedParam|]; +// this.[|protectedParam|] = false; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc new file mode 100644 index 0000000000..039a517c5f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc @@ -0,0 +1,123 @@ +// === findAllReferences === +// === /referenceToClass_1.ts === +// class /*FIND ALL REFS*/[|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + +// === /referenceToClass_2.ts === +// var k: [|foo|]; + + + +// === findAllReferences === +// === /referenceToClass_1.ts === +// class [|foo|] { +// public n: /*FIND ALL REFS*/[|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + +// === /referenceToClass_2.ts === +// var k: [|foo|]; + + + +// === findAllReferences === +// === /referenceToClass_1.ts === +// class [|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: /*FIND ALL REFS*/[|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + +// === /referenceToClass_2.ts === +// var k: [|foo|]; + + + +// === findAllReferences === +// === /referenceToClass_1.ts === +// class [|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new /*FIND ALL REFS*/[|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + +// === /referenceToClass_2.ts === +// var k: [|foo|]; + + + +// === findAllReferences === +// === /referenceToClass_1.ts === +// class [|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: /*FIND ALL REFS*/[|foo|] = null; +// } + +// === /referenceToClass_2.ts === +// var k: [|foo|]; + + + +// === findAllReferences === +// === /referenceToClass_1.ts === +// class [|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + +// === /referenceToClass_2.ts === +// var k: /*FIND ALL REFS*/[|foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc new file mode 100644 index 0000000000..b25f19fd68 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /referenceToEmptyObject.ts === +// const obj = {}/*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc new file mode 100644 index 0000000000..95c1aa6286 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /home/src/workspaces/project/referencesForGlobals_1.ts === +// class [|globalClass|] { +// public f() { } +// } + +// === /home/src/workspaces/project/referencesForGlobals_2.ts === +// /// +// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc new file mode 100644 index 0000000000..2ca946624b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /declaration.ts === +// var container = { /*FIND ALL REFS*/[|searchProp|] : 1 }; + +// === /expression.ts === +// function blah() { return (1 + 2 + container.[|searchProp|]()) === 2; }; + +// === /redeclaration.ts === +// container = { "[|searchProp|]" : 18 }; + +// === /stringIndexer.ts === +// function blah2() { container["[|searchProp|]"] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc new file mode 100644 index 0000000000..e005ba98a0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /declaration.ts === +// var container = { /*FIND ALL REFS*/[|42|]: 1 }; + +// === /expression.ts === +// function blah() { return (container[[|42|]]) === 2; }; + +// === /redeclaration.ts === +// container = { "[|42|]" : 18 }; + +// === /stringIndexer.ts === +// function blah2() { container["[|42|]"] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc new file mode 100644 index 0000000000..f1fe9c8f47 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /declaration.ts === +// enum Test { /*FIND ALL REFS*/"[|42|]" = 1 }; + +// === /expression.ts === +// (Test[[|42|]]); + + + +// === findAllReferences === +// === /declaration.ts === +// enum Test { "/*FIND ALL REFS*/[|42|]" = 1 }; + +// === /expression.ts === +// (Test[[|42|]]); + + + +// === findAllReferences === +// === /declaration.ts === +// enum Test { "[|42|]" = 1 }; + +// === /expression.ts === +// (Test[/*FIND ALL REFS*/[|42|]]); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc new file mode 100644 index 0000000000..9643fbc873 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc @@ -0,0 +1,228 @@ +// === findAllReferences === +// === /referencesForAmbients.ts === +// /*FIND ALL REFS*/declare module "[|foo|]" { +// var f: number; +// } +// +// declare module "bar" { +// export import foo = require("[|foo|]"); +// var f2: typeof foo.f; +// } +// +// // --- (line: 10) skipped --- + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "/*FIND ALL REFS*/[|foo|]" { +// var f: number; +// } +// +// declare module "bar" { +// export import foo = require("[|foo|]"); +// var f2: typeof foo.f; +// } +// +// // --- (line: 10) skipped --- + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// /*FIND ALL REFS*/var [|f|]: number; +// } +// +// declare module "bar" { +// export import foo = require("foo"); +// var f2: typeof foo.[|f|]; +// } +// +// declare module "baz" { +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var /*FIND ALL REFS*/[|f|]: number; +// } +// +// declare module "bar" { +// export import foo = require("foo"); +// var f2: typeof foo.[|f|]; +// } +// +// declare module "baz" { +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var f: number; +// } +// +// /*FIND ALL REFS*/declare module "[|bar|]" { +// export import foo = require("foo"); +// var f2: typeof foo.f; +// } +// +// declare module "baz" { +// import bar = require("[|bar|]"); +// var f2: typeof bar.foo; +// } + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var f: number; +// } +// +// declare module "/*FIND ALL REFS*/[|bar|]" { +// export import foo = require("foo"); +// var f2: typeof foo.f; +// } +// +// declare module "baz" { +// import bar = require("[|bar|]"); +// var f2: typeof bar.foo; +// } + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var f: number; +// } +// +// declare module "bar" { +// /*FIND ALL REFS*/export import [|foo|] = require("foo"); +// var f2: typeof [|foo|].f; +// } +// +// declare module "baz" { +// import bar = require("bar"); +// var f2: typeof bar.[|foo|]; +// } + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var f: number; +// } +// +// declare module "bar" { +// export import /*FIND ALL REFS*/[|foo|] = require("foo"); +// var f2: typeof [|foo|].f; +// } +// +// declare module "baz" { +// import bar = require("bar"); +// var f2: typeof bar.[|foo|]; +// } + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "[|foo|]" { +// var f: number; +// } +// +// declare module "bar" { +// export import foo = require("/*FIND ALL REFS*/[|foo|]"); +// var f2: typeof foo.f; +// } +// +// // --- (line: 10) skipped --- + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var f: number; +// } +// +// declare module "bar" { +// export import [|foo|] = require("foo"); +// var f2: typeof /*FIND ALL REFS*/[|foo|].f; +// } +// +// declare module "baz" { +// import bar = require("bar"); +// var f2: typeof bar.[|foo|]; +// } + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var [|f|]: number; +// } +// +// declare module "bar" { +// export import foo = require("foo"); +// var f2: typeof foo./*FIND ALL REFS*/[|f|]; +// } +// +// declare module "baz" { +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// --- (line: 7) skipped --- +// } +// +// declare module "baz" { +// /*FIND ALL REFS*/import [|bar|] = require("bar"); +// var f2: typeof [|bar|].foo; +// } + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var f: number; +// } +// +// declare module "[|bar|]" { +// export import foo = require("foo"); +// var f2: typeof foo.f; +// } +// +// declare module "baz" { +// import bar = require("/*FIND ALL REFS*/[|bar|]"); +// var f2: typeof bar.foo; +// } + + + +// === findAllReferences === +// === /referencesForAmbients.ts === +// declare module "foo" { +// var f: number; +// } +// +// declare module "bar" { +// export import [|foo|] = require("foo"); +// var f2: typeof [|foo|].f; +// } +// +// declare module "baz" { +// import bar = require("bar"); +// var f2: typeof bar./*FIND ALL REFS*/[|foo|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc new file mode 100644 index 0000000000..1644f2ca65 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc @@ -0,0 +1,77 @@ +// === findAllReferences === +// === /referencesForClassLocal.ts === +// var n = 14; +// +// class foo { +// /*FIND ALL REFS*/private [|n|] = 0; +// +// public bar() { +// this.[|n|] = 9; +// } +// +// constructor() { +// this.[|n|] = 4; +// } +// +// public bar2() { +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /referencesForClassLocal.ts === +// var n = 14; +// +// class foo { +// private /*FIND ALL REFS*/[|n|] = 0; +// +// public bar() { +// this.[|n|] = 9; +// } +// +// constructor() { +// this.[|n|] = 4; +// } +// +// public bar2() { +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /referencesForClassLocal.ts === +// var n = 14; +// +// class foo { +// private [|n|] = 0; +// +// public bar() { +// this./*FIND ALL REFS*/[|n|] = 9; +// } +// +// constructor() { +// this.[|n|] = 4; +// } +// +// public bar2() { +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /referencesForClassLocal.ts === +// var n = 14; +// +// class foo { +// private [|n|] = 0; +// +// public bar() { +// this.[|n|] = 9; +// } +// +// constructor() { +// this./*FIND ALL REFS*/[|n|] = 4; +// } +// +// public bar2() { +// // --- (line: 15) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc new file mode 100644 index 0000000000..33b6e54679 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc @@ -0,0 +1,99 @@ +// === findAllReferences === +// === /referencesForClassMembers.ts === +// class Base { +// /*FIND ALL REFS*/[|a|]: number; +// method(): void { } +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === +// class Base { +// [|a|]: number; +// method(): void { } +// } +// class MyClass extends Base { +// /*FIND ALL REFS*/[|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === +// class Base { +// [|a|]: number; +// method(): void { } +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c./*FIND ALL REFS*/[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === +// class Base { +// a: number; +// /*FIND ALL REFS*/[|method|](): void { } +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === +// class Base { +// a: number; +// [|method|](): void { } +// } +// class MyClass extends Base { +// a; +// /*FIND ALL REFS*/[|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === +// class Base { +// a: number; +// [|method|](): void { } +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc new file mode 100644 index 0000000000..f86f487c5f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc @@ -0,0 +1,99 @@ +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === +// abstract class Base { +// abstract /*FIND ALL REFS*/[|a|]: number; +// abstract method(): void; +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === +// abstract class Base { +// abstract [|a|]: number; +// abstract method(): void; +// } +// class MyClass extends Base { +// /*FIND ALL REFS*/[|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === +// abstract class Base { +// abstract [|a|]: number; +// abstract method(): void; +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c./*FIND ALL REFS*/[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === +// abstract class Base { +// abstract a: number; +// abstract /*FIND ALL REFS*/[|method|](): void; +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === +// abstract class Base { +// abstract a: number; +// abstract [|method|](): void; +// } +// class MyClass extends Base { +// a; +// /*FIND ALL REFS*/[|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === +// abstract class Base { +// abstract a: number; +// abstract [|method|](): void; +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc new file mode 100644 index 0000000000..c1fa532bb7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc @@ -0,0 +1,99 @@ +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === +// class Base { +// /*FIND ALL REFS*/[|a|]: this; +// method(a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === +// class Base { +// [|a|]: this; +// method(a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// /*FIND ALL REFS*/[|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === +// class Base { +// [|a|]: this; +// method(a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c./*FIND ALL REFS*/[|a|]; +// c.method(); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === +// class Base { +// a: this; +// /*FIND ALL REFS*/[|method|](a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === +// class Base { +// a: this; +// [|method|](a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// a; +// /*FIND ALL REFS*/[|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === +// class Base { +// a: this; +// [|method|](a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc new file mode 100644 index 0000000000..b1565d329a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc @@ -0,0 +1,81 @@ +// === findAllReferences === +// === /referencesForClassParameter.ts === +// var p = 2; +// +// class p { } +// +// class foo { +// constructor (/*FIND ALL REFS*/public [|p|]: any) { +// } +// +// public f(p) { +// this.[|p|] = p; +// } +// +// } +// +// var n = new foo(undefined); +// n.[|p|] = null; + + + +// === findAllReferences === +// === /referencesForClassParameter.ts === +// var p = 2; +// +// class p { } +// +// class foo { +// constructor (public /*FIND ALL REFS*/[|p|]: any) { +// } +// +// public f(p) { +// this.[|p|] = p; +// } +// +// } +// +// var n = new foo(undefined); +// n.[|p|] = null; + + + +// === findAllReferences === +// === /referencesForClassParameter.ts === +// var p = 2; +// +// class p { } +// +// class foo { +// constructor (public [|p|]: any) { +// } +// +// public f(p) { +// this./*FIND ALL REFS*/[|p|] = p; +// } +// +// } +// +// var n = new foo(undefined); +// n.[|p|] = null; + + + +// === findAllReferences === +// === /referencesForClassParameter.ts === +// var p = 2; +// +// class p { } +// +// class foo { +// constructor (public [|p|]: any) { +// } +// +// public f(p) { +// this.[|p|] = p; +// } +// +// } +// +// var n = new foo(undefined); +// n./*FIND ALL REFS*/[|p|] = null; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc new file mode 100644 index 0000000000..4c491c78d4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /referencesForContextuallyTypedObjectLiteralProperties.ts === +// interface IFoo { /*FIND ALL REFS*/[|xy|]: number; } +// +// // Assignment +// var a1: IFoo = { [|xy|]: 0 }; +// var a2: IFoo = { [|xy|]: 0 }; +// +// // Function call +// function consumer(f: IFoo) { } +// consumer({ [|xy|]: 1 }); +// +// // Type cast +// var c = { [|xy|]: 0 }; +// +// // Array literal +// var ar: IFoo[] = [{ [|xy|]: 1 }, { [|xy|]: 2 }]; +// +// // Nested object literal +// var ob: { ifoo: IFoo } = { ifoo: { [|xy|]: 0 } }; +// +// // Widened type +// var w: IFoo = { [|xy|]: undefined }; +// +// // Untped -- should not be included +// var u = { xy: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc new file mode 100644 index 0000000000..f690bc1ada --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc @@ -0,0 +1,229 @@ +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// class Base {} +// interface Implemented1 {} +// /*FIND ALL REFS*/class [|C1|] extends Base implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// class [|Base|] {} +// interface Implemented1 {} +// class C1 /*FIND ALL REFS*/extends [|Base|] implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// interface I1 extends [|Base|] { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// class Base {} +// interface [|Implemented1|] {} +// class C1 extends Base /*FIND ALL REFS*/implements [|Implemented1|] { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 14) skipped --- +// const z = 1; +// interface Implemented2 {} +// interface Implemented3 {} +// class C2 /*FIND ALL REFS*/implements Implemented2, Implemented3 {} +// interface I2 extends Implemented2, Implemented3 {} + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// /*FIND ALL REFS*/get [|e|]() { return 1; } +// set [|e|](v) {} +// } +// interface I1 extends Base { } +// type T = { } +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get [|e|]() { return 1; } +// /*FIND ALL REFS*/set [|e|](v) {} +// } +// interface I1 extends Base { } +// type T = { } +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 3) skipped --- +// get e() { return 1; } +// set e(v) {} +// } +// /*FIND ALL REFS*/interface [|I1|] extends Base { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// class [|Base|] {} +// interface Implemented1 {} +// class C1 extends [|Base|] implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// interface I1 /*FIND ALL REFS*/extends [|Base|] { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 15) skipped --- +// interface Implemented2 {} +// interface Implemented3 {} +// class C2 implements Implemented2, Implemented3 {} +// interface I2 /*FIND ALL REFS*/extends Implemented2, Implemented3 {} + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 4) skipped --- +// set e(v) {} +// } +// interface I1 extends Base { } +// /*FIND ALL REFS*/type [|T|] = { } +// enum E { } +// namespace N { } +// module M { } +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 5) skipped --- +// } +// interface I1 extends Base { } +// type T = { } +// /*FIND ALL REFS*/enum [|E|] { } +// namespace N { } +// module M { } +// function fn() {} +// // --- (line: 13) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 6) skipped --- +// interface I1 extends Base { } +// type T = { } +// enum E { } +// /*FIND ALL REFS*/namespace [|N|] { } +// module M { } +// function fn() {} +// var x; +// // --- (line: 14) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 7) skipped --- +// type T = { } +// enum E { } +// namespace N { } +// /*FIND ALL REFS*/module [|M|] { } +// function fn() {} +// var x; +// let y; +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 8) skipped --- +// enum E { } +// namespace N { } +// module M { } +// /*FIND ALL REFS*/function [|fn|]() {} +// var x; +// let y; +// const z = 1; +// // --- (line: 16) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 9) skipped --- +// namespace N { } +// module M { } +// function fn() {} +// /*FIND ALL REFS*/var [|x|]; +// let y; +// const z = 1; +// interface Implemented2 {} +// // --- (line: 17) skipped --- + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 10) skipped --- +// module M { } +// function fn() {} +// var x; +// /*FIND ALL REFS*/let [|y|]; +// const z = 1; +// interface Implemented2 {} +// interface Implemented3 {} +// class C2 implements Implemented2, Implemented3 {} +// interface I2 extends Implemented2, Implemented3 {} + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === +// --- (line: 11) skipped --- +// function fn() {} +// var x; +// let y; +// /*FIND ALL REFS*/const [|z|] = 1; +// interface Implemented2 {} +// interface Implemented3 {} +// class C2 implements Implemented2, Implemented3 {} +// interface I2 extends Implemented2, Implemented3 {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc new file mode 100644 index 0000000000..1cc4283eff --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc @@ -0,0 +1,132 @@ +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// /*FIND ALL REFS*/[|value1|] = 1, +// "value2" = [|value1|], +// 111 = 11 +// } +// +// E.[|value1|]; +// E["value2"]; +// E.value2; +// E[111]; + + + +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// value1 = 1, +// /*FIND ALL REFS*/"[|value2|]" = value1, +// 111 = 11 +// } +// +// E.value1; +// E["[|value2|]"]; +// E.[|value2|]; +// E[111]; + + + +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// value1 = 1, +// "/*FIND ALL REFS*/[|value2|]" = value1, +// 111 = 11 +// } +// +// E.value1; +// E["[|value2|]"]; +// E.[|value2|]; +// E[111]; + + + +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// [|value1|] = 1, +// "value2" = /*FIND ALL REFS*/[|value1|], +// 111 = 11 +// } +// +// E.[|value1|]; +// E["value2"]; +// E.value2; +// E[111]; + + + +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// value1 = 1, +// "value2" = value1, +// /*FIND ALL REFS*/[|111|] = 11 +// } +// +// E.value1; +// E["value2"]; +// E.value2; +// E[[|111|]]; + + + +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// [|value1|] = 1, +// "value2" = [|value1|], +// 111 = 11 +// } +// +// E./*FIND ALL REFS*/[|value1|]; +// E["value2"]; +// E.value2; +// E[111]; + + + +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// value1 = 1, +// "[|value2|]" = value1, +// 111 = 11 +// } +// +// E.value1; +// E["/*FIND ALL REFS*/[|value2|]"]; +// E.[|value2|]; +// E[111]; + + + +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// value1 = 1, +// "[|value2|]" = value1, +// 111 = 11 +// } +// +// E.value1; +// E["[|value2|]"]; +// E./*FIND ALL REFS*/[|value2|]; +// E[111]; + + + +// === findAllReferences === +// === /referencesForEnums.ts === +// enum E { +// value1 = 1, +// "value2" = value1, +// [|111|] = 11 +// } +// +// E.value1; +// E["value2"]; +// E.value2; +// E[/*FIND ALL REFS*/[|111|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExportedValues.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExportedValues.baseline.jsonc new file mode 100644 index 0000000000..10c12df9c3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExportedValues.baseline.jsonc @@ -0,0 +1,50 @@ +// === findAllReferences === +// === /referencesForExportedValues.ts === +// module M { +// /*FIND ALL REFS*/export var variable = 0; +// +// // local use +// var x = variable; +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /referencesForExportedValues.ts === +// module M { +// export var /*FIND ALL REFS*/[|variable|] = 0; +// +// // local use +// var x = [|variable|]; +// } +// +// // external use +// M.[|variable|] + + + +// === findAllReferences === +// === /referencesForExportedValues.ts === +// module M { +// export var [|variable|] = 0; +// +// // local use +// var x = /*FIND ALL REFS*/[|variable|]; +// } +// +// // external use +// M.[|variable|] + + + +// === findAllReferences === +// === /referencesForExportedValues.ts === +// module M { +// export var [|variable|] = 0; +// +// // local use +// var x = [|variable|]; +// } +// +// // external use +// M./*FIND ALL REFS*/[|variable|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc new file mode 100644 index 0000000000..c7d0181ab8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc @@ -0,0 +1,165 @@ +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class [|C|] { +// static x = 1; +// } +// /*FIND ALL REFS*/new [|C|](); +// void [|C|]; +// typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// yield [|C|]; +// await [|C|]; +// } +// "x" in [|C|]; +// undefined instanceof [|C|]; +// undefined as [|C|]; + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class [|C|] { +// static x = 1; +// } +// new [|C|](); +// /*FIND ALL REFS*/void [|C|]; +// typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// yield [|C|]; +// await [|C|]; +// } +// "x" in [|C|]; +// undefined instanceof [|C|]; +// undefined as [|C|]; + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class [|C|] { +// static x = 1; +// } +// new [|C|](); +// void [|C|]; +// /*FIND ALL REFS*/typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// yield [|C|]; +// await [|C|]; +// } +// "x" in [|C|]; +// undefined instanceof [|C|]; +// undefined as [|C|]; + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class [|C|] { +// static x = 1; +// } +// new [|C|](); +// void [|C|]; +// typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// /*FIND ALL REFS*/yield [|C|]; +// await [|C|]; +// } +// "x" in [|C|]; +// undefined instanceof [|C|]; +// undefined as [|C|]; + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class [|C|] { +// static x = 1; +// } +// new [|C|](); +// void [|C|]; +// typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// yield [|C|]; +// /*FIND ALL REFS*/await [|C|]; +// } +// "x" in [|C|]; +// undefined instanceof [|C|]; +// undefined as [|C|]; + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class [|C|] { +// static x = 1; +// } +// new [|C|](); +// void [|C|]; +// typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// yield [|C|]; +// await [|C|]; +// } +// "x" /*FIND ALL REFS*/in [|C|]; +// undefined instanceof [|C|]; +// undefined as [|C|]; + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class [|C|] { +// static x = 1; +// } +// new [|C|](); +// void [|C|]; +// typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// yield [|C|]; +// await [|C|]; +// } +// "x" in [|C|]; +// undefined /*FIND ALL REFS*/instanceof [|C|]; +// undefined as [|C|]; + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class [|C|] { +// static x = 1; +// } +// new [|C|](); +// void [|C|]; +// typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// yield [|C|]; +// await [|C|]; +// } +// "x" in [|C|]; +// undefined instanceof [|C|]; +// undefined /*FIND ALL REFS*/as [|C|]; + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === +// class C { +// static [|x|] = 1; +// } +// new C(); +// void C; +// typeof C; +// /*FIND ALL REFS*/delete C.[|x|]; +// async function* f() { +// yield C; +// await C; +// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc new file mode 100644 index 0000000000..cdbcdc4593 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// /*FIND ALL REFS*/declare module "[|foo|]" { +// var f: number; +// } + +// === /referencesForGlobals_2.ts === +// import f = require("[|foo|]"); + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// declare module "/*FIND ALL REFS*/[|foo|]" { +// var f: number; +// } + +// === /referencesForGlobals_2.ts === +// import f = require("[|foo|]"); + + + +// === findAllReferences === +// === /referencesForGlobals_2.ts === +// /*FIND ALL REFS*/import [|f|] = require("foo"); + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// declare module "[|foo|]" { +// var f: number; +// } + +// === /referencesForGlobals_2.ts === +// import f = require("/*FIND ALL REFS*/[|foo|]"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc new file mode 100644 index 0000000000..02172bb86d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc @@ -0,0 +1,42 @@ +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === +// /*FIND ALL REFS*/function [|foo|](x: string); +// function [|foo|](x: string, y: number) { +// [|foo|]('', 43); +// } + + + +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === +// function /*FIND ALL REFS*/[|foo|](x: string); +// function [|foo|](x: string, y: number) { +// [|foo|]('', 43); +// } + + + +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === +// function [|foo|](x: string); +// /*FIND ALL REFS*/function [|foo|](x: string, y: number) { +// [|foo|]('', 43); +// } + + + +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === +// function [|foo|](x: string); +// function /*FIND ALL REFS*/[|foo|](x: string, y: number) { +// [|foo|]('', 43); +// } + + + +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === +// function [|foo|](x: string); +// function [|foo|](x: string, y: number) { +// /*FIND ALL REFS*/[|foo|]('', 43); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..f6c122df92 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /referencesForFunctionParameter.ts === +// var x; +// var n; +// +// function n(x: number, /*FIND ALL REFS*/[|n|]: number) { +// [|n|] = 32; +// x = [|n|]; +// } + + + +// === findAllReferences === +// === /referencesForFunctionParameter.ts === +// var x; +// var n; +// +// function n(x: number, [|n|]: number) { +// /*FIND ALL REFS*/[|n|] = 32; +// x = [|n|]; +// } + + + +// === findAllReferences === +// === /referencesForFunctionParameter.ts === +// var x; +// var n; +// +// function n(x: number, [|n|]: number) { +// [|n|] = 32; +// x = /*FIND ALL REFS*/[|n|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc new file mode 100644 index 0000000000..7942e20845 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc @@ -0,0 +1,127 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// /*FIND ALL REFS*/var [|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = [|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = [|global|]; + +// === /referencesForGlobals_2.ts === +// var m = [|global|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// var /*FIND ALL REFS*/[|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = [|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = [|global|]; + +// === /referencesForGlobals_2.ts === +// var m = [|global|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// var [|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = /*FIND ALL REFS*/[|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = [|global|]; + +// === /referencesForGlobals_2.ts === +// var m = [|global|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// var [|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = [|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = /*FIND ALL REFS*/[|global|]; + +// === /referencesForGlobals_2.ts === +// var m = [|global|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// var [|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = [|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = [|global|]; + +// === /referencesForGlobals_2.ts === +// var m = /*FIND ALL REFS*/[|global|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc new file mode 100644 index 0000000000..d610d04261 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// /*FIND ALL REFS*/class [|globalClass|] { +// public f() { } +// } + +// === /referencesForGlobals_2.ts === +// var c = [|globalClass|](); + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// class /*FIND ALL REFS*/[|globalClass|] { +// public f() { } +// } + +// === /referencesForGlobals_2.ts === +// var c = [|globalClass|](); + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// class [|globalClass|] { +// public f() { } +// } + +// === /referencesForGlobals_2.ts === +// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc new file mode 100644 index 0000000000..900a8652b7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// /*FIND ALL REFS*/interface [|globalInterface|] { +// f(); +// } + +// === /referencesForGlobals_2.ts === +// var i: [|globalInterface|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// interface /*FIND ALL REFS*/[|globalInterface|] { +// f(); +// } + +// === /referencesForGlobals_2.ts === +// var i: [|globalInterface|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// interface [|globalInterface|] { +// f(); +// } + +// === /referencesForGlobals_2.ts === +// var i: /*FIND ALL REFS*/[|globalInterface|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc new file mode 100644 index 0000000000..0d1e16d30b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// /*FIND ALL REFS*/module [|globalModule|] { +// export f() { }; +// } + +// === /referencesForGlobals_2.ts === +// var m = [|globalModule|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// module /*FIND ALL REFS*/[|globalModule|] { +// export f() { }; +// } + +// === /referencesForGlobals_2.ts === +// var m = [|globalModule|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// module [|globalModule|] { +// export f() { }; +// } + +// === /referencesForGlobals_2.ts === +// var m = /*FIND ALL REFS*/[|globalModule|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc new file mode 100644 index 0000000000..1fe53ef3aa --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// module globalModule { +// export var x; +// } +// +// /*FIND ALL REFS*/import [|globalAlias|] = globalModule; + +// === /referencesForGlobals_2.ts === +// var m = [|globalAlias|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// module globalModule { +// export var x; +// } +// +// import /*FIND ALL REFS*/[|globalAlias|] = globalModule; + +// === /referencesForGlobals_2.ts === +// var m = [|globalAlias|]; + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === +// module globalModule { +// export var x; +// } +// +// import [|globalAlias|] = globalModule; + +// === /referencesForGlobals_2.ts === +// var m = /*FIND ALL REFS*/[|globalAlias|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc new file mode 100644 index 0000000000..f676331fc7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc @@ -0,0 +1,162 @@ +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// /*FIND ALL REFS*/var [|topLevelVar|] = 2; +// var topLevelVar2 = [|topLevelVar|]; +// +// class topLevelClass { } +// var c = new topLevelClass(); +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// var /*FIND ALL REFS*/[|topLevelVar|] = 2; +// var topLevelVar2 = [|topLevelVar|]; +// +// class topLevelClass { } +// var c = new topLevelClass(); +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// var [|topLevelVar|] = 2; +// var topLevelVar2 = /*FIND ALL REFS*/[|topLevelVar|]; +// +// class topLevelClass { } +// var c = new topLevelClass(); +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// var topLevelVar = 2; +// var topLevelVar2 = topLevelVar; +// +// /*FIND ALL REFS*/class [|topLevelClass|] { } +// var c = new [|topLevelClass|](); +// +// interface topLevelInterface { } +// var i: topLevelInterface; +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// var topLevelVar = 2; +// var topLevelVar2 = topLevelVar; +// +// class /*FIND ALL REFS*/[|topLevelClass|] { } +// var c = new [|topLevelClass|](); +// +// interface topLevelInterface { } +// var i: topLevelInterface; +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// var topLevelVar = 2; +// var topLevelVar2 = topLevelVar; +// +// class [|topLevelClass|] { } +// var c = new /*FIND ALL REFS*/[|topLevelClass|](); +// +// interface topLevelInterface { } +// var i: topLevelInterface; +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// --- (line: 3) skipped --- +// class topLevelClass { } +// var c = new topLevelClass(); +// +// /*FIND ALL REFS*/interface [|topLevelInterface|] { } +// var i: [|topLevelInterface|]; +// +// module topLevelModule { +// export var x; +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// --- (line: 3) skipped --- +// class topLevelClass { } +// var c = new topLevelClass(); +// +// interface /*FIND ALL REFS*/[|topLevelInterface|] { } +// var i: [|topLevelInterface|]; +// +// module topLevelModule { +// export var x; +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// --- (line: 3) skipped --- +// class topLevelClass { } +// var c = new topLevelClass(); +// +// interface [|topLevelInterface|] { } +// var i: /*FIND ALL REFS*/[|topLevelInterface|]; +// +// module topLevelModule { +// export var x; +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// --- (line: 6) skipped --- +// interface topLevelInterface { } +// var i: topLevelInterface; +// +// /*FIND ALL REFS*/module [|topLevelModule|] { +// export var x; +// } +// var x = [|topLevelModule|].x; +// +// export = x; + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// --- (line: 6) skipped --- +// interface topLevelInterface { } +// var i: topLevelInterface; +// +// module /*FIND ALL REFS*/[|topLevelModule|] { +// export var x; +// } +// var x = [|topLevelModule|].x; +// +// export = x; + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === +// --- (line: 6) skipped --- +// interface topLevelInterface { } +// var i: topLevelInterface; +// +// module [|topLevelModule|] { +// export var x; +// } +// var x = /*FIND ALL REFS*/[|topLevelModule|].x; +// +// export = x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc new file mode 100644 index 0000000000..d93532f71d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc @@ -0,0 +1,21 @@ +// === findAllReferences === +// === /referencesForIllegalAssignment.ts === +// f/*FIND ALL REFS*/oo = foo; +// var bar = function () { }; +// bar = bar + 1; + + + +// === findAllReferences === +// === /referencesForIllegalAssignment.ts === +// foo = fo/*FIND ALL REFS*/o; +// var bar = function () { }; +// bar = bar + 1; + + + +// === findAllReferences === +// === /referencesForIllegalAssignment.ts === +// foo = foo; +// var /*FIND ALL REFS*/[|bar|] = function () { }; +// [|bar|] = [|bar|] + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc new file mode 100644 index 0000000000..bd03e117e5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc @@ -0,0 +1,53 @@ +// === findAllReferences === +// === /referencesForImports.ts === +// declare module "jquery" { +// function $(s: string): any; +// export = $; +// } +// /*FIND ALL REFS*/import [|$|] = require("jquery"); +// [|$|]("a"); +// import $ = require("jquery"); + + + +// === findAllReferences === +// === /referencesForImports.ts === +// declare module "jquery" { +// function $(s: string): any; +// export = $; +// } +// import /*FIND ALL REFS*/[|$|] = require("jquery"); +// [|$|]("a"); +// import $ = require("jquery"); + + + +// === findAllReferences === +// === /referencesForImports.ts === +// declare module "jquery" { +// function $(s: string): any; +// export = $; +// } +// import [|$|] = require("jquery"); +// /*FIND ALL REFS*/[|$|]("a"); +// import $ = require("jquery"); + + + +// === findAllReferences === +// === /referencesForImports.ts === +// --- (line: 3) skipped --- +// } +// import $ = require("jquery"); +// $("a"); +// /*FIND ALL REFS*/import [|$|] = require("jquery"); + + + +// === findAllReferences === +// === /referencesForImports.ts === +// --- (line: 3) skipped --- +// } +// import $ = require("jquery"); +// $("a"); +// import /*FIND ALL REFS*/[|$|] = require("jquery"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc new file mode 100644 index 0000000000..1ded639d70 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /referencesForIndexProperty.ts === +// class Foo { +// /*FIND ALL REFS*/[|property|]: number; +// method(): void { } +// } +// +// var f: Foo; +// f["[|property|]"]; +// f["method"]; + + + +// === findAllReferences === +// === /referencesForIndexProperty.ts === +// class Foo { +// property: number; +// /*FIND ALL REFS*/[|method|](): void { } +// } +// +// var f: Foo; +// f["property"]; +// f["[|method|]"]; + + + +// === findAllReferences === +// === /referencesForIndexProperty.ts === +// class Foo { +// [|property|]: number; +// method(): void { } +// } +// +// var f: Foo; +// f["/*FIND ALL REFS*/[|property|]"]; +// f["method"]; + + + +// === findAllReferences === +// === /referencesForIndexProperty.ts === +// class Foo { +// property: number; +// [|method|](): void { } +// } +// +// var f: Foo; +// f["property"]; +// f["/*FIND ALL REFS*/[|method|]"]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc new file mode 100644 index 0000000000..85224ee567 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /referencesForIndexProperty2.ts === +// var a; +// a["/*FIND ALL REFS*/blah"]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc new file mode 100644 index 0000000000..682a16fa69 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc @@ -0,0 +1,39 @@ +// === findAllReferences === +// === /referencesForIndexProperty3.ts === +// interface Object { +// /*FIND ALL REFS*/[|toMyString|](); +// } +// +// var y: Object; +// y.[|toMyString|](); +// +// var x = {}; +// x["[|toMyString|]"](); + + + +// === findAllReferences === +// === /referencesForIndexProperty3.ts === +// interface Object { +// [|toMyString|](); +// } +// +// var y: Object; +// y./*FIND ALL REFS*/[|toMyString|](); +// +// var x = {}; +// x["[|toMyString|]"](); + + + +// === findAllReferences === +// === /referencesForIndexProperty3.ts === +// interface Object { +// [|toMyString|](); +// } +// +// var y: Object; +// y.[|toMyString|](); +// +// var x = {}; +// x["/*FIND ALL REFS*/[|toMyString|]"](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc new file mode 100644 index 0000000000..293d6351e9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc @@ -0,0 +1,97 @@ +// === findAllReferences === +// === /referencesForInheritedProperties.ts === +// interface interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// } +// +// interface interface2 extends interface1{ +// [|doStuff|](): void; +// } +// +// class class1 implements interface2 { +// [|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v.[|doStuff|](); + + + +// === findAllReferences === +// === /referencesForInheritedProperties.ts === +// interface interface1 { +// [|doStuff|](): void; +// } +// +// interface interface2 extends interface1{ +// /*FIND ALL REFS*/[|doStuff|](): void; +// } +// +// class class1 implements interface2 { +// [|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v.[|doStuff|](); + + + +// === findAllReferences === +// === /referencesForInheritedProperties.ts === +// interface interface1 { +// [|doStuff|](): void; +// } +// +// interface interface2 extends interface1{ +// [|doStuff|](): void; +// } +// +// class class1 implements interface2 { +// /*FIND ALL REFS*/[|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v.[|doStuff|](); + + + +// === findAllReferences === +// === /referencesForInheritedProperties.ts === +// interface interface1 { +// [|doStuff|](): void; +// } +// +// interface interface2 extends interface1{ +// [|doStuff|](): void; +// } +// +// class class1 implements interface2 { +// [|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v./*FIND ALL REFS*/[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties10.baseline.jsonc new file mode 100644 index 0000000000..7dde88000c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties10.baseline.jsonc @@ -0,0 +1,75 @@ +// === findAllReferences === +// === /referencesForInheritedProperties10.ts === +// interface IFeedbackHandler { +// /*FIND ALL REFS*/[|handleAccept|]?(): void; +// handleReject?(): void; +// } +// +// abstract class AbstractFeedbackHandler implements IFeedbackHandler {} +// +// class FeedbackHandler extends AbstractFeedbackHandler { +// [|handleAccept|](): void { +// console.log("Feedback accepted"); +// } +// +// handleReject(): void { +// console.log("Feedback rejected"); +// } +// } +// +// function foo(handler: IFeedbackHandler) { +// handler.[|handleAccept|]?.(); +// handler.handleReject?.(); +// } + + + +// === findAllReferences === +// === /referencesForInheritedProperties10.ts === +// interface IFeedbackHandler { +// [|handleAccept|]?(): void; +// handleReject?(): void; +// } +// +// abstract class AbstractFeedbackHandler implements IFeedbackHandler {} +// +// class FeedbackHandler extends AbstractFeedbackHandler { +// /*FIND ALL REFS*/[|handleAccept|](): void { +// console.log("Feedback accepted"); +// } +// +// handleReject(): void { +// console.log("Feedback rejected"); +// } +// } +// +// function foo(handler: IFeedbackHandler) { +// handler.[|handleAccept|]?.(); +// handler.handleReject?.(); +// } + + + +// === findAllReferences === +// === /referencesForInheritedProperties10.ts === +// interface IFeedbackHandler { +// [|handleAccept|]?(): void; +// handleReject?(): void; +// } +// +// abstract class AbstractFeedbackHandler implements IFeedbackHandler {} +// +// class FeedbackHandler extends AbstractFeedbackHandler { +// [|handleAccept|](): void { +// console.log("Feedback accepted"); +// } +// +// handleReject(): void { +// console.log("Feedback rejected"); +// } +// } +// +// function foo(handler: IFeedbackHandler) { +// handler./*FIND ALL REFS*/[|handleAccept|]?.(); +// handler.handleReject?.(); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc new file mode 100644 index 0000000000..e34fca6cd0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /referencesForInheritedProperties2.ts === +// interface interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// } +// +// interface interface2 { +// [|doStuff|](): void; +// } +// +// interface interface2 extends interface1 { +// } +// +// class class1 implements interface2 { +// [|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v.[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc new file mode 100644 index 0000000000..19d90b93c7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /referencesForInheritedProperties3.ts === +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// +// var v: interface1; +// v.propName; +// v.[|doStuff|](); + + + +// === findAllReferences === +// === /referencesForInheritedProperties3.ts === +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var v: interface1; +// v.[|propName|]; +// v.doStuff(); + + + +// === findAllReferences === +// === /referencesForInheritedProperties3.ts === +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// +// var v: interface1; +// v./*FIND ALL REFS*/[|propName|]; +// v.doStuff(); + + + +// === findAllReferences === +// === /referencesForInheritedProperties3.ts === +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// +// var v: interface1; +// v.propName; +// v./*FIND ALL REFS*/[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc new file mode 100644 index 0000000000..3a6c2a0e04 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /referencesForInheritedProperties4.ts === +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// +// var c: class1; +// c.[|doStuff|](); +// c.propName; + + + +// === findAllReferences === +// === /referencesForInheritedProperties4.ts === +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var c: class1; +// c.doStuff(); +// c.[|propName|]; + + + +// === findAllReferences === +// === /referencesForInheritedProperties4.ts === +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var c: class1; +// c./*FIND ALL REFS*/[|doStuff|](); +// c.propName; + + + +// === findAllReferences === +// === /referencesForInheritedProperties4.ts === +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var c: class1; +// c.doStuff(); +// c./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc new file mode 100644 index 0000000000..3c9123193e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc @@ -0,0 +1,31 @@ +// === findAllReferences === +// === /referencesForInheritedProperties5.ts === +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// interface interface2 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// +// var v: interface1; +// v.propName; +// v.[|doStuff|](); + + + +// === findAllReferences === +// === /referencesForInheritedProperties5.ts === +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface2 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// +// var v: interface1; +// v.[|propName|]; +// v.doStuff(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc new file mode 100644 index 0000000000..7234ace5af --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /referencesForInheritedProperties6.ts === +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// } +// class class2 extends class1 { +// [|doStuff|]() { } +// } +// +// var v: class2; +// v.[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc new file mode 100644 index 0000000000..78bfa8e7bc --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc @@ -0,0 +1,121 @@ +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === +// class class1 extends class1 { +// doStuff() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === +// --- (line: 3) skipped --- +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc new file mode 100644 index 0000000000..972d4a33d9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /referencesForInheritedProperties8.ts === +// interface C extends D { +// /*FIND ALL REFS*/[|propD|]: number; +// } +// interface D extends C { +// [|propD|]: string; +// propC: number; +// } +// var d: D; +// d.[|propD|]; +// d.propC; + + + +// === findAllReferences === +// === /referencesForInheritedProperties8.ts === +// interface C extends D { +// propD: number; +// } +// interface D extends C { +// propD: string; +// /*FIND ALL REFS*/[|propC|]: number; +// } +// var d: D; +// d.propD; +// d.[|propC|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc new file mode 100644 index 0000000000..fa5cd78b48 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc @@ -0,0 +1,38 @@ +// === findAllReferences === +// === /referencesForInheritedProperties9.ts === +// class D extends C { +// /*FIND ALL REFS*/[|prop1|]: string; +// } +// +// class C extends D { +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /referencesForInheritedProperties9.ts === +// class D extends C { +// prop1: string; +// } +// +// class C extends D { +// /*FIND ALL REFS*/[|prop1|]: string; +// } +// +// var c: C; +// c.[|prop1|]; + + + +// === findAllReferences === +// === /referencesForInheritedProperties9.ts === +// class D extends C { +// prop1: string; +// } +// +// class C extends D { +// [|prop1|]: string; +// } +// +// var c: C; +// c./*FIND ALL REFS*/[|prop1|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc new file mode 100644 index 0000000000..783462c95b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc @@ -0,0 +1,69 @@ +// === findAllReferences === +// === /referencesForLabel.ts === +// /*FIND ALL REFS*/[|label|]: while (true) { +// if (false) break [|label|]; +// if (true) continue [|label|]; +// } +// +// label: while (false) { } +// var label = "label"; + + + +// === findAllReferences === +// === /referencesForLabel.ts === +// label: while (true) { +// if (false) /*FIND ALL REFS*/break label; +// if (true) continue label; +// } +// +// label: while (false) { } +// var label = "label"; + + + +// === findAllReferences === +// === /referencesForLabel.ts === +// [|label|]: while (true) { +// if (false) break /*FIND ALL REFS*/[|label|]; +// if (true) continue [|label|]; +// } +// +// label: while (false) { } +// var label = "label"; + + + +// === findAllReferences === +// === /referencesForLabel.ts === +// label: while (true) { +// if (false) break label; +// if (true) /*FIND ALL REFS*/continue label; +// } +// +// label: while (false) { } +// var label = "label"; + + + +// === findAllReferences === +// === /referencesForLabel.ts === +// [|label|]: while (true) { +// if (false) break [|label|]; +// if (true) continue /*FIND ALL REFS*/[|label|]; +// } +// +// label: while (false) { } +// var label = "label"; + + + +// === findAllReferences === +// === /referencesForLabel.ts === +// label: while (true) { +// if (false) break label; +// if (true) continue label; +// } +// +// /*FIND ALL REFS*/[|label|]: while (false) { } +// var label = "label"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc new file mode 100644 index 0000000000..c68d6f1c66 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /referencesForLabel2.ts === +// var label = "label"; +// while (true) { +// if (false) break /*FIND ALL REFS*/label; +// if (true) continue label; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc new file mode 100644 index 0000000000..e86a78b6b3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /referencesForLabel3.ts === +// /*FIND ALL REFS*/[|label|]: while (true) { +// var label = "label"; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc new file mode 100644 index 0000000000..fc1db350cf --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /referencesForLabel4.ts === +// /*FIND ALL REFS*/[|label|]: function foo(label) { +// while (true) { +// break [|label|]; +// } +// } + + + +// === findAllReferences === +// === /referencesForLabel4.ts === +// label: function foo(label) { +// while (true) { +// /*FIND ALL REFS*/break label; +// } +// } + + + +// === findAllReferences === +// === /referencesForLabel4.ts === +// [|label|]: function foo(label) { +// while (true) { +// break /*FIND ALL REFS*/[|label|]; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc new file mode 100644 index 0000000000..4b0e54b03e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc @@ -0,0 +1,103 @@ +// === findAllReferences === +// === /referencesForLabel5.ts === +// /*FIND ALL REFS*/[|label|]: while (true) { +// if (false) break [|label|]; +// function blah() { +// label: while (true) { +// if (false) break label; +// } +// } +// if (false) break [|label|]; +// } + + + +// === findAllReferences === +// === /referencesForLabel5.ts === +// label: while (true) { +// if (false) /*FIND ALL REFS*/break label; +// function blah() { +// label: while (true) { +// if (false) break label; +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /referencesForLabel5.ts === +// [|label|]: while (true) { +// if (false) break /*FIND ALL REFS*/[|label|]; +// function blah() { +// label: while (true) { +// if (false) break label; +// } +// } +// if (false) break [|label|]; +// } + + + +// === findAllReferences === +// === /referencesForLabel5.ts === +// label: while (true) { +// if (false) break label; +// function blah() { +// /*FIND ALL REFS*/[|label|]: while (true) { +// if (false) break [|label|]; +// } +// } +// if (false) break label; +// } + + + +// === findAllReferences === +// === /referencesForLabel5.ts === +// label: while (true) { +// if (false) break label; +// function blah() { +// label: while (true) { +// if (false) /*FIND ALL REFS*/break label; +// } +// } +// if (false) break label; +// } + + + +// === findAllReferences === +// === /referencesForLabel5.ts === +// label: while (true) { +// if (false) break label; +// function blah() { +// [|label|]: while (true) { +// if (false) break /*FIND ALL REFS*/[|label|]; +// } +// } +// if (false) break label; +// } + + + +// === findAllReferences === +// === /referencesForLabel5.ts === +// --- (line: 4) skipped --- +// if (false) break label; +// } +// } +// if (false) /*FIND ALL REFS*/break label; +// } + + + +// === findAllReferences === +// === /referencesForLabel5.ts === +// [|label|]: while (true) { +// if (false) break [|label|]; +// function blah() { +// label: while (true) { +// if (false) break label; +// } +// } +// if (false) break /*FIND ALL REFS*/[|label|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc new file mode 100644 index 0000000000..0d9f5a80dc --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /referencesForLabel6.ts === +// /*FIND ALL REFS*/[|labela|]: while (true) { +// labelb: while (false) { break labelb; } +// break labelc; +// } + + + +// === findAllReferences === +// === /referencesForLabel6.ts === +// labela: while (true) { +// /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } +// break labelc; +// } + + + +// === findAllReferences === +// === /referencesForLabel6.ts === +// labela: while (true) { +// labelb: while (false) { /*FIND ALL REFS*/break labelb; } +// break labelc; +// } + + + +// === findAllReferences === +// === /referencesForLabel6.ts === +// labela: while (true) { +// [|labelb|]: while (false) { break /*FIND ALL REFS*/[|labelb|]; } +// break labelc; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc new file mode 100644 index 0000000000..d6508f7d33 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc @@ -0,0 +1,147 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// /*FIND ALL REFS*/interface [|Foo|] { +// } +// +// module Foo { +// // --- (line: 5) skipped --- + +// --- (line: 8) skipped --- +// } +// +// var f1: Foo.Bar; +// var f2: [|Foo|]; +// Foo.bind(this); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// interface /*FIND ALL REFS*/[|Foo|] { +// } +// +// module Foo { +// // --- (line: 5) skipped --- + +// --- (line: 8) skipped --- +// } +// +// var f1: Foo.Bar; +// var f2: [|Foo|]; +// Foo.bind(this); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// interface Foo { +// } +// +// /*FIND ALL REFS*/module [|Foo|] { +// export interface Bar { } +// } +// +// function Foo(): void { +// } +// +// var f1: [|Foo|].Bar; +// var f2: Foo; +// Foo.bind(this); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// interface Foo { +// } +// +// module /*FIND ALL REFS*/[|Foo|] { +// export interface Bar { } +// } +// +// function Foo(): void { +// } +// +// var f1: [|Foo|].Bar; +// var f2: Foo; +// Foo.bind(this); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// --- (line: 4) skipped --- +// export interface Bar { } +// } +// +// /*FIND ALL REFS*/function [|Foo|](): void { +// } +// +// var f1: Foo.Bar; +// var f2: Foo; +// [|Foo|].bind(this); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// --- (line: 4) skipped --- +// export interface Bar { } +// } +// +// function /*FIND ALL REFS*/[|Foo|](): void { +// } +// +// var f1: Foo.Bar; +// var f2: Foo; +// [|Foo|].bind(this); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// interface Foo { +// } +// +// module [|Foo|] { +// export interface Bar { } +// } +// +// function Foo(): void { +// } +// +// var f1: /*FIND ALL REFS*/[|Foo|].Bar; +// var f2: Foo; +// Foo.bind(this); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// interface [|Foo|] { +// } +// +// module Foo { +// // --- (line: 5) skipped --- + +// --- (line: 8) skipped --- +// } +// +// var f1: Foo.Bar; +// var f2: /*FIND ALL REFS*/[|Foo|]; +// Foo.bind(this); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === +// --- (line: 4) skipped --- +// export interface Bar { } +// } +// +// function [|Foo|](): void { +// } +// +// var f1: Foo.Bar; +// var f2: Foo; +// /*FIND ALL REFS*/[|Foo|].bind(this); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc new file mode 100644 index 0000000000..fa095d184e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations2.ts === +// --- (line: 3) skipped --- +// +// function ATest() { } +// +// /*FIND ALL REFS*/import [|alias|] = ATest; // definition +// +// var a: [|alias|].Bar; // namespace +// [|alias|].call(this); // value + + + +// === findAllReferences === +// === /referencesForMergedDeclarations2.ts === +// --- (line: 3) skipped --- +// +// function ATest() { } +// +// import /*FIND ALL REFS*/[|alias|] = ATest; // definition +// +// var a: [|alias|].Bar; // namespace +// [|alias|].call(this); // value + + + +// === findAllReferences === +// === /referencesForMergedDeclarations2.ts === +// --- (line: 3) skipped --- +// +// function ATest() { } +// +// import [|alias|] = ATest; // definition +// +// var a: /*FIND ALL REFS*/[|alias|].Bar; // namespace +// [|alias|].call(this); // value + + + +// === findAllReferences === +// === /referencesForMergedDeclarations2.ts === +// --- (line: 3) skipped --- +// +// function ATest() { } +// +// import [|alias|] = ATest; // definition +// +// var a: [|alias|].Bar; // namespace +// /*FIND ALL REFS*/[|alias|].call(this); // value \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc new file mode 100644 index 0000000000..1fc1969780 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc @@ -0,0 +1,40 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations3.ts === +// class testClass { +// static staticMethod() { } +// method() { } +// } +// +// module /*FIND ALL REFS*/[|testClass|] { +// export interface Bar { +// +// } +// } +// +// var c1: testClass; +// var c2: [|testClass|].Bar; +// testClass.staticMethod(); +// testClass.prototype.method(); +// testClass.bind(this); +// new testClass(); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations3.ts === +// class /*FIND ALL REFS*/[|testClass|] { +// static staticMethod() { } +// method() { } +// } +// // --- (line: 5) skipped --- + +// --- (line: 8) skipped --- +// } +// } +// +// var c1: [|testClass|]; +// var c2: testClass.Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// new [|testClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc new file mode 100644 index 0000000000..5896510ddb --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc @@ -0,0 +1,261 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// /*FIND ALL REFS*/class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class /*FIND ALL REFS*/[|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// /*FIND ALL REFS*/module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module /*FIND ALL REFS*/[|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: /*FIND ALL REFS*/[|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: /*FIND ALL REFS*/[|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// /*FIND ALL REFS*/[|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// /*FIND ALL REFS*/[|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// /*FIND ALL REFS*/[|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// /*FIND ALL REFS*/[|testClass|].s; +// new [|testClass|](); + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new /*FIND ALL REFS*/[|testClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc new file mode 100644 index 0000000000..abf381b396 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc @@ -0,0 +1,37 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations5.ts === +// interface /*FIND ALL REFS*/[|Foo|] { } +// module Foo { export interface Bar { } } +// function Foo() { } +// +// export = Foo; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations5.ts === +// interface Foo { } +// module /*FIND ALL REFS*/[|Foo|] { export interface Bar { } } +// function Foo() { } +// +// export = Foo; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations5.ts === +// interface Foo { } +// module Foo { export interface Bar { } } +// function /*FIND ALL REFS*/[|Foo|]() { } +// +// export = [|Foo|]; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations5.ts === +// interface Foo { } +// module Foo { export interface Bar { } } +// function [|Foo|]() { } +// +// export = /*FIND ALL REFS*/[|Foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc new file mode 100644 index 0000000000..7746adb1e4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc @@ -0,0 +1,39 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations6.ts === +// interface Foo { } +// /*FIND ALL REFS*/module [|Foo|] { +// export interface Bar { } +// export module Bar { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a1 = [|Foo|]; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations6.ts === +// interface Foo { } +// module /*FIND ALL REFS*/[|Foo|] { +// export interface Bar { } +// export module Bar { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a1 = [|Foo|]; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations6.ts === +// interface Foo { } +// module [|Foo|] { +// export interface Bar { } +// export module Bar { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a1 = /*FIND ALL REFS*/[|Foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc new file mode 100644 index 0000000000..5f4172f80a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc @@ -0,0 +1,51 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations7.ts === +// interface Foo { } +// module Foo { +// export interface /*FIND ALL REFS*/[|Bar|] { } +// export module Bar { export interface Baz { } } +// export function Bar() { } +// } +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /referencesForMergedDeclarations7.ts === +// interface Foo { } +// module Foo { +// export interface Bar { } +// export module /*FIND ALL REFS*/[|Bar|] { export interface Baz { } } +// export function Bar() { } +// } +// +// // module, value and type +// import a2 = Foo.[|Bar|]; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations7.ts === +// interface Foo { } +// module Foo { +// export interface Bar { } +// export module Bar { export interface Baz { } } +// export function /*FIND ALL REFS*/[|Bar|]() { } +// } +// +// // module, value and type +// import a2 = Foo.Bar; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations7.ts === +// interface Foo { } +// module Foo { +// export interface Bar { } +// export module [|Bar|] { export interface Baz { } } +// export function Bar() { } +// } +// +// // module, value and type +// import a2 = Foo./*FIND ALL REFS*/[|Bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc new file mode 100644 index 0000000000..01b41d14f3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc @@ -0,0 +1,39 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations8.ts === +// interface Foo { } +// module Foo { +// export interface Bar { } +// /*FIND ALL REFS*/export module [|Bar|] { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a3 = Foo.[|Bar|].Baz; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations8.ts === +// interface Foo { } +// module Foo { +// export interface Bar { } +// export module /*FIND ALL REFS*/[|Bar|] { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a3 = Foo.[|Bar|].Baz; + + + +// === findAllReferences === +// === /referencesForMergedDeclarations8.ts === +// interface Foo { } +// module Foo { +// export interface [|Bar|] { } +// export module [|Bar|] { export interface Baz { } } +// export function [|Bar|]() { } +// } +// +// // module +// import a3 = Foo./*FIND ALL REFS*/[|Bar|].Baz; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc new file mode 100644 index 0000000000..5edfd5392f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc @@ -0,0 +1,127 @@ +// === findAllReferences === +// === /referencesForModifiers.ts === +// /*FIND ALL REFS*/declare abstract class [|C1|] { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// declare /*FIND ALL REFS*/abstract class [|C1|] { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// declare abstract class C1 { +// /*FIND ALL REFS*/static [|a|]; +// readonly b; +// public c; +// protected d; +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// declare abstract class C1 { +// static a; +// /*FIND ALL REFS*/readonly [|b|]; +// public c; +// protected d; +// private e; +// // --- (line: 7) skipped --- + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// declare abstract class C1 { +// static a; +// readonly b; +// /*FIND ALL REFS*/public [|c|]; +// protected d; +// private e; +// } +// // --- (line: 8) skipped --- + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// declare abstract class C1 { +// static a; +// readonly b; +// public c; +// /*FIND ALL REFS*/protected [|d|]; +// private e; +// } +// const enum E { +// // --- (line: 9) skipped --- + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// declare abstract class C1 { +// static a; +// readonly b; +// public c; +// protected d; +// /*FIND ALL REFS*/private [|e|]; +// } +// const enum E { +// } +// async function fn() {} +// export default class C2 {} + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// --- (line: 4) skipped --- +// protected d; +// private e; +// } +// /*FIND ALL REFS*/const enum [|E|] { +// } +// async function fn() {} +// export default class C2 {} + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// --- (line: 6) skipped --- +// } +// const enum E { +// } +// /*FIND ALL REFS*/async function [|fn|]() {} +// export default class C2 {} + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// --- (line: 7) skipped --- +// const enum E { +// } +// async function fn() {} +// /*FIND ALL REFS*/export default class [|C2|] {} + + + +// === findAllReferences === +// === /referencesForModifiers.ts === +// --- (line: 7) skipped --- +// const enum E { +// } +// async function fn() {} +// export /*FIND ALL REFS*/default class C2 {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc new file mode 100644 index 0000000000..e164a992da --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc @@ -0,0 +1,51 @@ +// === findAllReferences === +// === /referencesForNoContext.ts === +// module modTest { +// //Declare +// export var modVar:number; +// /*FIND ALL REFS*/ +// +// //Increments +// modVar++; +// // --- (line: 8) skipped --- + + + +// === findAllReferences === +// === /referencesForNoContext.ts === +// --- (line: 6) skipped --- +// modVar++; +// +// class testCls{ +// /*FIND ALL REFS*/ +// } +// +// function testFn(){ +// // --- (line: 14) skipped --- + + + +// === findAllReferences === +// === /referencesForNoContext.ts === +// --- (line: 12) skipped --- +// function testFn(){ +// //Increments +// modVar++; +// } /*FIND ALL REFS*/ +// +// module testMod { +// } +// } + + + +// === findAllReferences === +// === /referencesForNoContext.ts === +// --- (line: 13) skipped --- +// //Increments +// modVar++; +// } +// /*FIND ALL REFS*/ +// module testMod { +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc new file mode 100644 index 0000000000..a65dea2d3d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc @@ -0,0 +1,10 @@ +// === findAllReferences === +// === /referencesForNumericLiteralPropertyNames.ts === +// class Foo { +// public /*FIND ALL REFS*/[|12|]: any; +// } +// +// var x: Foo; +// x[[|12|]]; +// x = { "[|12|]": 0 }; +// x = { [|12|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc new file mode 100644 index 0000000000..6a699f1bae --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc @@ -0,0 +1,37 @@ +// === findAllReferences === +// === /referencesForObjectLiteralProperties.ts === +// var x = { /*FIND ALL REFS*/[|add|]: 0, b: "string" }; +// x["[|add|]"]; +// x.[|add|]; +// var y = x; +// y.[|add|]; + + + +// === findAllReferences === +// === /referencesForObjectLiteralProperties.ts === +// var x = { [|add|]: 0, b: "string" }; +// x["/*FIND ALL REFS*/[|add|]"]; +// x.[|add|]; +// var y = x; +// y.[|add|]; + + + +// === findAllReferences === +// === /referencesForObjectLiteralProperties.ts === +// var x = { [|add|]: 0, b: "string" }; +// x["[|add|]"]; +// x./*FIND ALL REFS*/[|add|]; +// var y = x; +// y.[|add|]; + + + +// === findAllReferences === +// === /referencesForObjectLiteralProperties.ts === +// var x = { [|add|]: 0, b: "string" }; +// x["[|add|]"]; +// x.[|add|]; +// var y = x; +// y./*FIND ALL REFS*/[|add|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc new file mode 100644 index 0000000000..8925d5d0da --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc @@ -0,0 +1,160 @@ +// === findAllReferences === +// === /referencesForOverrides.ts === +// module FindRef3 { +// module SimpleClassTest { +// export class Foo { +// public /*FIND ALL REFS*/[|foo|](): void { +// } +// } +// export class Bar extends Foo { +// public [|foo|](): void { +// } +// } +// } +// // --- (line: 12) skipped --- + +// --- (line: 58) skipped --- +// +// function test() { +// var x = new SimpleClassTest.Bar(); +// x.[|foo|](); +// +// var y: SimpleInterfaceTest.IBar = null; +// y.ifoo(); +// // --- (line: 66) skipped --- + + + +// === findAllReferences === +// === /referencesForOverrides.ts === +// --- (line: 11) skipped --- +// +// module SimpleInterfaceTest { +// export interface IFoo { +// /*FIND ALL REFS*/[|ifoo|](): void; +// } +// export interface IBar extends IFoo { +// [|ifoo|](): void; +// } +// } +// +// // --- (line: 22) skipped --- + +// --- (line: 61) skipped --- +// x.foo(); +// +// var y: SimpleInterfaceTest.IBar = null; +// y.[|ifoo|](); +// +// var w: SimpleClassInterfaceTest.Bar = null; +// w.icfoo(); +// // --- (line: 69) skipped --- + + + +// === findAllReferences === +// === /referencesForOverrides.ts === +// --- (line: 20) skipped --- +// +// module SimpleClassInterfaceTest { +// export interface IFoo { +// /*FIND ALL REFS*/[|icfoo|](): void; +// } +// export class Bar implements IFoo { +// public [|icfoo|](): void { +// } +// } +// } +// // --- (line: 31) skipped --- + +// --- (line: 64) skipped --- +// y.ifoo(); +// +// var w: SimpleClassInterfaceTest.Bar = null; +// w.[|icfoo|](); +// +// var z = new Test.BarBlah(); +// z.field = ""; +// // --- (line: 72) skipped --- + + + +// === findAllReferences === +// === /referencesForOverrides.ts === +// --- (line: 30) skipped --- +// +// module Test { +// export interface IBase { +// /*FIND ALL REFS*/[|field|]: string; +// method(): void; +// } +// +// export interface IBlah extends IBase { +// [|field|]: string; +// } +// +// export interface IBlah2 extends IBlah { +// [|field|]: string; +// } +// +// export interface IDerived extends IBlah2 { +// method(): void; +// } +// +// export class Bar implements IDerived { +// public [|field|]: string; +// public method(): void { } +// } +// +// export class BarBlah extends Bar { +// public [|field|]: string; +// } +// } +// +// // --- (line: 60) skipped --- + +// --- (line: 67) skipped --- +// w.icfoo(); +// +// var z = new Test.BarBlah(); +// z.[|field|] = ""; +// z.method(); +// } +// } + + + +// === findAllReferences === +// === /referencesForOverrides.ts === +// --- (line: 31) skipped --- +// module Test { +// export interface IBase { +// field: string; +// /*FIND ALL REFS*/[|method|](): void; +// } +// +// export interface IBlah extends IBase { +// // --- (line: 39) skipped --- + +// --- (line: 43) skipped --- +// } +// +// export interface IDerived extends IBlah2 { +// [|method|](): void; +// } +// +// export class Bar implements IDerived { +// public field: string; +// public [|method|](): void { } +// } +// +// export class BarBlah extends Bar { +// // --- (line: 56) skipped --- + +// --- (line: 68) skipped --- +// +// var z = new Test.BarBlah(); +// z.field = ""; +// z.[|method|](); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc new file mode 100644 index 0000000000..1d29d03a3f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc @@ -0,0 +1,39 @@ +// === findAllReferences === +// === /referencesForPropertiesOfGenericType.ts === +// interface IFoo { +// /*FIND ALL REFS*/[|doSomething|](v: T): T; +// } +// +// var x: IFoo; +// x.[|doSomething|]("ss"); +// +// var y: IFoo; +// y.[|doSomething|](12); + + + +// === findAllReferences === +// === /referencesForPropertiesOfGenericType.ts === +// interface IFoo { +// [|doSomething|](v: T): T; +// } +// +// var x: IFoo; +// x./*FIND ALL REFS*/[|doSomething|]("ss"); +// +// var y: IFoo; +// y.[|doSomething|](12); + + + +// === findAllReferences === +// === /referencesForPropertiesOfGenericType.ts === +// interface IFoo { +// [|doSomething|](v: T): T; +// } +// +// var x: IFoo; +// x.[|doSomething|]("ss"); +// +// var y: IFoo; +// y./*FIND ALL REFS*/[|doSomething|](12); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatementKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatementKeywords.baseline.jsonc new file mode 100644 index 0000000000..ce52dab94e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatementKeywords.baseline.jsonc @@ -0,0 +1,268 @@ +// === findAllReferences === +// === /main.ts === +// // import ... = ... +// /*FIND ALL REFS*/import [|A|] = require("./a"); +// namespace N { } +// import N2 = N; +// +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// // import ... = ... +// import A = /*FIND ALL REFS*/require("[|./a|]"); +// namespace N { } +// import N2 = N; +// +// // --- (line: 6) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// // import ... = ... +// import A = require("./a"); +// namespace N { } +// /*FIND ALL REFS*/import [|N2|] = N; +// +// // import ... from ... +// import type B from "./b"; +// // --- (line: 8) skipped --- + + + +// === findAllReferences === +// === /b.ts === +// export default class [|B|] {} + +// === /main.ts === +// --- (line: 3) skipped --- +// import N2 = N; +// +// // import ... from ... +// /*FIND ALL REFS*/import type [|B|] from "./b"; +// import type * as C from "./c"; +// import type { D } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /b.ts === +// export default class [|B|] {} + +// === /main.ts === +// --- (line: 3) skipped --- +// import N2 = N; +// +// // import ... from ... +// import /*FIND ALL REFS*/type [|B|] from "./b"; +// import type * as C from "./c"; +// import type { D } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 3) skipped --- +// import N2 = N; +// +// // import ... from ... +// import type B /*FIND ALL REFS*/from "[|./b|]"; +// import type * as C from "./c"; +// import type { D } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// // --- (line: 11) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 4) skipped --- +// +// // import ... from ... +// import type B from "./b"; +// /*FIND ALL REFS*/import type * as [|C|] from "./c"; +// import type { D } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 4) skipped --- +// +// // import ... from ... +// import type B from "./b"; +// import /*FIND ALL REFS*/type * as [|C|] from "./c"; +// import type { D } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 4) skipped --- +// +// // import ... from ... +// import type B from "./b"; +// import type * /*FIND ALL REFS*/as [|C|] from "./c"; +// import type { D } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 4) skipped --- +// +// // import ... from ... +// import type B from "./b"; +// import type * as C /*FIND ALL REFS*/from "[|./c|]"; +// import type { D } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /d.ts === +// export class [|D|] {} + +// === /main.ts === +// --- (line: 5) skipped --- +// // import ... from ... +// import type B from "./b"; +// import type * as C from "./c"; +// /*FIND ALL REFS*/import type { [|D|] } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// +// // import "module" +// // --- (line: 13) skipped --- + + + +// === findAllReferences === +// === /d.ts === +// export class [|D|] {} + +// === /main.ts === +// --- (line: 5) skipped --- +// // import ... from ... +// import type B from "./b"; +// import type * as C from "./c"; +// import /*FIND ALL REFS*/type { [|D|] } from "./d"; +// import type { e1, e2 as e3 } from "./e"; +// +// // import "module" +// // --- (line: 13) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 5) skipped --- +// // import ... from ... +// import type B from "./b"; +// import type * as C from "./c"; +// import type { D } /*FIND ALL REFS*/from "[|./d|]"; +// import type { e1, e2 as e3 } from "./e"; +// +// // import "module" +// // --- (line: 13) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 6) skipped --- +// import type B from "./b"; +// import type * as C from "./c"; +// import type { D } from "./d"; +// /*FIND ALL REFS*/import type { e1, e2 as e3 } from "./e"; +// +// // import "module" +// import "./f"; +// // --- (line: 14) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 6) skipped --- +// import type B from "./b"; +// import type * as C from "./c"; +// import type { D } from "./d"; +// import /*FIND ALL REFS*/type { e1, e2 as e3 } from "./e"; +// +// // import "module" +// import "./f"; +// // --- (line: 14) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 6) skipped --- +// import type B from "./b"; +// import type * as C from "./c"; +// import type { D } from "./d"; +// import type { e1, e2 as e3 } /*FIND ALL REFS*/from "[|./e|]"; +// +// // import "module" +// import "./f"; +// // --- (line: 14) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 6) skipped --- +// import type B from "./b"; +// import type * as C from "./c"; +// import type { D } from "./d"; +// import type { e1, e2 /*FIND ALL REFS*/as [|e3|] } from "./e"; +// +// // import "module" +// import "./f"; +// // --- (line: 14) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 9) skipped --- +// import type { e1, e2 as e3 } from "./e"; +// +// // import "module" +// /*FIND ALL REFS*/import "[|./f|]"; +// +// // export ... from ... +// export type * from "./g"; +// // --- (line: 17) skipped --- + + + +// === findAllReferences === +// === /main.ts === +// --- (line: 12) skipped --- +// import "./f"; +// +// // export ... from ... +// /*FIND ALL REFS*/export type * from "[|./g|]"; +// export type * as H from "./h"; +// export type { I } from "./i"; +// export type { j1, j2 as j3 } from "./j"; +// // --- (line: 20) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc new file mode 100644 index 0000000000..05be2ced9c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc @@ -0,0 +1,276 @@ +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// /*FIND ALL REFS*/static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo.[|n|]; + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// static /*FIND ALL REFS*/[|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo.[|n|]; + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo./*FIND ALL REFS*/[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo.[|n|]; + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo./*FIND ALL REFS*/[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo.[|n|]; + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo./*FIND ALL REFS*/[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo.[|n|]; + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo./*FIND ALL REFS*/[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo.[|n|]; + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo./*FIND ALL REFS*/[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo.[|n|]; + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo./*FIND ALL REFS*/[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo.[|n|]; + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + +// === /referencesOnStatic_2.ts === +// var q = foo./*FIND ALL REFS*/[|n|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc new file mode 100644 index 0000000000..98a98b58e6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc @@ -0,0 +1,250 @@ +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// /*FIND ALL REFS*/[|bar|]: Foo; +// static bar: Foo; +// +// public foo(): void { +// // --- (line: 8) skipped --- + +// --- (line: 14) skipped --- +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x.foo(); +// x.[|bar|]; +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// // --- (line: 22) skipped --- + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// bar: Foo; +// /*FIND ALL REFS*/static [|bar|]: Foo; +// +// public foo(): void { +// } +// // --- (line: 9) skipped --- + +// --- (line: 18) skipped --- +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// MixedStaticsClassTest.Foo.[|bar|]; +// } +// } + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// bar: Foo; +// static /*FIND ALL REFS*/[|bar|]: Foo; +// +// public foo(): void { +// } +// // --- (line: 9) skipped --- + +// --- (line: 18) skipped --- +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// MixedStaticsClassTest.Foo.[|bar|]; +// } +// } + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// --- (line: 3) skipped --- +// bar: Foo; +// static bar: Foo; +// +// /*FIND ALL REFS*/public [|foo|](): void { +// } +// public static foo(): void { +// } +// } +// } +// +// function test() { +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x.[|foo|](); +// x.bar; +// +// // static function +// // --- (line: 21) skipped --- + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// --- (line: 3) skipped --- +// bar: Foo; +// static bar: Foo; +// +// public /*FIND ALL REFS*/[|foo|](): void { +// } +// public static foo(): void { +// } +// } +// } +// +// function test() { +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x.[|foo|](); +// x.bar; +// +// // static function +// // --- (line: 21) skipped --- + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// --- (line: 5) skipped --- +// +// public foo(): void { +// } +// /*FIND ALL REFS*/public static [|foo|](): void { +// } +// } +// } +// // --- (line: 13) skipped --- + +// --- (line: 17) skipped --- +// x.bar; +// +// // static function +// MixedStaticsClassTest.Foo.[|foo|](); +// MixedStaticsClassTest.Foo.bar; +// } +// } + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// --- (line: 5) skipped --- +// +// public foo(): void { +// } +// public static /*FIND ALL REFS*/[|foo|](): void { +// } +// } +// } +// // --- (line: 13) skipped --- + +// --- (line: 17) skipped --- +// x.bar; +// +// // static function +// MixedStaticsClassTest.Foo.[|foo|](); +// MixedStaticsClassTest.Foo.bar; +// } +// } + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// --- (line: 3) skipped --- +// bar: Foo; +// static bar: Foo; +// +// public [|foo|](): void { +// } +// public static foo(): void { +// } +// } +// } +// +// function test() { +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x./*FIND ALL REFS*/[|foo|](); +// x.bar; +// +// // static function +// // --- (line: 21) skipped --- + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// [|bar|]: Foo; +// static bar: Foo; +// +// public foo(): void { +// // --- (line: 8) skipped --- + +// --- (line: 14) skipped --- +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x.foo(); +// x./*FIND ALL REFS*/[|bar|]; +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// // --- (line: 22) skipped --- + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// --- (line: 5) skipped --- +// +// public foo(): void { +// } +// public static [|foo|](): void { +// } +// } +// } +// // --- (line: 13) skipped --- + +// --- (line: 17) skipped --- +// x.bar; +// +// // static function +// MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|foo|](); +// MixedStaticsClassTest.Foo.bar; +// } +// } + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// bar: Foo; +// static [|bar|]: Foo; +// +// public foo(): void { +// } +// // --- (line: 9) skipped --- + +// --- (line: 18) skipped --- +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|bar|]; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc new file mode 100644 index 0000000000..b7bc9f6564 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames.ts === +// class Foo { +// public "/*FIND ALL REFS*/[|ss|]": any; +// } +// +// var x: Foo; +// x.[|ss|]; +// x["[|ss|]"]; +// x = { "[|ss|]": 0 }; +// x = { [|ss|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc new file mode 100644 index 0000000000..0233885c6c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames2.ts === +// class Foo { +// /*FIND ALL REFS*/"[|blah|]"() { return 0; } +// } +// +// var x: Foo; +// x.[|blah|]; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames2.ts === +// class Foo { +// "/*FIND ALL REFS*/[|blah|]"() { return 0; } +// } +// +// var x: Foo; +// x.[|blah|]; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames2.ts === +// class Foo { +// "[|blah|]"() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|blah|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc new file mode 100644 index 0000000000..d2ff4badc6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc @@ -0,0 +1,57 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === +// class Foo2 { +// /*FIND ALL REFS*/get "[|42|]"() { return 0; } +// set [|42|](n) { } +// } +// +// var y: Foo2; +// y[[|42|]]; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === +// class Foo2 { +// get "/*FIND ALL REFS*/[|42|]"() { return 0; } +// set [|42|](n) { } +// } +// +// var y: Foo2; +// y[[|42|]]; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === +// class Foo2 { +// get "[|42|]"() { return 0; } +// /*FIND ALL REFS*/set [|42|](n) { } +// } +// +// var y: Foo2; +// y[[|42|]]; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === +// class Foo2 { +// get "[|42|]"() { return 0; } +// set /*FIND ALL REFS*/[|42|](n) { } +// } +// +// var y: Foo2; +// y[[|42|]]; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === +// class Foo2 { +// get "[|42|]"() { return 0; } +// set [|42|](n) { } +// } +// +// var y: Foo2; +// y[/*FIND ALL REFS*/[|42|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc new file mode 100644 index 0000000000..15b6266345 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames4.ts === +// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } +// x["[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames4.ts === +// var x = { "[|someProperty|]": 0 } +// x[/*FIND ALL REFS*/"[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc new file mode 100644 index 0000000000..42967647fb --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames5.ts === +// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } +// x["[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames5.ts === +// var x = { "[|someProperty|]": 0 } +// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc new file mode 100644 index 0000000000..ab4c5ebaf1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames6.ts === +// const x = function () { return 111111; } +// x./*FIND ALL REFS*/[|someProperty|] = 5; +// x["[|someProperty|]"] = 3; + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames6.ts === +// const x = function () { return 111111; } +// x.[|someProperty|] = 5; +// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc new file mode 100644 index 0000000000..497a859d97 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /foo.js === +// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } +// x["[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; + + + +// === findAllReferences === +// === /foo.js === +// var x = { "[|someProperty|]": 0 } +// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc new file mode 100644 index 0000000000..343a4a0883 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc @@ -0,0 +1,67 @@ +// === findAllReferences === +// === /referencesForTypeKeywords.ts === +// interface [|I|] {} +// function f() {} +// type A1 = T extends U ? 1 : 0; +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = readonly T[]; + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === +// interface I {} +// function f() {} +// type A1 = T /*FIND ALL REFS*/extends [|U|] ? 1 : 0; +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = readonly T[]; + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === +// interface I {} +// function f() {} +// type A1 = T extends U ? 1 : 0; +// type A2 = T extends /*FIND ALL REFS*/infer [|U|] ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = readonly T[]; + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === +// interface I {} +// function f() {} +// type A1 = T extends U ? 1 : 0; +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [[|P|] /*FIND ALL REFS*/in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = readonly T[]; + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === +// interface I {} +// function f() {} +// type A1 = T extends U ? 1 : 0; +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4<[|T|]> = /*FIND ALL REFS*/keyof [|T|]; +// type A5 = readonly T[]; + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === +// --- (line: 3) skipped --- +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4 = keyof T; +// type A5<[|T|]> = /*FIND ALL REFS*/readonly [|T|][]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc new file mode 100644 index 0000000000..5a0d495a21 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc @@ -0,0 +1,66 @@ +// === findAllReferences === +// === /referencesForUnionProperties.ts === +// interface One { +// common: { /*FIND ALL REFS*/[|a|]: number; }; +// } +// +// interface Base { +// // --- (line: 6) skipped --- + +// --- (line: 17) skipped --- +// +// var x : One | Two; +// +// x.common.[|a|]; + + + +// === findAllReferences === +// === /referencesForUnionProperties.ts === +// interface One { +// common: { a: number; }; +// } +// +// interface Base { +// /*FIND ALL REFS*/[|a|]: string; +// b: string; +// } +// +// interface HasAOrB extends Base { +// [|a|]: string; +// b: string; +// } +// +// interface Two { +// common: HasAOrB; +// } +// +// var x : One | Two; +// +// x.common.[|a|]; + + + +// === findAllReferences === +// === /referencesForUnionProperties.ts === +// interface One { +// common: { [|a|]: number; }; +// } +// +// interface Base { +// [|a|]: string; +// b: string; +// } +// +// interface HasAOrB extends Base { +// [|a|]: string; +// b: string; +// } +// +// interface Two { +// common: HasAOrB; +// } +// +// var x : One | Two; +// +// x.common./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInComment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInComment.baseline.jsonc new file mode 100644 index 0000000000..07b90aa97c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesInComment.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /referencesInComment.ts === +// // References to /*FIND ALL REFS*/foo or bar +// /* in comments should not find foo or bar */ +// class foo { } +// var bar = 0; + + + +// === findAllReferences === +// === /referencesInComment.ts === +// // References to foo or b/*FIND ALL REFS*/ar +// /* in comments should not find foo or bar */ +// class foo { } +// var bar = 0; + + + +// === findAllReferences === +// === /referencesInComment.ts === +// // References to foo or bar +// /* in comments should not find fo/*FIND ALL REFS*/o or bar */ +// class foo { } +// var bar = 0; + + + +// === findAllReferences === +// === /referencesInComment.ts === +// // References to foo or bar +// /* in comments should not find foo or bar/*FIND ALL REFS*/ */ +// class foo { } +// var bar = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc new file mode 100644 index 0000000000..a2b4cd66ce --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /home/src/workspaces/project/referencesForGlobals_1.ts === +// class [|globalClass|] { +// public f() { } +// } + +// === /home/src/workspaces/project/referencesForGlobals_2.ts === +// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..e328e284d6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc @@ -0,0 +1,10 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/a.ts === +// /// +// /*FIND ALL REFS*/; + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/b.ts === +// /*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..32fab59a1b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc @@ -0,0 +1,10 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/a.ts === +// /// +// const str: string = "hello/*FIND ALL REFS*/"; + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/b.ts === +// const str2: string = "hello/*FIND ALL REFS*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesIsAvailableThroughGlobalNoCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesIsAvailableThroughGlobalNoCrash.baseline.jsonc new file mode 100644 index 0000000000..9ae5412973 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesIsAvailableThroughGlobalNoCrash.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /packages/playwright-core/bundles/utils/node_modules/@types/debug/index.d.ts === +// declare var [|debug|]: [|debug|].Debug & { debug: [|debug|].Debug; default: [|debug|].Debug }; +// [|export|] = [|debug|]; +// export as namespace debug; +// declare namespace [|debug|] { +// interface Debug { +// coerce: (val: any) => any; +// } +// } + +// === /packages/playwright-core/src/index.ts === +// export const debug: typeof import('[|../bundles/utils/node_modules//*FIND ALL REFS*/@types/debug|]') = require('./utilsBundleImpl').debug; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc new file mode 100644 index 0000000000..ebffcdf9e8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /referencesToNonPropertyNameStringLiteral.ts === +// const str: string = "hello/*FIND ALL REFS*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc new file mode 100644 index 0000000000..f9b30892ca --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /referencesToStringLiteralValue.ts === +// const s: string = "some /*FIND ALL REFS*/ string"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc new file mode 100644 index 0000000000..3858ed4b25 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc @@ -0,0 +1,1920 @@ +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: /*FIND ALL REFS*/[|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new /*FIND ALL REFS*/[|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls(/*FIND ALL REFS*/[|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo(/*FIND ALL REFS*/[|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = /*FIND ALL REFS*/[|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + /*FIND ALL REFS*/[|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// /*FIND ALL REFS*/[|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// /*FIND ALL REFS*/var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var /*FIND ALL REFS*/[|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// /*FIND ALL REFS*/class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class /*FIND ALL REFS*/[|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// /*FIND ALL REFS*/[|remoteclsVar|] = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.[|remoteclsVar|]++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// /*FIND ALL REFS*/static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static /*FIND ALL REFS*/[|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// /*FIND ALL REFS*/[|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// [|remoteclsVar|] = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this./*FIND ALL REFS*/[|remoteclsVar|]++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// // --- (line: 15) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// /*FIND ALL REFS*/[|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// /*FIND ALL REFS*/[|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + +// === /remoteGetReferences_2.ts === +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// /*FIND ALL REFS*/[|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + +// === /remoteGetReferences_2.ts === +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameDefaultImportDifferentName.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameDefaultImportDifferentName.baseline.jsonc new file mode 100644 index 0000000000..4ae1126485 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/renameDefaultImportDifferentName.baseline.jsonc @@ -0,0 +1,19 @@ +// === findAllReferences === +// === /A.ts === +// import [|B|] from "./B"; +// let b = new [|B|](); +// b.test(); + +// === /B.ts === +// export default class /*FIND ALL REFS*/[|C|] { +// test() { +// } +// } + + + +// === findAllReferences === +// === /A.ts === +// import /*FIND ALL REFS*/[|B|] from "./B"; +// let b = new [|B|](); +// b.test(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc new file mode 100644 index 0000000000..8601eca2ac --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /a.ts === +// export var /*FIND ALL REFS*/[|a|]; + +// === /b.ts === +// import { [|a|] } from './a'; +// export { a }; + + + +// === findAllReferences === +// === /a.ts === +// export var [|a|]; + +// === /b.ts === +// import { /*FIND ALL REFS*/[|a|] } from './a'; +// export { a }; + + + +// === findAllReferences === +// === /a.ts === +// export var [|a|]; + +// === /b.ts === +// import { [|a|] } from './a'; +// export { /*FIND ALL REFS*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc new file mode 100644 index 0000000000..28ba24f606 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc @@ -0,0 +1,68 @@ +// === findAllReferences === +// === /renameImportOfExportEquals.ts === +// declare namespace /*FIND ALL REFS*/[|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as [|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === +// declare namespace [|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as /*FIND ALL REFS*/[|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === +// declare namespace [|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as [|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// import { /*FIND ALL REFS*/[|N|] } from "a"; +// export const y: typeof [|N|].x; +// } + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === +// declare namespace N { +// export var /*FIND ALL REFS*/[|x|]: number; +// } +// declare module "mod" { +// export = N; +// // --- (line: 6) skipped --- + +// --- (line: 9) skipped --- +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N.[|x|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tslibFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tslibFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc new file mode 100644 index 0000000000..5276f7a8d4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tslibFindAllReferencesOnRuntimeImportWithPaths1.baseline.jsonc @@ -0,0 +1,3 @@ +// === findAllReferences === +// === /project/src/foo.ts === +// import * as x from /*FIND ALL REFS*/"[|tslib|]"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc new file mode 100644 index 0000000000..d43435b087 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc @@ -0,0 +1,39 @@ +// === findAllReferences === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// /*FIND ALL REFS*/[|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = <[|div|] />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 7) skipped --- +// span: { n: string; }; +// } +// } +// var x = /*FIND ALL REFS*/
; + + + +// === findAllReferences === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc new file mode 100644 index 0000000000..66169b1bef --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// className?: string; +// } +// interface ButtonProps extends ClickableProps { +// /*FIND ALL REFS*/[|onClick|](event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// goTo: string; +// // --- (line: 16) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc new file mode 100644 index 0000000000..92dc82ce73 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 16) skipped --- +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc new file mode 100644 index 0000000000..fe81dcc1af --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// /*FIND ALL REFS*/[|name|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc new file mode 100644 index 0000000000..8cfb85cc27 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 5) skipped --- +// } +// class MyClass { +// props: { +// /*FIND ALL REFS*/[|name|]?: string; +// size?: number; +// } +// +// +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc new file mode 100644 index 0000000000..2fb055c836 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc @@ -0,0 +1,75 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props } +// } +// /*FIND ALL REFS*/class [|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } +// +// +// var x = <[|MyClass|] name='hello'>; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props } +// } +// class /*FIND ALL REFS*/[|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } +// +// +// var x = <[|MyClass|] name='hello'>; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// +// +// var x = /*FIND ALL REFS*/; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props } +// } +// class [|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } +// +// +// var x = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props } +// } +// class [|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } +// +// +// var x = <[|MyClass|] name='hello'>; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc new file mode 100644 index 0000000000..c7fa566bf2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc @@ -0,0 +1,162 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// /*FIND ALL REFS*/declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function /*FIND ALL REFS*/[|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 9) skipped --- +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = /*FIND ALL REFS*/; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; +// let opt4 = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = /*FIND ALL REFS*/; +// let opt2 = ; +// let opt3 = ; +// let opt4 = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = ; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 11) skipped --- +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = /*FIND ALL REFS*/; +// let opt3 = ; +// let opt4 = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = ; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 12) skipped --- +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = /*FIND ALL REFS*/; +// let opt4 = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = ; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; +// let opt4 = /*FIND ALL REFS*/; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc new file mode 100644 index 0000000000..1850219dfe --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 9) skipped --- +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc new file mode 100644 index 0000000000..ec6919e839 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 4) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// /*FIND ALL REFS*/[|propx|]: number +// propString: string +// optional?: boolean +// } +// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc new file mode 100644 index 0000000000..dac2cf2682 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc @@ -0,0 +1,288 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// /*FIND ALL REFS*/declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function /*FIND ALL REFS*/[|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// /*FIND ALL REFS*/declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function /*FIND ALL REFS*/[|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// /*FIND ALL REFS*/declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function /*FIND ALL REFS*/[|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 16) skipped --- +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = /*FIND ALL REFS*/; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 17) skipped --- +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = /*FIND ALL REFS*/; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = ; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 18) skipped --- +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = /*FIND ALL REFS*/{}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = {}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 19) skipped --- +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = /*FIND ALL REFS*/{}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = {}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 20) skipped --- +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = /*FIND ALL REFS*/; +// let opt = ; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = ; +// let opt = <[|MainButton|] wrong />; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 21) skipped --- +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = /*FIND ALL REFS*/; + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc new file mode 100644 index 0000000000..41f35bf02e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 11) skipped --- +// onClick(event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// /*FIND ALL REFS*/[|goTo|]: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// // --- (line: 19) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc new file mode 100644 index 0000000000..590e0bcf5c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc @@ -0,0 +1,40 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 9) skipped --- +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// /*FIND ALL REFS*/var [|SFCComp|] = SFC1 || SFC2; +// <[|SFCComp|] x={ "hi" } /> + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 9) skipped --- +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var /*FIND ALL REFS*/[|SFCComp|] = SFC1 || SFC2; +// <[|SFCComp|] x={ "hi" } /> + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 10) skipped --- +// return

World

; +// } +// var SFCComp = SFC1 || SFC2; +// /*FIND ALL REFS*/ + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 9) skipped --- +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var [|SFCComp|] = SFC1 || SFC2; +// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc new file mode 100644 index 0000000000..b02df6df6e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc @@ -0,0 +1,40 @@ +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// } +// private method() { } +// } +// /*FIND ALL REFS*/var [|RCComp|] = RC1 || RC2; +// <[|RCComp|] /> + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// } +// private method() { } +// } +// var /*FIND ALL REFS*/[|RCComp|] = RC1 || RC2; +// <[|RCComp|] /> + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 9) skipped --- +// private method() { } +// } +// var RCComp = RC1 || RC2; +// /*FIND ALL REFS*/ + + + +// === findAllReferences === +// === /file.tsx === +// --- (line: 8) skipped --- +// } +// private method() { } +// } +// var [|RCComp|] = RC1 || RC2; +// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc new file mode 100644 index 0000000000..f7a410817c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc @@ -0,0 +1,14 @@ +// === goToDefinition === +// === /index.ts === +// export class Foo { +// member: string; +// [|methodName|](propName: SomeType): void {} +// otherMethod() { +// if (Math.random() > 0.5) { +// return {x: 42}; +// // --- (line: 7) skipped --- + +// === /mymodule.ts === +// import * as mod from "./indexdef"; +// const instance = new mod.Foo(); +// instance./*GOTO DEF*/methodName({member: 12}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc new file mode 100644 index 0000000000..7d76808348 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc @@ -0,0 +1,14 @@ +// === goToDefinition === +// === /index.ts === +// export class Foo { +// member: string; +// [|methodName|](propName: SomeType): void {} +// otherMethod() { +// if (Math.random() > 0.5) { +// return {x: 42}; +// // --- (line: 7) skipped --- + +// === /mymodule.ts === +// import * as mod from "./out/indexdef"; +// const instance = new mod.Foo(); +// instance./*GOTO DEF*/methodName({member: 12}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc new file mode 100644 index 0000000000..e8f7348bf6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc @@ -0,0 +1,39 @@ +// === goToDefinition === +// === /BaseClass/Source.ts === +// class [|Control|]{ +// constructor(){ +// return; +// } +// // --- (line: 5) skipped --- + +// === /buttonClass/Source.ts === +// // I cannot F12 navigate to Control +// // vvvvvvv +// class Button extends /*GOTO DEF*/Control { +// public myFunction() { +// // I cannot F12 navigate to myVar +// // vvvvv +// // --- (line: 7) skipped --- + + + +// === goToDefinition === +// === /BaseClass/Source.ts === +// class Control{ +// constructor(){ +// return; +// } +// /** this is a super var */ +// public [|myVar|]: boolean | 'yeah' = true; +// } + +// === /buttonClass/Source.ts === +// --- (line: 3) skipped --- +// public myFunction() { +// // I cannot F12 navigate to myVar +// // vvvvv +// if (typeof this./*GOTO DEF*/myVar === 'boolean') { +// this.myVar; +// } else { +// this.myVar.toLocaleUpperCase(); +// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc new file mode 100644 index 0000000000..a7d9041f83 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /home/src/workspaces/project/node_modules/a/src/index.ts === +// export class [|Foo|] { +// } +// + +// === /home/src/workspaces/project/index.ts === +// import { Foo/*GOTO DEF*/ } from "a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc new file mode 100644 index 0000000000..90392f6142 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /a.ts === +// [|export class Foo {}|] + +// === /b.ts === +// import n = require('./a/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc new file mode 100644 index 0000000000..90392f6142 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /a.ts === +// [|export class Foo {}|] + +// === /b.ts === +// import n = require('./a/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc new file mode 100644 index 0000000000..087c1a678f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /definitionNameOnEnumMember.ts === +// enum e { +// firstMember, +// secondMember, +// [|thirdMember|] +// } +// var enumMember = e./*GOTO DEF*/thirdMember; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc new file mode 100644 index 0000000000..4b94a0a31b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /a.ts === +// export default function [|f|]() {} + +// === /b.ts === +// import g from "./a"; +// /*GOTO DEF*/g(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..5759a9945b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /a.ts === +// var [|x|]: number; + +// === /b.ts === +// var [|x|]: number; + +// === /c.ts === +// var [|x|]: number; + +// === /d.ts === +// var [|x|]: number; + +// === /e.ts === +// /// +// /// +// /// +// /// +// /*GOTO DEF*/x++; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc new file mode 100644 index 0000000000..327d98ff29 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc @@ -0,0 +1,65 @@ +// === goToDefinition === +// === /b.ts === +// import [|alias1|] = require("fileb"); +// module Module { +// export import alias2 = alias1; +// } +// +// // Type position +// var t1: /*GOTO DEF*/alias1.IFoo; +// var t2: Module.alias2.IFoo; +// +// // Value posistion +// var v1 = new alias1.Foo(); +// var v2 = new Module.alias2.Foo(); + + + +// === goToDefinition === +// === /b.ts === +// import [|alias1|] = require("fileb"); +// module Module { +// export import alias2 = alias1; +// } +// +// // Type position +// var t1: alias1.IFoo; +// var t2: Module.alias2.IFoo; +// +// // Value posistion +// var v1 = new /*GOTO DEF*/alias1.Foo(); +// var v2 = new Module.alias2.Foo(); + + + +// === goToDefinition === +// === /b.ts === +// import alias1 = require("fileb"); +// module Module { +// export import [|alias2|] = alias1; +// } +// +// // Type position +// var t1: alias1.IFoo; +// var t2: Module./*GOTO DEF*/alias2.IFoo; +// +// // Value posistion +// var v1 = new alias1.Foo(); +// var v2 = new Module.alias2.Foo(); + + + +// === goToDefinition === +// === /b.ts === +// import alias1 = require("fileb"); +// module Module { +// export import [|alias2|] = alias1; +// } +// +// // Type position +// var t1: alias1.IFoo; +// var t2: Module.alias2.IFoo; +// +// // Value posistion +// var v1 = new alias1.Foo(); +// var v2 = new Module./*GOTO DEF*/alias2.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc new file mode 100644 index 0000000000..c6ec5cc560 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc @@ -0,0 +1,87 @@ +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === +// declare var [|ambientVar|]; +// declare function ambientFunction(); +// declare class ambientClass { +// constructor(); +// static method(); +// public method(); +// } +// +// /*GOTO DEF*/ambientVar = 1; +// ambientFunction(); +// var ambientClassVariable = new ambientClass(); +// ambientClass.method(); +// ambientClassVariable.method(); + + + +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === +// declare var ambientVar; +// declare function [|ambientFunction|](); +// declare class ambientClass { +// constructor(); +// static method(); +// public method(); +// } +// +// ambientVar = 1; +// /*GOTO DEF*/ambientFunction(); +// var ambientClassVariable = new ambientClass(); +// ambientClass.method(); +// ambientClassVariable.method(); + + + +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === +// declare var ambientVar; +// declare function ambientFunction(); +// declare class [|ambientClass|] { +// [|constructor();|] +// static method(); +// public method(); +// } +// +// ambientVar = 1; +// ambientFunction(); +// var ambientClassVariable = new /*GOTO DEF*/ambientClass(); +// ambientClass.method(); +// ambientClassVariable.method(); + + + +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === +// declare var ambientVar; +// declare function ambientFunction(); +// declare class ambientClass { +// constructor(); +// static [|method|](); +// public method(); +// } +// +// ambientVar = 1; +// ambientFunction(); +// var ambientClassVariable = new ambientClass(); +// ambientClass./*GOTO DEF*/method(); +// ambientClassVariable.method(); + + + +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === +// declare var ambientVar; +// declare function ambientFunction(); +// declare class ambientClass { +// constructor(); +// static method(); +// public [|method|](); +// } +// +// ambientVar = 1; +// ambientFunction(); +// var ambientClassVariable = new ambientClass(); +// ambientClass.method(); +// ambientClassVariable./*GOTO DEF*/method(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc new file mode 100644 index 0000000000..5fc2e2ca45 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc @@ -0,0 +1,21 @@ +// === goToDefinition === +// === /goToDefinitionApparentTypeProperties.ts === +// interface Number { +// [|myObjectMethod|](): number; +// } +// +// var o = 0; +// o./*GOTO DEF*/myObjectMethod(); +// o["myObjectMethod"](); + + + +// === goToDefinition === +// === /goToDefinitionApparentTypeProperties.ts === +// interface Number { +// [|myObjectMethod|](): number; +// } +// +// var o = 0; +// o.myObjectMethod(); +// o["/*GOTO DEF*/myObjectMethod"](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc new file mode 100644 index 0000000000..85494107dd --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /goToDefinitionAwait1.ts === +// async function [|foo|]() { +// /*GOTO DEF*/await Promise.resolve(0); +// } +// function notAsync() { +// await Promise.resolve(0); +// } + + + +// === goToDefinition === +// === /goToDefinitionAwait1.ts === +// async function foo() { +// await Promise.resolve(0); +// } +// function [|notAsync|]() { +// /*GOTO DEF*/await Promise.resolve(0); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc new file mode 100644 index 0000000000..43b882974f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc @@ -0,0 +1,3 @@ +// === goToDefinition === +// === /goToDefinitionAwait2.ts === +// /*GOTO DEF*/await Promise.resolve(0); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc new file mode 100644 index 0000000000..8367930473 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc @@ -0,0 +1,23 @@ +// === goToDefinition === +// === /goToDefinitionAwait3.ts === +// class C { +// [|notAsync|]() { +// /*GOTO DEF*/await Promise.resolve(0); +// } +// +// async foo() { +// // --- (line: 7) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionAwait3.ts === +// class C { +// notAsync() { +// await Promise.resolve(0); +// } +// +// async [|foo|]() { +// /*GOTO DEF*/await Promise.resolve(0); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc new file mode 100644 index 0000000000..5976587ef6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionAwait4.ts === +// async function outerAsyncFun() { +// let [|af|] = async () => { +// /*GOTO DEF*/await Promise.resolve(0); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc new file mode 100644 index 0000000000..20ae582e13 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc @@ -0,0 +1,33 @@ +// === goToDefinition === +// === /goToDefinitionBuiltInTypes.ts === +// var n: /*GOTO DEF*/number; +// var s: string; +// var b: boolean; +// var v: void; + + + +// === goToDefinition === +// === /goToDefinitionBuiltInTypes.ts === +// var n: number; +// var s: /*GOTO DEF*/string; +// var b: boolean; +// var v: void; + + + +// === goToDefinition === +// === /goToDefinitionBuiltInTypes.ts === +// var n: number; +// var s: string; +// var b: /*GOTO DEF*/boolean; +// var v: void; + + + +// === goToDefinition === +// === /goToDefinitionBuiltInTypes.ts === +// var n: number; +// var s: string; +// var b: boolean; +// var v: /*GOTO DEF*/void; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc new file mode 100644 index 0000000000..ff62e8f2e0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc @@ -0,0 +1,47 @@ +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === +// var u = /*GOTO DEF*/undefined; +// var n = null; +// var a = function() { return arguments; }; +// var t = true; +// var f = false; + + + +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === +// var u = undefined; +// var n = /*GOTO DEF*/null; +// var a = function() { return arguments; }; +// var t = true; +// var f = false; + + + +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === +// var u = undefined; +// var n = null; +// var a = function() { return /*GOTO DEF*/arguments; }; +// var t = true; +// var f = false; + + + +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === +// var u = undefined; +// var n = null; +// var a = function() { return arguments; }; +// var t = /*GOTO DEF*/true; +// var f = false; + + + +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === +// var u = undefined; +// var n = null; +// var a = function() { return arguments; }; +// var t = true; +// var f = /*GOTO DEF*/false; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc new file mode 100644 index 0000000000..3a900298ab --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /types.ts === +// declare module [|"*.css"|] { +// const styles: any; +// export = styles; +// } + +// === /index.ts === +// import styles from /*GOTO DEF*/"./index.css"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc new file mode 100644 index 0000000000..9d9d23db29 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc @@ -0,0 +1,63 @@ +// === goToDefinition === +// === /definitions.ts === +// export class Base { +// [|constructor(protected readonly cArg: string) {}|] +// } +// +// export class [|Derived|] extends Base { +// readonly email = this.cArg.getByLabel('Email') +// readonly password = this.cArg.getByLabel('Password') +// } + +// === /main.ts === +// import { Derived } from './definitions' +// const derived = new /*GOTO DEF*/Derived(cArg) + + + +// === goToDefinition === +// === /defInSameFile.ts === +// import { Base } from './definitions' +// class [|SameFile|] extends Base { +// readonly name: string = 'SameFile' +// } +// const SameFile = new /*GOTO DEF*/SameFile(cArg) +// const wrapper = new Base(cArg) + +// === /definitions.ts === +// export class Base { +// [|constructor(protected readonly cArg: string) {}|] +// } +// +// export class Derived extends Base { +// // --- (line: 6) skipped --- + + + +// === goToDefinition === +// === /hasConstructor.ts === +// import { Base } from './definitions' +// class [|HasConstructor|] extends Base { +// [|constructor() {}|] +// readonly name: string = ''; +// } +// const hasConstructor = new /*GOTO DEF*/HasConstructor(cArg) + + + +// === goToDefinition === +// === /definitions.ts === +// export class [|Base|] { +// [|constructor(protected readonly cArg: string) {}|] +// } +// +// export class Derived extends Base { +// // --- (line: 6) skipped --- + +// === /defInSameFile.ts === +// import { Base } from './definitions' +// class SameFile extends Base { +// readonly name: string = 'SameFile' +// } +// const SameFile = new SameFile(cArg) +// const wrapper = new /*GOTO DEF*/Base(cArg) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc new file mode 100644 index 0000000000..2658fa5840 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc @@ -0,0 +1,34 @@ +// === goToDefinition === +// === /goToDefinitionClassStaticBlocks.ts === +// class ClassStaticBocks { +// static x; +// /*GOTO DEF*/static {} +// static y; +// static {} +// static y; +// static {} +// } + + + +// === goToDefinition === +// === /goToDefinitionClassStaticBlocks.ts === +// class ClassStaticBocks { +// static x; +// static {} +// static y; +// /*GOTO DEF*/static {} +// static y; +// static {} +// } + + + +// === goToDefinition === +// === /goToDefinitionClassStaticBlocks.ts === +// --- (line: 3) skipped --- +// static y; +// static {} +// static y; +// /*GOTO DEF*/static {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc new file mode 100644 index 0000000000..4acbe4f97b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc @@ -0,0 +1,138 @@ +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === +// var x = class [|C|] { +// [|constructor() { +// var other = new /*GOTO DEF*/C; +// }|] +// } +// +// var y = class C extends x { +// // --- (line: 8) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === +// --- (line: 3) skipped --- +// } +// } +// +// var y = class [|C|] extends x { +// [|constructor() { +// super(); +// var other = new /*GOTO DEF*/C; +// }|] +// } +// var z = class C extends x { +// m() { +// // --- (line: 15) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === +// var x = class C { +// [|constructor() { +// var other = new C; +// }|] +// } +// +// var y = class C extends x { +// constructor() { +// super(); +// var other = new C; +// } +// } +// var z = class [|C|] extends x { +// m() { +// return new /*GOTO DEF*/C; +// } +// } +// +// // --- (line: 19) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === +// --- (line: 15) skipped --- +// } +// } +// +// var x1 = new /*GOTO DEF*/C(); +// var x2 = new x(); +// var y1 = new y(); +// var z1 = new z(); + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === +// var [|x|] = class C { +// [|constructor() { +// var other = new C; +// }|] +// } +// +// var y = class C extends x { +// // --- (line: 8) skipped --- + +// --- (line: 16) skipped --- +// } +// +// var x1 = new C(); +// var x2 = new /*GOTO DEF*/x(); +// var y1 = new y(); +// var z1 = new z(); + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === +// --- (line: 3) skipped --- +// } +// } +// +// var [|y|] = class C extends x { +// [|constructor() { +// super(); +// var other = new C; +// }|] +// } +// var z = class C extends x { +// m() { +// return new C; +// } +// } +// +// var x1 = new C(); +// var x2 = new x(); +// var y1 = new /*GOTO DEF*/y(); +// var z1 = new z(); + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === +// var x = class C { +// [|constructor() { +// var other = new C; +// }|] +// } +// +// var y = class C extends x { +// constructor() { +// super(); +// var other = new C; +// } +// } +// var [|z|] = class C extends x { +// m() { +// return new C; +// } +// } +// +// var x1 = new C(); +// var x2 = new x(); +// var y1 = new y(); +// var z1 = new /*GOTO DEF*/z(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc new file mode 100644 index 0000000000..a8830b8eaa --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.ts === +// namespace [|Foo|] { +// export var x; +// } +// +// class [|Foo|] { +// [|constructor() { +// }|] +// } +// +// var x = new /*GOTO DEF*/Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc new file mode 100644 index 0000000000..ff9c7c772a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc @@ -0,0 +1,81 @@ +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === +// class [|ConstructorOverload|] { +// [|constructor();|] +// constructor(foo: string); +// constructor(foo: any) { } +// } +// +// var constructorOverload = new /*GOTO DEF*/ConstructorOverload(); +// var constructorOverload = new ConstructorOverload("foo"); +// +// class Extended extends ConstructorOverload { +// // --- (line: 11) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === +// class [|ConstructorOverload|] { +// constructor(); +// [|constructor(foo: string);|] +// constructor(foo: any) { } +// } +// +// var constructorOverload = new ConstructorOverload(); +// var constructorOverload = new /*GOTO DEF*/ConstructorOverload("foo"); +// +// class Extended extends ConstructorOverload { +// readonly name = "extended"; +// // --- (line: 12) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === +// class ConstructorOverload { +// /*GOTO DEF*/[|constructor();|] +// [|constructor(foo: string);|] +// [|constructor(foo: any) { }|] +// } +// +// var constructorOverload = new ConstructorOverload(); +// // --- (line: 8) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === +// class ConstructorOverload { +// [|constructor();|] +// constructor(foo: string); +// constructor(foo: any) { } +// } +// +// var constructorOverload = new ConstructorOverload(); +// var constructorOverload = new ConstructorOverload("foo"); +// +// class [|Extended|] extends ConstructorOverload { +// readonly name = "extended"; +// } +// var extended1 = new /*GOTO DEF*/Extended(); +// var extended2 = new Extended("foo"); + + + +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === +// class ConstructorOverload { +// constructor(); +// [|constructor(foo: string);|] +// constructor(foo: any) { } +// } +// +// var constructorOverload = new ConstructorOverload(); +// var constructorOverload = new ConstructorOverload("foo"); +// +// class [|Extended|] extends ConstructorOverload { +// readonly name = "extended"; +// } +// var extended1 = new Extended(); +// var extended2 = new /*GOTO DEF*/Extended("foo"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc new file mode 100644 index 0000000000..0ebd8c5a1e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc @@ -0,0 +1,33 @@ +// === goToDefinition === +// === /a.ts === +// function [|decorator|](target) { +// return target; +// } +// function decoratorFactory(...args) { +// return target => target; +// } + +// === /b.ts === +// @/*GOTO DEF*/decorator +// class C { +// @decoratorFactory(a, "22", true) +// method() {} +// } + + + +// === goToDefinition === +// === /a.ts === +// function decorator(target) { +// return target; +// } +// function [|decoratorFactory|](...args) { +// return target => target; +// } + +// === /b.ts === +// @decorator +// class C { +// @decora/*GOTO DEF*/torFactory(a, "22", true) +// method() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc new file mode 100644 index 0000000000..f3f2413078 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc @@ -0,0 +1,29 @@ +// === goToDefinition === +// === /goToDefinitionDecoratorOverloads.ts === +// async function f() {} +// +// function [|dec|](target: any, propertyKey: string): void; +// function dec(target: any, propertyKey: symbol): void; +// function dec(target: any, propertyKey: string | symbol) {} +// +// declare const s: symbol; +// class C { +// @/*GOTO DEF*/dec f() {} +// @dec [s]() {} +// } + + + +// === goToDefinition === +// === /goToDefinitionDecoratorOverloads.ts === +// async function f() {} +// +// function dec(target: any, propertyKey: string): void; +// function [|dec|](target: any, propertyKey: symbol): void; +// function dec(target: any, propertyKey: string | symbol) {} +// +// declare const s: symbol; +// class C { +// @dec f() {} +// @/*GOTO DEF*/dec [s]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc new file mode 100644 index 0000000000..5b50609eda --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /util.js === +// class Util {} +// module.exports = { [|Util|] }; + +// === /index.js === +// const { Util } = require('./util'); +// new Util/*GOTO DEF*/() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc new file mode 100644 index 0000000000..d6658fec1e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /reexport.js === +// const { Util } = require('./util'); +// module.exports = { [|Util|] }; + +// === /index.js === +// const { Util } = require('./reexport'); +// new Util/*GOTO DEF*/() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc new file mode 100644 index 0000000000..8bb9b0bdb2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc @@ -0,0 +1,82 @@ +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === +// var [|remoteVariable|]; +// function remoteFunction() { } +// class remoteClass { } +// interface remoteInterface{ } +// module remoteModule{ export var foo = 1;} + +// === /goToDefinitionDifferentFile_Consumption.ts === +// /*GOTO DEF*/remoteVariable = 1; +// remoteFunction(); +// var foo = new remoteClass(); +// class fooCls implements remoteInterface { } +// var fooVar = remoteModule.foo; + + + +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === +// var remoteVariable; +// function [|remoteFunction|]() { } +// class remoteClass { } +// interface remoteInterface{ } +// module remoteModule{ export var foo = 1;} + +// === /goToDefinitionDifferentFile_Consumption.ts === +// remoteVariable = 1; +// /*GOTO DEF*/remoteFunction(); +// var foo = new remoteClass(); +// class fooCls implements remoteInterface { } +// var fooVar = remoteModule.foo; + + + +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === +// var remoteVariable; +// function remoteFunction() { } +// class [|remoteClass|] { } +// interface remoteInterface{ } +// module remoteModule{ export var foo = 1;} + +// === /goToDefinitionDifferentFile_Consumption.ts === +// remoteVariable = 1; +// remoteFunction(); +// var foo = new /*GOTO DEF*/remoteClass(); +// class fooCls implements remoteInterface { } +// var fooVar = remoteModule.foo; + + + +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === +// var remoteVariable; +// function remoteFunction() { } +// class remoteClass { } +// interface [|remoteInterface|]{ } +// module remoteModule{ export var foo = 1;} + +// === /goToDefinitionDifferentFile_Consumption.ts === +// remoteVariable = 1; +// remoteFunction(); +// var foo = new remoteClass(); +// class fooCls implements /*GOTO DEF*/remoteInterface { } +// var fooVar = remoteModule.foo; + + + +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === +// var remoteVariable; +// function remoteFunction() { } +// class remoteClass { } +// interface remoteInterface{ } +// module [|remoteModule|]{ export var foo = 1;} + +// === /goToDefinitionDifferentFile_Consumption.ts === +// remoteVariable = 1; +// remoteFunction(); +// var foo = new remoteClass(); +// class fooCls implements remoteInterface { } +// var fooVar = /*GOTO DEF*/remoteModule.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc new file mode 100644 index 0000000000..4a1334801b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc @@ -0,0 +1,82 @@ +// === goToDefinition === +// === /Remote2.ts === +// var [|rem2Var|]; +// function rem2Fn() { } +// class rem2Cls { } +// interface rem2Int{} +// module rem2Mod { export var foo; } + +// === /Definition.ts === +// /*GOTO DEF*/rem2Var = 1; +// rem2Fn(); +// var rem2foo = new rem2Cls(); +// class rem2fooCls implements rem2Int { } +// var rem2fooVar = rem2Mod.foo; + + + +// === goToDefinition === +// === /Remote2.ts === +// var rem2Var; +// function [|rem2Fn|]() { } +// class rem2Cls { } +// interface rem2Int{} +// module rem2Mod { export var foo; } + +// === /Definition.ts === +// rem2Var = 1; +// /*GOTO DEF*/rem2Fn(); +// var rem2foo = new rem2Cls(); +// class rem2fooCls implements rem2Int { } +// var rem2fooVar = rem2Mod.foo; + + + +// === goToDefinition === +// === /Remote2.ts === +// var rem2Var; +// function rem2Fn() { } +// class [|rem2Cls|] { } +// interface rem2Int{} +// module rem2Mod { export var foo; } + +// === /Definition.ts === +// rem2Var = 1; +// rem2Fn(); +// var rem2foo = new /*GOTO DEF*/rem2Cls(); +// class rem2fooCls implements rem2Int { } +// var rem2fooVar = rem2Mod.foo; + + + +// === goToDefinition === +// === /Remote2.ts === +// var rem2Var; +// function rem2Fn() { } +// class rem2Cls { } +// interface [|rem2Int|]{} +// module rem2Mod { export var foo; } + +// === /Definition.ts === +// rem2Var = 1; +// rem2Fn(); +// var rem2foo = new rem2Cls(); +// class rem2fooCls implements /*GOTO DEF*/rem2Int { } +// var rem2fooVar = rem2Mod.foo; + + + +// === goToDefinition === +// === /Remote2.ts === +// var rem2Var; +// function rem2Fn() { } +// class rem2Cls { } +// interface rem2Int{} +// module [|rem2Mod|] { export var foo; } + +// === /Definition.ts === +// rem2Var = 1; +// rem2Fn(); +// var rem2foo = new rem2Cls(); +// class rem2fooCls implements rem2Int { } +// var rem2fooVar = /*GOTO DEF*/rem2Mod.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc new file mode 100644 index 0000000000..5398cf1c12 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /foo.ts === +// [|export function foo() { return "foo"; } +// import("./f/*GOTO DEF*/oo") +// var x = import("./foo")|] + + + +// === goToDefinition === +// === /foo.ts === +// [|export function foo() { return "foo"; } +// import("./foo") +// var x = import("./fo/*GOTO DEF*/o")|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc new file mode 100644 index 0000000000..bf6e1646d3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /foo.ts === +// export function [|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.b/*GOTO DEF*/ar(); +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc new file mode 100644 index 0000000000..80f46261ba --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /foo.ts === +// export function bar() { return "bar"; } +// import('./foo').then(({ [|ba/*GOTO DEF*/r|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc new file mode 100644 index 0000000000..80f46261ba --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /foo.ts === +// export function bar() { return "bar"; } +// import('./foo').then(({ [|ba/*GOTO DEF*/r|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc new file mode 100644 index 0000000000..4932b11ced --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /index.js === +// const Core = {} +// +// Core.[|Test|] = class { } +// +// Core.Test.prototype.foo = 10 +// +// new Core.Tes/*GOTO DEF*/t() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc new file mode 100644 index 0000000000..aea5b85d31 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /index.js === +// const Core = {} +// +// Core.[|Test|] = class { +// [|constructor() { }|] +// } +// +// Core.Test.prototype.foo = 10 +// +// new Core.Tes/*GOTO DEF*/t() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc new file mode 100644 index 0000000000..d4ecb56a09 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionExpandoElementAccess.ts === +// function f() {} +// f[[|"x"|]] = 0; +// f[/*GOTO DEF*/[|"x"|]] = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc new file mode 100644 index 0000000000..90392f6142 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /a.ts === +// [|export class Foo {}|] + +// === /b.ts === +// import n = require('./a/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc new file mode 100644 index 0000000000..4453ae5b73 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /a.ts === +// [|class Foo {} +// export var x = 0;|] + +// === /b.ts === +// import n = require('./a/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc new file mode 100644 index 0000000000..28f4ba1fd3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /a.ts === +// declare module [|"e"|] { +// class Foo { } +// } + +// === /b.ts === +// import n = require('e/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc new file mode 100644 index 0000000000..5b7bf8a1c6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc @@ -0,0 +1,3 @@ +// === goToDefinition === +// === /b.ts === +// import n = require('unknown/*GOTO DEF*/'); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc new file mode 100644 index 0000000000..a9336821ec --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /a.ts === +// declare module [|"external/*GOTO DEF*/"|] { +// class Foo { } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc new file mode 100644 index 0000000000..236ff22c0f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /a.ts === +// declare module [|"e"|] { +// class Foo { } +// } + +// === /b.ts === +// import * from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc new file mode 100644 index 0000000000..ebcad5e2ab --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /a.ts === +// declare module [|"e"|] { +// class Foo { } +// } + +// === /b.ts === +// import {Foo, Bar} from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc new file mode 100644 index 0000000000..8d0abed4ba --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /a.ts === +// declare module [|"e"|] { +// class Foo { } +// } + +// === /b.ts === +// export {Foo, Bar} from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc new file mode 100644 index 0000000000..bc11061813 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /a.ts === +// declare module [|"e"|] { +// class Foo { } +// } + +// === /b.ts === +// export * from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc new file mode 100644 index 0000000000..d7038b1f61 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc @@ -0,0 +1,45 @@ +// === goToDefinition === +// === /goToDefinitionFunctionOverloads.ts === +// function [|functionOverload|](value: number); +// function functionOverload(value: string); +// function functionOverload() {} +// +// /*GOTO DEF*/functionOverload(123); +// functionOverload("123"); +// functionOverload({}); + + + +// === goToDefinition === +// === /goToDefinitionFunctionOverloads.ts === +// function functionOverload(value: number); +// function [|functionOverload|](value: string); +// function functionOverload() {} +// +// functionOverload(123); +// /*GOTO DEF*/functionOverload("123"); +// functionOverload({}); + + + +// === goToDefinition === +// === /goToDefinitionFunctionOverloads.ts === +// function [|functionOverload|](value: number); +// function functionOverload(value: string); +// function functionOverload() {} +// +// functionOverload(123); +// functionOverload("123"); +// /*GOTO DEF*/functionOverload({}); + + + +// === goToDefinition === +// === /goToDefinitionFunctionOverloads.ts === +// function /*GOTO DEF*/[|functionOverload|](value: number); +// function [|functionOverload|](value: string); +// function [|functionOverload|]() {} +// +// functionOverload(123); +// functionOverload("123"); +// functionOverload({}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc new file mode 100644 index 0000000000..1acfdd2dfc --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc @@ -0,0 +1,25 @@ +// === goToDefinition === +// === /goToDefinitionFunctionOverloadsInClass.ts === +// class clsInOverload { +// static [|fnOverload|](); +// static /*GOTO DEF*/[|fnOverload|](foo: string); +// static [|fnOverload|](foo: any) { } +// public fnOverload(): any; +// public fnOverload(foo: string); +// public fnOverload(foo: any) { return "foo" } +// // --- (line: 8) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionFunctionOverloadsInClass.ts === +// class clsInOverload { +// static fnOverload(); +// static fnOverload(foo: string); +// static fnOverload(foo: any) { } +// public /*GOTO DEF*/[|fnOverload|](): any; +// public [|fnOverload|](foo: string); +// public [|fnOverload|](foo: any) { return "foo" } +// +// constructor() { } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc new file mode 100644 index 0000000000..cac8a22add --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc @@ -0,0 +1,35 @@ +// === goToDefinition === +// === /goToDefinitionFunctionType.ts === +// const [|c|]: () => void; +// /*GOTO DEF*/c(); +// function test(cb: () => void) { +// cb(); +// } +// // --- (line: 6) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionFunctionType.ts === +// const c: () => void; +// c(); +// function test([|cb|]: () => void) { +// /*GOTO DEF*/cb(); +// } +// class C { +// prop: () => void; +// // --- (line: 8) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionFunctionType.ts === +// --- (line: 3) skipped --- +// cb(); +// } +// class C { +// [|prop|]: () => void; +// m() { +// this./*GOTO DEF*/prop(); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc new file mode 100644 index 0000000000..87e205beb0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionImplicitConstructor.ts === +// class [|ImplicitConstructor|] { +// } +// var implicitConstructor = new /*GOTO DEF*/ImplicitConstructor(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc new file mode 100644 index 0000000000..b9281b2a4d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /b.ts === +// [|export const foo = 1;|] + +// === /a.ts === +// import { foo } from "./b/*GOTO DEF*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc new file mode 100644 index 0000000000..458dd91a4e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc @@ -0,0 +1,3 @@ +// === goToDefinition === +// === /a.ts === +// import { foo } from/*GOTO DEF*/ "./b"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc new file mode 100644 index 0000000000..c1b20b0557 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc @@ -0,0 +1,3 @@ +// === goToDefinition === +// === /a.ts === +// import { foo } from /*GOTO DEF*/ "./b"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc new file mode 100644 index 0000000000..5aa9446edb --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /a.ts === +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + +// === /b.ts === +// export {/*GOTO DEF*/Class} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc new file mode 100644 index 0000000000..91440f77d1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /a.js === +// class Class { +// f; +// } +// module.exports.[|Class|] = Class; + +// === /b.js === +// const { Class } = require("./a"); +// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc new file mode 100644 index 0000000000..7c4739fa58 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /a.js === +// class Class { +// f; +// } +// module.exports = { [|Class|] }; + +// === /b.js === +// const { Class } = require("./a"); +// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc new file mode 100644 index 0000000000..e78479c07d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /a.ts === +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + +// === /b.ts === +// import {/*GOTO DEF*/Class} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc new file mode 100644 index 0000000000..e203d7d28d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc @@ -0,0 +1,31 @@ +// === goToDefinition === +// === /a.ts === +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + +// === /e.ts === +// import {M, C, I} from "./d"; +// var c = new /*GOTO DEF*/C(); + + + +// === goToDefinition === +// === /a.ts === +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + +// === /e.ts === +// import {M, /*GOTO DEF*/C, I} from "./d"; +// var c = new C(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc new file mode 100644 index 0000000000..55509a2511 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /a.ts === +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + +// === /b.ts === +// import {Class as /*GOTO DEF*/ClassAlias} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc new file mode 100644 index 0000000000..0c0a65ec64 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /a.ts === +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + +// === /b.ts === +// export {Class as /*GOTO DEF*/ClassAlias} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc new file mode 100644 index 0000000000..af308bf7cf --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /a.ts === +// [|export module Module { +// } +// export class Class { +// private f; +// } +// export interface Interface { +// x; +// }|] + +// === /b.ts === +// import /*GOTO DEF*/alias = require("./a"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc new file mode 100644 index 0000000000..204b6ef767 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /a.ts === +// class [|Class|] { +// private f; +// } +// export default Class; + +// === /b.ts === +// import /*GOTO DEF*/defaultExport from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc new file mode 100644 index 0000000000..438a28cd46 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /a.js === +// class [|Class|] { +// private f; +// } +// export { Class }; + +// === /b.js === +// import { /*GOTO DEF*/Class } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc new file mode 100644 index 0000000000..54c06f70e2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /a.js === +// class [|Class|] { +// f; +// } +// export { Class }; + +// === /b.js === +// const { Class } = require("./a"); +// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc new file mode 100644 index 0000000000..ca6cb45455 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc @@ -0,0 +1,57 @@ +// === goToDefinition === +// === /a.ts === +// [|export default function f() {} +// export const x = 0;|] + +// === /b.ts === +// import f, { x } from "./a"; +// import * as a from "./a"; +// import b = require("./b"); +// f; +// x; +// /*GOTO DEF*/a; +// b; + + + +// === goToDefinition === +// === /a.ts === +// export default function [|f|]() {} +// export const x = 0; + +// === /b.ts === +// import f, { x } from "./a"; +// import * as a from "./a"; +// import b = require("./b"); +// /*GOTO DEF*/f; +// x; +// a; +// b; + + + +// === goToDefinition === +// === /a.ts === +// export default function f() {} +// export const [|x|] = 0; + +// === /b.ts === +// import f, { x } from "./a"; +// import * as a from "./a"; +// import b = require("./b"); +// f; +// /*GOTO DEF*/x; +// a; +// b; + + + +// === goToDefinition === +// === /b.ts === +// [|import f, { x } from "./a"; +// import * as a from "./a"; +// import b = require("./b"); +// f; +// x; +// a; +// /*GOTO DEF*/b;|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc new file mode 100644 index 0000000000..9b92030eb2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc @@ -0,0 +1,154 @@ +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === +// interface [|IFoo|] { method1(): number; } +// +// class Foo implements IFoo { +// public method1(): number { return 0; } +// } +// +// enum Enum { value1, value2 }; +// +// class Bar { +// public _interface: IFo/*GOTO DEF*/o = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = Enum.value1; +// // --- (line: 14) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === +// interface [|IFoo|] { method1(): number; } +// +// class Foo implements IFoo { +// public method1(): number { return 0; } +// // --- (line: 5) skipped --- + +// --- (line: 8) skipped --- +// class Bar { +// public _interface: IFoo = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IF/*GOTO DEF*/oo[]=[]; +// public _enum: Enum = Enum.value1; +// public _self: Bar; +// +// // --- (line: 16) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === +// interface [|IFoo|] { method1(): number; } +// +// class Foo implements IFoo { +// public method1(): number { return 0; } +// // --- (line: 5) skipped --- + +// --- (line: 12) skipped --- +// public _enum: Enum = Enum.value1; +// public _self: Bar; +// +// constructor(public _inConstructor: IFo/*GOTO DEF*/o) { +// } +// } + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === +// interface IFoo { method1(): number; } +// +// class [|Foo|] implements IFoo { +// public method1(): number { return 0; } +// } +// +// enum Enum { value1, value2 }; +// +// class Bar { +// public _interface: IFoo = new Foo(); +// public _class: Fo/*GOTO DEF*/o = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = Enum.value1; +// public _self: Bar; +// // --- (line: 15) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === +// interface IFoo { method1(): number; } +// +// class [|Foo|] implements IFoo { +// public method1(): number { return 0; } +// } +// +// enum Enum { value1, value2 }; +// +// class Bar { +// public _interface: IFoo = new Fo/*GOTO DEF*/o(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = Enum.value1; +// // --- (line: 14) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === +// --- (line: 3) skipped --- +// public method1(): number { return 0; } +// } +// +// enum [|Enum|] { value1, value2 }; +// +// class Bar { +// public _interface: IFoo = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: E/*GOTO DEF*/num = Enum.value1; +// public _self: Bar; +// +// constructor(public _inConstructor: IFoo) { +// } +// } + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === +// --- (line: 3) skipped --- +// public method1(): number { return 0; } +// } +// +// enum [|Enum|] { value1, value2 }; +// +// class Bar { +// public _interface: IFoo = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = En/*GOTO DEF*/um.value1; +// public _self: Bar; +// +// constructor(public _inConstructor: IFoo) { +// } +// } + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === +// --- (line: 5) skipped --- +// +// enum Enum { value1, value2 }; +// +// class [|Bar|] { +// public _interface: IFoo = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = Enum.value1; +// public _self: Ba/*GOTO DEF*/r; +// +// constructor(public _inConstructor: IFoo) { +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc new file mode 100644 index 0000000000..db5eff1b7a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc @@ -0,0 +1,17 @@ +// === goToDefinition === +// === /goToDefinitionInTypeArgument.ts === +// class Foo { } +// +// class [|Bar|] { } +// +// var x = new Foo(); + + + +// === goToDefinition === +// === /goToDefinitionInTypeArgument.ts === +// class [|Foo|] { } +// +// class Bar { } +// +// var x = new Fo/*GOTO DEF*/o(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc new file mode 100644 index 0000000000..6bd0439d00 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc @@ -0,0 +1,100 @@ +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === +// interface I { +// [|[x: string]: boolean;|] +// } +// interface J { +// [x: string]: number; +// } +// interface K { +// [x: `a${string}`]: string; +// [x: `${string}b`]: string; +// } +// declare const i: I; +// i./*GOTO DEF*/foo; +// declare const ij: I | J; +// ij.foo; +// declare const k: K; +// // --- (line: 16) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === +// interface I { +// [|[x: string]: boolean;|] +// } +// interface J { +// [|[x: string]: number;|] +// } +// interface K { +// [x: `a${string}`]: string; +// [x: `${string}b`]: string; +// } +// declare const i: I; +// i.foo; +// declare const ij: I | J; +// ij./*GOTO DEF*/foo; +// declare const k: K; +// k.a; +// k.b; +// k.ab; + + + +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === +// --- (line: 4) skipped --- +// [x: string]: number; +// } +// interface K { +// [|[x: `a${string}`]: string;|] +// [x: `${string}b`]: string; +// } +// declare const i: I; +// i.foo; +// declare const ij: I | J; +// ij.foo; +// declare const k: K; +// k./*GOTO DEF*/a; +// k.b; +// k.ab; + + + +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === +// --- (line: 5) skipped --- +// } +// interface K { +// [x: `a${string}`]: string; +// [|[x: `${string}b`]: string;|] +// } +// declare const i: I; +// i.foo; +// declare const ij: I | J; +// ij.foo; +// declare const k: K; +// k.a; +// k./*GOTO DEF*/b; +// k.ab; + + + +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === +// --- (line: 4) skipped --- +// [x: string]: number; +// } +// interface K { +// [|[x: `a${string}`]: string;|] +// [|[x: `${string}b`]: string;|] +// } +// declare const i: I; +// i.foo; +// declare const ij: I | J; +// ij.foo; +// declare const k: K; +// k.a; +// k.b; +// k./*GOTO DEF*/ab; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc new file mode 100644 index 0000000000..7abd22b554 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /a.js === +// const o = {}; +// o./*GOTO DEF*/foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc new file mode 100644 index 0000000000..1dfebe238c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionInstanceof1.ts === +// class [|C|] { +// } +// declare var obj: any; +// obj /*GOTO DEF*/instanceof C; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc new file mode 100644 index 0000000000..899d642468 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /main.ts === +// class C { +// static [|[Symbol.hasInstance]|](value: unknown): boolean { return true; } +// } +// declare var obj: any; +// obj /*GOTO DEF*/instanceof C; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc new file mode 100644 index 0000000000..9e4567449e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /goToDefinitionInterfaceAfterImplement.ts === +// interface [|sInt|] { +// sVar: number; +// sFn: () => void; +// } +// +// class iClass implements /*GOTO DEF*/sInt { +// public sVar = 1; +// public sFn() { +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc new file mode 100644 index 0000000000..6b0fb3966d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /a.js === +// /** +// * @import { A } from "./b/*GOTO DEF*/" +// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc new file mode 100644 index 0000000000..70db19f1b2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /a.js === +// /** +// * @import { A } from/*GOTO DEF*/ "./b" +// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc new file mode 100644 index 0000000000..443b3ca3d9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /a.js === +// /** +// * @import { A } from /*GOTO DEF*/ "./b"; +// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc new file mode 100644 index 0000000000..ec17a66f3c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /b.ts === +// export interface [|A|] { } + +// === /a.js === +// /** +// * @import { A/*GOTO DEF*/ } from "./b"; +// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc new file mode 100644 index 0000000000..7e27cfb656 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /b.ts === +// export interface [|A|] { } + +// === /a.js === +// /** +// * @import { A } from "./b"; +// */ +// +// /** +// * @param { A/*GOTO DEF*/ } a +// */ +// function f(a) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc new file mode 100644 index 0000000000..5ba2bcd18c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc @@ -0,0 +1,15 @@ +// === goToDefinition === +// === /foo.js === +// x.test = () => { } +// x./*GOTO DEF*/test(); +// x.test3 = function () { } +// x.test3(); + + + +// === goToDefinition === +// === /foo.js === +// x.test = () => { } +// x.test(); +// x.test3 = function () { } +// x./*GOTO DEF*/test3(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc new file mode 100644 index 0000000000..b8416519af --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /foo.js === +// [|module.exports = {};|] + +// === /bar.js === +// var x = require(/*GOTO DEF*/"./foo"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc new file mode 100644 index 0000000000..7470cbd268 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc @@ -0,0 +1,53 @@ +// === goToDefinition === +// === /foo.js === +// [|function notExported() { } +// class Blah { +// abc = 123; +// } +// module.exports.Blah = Blah;|] + +// === /bar.js === +// const /*GOTO DEF*/BlahModule = require("./foo.js"); +// new BlahModule.Blah() + + + +// === goToDefinition === +// === /foo.js === +// [|function notExported() { } +// class Blah { +// abc = 123; +// } +// module.exports.Blah = Blah;|] + +// === /bar.js === +// const BlahModule = require("./foo.js"); +// new /*GOTO DEF*/BlahModule.Blah() + + + +// === goToDefinition === +// === /foo.js === +// [|function notExported() { } +// class Blah { +// abc = 123; +// } +// module.exports.Blah = Blah;|] + +// === /barTs.ts === +// import /*GOTO DEF*/BlahModule = require("./foo.js"); +// new BlahModule.Blah() + + + +// === goToDefinition === +// === /foo.js === +// [|function notExported() { } +// class Blah { +// abc = 123; +// } +// module.exports.Blah = Blah;|] + +// === /barTs.ts === +// import BlahModule = require("./foo.js"); +// new /*GOTO DEF*/BlahModule.Blah() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc new file mode 100644 index 0000000000..620243c5d1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /test.tsx === +// interface FC

{ +// [|(props: P, context?: any): string;|] +// } +// +// const [|Thing|]: FC = (props) =>

; +// const HelloWorld = () => ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc new file mode 100644 index 0000000000..dd6576d397 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /foo.jsx === +// const [|Foo|] = () => ( +//
foo
+// ); +// export default Foo; + +// === /bar.jsx === +// import Foo from './foo'; +// const a = \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc new file mode 100644 index 0000000000..22488162e2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc @@ -0,0 +1,49 @@ +// === goToDefinition === +// === /goToDefinitionLabels.ts === +// [|label1|]: while (true) { +// label2: while (true) { +// break /*GOTO DEF*/label1; +// continue label2; +// () => { break label1; } +// continue unknownLabel; +// } +// } + + + +// === goToDefinition === +// === /goToDefinitionLabels.ts === +// label1: while (true) { +// [|label2|]: while (true) { +// break label1; +// continue /*GOTO DEF*/label2; +// () => { break label1; } +// continue unknownLabel; +// } +// } + + + +// === goToDefinition === +// === /goToDefinitionLabels.ts === +// [|label1|]: while (true) { +// label2: while (true) { +// break label1; +// continue label2; +// () => { break /*GOTO DEF*/label1; } +// continue unknownLabel; +// } +// } + + + +// === goToDefinition === +// === /goToDefinitionLabels.ts === +// label1: while (true) { +// label2: while (true) { +// break label1; +// continue label2; +// () => { break label1; } +// continue /*GOTO DEF*/unknownLabel; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc new file mode 100644 index 0000000000..73c5325d09 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /a.ts === +// class A { +// private [|z|]/*GOTO DEF*/: string; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc new file mode 100644 index 0000000000..a148da853a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc @@ -0,0 +1,46 @@ +// === goToDefinition === +// === /a.ts === +// im/*GOTO DEF*/port.meta; +// function f() { new.target; } + + + +// === goToDefinition === +// === /a.ts === +// import.met/*GOTO DEF*/a; +// function f() { new.target; } + + + +// === goToDefinition === +// === /a.ts === +// import.meta; +// function f() { n/*GOTO DEF*/ew.target; } + + + +// === goToDefinition === +// === /a.ts === +// import.meta; +// function [|f|]() { new.t/*GOTO DEF*/arget; } + + + +// === goToDefinition === +// === /b.ts === +// im/*GOTO DEF*/port.m; +// class c { constructor() { new.target; } } + + + +// === goToDefinition === +// === /b.ts === +// import.m; +// class c { constructor() { n/*GOTO DEF*/ew.target; } } + + + +// === goToDefinition === +// === /b.ts === +// import.m; +// class [|c|] { constructor() { new.t/*GOTO DEF*/arget; } } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc new file mode 100644 index 0000000000..a7d816c66d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc @@ -0,0 +1,106 @@ +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === +// class MethodOverload { +// static [|method|](); +// static method(foo: string); +// static method(foo?: any) { } +// public method(): any; +// public method(foo: string); +// public method(foo?: any) { return "foo" } +// } +// // static method +// MethodOverload./*GOTO DEF*/method(); +// MethodOverload.method("123"); +// // instance method +// var methodOverload = new MethodOverload(); +// methodOverload.method(); +// methodOverload.method("456"); + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === +// class MethodOverload { +// static method(); +// static [|method|](foo: string); +// static method(foo?: any) { } +// public method(): any; +// public method(foo: string); +// public method(foo?: any) { return "foo" } +// } +// // static method +// MethodOverload.method(); +// MethodOverload./*GOTO DEF*/method("123"); +// // instance method +// var methodOverload = new MethodOverload(); +// methodOverload.method(); +// methodOverload.method("456"); + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === +// class MethodOverload { +// static method(); +// static method(foo: string); +// static method(foo?: any) { } +// public [|method|](): any; +// public method(foo: string); +// public method(foo?: any) { return "foo" } +// } +// // static method +// MethodOverload.method(); +// MethodOverload.method("123"); +// // instance method +// var methodOverload = new MethodOverload(); +// methodOverload./*GOTO DEF*/method(); +// methodOverload.method("456"); + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === +// class MethodOverload { +// static method(); +// static method(foo: string); +// static method(foo?: any) { } +// public method(): any; +// public [|method|](foo: string); +// public method(foo?: any) { return "foo" } +// } +// // static method +// MethodOverload.method(); +// MethodOverload.method("123"); +// // instance method +// var methodOverload = new MethodOverload(); +// methodOverload.method(); +// methodOverload./*GOTO DEF*/method("456"); + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === +// class MethodOverload { +// static /*GOTO DEF*/[|method|](); +// static [|method|](foo: string); +// static [|method|](foo?: any) { } +// public method(): any; +// public method(foo: string); +// public method(foo?: any) { return "foo" } +// // --- (line: 8) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === +// class MethodOverload { +// static method(); +// static method(foo: string); +// static method(foo?: any) { } +// public /*GOTO DEF*/[|method|](): any; +// public [|method|](foo: string); +// public [|method|](foo?: any) { return "foo" } +// } +// // static method +// MethodOverload.method(); +// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc new file mode 100644 index 0000000000..25bd1b90c5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc @@ -0,0 +1,199 @@ +// === goToDefinition === +// === /a.ts === +// /*GOTO DEF*/export class [|A|] { +// +// private z: string; +// +// // --- (line: 5) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// export class [|A|]/*GOTO DEF*/ { +// +// private z: string; +// +// // --- (line: 5) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// export class A { +// +// /*GOTO DEF*/private [|z|]: string; +// +// readonly x: string; +// +// // --- (line: 7) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// export class A { +// +// private [|z|]/*GOTO DEF*/: string; +// +// readonly x: string; +// +// // --- (line: 7) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// export class A { +// +// private z: string; +// +// /*GOTO DEF*/readonly [|x|]: string; +// +// async a() { } +// +// // --- (line: 9) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// export class A { +// +// private z: string; +// +// readonly [|x|]/*GOTO DEF*/: string; +// +// async a() { } +// +// // --- (line: 9) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 3) skipped --- +// +// readonly x: string; +// +// /*GOTO DEF*/async [|a|]() { } +// +// override b() {} +// +// // --- (line: 11) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 3) skipped --- +// +// readonly x: string; +// +// async [|a|]/*GOTO DEF*/() { } +// +// override b() {} +// +// // --- (line: 11) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 5) skipped --- +// +// async a() { } +// +// /*GOTO DEF*/override [|b|]() {} +// +// public async c() { } +// } +// +// export function foo() { } + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 5) skipped --- +// +// async a() { } +// +// override [|b|]/*GOTO DEF*/() {} +// +// public async c() { } +// } +// +// export function foo() { } + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 7) skipped --- +// +// override b() {} +// +// /*GOTO DEF*/public async [|c|]() { } +// } +// +// export function foo() { } + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 7) skipped --- +// +// override b() {} +// +// public/*GOTO DEF*/ async [|c|]() { } +// } +// +// export function foo() { } + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 7) skipped --- +// +// override b() {} +// +// public as/*GOTO DEF*/ync [|c|]() { } +// } +// +// export function foo() { } + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 7) skipped --- +// +// override b() {} +// +// public async [|c|]/*GOTO DEF*/() { } +// } +// +// export function foo() { } + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 10) skipped --- +// public async c() { } +// } +// +// exp/*GOTO DEF*/ort function [|foo|]() { } + + + +// === goToDefinition === +// === /a.ts === +// --- (line: 10) skipped --- +// public async c() { } +// } +// +// export function [|foo|]/*GOTO DEF*/() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc new file mode 100644 index 0000000000..34a3582173 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc @@ -0,0 +1,32 @@ +// === goToDefinition === +// === /a.ts === +// interface [|IFoo|] { +// instance1: number; +// } + +// === /b.ts === +// interface [|IFoo|] { +// instance2: number; +// } +// +// interface [|IFoo|] { +// instance3: number; +// } +// +// var ifoo: IFo/*GOTO DEF*/o; + + + +// === goToDefinition === +// === /c.ts === +// module [|Module|] { +// export class c1 { } +// } + +// === /d.ts === +// module [|Module|] { +// export class c2 { } +// } + +// === /e.ts === +// Modul/*GOTO DEF*/e; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc new file mode 100644 index 0000000000..c2fa7f79a0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc @@ -0,0 +1,23 @@ +// === goToDefinition === +// === /goToDefinitionNewExpressionTargetNotClass.ts === +// class C2 { +// } +// let [|I|]: { +// [|new(): C2;|] +// }; +// new /*GOTO DEF*/I(); +// let I2: { +// }; +// new I2(); + + + +// === goToDefinition === +// === /goToDefinitionNewExpressionTargetNotClass.ts === +// --- (line: 3) skipped --- +// new(): C2; +// }; +// new I(); +// let [|I2|]: { +// }; +// new /*GOTO DEF*/I2(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc new file mode 100644 index 0000000000..653276103b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionObjectBindingElementPropertyName01.ts === +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { /*GOTO DEF*/property1: prop1 } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc new file mode 100644 index 0000000000..76242360fe --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc @@ -0,0 +1,87 @@ +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === +// var o = { +// [|value|]: 0, +// get getter() {return 0 }, +// set setter(v: number) { }, +// method: () => { }, +// es6StyleMethod() { } +// }; +// +// o./*GOTO DEF*/value; +// o.getter; +// o.setter; +// o.method; +// o.es6StyleMethod; + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === +// var o = { +// value: 0, +// get [|getter|]() {return 0 }, +// set setter(v: number) { }, +// method: () => { }, +// es6StyleMethod() { } +// }; +// +// o.value; +// o./*GOTO DEF*/getter; +// o.setter; +// o.method; +// o.es6StyleMethod; + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === +// var o = { +// value: 0, +// get getter() {return 0 }, +// set [|setter|](v: number) { }, +// method: () => { }, +// es6StyleMethod() { } +// }; +// +// o.value; +// o.getter; +// o./*GOTO DEF*/setter; +// o.method; +// o.es6StyleMethod; + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === +// var o = { +// value: 0, +// get getter() {return 0 }, +// set setter(v: number) { }, +// [|method|]: () => { }, +// es6StyleMethod() { } +// }; +// +// o.value; +// o.getter; +// o.setter; +// o./*GOTO DEF*/method; +// o.es6StyleMethod; + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === +// var o = { +// value: 0, +// get getter() {return 0 }, +// set setter(v: number) { }, +// method: () => { }, +// [|es6StyleMethod|]() { } +// }; +// +// o.value; +// o.getter; +// o.setter; +// o.method; +// o./*GOTO DEF*/es6StyleMethod; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc new file mode 100644 index 0000000000..8ba14dc705 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc @@ -0,0 +1,29 @@ +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties1.ts === +// interface PropsBag { +// [|propx|]: number +// } +// function foo(arg: PropsBag) {} +// foo({ +// pr/*GOTO DEF*/opx: 10 +// }) +// function bar(firstarg: boolean, secondarg: PropsBag) {} +// bar(true, { +// propx: 10 +// }) + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties1.ts === +// interface PropsBag { +// [|propx|]: number +// } +// function foo(arg: PropsBag) {} +// foo({ +// propx: 10 +// }) +// function bar(firstarg: boolean, secondarg: PropsBag) {} +// bar(true, { +// pr/*GOTO DEF*/opx: 10 +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc new file mode 100644 index 0000000000..857f644752 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionObjectSpread.ts === +// interface A1 { [|a|]: number }; +// interface A2 { [|a|]?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.a/*GOTO DEF*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc new file mode 100644 index 0000000000..3dcc2ebc4c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionOverloadsInMultiplePropertyAccesses.ts === +// namespace A { +// export namespace B { +// export function f(value: number): void; +// export function [|f|](value: string): void; +// export function f(value: number | string) {} +// } +// } +// A.B./*GOTO DEF*/f(""); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc new file mode 100644 index 0000000000..72647592ce --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember1.ts === +// class Foo { +// [|p|] = ''; +// } +// class Bar extends Foo { +// /*GOTO DEF*/override p = ''; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc new file mode 100644 index 0000000000..8fec64e97d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /a.js === +// class Foo {} +// class Bar extends Foo { +// /** @override/*GOTO DEF*/ */ +// m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc new file mode 100644 index 0000000000..b16604f027 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc @@ -0,0 +1,57 @@ +// === goToDefinition === +// === /a.js === +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @over/*GOTO DEF*/ride see {@link https://test.com} description */ +// m() {} +// } + + + +// === goToDefinition === +// === /a.js === +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @override se/*GOTO DEF*/e {@link https://test.com} description */ +// m() {} +// } + + + +// === goToDefinition === +// === /a.js === +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @override see {@li/*GOTO DEF*/nk https://test.com} description */ +// m() {} +// } + + + +// === goToDefinition === +// === /a.js === +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @override see {@link https://test.c/*GOTO DEF*/om} description */ +// m() {} +// } + + + +// === goToDefinition === +// === /a.js === +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @override see {@link https://test.com} /*GOTO DEF*/description */ +// m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc new file mode 100644 index 0000000000..a806a546b8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember12.ts === +// class Foo { +// static [|p|] = ''; +// } +// class Bar extends Foo { +// static /*GOTO DEF*/override p = ''; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc new file mode 100644 index 0000000000..00b5080a20 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember13.ts === +// class Foo { +// static [|m|]() {} +// } +// class Bar extends Foo { +// static /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc new file mode 100644 index 0000000000..6da0128300 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember14.ts === +// class A { +// [|m|]() {} +// } +// class B extends A {} +// class C extends B { +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc new file mode 100644 index 0000000000..16cb84475b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember15.ts === +// class A { +// static [|m|]() {} +// } +// class B extends A {} +// class C extends B { +// static /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc new file mode 100644 index 0000000000..fe6efb5625 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverrideJsdoc.ts === +// export class C extends CompletelyUndefined { +// /** +// * @override/*GOTO DEF*/ +// * @returns {{}} +// */ +// static foo() { +// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember17.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember17.baseline.jsonc new file mode 100644 index 0000000000..912ebcd379 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember17.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember17.ts === +// --- (line: 4) skipped --- +// } +// +// export class MySqlVarBinary extends MySqlColumn { +// static /*GOTO DEF*/override readonly [|[entityKind]|]: string = "MySqlVarBinary"; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember18.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember18.baseline.jsonc new file mode 100644 index 0000000000..82fd630b90 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember18.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember18.ts === +// --- (line: 4) skipped --- +// } +// +// export class MySqlVarBinary extends MySqlColumn { +// /*GOTO DEF*/override readonly [|[entityKind]|]: string = "MySqlVarBinary"; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember19.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember19.baseline.jsonc new file mode 100644 index 0000000000..9a6e7362bf --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember19.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember19.ts === +// --- (line: 4) skipped --- +// } +// +// export class B extends A { +// static /*GOTO DEF*/override readonly [|[prop]|] = "B"; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc new file mode 100644 index 0000000000..a1a9669fcb --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember2.ts === +// class Foo { +// [|m|]() {} +// } +// +// class Bar extends Foo { +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember20.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember20.baseline.jsonc new file mode 100644 index 0000000000..0583541163 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember20.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember20.ts === +// --- (line: 4) skipped --- +// } +// +// export class B extends A { +// /*GOTO DEF*/override readonly [|[prop]|] = "B"; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember21.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember21.baseline.jsonc new file mode 100644 index 0000000000..eb4779aae4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember21.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember21.ts === +// const prop = "foo" as const; +// +// abstract class A {} +// +// export class B extends A { +// static /*GOTO DEF*/override readonly [|[prop]|] = "B"; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember22.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember22.baseline.jsonc new file mode 100644 index 0000000000..1b3c7288d9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember22.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember22.ts === +// const prop = "foo" as const; +// +// abstract class A {} +// +// export class B extends A { +// /*GOTO DEF*/override readonly [|[prop]|] = "B"; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember23.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember23.baseline.jsonc new file mode 100644 index 0000000000..7ca46d1935 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember23.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember23.ts === +// --- (line: 4) skipped --- +// } +// +// export class B extends A { +// static /*GOTO DEF*/override [|[prop]|]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember24.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember24.baseline.jsonc new file mode 100644 index 0000000000..ea10917ca5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember24.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember24.ts === +// --- (line: 4) skipped --- +// } +// +// export class B extends A { +// /*GOTO DEF*/override [|[prop]|]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember25.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember25.baseline.jsonc new file mode 100644 index 0000000000..5353f949df --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember25.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember25.ts === +// const prop: symbol = Symbol(); +// +// abstract class A {} +// +// export class B extends A { +// static /*GOTO DEF*/override [|[prop]|]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember26.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember26.baseline.jsonc new file mode 100644 index 0000000000..95bacc0021 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember26.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember26.ts === +// const prop: symbol = Symbol(); +// +// abstract class A {} +// +// export class B extends A { +// /*GOTO DEF*/override [|[prop]|]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc new file mode 100644 index 0000000000..9d266605f6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember3.ts === +// abstract class Foo { +// abstract [|m|]() {} +// } +// +// export class Bar extends Foo { +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc new file mode 100644 index 0000000000..ec6a0eb35d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember4.ts === +// class Foo { +// [|m|]() {} +// } +// function f () { +// return class extends Foo { +// /*GOTO DEF*/override m() {} +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc new file mode 100644 index 0000000000..ef37f15681 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember5.ts === +// class Foo extends (class { +// [|m|]() {} +// }) { +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc new file mode 100644 index 0000000000..0d9e9f61de --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember6.ts === +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /*GOTO DEF*/override [|m1|]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc new file mode 100644 index 0000000000..c3bd341438 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember7.ts === +// class Foo { +// /*GOTO DEF*/override [|m|]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc new file mode 100644 index 0000000000..fc104d7433 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /a.ts === +// export class A { +// [|m|]() {} +// } + +// === /b.ts === +// import { A } from "./a"; +// class B extends A { +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc new file mode 100644 index 0000000000..e38d294a25 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember9.ts === +// interface I { +// m(): void; +// } +// class A { +// [|m|]() {}; +// } +// class B extends A implements I { +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc new file mode 100644 index 0000000000..97d4a0e865 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /goToDefinitionPartialImplementation_1.ts === +// module A { +// export interface [|IA|] { +// y: string; +// } +// } + +// === /goToDefinitionPartialImplementation_2.ts === +// module A { +// export interface [|IA|] { +// x: number; +// } +// +// var x: /*GOTO DEF*/IA; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc new file mode 100644 index 0000000000..c9e7205125 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc @@ -0,0 +1,3 @@ +// === goToDefinition === +// === /goToDefinitionPrimitives.ts === +// var x: st/*GOTO DEF*/ring; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc new file mode 100644 index 0000000000..99b8ad102d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc @@ -0,0 +1,45 @@ +// === goToDefinition === +// === /goToDefinitionPrivateName.ts === +// class A { +// #method() { } +// [|#foo|] = 3; +// get #prop() { return ""; } +// set #prop(value: string) { } +// constructor() { +// this./*GOTO DEF*/#foo +// this.#method +// this.#prop +// } +// } + + + +// === goToDefinition === +// === /goToDefinitionPrivateName.ts === +// class A { +// [|#method|]() { } +// #foo = 3; +// get #prop() { return ""; } +// set #prop(value: string) { } +// constructor() { +// this.#foo +// this./*GOTO DEF*/#method +// this.#prop +// } +// } + + + +// === goToDefinition === +// === /goToDefinitionPrivateName.ts === +// class A { +// #method() { } +// #foo = 3; +// get [|#prop|]() { return ""; } +// set [|#prop|](value: string) { } +// constructor() { +// this.#foo +// this.#method +// this./*GOTO DEF*/#prop +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc new file mode 100644 index 0000000000..0c8d5616e6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /goToDefinitionPropertyAssignment.ts === +// export const [|Component|] = () => { return "OK"} +// Component.displayName = 'Component' +// +// /*GOTO DEF*/Component +// +// Component.displayName + + + +// === goToDefinition === +// === /goToDefinitionPropertyAssignment.ts === +// export const Component = () => { return "OK"} +// Component.[|displayName|] = 'Component' +// +// Component +// +// Component./*GOTO DEF*/displayName \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc new file mode 100644 index 0000000000..e8fa4c572d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionRest.ts === +// interface Gen { +// x: number; +// [|parent|]: Gen; +// millenial: string; +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest./*GOTO DEF*/parent; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc new file mode 100644 index 0000000000..de684a61f8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionReturn1.ts === +// function [|foo|]() { +// /*GOTO DEF*/return 10; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc new file mode 100644 index 0000000000..59497ae398 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionReturn2.ts === +// function foo() { +// return [|() => { +// /*GOTO DEF*/return 10; +// }|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc new file mode 100644 index 0000000000..f649b2d0f8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionReturn3.ts === +// class C { +// [|m|]() { +// /*GOTO DEF*/return 1; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc new file mode 100644 index 0000000000..e5ee60d43a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc @@ -0,0 +1,3 @@ +// === goToDefinition === +// === /goToDefinitionReturn4.ts === +// /*GOTO DEF*/return; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc new file mode 100644 index 0000000000..e723352c1c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionReturn5.ts === +// function [|foo|]() { +// class Foo { +// static { /*GOTO DEF*/return; } +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc new file mode 100644 index 0000000000..720c4bfc46 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionReturn6.ts === +// function foo() { +// return [|function () { +// /*GOTO DEF*/return 10; +// }|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc new file mode 100644 index 0000000000..b2f225744e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionReturn7.ts === +// function foo(a: string, b: string): string; +// function foo(a: number, b: number): number; +// function [|foo|](a: any, b: any): any { +// /*GOTO DEF*/return a + b; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc new file mode 100644 index 0000000000..24fdd9a524 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc @@ -0,0 +1,82 @@ +// === goToDefinition === +// === /goToDefinitionSameFile.ts === +// var [|localVariable|]; +// function localFunction() { } +// class localClass { } +// interface localInterface{ } +// module localModule{ export var foo = 1;} +// +// +// /*GOTO DEF*/localVariable = 1; +// localFunction(); +// var foo = new localClass(); +// class fooCls implements localInterface { } +// var fooVar = localModule.foo; + + + +// === goToDefinition === +// === /goToDefinitionSameFile.ts === +// var localVariable; +// function [|localFunction|]() { } +// class localClass { } +// interface localInterface{ } +// module localModule{ export var foo = 1;} +// +// +// localVariable = 1; +// /*GOTO DEF*/localFunction(); +// var foo = new localClass(); +// class fooCls implements localInterface { } +// var fooVar = localModule.foo; + + + +// === goToDefinition === +// === /goToDefinitionSameFile.ts === +// var localVariable; +// function localFunction() { } +// class [|localClass|] { } +// interface localInterface{ } +// module localModule{ export var foo = 1;} +// +// +// localVariable = 1; +// localFunction(); +// var foo = new /*GOTO DEF*/localClass(); +// class fooCls implements localInterface { } +// var fooVar = localModule.foo; + + + +// === goToDefinition === +// === /goToDefinitionSameFile.ts === +// var localVariable; +// function localFunction() { } +// class localClass { } +// interface [|localInterface|]{ } +// module localModule{ export var foo = 1;} +// +// +// localVariable = 1; +// localFunction(); +// var foo = new localClass(); +// class fooCls implements /*GOTO DEF*/localInterface { } +// var fooVar = localModule.foo; + + + +// === goToDefinition === +// === /goToDefinitionSameFile.ts === +// var localVariable; +// function localFunction() { } +// class localClass { } +// interface localInterface{ } +// module [|localModule|]{ export var foo = 1;} +// +// +// localVariable = 1; +// localFunction(); +// var foo = new localClass(); +// class fooCls implements localInterface { } +// var fooVar = /*GOTO DEF*/localModule.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc new file mode 100644 index 0000000000..fbdd60c876 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /goToDefinitionSatisfiesExpression1.ts === +// const STRINGS = { +// /*GOTO DEF*/[|title|]: 'A Title', +// } satisfies Record; +// +// //somewhere in app +// STRINGS.title + + + +// === goToDefinition === +// === /goToDefinitionSatisfiesExpression1.ts === +// const STRINGS = { +// [|title|]: 'A Title', +// } satisfies Record; +// +// //somewhere in app +// STRINGS./*GOTO DEF*/title \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc new file mode 100644 index 0000000000..c6c62dfd70 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /moduleThing.ts === +// import /*GOTO DEF*/"./scriptThing"; +// import "./stylez.css"; + + + +// === goToDefinition === +// === /moduleThing.ts === +// import "./scriptThing"; +// import /*GOTO DEF*/"./stylez.css"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc new file mode 100644 index 0000000000..75f8f2bfe2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc @@ -0,0 +1,21 @@ +// === goToDefinition === +// === /home/src/workspaces/project/moduleThing.ts === +// import /*GOTO DEF*/"./scriptThing"; +// import "./stylez.css"; +// import "./foo.txt"; + + + +// === goToDefinition === +// === /home/src/workspaces/project/moduleThing.ts === +// import "./scriptThing"; +// import /*GOTO DEF*/"./stylez.css"; +// import "./foo.txt"; + + + +// === goToDefinition === +// === /home/src/workspaces/project/moduleThing.ts === +// import "./scriptThing"; +// import "./stylez.css"; +// import /*GOTO DEF*/"./foo.txt"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc new file mode 100644 index 0000000000..62aa457a72 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionShadowVariable.ts === +// var shadowVariable = "foo"; +// function shadowVariableTestModule() { +// var [|shadowVariable|]; +// /*GOTO DEF*/shadowVariable = 1; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc new file mode 100644 index 0000000000..a933353fbd --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionShadowVariableInsideModule.ts === +// module shdModule { +// var [|shdVar|]; +// /*GOTO DEF*/shdVar = 1; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc new file mode 100644 index 0000000000..b447aab88a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc @@ -0,0 +1,41 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty01.ts === +// var name = "hello"; +// var id = 100000; +// declare var id; +// var obj = {/*GOTO DEF*/name, id}; +// obj.name; +// obj.id; + + + +// === goToDefinition === +// === /goToDefinitionShorthandProperty01.ts === +// var name = "hello"; +// var [|id|] = 100000; +// declare var [|id|]; +// var obj = {name, /*GOTO DEF*/id}; +// obj.name; +// obj.id; + + + +// === goToDefinition === +// === /goToDefinitionShorthandProperty01.ts === +// var name = "hello"; +// var id = 100000; +// declare var id; +// var obj = {[|name|], id}; +// obj./*GOTO DEF*/name; +// obj.id; + + + +// === goToDefinition === +// === /goToDefinitionShorthandProperty01.ts === +// var name = "hello"; +// var id = 100000; +// declare var id; +// var obj = {name, [|id|]}; +// obj.name; +// obj./*GOTO DEF*/id; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc new file mode 100644 index 0000000000..94d0466cf1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty02.ts === +// let x = { +// f/*GOTO DEF*/oo +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc new file mode 100644 index 0000000000..f10cb67cde --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty03.ts === +// var [|x|] = { +// /*GOTO DEF*/x +// } +// let y = { +// y +// } + + + +// === goToDefinition === +// === /goToDefinitionShorthandProperty03.ts === +// var x = { +// x +// } +// let [|y|] = { +// /*GOTO DEF*/y +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc new file mode 100644 index 0000000000..6e7f8d7b70 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty04.ts === +// interface Foo { +// foo(): void +// } +// +// let x: Foo = { +// f/*GOTO DEF*/oo +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc new file mode 100644 index 0000000000..414558d93d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty05.ts === +// interface Foo { +// foo(): void +// } +// const [|foo|] = 1; +// let x: Foo = { +// f/*GOTO DEF*/oo +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc new file mode 100644 index 0000000000..ce825635ce --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty06.ts === +// interface Foo { +// [|foo|](): void +// } +// const foo = 1; +// let x: Foo = { +// f/*GOTO DEF*/oo() +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc new file mode 100644 index 0000000000..9af12dce90 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc @@ -0,0 +1,17 @@ +// === goToDefinition === +// === /a.js === +// [|module.exports = function [|f|]() {}|] + +// === /b.js === +// const f = require("./a"); +// /*GOTO DEF*/f(); + + + +// === goToDefinition === +// === /a.js === +// [|module.exports = function [|f|]() {}|] + +// === /bar.ts === +// import f = require("./a"); +// /*GOTO DEF*/f(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc new file mode 100644 index 0000000000..78b467b720 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc @@ -0,0 +1,17 @@ +// === goToDefinition === +// === /Definition.ts === +// class [|c|] { } + +// === /Consumption.ts === +// var n = new /*GOTO DEF*/c(); +// var n = new c(); + + + +// === goToDefinition === +// === /Definition.ts === +// class [|c|] { } + +// === /Consumption.ts === +// var n = new c(); +// var n = new c/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc new file mode 100644 index 0000000000..1e47e146ff --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc @@ -0,0 +1,22 @@ +// === goToDefinition === +// === /a.ts === +// //MyFile Comments +// //more comments +// /// +// /// +// +// class clsInOverload { +// // --- (line: 7) skipped --- + + + +// === goToDefinition === +// === /a.ts === +// //MyFile Comments +// //more comments +// /// +// /// +// +// class clsInOverload { +// static fnOverload(); +// // --- (line: 8) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc new file mode 100644 index 0000000000..4630cbcf4b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase1.ts === +// [|switch|] (null ) { +// /*GOTO DEF*/case null: break; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc new file mode 100644 index 0000000000..1f3a81ed6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase2.ts === +// [|switch|] (null) { +// /*GOTO DEF*/default: break; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc new file mode 100644 index 0000000000..ddce8aad17 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc @@ -0,0 +1,21 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase3.ts === +// [|switch|] (null) { +// /*GOTO DEF*/default: { +// switch (null) { +// default: break; +// } +// }; +// } + + + +// === goToDefinition === +// === /goToDefinitionSwitchCase3.ts === +// switch (null) { +// default: { +// [|switch|] (null) { +// /*GOTO DEF*/default: break; +// } +// }; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc new file mode 100644 index 0000000000..13d2189c7e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase4.ts === +// switch (null) { +// case null: break; +// } +// +// [|switch|] (null) { +// /*GOTO DEF*/case null: break; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc new file mode 100644 index 0000000000..656f1d3f24 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc @@ -0,0 +1,3 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase5.ts === +// export /*GOTO DEF*/default {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc new file mode 100644 index 0000000000..16a732aeff --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc @@ -0,0 +1,21 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase6.ts === +// export default { /*GOTO DEF*/[|case|] }; +// default; +// case 42; + + + +// === goToDefinition === +// === /goToDefinitionSwitchCase6.ts === +// export default { case }; +// /*GOTO DEF*/default; +// case 42; + + + +// === goToDefinition === +// === /goToDefinitionSwitchCase6.ts === +// export default { case }; +// default; +// /*GOTO DEF*/case 42; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc new file mode 100644 index 0000000000..14f21d4768 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase7.ts === +// switch (null) { +// case null: +// export /*GOTO DEF*/default 123; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc new file mode 100644 index 0000000000..ef6f61eb8e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /goToDefinitionTaggedTemplateOverloads.ts === +// function [|f|](strs: TemplateStringsArray, x: number): void; +// function f(strs: TemplateStringsArray, x: boolean): void; +// function f(strs: TemplateStringsArray, x: number | boolean) {} +// +// /*GOTO DEF*/f`${0}`; +// f`${false}`; + + + +// === goToDefinition === +// === /goToDefinitionTaggedTemplateOverloads.ts === +// function f(strs: TemplateStringsArray, x: number): void; +// function [|f|](strs: TemplateStringsArray, x: boolean): void; +// function f(strs: TemplateStringsArray, x: number | boolean) {} +// +// f`${0}`; +// /*GOTO DEF*/f`${false}`; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc new file mode 100644 index 0000000000..0b3dc0c246 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc @@ -0,0 +1,33 @@ +// === goToDefinition === +// === /goToDefinitionThis.ts === +// function f([|this|]: number) { +// return /*GOTO DEF*/this; +// } +// class C { +// constructor() { return this; } +// get self(this: number) { return this; } +// } + + + +// === goToDefinition === +// === /goToDefinitionThis.ts === +// function f(this: number) { +// return this; +// } +// class [|C|] { +// constructor() { return /*GOTO DEF*/this; } +// get self(this: number) { return this; } +// } + + + +// === goToDefinition === +// === /goToDefinitionThis.ts === +// function f(this: number) { +// return this; +// } +// class C { +// constructor() { return this; } +// get self([|this|]: number) { return /*GOTO DEF*/this; } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc new file mode 100644 index 0000000000..f6994cecfe --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /a.ts === +// enum [|SyntaxKind|] { SourceFile } +// export type { SyntaxKind } + +// === /c.ts === +// import type { SyntaxKind } from './b'; +// let kind: /*GOTO DEF*/SyntaxKind; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc new file mode 100644 index 0000000000..790a5121c9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc @@ -0,0 +1,15 @@ +// === goToDefinition === +// === /goToDefinitionTypePredicate.ts === +// class A {} +// function f([|parameter|]: any): /*GOTO DEF*/parameter is A { +// return typeof parameter === "string"; +// } + + + +// === goToDefinition === +// === /goToDefinitionTypePredicate.ts === +// class [|A|] {} +// function f(parameter: any): parameter is /*GOTO DEF*/A { +// return typeof parameter === "string"; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc new file mode 100644 index 0000000000..92c108f58a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /src/app.ts === +// /// +// $.x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc new file mode 100644 index 0000000000..d27141f9f7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc @@ -0,0 +1,33 @@ +// === goToDefinition === +// === /goToDefinitionTypeofThis.ts === +// function f([|this|]: number) { +// type X = typeof /*GOTO DEF*/this; +// } +// class C { +// constructor() { type X = typeof this; } +// get self(this: number) { type X = typeof this; } +// } + + + +// === goToDefinition === +// === /goToDefinitionTypeofThis.ts === +// function f(this: number) { +// type X = typeof this; +// } +// class [|C|] { +// constructor() { type X = typeof /*GOTO DEF*/this; } +// get self(this: number) { type X = typeof this; } +// } + + + +// === goToDefinition === +// === /goToDefinitionTypeofThis.ts === +// function f(this: number) { +// type X = typeof this; +// } +// class C { +// constructor() { type X = typeof this; } +// get self([|this|]: number) { type X = typeof /*GOTO DEF*/this; } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc new file mode 100644 index 0000000000..2a5b1bb336 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc @@ -0,0 +1,33 @@ +// === goToDefinition === +// === /goToDefinitionUndefinedSymbols.ts === +// some/*GOTO DEF*/Variable; +// var a: someType; +// var x = {}; x.someProperty; +// var a: any; a.someProperty; + + + +// === goToDefinition === +// === /goToDefinitionUndefinedSymbols.ts === +// someVariable; +// var a: some/*GOTO DEF*/Type; +// var x = {}; x.someProperty; +// var a: any; a.someProperty; + + + +// === goToDefinition === +// === /goToDefinitionUndefinedSymbols.ts === +// someVariable; +// var a: someType; +// var x = {}; x.some/*GOTO DEF*/Property; +// var a: any; a.someProperty; + + + +// === goToDefinition === +// === /goToDefinitionUndefinedSymbols.ts === +// someVariable; +// var a: someType; +// var x = {}; x.someProperty; +// var a: any; a.some/*GOTO DEF*/Property; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc new file mode 100644 index 0000000000..c1dcb0b04e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty1.ts === +// interface One { +// [|commonProperty|]: number; +// commonFunction(): number; +// } +// +// interface Two { +// [|commonProperty|]: string +// commonFunction(): number; +// } +// +// var x : One | Two; +// +// x./*GOTO DEF*/commonProperty; +// x.commonFunction; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc new file mode 100644 index 0000000000..6dae48030b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc @@ -0,0 +1,18 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty2.ts === +// interface HasAOrB { +// [|a|]: string; +// b: string; +// } +// +// interface One { +// common: { [|a|] : number; }; +// } +// +// interface Two { +// common: HasAOrB; +// } +// +// var x : One | Two; +// +// x.common./*GOTO DEF*/a; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc new file mode 100644 index 0000000000..0788a8117d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty3.ts === +// interface Array { +// [|specialPop|](): T +// } +// +// var strings: string[]; +// var numbers: number[]; +// +// var x = (strings || numbers)./*GOTO DEF*/specialPop() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc new file mode 100644 index 0000000000..0df12e9990 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty4.ts === +// interface SnapCrackle { +// [|pop|](): string; +// } +// +// interface Magnitude { +// [|pop|](): number; +// } +// +// interface Art { +// [|pop|](): boolean; +// } +// +// var art: Art; +// var magnitude: Magnitude; +// var snapcrackle: SnapCrackle; +// +// var x = (snapcrackle || magnitude || art)./*GOTO DEF*/pop; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc new file mode 100644 index 0000000000..b3498dbaa3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc @@ -0,0 +1,95 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty_discriminated.ts === +// type U = A | B; +// +// interface A { +// [|kind|]: "a"; +// prop: number; +// }; +// +// interface B { +// kind: "b"; +// prop: string; +// } +// +// const u: U = { +// /*GOTO DEF*/kind: "a", +// prop: 0, +// }; +// const u2: U = { +// // --- (line: 18) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty_discriminated.ts === +// type U = A | B; +// +// interface A { +// kind: "a"; +// [|prop|]: number; +// }; +// +// interface B { +// kind: "b"; +// prop: string; +// } +// +// const u: U = { +// kind: "a", +// /*GOTO DEF*/prop: 0, +// }; +// const u2: U = { +// kind: "bogus", +// prop: 0, +// }; + + + +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty_discriminated.ts === +// type U = A | B; +// +// interface A { +// [|kind|]: "a"; +// prop: number; +// }; +// +// interface B { +// [|kind|]: "b"; +// prop: string; +// } +// +// const u: U = { +// kind: "a", +// prop: 0, +// }; +// const u2: U = { +// /*GOTO DEF*/kind: "bogus", +// prop: 0, +// }; + + + +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty_discriminated.ts === +// type U = A | B; +// +// interface A { +// kind: "a"; +// [|prop|]: number; +// }; +// +// interface B { +// kind: "b"; +// [|prop|]: string; +// } +// +// const u: U = { +// kind: "a", +// prop: 0, +// }; +// const u2: U = { +// kind: "bogus", +// /*GOTO DEF*/prop: 0, +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc new file mode 100644 index 0000000000..234342516d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /foo.js === +// const Bar; +// const [|Foo|] = [|Bar|] = function () {} +// Foo.prototype.bar = function() {} +// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc new file mode 100644 index 0000000000..30aca9d564 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /foo.js === +// const [|Foo|] = module.[|exports|] = function () {} +// Foo.prototype.bar = function() {} +// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc new file mode 100644 index 0000000000..8e94c0fc30 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /foo.ts === +// const Bar; +// const [|Foo|] = [|Bar|] = function () {} +// Foo.prototype.bar = function() {} +// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc new file mode 100644 index 0000000000..d826f639e3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /foo.ts === +// const [|Foo|] = module.[|exports|] = function () {} +// Foo.prototype.bar = function() {} +// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc new file mode 100644 index 0000000000..04d7ab9643 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc @@ -0,0 +1,21 @@ +// === goToDefinition === +// === /goToDefinitionYield1.ts === +// function* [|gen|]() { +// /*GOTO DEF*/yield 0; +// } +// +// const genFunction = function*() { +// yield 0; +// } + + + +// === goToDefinition === +// === /goToDefinitionYield1.ts === +// function* gen() { +// yield 0; +// } +// +// const [|genFunction|] = function*() { +// /*GOTO DEF*/yield 0; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc new file mode 100644 index 0000000000..c9318f80db --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionYield2.ts === +// function* outerGen() { +// function* [|gen|]() { +// /*GOTO DEF*/yield 0; +// } +// return gen +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc new file mode 100644 index 0000000000..ddfd04564f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc @@ -0,0 +1,23 @@ +// === goToDefinition === +// === /goToDefinitionYield3.ts === +// class C { +// [|notAGenerator|]() { +// /*GOTO DEF*/yield 0; +// } +// +// foo*() { +// // --- (line: 7) skipped --- + + + +// === goToDefinition === +// === /goToDefinitionYield3.ts === +// class C { +// notAGenerator() { +// yield 0; +// } +// +// foo*[||]() { +// /*GOTO DEF*/yield 0; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc new file mode 100644 index 0000000000..a3f9d8721b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinitionYield4.ts === +// function* gen() { +// class C { [|[/*GOTO DEF*/yield 10]|]() {} } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc new file mode 100644 index 0000000000..6b8bf67ca8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc @@ -0,0 +1,14 @@ +// === goToDefinition === +// === /goToDefinition_filteringGenericMappedType.ts === +// const obj = { +// get [|id|]() { +// return 1; +// }, +// name: "test", +// // --- (line: 6) skipped --- + +// --- (line: 17) skipped --- +// name: true, +// }); +// +// obj2./*GOTO DEF*/id; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc new file mode 100644 index 0000000000..fe4215ee81 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinition_filteringMappedType.ts === +// const obj = { [|a|]: 1, b: 2 }; +// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { a: 0 }; +// filtered./*GOTO DEF*/a; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc new file mode 100644 index 0000000000..b19fd8260d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /goToDefinition_mappedType.ts === +// interface I { [|m|](): void; }; +// declare const i: { [K in "m"]: I[K] }; +// i./*GOTO DEF*/m(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc new file mode 100644 index 0000000000..c79dc5bd9d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc @@ -0,0 +1,46 @@ +// === goToDefinition === +// === /goToDefinition_super.ts === +// class A { +// [|constructor() {}|] +// x() {} +// } +// class [|B|] extends A {} +// class C extends B { +// constructor() { +// /*GOTO DEF*/super(); +// } +// method() { +// super.x(); +// // --- (line: 12) skipped --- + + + +// === goToDefinition === +// === /goToDefinition_super.ts === +// class A { +// constructor() {} +// x() {} +// } +// class [|B|] extends A {} +// class C extends B { +// constructor() { +// super(); +// } +// method() { +// /*GOTO DEF*/super.x(); +// } +// } +// class D { +// // --- (line: 15) skipped --- + + + +// === goToDefinition === +// === /goToDefinition_super.ts === +// --- (line: 12) skipped --- +// } +// class D { +// constructor() { +// /*GOTO DEF*/super(); +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc new file mode 100644 index 0000000000..087f06c4d9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /a.ts === +// import { [|f|] } from "foo"; +// /*GOTO DEF*/f(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc new file mode 100644 index 0000000000..398dffba0c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /b.ts === +// import [|n|] = require('a'); +// var x = new /*GOTO DEF*/n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToTypeDefinition4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToTypeDefinition4.baseline.jsonc new file mode 100644 index 0000000000..a639362681 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToTypeDefinition4.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /foo.ts === +// export type [|T|] = string; +// export const [|T|] = ""; + +// === /bar.ts === +// import { T } from "./foo"; +// let x: /*GOTO DEF*/T; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc new file mode 100644 index 0000000000..7460b0ef63 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /gotoDefinitionConstructorFunction.js === +// function [|StringStreamm|]() { +// } +// StringStreamm.prototype = { +// }; +// +// function runMode () { +// new /*GOTO DEF*/StringStreamm() +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc new file mode 100644 index 0000000000..abb98b47fe --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /gotoDefinitionInObjectBindingPattern1.ts === +// --- (line: 3) skipped --- +// interface Test { +// prop2: number +// } +// bar(({[|pr/*GOTO DEF*/op2|]})=>{}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc new file mode 100644 index 0000000000..2cde751515 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc @@ -0,0 +1,18 @@ +// === goToDefinition === +// === /gotoDefinitionInObjectBindingPattern2.ts === +// var p0 = ({[|a/*GOTO DEF*/a|]}) => {console.log(aa)}; +// function f2({ a1, b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} + + + +// === goToDefinition === +// === /gotoDefinitionInObjectBindingPattern2.ts === +// var p0 = ({aa}) => {console.log(aa)}; +// function f2({ [|a/*GOTO DEF*/1|], b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} + + + +// === goToDefinition === +// === /gotoDefinitionInObjectBindingPattern2.ts === +// var p0 = ({aa}) => {console.log(aa)}; +// function f2({ a1, [|b/*GOTO DEF*/1|] }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc new file mode 100644 index 0000000000..01216c4283 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc @@ -0,0 +1,125 @@ +// === goToDefinition === +// === /foo.ts === +// interface [|Foo|] { +// foo: string +// } +// namespace NS { +// export interface Bar { +// baz: Foo +// } +// } +// /** {@link /*GOTO DEF*/Foo} foooo*/ +// const a = "" +// /** {@link NS.Bar} ns.bar*/ +// const b = "" +// // --- (line: 13) skipped --- + + + +// === goToDefinition === +// === /foo.ts === +// interface Foo { +// foo: string +// } +// namespace NS { +// export interface [|Bar|] { +// baz: Foo +// } +// } +// /** {@link Foo} foooo*/ +// const a = "" +// /** {@link NS./*GOTO DEF*/Bar} ns.bar*/ +// const b = "" +// /** {@link Foo f1}*/ +// const c = "" +// // --- (line: 15) skipped --- + + + +// === goToDefinition === +// === /foo.ts === +// interface [|Foo|] { +// foo: string +// } +// namespace NS { +// // --- (line: 5) skipped --- + +// --- (line: 9) skipped --- +// const a = "" +// /** {@link NS.Bar} ns.bar*/ +// const b = "" +// /** {@link /*GOTO DEF*/Foo f1}*/ +// const c = "" +// /** {@link NS.Bar ns.bar}*/ +// const d = "" +// // --- (line: 17) skipped --- + + + +// === goToDefinition === +// === /foo.ts === +// interface Foo { +// foo: string +// } +// namespace NS { +// export interface [|Bar|] { +// baz: Foo +// } +// } +// /** {@link Foo} foooo*/ +// const a = "" +// /** {@link NS.Bar} ns.bar*/ +// const b = "" +// /** {@link Foo f1}*/ +// const c = "" +// /** {@link NS./*GOTO DEF*/Bar ns.bar}*/ +// const d = "" +// /** {@link d }dd*/ +// const e = "" +// /** @param x {@link Foo} */ +// function foo(x) { } + + + +// === goToDefinition === +// === /foo.ts === +// --- (line: 12) skipped --- +// /** {@link Foo f1}*/ +// const c = "" +// /** {@link NS.Bar ns.bar}*/ +// const [|d|] = "" +// /** {@link /*GOTO DEF*/d }dd*/ +// const e = "" +// /** @param x {@link Foo} */ +// function foo(x) { } + + + +// === goToDefinition === +// === /foo.ts === +// interface [|Foo|] { +// foo: string +// } +// namespace NS { +// // --- (line: 5) skipped --- + +// --- (line: 15) skipped --- +// const d = "" +// /** {@link d }dd*/ +// const e = "" +// /** @param x {@link /*GOTO DEF*/Foo} */ +// function foo(x) { } + + + +// === goToDefinition === +// === /foo.ts === +// interface [|Foo|] { +// foo: string +// } +// namespace NS { +// // --- (line: 5) skipped --- + +// === /bar.ts === +// /** {@link /*GOTO DEF*/Foo }dd*/ +// const f = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc new file mode 100644 index 0000000000..8d2a27622c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /gotoDefinitionLinkTag2.ts === +// enum E { +// /** {@link /*GOTO DEF*/A} */ +// [|A|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc new file mode 100644 index 0000000000..d1b6210c5a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /a.ts === +// enum E { +// /** {@link /*GOTO DEF*/Foo} */ +// [|Foo|] +// } +// interface Foo { +// foo: E.Foo; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc new file mode 100644 index 0000000000..958daa85d3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /b.ts === +// enum E { +// /** {@link /*GOTO DEF*/Foo} */ +// [|Foo|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc new file mode 100644 index 0000000000..709efe4fbf --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /gotoDefinitionLinkTag5.ts === +// enum E { +// /** {@link /*GOTO DEF*/B} */ +// A, +// [|B|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc new file mode 100644 index 0000000000..82e2ee17b5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /gotoDefinitionLinkTag6.ts === +// enum E { +// /** {@link E./*GOTO DEF*/A} */ +// [|A|] +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc new file mode 100644 index 0000000000..6668a2f281 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === +// class B {} +// function foo() { +// return {[|B|]: B}; +// } +// class C extends (foo())./*GOTO DEF*/B {} +// class C1 extends foo().B {} + + + +// === goToDefinition === +// === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === +// class B {} +// function foo() { +// return {[|B|]: B}; +// } +// class C extends (foo()).B {} +// class C1 extends foo()./*GOTO DEF*/B {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc new file mode 100644 index 0000000000..fe2c444c99 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /a.js === +// /** +// * @typedef {Object} [|T|] +// * @property {number} a +// */ +// +// /** @satisfies {/*GOTO DEF*/T} comment */ +// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc new file mode 100644 index 0000000000..6f6a711484 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /gotoDefinitionThrowsTag.ts === +// class E extends Error {} +// +// /** +// * @throws {/*GOTO DEF*/E} +// */ +// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc new file mode 100644 index 0000000000..f551165273 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc @@ -0,0 +1,95 @@ +// === goToDefinition === +// === /ns.ts === +// [|export namespace Foo { +// export namespace Bar { +// export class Baz {} +// } +// }|] + +// === /usage.ts === +// type A = typeof import(/*GOTO DEF*/"./ns").Foo.Bar; +// type B = import("./ns").Foo.Bar.Baz; + + + +// === goToDefinition === +// === /ns.ts === +// export namespace [|Foo|] { +// export namespace Bar { +// export class Baz {} +// } +// } + +// === /usage.ts === +// type A = typeof import("./ns")./*GOTO DEF*/Foo.Bar; +// type B = import("./ns").Foo.Bar.Baz; + + + +// === goToDefinition === +// === /ns.ts === +// export namespace Foo { +// export namespace [|Bar|] { +// export class Baz {} +// } +// } + +// === /usage.ts === +// type A = typeof import("./ns").Foo./*GOTO DEF*/Bar; +// type B = import("./ns").Foo.Bar.Baz; + + + +// === goToDefinition === +// === /ns.ts === +// [|export namespace Foo { +// export namespace Bar { +// export class Baz {} +// } +// }|] + +// === /usage.ts === +// type A = typeof import("./ns").Foo.Bar; +// type B = import(/*GOTO DEF*/"./ns").Foo.Bar.Baz; + + + +// === goToDefinition === +// === /ns.ts === +// export namespace [|Foo|] { +// export namespace Bar { +// export class Baz {} +// } +// } + +// === /usage.ts === +// type A = typeof import("./ns").Foo.Bar; +// type B = import("./ns")./*GOTO DEF*/Foo.Bar.Baz; + + + +// === goToDefinition === +// === /ns.ts === +// export namespace Foo { +// export namespace [|Bar|] { +// export class Baz {} +// } +// } + +// === /usage.ts === +// type A = typeof import("./ns").Foo.Bar; +// type B = import("./ns").Foo./*GOTO DEF*/Bar.Baz; + + + +// === goToDefinition === +// === /ns.ts === +// export namespace Foo { +// export namespace Bar { +// export class [|Baz|] {} +// } +// } + +// === /usage.ts === +// type A = typeof import("./ns").Foo.Bar; +// type B = import("./ns").Foo.Bar./*GOTO DEF*/Baz; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc new file mode 100644 index 0000000000..f5b02f0b67 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc @@ -0,0 +1,27 @@ +// === goToDefinition === +// === /Foo.js === +// class Foo { +// constructor() { +// this.[|alpha|] = 10; +// this.beta = 'gamma'; +// } +// method() { return this.alpha; } +// } +// var x = new Foo(); +// x.alpha/*GOTO DEF*/; +// x.beta; + + + +// === goToDefinition === +// === /Foo.js === +// class Foo { +// constructor() { +// this.alpha = 10; +// this.[|beta|] = 'gamma'; +// } +// method() { return this.alpha; } +// } +// var x = new Foo(); +// x.alpha; +// x.beta/*GOTO DEF*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc new file mode 100644 index 0000000000..cb2a5e5e2c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc @@ -0,0 +1,91 @@ +// === goToDefinition === +// === /jsDocSee1.ts === +// interface [|Foo|] { +// foo: string +// } +// namespace NS { +// export interface Bar { +// baz: Foo +// } +// } +// /** @see {/*GOTO DEF*/Foo} foooo*/ +// const a = "" +// /** @see {NS.Bar} ns.bar*/ +// const b = "" +// // --- (line: 13) skipped --- + + + +// === goToDefinition === +// === /jsDocSee1.ts === +// interface Foo { +// foo: string +// } +// namespace NS { +// export interface [|Bar|] { +// baz: Foo +// } +// } +// /** @see {Foo} foooo*/ +// const a = "" +// /** @see {NS./*GOTO DEF*/Bar} ns.bar*/ +// const b = "" +// /** @see Foo f1*/ +// const c = "" +// // --- (line: 15) skipped --- + + + +// === goToDefinition === +// === /jsDocSee1.ts === +// interface [|Foo|] { +// foo: string +// } +// namespace NS { +// // --- (line: 5) skipped --- + +// --- (line: 9) skipped --- +// const a = "" +// /** @see {NS.Bar} ns.bar*/ +// const b = "" +// /** @see /*GOTO DEF*/Foo f1*/ +// const c = "" +// /** @see NS.Bar ns.bar*/ +// const d = "" +// /** @see d dd*/ +// const e = "" + + + +// === goToDefinition === +// === /jsDocSee1.ts === +// interface Foo { +// foo: string +// } +// namespace NS { +// export interface [|Bar|] { +// baz: Foo +// } +// } +// /** @see {Foo} foooo*/ +// const a = "" +// /** @see {NS.Bar} ns.bar*/ +// const b = "" +// /** @see Foo f1*/ +// const c = "" +// /** @see NS./*GOTO DEF*/Bar ns.bar*/ +// const d = "" +// /** @see d dd*/ +// const e = "" + + + +// === goToDefinition === +// === /jsDocSee1.ts === +// --- (line: 12) skipped --- +// /** @see Foo f1*/ +// const c = "" +// /** @see NS.Bar ns.bar*/ +// const [|d|] = "" +// /** @see /*GOTO DEF*/d dd*/ +// const e = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc new file mode 100644 index 0000000000..3ee62a5126 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc @@ -0,0 +1,87 @@ +// === goToDefinition === +// === /jsDocSee2.ts === +// /** @see {/*GOTO DEF*/foooo} unknown reference*/ +// const a = "" +// /** @see {@bar} invalid tag*/ +// const b = "" +// // --- (line: 5) skipped --- + + + +// === goToDefinition === +// === /jsDocSee2.ts === +// /** @see {foooo} unknown reference*/ +// const a = "" +// /** @see {/*GOTO DEF*/@bar} invalid tag*/ +// const b = "" +// /** @see foooo unknown reference without brace*/ +// const c = "" +// // --- (line: 7) skipped --- + + + +// === goToDefinition === +// === /jsDocSee2.ts === +// /** @see {foooo} unknown reference*/ +// const a = "" +// /** @see {@bar} invalid tag*/ +// const b = "" +// /** @see /*GOTO DEF*/foooo unknown reference without brace*/ +// const c = "" +// /** @see @bar invalid tag without brace*/ +// const d = "" +// // --- (line: 9) skipped --- + + + +// === goToDefinition === +// === /jsDocSee2.ts === +// --- (line: 3) skipped --- +// const b = "" +// /** @see foooo unknown reference without brace*/ +// const c = "" +// /** @see /*GOTO DEF*/@bar invalid tag without brace*/ +// const d = "" +// /** @see {d@fff} partial reference */ +// const e = "" +// // --- (line: 11) skipped --- + + + +// === goToDefinition === +// === /jsDocSee2.ts === +// --- (line: 4) skipped --- +// /** @see foooo unknown reference without brace*/ +// const c = "" +// /** @see @bar invalid tag without brace*/ +// const [|d|] = "" +// /** @see {/*GOTO DEF*/d@fff} partial reference */ +// const e = "" +// /** @see @@@@@@ total invalid tag*/ +// const f = "" +// /** @see d@{fff} partial reference */ +// const g = "" + + + +// === goToDefinition === +// === /jsDocSee2.ts === +// --- (line: 7) skipped --- +// const d = "" +// /** @see {d@fff} partial reference */ +// const e = "" +// /** @see /*GOTO DEF*/@@@@@@ total invalid tag*/ +// const f = "" +// /** @see d@{fff} partial reference */ +// const g = "" + + + +// === goToDefinition === +// === /jsDocSee2.ts === +// --- (line: 9) skipped --- +// const e = "" +// /** @see @@@@@@ total invalid tag*/ +// const f = "" +// /** @see d@{/*GOTO DEF*/fff} partial reference */ +// const g = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc new file mode 100644 index 0000000000..61fab7b010 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /jsDocSee3.ts === +// function foo ([|a|]: string) { +// /** +// * @see {/*GOTO DEF*/a} +// */ +// function bar (a: string) { +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc new file mode 100644 index 0000000000..8a66dabeb4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc @@ -0,0 +1,52 @@ +// === goToDefinition === +// === /jsDocSee4.ts === +// class [|A|] { +// foo () { } +// } +// declare const a: A; +// /** +// * @see {/*GOTO DEF*/A#foo} +// */ +// const t1 = 1 +// /** +// // --- (line: 10) skipped --- + + + +// === goToDefinition === +// === /jsDocSee4.ts === +// class A { +// foo () { } +// } +// declare const [|a|]: A; +// /** +// * @see {A#foo} +// */ +// const t1 = 1 +// /** +// * @see {/*GOTO DEF*/a.foo()} +// */ +// const t2 = 1 +// /** +// // --- (line: 14) skipped --- + + + +// === goToDefinition === +// === /jsDocSee4.ts === +// class A { +// foo () { } +// } +// declare const [|a|]: A; +// /** +// * @see {A#foo} +// */ +// const t1 = 1 +// /** +// * @see {a.foo()} +// */ +// const t2 = 1 +// /** +// * @see {@link /*GOTO DEF*/a.foo()} +// */ +// const t3 = 1 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc new file mode 100644 index 0000000000..50c6a61b85 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc @@ -0,0 +1,34 @@ +// === goToDefinition === +// === /jsdocCompletion_typedef.js === +// /** +// * @typedef {Object} Person +// * @property {string} [|personName|] +// * @property {number} personAge +// */ +// +// /** +// * @typedef {{ animalName: string, animalAge: number }} Animal +// */ +// +// /** @type {Person} */ +// var person; person.personName/*GOTO DEF*/ +// +// /** @type {Animal} */ +// var animal; animal.animalName + + + +// === goToDefinition === +// === /jsdocCompletion_typedef.js === +// --- (line: 4) skipped --- +// */ +// +// /** +// * @typedef {{ [|animalName|]: string, animalAge: number }} Animal +// */ +// +// /** @type {Person} */ +// var person; person.personName +// +// /** @type {Animal} */ +// var animal; animal.animalName/*GOTO DEF*/ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc new file mode 100644 index 0000000000..629dad64b0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// } +// +// var [|nn|]: {name?: string; size?: number}; +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/qualifiedName_import_declaration_with_variable_entity_names.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/qualifiedName_import_declaration_with_variable_entity_names.baseline.jsonc new file mode 100644 index 0000000000..666ce55bd3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/qualifiedName_import_declaration_with_variable_entity_names.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /qualifiedName_import_declaration_with_variable_entity_names.ts === +// module Alpha { +// export var [|x|] = 100; +// } +// +// module Beta { +// import p = Alpha./*GOTO DEF*/x; +// } +// +// var x = Alpha.x \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc new file mode 100644 index 0000000000..711b5b0614 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /file.d.ts === +// namespace /*GOTO DEF*/[|Foo|] { +// +// +// +// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc new file mode 100644 index 0000000000..019d208f03 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc @@ -0,0 +1,48 @@ +// === goToDefinition === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { } +// interface ElementAttributesProperty { props; } +// } +// class [|MyClass|] { +// props: { +// foo: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 4) skipped --- +// } +// class MyClass { +// props: { +// [|foo|]: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; + + + +// === goToDefinition === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { } +// interface ElementAttributesProperty { props; } +// } +// class [|MyClass|] { +// props: { +// foo: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc new file mode 100644 index 0000000000..5d4c9efa4e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc @@ -0,0 +1,48 @@ +// === goToDefinition === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; +// var y = ; +// var z =
; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 4) skipped --- +// name?: string; +// isOpen?: boolean; +// }; +// [|span|]: { n: string; }; +// } +// } +// var x =
; +// var y = ; +// var z =
; + + + +// === goToDefinition === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// [|name|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x =
; +// var y = ; +// var z =
; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc new file mode 100644 index 0000000000..49f1432f83 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc @@ -0,0 +1,87 @@ +// === goToDefinition === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 4) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// [|propx|]: number +// propString: "hell" +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 6) skipped --- +// interface OptionPropBag { +// propx: number +// propString: "hell" +// [|optional|]?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc new file mode 100644 index 0000000000..86067d8aaf --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc @@ -0,0 +1,104 @@ +// === goToDefinition === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt =
; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt =
; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt =
{}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt =
{}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 14) skipped --- +// goTo: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt =
; +// let opt = ; + + + +// === goToDefinition === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt =
; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc new file mode 100644 index 0000000000..4ed459649f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc @@ -0,0 +1,14 @@ +// === goToDefinition === +// === /file.tsx === +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props; } +// } +// function [|SFC1|](prop: { x: number }) { +// return
hello
; +// }; +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var [|SFCComp|] = SFC1 || SFC2; +// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc new file mode 100644 index 0000000000..aea57bc6f9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /file.tsx === +// --- (line: 8) skipped --- +// } +// private method() { } +// } +// var [|RCComp|] = RC1 || RC2; +// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition.baseline.jsonc new file mode 100644 index 0000000000..1ff73db085 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToType === +// === /goToTypeDefinition_Definition.ts === +// class [|C|] { +// p; +// } +// var c: C; + +// === /goToTypeDefinition_Consumption.ts === +// /*GOTO TYPE*/c = undefined; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition2.baseline.jsonc new file mode 100644 index 0000000000..beaf380dc5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition2.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToType === +// === /goToTypeDefinition2_Definition.ts === +// interface [|I1|] { +// p; +// } +// type propertyType = I1; +// // --- (line: 5) skipped --- + +// === /goToTypeDefinition2_Consumption.ts === +// var i2: I2; +// i2.prop/*GOTO TYPE*/erty; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition3.baseline.jsonc new file mode 100644 index 0000000000..6067823559 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition3.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToType === +// === /goToTypeDefinition3.ts === +// type [|T|] = string; +// const x: /*GOTO TYPE*/T; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition4.baseline.jsonc new file mode 100644 index 0000000000..61504f639c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition4.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToType === +// === /bar.ts === +// import { T } from "./foo"; +// let x: /*GOTO TYPE*/T; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition5.baseline.jsonc new file mode 100644 index 0000000000..4f3d334efb --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition5.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToType === +// === /foo.ts === +// let Foo: unresolved; +// type Foo = { x: string }; +// /*GOTO TYPE*/Foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionAliases.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionAliases.baseline.jsonc new file mode 100644 index 0000000000..dd9f252f4b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionAliases.baseline.jsonc @@ -0,0 +1,23 @@ +// === goToType === +// === /goToTypeDefinitioAliases_module1.ts === +// interface [|I|] { +// p; +// } +// export {I as I2}; + +// === /goToTypeDefinitioAliases_module3.ts === +// import {/*GOTO TYPE*/v2 as v3} from "./goToTypeDefinitioAliases_module2"; +// v3; + + + +// === goToType === +// === /goToTypeDefinitioAliases_module1.ts === +// interface [|I|] { +// p; +// } +// export {I as I2}; + +// === /goToTypeDefinitioAliases_module3.ts === +// import {v2 as v3} from "./goToTypeDefinitioAliases_module2"; +// /*GOTO TYPE*/v3; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionEnumMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionEnumMembers.baseline.jsonc new file mode 100644 index 0000000000..7e09546c95 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionEnumMembers.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToType === +// === /goToTypeDefinitionEnumMembers.ts === +// enum E { +// value1, +// [|value2|] +// } +// var x = E.value2; +// +// /*GOTO TYPE*/x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionImportMeta.baseline.jsonc new file mode 100644 index 0000000000..11fd9f4d3d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionImportMeta.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToType === +// === /bar.d.ts === +// interface [|ImportMeta|] { +// } + +// === /foo.ts === +// /// +// /// +// import.me/*GOTO TYPE*/ta; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModifiers.baseline.jsonc new file mode 100644 index 0000000000..c6416aa695 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModifiers.baseline.jsonc @@ -0,0 +1,227 @@ +// === goToType === +// === /a.ts === +// /*GOTO TYPE*/export class [|A|] { +// +// private z: string; +// +// // --- (line: 5) skipped --- + + + +// === goToType === +// === /a.ts === +// export class [|A|]/*GOTO TYPE*/ { +// +// private z: string; +// +// // --- (line: 5) skipped --- + + + +// === goToType === +// === /a.ts === +// export class A { +// +// /*GOTO TYPE*/private z: string; +// +// private y: A; +// +// // --- (line: 7) skipped --- + + + +// === goToType === +// === /a.ts === +// export class A { +// +// private z/*GOTO TYPE*/: string; +// +// private y: A; +// +// // --- (line: 7) skipped --- + + + +// === goToType === +// === /a.ts === +// export class [|A|] { +// +// private z: string; +// +// /*GOTO TYPE*/private y: A; +// +// readonly x: string; +// +// // --- (line: 9) skipped --- + + + +// === goToType === +// === /a.ts === +// export class [|A|] { +// +// private z: string; +// +// private y/*GOTO TYPE*/: A; +// +// readonly x: string; +// +// // --- (line: 9) skipped --- + + + +// === goToType === +// === /a.ts === +// --- (line: 3) skipped --- +// +// private y: A; +// +// /*GOTO TYPE*/readonly x: string; +// +// async a() { } +// +// // --- (line: 11) skipped --- + + + +// === goToType === +// === /a.ts === +// --- (line: 3) skipped --- +// +// private y: A; +// +// readonly x/*GOTO TYPE*/: string; +// +// async a() { } +// +// // --- (line: 11) skipped --- + + + +// === goToType === +// === /a.ts === +// --- (line: 5) skipped --- +// +// readonly x: string; +// +// /*GOTO TYPE*/async a() { } +// +// override b() {} +// +// // --- (line: 13) skipped --- + + + +// === goToType === +// === /a.ts === +// --- (line: 5) skipped --- +// +// readonly x: string; +// +// async a/*GOTO TYPE*/() { } +// +// override b() {} +// +// // --- (line: 13) skipped --- + + + +// === goToType === +// === /a.ts === +// --- (line: 7) skipped --- +// +// async a() { } +// +// /*GOTO TYPE*/override b() {} +// +// public async c() { } +// } +// +// export function foo() { } + + + +// === goToType === +// === /a.ts === +// --- (line: 7) skipped --- +// +// async a() { } +// +// override b/*GOTO TYPE*/() {} +// +// public async c() { } +// } +// +// export function foo() { } + + + +// === goToType === +// === /a.ts === +// --- (line: 9) skipped --- +// +// override b() {} +// +// /*GOTO TYPE*/public async c() { } +// } +// +// export function foo() { } + + + +// === goToType === +// === /a.ts === +// --- (line: 9) skipped --- +// +// override b() {} +// +// public/*GOTO TYPE*/ async c() { } +// } +// +// export function foo() { } + + + +// === goToType === +// === /a.ts === +// --- (line: 9) skipped --- +// +// override b() {} +// +// public as/*GOTO TYPE*/ync c() { } +// } +// +// export function foo() { } + + + +// === goToType === +// === /a.ts === +// --- (line: 9) skipped --- +// +// override b() {} +// +// public async c/*GOTO TYPE*/() { } +// } +// +// export function foo() { } + + + +// === goToType === +// === /a.ts === +// --- (line: 12) skipped --- +// public async c() { } +// } +// +// exp/*GOTO TYPE*/ort function foo() { } + + + +// === goToType === +// === /a.ts === +// --- (line: 12) skipped --- +// public async c() { } +// } +// +// export function foo/*GOTO TYPE*/() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModule.baseline.jsonc new file mode 100644 index 0000000000..e4615be10b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionModule.baseline.jsonc @@ -0,0 +1,23 @@ +// === goToType === +// === /module1.ts === +// module [|M|] { +// export var p; +// } +// var m: typeof M; + +// === /module3.ts === +// /*GOTO TYPE*/M; +// m; + + + +// === goToType === +// === /module1.ts === +// module [|M|] { +// export var p; +// } +// var m: typeof M; + +// === /module3.ts === +// M; +// /*GOTO TYPE*/m; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionPrimitives.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionPrimitives.baseline.jsonc new file mode 100644 index 0000000000..04785ee8ff --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionPrimitives.baseline.jsonc @@ -0,0 +1,33 @@ +// === goToType === +// === /module2.ts === +// w./*GOTO TYPE*/a; +// x; +// y; +// y; + + + +// === goToType === +// === /module2.ts === +// w.a; +// /*GOTO TYPE*/x; +// y; +// y; + + + +// === goToType === +// === /module2.ts === +// w.a; +// x; +// /*GOTO TYPE*/y; +// y; + + + +// === goToType === +// === /module2.ts === +// w.a; +// x; +// y; +// /*GOTO TYPE*/y; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionUnionType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionUnionType.baseline.jsonc new file mode 100644 index 0000000000..b29b559356 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinitionUnionType.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToType === +// === /goToTypeDefinitionUnionType.ts === +// class [|C|] { +// p; +// } +// +// interface [|I|] { +// x; +// } +// +// module M { +// export interface [|I|] { +// y; +// } +// } +// +// var x: C | I | M.I; +// +// /*GOTO TYPE*/x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_Pick.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_Pick.baseline.jsonc new file mode 100644 index 0000000000..e15dcddec0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_Pick.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToType === +// === /goToTypeDefinition_Pick.ts === +// type User = [|{ id: number; name: string; }|]; +// declare const user: Pick +// /*GOTO TYPE*/user +// +// type PickedUser = Pick +// declare const user2: PickedUser +// user2 + + + +// === goToType === +// === /goToTypeDefinition_Pick.ts === +// --- (line: 3) skipped --- +// +// type PickedUser = Pick +// declare const user2: PickedUser +// /*GOTO TYPE*/user2 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_arrayType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_arrayType.baseline.jsonc new file mode 100644 index 0000000000..e984cc5804 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_arrayType.baseline.jsonc @@ -0,0 +1,37 @@ +// === goToType === +// === /goToTypeDefinition_arrayType.ts === +// type User = [|{ name: string }|]; +// declare const users: User[] +// /*GOTO TYPE*/users +// +// type UsersArr = Array +// declare const users2: UsersArr +// // --- (line: 7) skipped --- + + + +// === goToType === +// === /goToTypeDefinition_arrayType.ts === +// type User = [|{ name: string }|]; +// declare const users: User[] +// users +// +// type UsersArr = Array +// declare const users2: UsersArr +// /*GOTO TYPE*/users2 +// +// class CustomArray extends Array { immutableReverse() { return [...this].reverse() } } +// declare const users3: CustomArray +// users3 + + + +// === goToType === +// === /goToTypeDefinition_arrayType.ts === +// --- (line: 5) skipped --- +// declare const users2: UsersArr +// users2 +// +// class [|CustomArray|] extends Array { immutableReverse() { return [...this].reverse() } } +// declare const users3: CustomArray +// /*GOTO TYPE*/users3 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_promiseType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_promiseType.baseline.jsonc new file mode 100644 index 0000000000..18eae436c2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_promiseType.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToType === +// === /goToTypeDefinition_promiseType.ts === +// type User = [|{ name: string }|]; +// async function /*GOTO TYPE*/getUser() { return { name: "Bob" } satisfies User as User } +// +// const promisedBob = getUser() +// +// export {} + + + +// === goToType === +// === /goToTypeDefinition_promiseType.ts === +// type User = [|{ name: string }|]; +// async function getUser() { return { name: "Bob" } satisfies User as User } +// +// const /*GOTO TYPE*/promisedBob = getUser() +// +// export {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_returnType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_returnType.baseline.jsonc new file mode 100644 index 0000000000..33d20e328a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_returnType.baseline.jsonc @@ -0,0 +1,179 @@ +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// interface [|I|] { x: number; } +// interface J { y: number; } +// +// function f0(): I { return { x: 0 }; } +// // --- (line: 5) skipped --- + +// --- (line: 21) skipped --- +// function f8(j: J): J; +// function f8(ij: any): any { return ij; } +// +// /*GOTO TYPE*/f0(); +// f1(); +// f2(); +// f3(); +// // --- (line: 29) skipped --- + + + +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// interface I { x: number; } +// interface J { y: number; } +// +// function f0(): I { return { x: 0 }; } +// +// type T = [|(i: I) => I|]; +// const f1: T = i => ({ x: i.x + 1 }); +// +// const f2 = (i: I): I => ({ x: i.x + 1 }); +// // --- (line: 10) skipped --- + +// --- (line: 22) skipped --- +// function f8(ij: any): any { return ij; } +// +// f0(); +// /*GOTO TYPE*/f1(); +// f2(); +// f3(); +// f4(); +// // --- (line: 30) skipped --- + + + +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// interface [|I|] { x: number; } +// interface J { y: number; } +// +// function f0(): I { return { x: 0 }; } +// // --- (line: 5) skipped --- + +// --- (line: 23) skipped --- +// +// f0(); +// f1(); +// /*GOTO TYPE*/f2(); +// f3(); +// f4(); +// f5(); +// // --- (line: 31) skipped --- + + + +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// --- (line: 7) skipped --- +// +// const f2 = (i: I): I => ({ x: i.x + 1 }); +// +// const f3 = (i: I) => ([|{ x: i.x + 1 }|]); +// +// const f4 = (i: I) => i; +// +// // --- (line: 15) skipped --- + +// --- (line: 24) skipped --- +// f0(); +// f1(); +// f2(); +// /*GOTO TYPE*/f3(); +// f4(); +// f5(); +// f6(); +// f7(); +// f8(); + + + +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// interface [|I|] { x: number; } +// interface J { y: number; } +// +// function f0(): I { return { x: 0 }; } +// // --- (line: 5) skipped --- + +// --- (line: 25) skipped --- +// f1(); +// f2(); +// f3(); +// /*GOTO TYPE*/f4(); +// f5(); +// f6(); +// f7(); +// f8(); + + + +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// interface [|I|] { x: number; } +// interface [|J|] { y: number; } +// +// function f0(): I { return { x: 0 }; } +// +// // --- (line: 6) skipped --- + +// --- (line: 26) skipped --- +// f2(); +// f3(); +// f4(); +// /*GOTO TYPE*/f5(); +// f6(); +// f7(); +// f8(); + + + +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// interface [|I|] { x: number; } +// interface [|J|] { y: number; } +// +// function f0(): I { return { x: 0 }; } +// +// // --- (line: 6) skipped --- + +// --- (line: 27) skipped --- +// f3(); +// f4(); +// f5(); +// /*GOTO TYPE*/f6(); +// f7(); +// f8(); + + + +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// --- (line: 28) skipped --- +// f4(); +// f5(); +// f6(); +// /*GOTO TYPE*/f7(); +// f8(); + + + +// === goToType === +// === /goToTypeDefinition_returnType.ts === +// --- (line: 17) skipped --- +// +// const f7 = (i: I) => {}; +// +// function [|f8|](i: I): I; +// function [|f8|](j: J): J; +// function [|f8|](ij: any): any { return ij; } +// +// f0(); +// f1(); +// f2(); +// f3(); +// f4(); +// f5(); +// f6(); +// f7(); +// /*GOTO TYPE*/f8(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typeReference.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typeReference.baseline.jsonc new file mode 100644 index 0000000000..b5a668654f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typeReference.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToType === +// === /goToTypeDefinition_typeReference.ts === +// type User = { name: string }; +// type Box = [|{ value: T }|]; +// declare const boxedUser: Box +// /*GOTO TYPE*/boxedUser \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typedef.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typedef.baseline.jsonc new file mode 100644 index 0000000000..beeae33cc7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/goToTypeDefinition_typedef.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToType === +// === /a.js === +// /** +// * @typedef {object} I +// * [|@property {number} x +// |]*/ +// +// /** @type {I} */ +// const /*GOTO TYPE*/i = { x: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToType/typedefinition01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToType/typedefinition01.baseline.jsonc new file mode 100644 index 0000000000..5803b2d492 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToType/typedefinition01.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToType === +// === /a.ts === +// export class [|Foo|] {} + +// === /b.ts === +// import n = require('./a'); +// var x/*GOTO TYPE*/ = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline b/testdata/baselines/reference/fourslash/quickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline new file mode 100644 index 0000000000..2d144531b1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline @@ -0,0 +1,124 @@ +// === QuickInfo === +=== /completionDetailsOfContextSensitiveParameterNoCrash.ts === +// type __ = never; +// +// interface CurriedFunction1 { +// (): CurriedFunction1; +// (t1: T1): R; +// } +// interface CurriedFunction2 { +// (): CurriedFunction2; +// (t1: T1): CurriedFunction1; +// (t1: __, t2: T2): CurriedFunction1; +// (t1: T1, t2: T2): R; +// } +// +// interface CurriedFunction3 { +// (): CurriedFunction3; +// (t1: T1): CurriedFunction2; +// (t1: __, t2: T2): CurriedFunction2; +// (t1: T1, t2: T2): CurriedFunction1; +// (t1: __, t2: __, t3: T3): CurriedFunction2; +// (t1: T1, t2: __, t3: T3): CurriedFunction1; +// (t1: __, t2: T2, t3: T3): CurriedFunction1; +// (t1: T1, t2: T2, t3: T3): R; +// } +// +// interface CurriedFunction4 { +// (): CurriedFunction4; +// (t1: T1): CurriedFunction3; +// (t1: __, t2: T2): CurriedFunction3; +// (t1: T1, t2: T2): CurriedFunction2; +// (t1: __, t2: __, t3: T3): CurriedFunction3; +// (t1: __, t2: __, t3: T3): CurriedFunction2; +// (t1: __, t2: T2, t3: T3): CurriedFunction2; +// (t1: T1, t2: T2, t3: T3): CurriedFunction1; +// (t1: __, t2: __, t3: __, t4: T4): CurriedFunction3; +// (t1: T1, t2: __, t3: __, t4: T4): CurriedFunction2; +// (t1: __, t2: T2, t3: __, t4: T4): CurriedFunction2; +// (t1: __, t2: __, t3: T3, t4: T4): CurriedFunction2; +// (t1: T1, t2: T2, t3: __, t4: T4): CurriedFunction1; +// (t1: T1, t2: __, t3: T3, t4: T4): CurriedFunction1; +// (t1: __, t2: T2, t3: T3, t4: T4): CurriedFunction1; +// (t1: T1, t2: T2, t3: T3, t4: T4): R; +// } +// +// declare var curry: { +// (func: (t1: T1) => R, arity?: number): CurriedFunction1; +// (func: (t1: T1, t2: T2) => R, arity?: number): CurriedFunction2; +// (func: (t1: T1, t2: T2, t3: T3) => R, arity?: number): CurriedFunction3; +// (func: (t1: T1, t2: T2, t3: T3, t4: T4) => R, arity?: number): CurriedFunction4; +// (func: (...args: any[]) => any, arity?: number): (...args: any[]) => any; +// placeholder: __; +// }; +// +// export type StylingFunction = ( +// keys: (string | false | undefined) | (string | false | undefined)[], +// ...rest: unknown[] +// ) => object; +// +// declare const getStylingByKeys: ( +// mergedStyling: object, +// keys: (string | false | undefined) | (string | false | undefined)[], +// ...args: unknown[] +// ) => object; +// +// declare var mergedStyling: object; +// +// export const createStyling: CurriedFunction3< +// (base16Theme: object) => unknown, +// object | undefined, +// object | undefined, +// StylingFunction +// > = curry< +// (base16Theme: object) => unknown, +// object | undefined, +// object | undefined, +// StylingFunction +// >( +// ( +// getStylingFromBase16: (base16Theme: object) => unknown, +// options: object = {}, +// themeOrStyling: object = {}, +// ...args +// ): StylingFunction => { +// return curry(getStylingByKeys, 2)(mergedStyling, ...args); +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) args: [] +// | ``` +// | +// | ---------------------------------------------------------------------- +// }, +// 3 +// ); +[ + { + "marker": { + "Position": 3101, + "LSPosition": { + "line": 82, + "character": 60 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) args: []\n```\n" + }, + "range": { + "start": { + "line": 82, + "character": 60 + }, + "end": { + "line": 82, + "character": 64 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/deprecatedInheritedJSDocOverload.baseline b/testdata/baselines/reference/fourslash/quickInfo/deprecatedInheritedJSDocOverload.baseline new file mode 100644 index 0000000000..97bb4d0a90 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/deprecatedInheritedJSDocOverload.baseline @@ -0,0 +1,63 @@ +// === QuickInfo === +=== /deprecatedInheritedJSDocOverload.ts === +// interface PartialObserver {} +// interface Subscription {} +// interface Unsubscribable {} +// +// export interface Subscribable { +// subscribe(observer?: PartialObserver): Unsubscribable; +// /** @deprecated Base deprecation 1 */ +// subscribe(next: null | undefined, error: null | undefined, complete: () => void): Unsubscribable; +// /** @deprecated Base deprecation 2 */ +// subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Unsubscribable; +// /** @deprecated Base deprecation 3 */ +// subscribe(next: (value: T) => void, error: null | undefined, complete: () => void): Unsubscribable; +// subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Unsubscribable; +// } +// interface ThingWithDeprecations extends Subscribable { +// subscribe(observer?: PartialObserver): Subscription; +// /** @deprecated 'real' deprecation */ +// subscribe(next: null | undefined, error: null | undefined, complete: () => void): Subscription; +// /** @deprecated 'real' deprecation */ +// subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Subscription; +// } +// declare const a: ThingWithDeprecations +// a.subscribe(() => { +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) ThingWithDeprecations.subscribe(observer?: PartialObserver): Subscription +// | ``` +// | +// | ---------------------------------------------------------------------- +// console.log('something happened'); +// }); +[ + { + "marker": { + "Position": 1183, + "LSPosition": { + "line": 22, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) ThingWithDeprecations.subscribe(observer?: PartialObserver): Subscription\n```\n" + }, + "range": { + "start": { + "line": 22, + "character": 2 + }, + "end": { + "line": 22, + "character": 11 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsDocAliasQuickInfo.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsDocAliasQuickInfo.baseline new file mode 100644 index 0000000000..9ab690fbec --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsDocAliasQuickInfo.baseline @@ -0,0 +1,61 @@ +// === QuickInfo === +=== /jsDocAliasQuickInfo.ts === +// /** +// * Comment +// * @type {number} +// */ +// export default 10; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +=== /test.ts === +// export { default as test } from "./jsDocAliasQuickInfo"; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- + + +[ + { + "marker": { + "Position": 44, + "LSPosition": { + "line": 4, + "character": 7 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 20, + "LSPosition": { + "line": 0, + "character": 20 + }, + "Name": "3", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo1.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo1.baseline new file mode 100644 index 0000000000..fac037faa7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo1.baseline @@ -0,0 +1,472 @@ +// === QuickInfo === +=== /jsDocTypeTag1.js === +// /** @type {String} */ +// var S; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var S: String +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Number} */ +// var N; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var N: Number +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Boolean} */ +// var B; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var B: Boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Void} */ +// var V; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var V: Void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Undefined} */ +// var U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var U: Undefined +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Null} */ +// var Nl; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var Nl: Null +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Array} */ +// var A; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var A: any[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Promise} */ +// var P; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var P: Promise +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Object} */ +// var Obj; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var Obj: Object +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Function} */ +// var Func; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var Func: Function +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {*} */ +// var AnyType; +// ^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var AnyType: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {?} */ +// var QType; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var QType: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {String|Number} */ +// var SOrN; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var SOrN: Number | String +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar S: String\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 55, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar N: Number\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 4 + }, + "end": { + "line": 3, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 85, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar B: Boolean\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 112, + "LSPosition": { + "line": 7, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar V: Void\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 4 + }, + "end": { + "line": 7, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 144, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar U: Undefined\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 4 + }, + "end": { + "line": 9, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 171, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar Nl: Null\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 4 + }, + "end": { + "line": 11, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 200, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar A: any[]\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 4 + }, + "end": { + "line": 13, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 230, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar P: Promise\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 4 + }, + "end": { + "line": 15, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 259, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar Obj: Object\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 4 + }, + "end": { + "line": 17, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 292, + "LSPosition": { + "line": 19, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar Func: Function\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 4 + }, + "end": { + "line": 19, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 319, + "LSPosition": { + "line": 21, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar AnyType: any\n```\n" + }, + "range": { + "start": { + "line": 21, + "character": 4 + }, + "end": { + "line": 21, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 349, + "LSPosition": { + "line": 23, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar QType: any\n```\n" + }, + "range": { + "start": { + "line": 23, + "character": 4 + }, + "end": { + "line": 23, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 389, + "LSPosition": { + "line": 25, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar SOrN: Number | String\n```\n" + }, + "range": { + "start": { + "line": 25, + "character": 4 + }, + "end": { + "line": 25, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo2.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo2.baseline new file mode 100644 index 0000000000..63dfbe3024 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypeTagQuickInfo2.baseline @@ -0,0 +1,436 @@ +// === QuickInfo === +=== /jsDocTypeTag2.js === +// /** @type {string} */ +// var s; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var s: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {number} */ +// var n; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var n: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {boolean} */ +// var b; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {void} */ +// var v; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var v: void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {undefined} */ +// var u; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var u: undefined +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {null} */ +// var nl; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var nl: null +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {array} */ +// var a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: array +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {promise} */ +// var p; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var p: promise +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {?number} */ +// var nullable; +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var nullable: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {function} */ +// var func; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var func: function +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {function (number): number} */ +// var func1; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var func1: function +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {string | number} */ +// var sOrn; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var sOrn: string | number +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar s: string\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 55, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar n: number\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 4 + }, + "end": { + "line": 3, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 85, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: boolean\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 112, + "LSPosition": { + "line": 7, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar v: void\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 4 + }, + "end": { + "line": 7, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 144, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar u: undefined\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 4 + }, + "end": { + "line": 9, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 171, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar nl: null\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 4 + }, + "end": { + "line": 11, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 200, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: array\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 4 + }, + "end": { + "line": 13, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 230, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar p: promise\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 4 + }, + "end": { + "line": 15, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 260, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar nullable: number\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 4 + }, + "end": { + "line": 17, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 298, + "LSPosition": { + "line": 19, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar func: function\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 4 + }, + "end": { + "line": 19, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 349, + "LSPosition": { + "line": 21, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar func1: function\n```\n" + }, + "range": { + "start": { + "line": 21, + "character": 4 + }, + "end": { + "line": 21, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 391, + "LSPosition": { + "line": 23, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar sOrn: string | number\n```\n" + }, + "range": { + "start": { + "line": 23, + "character": 4 + }, + "end": { + "line": 23, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsDocTypedefQuickInfo1.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypedefQuickInfo1.baseline new file mode 100644 index 0000000000..8b042665a2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsDocTypedefQuickInfo1.baseline @@ -0,0 +1,98 @@ +// === QuickInfo === +=== /jsDocTypedef1.js === +// /** +// * @typedef {Object} Opts +// * @property {string} x +// * @property {string=} y +// * @property {string} [z] +// * @property {string} [w="hi"] +// * +// * @param {Opts} opts +// */ +// function foo(opts) { +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) opts: Opts +// | ``` +// | +// | ---------------------------------------------------------------------- +// opts.x; +// } +// foo({x: 'abc'}); +// /** +// * @typedef {object} Opts1 +// * @property {string} x +// * @property {string=} y +// * @property {string} [z] +// * @property {string} [w="hi"] +// * +// * @param {Opts1} opts +// */ +// function foo1(opts1) { +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) opts1: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// opts1.x; +// } +// foo1({x: 'abc'}); +[ + { + "marker": { + "Position": 179, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) opts: Opts\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 13 + }, + "end": { + "line": 9, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 400, + "LSPosition": { + "line": 22, + "character": 14 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) opts1: any\n```\n" + }, + "range": { + "start": { + "line": 22, + "character": 14 + }, + "end": { + "line": 22, + "character": 19 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink1.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink1.baseline new file mode 100644 index 0000000000..937f3ce849 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink1.baseline @@ -0,0 +1,58 @@ +// === QuickInfo === +=== /jsdocLink1.ts === +// class C { +// } +// /** +// * {@link C} +// * @wat Makes a {@link C}. A default one. +// * {@link C()} +// * {@link C|postfix text} +// * {@link unformatted postfix text} +// * @see {@link C} its great +// */ +// function CC() { +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function CC(): void +// | ``` +// | [C](file:///jsdocLink1.ts#1,7-1,8) +// | +// | *@wat* — Makes a [C](file:///jsdocLink1.ts#1,7-1,8). A default one. +// | [C()](file:///jsdocLink1.ts#1,7-1,8) +// | [postfix text](file:///jsdocLink1.ts#1,7-1,8) +// | unformatted postfix text +// | +// | *@see* — [C](file:///jsdocLink1.ts#1,7-1,8) its great +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 189, + "LSPosition": { + "line": 10, + "character": 9 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction CC(): void\n```\n[C](file:///jsdocLink1.ts#1,7-1,8)\n\n*@wat* — Makes a [C](file:///jsdocLink1.ts#1,7-1,8). A default one.\n[C()](file:///jsdocLink1.ts#1,7-1,8)\n[postfix text](file:///jsdocLink1.ts#1,7-1,8)\nunformatted postfix text\n\n*@see* — [C](file:///jsdocLink1.ts#1,7-1,8) its great\n" + }, + "range": { + "start": { + "line": 10, + "character": 9 + }, + "end": { + "line": 10, + "character": 11 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink4.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink4.baseline new file mode 100644 index 0000000000..51098f908d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink4.baseline @@ -0,0 +1,122 @@ +// === QuickInfo === +=== /jsdocLink4.ts === +// declare class I { +// /** {@link I} */ +// bar(): void +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.bar(): void +// | ``` +// | [I](file:///jsdocLink4.ts#1,15-1,16) +// | ---------------------------------------------------------------------- +// } +// /** {@link I} */ +// var n = 1 +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var n: number +// | ``` +// | [I](file:///jsdocLink4.ts#1,15-1,16) +// | ---------------------------------------------------------------------- +// /** +// * A real, very serious {@link I to an interface}. Right there. +// * @param x one {@link Pos here too} +// */ +// function f(x) { +// } +// f() +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(x: any): void +// | ``` +// | A real, very serious [to an interface](file:///jsdocLink4.ts#1,15-1,16). Right there. +// | +// | *@param* `x` — one [here too](file:///jsdocLink4.ts#14,6-14,9) +// | ---------------------------------------------------------------------- +// type Pos = [number, number] +[ + { + "marker": { + "Position": 42, + "LSPosition": { + "line": 2, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.bar(): void\n```\n[I](file:///jsdocLink4.ts#1,15-1,16)" + }, + "range": { + "start": { + "line": 2, + "character": 2 + }, + "end": { + "line": 2, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 5, + "character": 5 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar n: number\n```\n[I](file:///jsdocLink4.ts#1,15-1,16)" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 208, + "LSPosition": { + "line": 12, + "character": 1 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(x: any): void\n```\nA real, very serious [to an interface](file:///jsdocLink4.ts#1,15-1,16). Right there.\n\n*@param* `x` — one [here too](file:///jsdocLink4.ts#14,6-14,9)" + }, + "range": { + "start": { + "line": 12, + "character": 0 + }, + "end": { + "line": 12, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocLink5.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink5.baseline new file mode 100644 index 0000000000..3ce31de673 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsdocLink5.baseline @@ -0,0 +1,47 @@ +// === QuickInfo === +=== /jsdocLink5.ts === +// function g() { } +// /** +// * {@link g()} {@link g() } {@link g ()} {@link g () 0} {@link g()1} {@link g() 2} +// * {@link u()} {@link u() } {@link u ()} {@link u () 0} {@link u()1} {@link u() 2} +// */ +// function f(x) { +// } +// f() +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(x: any): void +// | ``` +// | [g()](file:///jsdocLink5.ts#1,10-1,11) [g()](file:///jsdocLink5.ts#1,10-1,11) [g()](file:///jsdocLink5.ts#1,10-1,11) [0](file:///jsdocLink5.ts#1,10-1,11) [1](file:///jsdocLink5.ts#1,10-1,11) [2](file:///jsdocLink5.ts#1,10-1,11) +// | u () u () u () u () 0 u ()1 u () 2 +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 210, + "LSPosition": { + "line": 7, + "character": 1 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(x: any): void\n```\n[g()](file:///jsdocLink5.ts#1,10-1,11) [g()](file:///jsdocLink5.ts#1,10-1,11) [g()](file:///jsdocLink5.ts#1,10-1,11) [0](file:///jsdocLink5.ts#1,10-1,11) [1](file:///jsdocLink5.ts#1,10-1,11) [2](file:///jsdocLink5.ts#1,10-1,11)\nu () u () u () u () 0 u ()1 u () 2" + }, + "range": { + "start": { + "line": 7, + "character": 0 + }, + "end": { + "line": 7, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers1.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers1.baseline new file mode 100644 index 0000000000..2d56b118e9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers1.baseline @@ -0,0 +1,51 @@ +// === QuickInfo === +=== /a.js === +// /** @template T */ +// class A { +// /** Method documentation. */ +// method() {} +// } +// +// /** @extends {A} */ +// class B extends A { +// method() {} +// } +// +// const b = new B(); +// b.method; +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.method(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 175, + "LSPosition": { + "line": 12, + "character": 8 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.method(): void\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 2 + }, + "end": { + "line": 12, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers2.baseline b/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers2.baseline new file mode 100644 index 0000000000..ace63d1caa --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/jsdocOnInheritedMembers2.baseline @@ -0,0 +1,51 @@ +// === QuickInfo === +=== /a.js === +// /** @template T */ +// class A { +// /** Method documentation. */ +// method() {} +// } +// +// /** @extends {A} */ +// const B = class extends A { +// method() {} +// } +// +// const b = new B(); +// b.method; +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.method(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 183, + "LSPosition": { + "line": 12, + "character": 8 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.method(): void\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 2 + }, + "end": { + "line": 12, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline new file mode 100644 index 0000000000..2c560a24b2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline @@ -0,0 +1,104 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassDefaultNamed.ts === +// export default class C { +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class C +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*5*/. +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 0, + "LSPosition": { + "line": 0, + "character": 0 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 7, + "LSPosition": { + "line": 0, + "character": 7 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 15, + "LSPosition": { + "line": 0, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 0, + "character": 21 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass C\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 21 + }, + "end": { + "line": 0, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 23, + "LSPosition": { + "line": 0, + "character": 23 + }, + "Name": "5", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsConst.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsConst.baseline new file mode 100644 index 0000000000..4b083289a8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsConst.baseline @@ -0,0 +1,569 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsConst.ts === +// const a = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const a: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo() { +// const b = a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const b: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const a: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// if (b) { +// const b1 = 10; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const b1: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// module m { +// const c = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const c: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// export const d = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const d: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// if (c) { +// const e = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const e: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// const f: () => number = () => 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// const g = f; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const g: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// f(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// const h: { (a: string): number; (a: number): string; } = a => a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// const i = h; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const i: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst a: 10\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 6 + }, + "end": { + "line": 0, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 2, + "character": 10 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst b: 10\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 10 + }, + "end": { + "line": 2, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 45, + "LSPosition": { + "line": 2, + "character": 14 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst a: 10\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 14 + }, + "end": { + "line": 2, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 4, + "character": 14 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst b1: 10\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 14 + }, + "end": { + "line": 4, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 113, + "LSPosition": { + "line": 8, + "character": 10 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst c: 10\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 10 + }, + "end": { + "line": 8, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 9, + "character": 17 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst d: 10\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 17 + }, + "end": { + "line": 9, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 173, + "LSPosition": { + "line": 11, + "character": 14 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst e: 10\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 14 + }, + "end": { + "line": 11, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 195, + "LSPosition": { + "line": 14, + "character": 6 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst f: () => number\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 6 + }, + "end": { + "line": 14, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 229, + "LSPosition": { + "line": 15, + "character": 6 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst g: () => number\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 6 + }, + "end": { + "line": 15, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 233, + "LSPosition": { + "line": 15, + "character": 10 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst f: () => number\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 10 + }, + "end": { + "line": 15, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 236, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst f: () => number\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 0 + }, + "end": { + "line": 16, + "character": 1 + } + } + } + }, + { + "marker": { + "Position": 247, + "LSPosition": { + "line": 17, + "character": 6 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 6 + }, + "end": { + "line": 17, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 312, + "LSPosition": { + "line": 18, + "character": 6 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst i: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 18, + "character": 6 + }, + "end": { + "line": 18, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 316, + "LSPosition": { + "line": 18, + "character": 10 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 18, + "character": 10 + }, + "end": { + "line": 18, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 319, + "LSPosition": { + "line": 19, + "character": 0 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 0 + }, + "end": { + "line": 19, + "character": 1 + } + } + } + }, + { + "marker": { + "Position": 326, + "LSPosition": { + "line": 20, + "character": 0 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 20, + "character": 0 + }, + "end": { + "line": 20, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum1.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum1.baseline new file mode 100644 index 0000000000..b52bd6268b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum1.baseline @@ -0,0 +1,1042 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsEnum1.ts === +// enum E { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// e1, +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// e2 = 10, +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// e3 +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance: E; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e1; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e2; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e3; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// const enum constE { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// e1, +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// e2 = 10, +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// e3 +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance1: constE; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e1; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e2; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e3; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 5, + "LSPosition": { + "line": 0, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 5 + }, + "end": { + "line": 0, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 13, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 4 + }, + "end": { + "line": 2, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 34, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 4 + }, + "end": { + "line": 3, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 43, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 54, + "LSPosition": { + "line": 5, + "character": 15 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 15 + }, + "end": { + "line": 5, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 57, + "LSPosition": { + "line": 6, + "character": 0 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 0 + }, + "end": { + "line": 6, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 69, + "LSPosition": { + "line": 6, + "character": 12 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 12 + }, + "end": { + "line": 6, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 71, + "LSPosition": { + "line": 6, + "character": 14 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 14 + }, + "end": { + "line": 6, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 0 + }, + "end": { + "line": 7, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 87, + "LSPosition": { + "line": 7, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 12 + }, + "end": { + "line": 7, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 89, + "LSPosition": { + "line": 7, + "character": 14 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 14 + }, + "end": { + "line": 7, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 93, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 0 + }, + "end": { + "line": 8, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 8, + "character": 12 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 12 + }, + "end": { + "line": 8, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 107, + "LSPosition": { + "line": 8, + "character": 14 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 14 + }, + "end": { + "line": 8, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 122, + "LSPosition": { + "line": 9, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 11 + }, + "end": { + "line": 9, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 135, + "LSPosition": { + "line": 10, + "character": 4 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 4 + }, + "end": { + "line": 10, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 143, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 4 + }, + "end": { + "line": 11, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 156, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 4 + }, + "end": { + "line": 12, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 165, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 4 + }, + "end": { + "line": 14, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 177, + "LSPosition": { + "line": 14, + "character": 16 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 16 + }, + "end": { + "line": 14, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 185, + "LSPosition": { + "line": 15, + "character": 0 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 0 + }, + "end": { + "line": 15, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 198, + "LSPosition": { + "line": 15, + "character": 13 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 13 + }, + "end": { + "line": 15, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 205, + "LSPosition": { + "line": 15, + "character": 20 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 20 + }, + "end": { + "line": 15, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 209, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 0 + }, + "end": { + "line": 16, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 222, + "LSPosition": { + "line": 16, + "character": 13 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 13 + }, + "end": { + "line": 16, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 229, + "LSPosition": { + "line": 16, + "character": 20 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 20 + }, + "end": { + "line": 16, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 233, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 0 + }, + "end": { + "line": 17, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 246, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 13 + }, + "end": { + "line": 17, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 253, + "LSPosition": { + "line": 17, + "character": 20 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 20 + }, + "end": { + "line": 17, + "character": 22 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum2.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum2.baseline new file mode 100644 index 0000000000..5568fe4340 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum2.baseline @@ -0,0 +1,1042 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsEnum2.ts === +// enum E { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e1", +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// 'e2' = 10, +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e3" +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance: E; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e1; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e2; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e3; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// const enum constE { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e1", +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// 'e2' = 10, +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e3" +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance1: constE; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e1; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e2; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e3; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 5, + "LSPosition": { + "line": 0, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 5 + }, + "end": { + "line": 0, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 13, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 5 + }, + "end": { + "line": 1, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 23, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 5 + }, + "end": { + "line": 2, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 38, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 5 + }, + "end": { + "line": 3, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 49, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 60, + "LSPosition": { + "line": 5, + "character": 15 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 15 + }, + "end": { + "line": 5, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 6, + "character": 0 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 0 + }, + "end": { + "line": 6, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 6, + "character": 12 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 12 + }, + "end": { + "line": 6, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 6, + "character": 14 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 14 + }, + "end": { + "line": 6, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 81, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 0 + }, + "end": { + "line": 7, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 93, + "LSPosition": { + "line": 7, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 12 + }, + "end": { + "line": 7, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 95, + "LSPosition": { + "line": 7, + "character": 14 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 14 + }, + "end": { + "line": 7, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 99, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 0 + }, + "end": { + "line": 8, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 111, + "LSPosition": { + "line": 8, + "character": 12 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 12 + }, + "end": { + "line": 8, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 113, + "LSPosition": { + "line": 8, + "character": 14 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 14 + }, + "end": { + "line": 8, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 128, + "LSPosition": { + "line": 9, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 11 + }, + "end": { + "line": 9, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 141, + "LSPosition": { + "line": 10, + "character": 4 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 5 + }, + "end": { + "line": 10, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 151, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 5 + }, + "end": { + "line": 11, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 166, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 5 + }, + "end": { + "line": 12, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 177, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 4 + }, + "end": { + "line": 14, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 189, + "LSPosition": { + "line": 14, + "character": 16 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 16 + }, + "end": { + "line": 14, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 197, + "LSPosition": { + "line": 15, + "character": 0 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 0 + }, + "end": { + "line": 15, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 210, + "LSPosition": { + "line": 15, + "character": 13 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 13 + }, + "end": { + "line": 15, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 217, + "LSPosition": { + "line": 15, + "character": 20 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 20 + }, + "end": { + "line": 15, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 221, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 0 + }, + "end": { + "line": 16, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 234, + "LSPosition": { + "line": 16, + "character": 13 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 13 + }, + "end": { + "line": 16, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 241, + "LSPosition": { + "line": 16, + "character": 20 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 20 + }, + "end": { + "line": 16, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 245, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 0 + }, + "end": { + "line": 17, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 258, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 13 + }, + "end": { + "line": 17, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 265, + "LSPosition": { + "line": 17, + "character": 20 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 20 + }, + "end": { + "line": 17, + "character": 22 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum3.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum3.baseline new file mode 100644 index 0000000000..75e16bd456 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum3.baseline @@ -0,0 +1,1042 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsEnum3.ts === +// enum E { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e1", +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// 'e2' = 10, +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e3" +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance: E; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E["e1"]; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E["e2"]; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E['e3']; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// const enum constE { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e1", +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// 'e2' = 10, +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e3" +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance1: constE; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE["e1"]; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE["e2"]; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE['e3']; +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 5, + "LSPosition": { + "line": 0, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 5 + }, + "end": { + "line": 0, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 13, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 5 + }, + "end": { + "line": 1, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 23, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 5 + }, + "end": { + "line": 2, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 38, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 5 + }, + "end": { + "line": 3, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 49, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 60, + "LSPosition": { + "line": 5, + "character": 15 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 15 + }, + "end": { + "line": 5, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 6, + "character": 0 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 0 + }, + "end": { + "line": 6, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 6, + "character": 12 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 12 + }, + "end": { + "line": 6, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 6, + "character": 14 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 15 + }, + "end": { + "line": 6, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 84, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 0 + }, + "end": { + "line": 7, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 96, + "LSPosition": { + "line": 7, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 12 + }, + "end": { + "line": 7, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 98, + "LSPosition": { + "line": 7, + "character": 14 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 15 + }, + "end": { + "line": 7, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 0 + }, + "end": { + "line": 8, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 117, + "LSPosition": { + "line": 8, + "character": 12 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 12 + }, + "end": { + "line": 8, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 119, + "LSPosition": { + "line": 8, + "character": 14 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 15 + }, + "end": { + "line": 8, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 137, + "LSPosition": { + "line": 9, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 11 + }, + "end": { + "line": 9, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 150, + "LSPosition": { + "line": 10, + "character": 4 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 5 + }, + "end": { + "line": 10, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 160, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 5 + }, + "end": { + "line": 11, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 175, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 5 + }, + "end": { + "line": 12, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 186, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 4 + }, + "end": { + "line": 14, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 198, + "LSPosition": { + "line": 14, + "character": 16 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 16 + }, + "end": { + "line": 14, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 206, + "LSPosition": { + "line": 15, + "character": 0 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 0 + }, + "end": { + "line": 15, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 219, + "LSPosition": { + "line": 15, + "character": 13 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 13 + }, + "end": { + "line": 15, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 226, + "LSPosition": { + "line": 15, + "character": 20 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 21 + }, + "end": { + "line": 15, + "character": 23 + } + } + } + }, + { + "marker": { + "Position": 233, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 0 + }, + "end": { + "line": 16, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 246, + "LSPosition": { + "line": 16, + "character": 13 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 13 + }, + "end": { + "line": 16, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 253, + "LSPosition": { + "line": 16, + "character": 20 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 21 + }, + "end": { + "line": 16, + "character": 23 + } + } + } + }, + { + "marker": { + "Position": 260, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 0 + }, + "end": { + "line": 17, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 273, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 13 + }, + "end": { + "line": 17, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 280, + "LSPosition": { + "line": 17, + "character": 20 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 21 + }, + "end": { + "line": 17, + "character": 23 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum4.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum4.baseline new file mode 100644 index 0000000000..c9898f8af5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsEnum4.baseline @@ -0,0 +1,78 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsEnum4.ts === +// const enum Foo { +// "\t" = 9, +// "\u007f" = 127, +// } +// Foo["\t"] +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) typeof Foo["\t"] = 9 +// | ``` +// | +// | ---------------------------------------------------------------------- +// Foo["\u007f"] +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) typeof Foo[""] = 127 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 51, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) typeof Foo[\"\\t\"] = 9\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 5 + }, + "end": { + "line": 4, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 61, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) typeof Foo[\"\"] = 127\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 5 + }, + "end": { + "line": 5, + "character": 11 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline new file mode 100644 index 0000000000..6876a51533 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline @@ -0,0 +1,104 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsExternalModuleAlias_file1.ts === +// import a1 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*mod1*/. +// | ---------------------------------------------------------------------- +// new a1.m1.c(); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// export import a2 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*mod2*/. +// | ---------------------------------------------------------------------- +// new a2.m1.c(); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*4*/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 7, + "LSPosition": { + "line": 0, + "character": 7 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 20, + "LSPosition": { + "line": 0, + "character": 20 + }, + "Name": "mod1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 102, + "LSPosition": { + "line": 2, + "character": 14 + }, + "Name": "3", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 115, + "LSPosition": { + "line": 2, + "character": 27 + }, + "Name": "mod2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 172, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModules.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModules.baseline new file mode 100644 index 0000000000..9476c1e290 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsExternalModules.baseline @@ -0,0 +1,576 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsExternalModules.ts === +// export namespace m { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// var namespaceElemWithoutExport = 10; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithoutExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var namespaceElemWithExport = 10; +// ^^^^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// export var a = m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: typeof m +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var b: typeof m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: typeof m +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// export namespace m1.m2 { +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*9*/. +// | ---------------------------------------------------------------------- +// var namespaceElemWithoutExport = 10; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithoutExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var namespaceElemWithExport = 10; +// ^^^^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// export var x = m1.m2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: typeof m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var y: typeof m1.m2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var y: typeof m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 0, + "character": 17 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 17 + }, + "end": { + "line": 0, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 8 + }, + "end": { + "line": 1, + "character": 34 + } + } + } + }, + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 2, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 15 + }, + "end": { + "line": 2, + "character": 38 + } + } + } + }, + { + "marker": { + "Position": 120, + "LSPosition": { + "line": 4, + "character": 11 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: typeof m\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 11 + }, + "end": { + "line": 4, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 124, + "LSPosition": { + "line": 4, + "character": 15 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 15 + }, + "end": { + "line": 4, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 5, + "character": 11 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: typeof m\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 11 + }, + "end": { + "line": 5, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 148, + "LSPosition": { + "line": 5, + "character": 21 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 21 + }, + "end": { + "line": 5, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 168, + "LSPosition": { + "line": 6, + "character": 17 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 17 + }, + "end": { + "line": 6, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 171, + "LSPosition": { + "line": 6, + "character": 20 + }, + "Name": "9", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 184, + "LSPosition": { + "line": 7, + "character": 8 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 8 + }, + "end": { + "line": 7, + "character": 34 + } + } + } + }, + { + "marker": { + "Position": 232, + "LSPosition": { + "line": 8, + "character": 15 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 15 + }, + "end": { + "line": 8, + "character": 38 + } + } + } + }, + { + "marker": { + "Position": 275, + "LSPosition": { + "line": 10, + "character": 11 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: typeof m1.m2\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 11 + }, + "end": { + "line": 10, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 279, + "LSPosition": { + "line": 10, + "character": 15 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 15 + }, + "end": { + "line": 10, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 282, + "LSPosition": { + "line": 10, + "character": 18 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1.m2\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 18 + }, + "end": { + "line": 10, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 297, + "LSPosition": { + "line": 11, + "character": 11 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar y: typeof m1.m2\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 11 + }, + "end": { + "line": 11, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 307, + "LSPosition": { + "line": 11, + "character": 21 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 21 + }, + "end": { + "line": 11, + "character": 23 + } + } + } + }, + { + "marker": { + "Position": 310, + "LSPosition": { + "line": 11, + "character": 24 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1.m2\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 24 + }, + "end": { + "line": 11, + "character": 26 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunction.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunction.baseline new file mode 100644 index 0000000000..973cdbfad4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunction.baseline @@ -0,0 +1,510 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsFunction.ts === +// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// function foowithoverload(a: string): string; +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowithoverload(a: number): number; +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowithoverload(a: any): any { +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// } +// function foowith3overload(a: string): string; +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: number): number; +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: boolean): boolean; +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: any): any { +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// } +// foo("hello"); +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowithoverload("hello"); +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowithoverload(10); +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload("hello"); +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload(10); +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload(true); +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 9 + }, + "end": { + "line": 0, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 121, + "LSPosition": { + "line": 2, + "character": 9 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 9 + }, + "end": { + "line": 2, + "character": 24 + } + } + } + }, + { + "marker": { + "Position": 166, + "LSPosition": { + "line": 3, + "character": 9 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 9 + }, + "end": { + "line": 3, + "character": 24 + } + } + } + }, + { + "marker": { + "Position": 211, + "LSPosition": { + "line": 4, + "character": 9 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 9 + }, + "end": { + "line": 4, + "character": 24 + } + } + } + }, + { + "marker": { + "Position": 267, + "LSPosition": { + "line": 7, + "character": 9 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 9 + }, + "end": { + "line": 7, + "character": 25 + } + } + } + }, + { + "marker": { + "Position": 313, + "LSPosition": { + "line": 8, + "character": 9 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 9 + }, + "end": { + "line": 8, + "character": 25 + } + } + } + }, + { + "marker": { + "Position": 359, + "LSPosition": { + "line": 9, + "character": 9 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 9 + }, + "end": { + "line": 9, + "character": 25 + } + } + } + }, + { + "marker": { + "Position": 407, + "LSPosition": { + "line": 10, + "character": 9 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 9 + }, + "end": { + "line": 10, + "character": 25 + } + } + } + }, + { + "marker": { + "Position": 455, + "LSPosition": { + "line": 13, + "character": 0 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 0 + }, + "end": { + "line": 13, + "character": 3 + } + } + } + }, + { + "marker": { + "Position": 469, + "LSPosition": { + "line": 14, + "character": 0 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 0 + }, + "end": { + "line": 14, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 495, + "LSPosition": { + "line": 15, + "character": 0 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 0 + }, + "end": { + "line": 15, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 516, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 0 + }, + "end": { + "line": 16, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 543, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 0 + }, + "end": { + "line": 17, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 565, + "LSPosition": { + "line": 18, + "character": 0 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 18, + "character": 0 + }, + "end": { + "line": 18, + "character": 16 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionExpression.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionExpression.baseline new file mode 100644 index 0000000000..045d231bb1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionExpression.baseline @@ -0,0 +1,216 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsFunctionExpression.ts === +// var x = function foo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: () => void +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo(); +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// }; +// var y = function () { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var y: () => void +// | ``` +// | +// | ---------------------------------------------------------------------- +// }; +// (function foo1() { +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo1(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo1(); +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo1(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// })(); +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: () => void\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 4 + }, + "end": { + "line": 0, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 0, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 17 + }, + "end": { + "line": 0, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 43, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar y: () => void\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 4 + }, + "end": { + "line": 3, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 74, + "LSPosition": { + "line": 5, + "character": 10 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo1(): void\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 10 + }, + "end": { + "line": 5, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 87, + "LSPosition": { + "line": 6, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo1(): void\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 4 + }, + "end": { + "line": 6, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline new file mode 100644 index 0000000000..4fdac11c6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline @@ -0,0 +1,72 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsFunctionIncomplete.ts === +// function (param: string) { +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// }\ +// function { +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*4*/. +// | ---------------------------------------------------------------------- +// }\ +[ + { + "marker": { + "Position": 0, + "LSPosition": { + "line": 0, + "character": 0 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 30, + "LSPosition": { + "line": 2, + "character": 0 + }, + "Name": "3", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 39, + "LSPosition": { + "line": 2, + "character": 9 + }, + "Name": "4", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterface.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterface.baseline new file mode 100644 index 0000000000..5ba9dea299 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterface.baseline @@ -0,0 +1,109 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsInterface.ts === +// interface i { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface i +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var iInstance: i; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: i +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface i +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 10, + "LSPosition": { + "line": 0, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface i\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 10 + }, + "end": { + "line": 0, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 20, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: i\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 4 + }, + "end": { + "line": 2, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 31, + "LSPosition": { + "line": 2, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface i\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 15 + }, + "end": { + "line": 2, + "character": 16 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterfaceMembers.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterfaceMembers.baseline new file mode 100644 index 0000000000..0008b74501 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInterfaceMembers.baseline @@ -0,0 +1,320 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsInterfaceMembers.ts === +// interface I { +// property: string; +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) I.property: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// method(): string; +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.method(): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// (): string; +// new (): I; +// } +// var iInstance: I; +// iInstance.property = iInstance.method(); +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) I.property: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.method(): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// iInstance(); +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// var anotherInstance = new iInstance(); +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var anotherInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 18, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) I.property: string\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 40, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.method(): string\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 4 + }, + "end": { + "line": 2, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 109, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: I\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 0 + }, + "end": { + "line": 7, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 119, + "LSPosition": { + "line": 7, + "character": 10 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) I.property: string\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 10 + }, + "end": { + "line": 7, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 130, + "LSPosition": { + "line": 7, + "character": 21 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: I\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 21 + }, + "end": { + "line": 7, + "character": 30 + } + } + } + }, + { + "marker": { + "Position": 140, + "LSPosition": { + "line": 7, + "character": 31 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.method(): string\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 31 + }, + "end": { + "line": 7, + "character": 37 + } + } + } + }, + { + "marker": { + "Position": 150, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: I\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 0 + }, + "end": { + "line": 8, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 167, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar anotherInstance: I\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 4 + }, + "end": { + "line": 9, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 189, + "LSPosition": { + "line": 9, + "character": 26 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: I\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 26 + }, + "end": { + "line": 9, + "character": 35 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline new file mode 100644 index 0000000000..10fe8f29ea --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline @@ -0,0 +1,290 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsInternalModuleAlias.ts === +// module m.m1 { +// export class c { +// } +// } +// module m2 { +// import a1 = m; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// new a1.m1.c(); +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// import a2 = m.m1; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m.m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// new a2.c(); +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m.m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// export import a3 = m; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// new a3.m1.c(); +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// export import a4 = m.m1; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m.m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// new a4.c(); +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m.m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 66, + "LSPosition": { + "line": 5, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 11 + }, + "end": { + "line": 5, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 82, + "LSPosition": { + "line": 6, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 8 + }, + "end": { + "line": 6, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 104, + "LSPosition": { + "line": 7, + "character": 11 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m.m1\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 11 + }, + "end": { + "line": 7, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 123, + "LSPosition": { + "line": 8, + "character": 8 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m.m1\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 8 + }, + "end": { + "line": 8, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 149, + "LSPosition": { + "line": 9, + "character": 18 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 18 + }, + "end": { + "line": 9, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 165, + "LSPosition": { + "line": 10, + "character": 8 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 8 + }, + "end": { + "line": 10, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 194, + "LSPosition": { + "line": 11, + "character": 18 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m.m1\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 18 + }, + "end": { + "line": 11, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 213, + "LSPosition": { + "line": 12, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m.m1\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 8 + }, + "end": { + "line": 12, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLet.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLet.baseline new file mode 100644 index 0000000000..720e49d93b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLet.baseline @@ -0,0 +1,569 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsLet.ts === +// let a = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo() { +// let b = a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let b: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// if (b) { +// let b1 = 10; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let b1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// module m { +// let c = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let c: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export let d = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let d: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// if (c) { +// let e = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let e: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// let f: () => number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// let g = f; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let g: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// f(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// let h: { (a: string): number; (a: number): string; }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// let i = h; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let i: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet a: number\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 4 + }, + "end": { + "line": 0, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 37, + "LSPosition": { + "line": 2, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet b: number\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 8 + }, + "end": { + "line": 2, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet a: number\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 12 + }, + "end": { + "line": 2, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 69, + "LSPosition": { + "line": 4, + "character": 12 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet b1: number\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 12 + }, + "end": { + "line": 4, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 8, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet c: number\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 8 + }, + "end": { + "line": 8, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 128, + "LSPosition": { + "line": 9, + "character": 15 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet d: number\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 15 + }, + "end": { + "line": 9, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 161, + "LSPosition": { + "line": 11, + "character": 12 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet e: number\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 12 + }, + "end": { + "line": 11, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 181, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet f: () => number\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 4 + }, + "end": { + "line": 14, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 202, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet g: () => number\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 4 + }, + "end": { + "line": 15, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 206, + "LSPosition": { + "line": 15, + "character": 8 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet f: () => number\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 8 + }, + "end": { + "line": 15, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 209, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet f: () => number\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 0 + }, + "end": { + "line": 16, + "character": 1 + } + } + } + }, + { + "marker": { + "Position": 218, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 4 + }, + "end": { + "line": 17, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 272, + "LSPosition": { + "line": 18, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet i: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 18, + "character": 4 + }, + "end": { + "line": 18, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 276, + "LSPosition": { + "line": 18, + "character": 8 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 18, + "character": 8 + }, + "end": { + "line": 18, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 279, + "LSPosition": { + "line": 19, + "character": 0 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 0 + }, + "end": { + "line": 19, + "character": 1 + } + } + } + }, + { + "marker": { + "Position": 286, + "LSPosition": { + "line": 20, + "character": 0 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 20, + "character": 0 + }, + "end": { + "line": 20, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline new file mode 100644 index 0000000000..8ff248c197 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline @@ -0,0 +1,357 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsLiteralLikeNames01.ts === +// class C { +// public 1() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C[1](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// private Infinity() { } +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.Infinity(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected NaN() { } +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.NaN(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// static "stringLiteralName"() { } +// ^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C["stringLiteralName"](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// method() { +// this[1](); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C[1](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this["1"](); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C[1](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.Infinity(); +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.Infinity(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this["Infinity"](); +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.Infinity(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.NaN(); +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.NaN(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// C.stringLiteralName(); +// ^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C["stringLiteralName"](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[1](): void\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 11 + }, + "end": { + "line": 1, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.Infinity(): void\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 12 + }, + "end": { + "line": 2, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 70, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.NaN(): void\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 14 + }, + "end": { + "line": 3, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 91, + "LSPosition": { + "line": 4, + "character": 11 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[\"stringLiteralName\"](): void\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 12 + }, + "end": { + "line": 4, + "character": 29 + } + } + } + }, + { + "marker": { + "Position": 145, + "LSPosition": { + "line": 6, + "character": 13 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[1](): void\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 13 + }, + "end": { + "line": 6, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 164, + "LSPosition": { + "line": 7, + "character": 13 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[1](): void\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 14 + }, + "end": { + "line": 7, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 185, + "LSPosition": { + "line": 8, + "character": 13 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.Infinity(): void\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 13 + }, + "end": { + "line": 8, + "character": 21 + } + } + } + }, + { + "marker": { + "Position": 210, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.Infinity(): void\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 14 + }, + "end": { + "line": 9, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 238, + "LSPosition": { + "line": 10, + "character": 13 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.NaN(): void\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 13 + }, + "end": { + "line": 10, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 255, + "LSPosition": { + "line": 11, + "character": 10 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[\"stringLiteralName\"](): void\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 10 + }, + "end": { + "line": 11, + "character": 27 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLocalFunction.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLocalFunction.baseline new file mode 100644 index 0000000000..603b1d559b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsLocalFunction.baseline @@ -0,0 +1,581 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsLocalFunction.ts === +// function outerFoo() { +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function outerFoo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// function foowithoverload(a: string): string; +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowithoverload(a: number): number; +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowithoverload(a: any): any { +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// } +// function foowith3overload(a: string): string; +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: number): number; +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: boolean): boolean; +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: any): any { +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// } +// foo("hello"); +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowithoverload("hello"); +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowithoverload(10); +// ^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload("hello"); +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload(10); +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload(true); +// ^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// outerFoo(); +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function outerFoo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction outerFoo(): void\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 9 + }, + "end": { + "line": 0, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 35, + "LSPosition": { + "line": 1, + "character": 13 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 13 + }, + "end": { + "line": 1, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 155, + "LSPosition": { + "line": 3, + "character": 13 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 13 + }, + "end": { + "line": 3, + "character": 28 + } + } + } + }, + { + "marker": { + "Position": 204, + "LSPosition": { + "line": 4, + "character": 13 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 13 + }, + "end": { + "line": 4, + "character": 28 + } + } + } + }, + { + "marker": { + "Position": 253, + "LSPosition": { + "line": 5, + "character": 13 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 13 + }, + "end": { + "line": 5, + "character": 28 + } + } + } + }, + { + "marker": { + "Position": 321, + "LSPosition": { + "line": 8, + "character": 13 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 13 + }, + "end": { + "line": 8, + "character": 29 + } + } + } + }, + { + "marker": { + "Position": 371, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 13 + }, + "end": { + "line": 9, + "character": 29 + } + } + } + }, + { + "marker": { + "Position": 421, + "LSPosition": { + "line": 10, + "character": 13 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 13 + }, + "end": { + "line": 10, + "character": 29 + } + } + } + }, + { + "marker": { + "Position": 473, + "LSPosition": { + "line": 11, + "character": 13 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 13 + }, + "end": { + "line": 11, + "character": 29 + } + } + } + }, + { + "marker": { + "Position": 533, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 4 + }, + "end": { + "line": 14, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 551, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 4 + }, + "end": { + "line": 15, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 581, + "LSPosition": { + "line": 16, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 4 + }, + "end": { + "line": 16, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 606, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 4 + }, + "end": { + "line": 17, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 637, + "LSPosition": { + "line": 18, + "character": 4 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: number): number\n```\n" + }, + "range": { + "start": { + "line": 18, + "character": 4 + }, + "end": { + "line": 18, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 663, + "LSPosition": { + "line": 19, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: boolean): boolean\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 4 + }, + "end": { + "line": 19, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 689, + "LSPosition": { + "line": 21, + "character": 0 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction outerFoo(): void\n```\n" + }, + "range": { + "start": { + "line": 21, + "character": 0 + }, + "end": { + "line": 21, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsModules.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsModules.baseline new file mode 100644 index 0000000000..98273875a2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsModules.baseline @@ -0,0 +1,576 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsModules.ts === +// namespace m { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// var namespaceElemWithoutExport = 10; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithoutExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var namespaceElemWithExport = 10; +// ^^^^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var a = m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: typeof m +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// var b: typeof m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: typeof m +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// namespace m1.m2 { +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*9*/. +// | ---------------------------------------------------------------------- +// var namespaceElemWithoutExport = 10; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithoutExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var namespaceElemWithExport = 10; +// ^^^^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var x = m1.m2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: typeof m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// var y: typeof m1.m2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var y: typeof m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 10, + "LSPosition": { + "line": 0, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 10 + }, + "end": { + "line": 0, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 22, + "LSPosition": { + "line": 1, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 8 + }, + "end": { + "line": 1, + "character": 34 + } + } + } + }, + { + "marker": { + "Position": 70, + "LSPosition": { + "line": 2, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 15 + }, + "end": { + "line": 2, + "character": 38 + } + } + } + }, + { + "marker": { + "Position": 106, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: typeof m\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 4 + }, + "end": { + "line": 4, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 110, + "LSPosition": { + "line": 4, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 8 + }, + "end": { + "line": 4, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 117, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: typeof m\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 127, + "LSPosition": { + "line": 5, + "character": 14 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 14 + }, + "end": { + "line": 5, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 140, + "LSPosition": { + "line": 6, + "character": 10 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 10 + }, + "end": { + "line": 6, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 143, + "LSPosition": { + "line": 6, + "character": 13 + }, + "Name": "9", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 156, + "LSPosition": { + "line": 7, + "character": 8 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 8 + }, + "end": { + "line": 7, + "character": 34 + } + } + } + }, + { + "marker": { + "Position": 204, + "LSPosition": { + "line": 8, + "character": 15 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 15 + }, + "end": { + "line": 8, + "character": 38 + } + } + } + }, + { + "marker": { + "Position": 240, + "LSPosition": { + "line": 10, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: typeof m1.m2\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 4 + }, + "end": { + "line": 10, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 244, + "LSPosition": { + "line": 10, + "character": 8 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 8 + }, + "end": { + "line": 10, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 247, + "LSPosition": { + "line": 10, + "character": 11 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1.m2\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 11 + }, + "end": { + "line": 10, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 255, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar y: typeof m1.m2\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 4 + }, + "end": { + "line": 11, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 265, + "LSPosition": { + "line": 11, + "character": 14 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 14 + }, + "end": { + "line": 11, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 268, + "LSPosition": { + "line": 11, + "character": 17 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1.m2\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 17 + }, + "end": { + "line": 11, + "character": 19 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsParameters.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsParameters.baseline new file mode 100644 index 0000000000..f8a607fce9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsParameters.baseline @@ -0,0 +1,319 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsParameters.ts === +// /** @return *crunch* */ +// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | +// | *@return* — *crunch* +// | ---------------------------------------------------------------------- +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) param: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) optionalParam: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) paramWithInitializer: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) restParam: string[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// param = "Hello"; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) param: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// optionalParam = "World"; +// ^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) optionalParam: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// paramWithInitializer = "Hello"; +// ^^^^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) paramWithInitializer: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// restParam[0] = "World"; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) restParam: string[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 33, + "LSPosition": { + "line": 1, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n\n\n*@return* — *crunch* " + }, + "range": { + "start": { + "line": 1, + "character": 9 + }, + "end": { + "line": 1, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 37, + "LSPosition": { + "line": 1, + "character": 13 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) param: string\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 13 + }, + "end": { + "line": 1, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 52, + "LSPosition": { + "line": 1, + "character": 28 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) optionalParam: string\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 28 + }, + "end": { + "line": 1, + "character": 41 + } + } + } + }, + { + "marker": { + "Position": 76, + "LSPosition": { + "line": 1, + "character": 52 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) paramWithInitializer: string\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 52 + }, + "end": { + "line": 1, + "character": 72 + } + } + } + }, + { + "marker": { + "Position": 111, + "LSPosition": { + "line": 1, + "character": 87 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) restParam: string[]\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 87 + }, + "end": { + "line": 1, + "character": 96 + } + } + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) param: string\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 4 + }, + "end": { + "line": 2, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 159, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) optionalParam: string\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 4 + }, + "end": { + "line": 3, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 188, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) paramWithInitializer: string\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 4 + }, + "end": { + "line": 4, + "character": 24 + } + } + } + }, + { + "marker": { + "Position": 224, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) restParam: string[]\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 13 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeAlias.baseline new file mode 100644 index 0000000000..de8d7ae536 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeAlias.baseline @@ -0,0 +1,212 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeAlias.ts === +// class c { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// type t1 = c; +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type t1 = c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cInstance: t1 = new c(); +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type t1 = c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 6 + }, + "end": { + "line": 0, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 2, + "character": 5 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype t1 = c\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 5 + }, + "end": { + "line": 2, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 22, + "LSPosition": { + "line": 2, + "character": 10 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 10 + }, + "end": { + "line": 2, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 4 + }, + "end": { + "line": 3, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 40, + "LSPosition": { + "line": 3, + "character": 15 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype t1 = c\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 15 + }, + "end": { + "line": 3, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 49, + "LSPosition": { + "line": 3, + "character": 24 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 24 + }, + "end": { + "line": 3, + "character": 25 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline new file mode 100644 index 0000000000..58d5c23ef5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline @@ -0,0 +1,1418 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInClass.ts === +// class c { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(a: T) { +// ^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c(a: T): c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// method(a: U, b: T) { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.method(a: U, b: T): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance = new c("Hello"); +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c(a: string): c +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cVal = c; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cVal: typeof c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// cInstance.method("hello", "cello"); +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.method<"hello">(a: "hello", b: string): "hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +// class c2> { +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(a: T) { +// ^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c2>(a: T): c2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// method>(a: U, b: T) { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c2.method>(a: U, b: T): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance1 = new c2(cInstance); +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance1: c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c2>(a: c): c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cVal2 = c2; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cVal2: typeof c2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// cInstance1.method(cInstance, cInstance); +// ^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance1: c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c2.method>(a: c, b: c): c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 6 + }, + "end": { + "line": 0, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 8, + "LSPosition": { + "line": 0, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 8 + }, + "end": { + "line": 0, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c(a: T): c\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 16 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: T\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 16 + }, + "end": { + "line": 1, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 32, + "LSPosition": { + "line": 1, + "character": 19 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 19 + }, + "end": { + "line": 1, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 47, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.method(a: U, b: T): U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 4 + }, + "end": { + "line": 3, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 54, + "LSPosition": { + "line": 3, + "character": 11 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 11 + }, + "end": { + "line": 3, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 57, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 14 + }, + "end": { + "line": 3, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 60, + "LSPosition": { + "line": 3, + "character": 17 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 17 + }, + "end": { + "line": 3, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 3, + "character": 20 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 20 + }, + "end": { + "line": 3, + "character": 21 + } + } + } + }, + { + "marker": { + "Position": 66, + "LSPosition": { + "line": 3, + "character": 23 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 23 + }, + "end": { + "line": 3, + "character": 24 + } + } + } + }, + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 4, + "character": 15 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 15 + }, + "end": { + "line": 4, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 101, + "LSPosition": { + "line": 7, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 4 + }, + "end": { + "line": 7, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 117, + "LSPosition": { + "line": 7, + "character": 20 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c(a: string): c\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 20 + }, + "end": { + "line": 7, + "character": 21 + } + } + } + }, + { + "marker": { + "Position": 133, + "LSPosition": { + "line": 8, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cVal: typeof c\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 4 + }, + "end": { + "line": 8, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 140, + "LSPosition": { + "line": 8, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 11 + }, + "end": { + "line": 8, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 143, + "LSPosition": { + "line": 9, + "character": 0 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 0 + }, + "end": { + "line": 9, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 153, + "LSPosition": { + "line": 9, + "character": 10 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.method<\"hello\">(a: \"hello\", b: string): \"hello\"\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 10 + }, + "end": { + "line": 9, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 185, + "LSPosition": { + "line": 10, + "character": 6 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c2>\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 6 + }, + "end": { + "line": 10, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 188, + "LSPosition": { + "line": 10, + "character": 9 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends c\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 9 + }, + "end": { + "line": 10, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 198, + "LSPosition": { + "line": 10, + "character": 19 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 19 + }, + "end": { + "line": 10, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 215, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c2>(a: T): c2\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 4 + }, + "end": { + "line": 11, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 227, + "LSPosition": { + "line": 11, + "character": 16 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: T\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 16 + }, + "end": { + "line": 11, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 230, + "LSPosition": { + "line": 11, + "character": 19 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends c\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 19 + }, + "end": { + "line": 11, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 245, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c2.method>(a: U, b: T): U\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 4 + }, + "end": { + "line": 13, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 252, + "LSPosition": { + "line": 13, + "character": 11 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends c\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 11 + }, + "end": { + "line": 13, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 262, + "LSPosition": { + "line": 13, + "character": 21 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 21 + }, + "end": { + "line": 13, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 273, + "LSPosition": { + "line": 13, + "character": 32 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 32 + }, + "end": { + "line": 13, + "character": 33 + } + } + } + }, + { + "marker": { + "Position": 276, + "LSPosition": { + "line": 13, + "character": 35 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends c\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 35 + }, + "end": { + "line": 13, + "character": 36 + } + } + } + }, + { + "marker": { + "Position": 279, + "LSPosition": { + "line": 13, + "character": 38 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 38 + }, + "end": { + "line": 13, + "character": 39 + } + } + } + }, + { + "marker": { + "Position": 282, + "LSPosition": { + "line": 13, + "character": 41 + }, + "Name": "31", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends c\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 41 + }, + "end": { + "line": 13, + "character": 42 + } + } + } + }, + { + "marker": { + "Position": 302, + "LSPosition": { + "line": 14, + "character": 15 + }, + "Name": "32", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 15 + }, + "end": { + "line": 14, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 317, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "33", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance1: c2>\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 4 + }, + "end": { + "line": 17, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 334, + "LSPosition": { + "line": 17, + "character": 21 + }, + "Name": "34", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c2>(a: c): c2>\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 21 + }, + "end": { + "line": 17, + "character": 23 + } + } + } + }, + { + "marker": { + "Position": 337, + "LSPosition": { + "line": 17, + "character": 24 + }, + "Name": "35", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 24 + }, + "end": { + "line": 17, + "character": 33 + } + } + } + }, + { + "marker": { + "Position": 353, + "LSPosition": { + "line": 18, + "character": 4 + }, + "Name": "36", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cVal2: typeof c2\n```\n" + }, + "range": { + "start": { + "line": 18, + "character": 4 + }, + "end": { + "line": 18, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 361, + "LSPosition": { + "line": 18, + "character": 12 + }, + "Name": "37", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c2>\n```\n" + }, + "range": { + "start": { + "line": 18, + "character": 12 + }, + "end": { + "line": 18, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 365, + "LSPosition": { + "line": 19, + "character": 0 + }, + "Name": "38", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance1: c2>\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 0 + }, + "end": { + "line": 19, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 376, + "LSPosition": { + "line": 19, + "character": 11 + }, + "Name": "39", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c2.method>(a: c, b: c): c\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 11 + }, + "end": { + "line": 19, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 383, + "LSPosition": { + "line": 19, + "character": 18 + }, + "Name": "40", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 18 + }, + "end": { + "line": 19, + "character": 27 + } + } + } + }, + { + "marker": { + "Position": 394, + "LSPosition": { + "line": 19, + "character": 29 + }, + "Name": "41", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 29 + }, + "end": { + "line": 19, + "character": 38 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline new file mode 100644 index 0000000000..4da604dc1a --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline @@ -0,0 +1,420 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInFunction.ts === +// function foo(a: U) { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(a: U): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// foo("Hello"); +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo<"Hello">(a: "Hello"): "Hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo2(a: U) { +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo2(a: U): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends string +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// foo2("hello"); +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo2<"hello">(a: "hello"): "hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(a: U): U\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 9 + }, + "end": { + "line": 0, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 13, + "LSPosition": { + "line": 0, + "character": 13 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 13 + }, + "end": { + "line": 0, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 16, + "LSPosition": { + "line": 0, + "character": 16 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 16 + }, + "end": { + "line": 0, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 19, + "LSPosition": { + "line": 0, + "character": 19 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 19 + }, + "end": { + "line": 0, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 35, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 11 + }, + "end": { + "line": 1, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 40, + "LSPosition": { + "line": 3, + "character": 0 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo<\"Hello\">(a: \"Hello\"): \"Hello\"\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 3 + } + } + } + }, + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 4, + "character": 9 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo2(a: U): U\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 9 + }, + "end": { + "line": 4, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 68, + "LSPosition": { + "line": 4, + "character": 14 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends string\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 14 + }, + "end": { + "line": 4, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 4, + "character": 32 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 32 + }, + "end": { + "line": 4, + "character": 33 + } + } + } + }, + { + "marker": { + "Position": 89, + "LSPosition": { + "line": 4, + "character": 35 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends string\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 35 + }, + "end": { + "line": 4, + "character": 36 + } + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 5, + "character": 11 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 11 + }, + "end": { + "line": 5, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 110, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo2<\"hello\">(a: \"hello\"): \"hello\"\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 0 + }, + "end": { + "line": 7, + "character": 4 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline new file mode 100644 index 0000000000..34f227d6b5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline @@ -0,0 +1,108 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.ts === +// type MixinCtor = new () => A & { constructor: MixinCtor }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) A +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) A +// | ``` +// | +// | ---------------------------------------------------------------------- +// type MixinCtor = new () => A & { constructor: { constructor: MixinCtor } }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) A +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 30, + "LSPosition": { + "line": 0, + "character": 30 + }, + "Name": "0", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) A\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 30 + }, + "end": { + "line": 0, + "character": 31 + } + } + } + }, + { + "marker": { + "Position": 59, + "LSPosition": { + "line": 0, + "character": 59 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) A\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 59 + }, + "end": { + "line": 0, + "character": 60 + } + } + } + }, + { + "marker": { + "Position": 139, + "LSPosition": { + "line": 1, + "character": 74 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) A\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 74 + }, + "end": { + "line": 1, + "character": 75 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline new file mode 100644 index 0000000000..f318f084b2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline @@ -0,0 +1,2232 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInInterface.ts === +// interface I { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// new (a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// (a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// method(a: U, b: T): U; +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.method(a: U, b: T): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var iVal: I; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// new iVal("hello", "hello"); +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// iVal("hello", "hello"); +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// iVal.method("hello", "hello"); +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.method<"hello">(a: "hello", b: string): "hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +// interface I1> { +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// new >(a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// >(a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// method>(a: U, b: T): U; +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I1.method>(a: U, b: T): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var iVal1: I1>; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal1: I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// new iVal1(iVal, iVal); +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal1: I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// iVal1(iVal, iVal); +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal1: I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// iVal1.method(iVal, iVal); +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal1: I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I1.method>(a: I, b: I): I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 10, + "LSPosition": { + "line": 0, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 10 + }, + "end": { + "line": 0, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 12, + "LSPosition": { + "line": 0, + "character": 12 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 12 + }, + "end": { + "line": 0, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 9 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 9 + }, + "end": { + "line": 1, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 12 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 12 + }, + "end": { + "line": 1, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 32, + "LSPosition": { + "line": 1, + "character": 15 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 15 + }, + "end": { + "line": 1, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 35, + "LSPosition": { + "line": 1, + "character": 18 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 18 + }, + "end": { + "line": 1, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 38, + "LSPosition": { + "line": 1, + "character": 21 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 21 + }, + "end": { + "line": 1, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 42, + "LSPosition": { + "line": 1, + "character": 25 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 25 + }, + "end": { + "line": 1, + "character": 26 + } + } + } + }, + { + "marker": { + "Position": 50, + "LSPosition": { + "line": 2, + "character": 5 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 5 + }, + "end": { + "line": 2, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 53, + "LSPosition": { + "line": 2, + "character": 8 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 8 + }, + "end": { + "line": 2, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 56, + "LSPosition": { + "line": 2, + "character": 11 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 11 + }, + "end": { + "line": 2, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 59, + "LSPosition": { + "line": 2, + "character": 14 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 14 + }, + "end": { + "line": 2, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 62, + "LSPosition": { + "line": 2, + "character": 17 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 17 + }, + "end": { + "line": 2, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 66, + "LSPosition": { + "line": 2, + "character": 21 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 21 + }, + "end": { + "line": 2, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 73, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.method(a: U, b: T): U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 4 + }, + "end": { + "line": 3, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 80, + "LSPosition": { + "line": 3, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 11 + }, + "end": { + "line": 3, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 83, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 14 + }, + "end": { + "line": 3, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 3, + "character": 17 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 17 + }, + "end": { + "line": 3, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 89, + "LSPosition": { + "line": 3, + "character": 20 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 20 + }, + "end": { + "line": 3, + "character": 21 + } + } + } + }, + { + "marker": { + "Position": 92, + "LSPosition": { + "line": 3, + "character": 23 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 23 + }, + "end": { + "line": 3, + "character": 24 + } + } + } + }, + { + "marker": { + "Position": 96, + "LSPosition": { + "line": 3, + "character": 27 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 27 + }, + "end": { + "line": 3, + "character": 28 + } + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 111, + "LSPosition": { + "line": 5, + "character": 10 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 10 + }, + "end": { + "line": 5, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 126, + "LSPosition": { + "line": 6, + "character": 4 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 4 + }, + "end": { + "line": 6, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 150, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 0 + }, + "end": { + "line": 7, + "character": 4 + } + } + } + }, + { + "marker": { + "Position": 174, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 0 + }, + "end": { + "line": 8, + "character": 4 + } + } + } + }, + { + "marker": { + "Position": 179, + "LSPosition": { + "line": 8, + "character": 5 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.method<\"hello\">(a: \"hello\", b: string): \"hello\"\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 5 + }, + "end": { + "line": 8, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 215, + "LSPosition": { + "line": 9, + "character": 10 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I1>\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 10 + }, + "end": { + "line": 9, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 218, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends I\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 13 + }, + "end": { + "line": 9, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 228, + "LSPosition": { + "line": 9, + "character": 23 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 23 + }, + "end": { + "line": 9, + "character": 24 + } + } + } + }, + { + "marker": { + "Position": 250, + "LSPosition": { + "line": 10, + "character": 9 + }, + "Name": "31", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 9 + }, + "end": { + "line": 10, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 260, + "LSPosition": { + "line": 10, + "character": 19 + }, + "Name": "32", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 19 + }, + "end": { + "line": 10, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 271, + "LSPosition": { + "line": 10, + "character": 30 + }, + "Name": "33", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 30 + }, + "end": { + "line": 10, + "character": 31 + } + } + } + }, + { + "marker": { + "Position": 274, + "LSPosition": { + "line": 10, + "character": 33 + }, + "Name": "34", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 33 + }, + "end": { + "line": 10, + "character": 34 + } + } + } + }, + { + "marker": { + "Position": 277, + "LSPosition": { + "line": 10, + "character": 36 + }, + "Name": "35", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 36 + }, + "end": { + "line": 10, + "character": 37 + } + } + } + }, + { + "marker": { + "Position": 280, + "LSPosition": { + "line": 10, + "character": 39 + }, + "Name": "36", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends I\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 39 + }, + "end": { + "line": 10, + "character": 40 + } + } + } + }, + { + "marker": { + "Position": 284, + "LSPosition": { + "line": 10, + "character": 43 + }, + "Name": "37", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 43 + }, + "end": { + "line": 10, + "character": 44 + } + } + } + }, + { + "marker": { + "Position": 292, + "LSPosition": { + "line": 11, + "character": 5 + }, + "Name": "38", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 5 + }, + "end": { + "line": 11, + "character": 6 + } + } + } + }, + { + "marker": { + "Position": 302, + "LSPosition": { + "line": 11, + "character": 15 + }, + "Name": "39", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 15 + }, + "end": { + "line": 11, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 313, + "LSPosition": { + "line": 11, + "character": 26 + }, + "Name": "40", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 26 + }, + "end": { + "line": 11, + "character": 27 + } + } + } + }, + { + "marker": { + "Position": 316, + "LSPosition": { + "line": 11, + "character": 29 + }, + "Name": "41", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 29 + }, + "end": { + "line": 11, + "character": 30 + } + } + } + }, + { + "marker": { + "Position": 319, + "LSPosition": { + "line": 11, + "character": 32 + }, + "Name": "42", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 32 + }, + "end": { + "line": 11, + "character": 33 + } + } + } + }, + { + "marker": { + "Position": 322, + "LSPosition": { + "line": 11, + "character": 35 + }, + "Name": "43", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends I\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 35 + }, + "end": { + "line": 11, + "character": 36 + } + } + } + }, + { + "marker": { + "Position": 326, + "LSPosition": { + "line": 11, + "character": 39 + }, + "Name": "44", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 39 + }, + "end": { + "line": 11, + "character": 40 + } + } + } + }, + { + "marker": { + "Position": 333, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "45", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I1.method>(a: U, b: T): U\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 4 + }, + "end": { + "line": 12, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 340, + "LSPosition": { + "line": 12, + "character": 11 + }, + "Name": "46", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 11 + }, + "end": { + "line": 12, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 350, + "LSPosition": { + "line": 12, + "character": 21 + }, + "Name": "47", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 21 + }, + "end": { + "line": 12, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 361, + "LSPosition": { + "line": 12, + "character": 32 + }, + "Name": "48", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 32 + }, + "end": { + "line": 12, + "character": 33 + } + } + } + }, + { + "marker": { + "Position": 364, + "LSPosition": { + "line": 12, + "character": 35 + }, + "Name": "49", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 35 + }, + "end": { + "line": 12, + "character": 36 + } + } + } + }, + { + "marker": { + "Position": 367, + "LSPosition": { + "line": 12, + "character": 38 + }, + "Name": "50", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 38 + }, + "end": { + "line": 12, + "character": 39 + } + } + } + }, + { + "marker": { + "Position": 370, + "LSPosition": { + "line": 12, + "character": 41 + }, + "Name": "51", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends I\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 41 + }, + "end": { + "line": 12, + "character": 42 + } + } + } + }, + { + "marker": { + "Position": 374, + "LSPosition": { + "line": 12, + "character": 45 + }, + "Name": "52", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 45 + }, + "end": { + "line": 12, + "character": 46 + } + } + } + }, + { + "marker": { + "Position": 383, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "53", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal1: I1>\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 4 + }, + "end": { + "line": 14, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 390, + "LSPosition": { + "line": 14, + "character": 11 + }, + "Name": "54", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I1>\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 11 + }, + "end": { + "line": 14, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 393, + "LSPosition": { + "line": 14, + "character": 14 + }, + "Name": "55", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 14 + }, + "end": { + "line": 14, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 409, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "56", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal1: I1>\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 4 + }, + "end": { + "line": 15, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 415, + "LSPosition": { + "line": 15, + "character": 10 + }, + "Name": "57", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 10 + }, + "end": { + "line": 15, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 421, + "LSPosition": { + "line": 15, + "character": 16 + }, + "Name": "58", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 16 + }, + "end": { + "line": 15, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 428, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "59", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal1: I1>\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 0 + }, + "end": { + "line": 16, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 434, + "LSPosition": { + "line": 16, + "character": 6 + }, + "Name": "60", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 6 + }, + "end": { + "line": 16, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 440, + "LSPosition": { + "line": 16, + "character": 12 + }, + "Name": "61", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 16, + "character": 12 + }, + "end": { + "line": 16, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 447, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "62", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal1: I1>\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 0 + }, + "end": { + "line": 17, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 453, + "LSPosition": { + "line": 17, + "character": 6 + }, + "Name": "63", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I1.method>(a: I, b: I): I\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 6 + }, + "end": { + "line": 17, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 460, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "64", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 13 + }, + "end": { + "line": 17, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 466, + "LSPosition": { + "line": 17, + "character": 19 + }, + "Name": "65", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 19 + }, + "end": { + "line": 17, + "character": 23 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline new file mode 100644 index 0000000000..299f34e6ae --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline @@ -0,0 +1,210 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInTypeAlias.ts === +// type List = T[] +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type List = T[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// type List2 = T[]; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type List2 = T[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends string +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 5, + "LSPosition": { + "line": 0, + "character": 5 + }, + "Name": "0", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype List = T[]\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 5 + }, + "end": { + "line": 0, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 10, + "LSPosition": { + "line": 0, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 10 + }, + "end": { + "line": 0, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 15, + "LSPosition": { + "line": 0, + "character": 15 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 15 + }, + "end": { + "line": 0, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 24, + "LSPosition": { + "line": 1, + "character": 5 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype List2 = T[]\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 5 + }, + "end": { + "line": 1, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 30, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends string\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 11 + }, + "end": { + "line": 1, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 50, + "LSPosition": { + "line": 1, + "character": 31 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends string\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 31 + }, + "end": { + "line": 1, + "character": 32 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline new file mode 100644 index 0000000000..18bea2f9e4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline @@ -0,0 +1,76 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsUsing.ts === +// using a = "a"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | using a: "a" +// | ``` +// | +// | ---------------------------------------------------------------------- +// const f = async () => { +// await using b = { async [Symbol.asyncDispose]() {} }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | await using b: { [Symbol.asyncDispose](): Promise; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// }; +[ + { + "marker": { + "Position": 7, + "LSPosition": { + "line": 0, + "character": 7 + }, + "Name": "a", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nusing a: \"a\"\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 6 + }, + "end": { + "line": 0, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 55, + "LSPosition": { + "line": 2, + "character": 16 + }, + "Name": "b", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nawait using b: { [Symbol.asyncDispose](): Promise; }\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 16 + }, + "end": { + "line": 2, + "character": 17 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVar.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVar.baseline new file mode 100644 index 0000000000..c5692ca6f2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVar.baseline @@ -0,0 +1,495 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsVar.ts === +// var a = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo() { +// var b = a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// module m { +// var c = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var c: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var d = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var d: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var f: () => number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var g = f; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var g: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// f(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var h: { (a: string): number; (a: number): string; }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i = h; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: number\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 4 + }, + "end": { + "line": 0, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 37, + "LSPosition": { + "line": 2, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: number\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 8 + }, + "end": { + "line": 2, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: number\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 12 + }, + "end": { + "line": 2, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 65, + "LSPosition": { + "line": 5, + "character": 8 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar c: number\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 8 + }, + "end": { + "line": 5, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 88, + "LSPosition": { + "line": 6, + "character": 15 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar d: number\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 15 + }, + "end": { + "line": 6, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 102, + "LSPosition": { + "line": 8, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar f: () => number\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 4 + }, + "end": { + "line": 8, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 123, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar g: () => number\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 4 + }, + "end": { + "line": 9, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 127, + "LSPosition": { + "line": 9, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar f: () => number\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 8 + }, + "end": { + "line": 9, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 130, + "LSPosition": { + "line": 10, + "character": 0 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar f: () => number\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 0 + }, + "end": { + "line": 10, + "character": 1 + } + } + } + }, + { + "marker": { + "Position": 139, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 4 + }, + "end": { + "line": 11, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 193, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 4 + }, + "end": { + "line": 12, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 197, + "LSPosition": { + "line": 12, + "character": 8 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 8 + }, + "end": { + "line": 12, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 200, + "LSPosition": { + "line": 13, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 0 + }, + "end": { + "line": 13, + "character": 1 + } + } + } + }, + { + "marker": { + "Position": 207, + "LSPosition": { + "line": 14, + "character": 0 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 0 + }, + "end": { + "line": 14, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline new file mode 100644 index 0000000000..cf733365dd --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline @@ -0,0 +1,109 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsVarWithStringTypes01.ts === +// let hello: "hello" | 'hello' = "hello"; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let hello: "hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +// let world: 'world' = "world"; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let world: "world" +// | ``` +// | +// | ---------------------------------------------------------------------- +// let helloOrWorld: "hello" | 'world'; +// ^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let helloOrWorld: "hello" | "world" +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet hello: \"hello\"\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 4 + }, + "end": { + "line": 0, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 44, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet world: \"world\"\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 74, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet helloOrWorld: \"hello\" | \"world\"\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 4 + }, + "end": { + "line": 2, + "character": 16 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline new file mode 100644 index 0000000000..a9bc2873be --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline @@ -0,0 +1,81 @@ +// === QuickInfo === +=== /a.js === +// const foo = { +// f1: (params) => { } +// } +// +// function f2(x) { +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f2(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo.f1({ x, arguments: [] }); +// } +// +// f2(''); +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f2(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 50, + "LSPosition": { + "line": 4, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f2(x: any): void\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 9 + }, + "end": { + "line": 4, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 94, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f2(x: any): void\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 0 + }, + "end": { + "line": 8, + "character": 2 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline new file mode 100644 index 0000000000..7a826925ae --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline @@ -0,0 +1,77 @@ +// === QuickInfo === +=== /a.js === +// function f(x) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// arguments; +// } +// +// f(''); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(x: any): void\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 9 + }, + "end": { + "line": 0, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 33, + "LSPosition": { + "line": 4, + "character": 0 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(x: any): void\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 0 + }, + "end": { + "line": 4, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForConstAssertions.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForConstAssertions.baseline new file mode 100644 index 0000000000..e5598148bb --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForConstAssertions.baseline @@ -0,0 +1,144 @@ +// === QuickInfo === +=== /quickInfoForConstAssertions.ts === +// const a = { a: 1 } as const; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type const +// | ``` +// | +// | ---------------------------------------------------------------------- +// const b = 1 as const; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type const +// | ``` +// | +// | ---------------------------------------------------------------------- +// const c = "c" as const; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type const +// | ``` +// | +// | ---------------------------------------------------------------------- +// const d = [1, 2] as const; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type const +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 22, + "LSPosition": { + "line": 0, + "character": 22 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype const\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 22 + }, + "end": { + "line": 0, + "character": 27 + } + } + } + }, + { + "marker": { + "Position": 44, + "LSPosition": { + "line": 1, + "character": 15 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype const\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 15 + }, + "end": { + "line": 1, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 68, + "LSPosition": { + "line": 2, + "character": 17 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype const\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 17 + }, + "end": { + "line": 2, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 95, + "LSPosition": { + "line": 3, + "character": 20 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype const\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 20 + }, + "end": { + "line": 3, + "character": 25 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocCodefence.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocCodefence.baseline new file mode 100644 index 0000000000..63b64218fb --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocCodefence.baseline @@ -0,0 +1,101 @@ +// === QuickInfo === +=== /quickInfoForJSDocCodefence.ts === +// /** +// * @example +// * ``` +// * 1 + 2 +// * ``` +// */ +// function foo() { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): string +// | ``` +// | +// | +// | *@example* +// | ``` +// | 1 + 2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// * @example +// * `` +// * 1 + 2 +// * ` +// */ +// function boo() { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function boo(): string +// | ``` +// | +// | +// | *@example* — `` +// | 1 + 2 +// | ` +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +[ + { + "marker": { + "Position": 54, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): string\n```\n\n\n*@example*\n```\n1 + 2\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 9 + }, + "end": { + "line": 6, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 129, + "LSPosition": { + "line": 15, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction boo(): string\n```\n\n\n*@example* — ``\n1 + 2\n`\n" + }, + "range": { + "start": { + "line": 15, + "character": 9 + }, + "end": { + "line": 15, + "character": 12 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocUnknownTag.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocUnknownTag.baseline new file mode 100644 index 0000000000..1ace37d779 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocUnknownTag.baseline @@ -0,0 +1,249 @@ +// === QuickInfo === +=== /quickInfoForJSDocUnknownTag.ts === +// /** +// * @example +// * if (true) { +// * foo() +// * } +// */ +// function foo() { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): string +// | ``` +// | +// | +// | *@example* — if (true) { +// | foo() +// | } +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// @example +// { +// foo() +// } +// */ +// function foo2() { +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo2(): string +// | ``` +// | +// | +// | *@example* — { +// | foo() +// | } +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// * @example +// * x y +// * 12345 +// * b +// */ +// function moo() { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function moo(): string +// | ``` +// | +// | +// | *@example* — x y +// | 12345 +// | b +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// * @func +// * @example +// * x y +// * 12345 +// * b +// */ +// function boo() { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function boo(): string +// | ``` +// | +// | +// | *@func* +// | +// | *@example* — x y +// | 12345 +// | b +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// * @func +// * @example x y +// * 12345 +// * b +// */ +// function goo() { +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function goo(): string +// | ``` +// | +// | +// | *@func* +// | +// | *@example* — x y +// | 12345 +// | b +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +[ + { + "marker": { + "Position": 64, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): string\n```\n\n\n*@example* — if (true) {\n foo()\n}\n" + }, + "range": { + "start": { + "line": 6, + "character": 9 + }, + "end": { + "line": 6, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 134, + "LSPosition": { + "line": 15, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo2(): string\n```\n\n\n*@example* — {\n foo()\n}\n" + }, + "range": { + "start": { + "line": 15, + "character": 9 + }, + "end": { + "line": 15, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 219, + "LSPosition": { + "line": 24, + "character": 10 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction moo(): string\n```\n\n\n*@example* — x y\n 12345\n b\n" + }, + "range": { + "start": { + "line": 24, + "character": 9 + }, + "end": { + "line": 24, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 313, + "LSPosition": { + "line": 34, + "character": 10 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction boo(): string\n```\n\n\n*@func*\n\n*@example* — x y\n 12345\n b\n" + }, + "range": { + "start": { + "line": 34, + "character": 9 + }, + "end": { + "line": 34, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 426, + "LSPosition": { + "line": 43, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction goo(): string\n```\n\n\n*@func*\n\n*@example* — x y\n12345\n b\n" + }, + "range": { + "start": { + "line": 43, + "character": 9 + }, + "end": { + "line": 43, + "character": 12 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline new file mode 100644 index 0000000000..fbb8265ce2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline @@ -0,0 +1,230 @@ +// === QuickInfo === +=== /quickInfoForJSDocWithHttpLinks.js === +// /** @typedef {number} https://wat */ +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type https = number +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /** +// * @typedef {Object} Oops +// * @property {number} https://wass +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) https: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// */ +// +// +// /** @callback http://vad */ +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type http = () => any +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /** @see https://hvad */ +// var see1 = true +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see1: boolean +// | ``` +// | +// | +// | *@see* `https` — ://hvad +// | ---------------------------------------------------------------------- +// +// /** @see {@link https://hva} */ +// var see2 = true +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see2: boolean +// | ``` +// | +// | +// | *@see* — [https://hva](https://hva) +// | ---------------------------------------------------------------------- +// +// /** {@link https://hvaD} */ +// var see3 = true +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see3: boolean +// | ``` +// | [https://hvaD](https://hvaD) +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 22, + "LSPosition": { + "line": 0, + "character": 22 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype https = number\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 22 + }, + "end": { + "line": 0, + "character": 27 + } + } + } + }, + { + "marker": { + "Position": 88, + "LSPosition": { + "line": 4, + "character": 21 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) https: number\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 21 + }, + "end": { + "line": 4, + "character": 26 + } + } + } + }, + { + "marker": { + "Position": 120, + "LSPosition": { + "line": 8, + "character": 14 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype http = () => any\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 14 + }, + "end": { + "line": 8, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 164, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see1: boolean\n```\n\n\n*@see* `https` — ://hvad " + }, + "range": { + "start": { + "line": 11, + "character": 4 + }, + "end": { + "line": 11, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 213, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see2: boolean\n```\n\n\n*@see* — [https://hva](https://hva) " + }, + "range": { + "start": { + "line": 14, + "character": 4 + }, + "end": { + "line": 14, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 258, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see3: boolean\n```\n[https://hvaD](https://hvaD)" + }, + "range": { + "start": { + "line": 17, + "character": 4 + }, + "end": { + "line": 17, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline new file mode 100644 index 0000000000..7bb050551c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline @@ -0,0 +1,79 @@ +// === QuickInfo === +=== /quickInfoForJSDocWithHttpLinks.js === +// /** @see {@link https://hva} */ +// var see2 = true +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see2: boolean +// | ``` +// | +// | +// | *@see* — [https://hva](https://hva) +// | ---------------------------------------------------------------------- +// +// /** {@link https://hvaD} */ +// var see3 = true +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see3: boolean +// | ``` +// | [https://hvaD](https://hvaD) +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 36, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see2: boolean\n```\n\n\n*@see* — [https://hva](https://hva) " + }, + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 81, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see3: boolean\n```\n[https://hvaD](https://hvaD)" + }, + "range": { + "start": { + "line": 4, + "character": 4 + }, + "end": { + "line": 4, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName03.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName03.baseline new file mode 100644 index 0000000000..0e0a6ea1c5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName03.baseline @@ -0,0 +1,48 @@ +// === QuickInfo === +=== /quickInfoForObjectBindingElementName03.ts === +// interface Options { +// /** +// * A description of foo +// */ +// foo: string; +// } +// +// function f({ foo }: Options) { +// foo; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var foo: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 122, + "LSPosition": { + "line": 8, + "character": 7 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar foo: string\n```\n" + }, + "range": { + "start": { + "line": 8, + "character": 4 + }, + "end": { + "line": 8, + "character": 7 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.baseline new file mode 100644 index 0000000000..926bfdf720 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.baseline @@ -0,0 +1,88 @@ +// === QuickInfo === +=== /quickInfoForObjectBindingElementName04.ts === +// interface Options { +// /** +// * A description of 'a' +// */ +// a: { +// /** +// * A description of 'b' +// */ +// b: string; +// } +// } +// +// function f({ a, a: { b } }: Options) { +// a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: { b: string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// b; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 193, + "LSPosition": { + "line": 13, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: { b: string; }\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 4 + }, + "end": { + "line": 13, + "character": 5 + } + } + } + }, + { + "marker": { + "Position": 200, + "LSPosition": { + "line": 14, + "character": 5 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: string\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 4 + }, + "end": { + "line": 14, + "character": 5 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName05.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName05.baseline new file mode 100644 index 0000000000..8ba464b2a4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName05.baseline @@ -0,0 +1,51 @@ +// === QuickInfo === +=== /quickInfoForObjectBindingElementName05.ts === +// interface A { +// /** +// * A description of a +// */ +// a: number; +// } +// interface B { +// a: string; +// } +// +// function f({ a }: A | B) { +// a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: string | number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 137, + "LSPosition": { + "line": 11, + "character": 5 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: string | number\n```\n" + }, + "range": { + "start": { + "line": 11, + "character": 4 + }, + "end": { + "line": 11, + "character": 5 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName06.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName06.baseline new file mode 100644 index 0000000000..71b808900c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName06.baseline @@ -0,0 +1,56 @@ +// === QuickInfo === +=== /quickInfoForObjectBindingElementName06.ts === +// type Foo = { +// /** +// * Thing is a bar +// */ +// isBar: boolean +// +// /** +// * Thing is a baz +// */ +// isBaz: boolean +// } +// +// function f(): Foo { +// return undefined as any +// } +// +// const { isBaz: isBar } = f(); +// isBar; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const isBar: boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 217, + "LSPosition": { + "line": 17, + "character": 5 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst isBar: boolean\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 0 + }, + "end": { + "line": 17, + "character": 5 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoImportMeta.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoImportMeta.baseline new file mode 100644 index 0000000000..83487e44ce --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoImportMeta.baseline @@ -0,0 +1,57 @@ +// === QuickInfo === +=== /foo.ts === +// /// +// /// +// import.meta; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) ImportMetaExpression.meta: ImportMeta +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 2, + "character": 2 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 84, + "LSPosition": { + "line": 2, + "character": 9 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) ImportMetaExpression.meta: ImportMeta\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 11 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc.baseline new file mode 100644 index 0000000000..c490bd95dc --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc.baseline @@ -0,0 +1,179 @@ +// === QuickInfo === +=== /quickInfoInheritDoc.ts === +// abstract class BaseClass { +// /** +// * Useful description always applicable +// * +// * @returns {string} Useful description of return value always applicable. +// */ +// public static doSomethingUseful(stuff?: any): string { +// throw new Error('Must be implemented by subclass'); +// } +// +// /** +// * BaseClass.func1 +// * @param {any} stuff1 BaseClass.func1.stuff1 +// * @returns {void} BaseClass.func1.returns +// */ +// public static func1(stuff1: any): void { +// } +// +// /** +// * Applicable description always. +// */ +// public static readonly someProperty: string = 'general value'; +// } +// +// +// +// +// class SubClass extends BaseClass { +// +// /** +// * @inheritDoc +// * +// * @param {{ tiger: string; lion: string; }} [mySpecificStuff] Description of my specific parameter. +// */ +// public static doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string { +// ^^^^^^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) SubClass.doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string +// | ``` +// | +// | +// | *@inheritDoc* +// | +// | *@param* `mySpecificStuff` — Description of my specific parameter. +// | +// | ---------------------------------------------------------------------- +// let useful = ''; +// +// // do something useful to useful +// +// return useful; +// } +// +// /** +// * @inheritDoc +// * @param {any} stuff1 SubClass.func1.stuff1 +// * @returns {void} SubClass.func1.returns +// */ +// public static func1(stuff1: any): void { +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) SubClass.func1(stuff1: any): void +// | ``` +// | +// | +// | *@inheritDoc* +// | +// | *@param* `stuff1` — SubClass.func1.stuff1 +// | +// | +// | *@returns* — SubClass.func1.returns +// | +// | ---------------------------------------------------------------------- +// } +// +// /** +// * text over tag +// * @inheritDoc +// * text after tag +// */ +// public static readonly someProperty: string = 'specific to this class value' +// ^^^^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) SubClass.someProperty: string +// | ``` +// | text over tag +// | +// | *@inheritDoc* — text after tag +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 817, + "LSPosition": { + "line": 34, + "character": 18 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) SubClass.doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string\n```\n\n\n*@inheritDoc*\n\n*@param* `mySpecificStuff` — Description of my specific parameter.\n" + }, + "range": { + "start": { + "line": 34, + "character": 18 + }, + "end": { + "line": 34, + "character": 35 + } + } + } + }, + { + "marker": { + "Position": 1143, + "LSPosition": { + "line": 47, + "character": 18 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) SubClass.func1(stuff1: any): void\n```\n\n\n*@inheritDoc*\n\n*@param* `stuff1` — SubClass.func1.stuff1\n\n\n*@returns* — SubClass.func1.returns\n" + }, + "range": { + "start": { + "line": 47, + "character": 18 + }, + "end": { + "line": 47, + "character": 23 + } + } + } + }, + { + "marker": { + "Position": 1282, + "LSPosition": { + "line": 55, + "character": 27 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) SubClass.someProperty: string\n```\ntext over tag\n\n*@inheritDoc* — text after tag\n" + }, + "range": { + "start": { + "line": 55, + "character": 27 + }, + "end": { + "line": 55, + "character": 39 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc2.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc2.baseline new file mode 100644 index 0000000000..4e8510c723 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc2.baseline @@ -0,0 +1,55 @@ +// === QuickInfo === +=== /quickInfoInheritDoc2.ts === +// class Base { +// /** +// * Base.prop +// */ +// prop: T | undefined; +// } +// +// class SubClass extends Base { +// /** +// * @inheritdoc +// * SubClass.prop +// */ +// prop: T | undefined; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) SubClass.prop: T +// | ``` +// | +// | +// | *@inheritdoc* — SubClass.prop +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 173, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) SubClass.prop: T\n```\n\n\n*@inheritdoc* — SubClass.prop\n" + }, + "range": { + "start": { + "line": 12, + "character": 4 + }, + "end": { + "line": 12, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc3.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc3.baseline new file mode 100644 index 0000000000..47214ef747 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc3.baseline @@ -0,0 +1,56 @@ +// === QuickInfo === +=== /quickInfoInheritDoc3.ts === +// function getBaseClass() { +// return class Base { +// /** +// * Base.prop +// */ +// prop: string | undefined; +// } +// } +// class SubClass extends getBaseClass() { +// /** +// * @inheritdoc +// * SubClass.prop +// */ +// prop: string | undefined; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) SubClass.prop: string +// | ``` +// | +// | +// | *@inheritdoc* — SubClass.prop +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 237, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) SubClass.prop: string\n```\n\n\n*@inheritdoc* — SubClass.prop\n" + }, + "range": { + "start": { + "line": 13, + "character": 4 + }, + "end": { + "line": 13, + "character": 8 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc4.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc4.baseline new file mode 100644 index 0000000000..51c71f1fff --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc4.baseline @@ -0,0 +1,50 @@ +// === QuickInfo === +=== /quickInfoInheritDoc4.ts === +// var A: any; +// +// class B extends A { +// /** +// * @inheritdoc +// */ +// static value() { +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.value(): any +// | ``` +// | +// | +// | *@inheritdoc* +// | ---------------------------------------------------------------------- +// return undefined; +// } +// } +[ + { + "marker": { + "Position": 79, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" + }, + "range": { + "start": { + "line": 6, + "character": 11 + }, + "end": { + "line": 6, + "character": 16 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc5.baseline new file mode 100644 index 0000000000..9c9e2c5f9b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc5.baseline @@ -0,0 +1,50 @@ +// === QuickInfo === +=== /quickInfoInheritDoc5.js === +// function A() {} +// +// class B extends A { +// /** +// * @inheritdoc +// */ +// static value() { +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.value(): any +// | ``` +// | +// | +// | *@inheritdoc* +// | ---------------------------------------------------------------------- +// return undefined; +// } +// } +[ + { + "marker": { + "Position": 83, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" + }, + "range": { + "start": { + "line": 6, + "character": 11 + }, + "end": { + "line": 6, + "character": 16 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc6.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc6.baseline new file mode 100644 index 0000000000..6e2695e85c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoInheritDoc6.baseline @@ -0,0 +1,48 @@ +// === QuickInfo === +=== /quickInfoInheritDoc6.js === +// class B extends UNRESOLVED_VALUE_DEFINITELY_DOES_NOT_EXIST { +// /** +// * @inheritdoc +// */ +// static value() { +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.value(): any +// | ``` +// | +// | +// | *@inheritdoc* +// | ---------------------------------------------------------------------- +// return undefined; +// } +// } +[ + { + "marker": { + "Position": 107, + "LSPosition": { + "line": 4, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" + }, + "range": { + "start": { + "line": 4, + "character": 11 + }, + "end": { + "line": 4, + "character": 16 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocAtBeforeSpace.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocAtBeforeSpace.baseline new file mode 100644 index 0000000000..8b0b1fecbb --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocAtBeforeSpace.baseline @@ -0,0 +1,129 @@ +// === QuickInfo === +=== /quickInfoJSDocAtBeforeSpace.ts === +// /** +// * @return Don't @ me +// */ +// function f() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(): void +// | ``` +// | +// | +// | *@return* — Don't @ me +// | +// | ---------------------------------------------------------------------- +// /** +// * @return One final @ +// */ +// function g() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function g(): void +// | ``` +// | +// | +// | *@return* — One final @ +// | +// | ---------------------------------------------------------------------- +// /** +// * @return An @ +// * But another line +// */ +// function h() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function h(): void +// | ``` +// | +// | +// | *@return* — An @ +// | But another line +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 39, + "LSPosition": { + "line": 3, + "character": 9 + }, + "Name": "f", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(): void\n```\n\n\n*@return* — Don't @ me\n" + }, + "range": { + "start": { + "line": 3, + "character": 9 + }, + "end": { + "line": 3, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 87, + "LSPosition": { + "line": 7, + "character": 9 + }, + "Name": "g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction g(): void\n```\n\n\n*@return* — One final @\n" + }, + "range": { + "start": { + "line": 7, + "character": 9 + }, + "end": { + "line": 7, + "character": 10 + } + } + } + }, + { + "marker": { + "Position": 148, + "LSPosition": { + "line": 12, + "character": 9 + }, + "Name": "h", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction h(): void\n```\n\n\n*@return* — An @\nBut another line\n" + }, + "range": { + "start": { + "line": 12, + "character": 9 + }, + "end": { + "line": 12, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocTags.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocTags.baseline new file mode 100644 index 0000000000..61621b6159 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJSDocTags.baseline @@ -0,0 +1,486 @@ +// === QuickInfo === +=== /quickInfoJSDocTags.ts === +// /** +// * This is class Foo. +// * @mytag comment1 comment2 +// */ +// class Foo { +// /** +// * This is the constructor. +// * @myjsdoctag this is a comment +// */ +// constructor(value: number) {} +// /** +// * method1 documentation +// * @mytag comment1 comment2 +// */ +// static method1() {} +// /** +// * @mytag +// */ +// method2() {} +// /** +// * @mytag comment1 comment2 +// */ +// property1: string; +// /** +// * @mytag1 some comments +// * some more comments about mytag1 +// * @mytag2 +// * here all the comments are on a new line +// * @mytag3 +// * @mytag +// */ +// property2: number; +// /** +// * @returns {number} a value +// */ +// method3(): number { return 3; } +// /** +// * @param {string} foo A value. +// * @returns {number} Another value +// * @mytag +// */ +// method4(foo: string): number { return 3; } +// /** @mytag */ +// method5() {} +// /** method documentation +// * @mytag a JSDoc tag +// */ +// newMethod() {} +// } +// var foo = new Foo(4); +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor Foo(value: number): Foo +// | ``` +// | This is the constructor. +// | +// | *@myjsdoctag* — this is a comment +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*10*/. +// | ---------------------------------------------------------------------- +// Foo.method1(); +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class Foo +// | ``` +// | This is class Foo. +// | +// | *@mytag* — comment1 comment2 +// | +// | ---------------------------------------------------------------------- +// ^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method1(): void +// | ``` +// | method1 documentation +// | +// | *@mytag* — comment1 comment2 +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*11*/. +// | ---------------------------------------------------------------------- +// foo.method2(); +// ^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method2(): void +// | ``` +// | +// | +// | *@mytag* +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*12*/. +// | ---------------------------------------------------------------------- +// foo.method3(); +// ^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method3(): number +// | ``` +// | +// | +// | *@returns* — a value +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*13*/. +// | ---------------------------------------------------------------------- +// foo.method4(); +// ^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method4(foo: string): number +// | ``` +// | +// | +// | *@param* `foo` — A value. +// | +// | +// | *@returns* — Another value +// | +// | +// | *@mytag* +// | ---------------------------------------------------------------------- +// foo.property1; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Foo.property1: string +// | ``` +// | +// | +// | *@mytag* — comment1 comment2 +// | +// | ---------------------------------------------------------------------- +// foo.property2; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Foo.property2: number +// | ``` +// | +// | +// | *@mytag1* — some comments +// | some more comments about mytag1 +// | +// | +// | *@mytag2* — here all the comments are on a new line +// | +// | +// | *@mytag3* +// | +// | *@mytag* +// | ---------------------------------------------------------------------- +// foo.method5(); +// ^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method5(): void +// | ``` +// | +// | +// | *@mytag* +// | ---------------------------------------------------------------------- +// foo.newMet +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*14*/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 977, + "LSPosition": { + "line": 49, + "character": 14 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor Foo(value: number): Foo\n```\nThis is the constructor.\n\n*@myjsdoctag* — this is a comment\n" + }, + "range": { + "start": { + "line": 49, + "character": 14 + }, + "end": { + "line": 49, + "character": 17 + } + } + } + }, + { + "marker": { + "Position": 981, + "LSPosition": { + "line": 49, + "character": 18 + }, + "Name": "10", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 985, + "LSPosition": { + "line": 50, + "character": 0 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass Foo\n```\nThis is class Foo.\n\n*@mytag* — comment1 comment2\n" + }, + "range": { + "start": { + "line": 50, + "character": 0 + }, + "end": { + "line": 50, + "character": 3 + } + } + } + }, + { + "marker": { + "Position": 989, + "LSPosition": { + "line": 50, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method1(): void\n```\nmethod1 documentation\n\n*@mytag* — comment1 comment2\n" + }, + "range": { + "start": { + "line": 50, + "character": 4 + }, + "end": { + "line": 50, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 997, + "LSPosition": { + "line": 50, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 1004, + "LSPosition": { + "line": 51, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method2(): void\n```\n\n\n*@mytag*" + }, + "range": { + "start": { + "line": 51, + "character": 4 + }, + "end": { + "line": 51, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 1012, + "LSPosition": { + "line": 51, + "character": 12 + }, + "Name": "12", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 1019, + "LSPosition": { + "line": 52, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method3(): number\n```\n\n\n*@returns* — a value\n" + }, + "range": { + "start": { + "line": 52, + "character": 4 + }, + "end": { + "line": 52, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 1027, + "LSPosition": { + "line": 52, + "character": 12 + }, + "Name": "13", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 1034, + "LSPosition": { + "line": 53, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method4(foo: string): number\n```\n\n\n*@param* `foo` — A value.\n\n\n*@returns* — Another value\n\n\n*@mytag*" + }, + "range": { + "start": { + "line": 53, + "character": 4 + }, + "end": { + "line": 53, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 1049, + "LSPosition": { + "line": 54, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Foo.property1: string\n```\n\n\n*@mytag* — comment1 comment2\n" + }, + "range": { + "start": { + "line": 54, + "character": 4 + }, + "end": { + "line": 54, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 1064, + "LSPosition": { + "line": 55, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Foo.property2: number\n```\n\n\n*@mytag1* — some comments\nsome more comments about mytag1\n\n\n*@mytag2* — here all the comments are on a new line\n\n\n*@mytag3*\n\n*@mytag*" + }, + "range": { + "start": { + "line": 55, + "character": 4 + }, + "end": { + "line": 55, + "character": 13 + } + } + } + }, + { + "marker": { + "Position": 1079, + "LSPosition": { + "line": 56, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method5(): void\n```\n\n\n*@mytag*" + }, + "range": { + "start": { + "line": 56, + "character": 4 + }, + "end": { + "line": 56, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 1100, + "LSPosition": { + "line": 57, + "character": 10 + }, + "Name": "14", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDoc.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDoc.baseline new file mode 100644 index 0000000000..26419cae89 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDoc.baseline @@ -0,0 +1,473 @@ +// === QuickInfo === +=== /quickInfoJsDoc.ts === +// /** +// * A constant +// * @deprecated +// */ +// var foo = "foo"; +// +// /** +// * A function +// * @deprecated +// */ +// function fn() { } +// +// /** +// * A class +// * @deprecated +// */ +// class C { +// /** +// * A field +// * @deprecated +// */ +// field = "field"; +// +// /** +// * A getter +// * @deprecated +// */ +// get getter() { +// return; +// } +// +// /** +// * A method +// * @deprecated +// */ +// m() { } +// +// get a() { +// this.field; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) C.field: string +// | ``` +// | A field +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// this.getter; +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) C.getter: void +// | ``` +// | A getter +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// this.m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.m(): void +// | ``` +// | A method +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// foo; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var foo: string +// | ``` +// | A constant +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// C/; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class C +// | ``` +// | A class +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// fn(); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*5*/. +// | ---------------------------------------------------------------------- +// +// return 1; +// } +// +// set a(value: number) { +// this.field; +// ^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) C.field: string +// | ``` +// | A field +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// this.getter; +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) C.getter: void +// | ``` +// | A getter +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// this.m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.m(): void +// | ``` +// | A method +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// foo; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var foo: string +// | ``` +// | A constant +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// C; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class C +// | ``` +// | A class +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// fn(); +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function fn(): void +// | ``` +// | A function +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// } +// } +[ + { + "marker": { + "Position": 416, + "LSPosition": { + "line": 38, + "character": 18 + }, + "Name": "0", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) C.field: string\n```\nA field\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 38, + "character": 13 + }, + "end": { + "line": 38, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 437, + "LSPosition": { + "line": 39, + "character": 19 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) C.getter: void\n```\nA getter\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 39, + "character": 13 + }, + "end": { + "line": 39, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 453, + "LSPosition": { + "line": 40, + "character": 14 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.m(): void\n```\nA method\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 40, + "character": 13 + }, + "end": { + "line": 40, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 466, + "LSPosition": { + "line": 41, + "character": 11 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar foo: string\n```\nA constant\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 41, + "character": 8 + }, + "end": { + "line": 41, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 477, + "LSPosition": { + "line": 42, + "character": 9 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass C\n```\nA class\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 42, + "character": 8 + }, + "end": { + "line": 42, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 492, + "LSPosition": { + "line": 43, + "character": 12 + }, + "Name": "5", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 565, + "LSPosition": { + "line": 49, + "character": 18 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) C.field: string\n```\nA field\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 49, + "character": 13 + }, + "end": { + "line": 49, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 586, + "LSPosition": { + "line": 50, + "character": 19 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) C.getter: void\n```\nA getter\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 50, + "character": 13 + }, + "end": { + "line": 50, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 602, + "LSPosition": { + "line": 51, + "character": 14 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.m(): void\n```\nA method\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 51, + "character": 13 + }, + "end": { + "line": 51, + "character": 14 + } + } + } + }, + { + "marker": { + "Position": 615, + "LSPosition": { + "line": 52, + "character": 11 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar foo: string\n```\nA constant\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 52, + "character": 8 + }, + "end": { + "line": 52, + "character": 11 + } + } + } + }, + { + "marker": { + "Position": 626, + "LSPosition": { + "line": 53, + "character": 9 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass C\n```\nA class\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 53, + "character": 8 + }, + "end": { + "line": 53, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 638, + "LSPosition": { + "line": 54, + "character": 10 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction fn(): void\n```\nA function\n\n*@deprecated*" + }, + "range": { + "start": { + "line": 54, + "character": 8 + }, + "end": { + "line": 54, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocAlias.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocAlias.baseline new file mode 100644 index 0000000000..19796c5e87 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocAlias.baseline @@ -0,0 +1,22 @@ +// === QuickInfo === +=== /b.ts === +// import { A } from "./a"; +// A() +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /**/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 1 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocGetterSetter.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocGetterSetter.baseline new file mode 100644 index 0000000000..b27e42bf2e --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocGetterSetter.baseline @@ -0,0 +1,381 @@ +// === QuickInfo === +=== /quickInfoJsDocGetterSetter.ts === +// class A { +// /** +// * getter A +// * @returns return A +// */ +// get x(): string { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) A.x: string +// | ``` +// | getter A +// | +// | *@returns* — return A +// | +// | ---------------------------------------------------------------------- +// return ""; +// } +// /** +// * setter A +// * @param value foo A +// * @todo empty jsdoc +// */ +// set x(value) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) A.x: string +// | ``` +// | getter A +// | +// | *@returns* — return A +// | +// | ---------------------------------------------------------------------- +// } +// // override both getter and setter +// class B extends A { +// /** +// * getter B +// * @returns return B +// */ +// get x(): string { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) B.x: string +// | ``` +// | getter B +// | +// | *@returns* — return B +// | +// | ---------------------------------------------------------------------- +// return ""; +// } +// /** +// * setter B +// * @param value foo B +// */ +// set x(vale) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) B.x: string +// | ``` +// | getter B +// | +// | *@returns* — return B +// | +// | ---------------------------------------------------------------------- +// } +// // not override +// class C extends A { } +// // only override setter +// class D extends A { +// /** +// * setter D +// * @param value foo D +// */ +// set x(val: string) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) D.x: string +// | ``` +// | setter D +// | +// | *@param* `value` — foo D +// | +// | ---------------------------------------------------------------------- +// } +// new A().x = "1"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) A.x: string +// | ``` +// | getter A +// | +// | *@returns* — return A +// | +// | ---------------------------------------------------------------------- +// new B().x = "1"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) B.x: string +// | ``` +// | getter B +// | +// | *@returns* — return B +// | +// | ---------------------------------------------------------------------- +// new C().x = "1"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) A.x: string +// | ``` +// | getter A +// | +// | *@returns* — return A +// | +// | ---------------------------------------------------------------------- +// new D().x = "1"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) D.x: string +// | ``` +// | setter D +// | +// | *@param* `value` — foo D +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 5, + "character": 8 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" + }, + "range": { + "start": { + "line": 5, + "character": 8 + }, + "end": { + "line": 5, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 205, + "LSPosition": { + "line": 13, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" + }, + "range": { + "start": { + "line": 13, + "character": 8 + }, + "end": { + "line": 13, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 340, + "LSPosition": { + "line": 21, + "character": 8 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" + }, + "range": { + "start": { + "line": 21, + "character": 8 + }, + "end": { + "line": 21, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 445, + "LSPosition": { + "line": 28, + "character": 8 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" + }, + "range": { + "start": { + "line": 28, + "character": 8 + }, + "end": { + "line": 28, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 607, + "LSPosition": { + "line": 38, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) D.x: string\n```\nsetter D\n\n*@param* `value` — foo D\n" + }, + "range": { + "start": { + "line": 38, + "character": 8 + }, + "end": { + "line": 38, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 636, + "LSPosition": { + "line": 40, + "character": 8 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" + }, + "range": { + "start": { + "line": 40, + "character": 8 + }, + "end": { + "line": 40, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 653, + "LSPosition": { + "line": 41, + "character": 8 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" + }, + "range": { + "start": { + "line": 41, + "character": 8 + }, + "end": { + "line": 41, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 670, + "LSPosition": { + "line": 42, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" + }, + "range": { + "start": { + "line": 42, + "character": 8 + }, + "end": { + "line": 42, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 687, + "LSPosition": { + "line": 43, + "character": 8 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) D.x: string\n```\nsetter D\n\n*@param* `value` — foo D\n" + }, + "range": { + "start": { + "line": 43, + "character": 8 + }, + "end": { + "line": 43, + "character": 9 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocInheritage.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocInheritage.baseline new file mode 100644 index 0000000000..b8d48ea63c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocInheritage.baseline @@ -0,0 +1,924 @@ +// === QuickInfo === +=== /quickInfoJsDocInheritage.ts === +// interface A { +// /** +// * @description A.foo1 +// */ +// foo1: number; +// /** +// * @description A.foo2 +// */ +// foo2: (para1: string) => number; +// } +// +// interface B { +// /** +// * @description B.foo1 +// */ +// foo1: number; +// /** +// * @description B.foo2 +// */ +// foo2: (para2: string) => number; +// } +// +// // implement multi interfaces with duplicate name +// // method for function signature +// class C implements A, B { +// foo1: number = 1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) C.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2(q: string) { return 1 } +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.foo2(q: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// // implement multi interfaces with duplicate name +// // property for function signature +// class D implements A, B { +// foo1: number = 1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) D.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2 = (q: string) => { return 1 } +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) D.foo2: (q: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// new C().foo1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) C.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new C().foo2; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.foo2(q: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new D().foo1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) D.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new D().foo2; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) D.foo2: (q: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// class Base1 { +// /** +// * @description Base1.foo1 +// */ +// foo1: number = 1; +// +// /** +// * +// * @param q Base1.foo2 parameter +// * @returns Base1.foo2 return +// */ +// foo2(q: string) { return 1 } +// } +// +// // extends class and implement interfaces with duplicate name +// // property override method +// class Drived1 extends Base1 implements A { +// foo1: number = 1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived1.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2(para1: string) { return 1 }; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Drived1.foo2(para1: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// // extends class and implement interfaces with duplicate name +// // method override method +// class Drived2 extends Base1 implements B { +// foo1: number = 1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived2.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2 = (para1: string) => { return 1; }; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived2.foo2: (para1: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// class Base2 { +// /** +// * @description Base2.foo1 +// */ +// foo1: number = 1; +// /** +// * +// * @param q Base2.foo2 parameter +// * @returns Base2.foo2 return +// */ +// foo2(q: string) { return 1 } +// } +// +// // extends class and implement interfaces with duplicate name +// // property override method +// class Drived3 extends Base2 implements A { +// foo1: number = 1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived3.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2(para1: string) { return 1 }; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Drived3.foo2(para1: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// // extends class and implement interfaces with duplicate name +// // method override method +// class Drived4 extends Base2 implements B { +// foo1: number = 1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived4.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2 = (para1: string) => { return 1; }; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived4.foo2: (para1: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// new Drived1().foo1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived1.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived1().foo2; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Drived1.foo2(para1: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived2().foo1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived2.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived2().foo2; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived2.foo2: (para1: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived3().foo1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived3.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived3().foo2; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Drived3.foo2(para1: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived4().foo1; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived4.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived4().foo2; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived4.foo2: (para1: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 429, + "LSPosition": { + "line": 25, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) C.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 25, + "character": 4 + }, + "end": { + "line": 25, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 451, + "LSPosition": { + "line": 26, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.foo2(q: string): number\n```\n" + }, + "range": { + "start": { + "line": 26, + "character": 4 + }, + "end": { + "line": 26, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 598, + "LSPosition": { + "line": 32, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) D.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 32, + "character": 4 + }, + "end": { + "line": 32, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 620, + "LSPosition": { + "line": 33, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) D.foo2: (q: string) => number\n```\n" + }, + "range": { + "start": { + "line": 33, + "character": 4 + }, + "end": { + "line": 33, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 666, + "LSPosition": { + "line": 36, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) C.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 36, + "character": 8 + }, + "end": { + "line": 36, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 680, + "LSPosition": { + "line": 37, + "character": 8 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.foo2(q: string): number\n```\n" + }, + "range": { + "start": { + "line": 37, + "character": 8 + }, + "end": { + "line": 37, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 694, + "LSPosition": { + "line": 38, + "character": 8 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) D.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 38, + "character": 8 + }, + "end": { + "line": 38, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 708, + "LSPosition": { + "line": 39, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) D.foo2: (q: string) => number\n```\n" + }, + "range": { + "start": { + "line": 39, + "character": 8 + }, + "end": { + "line": 39, + "character": 12 + } + } + } + }, + { + "marker": { + "Position": 1069, + "LSPosition": { + "line": 58, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived1.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 58, + "character": 4 + }, + "end": { + "line": 58, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 1091, + "LSPosition": { + "line": 59, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Drived1.foo2(para1: string): number\n```\n" + }, + "range": { + "start": { + "line": 59, + "character": 4 + }, + "end": { + "line": 59, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 1263, + "LSPosition": { + "line": 65, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived2.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 65, + "character": 4 + }, + "end": { + "line": 65, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 1285, + "LSPosition": { + "line": 66, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived2.foo2: (para1: string) => number\n```\n" + }, + "range": { + "start": { + "line": 66, + "character": 4 + }, + "end": { + "line": 66, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 1681, + "LSPosition": { + "line": 85, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived3.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 85, + "character": 4 + }, + "end": { + "line": 85, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 1703, + "LSPosition": { + "line": 86, + "character": 4 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Drived3.foo2(para1: string): number\n```\n" + }, + "range": { + "start": { + "line": 86, + "character": 4 + }, + "end": { + "line": 86, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 1875, + "LSPosition": { + "line": 92, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived4.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 92, + "character": 4 + }, + "end": { + "line": 92, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 1897, + "LSPosition": { + "line": 93, + "character": 4 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived4.foo2: (para1: string) => number\n```\n" + }, + "range": { + "start": { + "line": 93, + "character": 4 + }, + "end": { + "line": 93, + "character": 8 + } + } + } + }, + { + "marker": { + "Position": 1955, + "LSPosition": { + "line": 96, + "character": 14 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived1.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 96, + "character": 14 + }, + "end": { + "line": 96, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 1975, + "LSPosition": { + "line": 97, + "character": 14 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Drived1.foo2(para1: string): number\n```\n" + }, + "range": { + "start": { + "line": 97, + "character": 14 + }, + "end": { + "line": 97, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 1995, + "LSPosition": { + "line": 98, + "character": 14 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived2.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 98, + "character": 14 + }, + "end": { + "line": 98, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 2015, + "LSPosition": { + "line": 99, + "character": 14 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived2.foo2: (para1: string) => number\n```\n" + }, + "range": { + "start": { + "line": 99, + "character": 14 + }, + "end": { + "line": 99, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 2035, + "LSPosition": { + "line": 100, + "character": 14 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived3.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 100, + "character": 14 + }, + "end": { + "line": 100, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 2055, + "LSPosition": { + "line": 101, + "character": 14 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Drived3.foo2(para1: string): number\n```\n" + }, + "range": { + "start": { + "line": 101, + "character": 14 + }, + "end": { + "line": 101, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 2075, + "LSPosition": { + "line": 102, + "character": 14 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived4.foo1: number\n```\n" + }, + "range": { + "start": { + "line": 102, + "character": 14 + }, + "end": { + "line": 102, + "character": 18 + } + } + } + }, + { + "marker": { + "Position": 2095, + "LSPosition": { + "line": 103, + "character": 14 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived4.foo2: (para1: string) => number\n```\n" + }, + "range": { + "start": { + "line": 103, + "character": 14 + }, + "end": { + "line": 103, + "character": 18 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags1.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags1.baseline new file mode 100644 index 0000000000..bd24b08def --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags1.baseline @@ -0,0 +1,51 @@ +// === QuickInfo === +=== /quickInfoJsDocTags1.ts === +// /** +// * Doc +// * @author Me +// * @augments {C} Augments it +// * @template T A template +// * @type {number | string} A type +// * @typedef {number | string} NumOrStr +// * @property {number} x The prop +// * @param {number} x The param +// * @returns The result +// * @see x (the parameter) +// */ +// function foo(x) {} +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 298, + "LSPosition": { + "line": 12, + "character": 9 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(x: any): void\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 9 + }, + "end": { + "line": 12, + "character": 12 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags10.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags10.baseline new file mode 100644 index 0000000000..ba57a2ddeb --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags10.baseline @@ -0,0 +1,51 @@ +// === QuickInfo === +=== /quickInfoJsDocTags10.js === +// /** +// * @param {T1} a +// * @param {T2} a +// * @template T1,T2 Comment Text +// */ +// const foo = (a, b) => {}; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (a: T1, b: any) => void +// | ``` +// | +// | +// | *@param* `a` +// | +// | *@param* `a` +// | +// | *@template* `T1`, `T2` — Comment Text +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 80, + "LSPosition": { + "line": 5, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (a: T1, b: any) => void\n```\n\n\n*@param* `a`\n\n*@param* `a`\n\n*@template* `T1`, `T2` — Comment Text\n" + }, + "range": { + "start": { + "line": 5, + "character": 6 + }, + "end": { + "line": 5, + "character": 9 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags11.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags11.baseline new file mode 100644 index 0000000000..5bded65551 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags11.baseline @@ -0,0 +1,55 @@ +// === QuickInfo === +=== /quickInfoJsDocTags11.js === +// /** +// * @param {T1} a +// * @param {T2} b +// * @template {number} T1 Comment T1 +// * @template {number} T2 Comment T2 +// */ +// const foo = (a, b) => {}; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (a: T1, b: T2) => void +// | ``` +// | +// | +// | *@param* `a` +// | +// | *@param* `b` +// | +// | *@template* `T1` — Comment T1 +// | +// | +// | *@template* `T2` — Comment T2 +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 120, + "LSPosition": { + "line": 6, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (a: T1, b: T2) => void\n```\n\n\n*@param* `a`\n\n*@param* `b`\n\n*@template* `T1` — Comment T1\n\n\n*@template* `T2` — Comment T2\n" + }, + "range": { + "start": { + "line": 6, + "character": 6 + }, + "end": { + "line": 6, + "character": 9 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags12.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags12.baseline new file mode 100644 index 0000000000..64f140eeab --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags12.baseline @@ -0,0 +1,55 @@ +// === QuickInfo === +=== /quickInfoJsDocTags12.ts === +// /** +// * @param {Object} options the args object +// * @param {number} options.a first number +// * @param {number} options.b second number +// * @param {Function} callback the callback function +// * @returns {number} +// */ +// function f(options, callback = null) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(options: any, callback?: any): void +// | ``` +// | +// | +// | *@param* `options` — the args object +// | +// | +// | *@param* `callback` — the callback function +// | +// | +// | *@returns* +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 218, + "LSPosition": { + "line": 7, + "character": 9 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(options: any, callback?: any): void\n```\n\n\n*@param* `options` — the args object\n\n\n*@param* `callback` — the callback function\n\n\n*@returns*" + }, + "range": { + "start": { + "line": 7, + "character": 9 + }, + "end": { + "line": 7, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags14.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags14.baseline new file mode 100644 index 0000000000..c47cb3065f --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags14.baseline @@ -0,0 +1,56 @@ +// === QuickInfo === +=== /quickInfoJsDocTags14.ts === +// /** +// * @param {Object} options the args object +// * @param {number} options.a first number +// * @param {number} options.b second number +// * @param {Object} options.c sub-object +// * @param {number} options.c.d third number +// * @param {Function} callback the callback function +// * @returns {number} +// */ +// function fn(options, callback = null) { } +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function fn(options: any, callback?: any): void +// | ``` +// | +// | +// | *@param* `options` — the args object +// | +// | +// | *@param* `callback` — the callback function +// | +// | +// | *@returns* +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 302, + "LSPosition": { + "line": 9, + "character": 9 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction fn(options: any, callback?: any): void\n```\n\n\n*@param* `options` — the args object\n\n\n*@param* `callback` — the callback function\n\n\n*@returns*" + }, + "range": { + "start": { + "line": 9, + "character": 9 + }, + "end": { + "line": 9, + "character": 11 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags15.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags15.baseline new file mode 100644 index 0000000000..7d27be220b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags15.baseline @@ -0,0 +1,121 @@ +// === QuickInfo === +=== /b.js === +// import * as _a from "./a.js"; +// /** +// * @implements {_a.Foo} +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type Foo = { getName: _a.Bar; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// */ +// class C1 { } +// +// /** +// * @extends {_a.Foo} +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type Foo = { getName: _a.Bar; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// */ +// class C2 { } +// +// /** +// * @augments {_a.Foo} +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type Foo = { getName: _a.Bar; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// */ +// class C3 { } +[ + { + "marker": { + "Position": 56, + "LSPosition": { + "line": 2, + "character": 22 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype Foo = { getName: _a.Bar; }\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 19 + }, + "end": { + "line": 2, + "character": 22 + } + } + } + }, + { + "marker": { + "Position": 99, + "LSPosition": { + "line": 7, + "character": 19 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype Foo = { getName: _a.Bar; }\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 16 + }, + "end": { + "line": 7, + "character": 19 + } + } + } + }, + { + "marker": { + "Position": 143, + "LSPosition": { + "line": 12, + "character": 20 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype Foo = { getName: _a.Bar; }\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 17 + }, + "end": { + "line": 12, + "character": 20 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags16.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags16.baseline new file mode 100644 index 0000000000..7207d867bb --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags16.baseline @@ -0,0 +1,88 @@ +// === QuickInfo === +=== /quickInfoJsDocTags16.ts === +// class A { +// /** +// * Description text here. +// * +// * @virtual +// */ +// foo() { } +// } +// +// class B extends A { +// override foo() { } +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.foo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// class C extends B { +// override foo() { } +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.foo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 129, + "LSPosition": { + "line": 10, + "character": 13 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.foo(): void\n```\n" + }, + "range": { + "start": { + "line": 10, + "character": 13 + }, + "end": { + "line": 10, + "character": 16 + } + } + } + }, + { + "marker": { + "Position": 175, + "LSPosition": { + "line": 14, + "character": 13 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.foo(): void\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 13 + }, + "end": { + "line": 14, + "character": 16 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags3.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags3.baseline new file mode 100644 index 0000000000..8543b36c5a --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags3.baseline @@ -0,0 +1,55 @@ +// === QuickInfo === +=== /quickInfoJsDocTags3.ts === +// interface Foo { +// /** +// * comment +// * @author Me +// * @see x (the parameter) +// * @param {number} x - x comment +// * @param {number} y - y comment +// * @throws {Error} comment +// */ +// method(x: number, y: number): void; +// } +// +// class Bar implements Foo { +// method(): void { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Bar.method(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// throw new Error("Method not implemented."); +// } +// } +[ + { + "marker": { + "Position": 290, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Bar.method(): void\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 4 + }, + "end": { + "line": 13, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline new file mode 100644 index 0000000000..2892d1f230 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline @@ -0,0 +1,58 @@ +// === QuickInfo === +=== /quickInfoJsDocTags4.ts === +// class Foo { +// /** +// * comment +// * @author Me +// * @see x (the parameter) +// * @param {number} x - x comment +// * @param {number} y - y comment +// * @returns The result +// */ +// method(x: number, y: number): number { +// return x + y; +// } +// } +// +// class Bar extends Foo { +// method(x: number, y: number): number { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Bar.method(x: number, y: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// const res = super.method(x, y) + 100; +// return res; +// } +// } +[ + { + "marker": { + "Position": 309, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Bar.method(x: number, y: number): number\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 4 + }, + "end": { + "line": 15, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline new file mode 100644 index 0000000000..c94faf9bad --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline @@ -0,0 +1,58 @@ +// === QuickInfo === +=== /quickInfoJsDocTags5.js === +// class Foo { +// /** +// * comment +// * @author Me +// * @see x (the parameter) +// * @param {number} x - x comment +// * @param {number} y - y comment +// * @returns The result +// */ +// method(x, y) { +// return x + y; +// } +// } +// +// class Bar extends Foo { +// method(x, y) { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Bar.method(x: any, y: any): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// const res = super.method(x, y) + 100; +// return res; +// } +// } +[ + { + "marker": { + "Position": 285, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\n" + }, + "range": { + "start": { + "line": 15, + "character": 4 + }, + "end": { + "line": 15, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags6.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags6.baseline new file mode 100644 index 0000000000..63fb95c127 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags6.baseline @@ -0,0 +1,61 @@ +// === QuickInfo === +=== /quickInfoJsDocTags6.js === +// class Foo { +// /** +// * comment +// * @author Me +// * @see x (the parameter) +// * @param {number} x - x comment +// * @param {number} y - y comment +// * @returns The result +// */ +// method(x, y) { +// return x + y; +// } +// } +// +// class Bar extends Foo { +// /** @inheritDoc */ +// method(x, y) { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Bar.method(x: any, y: any): number +// | ``` +// | +// | +// | *@inheritDoc* +// | ---------------------------------------------------------------------- +// const res = super.method(x, y) + 100; +// return res; +// } +// } +[ + { + "marker": { + "Position": 308, + "LSPosition": { + "line": 16, + "character": 4 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\n\n\n*@inheritDoc*" + }, + "range": { + "start": { + "line": 16, + "character": 4 + }, + "end": { + "line": 16, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags7.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags7.baseline new file mode 100644 index 0000000000..d78603cd65 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags7.baseline @@ -0,0 +1,49 @@ +// === QuickInfo === +=== /quickInfoJsDocTags7.js === +// /** +// * @typedef {{ [x: string]: any, y: number }} Foo +// */ +// +// /** +// * @type {(t: T) => number} +// * @template T +// */ +// const foo = t => t.y; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (t: T) => number +// | ``` +// | +// | +// | *@template* `T` +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 116, + "LSPosition": { + "line": 8, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T`" + }, + "range": { + "start": { + "line": 8, + "character": 6 + }, + "end": { + "line": 8, + "character": 9 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags8.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags8.baseline new file mode 100644 index 0000000000..f778578cff --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags8.baseline @@ -0,0 +1,49 @@ +// === QuickInfo === +=== /quickInfoJsDocTags8.js === +// /** +// * @typedef {{ [x: string]: any, y: number }} Foo +// */ +// +// /** +// * @type {(t: T) => number} +// * @template {Foo} T +// */ +// const foo = t => t.y; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (t: T) => number +// | ``` +// | +// | +// | *@template* `T` +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 122, + "LSPosition": { + "line": 8, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T`" + }, + "range": { + "start": { + "line": 8, + "character": 6 + }, + "end": { + "line": 8, + "character": 9 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags9.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags9.baseline new file mode 100644 index 0000000000..568d8acf22 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags9.baseline @@ -0,0 +1,50 @@ +// === QuickInfo === +=== /quickInfoJsDocTags9.js === +// /** +// * @typedef {{ [x: string]: any, y: number }} Foo +// */ +// +// /** +// * @type {(t: T) => number} +// * @template {Foo} T Comment Text +// */ +// const foo = t => t.y; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (t: T) => number +// | ``` +// | +// | +// | *@template* `T` — Comment Text +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 135, + "LSPosition": { + "line": 8, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T` — Comment Text\n" + }, + "range": { + "start": { + "line": 8, + "character": 6 + }, + "end": { + "line": 8, + "character": 9 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsCallback.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsCallback.baseline new file mode 100644 index 0000000000..9d24adc4e0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsCallback.baseline @@ -0,0 +1,83 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsCallback.js === +// /** +// * @callback cb +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type cb = (x: string) => any +// | ``` +// | +// | ---------------------------------------------------------------------- +// * @param {string} x - x comment +// */ +// +// /** +// * @param {cb} bar -callback comment +// ^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type cb = (x: string) => any +// | ``` +// | +// | ---------------------------------------------------------------------- +// */ +// function foo(bar) { +// bar(bar); +// } +[ + { + "marker": { + "Position": 19, + "LSPosition": { + "line": 1, + "character": 15 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype cb = (x: string) => any\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 13 + }, + "end": { + "line": 1, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 73, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype cb = (x: string) => any\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 11 + }, + "end": { + "line": 6, + "character": 13 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload01.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload01.baseline new file mode 100644 index 0000000000..842dcf0481 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload01.baseline @@ -0,0 +1,84 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsFunctionOverload01.ts === +// /** +// * Doc foo +// */ +// declare function foo(): void; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | Doc foo +// | ---------------------------------------------------------------------- +// +// /** +// * Doc foo overloaded +// * @tag Tag text +// */ +// declare function foo(x: number): void +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | Doc foo +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 36, + "LSPosition": { + "line": 3, + "character": 17 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\nDoc foo" + }, + "range": { + "start": { + "line": 3, + "character": 17 + }, + "end": { + "line": 3, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 114, + "LSPosition": { + "line": 9, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\nDoc foo" + }, + "range": { + "start": { + "line": 9, + "character": 17 + }, + "end": { + "line": 9, + "character": 20 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload05.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload05.baseline new file mode 100644 index 0000000000..af4d5156a4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsFunctionOverload05.baseline @@ -0,0 +1,80 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsFunctionOverload05.ts === +// declare function foo(): void; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /** +// * @tag Tag text +// */ +// declare function foo(x: number): void +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 0, + "character": 17 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" + }, + "range": { + "start": { + "line": 0, + "character": 17 + }, + "end": { + "line": 0, + "character": 20 + } + } + } + }, + { + "marker": { + "Position": 73, + "LSPosition": { + "line": 5, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 17 + }, + "end": { + "line": 5, + "character": 20 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsTypedef.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsTypedef.baseline new file mode 100644 index 0000000000..05bd1f6763 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTagsTypedef.baseline @@ -0,0 +1,87 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsTypedef.js === +// /** +// * Bar comment +// * @typedef {Object} Bar +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type Bar = { baz: string; qux: string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// * @property {string} baz - baz comment +// * @property {string} qux - qux comment +// */ +// +// /** +// * foo comment +// * @param {Bar} x - x comment +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type Bar = { baz: string; qux: string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// * @returns {Bar} +// */ +// function foo(x) { +// return x; +// } +[ + { + "marker": { + "Position": 40, + "LSPosition": { + "line": 2, + "character": 21 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype Bar = { baz: string; qux: string; }\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 21 + }, + "end": { + "line": 2, + "character": 24 + } + } + } + }, + { + "marker": { + "Position": 159, + "LSPosition": { + "line": 9, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype Bar = { baz: string; qux: string; }\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 11 + }, + "end": { + "line": 9, + "character": 14 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocThisTag.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocThisTag.baseline new file mode 100644 index 0000000000..84ef16c621 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocThisTag.baseline @@ -0,0 +1,44 @@ +// === QuickInfo === +=== /a.ts === +// /** @this {number} */ +// function f() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(): void +// | ``` +// | +// | +// | *@this* +// | ---------------------------------------------------------------------- +// this +// } +[ + { + "marker": { + "Position": 32, + "LSPosition": { + "line": 1, + "character": 10 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(): void\n```\n\n\n*@this*" + }, + "range": { + "start": { + "line": 1, + "character": 9 + }, + "end": { + "line": 1, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink10.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink10.baseline new file mode 100644 index 0000000000..eeedf34a77 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink10.baseline @@ -0,0 +1,42 @@ +// === QuickInfo === +=== /quickInfoLink10.ts === +// /** +// * start {@link https://vscode.dev/ | end} +// */ +// const a = () => 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const a: () => number +// | ``` +// | start [end](https://vscode.dev/) +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 57, + "LSPosition": { + "line": 3, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst a: () => number\n```\nstart [end](https://vscode.dev/)" + }, + "range": { + "start": { + "line": 3, + "character": 6 + }, + "end": { + "line": 3, + "character": 7 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink11.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink11.baseline new file mode 100644 index 0000000000..970f6fc772 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink11.baseline @@ -0,0 +1,50 @@ +// === QuickInfo === +=== /quickInfoLink11.ts === +// /** +// * {@link https://vscode.dev} +// * [link text]{https://vscode.dev} +// * {@link https://vscode.dev|link text} +// * {@link https://vscode.dev link text} +// */ +// function f() {} +// +// f(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(): void +// | ``` +// | [https://vscode.dev](https://vscode.dev) +// | [link text]{https://vscode.dev} +// | [link text](https://vscode.dev) +// | [link text](https://vscode.dev) +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 170, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(): void\n```\n[https://vscode.dev](https://vscode.dev)\n[link text]{https://vscode.dev}\n[link text](https://vscode.dev)\n[link text](https://vscode.dev)" + }, + "range": { + "start": { + "line": 8, + "character": 0 + }, + "end": { + "line": 8, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink5.baseline new file mode 100644 index 0000000000..0d5b1aff12 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink5.baseline @@ -0,0 +1,43 @@ +// === QuickInfo === +=== /quickInfoLink5.ts === +// const A = 123; +// /** +// * See {@link A| constant A} instead +// */ +// const B = 456; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const B: 456 +// | ``` +// | See [constant A](file:///quickInfoLink5.ts#1,7-1,8) instead +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 67, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst B: 456\n```\nSee [constant A](file:///quickInfoLink5.ts#1,7-1,8) instead" + }, + "range": { + "start": { + "line": 4, + "character": 6 + }, + "end": { + "line": 4, + "character": 7 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink6.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink6.baseline new file mode 100644 index 0000000000..6148214554 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink6.baseline @@ -0,0 +1,43 @@ +// === QuickInfo === +=== /quickInfoLink6.ts === +// const A = 123; +// /** +// * See {@link A |constant A} instead +// */ +// const B = 456; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const B: 456 +// | ``` +// | See [constant A](file:///quickInfoLink6.ts#1,7-1,8) instead +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 67, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst B: 456\n```\nSee [constant A](file:///quickInfoLink6.ts#1,7-1,8) instead" + }, + "range": { + "start": { + "line": 4, + "character": 6 + }, + "end": { + "line": 4, + "character": 7 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink7.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink7.baseline new file mode 100644 index 0000000000..0d639bf361 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink7.baseline @@ -0,0 +1,42 @@ +// === QuickInfo === +=== /quickInfoLink7.ts === +// /** +// * See {@link | } instead +// */ +// const B = 456; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const B: 456 +// | ``` +// | See | instead +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 46, + "LSPosition": { + "line": 3, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst B: 456\n```\nSee | instead" + }, + "range": { + "start": { + "line": 3, + "character": 6 + }, + "end": { + "line": 3, + "character": 7 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink8.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink8.baseline new file mode 100644 index 0000000000..e85f0f34cf --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink8.baseline @@ -0,0 +1,43 @@ +// === QuickInfo === +=== /quickInfoLink8.ts === +// const A = 123; +// /** +// * See {@link A | constant A} instead +// */ +// const B = 456; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const B: 456 +// | ``` +// | See [constant A](file:///quickInfoLink8.ts#1,7-1,8) instead +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 67, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst B: 456\n```\nSee [constant A](file:///quickInfoLink8.ts#1,7-1,8) instead" + }, + "range": { + "start": { + "line": 4, + "character": 6 + }, + "end": { + "line": 4, + "character": 7 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink9.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink9.baseline new file mode 100644 index 0000000000..c8755dabad --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoLink9.baseline @@ -0,0 +1,26 @@ +// === QuickInfo === +=== /quickInfoLink9.ts === +// type Foo = { +// /** +// * Text before {@link a} text after +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /**/. +// | ---------------------------------------------------------------------- +// */ +// c: (a: number) => void; +// } +[ + { + "marker": { + "Position": 47, + "LSPosition": { + "line": 2, + "character": 26 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoNestedExportEqualExportDefault.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoNestedExportEqualExportDefault.baseline new file mode 100644 index 0000000000..9be707f098 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoNestedExportEqualExportDefault.baseline @@ -0,0 +1,58 @@ +// === QuickInfo === +=== /quickInfoNestedExportEqualExportDefault.ts === +// export = (state, messages) => { +// export default { +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) (Anonymous function).default: {} +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// } +// } +[ + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 1, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) (Anonymous function).default: {}\n```\n" + }, + "range": { + "start": { + "line": 1, + "character": 3 + }, + "end": { + "line": 1, + "character": 9 + } + } + } + }, + { + "marker": { + "Position": 49, + "LSPosition": { + "line": 1, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline new file mode 100644 index 0000000000..db99bd7f4d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline @@ -0,0 +1,42 @@ +// === QuickInfo === +=== /a.tsx === +// declare namespace JSX { +// interface IntrinsicElements { [elemName: string]: any; } +// } +//
; +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | any +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 3, + "character": 1 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nany\n```\n" + }, + "range": { + "start": { + "line": 3, + "character": 1 + }, + "end": { + "line": 3, + "character": 4 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline new file mode 100644 index 0000000000..1e6e27d05e --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline @@ -0,0 +1,80 @@ +// === QuickInfo === +=== /a.tsx === +// declare namespace JSX { +// interface IntrinsicElements { +// [k: `foo${string}`]: any; +// [k: `foobar${string}`]: any; +// } +// } +// ; +// ^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | any +// | ``` +// | +// | ---------------------------------------------------------------------- +// ; +// ^^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | any +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 126, + "LSPosition": { + "line": 6, + "character": 1 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nany\n```\n" + }, + "range": { + "start": { + "line": 6, + "character": 1 + }, + "end": { + "line": 6, + "character": 7 + } + } + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 7, + "character": 1 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nany\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 1 + }, + "end": { + "line": 7, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxNamespacedName.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxNamespacedName.baseline new file mode 100644 index 0000000000..8dbf51c068 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnJsxNamespacedName.baseline @@ -0,0 +1,21 @@ +// === QuickInfo === +=== /a.tsx === +// ; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /**/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 1, + "LSPosition": { + "line": 0, + "character": 1 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnParameterProperties.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnParameterProperties.baseline new file mode 100644 index 0000000000..953611479b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnParameterProperties.baseline @@ -0,0 +1,97 @@ +// === QuickInfo === +=== /quickInfoOnParameterProperties.ts === +// interface IFoo { +// /** this is the name of blabla +// * - use blabla +// * @example blabla +// */ +// name?: string; +// } +// +// // test1 should work +// class Foo implements IFoo { +// //public name: string = ''; +// constructor( +// public name: string, // documentation should leech and work ! +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Foo.name: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ) { +// } +// } +// +// // test2 work +// class Foo2 implements IFoo { +// public name: string = ''; // documentation leeched and work ! +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Foo2.name: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor( +// //public name: string, +// ) { +// } +// } +[ + { + "marker": { + "Position": 226, + "LSPosition": { + "line": 12, + "character": 13 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Foo.name: string\n```\n" + }, + "range": { + "start": { + "line": 12, + "character": 11 + }, + "end": { + "line": 12, + "character": 15 + } + } + } + }, + { + "marker": { + "Position": 347, + "LSPosition": { + "line": 19, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Foo2.name: string\n```\n" + }, + "range": { + "start": { + "line": 19, + "character": 9 + }, + "end": { + "line": 19, + "character": 13 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnThis5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnThis5.baseline new file mode 100644 index 0000000000..2d7a07ec52 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnThis5.baseline @@ -0,0 +1,210 @@ +// === QuickInfo === +=== /quickInfoOnThis5.ts === +// const foo = { +// num: 0, +// f() { +// type Y = typeof this; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// type Z = typeof this.num; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | any +// | ``` +// | +// | ---------------------------------------------------------------------- +// }, +// g(this: number) { +// type X = typeof this; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) this: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// class Foo { +// num = 0; +// f() { +// type Y = typeof this; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | this +// | ``` +// | +// | ---------------------------------------------------------------------- +// type Z = typeof this.num; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | this +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// g(this: number) { +// type X = typeof this; +// ^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) this: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +[ + { + "marker": { + "Position": 62, + "LSPosition": { + "line": 3, + "character": 26 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 92, + "LSPosition": { + "line": 4, + "character": 26 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nany\n```\n" + }, + "range": { + "start": { + "line": 4, + "character": 24 + }, + "end": { + "line": 4, + "character": 28 + } + } + } + }, + { + "marker": { + "Position": 155, + "LSPosition": { + "line": 7, + "character": 26 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) this: number\n```\n" + }, + "range": { + "start": { + "line": 7, + "character": 24 + }, + "end": { + "line": 7, + "character": 28 + } + } + } + }, + { + "marker": { + "Position": 228, + "LSPosition": { + "line": 13, + "character": 26 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nthis\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 24 + }, + "end": { + "line": 13, + "character": 28 + } + } + } + }, + { + "marker": { + "Position": 258, + "LSPosition": { + "line": 14, + "character": 26 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nthis\n```\n" + }, + "range": { + "start": { + "line": 14, + "character": 24 + }, + "end": { + "line": 14, + "character": 28 + } + } + } + }, + { + "marker": { + "Position": 320, + "LSPosition": { + "line": 17, + "character": 26 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) this: number\n```\n" + }, + "range": { + "start": { + "line": 17, + "character": 24 + }, + "end": { + "line": 17, + "character": 28 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline new file mode 100644 index 0000000000..d15c818fb1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline @@ -0,0 +1,63 @@ +// === QuickInfo === +=== /quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts === +// export type DocumentFilter = { +// /** A language id, like `typescript`. */ +// language: string; +// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +// scheme?: string; +// /** A glob pattern, like `*.{ts,js}`. */ +// pattern?: string; +// } | { +// /** A language id, like `typescript`. */ +// language?: string; +// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +// scheme: string; +// /** A glob pattern, like `*.{ts,js}`. */ +// pattern?: string; +// } | { +// /** A language id, like `typescript`. */ +// language?: string; +// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +// scheme?: string; +// /** A glob pattern, like `*.{ts,js}`. */ +// pattern: string; +// }; +// +// declare let x: DocumentFilter; +// x.language +// ^^^^^^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) language: string +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 746, + "LSPosition": { + "line": 24, + "character": 2 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) language: string\n```\n" + }, + "range": { + "start": { + "line": 24, + "character": 2 + }, + "end": { + "line": 24, + "character": 10 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline new file mode 100644 index 0000000000..e4a3c884b1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline @@ -0,0 +1,48 @@ +// === QuickInfo === +=== /something.js === +// var C = function () { } +// /** +// * The prototype method. +// * @param {string} a Parameter definition. +// */ +// function f(a) {} +// C.prototype.m = f; +// +// var x = new C(); +// x.m(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: any +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 155, + "LSPosition": { + "line": 9, + "character": 1 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: any\n```\n" + }, + "range": { + "start": { + "line": 9, + "character": 0 + }, + "end": { + "line": 9, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoSatisfiesTag.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoSatisfiesTag.baseline new file mode 100644 index 0000000000..f7553d1e8d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoSatisfiesTag.baseline @@ -0,0 +1,42 @@ +// === QuickInfo === +=== /a.js === +// /** @satisfies {number} comment */ +// const a = 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const a: 1 +// | ``` +// | +// | +// | *@satisfies* — comment +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 1, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst a: 1\n```\n\n\n*@satisfies* — comment " + }, + "range": { + "start": { + "line": 1, + "character": 6 + }, + "end": { + "line": 1, + "character": 7 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoTypedefTag.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoTypedefTag.baseline new file mode 100644 index 0000000000..f472279f2c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoTypedefTag.baseline @@ -0,0 +1,128 @@ +// === QuickInfo === +=== /a.js === +// /** +// * The typedef tag should not appear in the quickinfo. +// * @typedef {{ foo: 'foo' }} Foo +// */ +// function f() { } +// f() +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** +// * A removed comment +// * @tag Usage shows that non-param tags in comments explain the typedef instead of using it +// * @typedef {{ nope: any }} Nope not here +// * @tag comment 2 +// */ +// function g() { } +// g() +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function g(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** +// * The whole thing is kept +// * @param {Local} keep +// * @typedef {{ local: any }} Local kept too +// * @returns {void} also kept +// */ +// function h(keep) { } +// h({ nope: 1 }) +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function h(keep: Local): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 114, + "LSPosition": { + "line": 5, + "character": 1 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(): void\n```\n" + }, + "range": { + "start": { + "line": 5, + "character": 0 + }, + "end": { + "line": 5, + "character": 1 + } + } + } + }, + { + "marker": { + "Position": 316, + "LSPosition": { + "line": 13, + "character": 1 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction g(): void\n```\n" + }, + "range": { + "start": { + "line": 13, + "character": 0 + }, + "end": { + "line": 13, + "character": 1 + } + } + } + }, + { + "marker": { + "Position": 472, + "LSPosition": { + "line": 21, + "character": 1 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction h(keep: Local): void\n```\n" + }, + "range": { + "start": { + "line": 21, + "character": 0 + }, + "end": { + "line": 21, + "character": 1 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoUniqueSymbolJsDoc.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoUniqueSymbolJsDoc.baseline new file mode 100644 index 0000000000..9bbc1db294 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoUniqueSymbolJsDoc.baseline @@ -0,0 +1,41 @@ +// === QuickInfo === +=== /a.js === +// /** @type {unique symbol} */ +// const foo = Symbol(); +// foo +// ^^^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: typeof foo +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 54, + "LSPosition": { + "line": 2, + "character": 3 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: typeof foo\n```\n" + }, + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 3 + } + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline new file mode 100644 index 0000000000..5b85fe7115 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline @@ -0,0 +1,94 @@ +// === SignatureHelp === +=== /jsDocDontBreakWithNamespaces.js === +// /** +// * @returns {module:@nodefuel/web~Webserver~wsServer#hello} Websocket server object +// */ +// function foo() { } +// foo(''); +// ^ +// | ---------------------------------------------------------------------- +// | foo(): module +// | ---------------------------------------------------------------------- +// +// /** +// * @type {module:xxxxx} */ +// */ +// function bar() { } +// bar(''); +// ^ +// | ---------------------------------------------------------------------- +// | bar(): void +// | ---------------------------------------------------------------------- +// +// /** @type {function(module:xxxx, module:xxxx): module:xxxxx} */ +// function zee() { } +// zee(''); +// ^ +// | ---------------------------------------------------------------------- +// | zee(): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 117, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "foo", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "foo(): module", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 181, + "LSPosition": { + "line": 10, + "character": 6 + }, + "Name": "bar", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "bar(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 274, + "LSPosition": { + "line": 14, + "character": 6 + }, + "Name": "zee", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "zee(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline new file mode 100644 index 0000000000..4738ec0a65 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline @@ -0,0 +1,54 @@ +// === SignatureHelp === +=== /Foo.js === +// /** +// * Filters a path based on a regexp or glob pattern. +// * @param {String} basePath The base path where the search will be performed. +// * @param {String} pattern A string defining a regexp of a glob pattern. +// * @param {String} type The search pattern type, can be a regexp or a glob. +// * @param {Object} options A object containing options to the search. +// * @return {Array} A list containing the filtered paths. +// */ +// function pathFilter(basePath, pattern, type, options){ +// //... +// } +// pathFilter('foo', 'bar', 'baz', {}); +// ^ +// | ---------------------------------------------------------------------- +// | pathFilter(**basePath: String**, pattern: String, type: String, options: Object): any[] +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 489, + "LSPosition": { + "line": 11, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "pathFilter(basePath: String, pattern: String, type: String, options: Object): any[]", + "parameters": [ + { + "label": "basePath: String" + }, + { + "label": "pattern: String" + }, + { + "label": "type: String" + }, + { + "label": "options: Object" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline new file mode 100644 index 0000000000..bb6a6fdfb8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline @@ -0,0 +1,164 @@ +// === SignatureHelp === +=== /Foo.js === +// /** +// * @param {string} p1 - A string param +// * @param {string?} p2 - An optional param +// * @param {string} [p3] - Another optional param +// * @param {string} [p4="test"] - An optional param with a default value +// */ +// function f1(p1, p2, p3, p4){} +// f1('foo', 'bar', 'baz', 'qux'); +// ^ +// | ---------------------------------------------------------------------- +// | f1(**p1: string**, p2: string, p3?: string, p4?: string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | f1(p1: string, **p2: string**, p3?: string, p4?: string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | f1(p1: string, p2: string, **p3?: string**, p4?: string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | f1(p1: string, p2: string, p3?: string, **p4?: string**): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 244, + "LSPosition": { + "line": 7, + "character": 3 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", + "parameters": [ + { + "label": "p1: string" + }, + { + "label": "p2: string" + }, + { + "label": "p3?: string" + }, + { + "label": "p4?: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 251, + "LSPosition": { + "line": 7, + "character": 10 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", + "parameters": [ + { + "label": "p1: string" + }, + { + "label": "p2: string" + }, + { + "label": "p3?: string" + }, + { + "label": "p4?: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 258, + "LSPosition": { + "line": 7, + "character": 17 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", + "parameters": [ + { + "label": "p1: string" + }, + { + "label": "p2: string" + }, + { + "label": "p3?: string" + }, + { + "label": "p4?: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 265, + "LSPosition": { + "line": 7, + "character": 24 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", + "parameters": [ + { + "label": "p1: string" + }, + { + "label": "p2: string" + }, + { + "label": "p3?: string" + }, + { + "label": "p4?: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 3 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline new file mode 100644 index 0000000000..e41f00da6a --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline @@ -0,0 +1,25 @@ +// === SignatureHelp === +=== /jsDocSignature_43394.ts === +// /** +// * @typedef {Object} Foo +// * @property {number} ... +// * @typedef {number} Bar +// ^ +// | ---------------------------------------------------------------------- +// | No signaturehelp at /**/. +// | ---------------------------------------------------------------------- +// */ +[ + { + "marker": { + "Position": 58, + "LSPosition": { + "line": 3, + "character": 3 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline b/testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline new file mode 100644 index 0000000000..2043548ae2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline @@ -0,0 +1,46 @@ +// === SignatureHelp === +=== /dummy.js === +// /** +// * Find an item +// * @template T +// * @param {T[]} l +// * @param {T} x +// * @returns {?T} The names of the found item(s). +// */ +// function find(l, x) { +// } +// find(''); +// ^ +// | ---------------------------------------------------------------------- +// | find(**l: unknown[]**, x: unknown): unknown +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 154, + "LSPosition": { + "line": 9, + "character": 7 + }, + "Name": "", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "find(l: unknown[], x: unknown): unknown", + "parameters": [ + { + "label": "l: unknown[]" + }, + { + "label": "x: unknown" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline b/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline new file mode 100644 index 0000000000..18ca3b5576 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline @@ -0,0 +1,100 @@ +// === SignatureHelp === +=== /a.js === +// /** +// * First overload +// * @overload +// * @param {number} a +// * @returns {void} +// */ +// +// /** +// * Second overload +// * @overload +// * @param {string} a +// * @returns {void} +// */ +// +// /** +// * @param {string | number} a +// * @returns {void} +// */ +// function f(a) {} +// +// f(1); +// ^ +// | ---------------------------------------------------------------------- +// | f(**a: number**): void +// | ---------------------------------------------------------------------- +// f(""); +// ^ +// | ---------------------------------------------------------------------- +// | f(**a: string**): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 238, + "LSPosition": { + "line": 20, + "character": 2 + }, + "Name": "a", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: number): void", + "parameters": [ + { + "label": "a: number" + } + ] + }, + { + "label": "f(a: string): void", + "parameters": [ + { + "label": "a: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 244, + "LSPosition": { + "line": 21, + "character": 2 + }, + "Name": "b", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: number): void", + "parameters": [ + { + "label": "a: number" + } + ] + }, + { + "label": "f(a: string): void", + "parameters": [ + { + "label": "a: string" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline b/testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline new file mode 100644 index 0000000000..3de5364af9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline @@ -0,0 +1,85 @@ +// === SignatureHelp === +=== /trailingCommaSignatureHelp.ts === +// function str(n: number): string; +// /** +// * Stringifies a number with radix +// * @param radix The radix +// */ +// function str(n: number, radix: number): string; +// function str(n: number, radix?: number): string { return ""; } +// +// str(1, ) +// ^ +// | ---------------------------------------------------------------------- +// | str(n: number, **radix: number**): string +// | ---------------------------------------------------------------------- +// +// declare function f(a: T): T; +// f(2, ); +// ^ +// | ---------------------------------------------------------------------- +// | f(a: 2): 2 +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 221, + "LSPosition": { + "line": 8, + "character": 7 + }, + "Name": "a", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "str(n: number): string", + "parameters": [ + { + "label": "n: number" + } + ] + }, + { + "label": "str(n: number, radix: number): string", + "parameters": [ + { + "label": "n: number" + }, + { + "label": "radix: number" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 261, + "LSPosition": { + "line": 11, + "character": 5 + }, + "Name": "b", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: 2): 2", + "parameters": [ + { + "label": "a: 2" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc new file mode 100644 index 0000000000..56439ae8c3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /fileA.ts === +// export function /*RENAME*/[|__fooRENAME|]() { +// } +// + +// === /fileB.ts === +// import { [|__fooRENAME|] as bar } from "./fileA"; +// +// bar(); + + + +// === findRenameLocations === +// === /fileA.ts === +// export function [|__fooRENAME|]() { +// } +// + +// === /fileB.ts === +// import { /*RENAME*/[|__fooRENAME|] as bar } from "./fileA"; +// +// bar(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc new file mode 100644 index 0000000000..fa6c9c9cba --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc @@ -0,0 +1,17 @@ +// === findRenameLocations === +// === /foo.ts === +// export function /*RENAME*/[|barRENAME|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.[|barRENAME|](); +// }) + + + +// === findRenameLocations === +// === /foo.ts === +// export function [|barRENAME|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo./*RENAME*/[|barRENAME|](); +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc new file mode 100644 index 0000000000..29d9e140b4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /foo.ts === +// export function /*RENAME*/[|barRENAME|]() { return "bar"; } +// import('./foo').then(({ [|barRENAME|]: bar/*END SUFFIX*/ }) => undefined); + + + +// === findRenameLocations === +// === /foo.ts === +// export function bar() { return "bar"; } +// import('./foo').then(({ /*START PREFIX*/bar: /*RENAME*/[|barRENAME|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc new file mode 100644 index 0000000000..f96fbc5b1d --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /findAllRefsClassWithStaticThisAccess.ts === +// class /*RENAME*/[|CRENAME|] { +// static s() { +// this; +// } +// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff new file mode 100644 index 0000000000..29eec4cdc0 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.findAllRefsClassWithStaticThisAccess.baseline.jsonc ++++ new.findAllRefsClassWithStaticThisAccess.baseline.jsonc +@@= skipped -3, +3 lines =@@ + // static s() { + // this; + // } +-// static get f() { +-// return this; +-// +-// function inner() { this; } +-// class Inner { x = this; } +-// } +-// } ++// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc new file mode 100644 index 0000000000..ef489e4c5e --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc @@ -0,0 +1,56 @@ +// === findRenameLocations === +// === /a.ts === +// export class /*RENAME*/[|ClassRENAME|] {} + +// === /b.ts === +// import { [|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + +// === /c.ts === +// export { [|ClassRENAME|] as C3 } from "./a"; + + + +// === findRenameLocations === +// === /a.ts === +// export class [|ClassRENAME|] {} + +// === /b.ts === +// import { /*RENAME*/[|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + +// === /c.ts === +// export { [|ClassRENAME|] as C3 } from "./a"; + + + +// === findRenameLocations === +// === /a.ts === +// export class [|ClassRENAME|] {} + +// === /b.ts === +// import { [|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + +// === /c.ts === +// export { /*RENAME*/[|ClassRENAME|] as C3 } from "./a"; + + + +// === findRenameLocations === +// === /b.ts === +// import { Class as /*RENAME*/[|C2RENAME|] } from "./a"; +// var c = new [|C2RENAME|](); + + + +// === findRenameLocations === +// === /b.ts === +// import { Class as [|C2RENAME|] } from "./a"; +// var c = new /*RENAME*/[|C2RENAME|](); + + + +// === findRenameLocations === +// === /c.ts === +// export { Class as /*RENAME*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff new file mode 100644 index 0000000000..293d6126e0 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff @@ -0,0 +1,8 @@ +--- old.findAllRefsOnImportAliases2.baseline.jsonc ++++ new.findAllRefsOnImportAliases2.baseline.jsonc +@@= skipped -52, +52 lines =@@ + + // === findRenameLocations === + // === /c.ts === +-// export { Class as /*RENAME*/[|C3RENAME|] } from "./a"; ++// export { Class as /*RENAME*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc new file mode 100644 index 0000000000..327559c1b5 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /b.js === +// export { +// /*RENAME*/foo +// } from './a'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff new file mode 100644 index 0000000000..585d82efd7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff @@ -0,0 +1,9 @@ +--- old.highlightsForExportFromUnfoundModule.baseline.jsonc ++++ new.highlightsForExportFromUnfoundModule.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /b.js === + // export { +-// /*START PREFIX*/foo as /*RENAME*/[|fooRENAME|] ++// /*RENAME*/foo + // } from './a'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc new file mode 100644 index 0000000000..1783f1b9dc --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc @@ -0,0 +1,53 @@ +// === findRenameLocations === +// === /Foo.js === +// class Foo { +// constructor() { +// this./*RENAME*/[|unionRENAME|] = 'foo'; +// this.[|unionRENAME|] = 100; +// } +// method() { return this.[|unionRENAME|]; } +// } +// var x = new Foo(); +// x.[|unionRENAME|]; + + + +// === findRenameLocations === +// === /Foo.js === +// class Foo { +// constructor() { +// this.[|unionRENAME|] = 'foo'; +// this./*RENAME*/[|unionRENAME|] = 100; +// } +// method() { return this.[|unionRENAME|]; } +// } +// var x = new Foo(); +// x.[|unionRENAME|]; + + + +// === findRenameLocations === +// === /Foo.js === +// class Foo { +// constructor() { +// this.[|unionRENAME|] = 'foo'; +// this.[|unionRENAME|] = 100; +// } +// method() { return this./*RENAME*/[|unionRENAME|]; } +// } +// var x = new Foo(); +// x.[|unionRENAME|]; + + + +// === findRenameLocations === +// === /Foo.js === +// class Foo { +// constructor() { +// this.[|unionRENAME|] = 'foo'; +// this.[|unionRENAME|] = 100; +// } +// method() { return this.[|unionRENAME|]; } +// } +// var x = new Foo(); +// x./*RENAME*/[|unionRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc new file mode 100644 index 0000000000..093641ac6b --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc @@ -0,0 +1,27 @@ +// === findRenameLocations === +// === /jsDocSee_rename1.ts === +// interface /*RENAME*/[|ARENAME|] {} +// /** +// * @see {[|ARENAME|]} +// */ +// declare const a: [|ARENAME|] + + + +// === findRenameLocations === +// === /jsDocSee_rename1.ts === +// interface [|ARENAME|] {} +// /** +// * @see {/*RENAME*/[|ARENAME|]} +// */ +// declare const a: [|ARENAME|] + + + +// === findRenameLocations === +// === /jsDocSee_rename1.ts === +// interface [|ARENAME|] {} +// /** +// * @see {[|ARENAME|]} +// */ +// declare const a: /*RENAME*/[|ARENAME|] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff new file mode 100644 index 0000000000..46f3c11c6a --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff @@ -0,0 +1,24 @@ +--- old.jsDocSee_rename1.baseline.jsonc ++++ new.jsDocSee_rename1.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /jsDocSee_rename1.ts === + // interface /*RENAME*/[|ARENAME|] {} + // /** +@@= skipped -9, +8 lines =@@ + + + // === findRenameLocations === +- + // === /jsDocSee_rename1.ts === + // interface [|ARENAME|] {} + // /** +@@= skipped -11, +10 lines =@@ + + + // === findRenameLocations === +- + // === /jsDocSee_rename1.ts === + // interface [|ARENAME|] {} + // /** \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc new file mode 100644 index 0000000000..596dc32276 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /jsDocCallback.js === +// /** +// * @callback /*RENAME*/[|FooCallbackRENAME|] +// * @param {string} eventName - Rename should work +// */ +// +// /** @type {[|FooCallbackRENAME|]} */ +// var t; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff new file mode 100644 index 0000000000..4bc0773b3e --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff @@ -0,0 +1,10 @@ +--- old.jsdocCallbackTagRename01.baseline.jsonc ++++ new.jsdocCallbackTagRename01.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /jsDocCallback.js === +-// + // /** + // * @callback /*RENAME*/[|FooCallbackRENAME|] + // * @param {string} eventName - Rename should work \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocLink_rename1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocLink_rename1.baseline.jsonc new file mode 100644 index 0000000000..94d0b95b78 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocLink_rename1.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /jsdocLink_rename1.ts === +// interface [|ARENAME|]/*RENAME*/ {} +// /** +// * {@link [|ARENAME|]()} is ok +// */ +// declare const a: [|ARENAME|] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc new file mode 100644 index 0000000000..5b12f6ccd9 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /a.js === +// /** +// * @typedef {Object} [|TRENAME|] +// * @property {number} a +// */ +// +// /** @satisfies {/*RENAME*/[|TRENAME|]} comment */ +// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc new file mode 100644 index 0000000000..c7fe097fcc --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /jsdocThrowsTag_rename.ts === +// class /*RENAME*/[|ERENAME|] extends Error {} +// /** +// * @throws {E} +// */ +// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff new file mode 100644 index 0000000000..a579e74bae --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff @@ -0,0 +1,10 @@ +--- old.jsdocThrowsTag_rename.baseline.jsonc ++++ new.jsdocThrowsTag_rename.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /jsdocThrowsTag_rename.ts === + // class /*RENAME*/[|ERENAME|] extends Error {} + // /** +-// * @throws {[|ERENAME|]} ++// * @throws {E} + // */ + // function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc new file mode 100644 index 0000000000..382e55f562 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc @@ -0,0 +1,33 @@ +// === findRenameLocations === +// === /jsDocTypedef_form1.js === +// /** @typedef {(string | number)} */ +// var /*RENAME*/[|NumberLikeRENAME|]; +// +// [|NumberLikeRENAME|] = 10; +// +// /** @type {NumberLike} */ +// var numberLike; + + + +// === findRenameLocations === +// === /jsDocTypedef_form1.js === +// /** @typedef {(string | number)} */ +// var [|NumberLikeRENAME|]; +// +// /*RENAME*/[|NumberLikeRENAME|] = 10; +// +// /** @type {NumberLike} */ +// var numberLike; + + + +// === findRenameLocations === +// === /jsDocTypedef_form1.js === +// /** @typedef {(string | number)} */ +// var NumberLike; +// +// NumberLike = 10; +// +// /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ +// var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff new file mode 100644 index 0000000000..8a16026273 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff @@ -0,0 +1,46 @@ +--- old.jsdocTypedefTagRename01.baseline.jsonc ++++ new.jsdocTypedefTagRename01.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /jsDocTypedef_form1.js === +-// + // /** @typedef {(string | number)} */ + // var /*RENAME*/[|NumberLikeRENAME|]; + // + // [|NumberLikeRENAME|] = 10; + // +-// /** @type {[|NumberLikeRENAME|]} */ ++// /** @type {NumberLike} */ + // var numberLike; + + + + // === findRenameLocations === +- + // === /jsDocTypedef_form1.js === +-// + // /** @typedef {(string | number)} */ + // var [|NumberLikeRENAME|]; + // + // /*RENAME*/[|NumberLikeRENAME|] = 10; + // +-// /** @type {[|NumberLikeRENAME|]} */ ++// /** @type {NumberLike} */ + // var numberLike; + + + + // === findRenameLocations === +- + // === /jsDocTypedef_form1.js === +-// + // /** @typedef {(string | number)} */ +-// var [|NumberLikeRENAME|]; ++// var NumberLike; + // +-// [|NumberLikeRENAME|] = 10; ++// NumberLike = 10; + // + // /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ + // var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc new file mode 100644 index 0000000000..ba44583210 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc @@ -0,0 +1,15 @@ +// === findRenameLocations === +// === /jsDocTypedef_form2.js === +// /** @typedef {(string | number)} /*RENAME*/[|NumberLikeRENAME|] */ +// +// /** @type {[|NumberLikeRENAME|]} */ +// var numberLike; + + + +// === findRenameLocations === +// === /jsDocTypedef_form2.js === +// /** @typedef {(string | number)} [|NumberLikeRENAME|] */ +// +// /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ +// var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff new file mode 100644 index 0000000000..7a8d1070cf --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff @@ -0,0 +1,20 @@ +--- old.jsdocTypedefTagRename02.baseline.jsonc ++++ new.jsdocTypedefTagRename02.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /jsDocTypedef_form2.js === +-// + // /** @typedef {(string | number)} /*RENAME*/[|NumberLikeRENAME|] */ + // + // /** @type {[|NumberLikeRENAME|]} */ +@@= skipped -9, +7 lines =@@ + + + // === findRenameLocations === +- + // === /jsDocTypedef_form2.js === +-// + // /** @typedef {(string | number)} [|NumberLikeRENAME|] */ + // + // /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc new file mode 100644 index 0000000000..7b7c4fd618 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc @@ -0,0 +1,25 @@ +// === findRenameLocations === +// === /jsDocTypedef_form3.js === +// /** +// * @typedef /*RENAME*/[|PersonRENAME|] +// * @type {Object} +// * @property {number} age +// * @property {string} name +// */ +// +// /** @type {[|PersonRENAME|]} */ +// var person; + + + +// === findRenameLocations === +// === /jsDocTypedef_form3.js === +// /** +// * @typedef [|PersonRENAME|] +// * @type {Object} +// * @property {number} age +// * @property {string} name +// */ +// +// /** @type {/*RENAME*/[|PersonRENAME|]} */ +// var person; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff new file mode 100644 index 0000000000..6ff5604625 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff @@ -0,0 +1,20 @@ +--- old.jsdocTypedefTagRename03.baseline.jsonc ++++ new.jsdocTypedefTagRename03.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /jsDocTypedef_form3.js === +-// + // /** + // * @typedef /*RENAME*/[|PersonRENAME|] + // * @type {Object} +@@= skipped -14, +12 lines =@@ + + + // === findRenameLocations === +- + // === /jsDocTypedef_form3.js === +-// + // /** + // * @typedef [|PersonRENAME|] + // * @type {Object} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc index e69de29bb2..c84c9923ac 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// } +// +// var /*RENAME*/[|nnRENAME|]: {name?: string; size?: number}; +// var x = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// } +// +// var [|nnRENAME|]: {name?: string; size?: number}; +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff new file mode 100644 index 0000000000..d29a7198d1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff @@ -0,0 +1,8 @@ +--- old.jsxSpreadReference.baseline.jsonc ++++ new.jsxSpreadReference.baseline.jsonc +@@= skipped -16, +16 lines =@@ + // + // var [|nnRENAME|]: {name?: string; size?: number}; + // var x = ; +- +- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc index e69de29bb2..f08a819ee4 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /decl.js === +// var [|objRENAME|] = {}; + +// === /forof.js === +// for ([|objRENAME|]/*RENAME*/.prop of arr) { +// +// } + +// === /unicode1.js === +// [|objRENAME|].𝒜 ; + +// === /unicode2.js === +// [|objRENAME|].¬ ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff new file mode 100644 index 0000000000..19174180ba --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff @@ -0,0 +1,25 @@ +--- old.processInvalidSyntax1.baseline.jsonc ++++ new.processInvalidSyntax1.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /decl.js === + // var [|objRENAME|] = {}; + +-// === /unicode1.js === +-// [|objRENAME|].𝒜 ; +- +-// === /unicode2.js === +-// [|objRENAME|].¬ ; +- +-// === /unicode3.js === +-// [|objRENAME|]¬ +- + // === /forof.js === + // for ([|objRENAME|]/*RENAME*/.prop of arr) { + // + // } ++ ++// === /unicode1.js === ++// [|objRENAME|].𝒜 ; ++ ++// === /unicode2.js === ++// [|objRENAME|].¬ ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc new file mode 100644 index 0000000000..91ee0e756d --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /rename01.ts === +// /// +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff new file mode 100644 index 0000000000..10a21fa37c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff @@ -0,0 +1,13 @@ +--- old.rename01.baseline.jsonc ++++ new.rename01.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /rename01.ts === + // /// + // function /*RENAME*/[|BarRENAME|]() { +-// // This is a reference to [|BarRENAME|] in a comment. +-// "this is a reference to [|BarRENAME|] in a string" ++// // This is a reference to Bar in a comment. ++// "this is a reference to Bar in a string" + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..48bb8773df --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc @@ -0,0 +1,39 @@ +// === findRenameLocations === +// === /a.ts === +// var /*RENAME*/[|xRENAME|]: number; + +// === /b.ts === +// /// +// [|xRENAME|]++; + +// === /c.ts === +// /// +// [|xRENAME|]++; + + + +// === findRenameLocations === +// === /a.ts === +// var [|xRENAME|]: number; + +// === /b.ts === +// /// +// /*RENAME*/[|xRENAME|]++; + +// === /c.ts === +// /// +// [|xRENAME|]++; + + + +// === findRenameLocations === +// === /a.ts === +// var [|xRENAME|]: number; + +// === /b.ts === +// /// +// [|xRENAME|]++; + +// === /c.ts === +// /// +// /*RENAME*/[|xRENAME|]++; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc new file mode 100644 index 0000000000..169ac2f6fa --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc @@ -0,0 +1,13 @@ +// === findRenameLocations === +// === /renameAlias.ts === +// module SomeModule { export class SomeClass { } } +// import /*RENAME*/[|MRENAME|] = SomeModule; +// import C = [|MRENAME|].SomeClass; + + + +// === findRenameLocations === +// === /renameAlias.ts === +// module SomeModule { export class SomeClass { } } +// import [|MRENAME|] = SomeModule; +// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc new file mode 100644 index 0000000000..097898f626 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc @@ -0,0 +1,13 @@ +// === findRenameLocations === +// === /renameAlias2.ts === +// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } +// import M = [|SomeModuleRENAME|]; +// import C = M.SomeClass; + + + +// === findRenameLocations === +// === /renameAlias2.ts === +// module [|SomeModuleRENAME|] { export class SomeClass { } } +// import M = /*RENAME*/[|SomeModuleRENAME|]; +// import C = M.SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc new file mode 100644 index 0000000000..ca8a01e4ff --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc @@ -0,0 +1,13 @@ +// === findRenameLocations === +// === /renameAlias3.ts === +// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } +// import M = SomeModule; +// import C = M.[|SomeClassRENAME|]; + + + +// === findRenameLocations === +// === /renameAlias3.ts === +// module SomeModule { export class [|SomeClassRENAME|] { } } +// import M = SomeModule; +// import C = M./*RENAME*/[|SomeClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc new file mode 100644 index 0000000000..5a52c526c3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /b.ts === +// import /*RENAME*/[|MRENAME|] = require("./a"); +// import C = [|MRENAME|].SomeClass; + + + +// === findRenameLocations === +// === /b.ts === +// import [|MRENAME|] = require("./a"); +// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc new file mode 100644 index 0000000000..58598eadcb --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc @@ -0,0 +1,25 @@ +// === findRenameLocations === +// === /a.ts === +// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } +// export = [|SomeModuleRENAME|]; + + + +// === findRenameLocations === +// === /a.ts === +// module [|SomeModuleRENAME|] { export class SomeClass { } } +// export = /*RENAME*/[|SomeModuleRENAME|]; + + + +// === findRenameLocations === +// === /b.ts === +// import /*RENAME*/[|MRENAME|] = require("./a"); +// import C = [|MRENAME|].SomeClass; + + + +// === findRenameLocations === +// === /b.ts === +// import [|MRENAME|] = require("./a"); +// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc new file mode 100644 index 0000000000..8b0ec2b3ce --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /a.ts === +// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } +// export = SomeModule; + +// === /b.ts === +// import M = require("./a"); +// import C = M.[|SomeClassRENAME|]; + + + +// === findRenameLocations === +// === /a.ts === +// module SomeModule { export class [|SomeClassRENAME|] { } } +// export = SomeModule; + +// === /b.ts === +// import M = require("./a"); +// import C = M./*RENAME*/[|SomeClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc new file mode 100644 index 0000000000..aae6d891cd --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc @@ -0,0 +1,115 @@ +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const /*RENAME*/[|externalRENAME|] = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = /*RENAME*/[|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = /*RENAME*/[|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = /*RENAME*/[|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = /*RENAME*/[|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = /*RENAME*/[|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = /*RENAME*/[|externalRENAME|] +// } = obj; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff new file mode 100644 index 0000000000..f92508151d --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff @@ -0,0 +1,73 @@ +--- old.renameBindingElementInitializerExternal.baseline.jsonc ++++ new.renameBindingElementInitializerExternal.baseline.jsonc +@@= skipped -2, +2 lines =@@ + // const /*RENAME*/[|externalRENAME|] = true; + // + // function f({ +-// lvl1 = [|externalRENAME|], +-// nested: { lvl2 = [|externalRENAME|]}, +-// oldName: newName = [|externalRENAME|] +-// }) {} +-// +-// const { +-// lvl1 = [|externalRENAME|], +-// nested: { lvl2 = [|externalRENAME|]}, +-// oldName: newName = [|externalRENAME|] +-// } = obj; ++// lvl1 = external, ++// // --- (line: 5) skipped --- + + + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = /*RENAME*/[|externalRENAME|], +@@= skipped -33, +25 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], +@@= skipped -18, +18 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], +@@= skipped -18, +18 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], +@@= skipped -18, +18 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], +@@= skipped -18, +18 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc new file mode 100644 index 0000000000..6d2729cd2e --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc @@ -0,0 +1,52 @@ +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === +// function f({/*START PREFIX*/required: /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { +// console.log("required", [|requiredRENAME|]); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === +// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = /*RENAME*/[|requiredRENAME|]}: {required: number, optional?: number}) { +// console.log("required", [|requiredRENAME|]); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === +// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { +// console.log("required", /*RENAME*/[|requiredRENAME|]); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === +// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {/*RENAME*/[|requiredRENAME|]: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({[|requiredRENAME|]: 10}); + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === +// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {[|requiredRENAME|]: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({/*RENAME*/[|requiredRENAME|]: 10}); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc new file mode 100644 index 0000000000..b24b7dd8d0 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings1.ts === +// /// +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc new file mode 100644 index 0000000000..20c5f83e25 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings2.ts === +// /// +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff new file mode 100644 index 0000000000..04055e0b6e --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff @@ -0,0 +1,12 @@ +--- old.renameCommentsAndStrings2.baseline.jsonc ++++ new.renameCommentsAndStrings2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /renameCommentsAndStrings2.ts === + // /// + // function /*RENAME*/[|BarRENAME|]() { + // // This is a reference to Bar in a comment. +-// "this is a reference to [|BarRENAME|] in a string" ++// "this is a reference to Bar in a string" + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc new file mode 100644 index 0000000000..9ccb26f725 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings3.ts === +// /// +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff new file mode 100644 index 0000000000..87ad7c1be2 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff @@ -0,0 +1,12 @@ +--- old.renameCommentsAndStrings3.baseline.jsonc ++++ new.renameCommentsAndStrings3.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /renameCommentsAndStrings3.ts === + // /// + // function /*RENAME*/[|BarRENAME|]() { +-// // This is a reference to [|BarRENAME|] in a comment. ++// // This is a reference to Bar in a comment. + // "this is a reference to Bar in a string" + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc new file mode 100644 index 0000000000..65750b7846 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings4.ts === +// /// +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string"; +// `Foo Bar Baz.`; +// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff new file mode 100644 index 0000000000..77124b4370 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff @@ -0,0 +1,20 @@ +--- old.renameCommentsAndStrings4.baseline.jsonc ++++ new.renameCommentsAndStrings4.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /renameCommentsAndStrings4.ts === + // /// + // function /*RENAME*/[|BarRENAME|]() { +-// // This is a reference to [|BarRENAME|] in a comment. +-// "this is a reference to [|BarRENAME|] in a string"; +-// `Foo [|BarRENAME|] Baz.`; +-// { +-// const Bar = 0; +-// `[|BarRENAME|] ba ${Bar} bara [|BarRENAME|] berbobo ${Bar} araura [|BarRENAME|] ara!`; +-// } +-// } ++// // This is a reference to Bar in a comment. ++// "this is a reference to Bar in a string"; ++// `Foo Bar Baz.`; ++// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc new file mode 100644 index 0000000000..5e291fb2fb --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc @@ -0,0 +1,374 @@ +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// interface I { +// /*RENAME*/[|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// /*RENAME*/[|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// /*RENAME*/[|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get /*RENAME*/[|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set /*RENAME*/[|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// --- (line: 23) skipped --- +// }; +// +// var o5: I = { +// "/*RENAME*/prop1"() { }, +// "prop2"() { } +// }; +// +// // --- (line: 31) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// --- (line: 28) skipped --- +// }; +// +// var o6: I = { +// "/*RENAME*/prop1": function () { }, +// "prop2": function () { } +// }; +// +// // --- (line: 36) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// --- (line: 33) skipped --- +// }; +// +// var o7: I = { +// ["/*RENAME*/prop1"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// // --- (line: 41) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// --- (line: 38) skipped --- +// }; +// +// var o8: I = { +// ["/*RENAME*/prop1"]() { }, +// ["prop2"]() { } +// }; +// +// // --- (line: 46) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// --- (line: 43) skipped --- +// }; +// +// var o9: I = { +// get ["/*RENAME*/prop1"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// // --- (line: 51) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === +// --- (line: 48) skipped --- +// }; +// +// var o10: I = { +// set ["/*RENAME*/prop1"](v) { }, +// set ["prop2"](v) { } +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff new file mode 100644 index 0000000000..8269b1954c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff @@ -0,0 +1,430 @@ +--- old.renameContextuallyTypedProperties.baseline.jsonc ++++ new.renameContextuallyTypedProperties.baseline.jsonc +@@= skipped -294, +294 lines =@@ + + // === findRenameLocations === + // === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "/*RENAME*/[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "/*RENAME*/[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["/*RENAME*/[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["/*RENAME*/[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["/*RENAME*/[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["/*RENAME*/[|prop1RENAME|]"](v) { }, ++// --- (line: 23) skipped --- ++// }; ++// ++// var o5: I = { ++// "/*RENAME*/prop1"() { }, ++// "prop2"() { } ++// }; ++// ++// // --- (line: 31) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 28) skipped --- ++// }; ++// ++// var o6: I = { ++// "/*RENAME*/prop1": function () { }, ++// "prop2": function () { } ++// }; ++// ++// // --- (line: 36) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 33) skipped --- ++// }; ++// ++// var o7: I = { ++// ["/*RENAME*/prop1"]: function () { }, ++// ["prop2"]: function () { } ++// }; ++// ++// // --- (line: 41) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 38) skipped --- ++// }; ++// ++// var o8: I = { ++// ["/*RENAME*/prop1"]() { }, ++// ["prop2"]() { } ++// }; ++// ++// // --- (line: 46) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 43) skipped --- ++// }; ++// ++// var o9: I = { ++// get ["/*RENAME*/prop1"]() { return () => { }; }, ++// get ["prop2"]() { return () => { }; } ++// }; ++// ++// // --- (line: 51) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 48) skipped --- ++// }; ++// ++// var o10: I = { ++// set ["/*RENAME*/prop1"](v) { }, + // set ["prop2"](v) { } + // }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc new file mode 100644 index 0000000000..2701f8b18c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc @@ -0,0 +1,373 @@ +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// interface I { +// prop1: () => void; +// /*RENAME*/[|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// /*RENAME*/[|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// /*RENAME*/[|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get /*RENAME*/[|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set /*RENAME*/[|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// --- (line: 24) skipped --- +// +// var o5: I = { +// "prop1"() { }, +// "/*RENAME*/prop2"() { } +// }; +// +// var o6: I = { +// // --- (line: 32) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// --- (line: 29) skipped --- +// +// var o6: I = { +// "prop1": function () { }, +// "/*RENAME*/prop2": function () { } +// }; +// +// var o7: I = { +// // --- (line: 37) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// --- (line: 34) skipped --- +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["/*RENAME*/prop2"]: function () { } +// }; +// +// var o8: I = { +// // --- (line: 42) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// --- (line: 39) skipped --- +// +// var o8: I = { +// ["prop1"]() { }, +// ["/*RENAME*/prop2"]() { } +// }; +// +// var o9: I = { +// // --- (line: 47) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// --- (line: 44) skipped --- +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["/*RENAME*/prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// // --- (line: 52) skipped --- + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === +// --- (line: 49) skipped --- +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["/*RENAME*/prop2"](v) { } +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff new file mode 100644 index 0000000000..9cb5b9653a --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff @@ -0,0 +1,430 @@ +--- old.renameContextuallyTypedProperties2.baseline.jsonc ++++ new.renameContextuallyTypedProperties2.baseline.jsonc +@@= skipped -294, +294 lines =@@ + + // === findRenameLocations === + // === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "/*RENAME*/[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "/*RENAME*/[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["/*RENAME*/[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["/*RENAME*/[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["/*RENAME*/[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["/*RENAME*/[|prop2RENAME|]"](v) { } ++// --- (line: 24) skipped --- ++// ++// var o5: I = { ++// "prop1"() { }, ++// "/*RENAME*/prop2"() { } ++// }; ++// ++// var o6: I = { ++// // --- (line: 32) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 29) skipped --- ++// ++// var o6: I = { ++// "prop1": function () { }, ++// "/*RENAME*/prop2": function () { } ++// }; ++// ++// var o7: I = { ++// // --- (line: 37) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 34) skipped --- ++// ++// var o7: I = { ++// ["prop1"]: function () { }, ++// ["/*RENAME*/prop2"]: function () { } ++// }; ++// ++// var o8: I = { ++// // --- (line: 42) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 39) skipped --- ++// ++// var o8: I = { ++// ["prop1"]() { }, ++// ["/*RENAME*/prop2"]() { } ++// }; ++// ++// var o9: I = { ++// // --- (line: 47) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 44) skipped --- ++// ++// var o9: I = { ++// get ["prop1"]() { return () => { }; }, ++// get ["/*RENAME*/prop2"]() { return () => { }; } ++// }; ++// ++// var o10: I = { ++// // --- (line: 52) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 49) skipped --- ++// ++// var o10: I = { ++// set ["prop1"](v) { }, ++// set ["/*RENAME*/prop2"](v) { } + // }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCrossJsTs01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCrossJsTs01.baseline.jsonc new file mode 100644 index 0000000000..0b7ab8eff5 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCrossJsTs01.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /a.js === +// exports./*RENAME*/[|areaRENAME|] = function (r) { return r * r; } + +// === /b.ts === +// import { [|areaRENAME|] } from './a'; +// var t = [|areaRENAME|](10); + + + +// === findRenameLocations === +// === /b.ts === +// import { /*START PREFIX*/area as /*RENAME*/[|areaRENAME|] } from './a'; +// var t = [|areaRENAME|](10); + + + +// === findRenameLocations === +// === /b.ts === +// import { /*START PREFIX*/area as [|areaRENAME|] } from './a'; +// var t = /*RENAME*/[|areaRENAME|](10); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc new file mode 100644 index 0000000000..f0155261f0 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc @@ -0,0 +1,191 @@ +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// class Base {} +// interface Implemented1 {} +// /*RENAME*/class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// class Base {} +// interface Implemented1 {} +// class C1 /*RENAME*/extends Base implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// class Base {} +// interface Implemented1 {} +// class C1 extends Base /*RENAME*/implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// /*RENAME*/get e() { return 1; } +// set e(v) {} +// } +// interface I1 extends Base { } +// // --- (line: 8) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// /*RENAME*/set e(v) {} +// } +// interface I1 extends Base { } +// type T = { } +// // --- (line: 9) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 3) skipped --- +// get e() { return 1; } +// set e(v) {} +// } +// /*RENAME*/interface I1 extends Base { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 3) skipped --- +// get e() { return 1; } +// set e(v) {} +// } +// interface I1 /*RENAME*/extends Base { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 4) skipped --- +// set e(v) {} +// } +// interface I1 extends Base { } +// /*RENAME*/type T = { } +// enum E { } +// namespace N { } +// module M { } +// // --- (line: 12) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 5) skipped --- +// } +// interface I1 extends Base { } +// type T = { } +// /*RENAME*/enum E { } +// namespace N { } +// module M { } +// function fn() {} +// // --- (line: 13) skipped --- + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 6) skipped --- +// interface I1 extends Base { } +// type T = { } +// enum E { } +// /*RENAME*/namespace N { } +// module M { } +// function fn() {} +// var x; +// let y; +// const z = 1; + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 7) skipped --- +// type T = { } +// enum E { } +// namespace N { } +// /*RENAME*/module M { } +// function fn() {} +// var x; +// let y; +// const z = 1; + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 8) skipped --- +// enum E { } +// namespace N { } +// module M { } +// /*RENAME*/function fn() {} +// var x; +// let y; +// const z = 1; + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 9) skipped --- +// namespace N { } +// module M { } +// function fn() {} +// /*RENAME*/var x; +// let y; +// const z = 1; + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 10) skipped --- +// module M { } +// function fn() {} +// var x; +// /*RENAME*/let y; +// const z = 1; + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === +// --- (line: 11) skipped --- +// function fn() {} +// var x; +// let y; +// /*RENAME*/const z = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff new file mode 100644 index 0000000000..994bb4b0aa --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff @@ -0,0 +1,266 @@ +--- old.renameDeclarationKeywords.baseline.jsonc ++++ new.renameDeclarationKeywords.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /renameDeclarationKeywords.ts === + // class Base {} + // interface Implemented1 {} +-// /*RENAME*/class [|C1RENAME|] extends Base implements Implemented1 { +-// get e() { return 1; } +-// set e(v) {} +-// } +-// interface I1 extends Base { } +-// type T = { } +-// enum E { } +-// --- (line: 10) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class [|BaseRENAME|] {} +-// interface Implemented1 {} +-// class C1 /*RENAME*/extends [|BaseRENAME|] implements Implemented1 { +-// get e() { return 1; } +-// set e(v) {} +-// } +-// interface I1 extends [|BaseRENAME|] { } +-// type T = { } +-// enum E { } +-// namespace N { } +-// --- (line: 11) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class Base {} +-// interface [|Implemented1RENAME|] {} +-// class C1 extends Base /*RENAME*/implements [|Implemented1RENAME|] { +-// get e() { return 1; } +-// set e(v) {} +-// } +-// --- (line: 7) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class Base {} +-// interface Implemented1 {} +-// class C1 extends Base implements Implemented1 { +-// /*RENAME*/get [|eRENAME|]() { return 1; } +-// set [|eRENAME|](v) {} +-// } +-// interface I1 extends Base { } +-// type T = { } +-// --- (line: 9) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class Base {} +-// interface Implemented1 {} +-// class C1 extends Base implements Implemented1 { +-// get [|eRENAME|]() { return 1; } +-// /*RENAME*/set [|eRENAME|](v) {} +-// } +-// interface I1 extends Base { } +-// type T = { } +-// --- (line: 9) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// --- (line: 3) skipped --- +-// get e() { return 1; } +-// set e(v) {} +-// } +-// /*RENAME*/interface [|I1RENAME|] extends Base { } +-// type T = { } +-// enum E { } +-// namespace N { } +-// --- (line: 11) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class [|BaseRENAME|] {} +-// interface Implemented1 {} +-// class C1 extends [|BaseRENAME|] implements Implemented1 { +-// get e() { return 1; } +-// set e(v) {} +-// } +-// interface I1 /*RENAME*/extends [|BaseRENAME|] { } +-// type T = { } +-// enum E { } +-// namespace N { } +-// --- (line: 11) skipped --- ++// /*RENAME*/class C1 extends Base implements Implemented1 { ++// get e() { return 1; } ++// set e(v) {} ++// } ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// class Base {} ++// interface Implemented1 {} ++// class C1 /*RENAME*/extends Base implements Implemented1 { ++// get e() { return 1; } ++// set e(v) {} ++// } ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// class Base {} ++// interface Implemented1 {} ++// class C1 extends Base /*RENAME*/implements Implemented1 { ++// get e() { return 1; } ++// set e(v) {} ++// } ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// class Base {} ++// interface Implemented1 {} ++// class C1 extends Base implements Implemented1 { ++// /*RENAME*/get e() { return 1; } ++// set e(v) {} ++// } ++// interface I1 extends Base { } ++// // --- (line: 8) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// class Base {} ++// interface Implemented1 {} ++// class C1 extends Base implements Implemented1 { ++// get e() { return 1; } ++// /*RENAME*/set e(v) {} ++// } ++// interface I1 extends Base { } ++// type T = { } ++// // --- (line: 9) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// --- (line: 3) skipped --- ++// get e() { return 1; } ++// set e(v) {} ++// } ++// /*RENAME*/interface I1 extends Base { } ++// type T = { } ++// enum E { } ++// namespace N { } ++// // --- (line: 11) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// --- (line: 3) skipped --- ++// get e() { return 1; } ++// set e(v) {} ++// } ++// interface I1 /*RENAME*/extends Base { } ++// type T = { } ++// enum E { } ++// namespace N { } ++// // --- (line: 11) skipped --- + + + +@@= skipped -103, +93 lines =@@ + // set e(v) {} + // } + // interface I1 extends Base { } +-// /*RENAME*/type [|TRENAME|] = { } ++// /*RENAME*/type T = { } + // enum E { } + // namespace N { } + // module M { } +-// --- (line: 12) skipped --- ++// // --- (line: 12) skipped --- + + + +@@= skipped -14, +14 lines =@@ + // } + // interface I1 extends Base { } + // type T = { } +-// /*RENAME*/enum [|ERENAME|] { } ++// /*RENAME*/enum E { } + // namespace N { } + // module M { } + // function fn() {} +-// --- (line: 13) skipped --- ++// // --- (line: 13) skipped --- + + + +@@= skipped -14, +14 lines =@@ + // interface I1 extends Base { } + // type T = { } + // enum E { } +-// /*RENAME*/namespace [|NRENAME|] { } ++// /*RENAME*/namespace N { } + // module M { } + // function fn() {} + // var x; +@@= skipped -15, +15 lines =@@ + // type T = { } + // enum E { } + // namespace N { } +-// /*RENAME*/module [|MRENAME|] { } ++// /*RENAME*/module M { } + // function fn() {} + // var x; + // let y; +@@= skipped -14, +14 lines =@@ + // enum E { } + // namespace N { } + // module M { } +-// /*RENAME*/function [|fnRENAME|]() {} ++// /*RENAME*/function fn() {} + // var x; + // let y; + // const z = 1; +@@= skipped -13, +13 lines =@@ + // namespace N { } + // module M { } + // function fn() {} +-// /*RENAME*/var [|xRENAME|]; ++// /*RENAME*/var x; + // let y; + // const z = 1; + +@@= skipped -12, +12 lines =@@ + // module M { } + // function fn() {} + // var x; +-// /*RENAME*/let [|yRENAME|]; ++// /*RENAME*/let y; + // const z = 1; + + +@@= skipped -11, +11 lines =@@ + // function fn() {} + // var x; + // let y; +-// /*RENAME*/const [|zRENAME|] = 1; ++// /*RENAME*/const z = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc new file mode 100644 index 0000000000..3cde049d52 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /B.ts === +// export default class /*RENAME*/[|CRENAME|] { +// test() { +// } +// } + + + +// === findRenameLocations === +// === /A.ts === +// import /*RENAME*/[|BRENAME|] from "./B"; +// let b = new [|BRENAME|](); +// b.test(); + + + +// === findRenameLocations === +// === /A.ts === +// import [|BRENAME|] from "./B"; +// let b = new /*RENAME*/[|BRENAME|](); +// b.test(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc.diff new file mode 100644 index 0000000000..f45fc22589 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultImportDifferentName.baseline.jsonc.diff @@ -0,0 +1,8 @@ +--- old.renameDefaultImportDifferentName.baseline.jsonc ++++ new.renameDefaultImportDifferentName.baseline.jsonc +@@= skipped -19, +19 lines =@@ + // import [|BRENAME|] from "./B"; + // let b = new /*RENAME*/[|BRENAME|](); + // b.test(); +- +- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc new file mode 100644 index 0000000000..78e6d47758 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc @@ -0,0 +1,4 @@ +// === findRenameLocations === +// === /file1.ts === +// var /*RENAME*/[|testRENAME|] = "foo"; +// console.log([|testRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff new file mode 100644 index 0000000000..c1cf1d7d15 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff @@ -0,0 +1,8 @@ +--- old.renameDefaultLibDontWork.baseline.jsonc ++++ new.renameDefaultLibDontWork.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /file1.ts === + // var /*RENAME*/[|testRENAME|] = "foo"; + // console.log([|testRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc new file mode 100644 index 0000000000..1e5ed18275 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /renameDestructuringAssignment.ts === +// interface I { +// /*RENAME*/[|xRENAME|]: number; +// } +// var a: I; +// var x; +// ({ [|xRENAME|]: x } = a); + + + +// === findRenameLocations === +// === /renameDestructuringAssignment.ts === +// interface I { +// [|xRENAME|]: number; +// } +// var a: I; +// var x; +// ({ /*RENAME*/[|xRENAME|]: x } = a); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc new file mode 100644 index 0000000000..5f243b92f5 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc @@ -0,0 +1,45 @@ +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +// interface I { +// /*RENAME*/[|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[], p1: number, property1: number; +// [{ [|property1RENAME|]: p1 }] = elems; +// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +// interface I { +// [|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[], p1: number, property1: number; +// [{ /*RENAME*/[|property1RENAME|]: p1 }] = elems; +// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +// interface I { +// property1: number; +// property2: string; +// } +// var elems: I[], p1: number, /*RENAME*/[|property1RENAME|]: number; +// [{ property1: p1 }] = elems; +// [{ /*START PREFIX*/property1: [|property1RENAME|] }] = elems; + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +// interface I { +// property1: number; +// property2: string; +// } +// var elems: I[], p1: number, [|property1RENAME|]: number; +// [{ property1: p1 }] = elems; +// [{ /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] }] = elems; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc new file mode 100644 index 0000000000..1d6d63f567 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc @@ -0,0 +1,83 @@ +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// interface MultiRobot { +// name: string; +// skills: { +// /*RENAME*/[|primaryRENAME|]: string; +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], primary: string; +// for ({ skills: { [|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// interface MultiRobot { +// name: string; +// skills: { +// [|primaryRENAME|]: string; +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], primary: string; +// for ({ skills: { /*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// --- (line: 4) skipped --- +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], /*RENAME*/[|primaryRENAME|]: string; +// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { +// console.log([|primaryRENAME|]); +// } + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// --- (line: 4) skipped --- +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; +// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { /*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { +// console.log([|primaryRENAME|]); +// } + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// --- (line: 4) skipped --- +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; +// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { +// console.log(/*RENAME*/[|primaryRENAME|]); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc new file mode 100644 index 0000000000..d8e5f06926 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc @@ -0,0 +1,78 @@ +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// class A { +// /*RENAME*/[|fooRENAME|]: string; +// } +// class B { +// syntax1(a: A): void { +// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; +// } +// syntax2(a: A): void { +// let { [|fooRENAME|]: foo } = a; +// } +// syntax11(a: A): void { +// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; +// foo = "newString"; +// } +// } + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// class A { +// [|fooRENAME|]: string; +// } +// class B { +// syntax1(a: A): void { +// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; +// } +// syntax2(a: A): void { +// let { /*RENAME*/[|fooRENAME|]: foo } = a; +// } +// syntax11(a: A): void { +// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; +// foo = "newString"; +// } +// } + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// class A { +// foo: string; +// } +// class B { +// syntax1(a: A): void { +// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; +// } +// syntax2(a: A): void { +// let { foo: foo } = a; +// // --- (line: 10) skipped --- + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// --- (line: 8) skipped --- +// let { foo: foo } = a; +// } +// syntax11(a: A): void { +// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; +// [|fooRENAME|] = "newString"; +// } +// } + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// --- (line: 8) skipped --- +// let { foo: foo } = a; +// } +// syntax11(a: A): void { +// let { /*START PREFIX*/foo: [|fooRENAME|] } = a; +// /*RENAME*/[|fooRENAME|] = "newString"; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff new file mode 100644 index 0000000000..c5b0529fbe --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff @@ -0,0 +1,10 @@ +--- old.renameDestructuringClassProperty.baseline.jsonc ++++ new.renameDestructuringClassProperty.baseline.jsonc +@@= skipped -48, +48 lines =@@ + // } + // syntax2(a: A): void { + // let { foo: foo } = a; +-// --- (line: 10) skipped --- ++// // --- (line: 10) skipped --- + + diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc new file mode 100644 index 0000000000..634b62c027 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc @@ -0,0 +1,55 @@ +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === +// interface I { +// /*RENAME*/[|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[]; +// +// var p2: number, property1: number; +// for (let { [|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { +// } +// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { +// property1 = p2; +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === +// interface I { +// [|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[]; +// +// var p2: number, property1: number; +// for (let { /*RENAME*/[|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { +// } +// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { +// property1 = p2; +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === +// --- (line: 6) skipped --- +// var p2: number, property1: number; +// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { +// } +// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } = elems[0]; p2 < 100; p2++) { +// [|property1RENAME|] = p2; +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === +// --- (line: 6) skipped --- +// var p2: number, property1: number; +// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { +// } +// for (let { /*START PREFIX*/property1: [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { +// /*RENAME*/[|property1RENAME|] = p2; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc new file mode 100644 index 0000000000..23a7989f99 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc @@ -0,0 +1,57 @@ +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === +// interface I { +// /*RENAME*/[|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[]; +// +// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { +// property1++; +// } +// for (let { [|property1RENAME|]: p2 } of elems) { +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === +// interface I { +// [|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[]; +// +// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { +// property1++; +// } +// for (let { /*RENAME*/[|property1RENAME|]: p2 } of elems) { +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === +// --- (line: 3) skipped --- +// } +// var elems: I[]; +// +// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } of elems) { +// [|property1RENAME|]++; +// } +// for (let { property1: p2 } of elems) { +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === +// --- (line: 3) skipped --- +// } +// var elems: I[]; +// +// for (let { /*START PREFIX*/property1: [|property1RENAME|] } of elems) { +// /*RENAME*/[|property1RENAME|]++; +// } +// for (let { property1: p2 } of elems) { +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..3da6d4496c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === +// function f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}: {a}) { +// f({/*START PREFIX*/a: [|aRENAME|]}); +// } + + + +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === +// function f({/*START PREFIX*/a: [|aRENAME|]}: {a}) { +// f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}); +// } + + + +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === +// function f({[|aRENAME|]: a/*END SUFFIX*/}: {/*RENAME*/[|aRENAME|]}) { +// f({[|aRENAME|]: a/*END SUFFIX*/}); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc new file mode 100644 index 0000000000..ab3a3fab33 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc @@ -0,0 +1,59 @@ +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === +// interface MultiRobot { +// name: string; +// skills: { +// /*RENAME*/[|primaryRENAME|]: string; +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[]; +// for (let { skills: {[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === +// interface MultiRobot { +// name: string; +// skills: { +// [|primaryRENAME|]: string; +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[]; +// for (let { skills: {/*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === +// --- (line: 8) skipped --- +// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (let { skills: {/*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { +// console.log([|primaryRENAME|]); +// } + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === +// --- (line: 8) skipped --- +// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (let { skills: {/*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { +// console.log(/*RENAME*/[|primaryRENAME|]); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc new file mode 100644 index 0000000000..da18660ebe --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /Foo.js === +// let [|aRENAME|]; +// module.exports = /*RENAME*/[|aRENAME|]; +// exports["foo"] = [|aRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc new file mode 100644 index 0000000000..6e30fd32c4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// @useAliasesForRename: false + +// === /a.ts === +// const name = {}; +// export { name as name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff new file mode 100644 index 0000000000..6c108ca3a9 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff @@ -0,0 +1,12 @@ +--- old.renameExportSpecifier.baseline.jsonc ++++ new.renameExportSpecifier.baseline.jsonc +@@= skipped -2, +2 lines =@@ + + // === /a.ts === + // const name = {}; +-// export { name as [|nameRENAME|]/*RENAME*/ }; +- +-// === /b.ts === +-// import { [|nameRENAME|] } from './a'; +-// const x = [|nameRENAME|].toString(); ++// export { name as name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc new file mode 100644 index 0000000000..155c542abf --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// @useAliasesForRename: false + +// === /a.ts === +// const [|nameRENAME|] = {}; +// export { name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff new file mode 100644 index 0000000000..2fd41bf05f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff @@ -0,0 +1,12 @@ +--- old.renameExportSpecifier2.baseline.jsonc ++++ new.renameExportSpecifier2.baseline.jsonc +@@= skipped -2, +2 lines =@@ + + // === /a.ts === + // const [|nameRENAME|] = {}; +-// export { [|nameRENAME|]/*RENAME*/ }; +- +-// === /b.ts === +-// import { [|nameRENAME|] } from './a'; +-// const x = [|nameRENAME|].toString(); ++// export { name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc new file mode 100644 index 0000000000..ab37f50e22 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /a.ts === +// interface Foo { +// property: /*RENAME*/"foo"; +// } +// /** +// * @type {{ property: "foo"}} +// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff new file mode 100644 index 0000000000..3200f0d3c8 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff @@ -0,0 +1,16 @@ +--- old.renameForStringLiteral.baseline.jsonc ++++ new.renameForStringLiteral.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.ts === + // interface Foo { +-// property: /*RENAME*/"[|fooRENAME|]"; ++// property: /*RENAME*/"foo"; + // } + // /** + // * @type {{ property: "foo"}} +-// */ +-// const obj: Foo = { +-// property: "[|fooRENAME|]", +-// } ++// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc new file mode 100644 index 0000000000..2a4061d4f4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc @@ -0,0 +1,10 @@ +// === findRenameLocations === +// === /renameFunctionParameter1.ts === +// function Foo() { +// /** +// * @param {number} p +// */ +// this.foo = function foo([|pRENAME|]/*RENAME*/) { +// return [|pRENAME|]; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff new file mode 100644 index 0000000000..08796165aa --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff @@ -0,0 +1,11 @@ +--- old.renameFunctionParameter1.baseline.jsonc ++++ new.renameFunctionParameter1.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /renameFunctionParameter1.ts === + // function Foo() { + // /** +-// * @param {number} [|pRENAME|] ++// * @param {number} p + // */ + // this.foo = function foo([|pRENAME|]/*RENAME*/) { + // return [|pRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc new file mode 100644 index 0000000000..84a2628d06 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameFunctionParameter2.ts === +// /** +// * @param {number} p +// */ +// const foo = function foo([|pRENAME|]/*RENAME*/) { +// return [|pRENAME|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff new file mode 100644 index 0000000000..b44d781335 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff @@ -0,0 +1,11 @@ +--- old.renameFunctionParameter2.baseline.jsonc ++++ new.renameFunctionParameter2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameFunctionParameter2.ts === + // /** +-// * @param {number} [|pRENAME|] ++// * @param {number} p + // */ + // const foo = function foo([|pRENAME|]/*RENAME*/) { + // return [|pRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc new file mode 100644 index 0000000000..f2c7a402dd --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /renameImportAndExport.ts === +// import /*RENAME*/[|aRENAME|] from "module"; +// export { a }; + + + +// === findRenameLocations === +// === /renameImportAndExport.ts === +// import [|aRENAME|] from "module"; +// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff new file mode 100644 index 0000000000..7579be5fcf --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff @@ -0,0 +1,17 @@ +--- old.renameImportAndExport.baseline.jsonc ++++ new.renameImportAndExport.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameImportAndExport.ts === + // import /*RENAME*/[|aRENAME|] from "module"; +-// export { [|aRENAME|] as a/*END SUFFIX*/ }; ++// export { a }; + + + + // === findRenameLocations === + // === /renameImportAndExport.ts === +-// import a from "module"; +-// export { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] }; ++// import [|aRENAME|] from "module"; ++// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc new file mode 100644 index 0000000000..3df1b40965 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /a.ts === +// export var /*RENAME*/[|aRENAME|]; + +// === /b.ts === +// import { [|aRENAME|] } from './a'; +// export { a }; + + + +// === findRenameLocations === +// === /b.ts === +// import { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] } from './a'; +// export { a }; + + + +// === findRenameLocations === +// === /b.ts === +// import { /*START PREFIX*/a as [|aRENAME|] } from './a'; +// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff new file mode 100644 index 0000000000..bbe6b24e4e --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff @@ -0,0 +1,25 @@ +--- old.renameImportAndExportInDiffFiles.baseline.jsonc ++++ new.renameImportAndExportInDiffFiles.baseline.jsonc +@@= skipped -3, +3 lines =@@ + + // === /b.ts === + // import { [|aRENAME|] } from './a'; +-// export { [|aRENAME|] as a/*END SUFFIX*/ }; ++// export { a }; + + + + // === findRenameLocations === + // === /b.ts === + // import { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] } from './a'; +-// export { [|aRENAME|] as a/*END SUFFIX*/ }; ++// export { a }; + + + + // === findRenameLocations === + // === /b.ts === +-// import { a } from './a'; +-// export { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] }; ++// import { /*START PREFIX*/a as [|aRENAME|] } from './a'; ++// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc new file mode 100644 index 0000000000..6ca5609808 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /renameImportAndShorthand.ts === +// import /*RENAME*/[|fooRENAME|] from 'bar'; +// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; + + + +// === findRenameLocations === +// === /renameImportAndShorthand.ts === +// import [|fooRENAME|] from 'bar'; +// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc new file mode 100644 index 0000000000..799b0d0522 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /renameImportNamespaceAndShorthand.ts === +// import * as /*RENAME*/[|fooRENAME|] from 'bar'; +// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; + + + +// === findRenameLocations === +// === /renameImportNamespaceAndShorthand.ts === +// import * as [|fooRENAME|] from 'bar'; +// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc new file mode 100644 index 0000000000..98bee31a7f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc @@ -0,0 +1,121 @@ +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === +// declare namespace /*RENAME*/[|NRENAME|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|NRENAME|]; +// } +// declare module "a" { +// import * as [|NRENAME|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === +// declare namespace [|NRENAME|] { +// export var x: number; +// } +// declare module "mod" { +// export = /*RENAME*/[|NRENAME|]; +// } +// declare module "a" { +// import * as [|NRENAME|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === +// --- (line: 4) skipped --- +// export = N; +// } +// declare module "a" { +// import * as /*RENAME*/[|NRENAME|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === +// --- (line: 4) skipped --- +// export = N; +// } +// declare module "a" { +// import * as [|NRENAME|] from "mod"; +// export { /*RENAME*/N }; // Renaming N here would rename +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N.x; +// } + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === +// --- (line: 8) skipped --- +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// import { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] } from "a"; +// export const y: typeof [|NRENAME|].x; +// } + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === +// --- (line: 8) skipped --- +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// import { /*START PREFIX*/N as [|NRENAME|] } from "a"; +// export const y: typeof /*RENAME*/[|NRENAME|].x; +// } + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === +// declare namespace N { +// export var /*RENAME*/[|xRENAME|]: number; +// } +// declare module "mod" { +// export = N; +// // --- (line: 6) skipped --- + +// --- (line: 9) skipped --- +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N.[|xRENAME|]; +// } + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === +// declare namespace N { +// export var [|xRENAME|]: number; +// } +// declare module "mod" { +// export = N; +// // --- (line: 6) skipped --- + +// --- (line: 9) skipped --- +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N./*RENAME*/[|xRENAME|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff new file mode 100644 index 0000000000..e3008bc1a8 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff @@ -0,0 +1,85 @@ +--- old.renameImportOfExportEquals.baseline.jsonc ++++ new.renameImportOfExportEquals.baseline.jsonc +@@= skipped -7, +7 lines =@@ + // } + // declare module "a" { + // import * as [|NRENAME|] from "mod"; +-// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename ++// export { N }; // Renaming N here would rename + // } + // declare module "b" { +-// import { N } from "a"; +-// export const y: typeof N.x; +-// } ++// // --- (line: 12) skipped --- + + + +@@= skipped -19, +17 lines =@@ + // } + // declare module "a" { + // import * as [|NRENAME|] from "mod"; +-// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename ++// export { N }; // Renaming N here would rename + // } + // declare module "b" { +-// import { N } from "a"; +-// export const y: typeof N.x; +-// } ++// // --- (line: 12) skipped --- + + + +@@= skipped -16, +14 lines =@@ + // } + // declare module "a" { + // import * as /*RENAME*/[|NRENAME|] from "mod"; +-// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename ++// export { N }; // Renaming N here would rename + // } + // declare module "b" { +-// import { N } from "a"; +-// export const y: typeof N.x; +-// } ++// // --- (line: 12) skipped --- + + + + // === findRenameLocations === + // === /renameImportOfExportEquals.ts === +-// --- (line: 5) skipped --- ++// --- (line: 4) skipped --- ++// export = N; + // } + // declare module "a" { +-// import * as N from "mod"; +-// export { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] }; // Renaming N here would rename ++// import * as [|NRENAME|] from "mod"; ++// export { /*RENAME*/N }; // Renaming N here would rename + // } + // declare module "b" { +-// import { [|NRENAME|] } from "a"; +-// export const y: typeof [|NRENAME|].x; ++// import { N } from "a"; ++// export const y: typeof N.x; + // } + + +@@= skipped -55, +54 lines =@@ + // } + // declare module "mod" { + // export = N; +-// --- (line: 6) skipped --- ++// // --- (line: 6) skipped --- + + // --- (line: 9) skipped --- + // } +@@= skipped -18, +18 lines =@@ + // } + // declare module "mod" { + // export = N; +-// --- (line: 6) skipped --- ++// // --- (line: 6) skipped --- + + // --- (line: 9) skipped --- + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc new file mode 100644 index 0000000000..9a6afde3d1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc @@ -0,0 +1,47 @@ +// === findRenameLocations === +// === /a.ts === +// import /*RENAME*/[|eRENAME|] = require("mod4"); +// [|eRENAME|]; +// a = { /*START PREFIX*/e: [|eRENAME|] }; +// export { e }; + + + +// === findRenameLocations === +// === /a.ts === +// import [|eRENAME|] = require("mod4"); +// /*RENAME*/[|eRENAME|]; +// a = { /*START PREFIX*/e: [|eRENAME|] }; +// export { e }; + + + +// === findRenameLocations === +// === /a.ts === +// import [|eRENAME|] = require("mod4"); +// [|eRENAME|]; +// a = { /*START PREFIX*/e: /*RENAME*/[|eRENAME|] }; +// export { e }; + + + +// === findRenameLocations === +// === /a.ts === +// import [|eRENAME|] = require("mod4"); +// [|eRENAME|]; +// a = { /*START PREFIX*/e: [|eRENAME|] }; +// export { /*RENAME*/e }; + + + +// === findRenameLocations === +// === /b.ts === +// import { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] } from "./a"; +// export { e }; + + + +// === findRenameLocations === +// === /b.ts === +// import { /*START PREFIX*/e as [|eRENAME|] } from "./a"; +// export { /*RENAME*/e }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff new file mode 100644 index 0000000000..f7fe0c1be4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff @@ -0,0 +1,60 @@ +--- old.renameImportRequire.baseline.jsonc ++++ new.renameImportRequire.baseline.jsonc +@@= skipped -2, +2 lines =@@ + // import /*RENAME*/[|eRENAME|] = require("mod4"); + // [|eRENAME|]; + // a = { /*START PREFIX*/e: [|eRENAME|] }; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// export { e }; + + + +@@= skipped -9, +9 lines =@@ + // import [|eRENAME|] = require("mod4"); + // /*RENAME*/[|eRENAME|]; + // a = { /*START PREFIX*/e: [|eRENAME|] }; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// export { e }; + + + +@@= skipped -9, +9 lines =@@ + // import [|eRENAME|] = require("mod4"); + // [|eRENAME|]; + // a = { /*START PREFIX*/e: /*RENAME*/[|eRENAME|] }; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// export { e }; + + + + // === findRenameLocations === + // === /a.ts === +-// import e = require("mod4"); +-// e; +-// a = { e }; +-// export { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] }; +- +-// === /b.ts === +-// import { [|eRENAME|] } from "./a"; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// import [|eRENAME|] = require("mod4"); ++// [|eRENAME|]; ++// a = { /*START PREFIX*/e: [|eRENAME|] }; ++// export { /*RENAME*/e }; + + + + // === findRenameLocations === + // === /b.ts === + // import { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] } from "./a"; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// export { e }; + + + + // === findRenameLocations === + // === /b.ts === +-// import { e } from "./a"; +-// export { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] }; ++// import { /*START PREFIX*/e as [|eRENAME|] } from "./a"; ++// export { /*RENAME*/e }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc new file mode 100644 index 0000000000..91bfb125b4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /canada.ts === +// export interface /*RENAME*/[|GingerRENAME|] {} + +// === /dry.ts === +// import { [|GingerRENAME|] as Ale } from './canada'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc new file mode 100644 index 0000000000..de08a0964c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc @@ -0,0 +1,15 @@ +// === findRenameLocations === +// === /referencesForGlobals_1.ts === +// var /*RENAME*/[|globalNameRENAME|] = 0; + +// === /referencesForGlobals_2.ts === +// var y = [|globalNameRENAME|]; + + + +// === findRenameLocations === +// === /referencesForGlobals_1.ts === +// var [|globalNameRENAME|] = 0; + +// === /referencesForGlobals_2.ts === +// var y = /*RENAME*/[|globalNameRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff new file mode 100644 index 0000000000..853b283620 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff @@ -0,0 +1,15 @@ +--- old.renameInConfiguredProject.baseline.jsonc ++++ new.renameInConfiguredProject.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +- + // === /referencesForGlobals_1.ts === + // var /*RENAME*/[|globalNameRENAME|] = 0; + +@@= skipped -8, +7 lines =@@ + + + // === findRenameLocations === +- + // === /referencesForGlobals_1.ts === + // var [|globalNameRENAME|] = 0; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc new file mode 100644 index 0000000000..09a71e42e1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc @@ -0,0 +1,29 @@ +// === findRenameLocations === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// /*RENAME*/[|divRENAME|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = <[|divRENAME|] />; + + + +// === findRenameLocations === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|divRENAME|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc new file mode 100644 index 0000000000..c9d4b07aa1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// /*RENAME*/[|nameRENAME|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// // --- (line: 9) skipped --- + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 7) skipped --- +// span: { n: string; }; +// } +// } +// var x =
; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff new file mode 100644 index 0000000000..b4ca831c75 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff @@ -0,0 +1,26 @@ +--- old.tsxRename2.baseline.jsonc ++++ new.tsxRename2.baseline.jsonc +@@= skipped -7, +7 lines =@@ + // isOpen?: boolean; + // }; + // span: { n: string; }; +-// } +-// } +-// var x =
; ++// // --- (line: 9) skipped --- + + + + // === findRenameLocations === + // === /file.tsx === +-// declare module JSX { +-// interface Element { } +-// interface IntrinsicElements { +-// div: { +-// [|nameRENAME|]?: string; +-// isOpen?: boolean; +-// }; ++// --- (line: 7) skipped --- + // span: { n: string; }; + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc new file mode 100644 index 0000000000..a4963b39a6 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 5) skipped --- +// } +// class MyClass { +// props: { +// /*RENAME*/[|nameRENAME|]?: string; +// size?: number; +// } +// +// +// var x = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// +// +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff new file mode 100644 index 0000000000..02c57a3f30 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff @@ -0,0 +1,23 @@ +--- old.tsxRename3.baseline.jsonc ++++ new.tsxRename3.baseline.jsonc +@@= skipped -8, +8 lines =@@ + // } + // + // +-// var x = ; ++// var x = ; + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 5) skipped --- +-// } +-// class MyClass { +-// props: { +-// [|nameRENAME|]?: string; +-// size?: number; ++// --- (line: 10) skipped --- + // } + // + // \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc new file mode 100644 index 0000000000..93acdaddbf --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 9) skipped --- +// size?: number; +// } +// +// var /*RENAME*/[|nnRENAME|]: string; +// var x = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 9) skipped --- +// size?: number; +// } +// +// var [|nnRENAME|]: string; +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc new file mode 100644 index 0000000000..b5319c0e42 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc @@ -0,0 +1,87 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function /*RENAME*/[|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = ; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = ; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = ; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc new file mode 100644 index 0000000000..295648425f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc @@ -0,0 +1,34 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 4) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// /*RENAME*/[|propxRENAME|]: number +// propString: string +// optional?: boolean +// } +// // --- (line: 12) skipped --- + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 11) skipped --- +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff new file mode 100644 index 0000000000..7b8a814c5b --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff @@ -0,0 +1,52 @@ +--- old.tsxRename7.baseline.jsonc ++++ new.tsxRename7.baseline.jsonc +@@= skipped -7, +7 lines =@@ + // propString: string + // optional?: boolean + // } +-// declare function Opt(attributes: OptionPropBag): JSX.Element; +-// let opt = ; +-// let opt1 = ; +-// let opt2 = ; +-// let opt3 = ; ++// // --- (line: 12) skipped --- + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 4) skipped --- +-// interface ElementAttributesProperty { props; } +-// } +-// interface OptionPropBag { +-// [|propxRENAME|]: number +-// propString: string +-// optional?: boolean ++// --- (line: 10) skipped --- + // } + // declare function Opt(attributes: OptionPropBag): JSX.Element; + // let opt = ; + // let opt1 = ; +-// let opt2 = ; ++// let opt2 = ; + // let opt3 = ; + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 4) skipped --- +-// interface ElementAttributesProperty { props; } +-// } +-// interface OptionPropBag { +-// [|propxRENAME|]: number +-// propString: string +-// optional?: boolean +-// } ++// --- (line: 11) skipped --- + // declare function Opt(attributes: OptionPropBag): JSX.Element; + // let opt = ; +-// let opt1 = ; ++// let opt1 = ; + // let opt2 = ; + // let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc new file mode 100644 index 0000000000..ee06cf2f9f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc @@ -0,0 +1,245 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// className?: string; +// } +// interface ButtonProps extends ClickableProps { +// /*RENAME*/[|onClickRENAME|](event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// goTo: string; +// // --- (line: 16) skipped --- + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 18) skipped --- +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 19) skipped --- +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 11) skipped --- +// onClick(event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// /*RENAME*/[|goToRENAME|]: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// // --- (line: 19) skipped --- + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 20) skipped --- +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function /*RENAME*/[|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function /*RENAME*/[|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function /*RENAME*/[|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = ; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = {}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = {}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = ; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 19) skipped --- +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} /*RENAME*/[|ignore-propRENAME|] />; +// let opt = ; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 21) skipped --- +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff new file mode 100644 index 0000000000..40ae19c4bc --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff @@ -0,0 +1,98 @@ +--- old.tsxRename9.baseline.jsonc ++++ new.tsxRename9.baseline.jsonc +@@= skipped -7, +7 lines =@@ + // } + // interface LinkProps extends ClickableProps { + // goTo: string; +-// } +-// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +-// declare function MainButton(linkProps: LinkProps): JSX.Element; +-// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +-// let opt = ; +-// let opt = ; +-// let opt = {}} />; +-// let opt = {}} ignore-prop />; +-// let opt = ; +-// let opt = ; ++// // --- (line: 16) skipped --- + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 8) skipped --- +-// className?: string; +-// } +-// interface ButtonProps extends ClickableProps { +-// [|onClickRENAME|](event?: React.MouseEvent): void; +-// } +-// interface LinkProps extends ClickableProps { +-// goTo: string; +-// } +-// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +-// declare function MainButton(linkProps: LinkProps): JSX.Element; ++// --- (line: 18) skipped --- + // declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; + // let opt = ; + // let opt = ; + // let opt = {}} />; +-// let opt = {}} ignore-prop />; ++// let opt = {}} ignore-prop />; + // let opt = ; + // let opt = ; + +@@= skipped -38, +19 lines =@@ + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 8) skipped --- +-// className?: string; +-// } +-// interface ButtonProps extends ClickableProps { +-// [|onClickRENAME|](event?: React.MouseEvent): void; +-// } +-// interface LinkProps extends ClickableProps { +-// goTo: string; +-// } +-// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +-// declare function MainButton(linkProps: LinkProps): JSX.Element; +-// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; ++// --- (line: 19) skipped --- + // let opt = ; + // let opt = ; +-// let opt = {}} />; ++// let opt = {}} />; + // let opt = {}} ignore-prop />; + // let opt = ; + // let opt = ; +@@= skipped -31, +20 lines =@@ + // } + // declare function MainButton(buttonProps: ButtonProps): JSX.Element; + // declare function MainButton(linkProps: LinkProps): JSX.Element; +-// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +-// let opt = ; +-// let opt = ; +-// let opt = {}} />; +-// let opt = {}} ignore-prop />; +-// let opt = ; +-// let opt = ; ++// // --- (line: 19) skipped --- + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 11) skipped --- +-// onClick(event?: React.MouseEvent): void; +-// } +-// interface LinkProps extends ClickableProps { +-// [|goToRENAME|]: string; +-// } +-// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +-// declare function MainButton(linkProps: LinkProps): JSX.Element; +-// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +-// let opt = ; ++// --- (line: 20) skipped --- + // let opt = ; + // let opt = {}} />; + // let opt = {}} ignore-prop />; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_comment2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_comment2.baseline new file mode 100644 index 0000000000..4ce50a231c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_comment2.baseline @@ -0,0 +1,6 @@ +// === Smart Selection === +const a = 1; //a b/**/c d + + a bc d + //a bc d +const a = 1; //a bc d \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline new file mode 100644 index 0000000000..f844df6a1d --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline @@ -0,0 +1,12 @@ +// === Smart Selection === +type X = IsExactlyAny

extends true ? T : ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[/**/K] : P[K]; } & Pick>) + + K + P[K] + K extends keyof T ? T[K] : P[K] + IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K] + { [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } + { [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick> + ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick>) + IsExactlyAny

extends true ? T : ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick>) +type X = IsExactlyAny

extends true ? T : ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick>) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline.diff new file mode 100644 index 0000000000..940e0969cb --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_complex.baseline.diff @@ -0,0 +1,11 @@ +--- old.smartSelection_complex.baseline ++++ new.smartSelection_complex.baseline +@@= skipped -4, +4 lines =@@ + P[K] + K extends keyof T ? T[K] : P[K] + IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K] +- IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; +- [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; + { [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } + { [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick> + ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[K] : P[K]; } & Pick>) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline new file mode 100644 index 0000000000..f17e19b22e --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline @@ -0,0 +1,95 @@ +// === Smart Selection === +class HomePage { + componentDidMount(/**/) { + if (this.props.username) { + return ''; + } + } +} + + + componentDidMount() { + if (this.props.username) { + return ''; + } + }↲ + +class HomePage { + componentDidMount() { + if (this.props.username) { + return ''; + } + } +} + +================================================================================ + +class HomePage { + componentDidMount() { + if (this.props.username/**/) { + return ''; + } + } +} + + + if (this.props.username) { + return ''; + }↲ + + { + if (this.props.username) { + return ''; + } + }↲ + + componentDidMount() { + if (this.props.username) { + return ''; + } + }↲ + +class HomePage { + componentDidMount() { + if (this.props.username) { + return ''; + } + } +} + +================================================================================ + +class HomePage { + componentDidMount() { + if (this.props.username) { + return '/**/'; + } + } +} + + '' ↲ + return '';↲ + + if (this.props.username) { + return ''; + }↲ + + { + if (this.props.username) { + return ''; + } + }↲ + + componentDidMount() { + if (this.props.username) { + return ''; + } + }↲ + +class HomePage { + componentDidMount() { + if (this.props.username) { + return ''; + } + } +} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline.diff new file mode 100644 index 0000000000..194bd64baa --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_emptyRanges.baseline.diff @@ -0,0 +1,128 @@ +--- old.smartSelection_emptyRanges.baseline ++++ new.smartSelection_emptyRanges.baseline +@@= skipped -7, +7 lines =@@ + } + + +- ) +- +- + componentDidMount() { + if (this.props.username) { + return ''; + } +- } +- +- +- ↲ +-••componentDidMount() { +- if (this.props.username) { +- return ''; +- } + }↲ +- + + class HomePage { + componentDidMount() { +@@= skipped -37, +25 lines =@@ + } + + +- username +- +- +- this.props.username +- +- + if (this.props.username) { +- return ''; +- } +- +- +- ↲ +-••••if (this.props.username) { + return ''; + }↲ +-•• +- + + { + if (this.props.username) { + return ''; + } +- } +- ++ }↲ + + componentDidMount() { + if (this.props.username) { + return ''; + } +- } +- +- +- ↲ +-••componentDidMount() { +- if (this.props.username) { +- return ''; +- } + }↲ +- + + class HomePage { + componentDidMount() { +@@= skipped -58, +34 lines =@@ + } + } + +- +- '' +- +- +- return ''; +- +- +- ↲ +-••••••return '';↲ +-•••• +- ++ '' ↲ ++ return '';↲ + + if (this.props.username) { +- return ''; +- } +- +- +- ↲ +-••••if (this.props.username) { + return ''; + }↲ +-•• +- + + { + if (this.props.username) { + return ''; + } +- } +- ++ }↲ + + componentDidMount() { + if (this.props.username) { + return ''; + } +- } +- +- +- ↲ +-••componentDidMount() { +- if (this.props.username) { +- return ''; +- } + }↲ +- + + class HomePage { + componentDidMount() { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function1.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function1.baseline new file mode 100644 index 0000000000..6344b9c647 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function1.baseline @@ -0,0 +1,17 @@ +// === Smart Selection === +const f1 = () => { + /**/ +}; + + + { + +} + + () => { + +} + +const f1 = () => { + +}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function2.baseline new file mode 100644 index 0000000000..1b4f84b37c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function2.baseline @@ -0,0 +1,13 @@ +// === Smart Selection === +function f2() { + /**/ +} + + + { + +} + +function f2() { + +} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function3.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function3.baseline new file mode 100644 index 0000000000..afd3e7948c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_function3.baseline @@ -0,0 +1,17 @@ +// === Smart Selection === +const f3 = function () { + /**/ +} + + + { + +} + + function () { + +} + +const f3 = function () { + +} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline new file mode 100644 index 0000000000..b09fe5cf38 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline @@ -0,0 +1,24 @@ +// === Smart Selection === +function f(/**/p, q?, ...r: any[] = []) {} + + p + p, q?, ...r: any[] = [] +function f(p, q?, ...r: any[] = []) {} + +================================================================================ + +function f(p, /**/q?, ...r: any[] = []) {} + + q + q? + p, q?, ...r: any[] = [] +function f(p, q?, ...r: any[] = []) {} + +================================================================================ + +function f(p, q?, /**/...r: any[] = []) {} + + ... + ...r: any[] = [] + p, q?, ...r: any[] = [] +function f(p, q?, ...r: any[] = []) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline.diff new file mode 100644 index 0000000000..e16b3ff653 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams1.baseline.diff @@ -0,0 +1,11 @@ +--- old.smartSelection_functionParams1.baseline ++++ new.smartSelection_functionParams1.baseline +@@= skipped -18, +18 lines =@@ + function f(p, q?, /**/...r: any[] = []) {} + + ... +- ...r +- ...r: any[] + ...r: any[] = [] + p, q?, ...r: any[] = [] + function f(p, q?, ...r: any[] = []) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline new file mode 100644 index 0000000000..f9c497907a --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline @@ -0,0 +1,15 @@ +// === Smart Selection === +function f( + a, + /**/b +) {} + + b↲ + + a, + b↲ + +function f( + a, + b +) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline.diff new file mode 100644 index 0000000000..669d9d0f32 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_functionParams2.baseline.diff @@ -0,0 +1,21 @@ +--- old.smartSelection_functionParams2.baseline ++++ new.smartSelection_functionParams2.baseline +@@= skipped -3, +3 lines =@@ + /**/b + ) {} + +- +- b +- +- +- ↲ +-••a, +- b↲ +- ++ b↲ ++ ++ a, ++ b↲ + + function f( + a, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline new file mode 100644 index 0000000000..f1208f23a3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline @@ -0,0 +1,15 @@ +// === Smart Selection === +import { /**/x as y, z } from './z'; +import { b } from './'; + +console.log(1); + + x ↲ + x as y ↲ + x as y, z ↲ + { x as y, z } ↲ +import { x as y, z } from './z';↲ + +import { x as y, z } from './z'; +import { b } from './'; +console.log(1); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline.diff new file mode 100644 index 0000000000..f0ecf62be0 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_imports.baseline.diff @@ -0,0 +1,38 @@ +--- old.smartSelection_imports.baseline ++++ new.smartSelection_imports.baseline +@@= skipped -3, +3 lines =@@ + + console.log(1); + +- +- x +- +- +- x as y +- +- +- x as y, z +- +- +- { x as y, z } +- +- +-import { x as y, z } from './z'; +- +- +-import { x as y, z } from './z'; +-import { b } from './'; +- +- +-import { x as y, z } from './z'; +-import { b } from './'; +- ++ x ↲ ++ x as y ↲ ++ x as y, z ↲ ++ { x as y, z } ↲ ++import { x as y, z } from './z';↲ ++ ++import { x as y, z } from './z'; ++import { b } from './'; + console.log(1); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline new file mode 100644 index 0000000000..ad833f2342 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline @@ -0,0 +1,5 @@ +// === Smart Selection === +class C {} +/**/ + +class C {}↲ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline.diff new file mode 100644 index 0000000000..70c334f791 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_lastBlankLine.baseline.diff @@ -0,0 +1,8 @@ +--- old.smartSelection_lastBlankLine.baseline ++++ new.smartSelection_lastBlankLine.baseline +@@= skipped -1, +1 lines =@@ + class C {} + /**/ + +- + class C {}↲ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_loneVariableDeclaration.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_loneVariableDeclaration.baseline new file mode 100644 index 0000000000..c1151f045f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_loneVariableDeclaration.baseline @@ -0,0 +1,5 @@ +// === Smart Selection === +const /**/x = 3; + + x +const x = 3; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline new file mode 100644 index 0000000000..e7f008d407 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline @@ -0,0 +1,44 @@ +// === Smart Selection === +type M = { /**/-readonly [K in keyof any]-?: any }; + + - + { -readonly [K in keyof any]-?: any } +type M = { -readonly [K in keyof any]-?: any }; + +================================================================================ + +type M = { -re/**/adonly [K in keyof any]-?: any }; + + { -readonly [K in keyof any]-?: any } +type M = { -readonly [K in keyof any]-?: any }; + +================================================================================ + +type M = { -readonly /**/[K in keyof any]-?: any }; + + { -readonly [K in keyof any]-?: any } +type M = { -readonly [K in keyof any]-?: any }; + +================================================================================ + +type M = { -readonly [K in ke/**/yof any]-?: any }; + + keyof any + K in keyof any + { -readonly [K in keyof any]-?: any } +type M = { -readonly [K in keyof any]-?: any }; + +================================================================================ + +type M = { -readonly [K in keyof any]/**/-?: any }; + + - + { -readonly [K in keyof any]-?: any } +type M = { -readonly [K in keyof any]-?: any }; + +================================================================================ + +type M = { -readonly [K in keyof any]-/**/?: any }; + + { -readonly [K in keyof any]-?: any } +type M = { -readonly [K in keyof any]-?: any }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline.diff new file mode 100644 index 0000000000..5a6c3570d4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_mappedTypes.baseline.diff @@ -0,0 +1,67 @@ +--- old.smartSelection_mappedTypes.baseline ++++ new.smartSelection_mappedTypes.baseline +@@= skipped -1, +1 lines =@@ + type M = { /**/-readonly [K in keyof any]-?: any }; + + - +- -readonly +- -readonly [K in keyof any]-? +- -readonly [K in keyof any]-?: any + { -readonly [K in keyof any]-?: any } + type M = { -readonly [K in keyof any]-?: any }; + +@@= skipped -10, +7 lines =@@ + + type M = { -re/**/adonly [K in keyof any]-?: any }; + +- readonly +- -readonly +- -readonly [K in keyof any]-? +- -readonly [K in keyof any]-?: any + { -readonly [K in keyof any]-?: any } + type M = { -readonly [K in keyof any]-?: any }; + +@@= skipped -11, +7 lines =@@ + + type M = { -readonly /**/[K in keyof any]-?: any }; + +- [ +- [K in keyof any] +- -readonly [K in keyof any]-? +- -readonly [K in keyof any]-?: any + { -readonly [K in keyof any]-?: any } + type M = { -readonly [K in keyof any]-?: any }; + +@@= skipped -11, +7 lines =@@ + + type M = { -readonly [K in ke/**/yof any]-?: any }; + +- keyof + keyof any + K in keyof any +- [K in keyof any] +- -readonly [K in keyof any]-? +- -readonly [K in keyof any]-?: any + { -readonly [K in keyof any]-?: any } + type M = { -readonly [K in keyof any]-?: any }; + +@@= skipped -14, +10 lines =@@ + type M = { -readonly [K in keyof any]/**/-?: any }; + + - +- -? +- -readonly [K in keyof any]-? +- -readonly [K in keyof any]-?: any + { -readonly [K in keyof any]-?: any } + type M = { -readonly [K in keyof any]-?: any }; + +@@= skipped -10, +7 lines =@@ + + type M = { -readonly [K in keyof any]-/**/?: any }; + +- ? +- -? +- -readonly [K in keyof any]-? +- -readonly [K in keyof any]-?: any + { -readonly [K in keyof any]-?: any } + type M = { -readonly [K in keyof any]-?: any }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline new file mode 100644 index 0000000000..2cd2a914e1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline @@ -0,0 +1,134 @@ +// === Smart Selection === +type X = { + /**/foo?: string; + readonly bar: { x: number }; + meh +} + + foo ↲ + foo?: string;↲ + + foo?: string; + readonly bar: { x: number }; + meh↲ + + { + foo?: string; + readonly bar: { x: number }; + meh +} + +type X = { + foo?: string; + readonly bar: { x: number }; + meh +} + +================================================================================ + +type X = { + foo?: string; + /**/readonly bar: { x: number }; + meh +} + + readonly ↲ + readonly bar: { x: number };↲ + + foo?: string; + readonly bar: { x: number }; + meh↲ + + { + foo?: string; + readonly bar: { x: number }; + meh +} + +type X = { + foo?: string; + readonly bar: { x: number }; + meh +} + +================================================================================ + +type X = { + foo?: string; + readonly /**/bar: { x: number }; + meh +} + + bar ↲ + readonly bar: { x: number };↲ + + foo?: string; + readonly bar: { x: number }; + meh↲ + + { + foo?: string; + readonly bar: { x: number }; + meh +} + +type X = { + foo?: string; + readonly bar: { x: number }; + meh +} + +================================================================================ + +type X = { + foo?: string; + readonly bar: { x: num/**/ber }; + meh +} + + number ↲ + x: number ↲ + { x: number } ↲ + readonly bar: { x: number };↲ + + foo?: string; + readonly bar: { x: number }; + meh↲ + + { + foo?: string; + readonly bar: { x: number }; + meh +} + +type X = { + foo?: string; + readonly bar: { x: number }; + meh +} + +================================================================================ + +type X = { + foo?: string; + readonly bar: { x: number }; + /**/meh +} + + meh↲ + + foo?: string; + readonly bar: { x: number }; + meh↲ + + { + foo?: string; + readonly bar: { x: number }; + meh +} + +type X = { + foo?: string; + readonly bar: { x: number }; + meh +} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline.diff new file mode 100644 index 0000000000..66f80dbaef --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_objectTypes.baseline.diff @@ -0,0 +1,128 @@ +--- old.smartSelection_objectTypes.baseline ++++ new.smartSelection_objectTypes.baseline +@@= skipped -4, +4 lines =@@ + meh + } + +- +- foo +- +- +- foo? +- ++ foo ↲ ++ foo?: string;↲ + + foo?: string; +- +- +- ↲ +-••foo?: string; + readonly bar: { x: number }; + meh↲ +- + + { + foo?: string; +@@= skipped -36, +27 lines =@@ + meh + } + +- +- readonly +- +- +- readonly bar +- +- +- readonly bar: { x: number }; +- +- +- ↲ +-••foo?: string; ++ readonly ↲ ++ readonly bar: { x: number };↲ ++ ++ foo?: string; + readonly bar: { x: number }; + meh↲ +- + + { + foo?: string; +@@= skipped -36, +27 lines =@@ + meh + } + +- +- bar +- +- +- readonly bar +- +- +- readonly bar: { x: number }; +- +- +- ↲ +-••foo?: string; ++ bar ↲ ++ readonly bar: { x: number };↲ ++ ++ foo?: string; + readonly bar: { x: number }; + meh↲ +- + + { + foo?: string; +@@= skipped -36, +27 lines =@@ + meh + } + +- +- number +- +- +- x: number +- +- +- { x: number } +- +- +- readonly bar: { x: number }; +- +- +- ↲ +-••foo?: string; ++ number ↲ ++ x: number ↲ ++ { x: number } ↲ ++ readonly bar: { x: number };↲ ++ ++ foo?: string; + readonly bar: { x: number }; + meh↲ +- + + { + foo?: string; +@@= skipped -39, +29 lines =@@ + /**/meh + } + +- +- meh +- +- +- ↲ +-••foo?: string; ++ meh↲ ++ ++ foo?: string; + readonly bar: { x: number }; + meh↲ +- + + { + foo?: string; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline new file mode 100644 index 0000000000..d23bdd4dd3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline @@ -0,0 +1,6 @@ +// === Smart Selection === +console/**/.log(); + +console.log +console.log() +console.log(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline.diff new file mode 100644 index 0000000000..2ca3c1bf93 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_punctuationPriority.baseline.diff @@ -0,0 +1,10 @@ +--- old.smartSelection_punctuationPriority.baseline ++++ new.smartSelection_punctuationPriority.baseline +@@= skipped -0, +0 lines =@@ + // === Smart Selection === + console/**/.log(); + +-console + console.log + console.log() + console.log(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline new file mode 100644 index 0000000000..8027901532 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline @@ -0,0 +1,90 @@ +// === Smart Selection === +class Foo { + bar(a, b) { + if (/**/a === b) { + return true; + } + return false; + } +} + + a ↲ + a === b ↲ + + if (a === b) { + return true; + }↲ + + if (a === b) { + return true; + } + return false;↲ + + { + if (a === b) { + return true; + } + return false; + }↲ + + bar(a, b) { + if (a === b) { + return true; + } + return false; + }↲ + +class Foo { + bar(a, b) { + if (a === b) { + return true; + } + return false; + } +} + +================================================================================ + +class Foo { + bar(a, b) { + if (a === b) { + return tr/**/ue; + } + return false; + } +} + + true ↲ + return true;↲ + + if (a === b) { + return true; + }↲ + + if (a === b) { + return true; + } + return false;↲ + + { + if (a === b) { + return true; + } + return false; + }↲ + + bar(a, b) { + if (a === b) { + return true; + } + return false; + }↲ + +class Foo { + bar(a, b) { + if (a === b) { + return true; + } + return false; + } +} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline.diff new file mode 100644 index 0000000000..3dca3d25ec --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple1.baseline.diff @@ -0,0 +1,124 @@ +--- old.smartSelection_simple1.baseline ++++ new.smartSelection_simple1.baseline +@@= skipped -7, +7 lines =@@ + } + } + +- +- a +- +- +- a === b +- ++ a ↲ ++ a === b ↲ + + if (a === b) { + return true; +- } +- +- +- ↲ +-••••••if (a === b) { ++ }↲ ++ ++ if (a === b) { + return true; + } + return false;↲ +-•• +- + + { + if (a === b) { + return true; + } + return false; +- } +- ++ }↲ + + bar(a, b) { + if (a === b) { + return true; + } + return false; +- } +- +- +- ↲ +-••bar(a, b) { +- if (a === b) { +- return true; +- } +- return false; + }↲ +- + + class Foo { + bar(a, b) { +@@= skipped -65, +46 lines =@@ + } + } + +- +- true +- +- +- return true; +- +- +- ↲ +-••••••••••return true;↲ +-•••••• +- +- +- if (a === b) { +- return true; +- } +- +- +- ↲ +-••••••if (a === b) { ++ true ↲ ++ return true;↲ ++ ++ if (a === b) { ++ return true; ++ }↲ ++ ++ if (a === b) { + return true; + } + return false;↲ +-•• +- + + { + if (a === b) { + return true; + } + return false; +- } +- ++ }↲ + + bar(a, b) { + if (a === b) { + return true; + } + return false; +- } +- +- +- ↲ +-••bar(a, b) { +- if (a === b) { +- return true; +- } +- return false; + }↲ +- + + class Foo { + bar(a, b) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline new file mode 100644 index 0000000000..34d63f7949 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline @@ -0,0 +1,38 @@ +// === Smart Selection === +export interface IService { + _serviceBrand: any; + + open(ho/**/st: number, data: any): Promise; + bar(): void +} + + host ↲ + host: number ↲ + host: number, data: any ↲ + open(host: number, data: any): Promise;↲ + + _serviceBrand: any; + open(host: number, data: any): Promise; + bar(): void↲ + +export interface IService { + _serviceBrand: any; + open(host: number, data: any): Promise; + bar(): void +} + +================================================================================ + +export interface IService { + _serviceBrand: any; + + open(host: number, data: any): Promise; + bar(): void/**/ +} + + +export interface IService { + _serviceBrand: any; + open(host: number, data: any): Promise; + bar(): void +} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline.diff new file mode 100644 index 0000000000..ca0b9e1cd8 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_simple2.baseline.diff @@ -0,0 +1,61 @@ +--- old.smartSelection_simple2.baseline ++++ new.smartSelection_simple2.baseline +@@= skipped -5, +5 lines =@@ + bar(): void + } + +- +- host +- +- +- host: number +- +- +- host: number, data: any +- +- +- open(host: number, data: any): Promise; +- +- +- ↲ +-••_serviceBrand: any; +- ++ host ↲ ++ host: number ↲ ++ host: number, data: any ↲ ++ open(host: number, data: any): Promise;↲ ++ ++ _serviceBrand: any; + open(host: number, data: any): Promise; + bar(): void↲ + +- + export interface IService { + _serviceBrand: any; +- + open(host: number, data: any): Promise; + bar(): void + } +@@= skipped -37, +25 lines =@@ + } + + +- void +- +- +- bar(): void +- +- +- ↲ +-••_serviceBrand: any; +- +- open(host: number, data: any): Promise; +- bar(): void↲ +- +- + export interface IService { + _serviceBrand: any; +- + open(host: number, data: any): Promise; + bar(): void + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline new file mode 100644 index 0000000000..883f9f5ab3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline @@ -0,0 +1,9 @@ +// === Smart Selection === +const a = 'a'; +const b = /**/'b'; + + 'b' +const b = 'b'; + +const a = 'a'; +const b = 'b'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline.diff new file mode 100644 index 0000000000..0bde7503b4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_stringLiteral.baseline.diff @@ -0,0 +1,12 @@ +--- old.smartSelection_stringLiteral.baseline ++++ new.smartSelection_stringLiteral.baseline +@@= skipped -1, +1 lines =@@ + const a = 'a'; + const b = /**/'b'; + +- + 'b' +- + const b = 'b'; + + const a = 'a'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline new file mode 100644 index 0000000000..ada0f0c185 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline @@ -0,0 +1,24 @@ +// === Smart Selection === +`a /**/b ${ + 'c' +} d` + + +`a b ${ + 'c' +} d` + +================================================================================ + +`a b ${ + '/**/c' +} d` + + 'c'↲ + + 'c' +} d` + +`a b ${ + 'c' +} d` \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline.diff new file mode 100644 index 0000000000..ad54e4e730 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings.baseline.diff @@ -0,0 +1,38 @@ +--- old.smartSelection_templateStrings.baseline ++++ new.smartSelection_templateStrings.baseline +@@= skipped -3, +3 lines =@@ + } d` + + +- a b ${ +- 'c' +-} d +- + `a b ${ + 'c' + } d` +@@= skipped -14, +10 lines =@@ + '/**/c' + } d` + +- +- c +- +- +- 'c' +- +- +- ${ +- 'c' +-} +- +- a b ${ +- 'c' +-} d ++ 'c'↲ ++ ++ 'c' ++} d` + + `a b ${ + 'c' \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline new file mode 100644 index 0000000000..02d752f0e4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline @@ -0,0 +1,5 @@ +// === Smart Selection === +`a ${b} /**/c` + + b} c` +`a ${b} c` \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline.diff b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline.diff new file mode 100644 index 0000000000..d16641c618 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/smartSelection/smartSelection_templateStrings2.baseline.diff @@ -0,0 +1,9 @@ +--- old.smartSelection_templateStrings2.baseline ++++ new.smartSelection_templateStrings2.baseline +@@= skipped -0, +0 lines =@@ + // === Smart Selection === + `a ${b} /**/c` + +- a ${b} c ++ b} c` + `a ${b} c` \ No newline at end of file From dcc8bef612587f5f696fe5eb62cb2d3de343d2cc Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 27 Oct 2025 11:46:10 -0700 Subject: [PATCH 3/7] Fix typo --- internal/core/compileroptions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/compileroptions.go b/internal/core/compileroptions.go index 6452d32c0b..ab1936ca76 100644 --- a/internal/core/compileroptions.go +++ b/internal/core/compileroptions.go @@ -255,7 +255,7 @@ func (options *CompilerOptions) AllowImportingTsExtensionsFrom(fileName string) return options.GetAllowImportingTsExtensions() || tspath.IsDeclarationFileName(fileName) } -// Deprecated: always returns truej +// Deprecated: always returns true func (options *CompilerOptions) GetESModuleInterop() bool { return true } From 994fe030ed1aed45e78773541564f98afa1840f5 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 27 Oct 2025 15:18:36 -0700 Subject: [PATCH 4/7] Add accidentally deleted baselines --- .../different-options-with-incremental.js | 1609 ++++++++ .../tsbuild/commandLine/different-options.js | 1316 +++++++ ...ndline-with-declaration-and-incremental.js | 1085 +++++ ...y-false-on-commandline-with-declaration.js | 535 +++ ...mitDeclarationOnly-false-on-commandline.js | 958 +++++ ...ndline-with-declaration-and-incremental.js | 2068 ++++++++++ ...ionOnly-on-commandline-with-declaration.js | 756 ++++ .../emitDeclarationOnly-on-commandline.js | 1880 +++++++++ .../reference/tsbuild/commandLine/help.js | 144 + .../when-build-not-first-argument.js | 10 + .../configFileErrors/missing-config-file.js | 12 + .../reports-syntax-errors-in-config-file.js | 400 ++ .../when-tsconfig-extends-the-missing-file.js | 70 + ...-dts-generation-errors-with-incremental.js | 224 ++ .../reports-dts-generation-errors.js | 163 + ...ugh-triple-slash-but-uses-no-references.js | 257 ++ ...file-is-referenced-through-triple-slash.js | 427 ++ ...d-inferred-type-from-referenced-project.js | 229 ++ ...s-not-in-rootDir-at-the-import-location.js | 705 ++++ ...ts-the-error-about-it-by-stopping-build.js | 133 + .../in-circular-is-set-in-the-reference.js | 735 ++++ ...ng-setup-correctly-and-reports-no-error.js | 560 +++ ...-emitDeclarationOnly-and-declarationMap.js | 431 ++ ...import-project-with-emitDeclarationOnly.js | 418 ++ ...mports-project-with-emitDeclarationOnly.js | 495 +++ .../tsbuild/extends/configDir-template.js | 130 + .../extends/resolves-the-symlink-path.js | 114 + ...nce-and-both-extend-config-with-include.js | 255 ++ ...th-projects-extends-config-with-include.js | 256 ++ ...-transitive-module-with-isolatedModules.js | 659 ++++ .../inferred-type-from-transitive-module.js | 661 ++++ ...hange-in-signature-with-isolatedModules.js | 1037 +++++ ...based-projects-and-emits-them-correctly.js | 467 +++ ...ved-json-files-and-emits-them-correctly.js | 412 ++ ...s-merged-and-contains-late-bound-member.js | 397 ++ ...iffers-between-projects-for-shared-file.js | 214 + ...olution-from-d.ts-of-referenced-project.js | 290 ++ ...project-correctly-with-preserveSymlinks.js | 251 ++ ...-file-from-referenced-project-correctly.js | 252 ++ ...ared-resolution-should-not-report-error.js | 262 ++ ...t-resolution-options-referenced-project.js | 236 ++ .../when-resolution-is-not-shared.js | 274 ++ ...fiers-across-projects-resolve-correctly.js | 457 +++ ...zed-module-specifiers-resolve-correctly.js | 387 ++ .../noCheck/dts-errors-with-incremental.js | 1485 +++++++ .../reference/tsbuild/noCheck/dts-errors.js | 909 +++++ .../semantic-errors-with-incremental.js | 1283 ++++++ .../tsbuild/noCheck/semantic-errors.js | 722 ++++ .../noCheck/syntax-errors-with-incremental.js | 1345 +++++++ .../tsbuild/noCheck/syntax-errors.js | 854 ++++ .../tsbuild/noEmit/changes-composite.js | 1661 ++++++++ .../noEmit/changes-incremental-declaration.js | 1613 ++++++++ .../tsbuild/noEmit/changes-incremental.js | 1444 +++++++ .../changes-with-initial-noEmit-composite.js | 1127 ++++++ ...-initial-noEmit-incremental-declaration.js | 1077 +++++ ...changes-with-initial-noEmit-incremental.js | 923 +++++ ...ble-changes-with-incremental-as-modules.js | 735 ++++ ...aration-enable-changes-with-incremental.js | 633 +++ ...tion-enable-changes-with-multiple-files.js | 1646 ++++++++ ...-errors-with-declaration-enable-changes.js | 346 ++ .../dts-errors-with-incremental-as-modules.js | 708 ++++ .../noEmit/dts-errors-with-incremental.js | 617 +++ ...dts-enabled-with-incremental-as-modules.js | 525 +++ ...rs-without-dts-enabled-with-incremental.js | 459 +++ .../noEmit/dts-errors-without-dts-enabled.js | 237 ++ .../reference/tsbuild/noEmit/dts-errors.js | 344 ++ ...ntic-errors-with-incremental-as-modules.js | 615 +++ .../semantic-errors-with-incremental.js | 547 +++ .../tsbuild/noEmit/semantic-errors.js | 310 ++ ...ntax-errors-with-incremental-as-modules.js | 589 +++ .../noEmit/syntax-errors-with-incremental.js | 516 +++ .../reference/tsbuild/noEmit/syntax-errors.js | 312 ++ ...rrors-with-declaration-with-incremental.js | 387 ++ .../dts-errors-with-declaration.js | 238 ++ .../dts-errors-with-incremental.js | 283 ++ .../tsbuild/noEmitOnError/dts-errors.js | 165 + ...rrors-with-declaration-with-incremental.js | 353 ++ .../semantic-errors-with-declaration.js | 222 ++ .../semantic-errors-with-incremental.js | 330 ++ .../tsbuild/noEmitOnError/semantic-errors.js | 211 + ...rrors-with-declaration-with-incremental.js | 359 ++ .../syntax-errors-with-declaration.js | 228 ++ .../syntax-errors-with-incremental.js | 336 ++ .../tsbuild/noEmitOnError/syntax-errors.js | 217 + ...otDir-is-not-specified-and-is-composite.js | 135 + .../when-rootDir-is-not-specified.js | 94 + ...iles-belong-to-rootDir-and-is-composite.js | 164 + ...ied-but-not-all-files-belong-to-rootDir.js | 109 + .../outputPaths/when-rootDir-is-specified.js | 95 + ...e-from-project-reference-with-composite.js | 276 ++ ...n-root-is-source-from-project-reference.js | 248 ++ ...hen-there-are-23-projects-in-a-solution.js | 3254 +++++++++++++++ ...when-there-are-3-projects-in-a-solution.js | 694 ++++ ...when-there-are-5-projects-in-a-solution.js | 950 +++++ ...when-there-are-8-projects-in-a-solution.js | 1334 +++++++ ...iles-containing-json-file-non-composite.js | 111 + .../files-containing-json-file.js | 173 + ...ting-json-module-from-project-reference.js | 256 ++ .../include-and-files-non-composite.js | 111 + .../resolveJsonModule/include-and-files.js | 173 + ...file-name-matches-ts-file-non-composite.js | 111 + ...r-include-and-file-name-matches-ts-file.js | 173 + ...-along-with-other-include-non-composite.js | 111 + ...nclude-of-json-along-with-other-include.js | 173 + .../include-only-non-composite.js | 104 + ...-with-json-not-in-rootDir-non-composite.js | 98 + .../include-only-with-json-not-in-rootDir.js | 163 + ...t-outside-configDirectory-non-composite.js | 106 + ...out-rootDir-but-outside-configDirectory.js | 162 + ...clude-only-without-outDir-non-composite.js | 98 + .../include-only-without-outDir.js | 161 + .../tsbuild/resolveJsonModule/include-only.js | 177 + .../sourcemap-non-composite.js | 127 + .../tsbuild/resolveJsonModule/sourcemap.js | 190 + .../without-outDir-non-composite.js | 118 + .../resolveJsonModule/without-outDir.js | 179 + ...nsecutive-and-non-consecutive-are-mixed.js | 535 +++ .../roots/when-files-are-not-consecutive.js | 246 ++ ...hen-multiple-root-files-are-consecutive.js | 287 ++ ...-referenced-project-and-shared-is-first.js | 887 +++++ ...en-root-file-is-from-referenced-project.js | 887 +++++ .../when-two-root-files-are-consecutive.js | 206 + .../always-builds-under-with-force-option.js | 547 +++ ...t-in-not-build-order-doesnt-throw-error.js | 75 + ...rectly-when-declarationDir-is-specified.js | 494 +++ ...ilds-correctly-when-outDir-is-specified.js | 494 +++ ...composite-or-doesnt-have-any-references.js | 158 + ...s-even-if-upstream-projects-have-errors.js | 568 +++ .../can-detect-when-and-what-to-rebuild.js | 863 ++++ ...t-in-not-build-order-doesnt-throw-error.js | 70 + ...does-not-write-any-files-in-a-dry-build.js | 72 + .../reference/tsbuild/sample/explainFiles.js | 1062 +++++ ...it-would-skip-builds-during-a-dry-build.js | 508 +++ .../tsbuild/sample/listEmittedFiles.js | 954 +++++ .../reference/tsbuild/sample/listFiles.js | 958 +++++ ...-in-tsbuildinfo-doesnt-match-ts-version.js | 590 +++ ...uilds-from-start-if-force-option-is-set.js | 564 +++ ...uilds-when-extended-config-file-changes.js | 638 +++ .../sample/removes-all-files-it-built.js | 524 +++ ...ror-if-input-file-is-missing-with-force.js | 491 +++ .../reports-error-if-input-file-is-missing.js | 491 +++ .../reference/tsbuild/sample/sample.js | 1233 ++++++ ...rrors-when-test-does-not-reference-core.js | 712 ++++ ...ects-have-errors-with-stopBuildOnErrors.js | 713 ++++ .../tsbuild/sample/tsbuildinfo-has-error.js | 120 + .../sample/when-declaration-option-changes.js | 297 ++ .../sample/when-declarationMap-changes.js | 769 ++++ .../when-esModuleInterop-option-changes.js | 649 +++ ...ot-change-but-its-modified-time-changes.js | 540 +++ .../when-logic-specifies-tsBuildInfoFile.js | 513 +++ .../sample/when-module-option-changes.js | 319 ++ .../sample/when-target-option-changes.js | 327 ++ .../reports-syntax-errors-in-config-file.js | 405 ++ .../demo/updates-with-bad-reference.js | 908 +++++ .../demo/updates-with-circular-reference.js | 578 +++ .../extends/configDir-template.js | 188 + ...for-changes-to-package-json-main-fields.js | 307 ++ ...se-different-module-resolution-settings.js | 404 ++ ...t-correctly-with-cts-and-mts-extensions.js | 501 +++ ...n-no-files-are-emitted-with-incremental.js | 242 ++ ...when-watching-when-no-files-are-emitted.js | 135 + .../dts-errors-with-incremental-as-modules.js | 711 ++++ .../noEmit/dts-errors-with-incremental.js | 620 +++ ...dts-enabled-with-incremental-as-modules.js | 565 +++ ...rs-without-dts-enabled-with-incremental.js | 499 +++ .../noEmit/dts-errors-without-dts-enabled.js | 261 ++ .../tsbuildWatch/noEmit/dts-errors.js | 335 ++ ...ntic-errors-with-incremental-as-modules.js | 622 +++ .../semantic-errors-with-incremental.js | 554 +++ .../tsbuildWatch/noEmit/semantic-errors.js | 305 ++ ...ntax-errors-with-incremental-as-modules.js | 593 +++ .../noEmit/syntax-errors-with-incremental.js | 521 +++ .../tsbuildWatch/noEmit/syntax-errors.js | 307 ++ ...Error-with-declaration-with-incremental.js | 1015 +++++ .../noEmitOnError-with-declaration.js | 658 ++++ .../noEmitOnError-with-incremental.js | 892 +++++ .../noEmitOnError/noEmitOnError.js | 563 +++ ...ceError-when-file-with-no-error-changes.js | 429 ++ ...ing-errors-only-changed-file-is-emitted.js | 394 ++ ...tErrors-when-file-with-no-error-changes.js | 328 ++ ...ixing-error-files-all-files-are-emitted.js | 293 ++ .../programUpdates/tsbuildinfo-has-error.js | 91 + ...e-down-stream-project-and-then-fixes-it.js | 401 ++ ...project-with-extended-config-is-removed.js | 271 ++ ...hen-noUnusedParameters-changes-to-false.js | 110 + .../works-with-extended-source-files.js | 804 ++++ ...hen-there-are-23-projects-in-a-solution.js | 3114 +++++++++++++++ ...when-there-are-3-projects-in-a-solution.js | 674 ++++ ...when-there-are-5-projects-in-a-solution.js | 918 +++++ ...when-there-are-8-projects-in-a-solution.js | 1284 ++++++ .../reexport/Reports-errors-correctly.js | 528 +++ ...-referenced-project-and-shared-is-first.js | 870 +++++ ...en-root-file-is-from-referenced-project.js | 870 +++++ ...equent-updates-with-circular-references.js | 755 ++++ ...le-is-added,-and-its-subsequent-updates.js | 768 ++++ ...errors-message-with-circular-references.js | 1414 +++++++ ...hanges-and-reports-found-errors-message.js | 1431 +++++++ .../incremental-updates-in-verbose-mode.js | 947 +++++ ...ncing-projects-with-circular-references.js | 606 +++ ...not-start-build-of-referencing-projects.js | 614 +++ ...rs-when-preserveWatchOutput-is-not-used.js | 964 +++++ ...veWatchOutput-is-passed-on-command-line.js | 964 +++++ ...BuildOnErrors-is-passed-on-command-line.js | 841 ++++ ...e-of-program-emit-with-outDir-specified.js | 350 ++ ...r-recompilation-because-of-program-emit.js | 362 ++ ...rrors-when-test-does-not-reference-core.js | 676 ++++ ...ects-have-errors-with-stopBuildOnErrors.js | 677 ++++ ...tches-config-files-that-are-not-present.js | 679 ++++ .../Parse--p-with-path-to-tsconfig-file.js | 40 + .../Parse--p-with-path-to-tsconfig-folder.js | 40 + .../commandLine/Parse-enum-type-options.js | 31 + .../tsc/composite/converting-to-modules.js | 172 + ...le-from-CJS-module-error-on-jsx-element.js | 162 + ...from-CJS-module-no-crash-no-jsx-element.js | 129 + ...and-line-but-has-tsbuild-info-in-config.js | 51 + ...and-line-but-has-tsbuild-info-in-config.js | 51 + ...setting-composite-false-on-command-line.js | 50 + ...-setting-composite-null-on-command-line.js | 109 + ...-dts-generation-errors-with-incremental.js | 255 ++ .../reports-dts-generation-errors.js | 175 + ...ibling-package-through-indirect-symlink.js | 132 + ...er-symlinked-package-with-indirect-link.js | 216 + ...gh-source-and-another-symlinked-package.js | 212 + ...ing-Windows-paths-and-uppercase-letters.js | 129 + .../extends/configDir-template-showConfig.js | 64 + .../configDir-template-with-commandline.js | 102 + .../tsc/extends/configDir-template.js | 102 + .../tsc/extends/resolves-the-symlink-path.js | 114 + ...ion-field-with-declaration-emit-enabled.js | 479 +++ ...e-to-modifier-of-class-expression-field.js | 398 ++ ...in-another-file-through-indirect-import.js | 343 ++ ...s-global-through-export-in-another-file.js | 288 ++ .../const-enums-aliased-in-different-file.js | 604 +++ .../tsc/incremental/const-enums-aliased.js | 556 +++ .../reference/tsc/incremental/const-enums.js | 551 +++ .../generates-typerefs-correctly.js | 433 ++ .../option-changes-with-composite.js | 1569 ++++++++ .../option-changes-with-incremental.js | 1526 ++++++++ ...types-found-doesnt-crash-under---strict.js | 150 + ...ith-no-backing-types-found-doesnt-crash.js | 127 + .../serializing-composite-project.js | 129 + .../incremental/serializing-error-chain.js | 216 + .../tsc/incremental/tsbuildinfo-has-error.js | 106 + .../tsc/incremental/when-file-is-deleted.js | 200 + ...le-is-added,-the-signatures-are-updated.js | 921 +++++ ...g-filename-for-buildinfo-on-commandline.js | 117 + .../when-passing-rootDir-from-commandline.js | 105 + ...when-passing-rootDir-is-in-the-tsconfig.js | 106 + ...there-is-bind-diagnostics-thats-ignored.js | 141 + .../tsc/incremental/with-only-dts-files.js | 169 + .../combined-with-incremental.js | 124 + .../reference/tsc/listFilesOnly/loose-file.js | 35 + .../tsc/moduleResolution/alternateResult.js | 3477 +++++++++++++++++ .../moduleResolution/package-json-scope.js | 281 ++ .../tsc/moduleResolution/pnpm-style-layout.js | 308 ++ .../noCheck/dts-errors-with-incremental.js | 1382 +++++++ .../reference/tsc/noCheck/dts-errors.js | 447 +++ .../semantic-errors-with-incremental.js | 1194 ++++++ .../reference/tsc/noCheck/semantic-errors.js | 337 ++ .../noCheck/syntax-errors-with-incremental.js | 1242 ++++++ .../reference/tsc/noCheck/syntax-errors.js | 392 ++ .../reference/tsc/noEmit/changes-composite.js | 1573 ++++++++ .../noEmit/changes-incremental-declaration.js | 1525 ++++++++ .../tsc/noEmit/changes-incremental.js | 1356 +++++++ .../changes-with-initial-noEmit-composite.js | 1092 ++++++ ...-initial-noEmit-incremental-declaration.js | 1042 +++++ ...changes-with-initial-noEmit-incremental.js | 888 +++++ ...tion-enable-changes-with-multiple-files.js | 1586 ++++++++ .../dts-errors-with-incremental-as-modules.js | 655 ++++ .../tsc/noEmit/dts-errors-with-incremental.js | 564 +++ ...dts-enabled-with-incremental-as-modules.js | 482 +++ ...rs-without-dts-enabled-with-incremental.js | 416 ++ .../noEmit/dts-errors-without-dts-enabled.js | 116 + .../reference/tsc/noEmit/dts-errors.js | 186 + ...ntic-errors-with-incremental-as-modules.js | 562 +++ .../semantic-errors-with-incremental.js | 494 +++ .../reference/tsc/noEmit/semantic-errors.js | 152 + ...ntax-errors-with-incremental-as-modules.js | 536 +++ .../noEmit/syntax-errors-with-incremental.js | 463 +++ .../reference/tsc/noEmit/syntax-errors.js | 154 + .../noEmit/when-project-has-strict-true.js | 105 + ...rrors-with-declaration-with-incremental.js | 364 ++ .../dts-errors-with-declaration.js | 140 + .../dts-errors-with-incremental.js | 265 ++ .../reference/tsc/noEmitOnError/dts-errors.js | 104 + ...-before-fixing-error-with-noEmitOnError.js | 220 ++ ...rrors-with-declaration-with-incremental.js | 330 ++ .../semantic-errors-with-declaration.js | 124 + .../semantic-errors-with-incremental.js | 307 ++ .../tsc/noEmitOnError/semantic-errors.js | 110 + ...rrors-with-declaration-with-incremental.js | 336 ++ .../syntax-errors-with-declaration.js | 130 + .../syntax-errors-with-incremental.js | 313 ++ .../tsc/noEmitOnError/syntax-errors.js | 116 + .../when-declarationMap-changes.js | 376 ++ ...nterop-uses-referenced-project-settings.js | 89 + .../default-setup-was-created-correctly.js | 114 + ...ve-composite-if-its-a-container-project.js | 45 + ...snt-infer-the-rootDir-from-source-paths.js | 105 + ...rors-when-a-file-is-outside-the-rootdir.js | 145 + .../errors-when-declaration-=-false.js | 117 + ...rs-when-the-file-list-is-not-exhaustive.js | 145 + ...hen-the-referenced-project-doesnt-exist.js | 122 + ...eferenced-project-doesnt-have-composite.js | 126 + ...erveConstEnums-and-verbatimModuleSyntax.js | 78 + ...g-when-module-reference-is-not-relative.js | 137 + ...ce-error-when-the-input-file-is-missing.js | 135 + .../redirects-to-the-output-dts-file.js | 161 + ...erenced-project-with-preserveConstEnums.js | 60 + ...ativeImportExtensionsProjectReferences1.js | 78 + ...ativeImportExtensionsProjectReferences2.js | 143 + ...ativeImportExtensionsProjectReferences3.js | 147 + ...ject-contains-invalid-project-reference.js | 53 + .../when-project-reference-is-not-built.js | 59 + ...eferences-composite-project-with-noEmit.js | 60 + .../when-project-references-composite.js | 53 + .../parse-tsconfig-with-typeAcquisition.js | 40 + ...h-interval-option-without-tsconfig.json.js | 149 + .../Parse-watch-interval-option.js | 47 + 319 files changed, 155826 insertions(+) create mode 100644 testdata/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/commandLine/different-options.js create mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js create mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js create mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js create mode 100644 testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js create mode 100644 testdata/baselines/reference/tsbuild/commandLine/help.js create mode 100644 testdata/baselines/reference/tsbuild/configFileErrors/missing-config-file.js create mode 100644 testdata/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js create mode 100644 testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js create mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors.js create mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js create mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js create mode 100644 testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js create mode 100644 testdata/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js create mode 100644 testdata/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js create mode 100644 testdata/baselines/reference/tsbuild/demo/in-circular-is-set-in-the-reference.js create mode 100644 testdata/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js create mode 100644 testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js create mode 100644 testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js create mode 100644 testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js create mode 100644 testdata/baselines/reference/tsbuild/extends/configDir-template.js create mode 100644 testdata/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js create mode 100644 testdata/baselines/reference/tsbuild/extends/when-building-project-uses-reference-and-both-extend-config-with-include.js create mode 100644 testdata/baselines/reference/tsbuild/extends/when-building-solution-with-projects-extends-config-with-include.js create mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js create mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js create mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js create mode 100644 testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js create mode 100644 testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js create mode 100644 testdata/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js create mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js create mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/resolution-from-d.ts-of-referenced-project.js create mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js create mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js create mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/shared-resolution-should-not-report-error.js create mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js create mode 100644 testdata/baselines/reference/tsbuild/moduleResolution/when-resolution-is-not-shared.js create mode 100644 testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js create mode 100644 testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js create mode 100644 testdata/baselines/reference/tsbuild/noCheck/dts-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noCheck/dts-errors.js create mode 100644 testdata/baselines/reference/tsbuild/noCheck/semantic-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noCheck/semantic-errors.js create mode 100644 testdata/baselines/reference/tsbuild/noCheck/syntax-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noCheck/syntax-errors.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-composite.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-incremental-declaration.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-composite.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental-declaration.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/dts-errors.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/semantic-errors.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmit/syntax-errors.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js create mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js create mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js create mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js create mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js create mode 100644 testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js create mode 100644 testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference-with-composite.js create mode 100644 testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference.js create mode 100644 testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-23-projects-in-a-solution.js create mode 100644 testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-3-projects-in-a-solution.js create mode 100644 testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-5-projects-in-a-solution.js create mode 100644 testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-8-projects-in-a-solution.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/include-only.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js create mode 100644 testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js create mode 100644 testdata/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js create mode 100644 testdata/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js create mode 100644 testdata/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js create mode 100644 testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js create mode 100644 testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project.js create mode 100644 testdata/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js create mode 100644 testdata/baselines/reference/tsbuild/sample/always-builds-under-with-force-option.js create mode 100644 testdata/baselines/reference/tsbuild/sample/building-project-in-not-build-order-doesnt-throw-error.js create mode 100644 testdata/baselines/reference/tsbuild/sample/builds-correctly-when-declarationDir-is-specified.js create mode 100644 testdata/baselines/reference/tsbuild/sample/builds-correctly-when-outDir-is-specified.js create mode 100644 testdata/baselines/reference/tsbuild/sample/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js create mode 100644 testdata/baselines/reference/tsbuild/sample/builds-downstream-projects-even-if-upstream-projects-have-errors.js create mode 100644 testdata/baselines/reference/tsbuild/sample/can-detect-when-and-what-to-rebuild.js create mode 100644 testdata/baselines/reference/tsbuild/sample/cleaning-project-in-not-build-order-doesnt-throw-error.js create mode 100644 testdata/baselines/reference/tsbuild/sample/does-not-write-any-files-in-a-dry-build.js create mode 100644 testdata/baselines/reference/tsbuild/sample/explainFiles.js create mode 100644 testdata/baselines/reference/tsbuild/sample/indicates-that-it-would-skip-builds-during-a-dry-build.js create mode 100644 testdata/baselines/reference/tsbuild/sample/listEmittedFiles.js create mode 100644 testdata/baselines/reference/tsbuild/sample/listFiles.js create mode 100644 testdata/baselines/reference/tsbuild/sample/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js create mode 100644 testdata/baselines/reference/tsbuild/sample/rebuilds-from-start-if-force-option-is-set.js create mode 100644 testdata/baselines/reference/tsbuild/sample/rebuilds-when-extended-config-file-changes.js create mode 100644 testdata/baselines/reference/tsbuild/sample/removes-all-files-it-built.js create mode 100644 testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing-with-force.js create mode 100644 testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing.js create mode 100644 testdata/baselines/reference/tsbuild/sample/sample.js create mode 100644 testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js create mode 100644 testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js create mode 100644 testdata/baselines/reference/tsbuild/sample/tsbuildinfo-has-error.js create mode 100644 testdata/baselines/reference/tsbuild/sample/when-declaration-option-changes.js create mode 100644 testdata/baselines/reference/tsbuild/sample/when-declarationMap-changes.js create mode 100644 testdata/baselines/reference/tsbuild/sample/when-esModuleInterop-option-changes.js create mode 100644 testdata/baselines/reference/tsbuild/sample/when-input-file-text-does-not-change-but-its-modified-time-changes.js create mode 100644 testdata/baselines/reference/tsbuild/sample/when-logic-specifies-tsBuildInfoFile.js create mode 100644 testdata/baselines/reference/tsbuild/sample/when-module-option-changes.js create mode 100644 testdata/baselines/reference/tsbuild/sample/when-target-option-changes.js create mode 100644 testdata/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js create mode 100644 testdata/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js create mode 100644 testdata/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js create mode 100644 testdata/baselines/reference/tsbuildWatch/extends/configDir-template.js create mode 100644 testdata/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js create mode 100644 testdata/baselines/reference/tsbuildWatch/moduleResolution/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js create mode 100644 testdata/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-incremental.js create mode 100644 testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-file-with-no-error-changes.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-fixing-errors-only-changed-file-is-emitted.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-fixing-error-files-all-files-are-emitted.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js create mode 100644 testdata/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js create mode 100644 testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js create mode 100644 testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js create mode 100644 testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js create mode 100644 testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js create mode 100644 testdata/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js create mode 100644 testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js create mode 100644 testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates-with-circular-references.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message-with-circular-references.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/incremental-updates-in-verbose-mode.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects-with-circular-references.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-not-used.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-passed-on-command-line.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-stopBuildOnErrors-is-passed-on-command-line.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js create mode 100644 testdata/baselines/reference/tsbuildWatch/sample/watches-config-files-that-are-not-present.js create mode 100644 testdata/baselines/reference/tsc/composite/converting-to-modules.js create mode 100644 testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-error-on-jsx-element.js create mode 100644 testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-no-crash-no-jsx-element.js create mode 100644 testdata/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js create mode 100644 testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js create mode 100644 testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js create mode 100644 testdata/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js create mode 100644 testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors.js create mode 100644 testdata/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js create mode 100644 testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js create mode 100644 testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js create mode 100644 testdata/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js create mode 100644 testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js create mode 100644 testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js create mode 100644 testdata/baselines/reference/tsc/extends/configDir-template.js create mode 100644 testdata/baselines/reference/tsc/extends/resolves-the-symlink-path.js create mode 100644 testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js create mode 100644 testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js create mode 100644 testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js create mode 100644 testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js create mode 100644 testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js create mode 100644 testdata/baselines/reference/tsc/incremental/const-enums-aliased.js create mode 100644 testdata/baselines/reference/tsc/incremental/const-enums.js create mode 100644 testdata/baselines/reference/tsc/incremental/generates-typerefs-correctly.js create mode 100644 testdata/baselines/reference/tsc/incremental/option-changes-with-composite.js create mode 100644 testdata/baselines/reference/tsc/incremental/option-changes-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash-under---strict.js create mode 100644 testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash.js create mode 100644 testdata/baselines/reference/tsc/incremental/serializing-composite-project.js create mode 100644 testdata/baselines/reference/tsc/incremental/serializing-error-chain.js create mode 100644 testdata/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js create mode 100644 testdata/baselines/reference/tsc/incremental/when-file-is-deleted.js create mode 100644 testdata/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js create mode 100644 testdata/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js create mode 100644 testdata/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js create mode 100644 testdata/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js create mode 100644 testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js create mode 100644 testdata/baselines/reference/tsc/incremental/with-only-dts-files.js create mode 100644 testdata/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/listFilesOnly/loose-file.js create mode 100644 testdata/baselines/reference/tsc/moduleResolution/alternateResult.js create mode 100644 testdata/baselines/reference/tsc/moduleResolution/package-json-scope.js create mode 100644 testdata/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js create mode 100644 testdata/baselines/reference/tsc/noCheck/dts-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noCheck/dts-errors.js create mode 100644 testdata/baselines/reference/tsc/noCheck/semantic-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noCheck/semantic-errors.js create mode 100644 testdata/baselines/reference/tsc/noCheck/syntax-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noCheck/syntax-errors.js create mode 100644 testdata/baselines/reference/tsc/noEmit/changes-composite.js create mode 100644 testdata/baselines/reference/tsc/noEmit/changes-incremental-declaration.js create mode 100644 testdata/baselines/reference/tsc/noEmit/changes-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-composite.js create mode 100644 testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental-declaration.js create mode 100644 testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js create mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled.js create mode 100644 testdata/baselines/reference/tsc/noEmit/dts-errors.js create mode 100644 testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmit/semantic-errors.js create mode 100644 testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental-as-modules.js create mode 100644 testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmit/syntax-errors.js create mode 100644 testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/dts-errors.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/file-deleted-before-fixing-error-with-noEmitOnError.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/semantic-errors.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-incremental.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/syntax-errors.js create mode 100644 testdata/baselines/reference/tsc/noEmitOnError/when-declarationMap-changes.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/default-setup-was-created-correctly.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/doesnt-infer-the-rootDir-from-source-paths.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-a-file-is-outside-the-rootdir.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-declaration-=-false.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-the-file-list-is-not-exhaustive.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-exist.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-have-composite.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/redirects-to-the-output-dts-file.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/referencing-ambient-const-enum-from-referenced-project-with-preserveConstEnums.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences1.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences2.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences3.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/when-project-reference-is-not-built.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js create mode 100644 testdata/baselines/reference/tsc/projectReferences/when-project-references-composite.js create mode 100644 testdata/baselines/reference/tsc/typeAcquisition/parse-tsconfig-with-typeAcquisition.js create mode 100644 testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js create mode 100644 testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option.js diff --git a/testdata/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js b/testdata/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js new file mode 100644 index 0000000000..7172bf4267 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js @@ -0,0 +1,1609 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/project/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/project/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true + } +} + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1251 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/d.ts +Signatures:: + + +Edit [0]:: with sourceMap + +tsgo --build --verbose --sourceMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *new* +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *new* +{"version":3,"file":"b.js","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *new* +{"version":3,"file":"c.js","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *new* +{"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"options":{"sourceMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1280 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: should re-emit only js so they dont contain sourcemap + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; + +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1251 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: with declaration, emit Dts and should not emit js + +tsgo --build --verbose --declaration +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/project/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1730 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts +(stored at emit) /home/src/workspaces/project/c.ts +(stored at emit) /home/src/workspaces/project/d.ts + + +Edit [3]:: with declaration and declarationMap + +tsgo --build --verbose --declaration --declarationMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = 10; +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/a.d.ts.map] *new* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/b.d.ts] *modified* +export declare const b = 10; +//# sourceMappingURL=b.d.ts.map +//// [/home/src/workspaces/project/b.d.ts.map] *new* +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/c.d.ts] *modified* +export declare const c = 10; +//# sourceMappingURL=c.d.ts.map +//// [/home/src/workspaces/project/c.d.ts.map] *new* +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} +//// [/home/src/workspaces/project/d.d.ts] *modified* +export declare const d = 10; +//# sourceMappingURL=d.d.ts.map +//// [/home/src/workspaces/project/d.d.ts.map] *new* +{"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1752 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: local change +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = 10;const aLocal = 100; + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1700 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [6]:: with declaration and declarationMap + +tsgo --build --verbose --declaration --declarationMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1753 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [8]:: with inlineSourceMap + +tsgo --build --verbose --inlineSourceMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDIn0= +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDIn0= +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"inlineSourceMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "inlineSourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1735 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [9]:: with sourceMap + +tsgo --build --verbose --sourceMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *modified* +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,GAAG,CAAC"} +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"sourceMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1729 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: emit js files + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; + +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1700 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: with declaration and declarationMap + +tsgo --build --verbose --declaration --declarationMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1753 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: with declaration and declarationMap, should not re-emit + +tsgo --build --verbose --declaration --declarationMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/commandLine/different-options.js b/testdata/baselines/reference/tsbuild/commandLine/different-options.js new file mode 100644 index 0000000000..0dead645da --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/different-options.js @@ -0,0 +1,1316 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/project/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/project/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/project/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1762 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/d.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts +(stored at emit) /home/src/workspaces/project/c.ts +(stored at emit) /home/src/workspaces/project/d.ts + + +Edit [0]:: with sourceMap + +tsgo --build --verbose --sourceMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *new* +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *new* +{"version":3,"file":"b.js","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *new* +{"version":3,"file":"c.js","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *new* +{"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1779 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: should re-emit only js so they dont contain sourcemap + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; + +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1762 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: with declaration should not emit anything + +tsgo --build --verbose --declaration +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: no change + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [4]:: with declaration and declarationMap + +tsgo --build --verbose --declaration --declarationMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = 10; +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/a.d.ts.map] *new* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/b.d.ts] *modified* +export declare const b = 10; +//# sourceMappingURL=b.d.ts.map +//// [/home/src/workspaces/project/b.d.ts.map] *new* +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/c.d.ts] *modified* +export declare const c = 10; +//# sourceMappingURL=c.d.ts.map +//// [/home/src/workspaces/project/c.d.ts.map] *new* +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} +//// [/home/src/workspaces/project/d.d.ts] *modified* +export declare const d = 10; +//# sourceMappingURL=d.d.ts.map +//// [/home/src/workspaces/project/d.d.ts.map] *new* +{"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1803 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: should re-emit only dts so they dont contain sourcemap + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = 10; + +//// [/home/src/workspaces/project/b.d.ts] *modified* +export declare const b = 10; + +//// [/home/src/workspaces/project/c.d.ts] *modified* +export declare const c = 10; + +//// [/home/src/workspaces/project/d.d.ts] *modified* +export declare const d = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1762 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [6]:: with emitDeclarationOnly should not emit anything + +tsgo --build --verbose --emitDeclarationOnly +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [7]:: no change + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [8]:: local change +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = 10;const aLocal = 100; + +tsgo --build --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1763 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [9]:: with declaration should not emit anything + +tsgo --build --verbose --declaration +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [10]:: with inlineSourceMap + +tsgo --build --verbose --inlineSourceMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDIn0= +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDIn0= +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"inlineSourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "inlineSourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1786 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: with sourceMap + +tsgo --build --verbose --sourceMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *modified* +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,GAAG,CAAC"} +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1780 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js new file mode 100644 index 0000000000..878d6fc9d9 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js @@ -0,0 +1,1085 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project1/src/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/solution/project1/src/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/solution/project1/src/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/solution/project1/src/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true, "declaration": true, "emitDeclarationOnly": true } +} +//// [/home/src/workspaces/solution/project2/src/e.ts] *new* +export const e = 10; +//// [/home/src/workspaces/solution/project2/src/f.ts] *new* +import { a } from "../../project1/src/a"; export const f = a; +//// [/home/src/workspaces/solution/project2/src/g.ts] *new* +import { b } from "../../project1/src/b"; export const g = b; +//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true, "declaration": true, "emitDeclarationOnly": true }, + "references": [{ "path": "../../project1/src" }] +} + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1757 +} +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* +export declare const e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* +export declare const f = 10; + +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* +export declare const g = 10; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "size": 1825 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project1/src/a.ts +(stored at emit) /home/src/workspaces/solution/project1/src/b.ts +(stored at emit) /home/src/workspaces/solution/project1/src/c.ts +(stored at emit) /home/src/workspaces/solution/project1/src/d.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project2/src/e.ts +(stored at emit) /home/src/workspaces/solution/project2/src/f.ts +(stored at emit) /home/src/workspaces/solution/project2/src/g.ts + + +Edit [0]:: no change + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [1]:: change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10; + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1771 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [2]:: emit js files + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; +const aa = 10; + +//// [/home/src/workspaces/solution/project1/src/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/solution/project1/src/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/solution/project1/src/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":false,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": false, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1772 +} +//// [/home/src/workspaces/solution/project2/src/e.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.e = void 0; +exports.e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = void 0; +const a_1 = require("../../project1/src/a"); +exports.f = a_1.a; + +//// [/home/src/workspaces/solution/project2/src/g.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.g = void 0; +const b_1 = require("../../project1/src/b"); +exports.g = b_1.b; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":false,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "emitDeclarationOnly": false, + "declaration": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "size": 1826 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [3]:: no change + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [4]:: no change run with js emit + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [5]:: js emit with change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const blocal = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const blocal = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":false,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": false, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1790 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js new file mode 100644 index 0000000000..084f115e82 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js @@ -0,0 +1,535 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project1/src/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/solution/project1/src/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/solution/project1/src/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/solution/project1/src/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* +{ + "compilerOptions": { "declaration": true, "emitDeclarationOnly": true } +} +//// [/home/src/workspaces/solution/project2/src/e.ts] *new* +export const e = 10; +//// [/home/src/workspaces/solution/project2/src/f.ts] *new* +import { a } from "../../project1/src/a"; export const f = a; +//// [/home/src/workspaces/solution/project2/src/g.ts] *new* +import { b } from "../../project1/src/b"; export const g = b; +//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* +{ + "compilerOptions": { "declaration": true, "emitDeclarationOnly": true }, + "references": [{ "path": "../../project1/src" }] +} + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts","./d.ts"]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + }, + { + "files": [ + "./d.ts" + ], + "original": "./d.ts" + } + ], + "size": 72 +} +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* +export declare const e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* +export declare const f = 10; + +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* +export declare const g = 10; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["./e.ts","./f.ts","./g.ts"]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": "./e.ts" + }, + { + "files": [ + "./f.ts" + ], + "original": "./f.ts" + }, + { + "files": [ + "./g.ts" + ], + "original": "./g.ts" + } + ], + "size": 77 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/a.d.ts' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [1]:: change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10; + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [2]:: emit js files + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/a.js' does not exist + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; +const aa = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.e = void 0; +exports.e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = void 0; +const a_1 = require("../../project1/src/a"); +exports.f = a_1.a; + +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.g = void 0; +const b_1 = require("../../project1/src/b"); +exports.g = b_1.b; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [3]:: no change + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/a.d.ts' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [4]:: no change run with js emit + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/a.js' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [5]:: js emit with change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const blocal = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const blocal = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js new file mode 100644 index 0000000000..af6c17224a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js @@ -0,0 +1,958 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project1/src/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/solution/project1/src/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/solution/project1/src/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/solution/project1/src/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true, "emitDeclarationOnly": true } +} +//// [/home/src/workspaces/solution/project2/src/e.ts] *new* +export const e = 10; +//// [/home/src/workspaces/solution/project2/src/f.ts] *new* +import { a } from "../../project1/src/a"; export const f = a; +//// [/home/src/workspaces/solution/project2/src/g.ts] *new* +import { b } from "../../project1/src/b"; export const g = b; +//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true, "emitDeclarationOnly": true }, + "references": [{ "path": "../../project1/src" }] +} + +tsgo --b project2/src --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1789 +} +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* +export declare const e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* +export declare const f = 10; + +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* +export declare const g = 10; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "latestChangedDtsFile": "./g.d.ts", + "size": 1800 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project1/src/a.ts +(stored at emit) /home/src/workspaces/solution/project1/src/b.ts +(stored at emit) /home/src/workspaces/solution/project1/src/c.ts +(stored at emit) /home/src/workspaces/solution/project1/src/d.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project2/src/e.ts +*refresh* /home/src/workspaces/solution/project1/src/a.d.ts +*refresh* /home/src/workspaces/solution/project2/src/f.ts +*refresh* /home/src/workspaces/solution/project1/src/b.d.ts +*refresh* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project2/src/e.ts +(stored at emit) /home/src/workspaces/solution/project2/src/f.ts +(stored at emit) /home/src/workspaces/solution/project2/src/g.ts + + +Edit [0]:: no change + +tsgo --b project2/src --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' + + + + +Edit [1]:: change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10; + +tsgo --b project2/src --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1803 +} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts + + +Edit [2]:: emit js files + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; +const aa = 10; + +//// [/home/src/workspaces/solution/project1/src/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/solution/project1/src/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/solution/project1/src/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":false},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": false + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1804 +} +//// [/home/src/workspaces/solution/project2/src/e.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.e = void 0; +exports.e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = void 0; +const a_1 = require("../../project1/src/a"); +exports.f = a_1.a; + +//// [/home/src/workspaces/solution/project2/src/g.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.g = void 0; +const b_1 = require("../../project1/src/b"); +exports.g = b_1.b; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":false},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": false + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "latestChangedDtsFile": "./g.d.ts", + "size": 1801 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: no change + +tsgo --b project2/src --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' + + + + +Edit [4]:: no change run with js emit + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' + + + + +Edit [5]:: js emit with change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const blocal = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly false +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const blocal = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":false},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "faa2f145f8fb2df488a27873cf169a9a-export const b = 10;const bLocal = 10;const blocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": false + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1822 +} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js new file mode 100644 index 0000000000..da82286972 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js @@ -0,0 +1,2068 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project1/src/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/solution/project1/src/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/solution/project1/src/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/solution/project1/src/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true, "declaration": true } +} +//// [/home/src/workspaces/solution/project2/src/e.ts] *new* +export const e = 10; +//// [/home/src/workspaces/solution/project2/src/f.ts] *new* +import { a } from "../../project1/src/a"; export const f = a; +//// [/home/src/workspaces/solution/project2/src/g.ts] *new* +import { b } from "../../project1/src/b"; export const g = b; +//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true, "declaration": true }, + "references": [{ "path": "../../project1/src" }] +} + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1757 +} +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* +export declare const e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* +export declare const f = 10; + +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* +export declare const g = 10; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "size": 1825 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project1/src/a.ts +(stored at emit) /home/src/workspaces/solution/project1/src/b.ts +(stored at emit) /home/src/workspaces/solution/project1/src/c.ts +(stored at emit) /home/src/workspaces/solution/project1/src/d.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project2/src/e.ts +(stored at emit) /home/src/workspaces/solution/project2/src/f.ts +(stored at emit) /home/src/workspaces/solution/project2/src/g.ts + + +Edit [0]:: no change + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [1]:: local change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1771 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [2]:: non local change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *modified* +export declare const a = 10; +export declare const aaa = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1825 +} +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "size": 1857 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts +(computed .d.ts) /home/src/workspaces/solution/project1/src/c.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(used version) /home/src/workspaces/solution/project1/src/a.d.ts +(computed .d.ts) /home/src/workspaces/solution/project2/src/f.ts + + +Edit [3]:: emit js files + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.aaa = exports.a = void 0; +exports.a = 10; +const aLocal = 10; +const aa = 10; +exports.aaa = 10; + +//// [/home/src/workspaces/solution/project1/src/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/solution/project1/src/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/solution/project1/src/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1798 +} +//// [/home/src/workspaces/solution/project2/src/e.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.e = void 0; +exports.e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = void 0; +const a_1 = require("../../project1/src/a"); +exports.f = a_1.a; + +//// [/home/src/workspaces/solution/project2/src/g.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.g = void 0; +const b_1 = require("../../project1/src/b"); +exports.g = b_1.b; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "size": 1830 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [4]:: no change + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [5]:: js emit with change without emitDeclarationOnly +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10; + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const alocal = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1816 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [6]:: local change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1859 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [7]:: non local change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* +export declare const b = 10; +export declare const aaaaa = 10; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","signature":"b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", + "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", + "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1917 +} +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"emitDeclarationOnly":true,"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "emitDeclarationOnly": true, + "declaration": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "size": 1891 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts +(computed .d.ts) /home/src/workspaces/solution/project1/src/d.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(used version) /home/src/workspaces/solution/project1/src/b.d.ts +(computed .d.ts) /home/src/workspaces/solution/project2/src/g.ts + + +Edit [8]:: js emit with change without emitDeclarationOnly +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10; + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* +export declare const b = 10; +export declare const aaaaa = 10; +export declare const a2 = 10; + +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a2 = exports.aaaaa = exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const alocal = 10; +const aaaa = 10; +exports.aaaaa = 10; +exports.a2 = 10; + +//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","signature":"c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", + "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", + "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1942 +} +//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"declaration":true},"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "size": 1895 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts +(computed .d.ts) /home/src/workspaces/solution/project1/src/d.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(used version) /home/src/workspaces/solution/project1/src/b.d.ts +(computed .d.ts) /home/src/workspaces/solution/project2/src/g.ts diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js new file mode 100644 index 0000000000..6818bc14ce --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js @@ -0,0 +1,756 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project1/src/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/solution/project1/src/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/solution/project1/src/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/solution/project1/src/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* +{ + "compilerOptions": { "declaration": true } +} +//// [/home/src/workspaces/solution/project2/src/e.ts] *new* +export const e = 10; +//// [/home/src/workspaces/solution/project2/src/f.ts] *new* +import { a } from "../../project1/src/a"; export const f = a; +//// [/home/src/workspaces/solution/project2/src/g.ts] *new* +import { b } from "../../project1/src/b"; export const g = b; +//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* +{ + "compilerOptions": { "declaration": true }, + "references": [{ "path": "../../project1/src" }] +} + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts","./d.ts"]} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + }, + { + "files": [ + "./d.ts" + ], + "original": "./d.ts" + } + ], + "size": 72 +} +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* +export declare const e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* +export declare const f = 10; + +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* +export declare const g = 10; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["./e.ts","./f.ts","./g.ts"]} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./e.ts" + ], + "original": "./e.ts" + }, + { + "files": [ + "./f.ts" + ], + "original": "./f.ts" + }, + { + "files": [ + "./g.ts" + ], + "original": "./g.ts" + } + ], + "size": 77 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/a.d.ts' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [1]:: local change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [2]:: non local change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *modified* +export declare const a = 10; +export declare const aaa = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [3]:: emit js files + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/a.js' does not exist + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.aaa = exports.a = void 0; +exports.a = 10; +const aLocal = 10; +const aa = 10; +exports.aaa = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.e = void 0; +exports.e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = void 0; +const a_1 = require("../../project1/src/a"); +exports.f = a_1.a; + +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.g = void 0; +const b_1 = require("../../project1/src/b"); +exports.g = b_1.b; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [4]:: no change + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/a.d.ts' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [5]:: js emit with change without emitDeclarationOnly +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10; + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const alocal = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [6]:: local change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [7]:: non local change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* +export declare const b = 10; +export declare const aaaaa = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: + + +Edit [8]:: js emit with change without emitDeclarationOnly +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10; + +tsgo --b project2/src --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +project2/src/tsconfig.json:3:20 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. + +3 "references": [{ "path": "../../project1/src" }] +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project2/src/tsconfig.json:3 + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* +export declare const b = 10; +export declare const aaaaa = 10; +export declare const a2 = 10; + +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a2 = exports.aaaaa = exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const alocal = 10; +const aaaa = 10; +exports.aaaaa = 10; +exports.a2 = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/solution/project2/src/e.ts +*not cached* /home/src/workspaces/solution/project1/src/a.d.ts +*not cached* /home/src/workspaces/solution/project2/src/f.ts +*not cached* /home/src/workspaces/solution/project1/src/b.d.ts +*not cached* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js new file mode 100644 index 0000000000..33c144bd20 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js @@ -0,0 +1,1880 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project1/src/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/solution/project1/src/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/solution/project1/src/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/solution/project1/src/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/solution/project1/src/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true } +} +//// [/home/src/workspaces/solution/project2/src/e.ts] *new* +export const e = 10; +//// [/home/src/workspaces/solution/project2/src/f.ts] *new* +import { a } from "../../project1/src/a"; export const f = a; +//// [/home/src/workspaces/solution/project2/src/g.ts] *new* +import { b } from "../../project1/src/b"; export const g = b; +//// [/home/src/workspaces/solution/project2/src/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../../project1/src" }] +} + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output file 'project1/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/src/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/solution/project1/src/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/solution/project1/src/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1789 +} +//// [/home/src/workspaces/solution/project2/src/e.d.ts] *new* +export declare const e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.d.ts] *new* +export declare const f = 10; + +//// [/home/src/workspaces/solution/project2/src/g.d.ts] *new* +export declare const g = 10; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "latestChangedDtsFile": "./g.d.ts", + "size": 1800 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project1/src/a.ts +(stored at emit) /home/src/workspaces/solution/project1/src/b.ts +(stored at emit) /home/src/workspaces/solution/project1/src/c.ts +(stored at emit) /home/src/workspaces/solution/project1/src/d.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project2/src/e.ts +*refresh* /home/src/workspaces/solution/project1/src/a.d.ts +*refresh* /home/src/workspaces/solution/project2/src/f.ts +*refresh* /home/src/workspaces/solution/project1/src/b.d.ts +*refresh* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project2/src/e.ts +(stored at emit) /home/src/workspaces/solution/project2/src/f.ts +(stored at emit) /home/src/workspaces/solution/project2/src/g.ts + + +Edit [0]:: no change + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/d.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' + + + + +Edit [1]:: local change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6c5c8e86bc8b70be4222f71e05b56f78-export const a = 10;const aLocal = 10;const aa = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1803 +} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts + + +Edit [2]:: non local change +//// [/home/src/workspaces/solution/project1/src/a.ts] *modified* +export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/a.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output 'project2/src/tsconfig.tsbuildinfo' is older than input 'project1/src' + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/a.d.ts] *modified* +export declare const a = 10; +export declare const aaa = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./a.d.ts", + "size": 1857 +} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "latestChangedDtsFile": "./g.d.ts", + "size": 1832 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/a.ts +*refresh* /home/src/workspaces/solution/project1/src/c.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/a.ts +(computed .d.ts) /home/src/workspaces/solution/project1/src/c.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/a.d.ts +*refresh* /home/src/workspaces/solution/project2/src/f.ts +Signatures:: +(used version) /home/src/workspaces/solution/project1/src/a.d.ts +(computed .d.ts) /home/src/workspaces/solution/project2/src/f.ts + + +Edit [3]:: emit js files + +tsgo --b project2/src --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.aaa = exports.a = void 0; +exports.a = 10; +const aLocal = 10; +const aa = 10; +exports.aaa = 10; + +//// [/home/src/workspaces/solution/project1/src/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/solution/project1/src/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/solution/project1/src/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./a.d.ts", + "size": 1830 +} +//// [/home/src/workspaces/solution/project2/src/e.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.e = void 0; +exports.e = 10; + +//// [/home/src/workspaces/solution/project2/src/f.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = void 0; +const a_1 = require("../../project1/src/a"); +exports.f = a_1.a; + +//// [/home/src/workspaces/solution/project2/src/g.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.g = void 0; +const b_1 = require("../../project1/src/b"); +exports.g = b_1.b; + +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "latestChangedDtsFile": "./g.d.ts", + "size": 1805 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is up to date because newest input 'project1/src/a.ts' is older than output 'project1/src/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date because newest input 'project2/src/g.ts' is older than output 'project2/src/tsconfig.tsbuildinfo' + + + + +Edit [5]:: js emit with change without emitDeclarationOnly +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10; + +tsgo --b project2/src --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const alocal = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f386e1d064172e4046fcc4616723f508-export const b = 10;const bLocal = 10;const alocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./a.d.ts", + "size": 1848 +} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts + + +Edit [6]:: local change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "aaade84f46dfd556c2424cda559cceb1-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./a.d.ts", + "size": 1891 +} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *mTime changed* + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts + + +Edit [7]:: non local change +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10; + +tsgo --b project2/src --verbose --emitDeclarationOnly +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/src/tsconfig.tsbuildinfo' is older than input 'project1/src/b.ts' + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output 'project2/src/tsconfig.tsbuildinfo' is older than input 'project1/src' + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* +export declare const b = 10; +export declare const aaaaa = 10; + +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","signature":"b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", + "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5ec434ed3f5c4b5bf474f907d0251bc7-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", + "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./b.d.ts", + "size": 1949 +} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true,"emitDeclarationOnly":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "signature": "b41428b0658a7579227ae092a39341d9-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "composite": true, + "emitDeclarationOnly": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "latestChangedDtsFile": "./g.d.ts", + "size": 1866 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts +(computed .d.ts) /home/src/workspaces/solution/project1/src/d.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.d.ts +*refresh* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(used version) /home/src/workspaces/solution/project1/src/b.d.ts +(computed .d.ts) /home/src/workspaces/solution/project2/src/g.ts + + +Edit [8]:: js emit with change without emitDeclarationOnly +//// [/home/src/workspaces/solution/project1/src/b.ts] *modified* +export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10; + +tsgo --b project2/src --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project1/src/tsconfig.json + * project2/src/tsconfig.json + +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project1/src/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/src/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'project2/src/tsconfig.json'... + +//// [/home/src/workspaces/solution/project1/src/a.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/b.d.ts] *modified* +export declare const b = 10; +export declare const aaaaa = 10; +export declare const a2 = 10; + +//// [/home/src/workspaces/solution/project1/src/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a2 = exports.aaaaa = exports.b = void 0; +exports.b = 10; +const bLocal = 10; +const alocal = 10; +const aaaa = 10; +exports.aaaaa = 10; +exports.a2 = 10; + +//// [/home/src/workspaces/solution/project1/src/c.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/d.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedNodeFormat":1},{"version":"5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","signature":"c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/solution/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7d25266cf9b041c81c1bb9d74e21155-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", + "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5bfdbc5e13f033397af0ab302f42fdf2-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", + "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./b.d.ts", + "size": 1974 +} +//// [/home/src/workspaces/solution/project2/src/e.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/f.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/g.js] *rewrite with same content* +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2,4,6],"fileNames":["lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"26403a4711355fb137eef9a25ce87785-export const e = 10;","signature":"f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n","impliedNodeFormat":1},"5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n","impliedNodeFormat":1},"c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n",{"version":"06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[5]],"options":{"composite":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./g.d.ts"} +//// [/home/src/workspaces/solution/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./e.ts" + ], + "original": 2 + }, + { + "files": [ + "./f.ts" + ], + "original": 4 + }, + { + "files": [ + "./g.ts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.d.ts", + "./e.ts", + "../../project1/src/a.d.ts", + "./f.ts", + "../../project1/src/b.d.ts", + "./g.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./e.ts", + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "26403a4711355fb137eef9a25ce87785-export const e = 10;", + "signature": "f994d14efb4fce4ea854d5cfd729fc0d-export declare const e = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/a.d.ts", + "version": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "signature": "5e35917ffa37324af3ace0b179493b37-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./f.ts", + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7c04a1af5b0f6d8541b63ff23aca1e3-import { a } from \"../../project1/src/a\"; export const f = a;", + "signature": "17442bcc150c3a3dd19c25d5affcc9fa-export declare const f = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../project1/src/b.d.ts", + "version": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "signature": "c354a25014e4712419cbd9266c28e943-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./g.ts", + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06b9b3562579ebca65e399849c2a6a3a-import { b } from \"../../project1/src/b\"; export const g = b;", + "signature": "4b3f5082fb1783241d51fa14c76e770a-export declare const g = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../project1/src/a.d.ts" + ], + [ + "../../project1/src/b.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./f.ts": [ + "../../project1/src/a.d.ts" + ], + "./g.ts": [ + "../../project1/src/b.d.ts" + ] + }, + "latestChangedDtsFile": "./g.d.ts", + "size": 1870 +} + +project1/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.ts +*refresh* /home/src/workspaces/solution/project1/src/d.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/project1/src/b.ts +(computed .d.ts) /home/src/workspaces/solution/project1/src/d.ts + +project2/src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/project1/src/b.d.ts +*refresh* /home/src/workspaces/solution/project2/src/g.ts +Signatures:: +(used version) /home/src/workspaces/solution/project1/src/b.d.ts +(computed .d.ts) /home/src/workspaces/solution/project2/src/g.ts diff --git a/testdata/baselines/reference/tsbuild/commandLine/help.js b/testdata/baselines/reference/tsbuild/commandLine/help.js new file mode 100644 index 0000000000..8c6e197bcd --- /dev/null +++ b/testdata/baselines/reference/tsbuild/commandLine/help.js @@ -0,0 +1,144 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: + +tsgo --build --help +ExitStatus:: Success +Output:: +Version FakeTSVersion +tsc: The TypeScript Compiler - Version FakeTSVersion + +BUILD OPTIONS + +Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at https://aka.ms/tsc-composite-builds + +--help, -h +Print this message. + +--help, -? + + +--watch, -w +Watch input files. + +--preserveWatchOutput +Disable wiping the console in watch mode. +type: boolean +default: false + +--listFiles +Print all of the files read during the compilation. +type: boolean +default: false + +--explainFiles +Print files read during the compilation including why it was included. +type: boolean +default: false + +--listEmittedFiles +Print the names of emitted files after a compilation. +type: boolean +default: false + +--pretty +Enable color and formatting in TypeScript's output to make compiler errors easier to read. +type: boolean +default: true + +--traceResolution +Log paths used during the 'moduleResolution' process. +type: boolean +default: false + +--diagnostics +Output compiler performance information after building. +type: boolean +default: false + +--extendedDiagnostics +Output more detailed compiler performance information after building. +type: boolean +default: false + +--generateCpuProfile +Emit a v8 CPU profile of the compiler run for debugging. +type: string +default: profile.cpuprofile + +--generateTrace +Generates an event trace and a list of types. + +--incremental, -i +Save .tsbuildinfo files to allow for incremental compilation of projects. +type: boolean +default: `false`, unless `composite` is set + +--declaration, -d +Generate .d.ts files from TypeScript and JavaScript files in your project. +type: boolean +default: `false`, unless `composite` is set + +--declarationMap +Create sourcemaps for d.ts files. +type: boolean +default: false + +--emitDeclarationOnly +Only output d.ts files and not JavaScript files. +type: boolean +default: false + +--sourceMap +Create source map files for emitted JavaScript files. +type: boolean +default: false + +--inlineSourceMap +Include sourcemap files inside the emitted JavaScript. +type: boolean +default: false + +--noCheck +Disable full type checking (only critical parse and emit errors will be reported). +type: boolean +default: false + +--noEmit +Disable emitting files from a compilation. +type: boolean +default: false + +--assumeChangesOnlyAffectDirectDependencies +Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it. +type: boolean +default: false + +--locale +Set the language of the messaging from TypeScript. This does not affect emit. + +--quiet, -q +Do not print diagnostics. + +--singleThreaded +Run in single threaded mode. + +--pprofDir +Generate pprof CPU/memory profiles to the given directory. + +--verbose, -v +Enable verbose logging. + +--dry, -d +Show what would be built (or deleted, if specified with '--clean') + +--force, -f +Build all projects, including those that appear to be up to date. + +--clean +Delete the outputs of all projects. + +--stopBuildOnErrors +Skip building downstream projects on error in upstream project. + + diff --git a/testdata/baselines/reference/tsbuild/commandLine/when-build-not-first-argument.js b/testdata/baselines/reference/tsbuild/commandLine/when-build-not-first-argument.js index e69de29bb2..d44964311b 100644 --- a/testdata/baselines/reference/tsbuild/commandLine/when-build-not-first-argument.js +++ b/testdata/baselines/reference/tsbuild/commandLine/when-build-not-first-argument.js @@ -0,0 +1,10 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: + +tsgo --verbose --build +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +error TS5093: Compiler option '--verbose' may only be used with '--build'. +error TS6369: Option '--build' must be the first command line argument. + diff --git a/testdata/baselines/reference/tsbuild/configFileErrors/missing-config-file.js b/testdata/baselines/reference/tsbuild/configFileErrors/missing-config-file.js new file mode 100644 index 0000000000..c194821e7e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/configFileErrors/missing-config-file.js @@ -0,0 +1,12 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: + +tsgo --b bogus.json +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +error TS6053: File '/home/src/workspaces/project/bogus.json' not found. + +Found 1 error. + + diff --git a/testdata/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js b/testdata/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js new file mode 100644 index 0000000000..23310d06e4 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js @@ -0,0 +1,400 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export function foo() { } +//// [/home/src/workspaces/project/b.ts] *new* +export function bar() { } +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "files": [ + "a.ts" + "b.ts" + ] +} + +tsgo --b +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +tsconfig.json:7:9 - error TS1005: ',' expected. + +7 "b.ts" +   ~~~~~~ + + +Found 1 error in tsconfig.json:7 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare function foo(): void; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +function foo() { } + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare function bar(): void; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = bar; +function bar() { } + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b8af959ef8294c415b0415508643e446-export function foo() { }","signature":"7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "b8af959ef8294c415b0415508643e446-export function foo() { }", + "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b8af959ef8294c415b0415508643e446-export function foo() { }", + "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "latestChangedDtsFile": "./b.d.ts", + "size": 1345 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: reports syntax errors after change to config file +//// [/home/src/workspaces/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "composite": true, "declaration": true + }, + "files": [ + "a.ts" + "b.ts" + ] +} + +tsgo --b +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +tsconfig.json:7:9 - error TS1005: ',' expected. + +7 "b.ts" +   ~~~~~~ + + +Found 1 error in tsconfig.json:7 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: reports syntax errors after change to ts file +//// [/home/src/workspaces/project/a.ts] *modified* +export function foo() { }export function fooBar() { } + +tsgo --b +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +tsconfig.json:7:9 - error TS1005: ',' expected. + +7 "b.ts" +   ~~~~~~ + + +Found 1 error in tsconfig.json:7 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare function foo(): void; +export declare function fooBar(): void; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.fooBar = fooBar; +function foo() { } +function fooBar() { } + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }","signature":"f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", + "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", + "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "latestChangedDtsFile": "./a.d.ts", + "size": 1433 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [2]:: no change + +tsgo --b +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +tsconfig.json:7:9 - error TS1005: ',' expected. + +7 "b.ts" +   ~~~~~~ + + +Found 1 error in tsconfig.json:7 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [3]:: builds after fixing config file errors +//// [/home/src/workspaces/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "composite": true, "declaration": true + }, + "files": [ + "a.ts", + "b.ts" + ] +} + +tsgo --b +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }","signature":"f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", + "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", + "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./a.d.ts", + "size": 1382 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js b/testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js new file mode 100644 index 0000000000..04120bd116 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js @@ -0,0 +1,70 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/tsconfig.first.json] *new* +{ + "extends": "./foobar.json", + "compilerOptions": { + "composite": true + } +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { "path": "./tsconfig.first.json" }, + { "path": "./tsconfig.second.json" } + ] +} +//// [/home/src/workspaces/project/tsconfig.second.json] *new* +{ + "extends": "./foobar.json", + "compilerOptions": { + "composite": true + } +} + +tsgo --b +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +error TS5083: Cannot read file '/home/src/workspaces/project/foobar.json'. +error TS18003: No inputs were found in config file '/home/src/workspaces/project/tsconfig.first.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. +error TS5083: Cannot read file '/home/src/workspaces/project/foobar.json'. +error TS18003: No inputs were found in config file '/home/src/workspaces/project/tsconfig.second.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. + +Found 4 errors. + +//// [/home/src/workspaces/project/tsconfig.first.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"fileInfos":[],"options":{"composite":true}} +//// [/home/src/workspaces/project/tsconfig.first.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "fileInfos": [], + "options": { + "composite": true + }, + "size": 85 +} +//// [/home/src/workspaces/project/tsconfig.second.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"fileInfos":[],"options":{"composite":true}} +//// [/home/src/workspaces/project/tsconfig.second.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "fileInfos": [], + "options": { + "composite": true + }, + "size": 85 +} + +tsconfig.first.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.second.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js new file mode 100644 index 0000000000..a82f347c23 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js @@ -0,0 +1,224 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/index.ts] *new* +import ky from 'ky'; +export const api = ky.extend({}); +//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new* +type KyInstance = { + extend(options: Record): KyInstance; +} +declare const ky: KyInstance; +export default ky; +//// [/home/src/workspaces/project/node_modules/ky/package.json] *new* +{ + "name": "ky", + "type": "module", + "main": "./distribution/index.js" +} +//// [/home/src/workspaces/project/package.json] *new* +{ + "type": "module" +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "composite": false, + "incremental": true, + "declaration": true, + "skipLibCheck": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo -b --explainFiles --listEmittedFiles --v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +TSFILE: /home/src/workspaces/project/index.js +TSFILE: /home/src/workspaces/project/index.d.ts +TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/index.d.ts] *new* +export declare const api: { + extend(options: Record): KyInstance; +}; + +//// [/home/src/workspaces/project/index.js] *new* +import ky from 'ky'; +export const api = ky.extend({}); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","./node_modules/ky/distribution/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;","impliedNodeFormat":99},{"version":"0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});","signature":"5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"composite":false,"declaration":true,"module":199,"skipLibCheck":true,"skipDefaultLibCheck":true},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":34,"end":37,"code":4023,"category":1,"message":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "./node_modules/ky/distribution/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/ky/distribution/index.d.ts", + "version": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", + "signature": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", + "impliedNodeFormat": "ESNext", + "original": { + "version": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./index.ts", + "version": "0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});", + "signature": "5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.", + "impliedNodeFormat": "ESNext", + "original": { + "version": "0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});", + "signature": "5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "./node_modules/ky/distribution/index.d.ts" + ] + ], + "options": { + "composite": false, + "declaration": true, + "module": 199, + "skipLibCheck": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./node_modules/ky/distribution/index.d.ts" + ] + }, + "emitDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 34, + "end": 37, + "code": 4023, + "category": 1, + "message": "Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named." + } + ] + ] + ], + "size": 1983 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: no change + +tsgo -b --explainFiles --listEmittedFiles --v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors.js b/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors.js new file mode 100644 index 0000000000..ef8e6f721a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors.js @@ -0,0 +1,163 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/index.ts] *new* +import ky from 'ky'; +export const api = ky.extend({}); +//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new* +type KyInstance = { + extend(options: Record): KyInstance; +} +declare const ky: KyInstance; +export default ky; +//// [/home/src/workspaces/project/node_modules/ky/package.json] *new* +{ + "name": "ky", + "type": "module", + "main": "./distribution/index.js" +} +//// [/home/src/workspaces/project/package.json] *new* +{ + "type": "module" +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "composite": false, + "incremental": false, + "declaration": true, + "skipLibCheck": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo -b --explainFiles --listEmittedFiles --v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +TSFILE: /home/src/workspaces/project/index.js +TSFILE: /home/src/workspaces/project/index.d.ts +TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/index.d.ts] *new* +export declare const api: { + extend(options: Record): KyInstance; +}; + +//// [/home/src/workspaces/project/index.js] *new* +import ky from 'ky'; +export const api = ky.extend({}); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["./index.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./index.ts" + ], + "original": "./index.ts" + } + ], + "size": 63 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b --explainFiles --listEmittedFiles --v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +TSFILE: /home/src/workspaces/project/index.js +TSFILE: /home/src/workspaces/project/index.d.ts +TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + +//// [/home/src/workspaces/project/index.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/index.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js new file mode 100644 index 0000000000..2d0353fd02 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js @@ -0,0 +1,257 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/src/common/nominal.ts] *new* +/// +export declare type Nominal = MyNominal; +//// [/home/src/workspaces/solution/src/common/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "composite": true }, + "include": ["./nominal.ts"], +} +//// [/home/src/workspaces/solution/src/common/types.d.ts] *new* +declare type MyNominal = T & { + specialKey: Name; +}; +//// [/home/src/workspaces/solution/src/subProject/index.ts] *new* +import { Nominal } from '../common/nominal'; +export type MyNominal = Nominal; +//// [/home/src/workspaces/solution/src/subProject/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "composite": true }, + "references": [{ "path": "../common" }], + "include": ["./index.ts"], +} +//// [/home/src/workspaces/solution/src/subProject2/index.ts] *new* +import { MyNominal } from '../subProject/index'; +const variable = { + key: 'value' as MyNominal, +}; +export function getVar(): keyof typeof variable { + return 'key'; +} +//// [/home/src/workspaces/solution/src/subProject2/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "composite": true }, + "references": [{ "path": "../subProject" }], + "include": ["./index.ts"], +} +//// [/home/src/workspaces/solution/src/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "./subProject" }, { "path": "./subProject2" }], + "include": [], +} +//// [/home/src/workspaces/solution/tsconfig.base.json] *new* +{ + "compilerOptions": { + "rootDir": "./", + "outDir": "lib", + }, +} +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "extends": "./tsconfig.base.json", + "compilerOptions": { "composite": true }, + "include": ["./src/**/*.ts"], +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'lib/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/lib/src/common/nominal.d.ts] *new* +/// +export declare type Nominal = MyNominal; + +//// [/home/src/workspaces/solution/lib/src/common/nominal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/// + +//// [/home/src/workspaces/solution/lib/src/subProject/index.d.ts] *new* +import { Nominal } from '../common/nominal'; +export type MyNominal = Nominal; + +//// [/home/src/workspaces/solution/lib/src/subProject/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/solution/lib/src/subProject2/index.d.ts] *new* +import { MyNominal } from '../subProject/index'; +declare const variable: { + key: MyNominal; +}; +export declare function getVar(): keyof typeof variable; +export {}; + +//// [/home/src/workspaces/solution/lib/src/subProject2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getVar = getVar; +const variable = { + key: 'value', +}; +function getVar() { + return 'key'; +} + +//// [/home/src/workspaces/solution/lib/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../src/common/types.d.ts","../src/common/nominal.ts","../src/subProject/index.ts","../src/subProject2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;","signature":"87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n","impliedNodeFormat":1},{"version":"f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedNodeFormat":1},{"version":"8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3],[4]],"options":{"composite":true,"outDir":"./","rootDir":".."},"referencedMap":[[3,1],[4,2],[5,3]],"latestChangedDtsFile":"./src/subProject2/index.d.ts"} +//// [/home/src/workspaces/solution/lib/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/common/types.d.ts", + "../src/common/nominal.ts", + "../src/subProject/index.ts", + "../src/subProject2/index.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/common/types.d.ts", + "../src/common/nominal.ts", + "../src/subProject/index.ts", + "../src/subProject2/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/common/types.d.ts", + "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "signature": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/common/nominal.ts", + "version": "02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;", + "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;", + "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/subProject/index.ts", + "version": "f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", + "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", + "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/subProject2/index.ts", + "version": "8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", + "signature": "94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", + "signature": "94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/common/types.d.ts" + ], + [ + "../src/common/nominal.ts" + ], + [ + "../src/subProject/index.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./", + "rootDir": ".." + }, + "referencedMap": { + "../src/common/nominal.ts": [ + "../src/common/types.d.ts" + ], + "../src/subProject/index.ts": [ + "../src/common/nominal.ts" + ], + "../src/subProject2/index.ts": [ + "../src/subProject/index.ts" + ] + }, + "latestChangedDtsFile": "./src/subProject2/index.d.ts", + "size": 2504 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/src/common/types.d.ts +*refresh* /home/src/workspaces/solution/src/common/nominal.ts +*refresh* /home/src/workspaces/solution/src/subProject/index.ts +*refresh* /home/src/workspaces/solution/src/subProject2/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/src/common/nominal.ts +(stored at emit) /home/src/workspaces/solution/src/subProject/index.ts +(stored at emit) /home/src/workspaces/solution/src/subProject2/index.ts diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js new file mode 100644 index 0000000000..3f45be7275 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js @@ -0,0 +1,427 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/src/common/nominal.ts] *new* +/// +export declare type Nominal = MyNominal; +//// [/home/src/workspaces/solution/src/common/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "composite": true }, + "include": ["./nominal.ts"], +} +//// [/home/src/workspaces/solution/src/common/types.d.ts] *new* +declare type MyNominal = T & { + specialKey: Name; +}; +//// [/home/src/workspaces/solution/src/subProject/index.ts] *new* +import { Nominal } from '../common/nominal'; +export type MyNominal = Nominal; +//// [/home/src/workspaces/solution/src/subProject/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "composite": true }, + "references": [{ "path": "../common" }], + "include": ["./index.ts"], +} +//// [/home/src/workspaces/solution/src/subProject2/index.ts] *new* +import { MyNominal } from '../subProject/index'; +const variable = { + key: 'value' as MyNominal, +}; +export function getVar(): keyof typeof variable { + return 'key'; +} +//// [/home/src/workspaces/solution/src/subProject2/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "composite": true }, + "references": [{ "path": "../subProject" }], + "include": ["./index.ts"], +} +//// [/home/src/workspaces/solution/src/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "./subProject" }, { "path": "./subProject2" }], + "include": [], +} +//// [/home/src/workspaces/solution/tsconfig.base.json] *new* +{ + "compilerOptions": { + "rootDir": "./", + "outDir": "lib", + }, +} +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "./src" }], + "include": [], +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * src/common/tsconfig.json + * src/subProject/tsconfig.json + * src/subProject2/tsconfig.json + * src/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'src/common/tsconfig.json' is out of date because output file 'lib/src/common/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'src/common/tsconfig.json'... + +[HH:MM:SS AM] Project 'src/subProject/tsconfig.json' is out of date because output file 'lib/src/subProject/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'src/subProject/tsconfig.json'... + +[HH:MM:SS AM] Project 'src/subProject2/tsconfig.json' is out of date because output file 'lib/src/subProject2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'src/subProject2/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/lib/src/common/nominal.d.ts] *new* +/// +export declare type Nominal = MyNominal; + +//// [/home/src/workspaces/solution/lib/src/common/nominal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/// + +//// [/home/src/workspaces/solution/lib/src/common/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../../../src/common/types.d.ts","../../../src/common/nominal.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;","signature":"87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./nominal.d.ts"} +//// [/home/src/workspaces/solution/lib/src/common/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../src/common/nominal.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../../../src/common/types.d.ts", + "../../../src/common/nominal.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../src/common/types.d.ts", + "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "signature": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../src/common/nominal.ts", + "version": "02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;", + "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "02b2be40ad0c54e8b7965b3b3a70cf4d-/// \nexport declare type Nominal = MyNominal;", + "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../src/common/types.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "../..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../../src/common/nominal.ts": [ + "../../../src/common/types.d.ts" + ] + }, + "latestChangedDtsFile": "./nominal.d.ts", + "size": 1643 +} +//// [/home/src/workspaces/solution/lib/src/subProject/index.d.ts] *new* +import { Nominal } from '../common/nominal'; +export type MyNominal = Nominal; + +//// [/home/src/workspaces/solution/lib/src/subProject/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/solution/lib/src/subProject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../../../src/subProject/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedNodeFormat":1},"87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n",{"version":"f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"referencedMap":[[3,1],[4,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/solution/lib/src/subProject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../src/subProject/index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../../../src/common/types.d.ts", + "../common/nominal.d.ts", + "../../../src/subProject/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../src/common/types.d.ts", + "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "signature": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../common/nominal.d.ts", + "version": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", + "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../src/subProject/index.ts", + "version": "f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", + "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f3259c501eab7f535f47f925d1b0ad90-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", + "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../src/common/types.d.ts" + ], + [ + "../common/nominal.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "../..", + "rootDir": "../../.." + }, + "referencedMap": { + "../common/nominal.d.ts": [ + "../../../src/common/types.d.ts" + ], + "../../../src/subProject/index.ts": [ + "../common/nominal.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1782 +} +//// [/home/src/workspaces/solution/lib/src/subProject2/index.d.ts] *new* +import { MyNominal } from '../subProject/index'; +declare const variable: { + key: MyNominal; +}; +export declare function getVar(): keyof typeof variable; +export {}; + +//// [/home/src/workspaces/solution/lib/src/subProject2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getVar = getVar; +const variable = { + key: 'value', +}; +function getVar() { + return 'key'; +} + +//// [/home/src/workspaces/solution/lib/src/subProject2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../subProject/index.d.ts","../../../src/subProject2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedNodeFormat":1},"87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n","ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n",{"version":"8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3],[4]],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"referencedMap":[[3,1],[4,2],[5,3]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/solution/lib/src/subProject2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../src/subProject2/index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../../src/common/types.d.ts", + "../common/nominal.d.ts", + "../subProject/index.d.ts", + "../../../src/subProject2/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../src/common/types.d.ts", + "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "signature": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "364cbcda81a2b382e1f50a8c4ab62993-declare type MyNominal = T & {\n specialKey: Name;\n};", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../common/nominal.d.ts", + "version": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", + "signature": "87033119a9b5a8355ed894292b93ddfc-/// \nexport declare type Nominal = MyNominal;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../subProject/index.d.ts", + "version": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../src/subProject2/index.ts", + "version": "8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", + "signature": "94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8da8251ddcb1a6ba7d3777c22bdb0c2f-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", + "signature": "94380a791d16e2a4caa75d34b4c1d230-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../src/common/types.d.ts" + ], + [ + "../common/nominal.d.ts" + ], + [ + "../subProject/index.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "../..", + "rootDir": "../../.." + }, + "referencedMap": { + "../common/nominal.d.ts": [ + "../../../src/common/types.d.ts" + ], + "../subProject/index.d.ts": [ + "../common/nominal.d.ts" + ], + "../../../src/subProject2/index.ts": [ + "../subProject/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2106 +} + +src/common/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/src/common/types.d.ts +*refresh* /home/src/workspaces/solution/src/common/nominal.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/src/common/nominal.ts + +src/subProject/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/src/common/types.d.ts +*refresh* /home/src/workspaces/solution/lib/src/common/nominal.d.ts +*refresh* /home/src/workspaces/solution/src/subProject/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/src/subProject/index.ts + +src/subProject2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/src/common/types.d.ts +*refresh* /home/src/workspaces/solution/lib/src/common/nominal.d.ts +*refresh* /home/src/workspaces/solution/lib/src/subProject/index.d.ts +*refresh* /home/src/workspaces/solution/src/subProject2/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/src/subProject2/index.ts diff --git a/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js new file mode 100644 index 0000000000..739155b881 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js @@ -0,0 +1,229 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/packages/pkg1/src/index.ts] *new* +export interface IThing { + a: string; +} +export interface IThings { + thing1: IThing; +} +//// [/home/src/workspaces/project/packages/pkg1/tsconfig.json] *new* +{ + "extends": "../../tsconfig", + "compilerOptions": { "outDir": "lib" }, + "include": ["src"], +} +//// [/home/src/workspaces/project/packages/pkg2/src/index.ts] *new* +import { IThings } from '@fluentui/pkg1'; +export function fn4() { + const a: IThings = { thing1: { a: 'b' } }; + return a.thing1; +} +//// [/home/src/workspaces/project/packages/pkg2/tsconfig.json] *new* +{ + "extends": "../../tsconfig", + "compilerOptions": { "outDir": "lib" }, + "include": ["src"], + "references": [{ "path": "../pkg1" }], +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "paths": { "@fluentui/*": ["./packages/*/src"] }, + }, +} + +tsgo --b packages/pkg2/tsconfig.json --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * packages/pkg1/tsconfig.json + * packages/pkg2/tsconfig.json + +[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/lib/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/lib/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/packages/pkg1/lib/src/index.d.ts] *new* +export interface IThing { + a: string; +} +export interface IThings { + thing1: IThing; +} + +//// [/home/src/workspaces/project/packages/pkg1/lib/src/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/packages/pkg1/lib/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f611077efa7cfdd7e90bebd6aef8d21e-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}","signature":"a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/project/packages/pkg1/lib/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/index.ts", + "version": "f611077efa7cfdd7e90bebd6aef8d21e-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}", + "signature": "a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f611077efa7cfdd7e90bebd6aef8d21e-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}", + "signature": "a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1262 +} +//// [/home/src/workspaces/project/packages/pkg2/lib/src/index.d.ts] *new* +export declare function fn4(): import("@fluentui/pkg1/lib").IThing; + +//// [/home/src/workspaces/project/packages/pkg2/lib/src/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.fn4 = fn4; +function fn4() { + const a = { thing1: { a: 'b' } }; + return a.thing1; +} + +//// [/home/src/workspaces/project/packages/pkg2/lib/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../../pkg1/lib/src/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n",{"version":"4d4febb98ed4514d6d06322111030719-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}","signature":"f536bf864c731ec3cb58961dede15c18-export declare function fn4(): import(\"@fluentui/pkg1/lib\").IThing;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/project/packages/pkg2/lib/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../../pkg1/lib/src/index.d.ts", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../pkg1/lib/src/index.d.ts", + "version": "a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", + "signature": "a9c3ba42ffd025bdbe473878c71e06db-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/index.ts", + "version": "4d4febb98ed4514d6d06322111030719-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}", + "signature": "f536bf864c731ec3cb58961dede15c18-export declare function fn4(): import(\"@fluentui/pkg1/lib\").IThing;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4d4febb98ed4514d6d06322111030719-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}", + "signature": "f536bf864c731ec3cb58961dede15c18-export declare function fn4(): import(\"@fluentui/pkg1/lib\").IThing;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../pkg1/lib/src/index.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../src/index.ts": [ + "../../pkg1/lib/src/index.d.ts" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1488 +} + +packages/pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/packages/pkg1/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/packages/pkg1/src/index.ts + +packages/pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/packages/pkg1/lib/src/index.d.ts +*refresh* /home/src/workspaces/project/packages/pkg2/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/packages/pkg2/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js b/testdata/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js new file mode 100644 index 0000000000..57c66f13c9 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js @@ -0,0 +1,705 @@ +currentDirectory::/user/username/projects/demo +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/demo/animals/animal.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} +//// [/user/username/projects/demo/animals/dog.ts] *new* +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} +//// [/user/username/projects/demo/animals/index.ts] *new* +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; +//// [/user/username/projects/demo/animals/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { "path": "../core" } + ] +} +//// [/user/username/projects/demo/core/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + }, +} +//// [/user/username/projects/demo/core/utilities.ts] *new* +import * as A from '../animals' +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} +//// [/user/username/projects/demo/tsconfig-base.json] *new* +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + }, +} +//// [/user/username/projects/demo/tsconfig.json] *new* +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals", + }, + { + "path": "./zoo", + }, + ], +} +//// [/user/username/projects/demo/zoo/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} +//// [/user/username/projects/demo/zoo/zoo.ts] *new* +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + +tsgo --b --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +animals/index.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/animal.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +1 import Animal from './animal'; +   ~~~~~~~~~~ + +animals/index.ts:4:32 - error TS6307: File '/user/username/projects/demo/animals/dog.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +4 import { createDog, Dog } from './dog'; +   ~~~~~~~ + +core/utilities.ts:1:13 - error TS6133: 'A' is declared but its value is never read. + +1 import * as A from '../animals' +   ~ + +core/utilities.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/index.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + The file is in the program because: + Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' + Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' + +1 import * as A from '../animals' +   ~~~~~~~~~~~~ + + animals/dog.ts:1:20 - File is included via import here. + 1 import Animal from '.'; +    ~~~ + +[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'animals/tsconfig.json'... + +[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... + + +Found 4 errors in 2 files. + +Errors Files + 2 animals/index.ts:1 + 2 core/utilities.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/demo/animals/animal.d.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + +//// [/user/username/projects/demo/animals/animal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/demo/animals/dog.d.ts] *new* +import Animal from '.'; +export interface Dog extends Animal { + woof(): void; + name: string; +} +export declare function createDog(): Dog; + +//// [/user/username/projects/demo/animals/dog.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = createDog; +const utilities_1 = require("../core/utilities"); +function createDog() { + return ({ + size: "medium", + woof: function () { + console.log(`${this.name} says "Woof"!`); + }, + name: (0, utilities_1.makeRandomName)() + }); +} + +//// [/user/username/projects/demo/animals/index.d.ts] *new* +import Animal from './animal'; +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + +//// [/user/username/projects/demo/animals/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = void 0; +const dog_1 = require("./dog"); +Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); + +//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + +//// [/user/username/projects/demo/lib/animals/animal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* +import Animal from '.'; +export interface Dog extends Animal { + woof(): void; + name: string; +} +export declare function createDog(): Dog; + +//// [/user/username/projects/demo/lib/animals/dog.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = createDog; +const utilities_1 = require("../core/utilities"); +function createDog() { + return ({ + size: "medium", + woof: function () { + console.log(`${this.name} says "Woof"!`); + }, + name: (0, utilities_1.makeRandomName)() + }); +} + +//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* +import Animal from './animal'; +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + +//// [/user/username/projects/demo/lib/animals/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = void 0; +const dog_1 = require("./dog"); +Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); + +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../animals/animal.ts", + "../../animals/index.ts" + ], + "original": [ + 2, + 3 + ] + }, + { + "files": [ + "../../animals/dog.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../animals/animal.ts", + "../../animals/index.ts", + "../core/utilities.d.ts", + "../../animals/dog.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/animal.ts", + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/index.ts", + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/utilities.d.ts", + "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../animals/dog.ts", + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../animals", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../../animals/dog.ts": [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + "../../animals/index.ts": [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + }, + "latestChangedDtsFile": "./dog.d.ts", + "size": 2794 +} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},{"version":"c71a99e072793c29cda49dd3fea04661-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"fileIdsList":[[4,5],[2,3],[4]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[[5,[{"pos":12,"end":13,"code":6133,"category":1,"message":"'A' is declared but its value is never read.","reportsUnnecessary":true}]]],"latestChangedDtsFile":"./utilities.d.ts"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../../core/utilities.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../animals/animal.ts", + "../../animals/dog.ts", + "../../animals/index.ts", + "../../core/utilities.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/animal.ts", + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/dog.ts", + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/index.ts", + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../core/utilities.ts", + "version": "c71a99e072793c29cda49dd3fea04661-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c71a99e072793c29cda49dd3fea04661-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../animals/index.ts", + "../../core/utilities.ts" + ], + [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ], + [ + "../../animals/index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../core", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../../animals/dog.ts": [ + "../../animals/index.ts", + "../../core/utilities.ts" + ], + "../../animals/index.ts": [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ], + "../../core/utilities.ts": [ + "../../animals/index.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../../core/utilities.ts", + [ + { + "pos": 12, + "end": 13, + "code": 6133, + "category": 1, + "message": "'A' is declared but its value is never read.", + "reportsUnnecessary": true + } + ] + ] + ], + "latestChangedDtsFile": "./utilities.d.ts", + "size": 3302 +} +//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* +export declare function makeRandomName(): string; +export declare function lastElementOf(arr: T[]): T | undefined; + +//// [/user/username/projects/demo/lib/core/utilities.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.makeRandomName = makeRandomName; +exports.lastElementOf = lastElementOf; +function makeRandomName() { + return "Bob!?! "; +} +function lastElementOf(arr) { + if (arr.length === 0) + return undefined; + return arr[arr.length - 1]; +} + +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../zoo/zoo.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../animals/animal.d.ts", + "../animals/dog.d.ts", + "../animals/index.d.ts", + "../../zoo/zoo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../animals/animal.d.ts", + "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/dog.d.ts", + "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/index.d.ts", + "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../zoo/zoo.ts", + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../animals/index.d.ts" + ], + [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../zoo", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ], + "../../zoo/zoo.ts": [ + "../animals/index.d.ts" + ] + }, + "latestChangedDtsFile": "./zoo.d.ts", + "size": 2104 +} +//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* +import { Dog } from '../animals/index'; +export declare function createZoo(): Array; + +//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createZoo = createZoo; +const index_1 = require("../animals/index"); +function createZoo() { + return [ + (0, index_1.createDog)() + ]; +} + + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/animals/animal.ts +*refresh* /user/username/projects/demo/animals/dog.ts +*refresh* /user/username/projects/demo/animals/index.ts +*refresh* /user/username/projects/demo/core/utilities.ts +Signatures:: +(stored at emit) /user/username/projects/demo/animals/animal.ts +(stored at emit) /user/username/projects/demo/animals/dog.ts +(stored at emit) /user/username/projects/demo/animals/index.ts +(stored at emit) /user/username/projects/demo/core/utilities.ts + +animals/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/animals/animal.ts +*refresh* /user/username/projects/demo/animals/index.ts +*refresh* /user/username/projects/demo/lib/core/utilities.d.ts +*refresh* /user/username/projects/demo/animals/dog.ts +Signatures:: +(stored at emit) /user/username/projects/demo/animals/animal.ts +(stored at emit) /user/username/projects/demo/animals/index.ts +(stored at emit) /user/username/projects/demo/animals/dog.ts + +zoo/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/lib/animals/animal.d.ts +*refresh* /user/username/projects/demo/lib/animals/dog.d.ts +*refresh* /user/username/projects/demo/lib/animals/index.d.ts +*refresh* /user/username/projects/demo/zoo/zoo.ts +Signatures:: +(stored at emit) /user/username/projects/demo/zoo/zoo.ts diff --git a/testdata/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js b/testdata/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js new file mode 100644 index 0000000000..6753102212 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js @@ -0,0 +1,133 @@ +currentDirectory::/user/username/projects/demo +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/demo/animals/animal.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} +//// [/user/username/projects/demo/animals/dog.ts] *new* +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} +//// [/user/username/projects/demo/animals/index.ts] *new* +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; +//// [/user/username/projects/demo/animals/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { "path": "../core" } + ] +} +//// [/user/username/projects/demo/core/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + }, + "references": [ + { + "path": "../zoo", + } + ] +} +//// [/user/username/projects/demo/core/utilities.ts] *new* +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} +//// [/user/username/projects/demo/tsconfig-base.json] *new* +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + }, +} +//// [/user/username/projects/demo/tsconfig.json] *new* +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals", + }, + { + "path": "./zoo", + }, + ], +} +//// [/user/username/projects/demo/zoo/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} +//// [/user/username/projects/demo/zoo/zoo.ts] *new* +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + +tsgo --b --verbose +ExitStatus:: ProjectReferenceCycle_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * animals/tsconfig.json + * zoo/tsconfig.json + * core/tsconfig.json + * tsconfig.json + +error TS6202: Project references may not form a circular graph. Cycle detected: /user/username/projects/demo/tsconfig.json +/user/username/projects/demo/core/tsconfig.json +/user/username/projects/demo/zoo/tsconfig.json +/user/username/projects/demo/animals/tsconfig.json + +Found 1 error. + + diff --git a/testdata/baselines/reference/tsbuild/demo/in-circular-is-set-in-the-reference.js b/testdata/baselines/reference/tsbuild/demo/in-circular-is-set-in-the-reference.js new file mode 100644 index 0000000000..21246b8f74 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/demo/in-circular-is-set-in-the-reference.js @@ -0,0 +1,735 @@ +currentDirectory::/user/username/projects/demo +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/demo/a/index.ts] *new* +export const a = 10; +//// [/user/username/projects/demo/a/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/a", + "rootDir": "." + }, + "references": [ + { + "path": "../b", + "circular": true + } + ] +} +//// [/user/username/projects/demo/animals/animal.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} +//// [/user/username/projects/demo/animals/dog.ts] *new* +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} +//// [/user/username/projects/demo/animals/index.ts] *new* +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; +//// [/user/username/projects/demo/animals/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { "path": "../core" } + ] +} +//// [/user/username/projects/demo/b/index.ts] *new* +export const b = 10; +//// [/user/username/projects/demo/b/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/b", + "rootDir": "." + }, + "references": [ + { + "path": "../a", + } + ] +} +//// [/user/username/projects/demo/core/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + }, +} +//// [/user/username/projects/demo/core/utilities.ts] *new* +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} +//// [/user/username/projects/demo/tsconfig-base.json] *new* +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + }, +} +//// [/user/username/projects/demo/tsconfig.json] *new* +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals", + }, + { + "path": "./zoo", + }, + { + "path": "./a", + }, + { + "path": "./b", + }, + ], +} +//// [/user/username/projects/demo/zoo/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} +//// [/user/username/projects/demo/zoo/zoo.ts] *new* +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * b/tsconfig.json + * a/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'animals/tsconfig.json'... + +[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... + +[HH:MM:SS AM] Project 'b/tsconfig.json' is out of date because output file 'lib/b/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'b/tsconfig.json'... + +[HH:MM:SS AM] Project 'a/tsconfig.json' is out of date because output file 'lib/a/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'a/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/demo/lib/a/index.d.ts] *new* +export declare const a = 10; + +//// [/user/username/projects/demo/lib/a/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; + +//// [/user/username/projects/demo/lib/a/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../a/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3a1e9965f8602302ee6ae53756eac8be-export const a = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../a","strict":true,"target":1},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/demo/lib/a/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../a/index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../../a/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../a/index.ts", + "version": "3a1e9965f8602302ee6ae53756eac8be-export const a = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3a1e9965f8602302ee6ae53756eac8be-export const a = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../a", + "strict": true, + "target": 1 + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1297 +} +//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + +//// [/user/username/projects/demo/lib/animals/animal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* +import Animal from '.'; +export interface Dog extends Animal { + woof(): void; + name: string; +} +export declare function createDog(): Dog; + +//// [/user/username/projects/demo/lib/animals/dog.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = createDog; +const utilities_1 = require("../core/utilities"); +function createDog() { + return ({ + size: "medium", + woof: function () { + console.log(`${this.name} says "Woof"!`); + }, + name: (0, utilities_1.makeRandomName)() + }); +} + +//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* +import Animal from './animal'; +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + +//// [/user/username/projects/demo/lib/animals/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = void 0; +const dog_1 = require("./dog"); +Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); + +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../animals/animal.ts", + "../../animals/index.ts" + ], + "original": [ + 2, + 3 + ] + }, + { + "files": [ + "../../animals/dog.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../animals/animal.ts", + "../../animals/index.ts", + "../core/utilities.d.ts", + "../../animals/dog.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/animal.ts", + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/index.ts", + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/utilities.d.ts", + "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../animals/dog.ts", + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../animals", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../../animals/dog.ts": [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + "../../animals/index.ts": [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + }, + "latestChangedDtsFile": "./dog.d.ts", + "size": 2794 +} +//// [/user/username/projects/demo/lib/b/index.d.ts] *new* +export declare const b = 10; + +//// [/user/username/projects/demo/lib/b/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/user/username/projects/demo/lib/b/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../b/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../b","strict":true,"target":1},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/demo/lib/b/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../b/index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../../b/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../b/index.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../b", + "strict": true, + "target": 1 + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1297 +} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"43144ca7c82db0f51f0d56a2b3e2f565-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"latestChangedDtsFile":"./utilities.d.ts"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../core/utilities.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../../core/utilities.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../core/utilities.ts", + "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../core", + "strict": true, + "target": 1 + }, + "latestChangedDtsFile": "./utilities.d.ts", + "size": 1586 +} +//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* +export declare function makeRandomName(): string; +export declare function lastElementOf(arr: T[]): T | undefined; + +//// [/user/username/projects/demo/lib/core/utilities.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.makeRandomName = makeRandomName; +exports.lastElementOf = lastElementOf; +function makeRandomName() { + return "Bob!?! "; +} +function lastElementOf(arr) { + if (arr.length === 0) + return undefined; + return arr[arr.length - 1]; +} + +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../zoo/zoo.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../animals/animal.d.ts", + "../animals/dog.d.ts", + "../animals/index.d.ts", + "../../zoo/zoo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../animals/animal.d.ts", + "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/dog.d.ts", + "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/index.d.ts", + "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../zoo/zoo.ts", + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../animals/index.d.ts" + ], + [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../zoo", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ], + "../../zoo/zoo.ts": [ + "../animals/index.d.ts" + ] + }, + "latestChangedDtsFile": "./zoo.d.ts", + "size": 2104 +} +//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* +import { Dog } from '../animals/index'; +export declare function createZoo(): Array; + +//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createZoo = createZoo; +const index_1 = require("../animals/index"); +function createZoo() { + return [ + (0, index_1.createDog)() + ]; +} + + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/core/utilities.ts +Signatures:: +(stored at emit) /user/username/projects/demo/core/utilities.ts + +animals/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/animals/animal.ts +*refresh* /user/username/projects/demo/animals/index.ts +*refresh* /user/username/projects/demo/lib/core/utilities.d.ts +*refresh* /user/username/projects/demo/animals/dog.ts +Signatures:: +(stored at emit) /user/username/projects/demo/animals/animal.ts +(stored at emit) /user/username/projects/demo/animals/index.ts +(stored at emit) /user/username/projects/demo/animals/dog.ts + +zoo/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/lib/animals/animal.d.ts +*refresh* /user/username/projects/demo/lib/animals/dog.d.ts +*refresh* /user/username/projects/demo/lib/animals/index.d.ts +*refresh* /user/username/projects/demo/zoo/zoo.ts +Signatures:: +(stored at emit) /user/username/projects/demo/zoo/zoo.ts + +b/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/b/index.ts +Signatures:: +(stored at emit) /user/username/projects/demo/b/index.ts + +a/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/a/index.ts +Signatures:: +(stored at emit) /user/username/projects/demo/a/index.ts diff --git a/testdata/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js b/testdata/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js new file mode 100644 index 0000000000..51cfcbbfd6 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js @@ -0,0 +1,560 @@ +currentDirectory::/user/username/projects/demo +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/demo/animals/animal.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} +//// [/user/username/projects/demo/animals/dog.ts] *new* +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} +//// [/user/username/projects/demo/animals/index.ts] *new* +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; +//// [/user/username/projects/demo/animals/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { "path": "../core" } + ] +} +//// [/user/username/projects/demo/core/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + }, +} +//// [/user/username/projects/demo/core/utilities.ts] *new* +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} +//// [/user/username/projects/demo/tsconfig-base.json] *new* +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + }, +} +//// [/user/username/projects/demo/tsconfig.json] *new* +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals", + }, + { + "path": "./zoo", + }, + ], +} +//// [/user/username/projects/demo/zoo/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} +//// [/user/username/projects/demo/zoo/zoo.ts] *new* +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'animals/tsconfig.json'... + +[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + +//// [/user/username/projects/demo/lib/animals/animal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* +import Animal from '.'; +export interface Dog extends Animal { + woof(): void; + name: string; +} +export declare function createDog(): Dog; + +//// [/user/username/projects/demo/lib/animals/dog.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = createDog; +const utilities_1 = require("../core/utilities"); +function createDog() { + return ({ + size: "medium", + woof: function () { + console.log(`${this.name} says "Woof"!`); + }, + name: (0, utilities_1.makeRandomName)() + }); +} + +//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* +import Animal from './animal'; +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + +//// [/user/username/projects/demo/lib/animals/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = void 0; +const dog_1 = require("./dog"); +Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); + +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../animals/animal.ts", + "../../animals/index.ts" + ], + "original": [ + 2, + 3 + ] + }, + { + "files": [ + "../../animals/dog.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../animals/animal.ts", + "../../animals/index.ts", + "../core/utilities.d.ts", + "../../animals/dog.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/animal.ts", + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/index.ts", + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/utilities.d.ts", + "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../animals/dog.ts", + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../animals", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../../animals/dog.ts": [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + "../../animals/index.ts": [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + }, + "latestChangedDtsFile": "./dog.d.ts", + "size": 2794 +} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"43144ca7c82db0f51f0d56a2b3e2f565-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"latestChangedDtsFile":"./utilities.d.ts"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../core/utilities.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../../core/utilities.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../core/utilities.ts", + "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../core", + "strict": true, + "target": 1 + }, + "latestChangedDtsFile": "./utilities.d.ts", + "size": 1586 +} +//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* +export declare function makeRandomName(): string; +export declare function lastElementOf(arr: T[]): T | undefined; + +//// [/user/username/projects/demo/lib/core/utilities.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.makeRandomName = makeRandomName; +exports.lastElementOf = lastElementOf; +function makeRandomName() { + return "Bob!?! "; +} +function lastElementOf(arr) { + if (arr.length === 0) + return undefined; + return arr[arr.length - 1]; +} + +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../zoo/zoo.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../animals/animal.d.ts", + "../animals/dog.d.ts", + "../animals/index.d.ts", + "../../zoo/zoo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../animals/animal.d.ts", + "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/dog.d.ts", + "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/index.d.ts", + "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../zoo/zoo.ts", + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../animals/index.d.ts" + ], + [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../zoo", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ], + "../../zoo/zoo.ts": [ + "../animals/index.d.ts" + ] + }, + "latestChangedDtsFile": "./zoo.d.ts", + "size": 2104 +} +//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* +import { Dog } from '../animals/index'; +export declare function createZoo(): Array; + +//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createZoo = createZoo; +const index_1 = require("../animals/index"); +function createZoo() { + return [ + (0, index_1.createDog)() + ]; +} + + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/core/utilities.ts +Signatures:: +(stored at emit) /user/username/projects/demo/core/utilities.ts + +animals/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/animals/animal.ts +*refresh* /user/username/projects/demo/animals/index.ts +*refresh* /user/username/projects/demo/lib/core/utilities.d.ts +*refresh* /user/username/projects/demo/animals/dog.ts +Signatures:: +(stored at emit) /user/username/projects/demo/animals/animal.ts +(stored at emit) /user/username/projects/demo/animals/index.ts +(stored at emit) /user/username/projects/demo/animals/dog.ts + +zoo/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/lib/animals/animal.d.ts +*refresh* /user/username/projects/demo/lib/animals/dog.d.ts +*refresh* /user/username/projects/demo/lib/animals/index.d.ts +*refresh* /user/username/projects/demo/zoo/zoo.ts +Signatures:: +(stored at emit) /user/username/projects/demo/zoo/zoo.ts + + +Edit [0]:: no change + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/utilities.ts' is older than output 'lib/core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'animals/tsconfig.json' is up to date because newest input 'animals/index.ts' is older than output 'lib/animals/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'zoo/tsconfig.json' is up to date because newest input 'zoo/zoo.ts' is older than output 'lib/zoo/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js new file mode 100644 index 0000000000..ce09890b25 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -0,0 +1,431 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/a.ts] *new* +import { B } from "./b"; + +export interface A { + b: B; +} +//// [/home/src/workspaces/project/src/b.ts] *new* +import { C } from "./c"; + +export interface B { + b: C; +} +//// [/home/src/workspaces/project/src/c.ts] *new* +import { A } from "./a"; + +export interface C { + a: A; +} +//// [/home/src/workspaces/project/src/index.ts] *new* +export { A } from "./a"; +export { B } from "./b"; +export { C } from "./c"; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "src", + "emitDeclarationOnly": true, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/lib/a.d.ts] *new* +import { B } from "./b"; +export interface A { + b: B; +} +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/lib/a.d.ts.map] *new* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} +//// [/home/src/workspaces/project/lib/b.d.ts] *new* +import { C } from "./c"; +export interface B { + b: C; +} +//# sourceMappingURL=b.d.ts.map +//// [/home/src/workspaces/project/lib/b.d.ts.map] *new* +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} +//// [/home/src/workspaces/project/lib/c.d.ts] *new* +import { A } from "./a"; +export interface C { + a: A; +} +//# sourceMappingURL=c.d.ts.map +//// [/home/src/workspaces/project/lib/c.d.ts.map] *new* +{"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"} +//// [/home/src/workspaces/project/lib/index.d.ts] *new* +export { A } from "./a"; +export { B } from "./b"; +export { C } from "./c"; +//# sourceMappingURL=index.d.ts.map +//// [/home/src/workspaces/project/lib/index.d.ts.map] *new* +{"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"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1},{"version":"0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}","signature":"2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","impliedNodeFormat":1},{"version":"9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";","signature":"c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2],[4],[2,3,4]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"latestChangedDtsFile":"./lib/index.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts", + "./src/index.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/c.ts", + "./src/b.ts", + "./src/a.ts", + "./src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/c.ts", + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/b.ts", + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/a.ts", + "version": "0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}", + "signature": "2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}", + "signature": "2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/index.ts", + "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", + "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", + "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/b.ts" + ], + [ + "./src/c.ts" + ], + [ + "./src/a.ts" + ], + [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts" + ] + ], + "options": { + "alwaysStrict": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "sourceMap": true, + "target": 1 + }, + "referencedMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts" + ] + }, + "latestChangedDtsFile": "./lib/index.d.ts", + "size": 2277 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/c.ts +*refresh* /home/src/workspaces/project/src/b.ts +*refresh* /home/src/workspaces/project/src/a.ts +*refresh* /home/src/workspaces/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/c.ts +(stored at emit) /home/src/workspaces/project/src/b.ts +(stored at emit) /home/src/workspaces/project/src/a.ts +(stored at emit) /home/src/workspaces/project/src/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/home/src/workspaces/project/src/a.ts] *modified* +import { B } from "./b"; + +export interface A { + b: B; foo: any; +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/lib/a.d.ts] *modified* +import { B } from "./b"; +export interface A { + b: B; + foo: any; +} +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/lib/a.d.ts.map] *modified* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAClB"} +//// [/home/src/workspaces/project/lib/b.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/lib/c.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/lib/index.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1},{"version":"078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}","signature":"ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedNodeFormat":1},{"version":"9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";","signature":"c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2],[4],[2,3,4]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"latestChangedDtsFile":"./lib/a.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts", + "./src/index.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/c.ts", + "./src/b.ts", + "./src/a.ts", + "./src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/c.ts", + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/b.ts", + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/a.ts", + "version": "078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}", + "signature": "ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}", + "signature": "ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/index.ts", + "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", + "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", + "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/b.ts" + ], + [ + "./src/c.ts" + ], + [ + "./src/a.ts" + ], + [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts" + ] + ], + "options": { + "alwaysStrict": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "sourceMap": true, + "target": 1 + }, + "referencedMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts" + ] + }, + "latestChangedDtsFile": "./lib/a.d.ts", + "size": 2298 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/c.ts +*refresh* /home/src/workspaces/project/src/b.ts +*refresh* /home/src/workspaces/project/src/a.ts +*refresh* /home/src/workspaces/project/src/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/c.ts +(stored at emit) /home/src/workspaces/project/src/b.ts +(computed .d.ts) /home/src/workspaces/project/src/a.ts +(computed .d.ts) /home/src/workspaces/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js new file mode 100644 index 0000000000..4ff576fa8a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -0,0 +1,418 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/a.ts] *new* +import { B } from "./b"; + +export interface A { + b: B; +} +//// [/home/src/workspaces/project/src/b.ts] *new* +import { C } from "./c"; + +export interface B { + b: C; +} +//// [/home/src/workspaces/project/src/c.ts] *new* +import { A } from "./a"; + +export interface C { + a: A; +} +//// [/home/src/workspaces/project/src/index.ts] *new* +export { A } from "./a"; +export { B } from "./b"; +export { C } from "./c"; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "declarationMap": false, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "src", + "emitDeclarationOnly": true, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/lib/a.d.ts] *new* +import { B } from "./b"; +export interface A { + b: B; +} + +//// [/home/src/workspaces/project/lib/b.d.ts] *new* +import { C } from "./c"; +export interface B { + b: C; +} + +//// [/home/src/workspaces/project/lib/c.d.ts] *new* +import { A } from "./a"; +export interface C { + a: A; +} + +//// [/home/src/workspaces/project/lib/index.d.ts] *new* +export { A } from "./a"; +export { B } from "./b"; +export { C } from "./c"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1},{"version":"0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}","signature":"2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","impliedNodeFormat":1},{"version":"9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";","signature":"c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2],[4],[2,3,4]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"latestChangedDtsFile":"./lib/index.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts", + "./src/index.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/c.ts", + "./src/b.ts", + "./src/a.ts", + "./src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/c.ts", + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/b.ts", + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/a.ts", + "version": "0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}", + "signature": "2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0c094e56b7619bf6cde26939daf7a796-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}", + "signature": "2904de9e1ae84b014654eae6ae9d57b8-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/index.ts", + "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", + "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", + "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/b.ts" + ], + [ + "./src/c.ts" + ], + [ + "./src/a.ts" + ], + [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts" + ] + ], + "options": { + "alwaysStrict": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": false, + "esModuleInterop": true, + "module": 1, + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "sourceMap": true, + "target": 1 + }, + "referencedMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts" + ] + }, + "latestChangedDtsFile": "./lib/index.d.ts", + "size": 2278 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/c.ts +*refresh* /home/src/workspaces/project/src/b.ts +*refresh* /home/src/workspaces/project/src/a.ts +*refresh* /home/src/workspaces/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/c.ts +(stored at emit) /home/src/workspaces/project/src/b.ts +(stored at emit) /home/src/workspaces/project/src/a.ts +(stored at emit) /home/src/workspaces/project/src/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/home/src/workspaces/project/src/a.ts] *modified* +import { B } from "./b"; + +export interface A { + b: B; foo: any; +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/lib/a.d.ts] *modified* +import { B } from "./b"; +export interface A { + b: B; + foo: any; +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1},{"version":"078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}","signature":"ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedNodeFormat":1},{"version":"9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";","signature":"c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2],[4],[2,3,4]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"latestChangedDtsFile":"./lib/a.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts", + "./src/index.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/c.ts", + "./src/b.ts", + "./src/a.ts", + "./src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/c.ts", + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/b.ts", + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/a.ts", + "version": "078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}", + "signature": "ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "078c59719381373c2fc227a7b5ee0f0b-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}", + "signature": "ddf8205c0552214926ecdcce4664e925-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/index.ts", + "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", + "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9752277022f460184d673fd343fe2c3f-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";", + "signature": "c689f6bb5a7ac5a812528f5b6ccb6872-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/b.ts" + ], + [ + "./src/c.ts" + ], + [ + "./src/a.ts" + ], + [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts" + ] + ], + "options": { + "alwaysStrict": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": false, + "esModuleInterop": true, + "module": 1, + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "sourceMap": true, + "target": 1 + }, + "referencedMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/c.ts", + "./src/b.ts", + "./src/a.ts" + ] + }, + "latestChangedDtsFile": "./lib/a.d.ts", + "size": 2299 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/c.ts +*refresh* /home/src/workspaces/project/src/b.ts +*refresh* /home/src/workspaces/project/src/a.ts +*refresh* /home/src/workspaces/project/src/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/c.ts +(stored at emit) /home/src/workspaces/project/src/b.ts +(computed .d.ts) /home/src/workspaces/project/src/a.ts +(computed .d.ts) /home/src/workspaces/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js new file mode 100644 index 0000000000..5e816fb977 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -0,0 +1,495 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/a.ts] *new* +export class B { prop = "hello"; } + +export interface A { + b: B; +} +//// [/home/src/workspaces/project/src/b.ts] *new* +import { C } from "./c"; + +export interface B { + b: C; +} +//// [/home/src/workspaces/project/src/c.ts] *new* +import { A } from "./a"; + +export interface C { + a: A; +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "src", + "emitDeclarationOnly": true, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/lib/a.d.ts] *new* +export declare class B { + prop: string; +} +export interface A { + b: B; +} +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/lib/a.d.ts.map] *new* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} +//// [/home/src/workspaces/project/lib/b.d.ts] *new* +import { C } from "./c"; +export interface B { + b: C; +} +//# sourceMappingURL=b.d.ts.map +//// [/home/src/workspaces/project/lib/b.d.ts.map] *new* +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} +//// [/home/src/workspaces/project/lib/c.d.ts] *new* +import { A } from "./a"; +export interface C { + a: A; +} +//# sourceMappingURL=c.d.ts.map +//// [/home/src/workspaces/project/lib/c.d.ts.map] *new* +{"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"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"665f99944701507453d40566cb1ae14c-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}","signature":"99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n","impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2]],"latestChangedDtsFile":"./lib/b.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/a.ts", + "./src/c.ts", + "./src/b.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/a.ts", + "./src/c.ts", + "./src/b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/a.ts", + "version": "665f99944701507453d40566cb1ae14c-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}", + "signature": "99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "665f99944701507453d40566cb1ae14c-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}", + "signature": "99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/c.ts", + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/b.ts", + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/c.ts" + ], + [ + "./src/a.ts" + ] + ], + "options": { + "alwaysStrict": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "sourceMap": true, + "target": 1 + }, + "referencedMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "latestChangedDtsFile": "./lib/b.d.ts", + "size": 1978 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/a.ts +*refresh* /home/src/workspaces/project/src/c.ts +*refresh* /home/src/workspaces/project/src/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/a.ts +(stored at emit) /home/src/workspaces/project/src/c.ts +(stored at emit) /home/src/workspaces/project/src/b.ts + + +Edit [0]:: incremental-declaration-doesnt-change +//// [/home/src/workspaces/project/src/a.ts] *modified* +export class B { prop = "hello"; } + +class C { } +export interface A { + b: B; +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/lib/a.d.ts.map] *modified* +{"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"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d6b87c1d5c5dc8a828f29d0ccdf50a96-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}","signature":"99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n","impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2]],"latestChangedDtsFile":"./lib/b.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/a.ts", + "./src/c.ts", + "./src/b.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/a.ts", + "./src/c.ts", + "./src/b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/a.ts", + "version": "d6b87c1d5c5dc8a828f29d0ccdf50a96-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}", + "signature": "99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6b87c1d5c5dc8a828f29d0ccdf50a96-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}", + "signature": "99c00a9e07d33f360f88c1625460e5f4-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/c.ts", + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/b.ts", + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/c.ts" + ], + [ + "./src/a.ts" + ] + ], + "options": { + "alwaysStrict": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "sourceMap": true, + "target": 1 + }, + "referencedMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "latestChangedDtsFile": "./lib/b.d.ts", + "size": 1991 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/a.ts + + +Edit [1]:: incremental-declaration-changes +//// [/home/src/workspaces/project/src/a.ts] *modified* +export class B { prop = "hello"; } + +class C { } +export interface A { + b: B; foo: any; +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/lib/a.d.ts] *modified* +export declare class B { + prop: string; +} +export interface A { + b: B; + foo: any; +} +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/lib/a.d.ts.map] *modified* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAClB"} +//// [/home/src/workspaces/project/lib/b.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/lib/c.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f2ea1f64003c617e4826031e7133d22d-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}","signature":"1bd611ec5b00f8f076ed030967bcfa3e-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedNodeFormat":1},{"version":"e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}","signature":"57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedNodeFormat":1},{"version":"635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}","signature":"2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"alwaysStrict":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","strict":true,"sourceMap":true,"target":1},"referencedMap":[[4,1],[3,2]],"latestChangedDtsFile":"./lib/a.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/a.ts", + "./src/c.ts", + "./src/b.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/a.ts", + "./src/c.ts", + "./src/b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/a.ts", + "version": "f2ea1f64003c617e4826031e7133d22d-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}", + "signature": "1bd611ec5b00f8f076ed030967bcfa3e-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f2ea1f64003c617e4826031e7133d22d-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}", + "signature": "1bd611ec5b00f8f076ed030967bcfa3e-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/c.ts", + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8d66a87a10151e3d8c84e04e3d962c9-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}", + "signature": "57c1fb7dd5816e999a47a54abfd60004-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/b.ts", + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "635cd13fa5127837a0f61aa9d436e764-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}", + "signature": "2c6af9ce6f102ba192048b07d4b44ebf-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/c.ts" + ], + [ + "./src/a.ts" + ] + ], + "options": { + "alwaysStrict": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "sourceMap": true, + "target": 1 + }, + "referencedMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "latestChangedDtsFile": "./lib/a.d.ts", + "size": 2016 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/a.ts +*refresh* /home/src/workspaces/project/src/c.ts +*refresh* /home/src/workspaces/project/src/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/a.ts +(computed .d.ts) /home/src/workspaces/project/src/c.ts +(stored at emit) /home/src/workspaces/project/src/b.ts diff --git a/testdata/baselines/reference/tsbuild/extends/configDir-template.js b/testdata/baselines/reference/tsbuild/extends/configDir-template.js new file mode 100644 index 0000000000..4cb0fb56f1 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/extends/configDir-template.js @@ -0,0 +1,130 @@ +currentDirectory::/home/src/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/configs/first/tsconfig.json] *new* +{ + "extends": "../second/tsconfig.json", + "include": ["${configDir}/src"], + "compilerOptions": { + "typeRoots": ["root1", "${configDir}/root2", "root3"], + "types": [], + }, +} +//// [/home/src/projects/configs/second/tsconfig.json] *new* +{ + "files": ["${configDir}/main.ts"], + "compilerOptions": { + "declarationDir": "${configDir}/decls", + "paths": { + "@myscope/*": ["${configDir}/types/*"], + }, + }, + "watchOptions": { + "excludeFiles": ["${configDir}/main.ts"], + }, +} +//// [/home/src/projects/myproject/main.ts] *new* +// some comment +export const y = 10; +import { x } from "@myscope/sometype"; +//// [/home/src/projects/myproject/tsconfig.json] *new* +{ + "extends": "../configs/first/tsconfig.json", + "compilerOptions": { + "declaration": true, + "outDir": "outDir", + "traceResolution": true, + }, +} +//// [/home/src/projects/myproject/types/sometype.ts] *new* +export const x = 10; + +tsgo --b --explainFiles --v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'outDir/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. +Module name '@myscope/sometype', matched pattern '@myscope/*'. +Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. +Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. +======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +types/sometype.ts + Imported via "@myscope/sometype" from file 'main.ts' +main.ts + Part of 'files' list in tsconfig.json +//// [/home/src/projects/myproject/decls/main.d.ts] *new* +export declare const y = 10; + +//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *new* +export declare const x = 10; + +//// [/home/src/projects/myproject/outDir/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +// some comment +exports.y = 10; + +//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../main.ts"]} +//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../main.ts" + ], + "original": "../main.ts" + } + ], + "size": 49 +} +//// [/home/src/projects/myproject/outDir/types/sometype.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/myproject/types/sometype.ts +*refresh* /home/src/projects/myproject/main.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js b/testdata/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js new file mode 100644 index 0000000000..be781f4bb3 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js @@ -0,0 +1,114 @@ +currentDirectory::/users/user/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true } +} +//// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] *new* +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} +//// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] -> /users/user/projects/myconfigs/node_modules/@something/tsconfig-node *new* +//// [/users/user/projects/myproject/src/index.ts] *new* +// some comment +export const x = 10; +//// [/users/user/projects/myproject/src/tsconfig.json] *new* +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} + +tsgo -b src --extendedDiagnostics +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/users/user/projects/myproject/src/index.d.ts] *new* +export declare const x = 10; + +//// [/users/user/projects/myproject/src/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"removeComments":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "removeComments": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1134 +} + +src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /users/user/projects/myproject/src/index.ts +Signatures:: +(stored at emit) /users/user/projects/myproject/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/extends/when-building-project-uses-reference-and-both-extend-config-with-include.js b/testdata/baselines/reference/tsbuild/extends/when-building-project-uses-reference-and-both-extend-config-with-include.js new file mode 100644 index 0000000000..c0e99b3935 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/extends/when-building-project-uses-reference-and-both-extend-config-with-include.js @@ -0,0 +1,255 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/shared/index.ts] *new* +export const a: Unrestricted = 1; +//// [/home/src/workspaces/solution/shared/tsconfig-base.json] *new* +{ + "include": ["./typings-base/"], +} +//// [/home/src/workspaces/solution/shared/tsconfig.json] *new* +{ + "extends": "./tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": "..", + }, + "files": ["./index.ts"], +} +//// [/home/src/workspaces/solution/shared/typings-base/globals.d.ts] *new* +type Unrestricted = any; +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "references": [ + { "path": "./shared/tsconfig.json" }, + { "path": "./webpack/tsconfig.json" }, + ], + "files": [], +} +//// [/home/src/workspaces/solution/webpack/index.ts] *new* +export const b: Unrestricted = 1; +//// [/home/src/workspaces/solution/webpack/tsconfig.json] *new* +{ + "extends": "../shared/tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": "..", + }, + "files": ["./index.ts"], + "references": [{ "path": "../shared/tsconfig.json" }], +} + +tsgo --b webpack/tsconfig.json --v --listFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * shared/tsconfig.json + * webpack/tsconfig.json + +[HH:MM:SS AM] Project 'shared/tsconfig.json' is out of date because output file 'target-tsc-build/shared/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'shared/tsconfig.json'... + +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/shared/index.ts +/home/src/workspaces/solution/shared/typings-base/globals.d.ts +[HH:MM:SS AM] Project 'webpack/tsconfig.json' is out of date because output file 'target-tsc-build/webpack/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'webpack/tsconfig.json'... + +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/webpack/index.ts +/home/src/workspaces/solution/shared/typings-base/globals.d.ts +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/target-tsc-build/shared/index.d.ts] *new* +export declare const a: Unrestricted; + +//// [/home/src/workspaces/solution/target-tsc-build/shared/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 1; + +//// [/home/src/workspaces/solution/target-tsc-build/shared/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;","signature":"3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n","impliedNodeFormat":1},{"version":"0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/solution/target-tsc-build/shared/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../shared/index.ts", + "../../shared/typings-base/globals.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../shared/index.ts", + "../../shared/typings-base/globals.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../shared/index.ts", + "version": "038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;", + "signature": "3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;", + "signature": "3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../shared/typings-base/globals.d.ts", + "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "signature": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../.." + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1325 +} +//// [/home/src/workspaces/solution/target-tsc-build/webpack/index.d.ts] *new* +export declare const b: Unrestricted; + +//// [/home/src/workspaces/solution/target-tsc-build/webpack/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 1; + +//// [/home/src/workspaces/solution/target-tsc-build/webpack/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;","signature":"ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n","impliedNodeFormat":1},{"version":"0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/solution/target-tsc-build/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../webpack/index.ts", + "../../shared/typings-base/globals.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../webpack/index.ts", + "../../shared/typings-base/globals.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../webpack/index.ts", + "version": "55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;", + "signature": "ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;", + "signature": "ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../shared/typings-base/globals.d.ts", + "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "signature": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../.." + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1326 +} + +shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/shared/index.ts +*refresh* /home/src/workspaces/solution/shared/typings-base/globals.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/shared/index.ts + +webpack/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/webpack/index.ts +*refresh* /home/src/workspaces/solution/shared/typings-base/globals.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/webpack/index.ts diff --git a/testdata/baselines/reference/tsbuild/extends/when-building-solution-with-projects-extends-config-with-include.js b/testdata/baselines/reference/tsbuild/extends/when-building-solution-with-projects-extends-config-with-include.js new file mode 100644 index 0000000000..e23831d39a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/extends/when-building-solution-with-projects-extends-config-with-include.js @@ -0,0 +1,256 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/shared/index.ts] *new* +export const a: Unrestricted = 1; +//// [/home/src/workspaces/solution/shared/tsconfig-base.json] *new* +{ + "include": ["./typings-base/"], +} +//// [/home/src/workspaces/solution/shared/tsconfig.json] *new* +{ + "extends": "./tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": "..", + }, + "files": ["./index.ts"], +} +//// [/home/src/workspaces/solution/shared/typings-base/globals.d.ts] *new* +type Unrestricted = any; +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "references": [ + { "path": "./shared/tsconfig.json" }, + { "path": "./webpack/tsconfig.json" }, + ], + "files": [], +} +//// [/home/src/workspaces/solution/webpack/index.ts] *new* +export const b: Unrestricted = 1; +//// [/home/src/workspaces/solution/webpack/tsconfig.json] *new* +{ + "extends": "../shared/tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": "..", + }, + "files": ["./index.ts"], + "references": [{ "path": "../shared/tsconfig.json" }], +} + +tsgo --b --v --listFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * shared/tsconfig.json + * webpack/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'shared/tsconfig.json' is out of date because output file 'target-tsc-build/shared/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'shared/tsconfig.json'... + +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/shared/index.ts +/home/src/workspaces/solution/shared/typings-base/globals.d.ts +[HH:MM:SS AM] Project 'webpack/tsconfig.json' is out of date because output file 'target-tsc-build/webpack/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'webpack/tsconfig.json'... + +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/webpack/index.ts +/home/src/workspaces/solution/shared/typings-base/globals.d.ts +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/target-tsc-build/shared/index.d.ts] *new* +export declare const a: Unrestricted; + +//// [/home/src/workspaces/solution/target-tsc-build/shared/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 1; + +//// [/home/src/workspaces/solution/target-tsc-build/shared/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;","signature":"3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n","impliedNodeFormat":1},{"version":"0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/solution/target-tsc-build/shared/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../shared/index.ts", + "../../shared/typings-base/globals.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../shared/index.ts", + "../../shared/typings-base/globals.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../shared/index.ts", + "version": "038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;", + "signature": "3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "038419a8862a47ff75929bd3632cfaa0-export const a: Unrestricted = 1;", + "signature": "3d46c415eae6cd0e760bea3fa85ba3aa-export declare const a: Unrestricted;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../shared/typings-base/globals.d.ts", + "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "signature": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../.." + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1325 +} +//// [/home/src/workspaces/solution/target-tsc-build/webpack/index.d.ts] *new* +export declare const b: Unrestricted; + +//// [/home/src/workspaces/solution/target-tsc-build/webpack/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 1; + +//// [/home/src/workspaces/solution/target-tsc-build/webpack/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;","signature":"ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n","impliedNodeFormat":1},{"version":"0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/solution/target-tsc-build/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../webpack/index.ts", + "../../shared/typings-base/globals.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../webpack/index.ts", + "../../shared/typings-base/globals.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../webpack/index.ts", + "version": "55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;", + "signature": "ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "55323568c1e8cde378750e233962127b-export const b: Unrestricted = 1;", + "signature": "ab6809558636ca24521fe1a6d7861d37-export declare const b: Unrestricted;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../shared/typings-base/globals.d.ts", + "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "signature": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0818246edc003d659f6bac1bc37ad307-type Unrestricted = any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../.." + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1326 +} + +shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/shared/index.ts +*refresh* /home/src/workspaces/solution/shared/typings-base/globals.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/shared/index.ts + +webpack/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/webpack/index.ts +*refresh* /home/src/workspaces/solution/shared/typings-base/globals.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/webpack/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js new file mode 100644 index 0000000000..32bc36e59d --- /dev/null +++ b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js @@ -0,0 +1,659 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/bar.ts] *new* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); +//// [/home/src/workspaces/project/bundling.ts] *new* +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} +//// [/home/src/workspaces/project/global.d.ts] *new* +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} +//// [/home/src/workspaces/project/index.ts] *new* +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); +//// [/home/src/workspaces/project/lazyIndex.ts] *new* +export { default as bar } from './bar'; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, + "isolatedModules": true, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/obj/bar.d.ts] *new* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + +//// [/home/src/workspaces/project/obj/bundling.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LazyAction = exports.LazyModule = void 0; +class LazyModule { + importCallback; + constructor(importCallback) { + this.importCallback = importCallback; + } +} +exports.LazyModule = LazyModule; +class LazyAction { + constructor(_lazyModule, _getter) { + } +} +exports.LazyAction = LazyAction; + +//// [/home/src/workspaces/project/obj/index.d.ts] *new* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lazyBar = void 0; +const bundling_1 = require("./bundling"); +const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => __importStar(require('./lazyIndex')))); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* +export { default as bar } from './bar'; + +//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const bar_1 = require("./bar"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return __importDefault(bar_1).default; } }); + +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/bundling.ts +*refresh* /home/src/workspaces/project/global.d.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/bundling.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: () => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3070 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [1]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js new file mode 100644 index 0000000000..e00ab7efaa --- /dev/null +++ b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js @@ -0,0 +1,661 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/bar.ts] *new* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); +//// [/home/src/workspaces/project/bundling.ts] *new* +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} +//// [/home/src/workspaces/project/global.d.ts] *new* +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} +//// [/home/src/workspaces/project/index.ts] *new* +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); +//// [/home/src/workspaces/project/lazyIndex.ts] *new* +export { default as bar } from './bar'; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, + "isolatedModules": false, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/obj/bar.d.ts] *new* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + +//// [/home/src/workspaces/project/obj/bundling.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LazyAction = exports.LazyModule = void 0; +class LazyModule { + importCallback; + constructor(importCallback) { + this.importCallback = importCallback; + } +} +exports.LazyModule = LazyModule; +class LazyAction { + constructor(_lazyModule, _getter) { + } +} +exports.LazyAction = LazyAction; + +//// [/home/src/workspaces/project/obj/index.d.ts] *new* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lazyBar = void 0; +const bundling_1 = require("./bundling"); +const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => __importStar(require('./lazyIndex')))); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* +export { default as bar } from './bar'; + +//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const bar_1 = require("./bar"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return __importDefault(bar_1).default; } }); + +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/bundling.ts +*refresh* /home/src/workspaces/project/global.d.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/bundling.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: () => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/lazyIndex.js] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3070 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [1]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/lazyIndex.js] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js new file mode 100644 index 0000000000..b58b23c468 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -0,0 +1,1037 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/bar.ts] *new* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); +//// [/home/src/workspaces/project/bundling.ts] *new* +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} +//// [/home/src/workspaces/project/global.d.ts] *new* +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} +//// [/home/src/workspaces/project/index.ts] *new* +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); +//// [/home/src/workspaces/project/lazyIndex.ts] *new* +export { default as bar } from './bar';import { default as bar } from './bar'; +bar("hello"); +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, + "isolatedModules": true, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/obj/bar.d.ts] *new* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + +//// [/home/src/workspaces/project/obj/bundling.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LazyAction = exports.LazyModule = void 0; +class LazyModule { + importCallback; + constructor(importCallback) { + this.importCallback = importCallback; + } +} +exports.LazyModule = LazyModule; +class LazyAction { + constructor(_lazyModule, _getter) { + } +} +exports.LazyAction = LazyAction; + +//// [/home/src/workspaces/project/obj/index.d.ts] *new* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lazyBar = void 0; +const bundling_1 = require("./bundling"); +const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => __importStar(require('./lazyIndex')))); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* +export { default as bar } from './bar'; + +//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const bar_1 = require("./bar"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return __importDefault(bar_1).default; } }); +const bar_2 = __importDefault(require("./bar")); +(0, bar_2.default)("hello"); + +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3165 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/bundling.ts +*refresh* /home/src/workspaces/project/global.d.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/bundling.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +tsgo --b --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +lazyIndex.ts:2:5 - error TS2554: Expected 0 arguments, but got 1. + +2 bar("hello"); +   ~~~~~~~ + + +Found 1 error in lazyIndex.ts:2 + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: () => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"pos":83,"end":90,"code":2554,"category":1,"message":"Expected 0 arguments, but got 1."}]]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../lazyIndex.ts", + [ + { + "pos": 83, + "end": 90, + "code": 2554, + "category": 1, + "message": "Expected 0 arguments, but got 1." + } + ] + ] + ], + "size": 3253 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [1]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'obj/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-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});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-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});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3165 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [2]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +tsgo --b --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +lazyIndex.ts:2:5 - error TS2554: Expected 0 arguments, but got 1. + +2 bar("hello"); +   ~~~~~~~ + + +Found 1 error in lazyIndex.ts:2 + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: () => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"pos":83,"end":90,"code":2554,"category":1,"message":"Expected 0 arguments, but got 1."}]]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../lazyIndex.ts", + [ + { + "pos": 83, + "end": 90, + "code": 2554, + "category": 1, + "message": "Expected 0 arguments, but got 1." + } + ] + ] + ], + "size": 3253 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [3]:: Fix Error +//// [/home/src/workspaces/project/lazyIndex.ts] *modified* +export { default as bar } from './bar';import { default as bar } from './bar'; +bar(); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'obj/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/lazyIndex.js] *modified* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const bar_1 = require("./bar"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return __importDefault(bar_1).default; } }); +const bar_2 = __importDefault(require("./bar")); +(0, bar_2.default)(); + +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-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});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-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}","signature":"5e4757586f6f5d494b6763f1e808313a-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","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-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});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-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}", + "signature": "5e4757586f6f5d494b6763f1e808313a-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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3117 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/lazyIndex.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts diff --git a/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js b/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js new file mode 100644 index 0000000000..687612fe0b --- /dev/null +++ b/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js @@ -0,0 +1,467 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* +/// +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 {} +interface SymbolConstructor { + readonly species: symbol; + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/common/nominal.js] *new* +/** + * @template T, Name + * @typedef {T & {[Symbol.species]: Name}} Nominal + */ +module.exports = {}; +//// [/home/src/workspaces/solution/common/tsconfig.json] *new* +{ + "extends": "../tsconfig.base.json", + "compilerOptions": { + "composite": true, + }, + "include": ["nominal.js"], +} +//// [/home/src/workspaces/solution/sub-project-2/index.js] *new* +import { MyNominal } from '../sub-project/index'; + +const variable = { + key: /** @type {MyNominal} */('value'), +}; + +/** + * @return {keyof typeof variable} + */ +export function getVar() { + return 'key'; +} +//// [/home/src/workspaces/solution/sub-project-2/tsconfig.json] *new* +{ + "extends": "../tsconfig.base.json", + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "../sub-project" }, + ], + "include": ["./index.js"], +} +//// [/home/src/workspaces/solution/sub-project/index.js] *new* +import { Nominal } from '../common/nominal'; + +/** + * @typedef {Nominal} MyNominal + */ +//// [/home/src/workspaces/solution/sub-project/tsconfig.json] *new* +{ + "extends": "../tsconfig.base.json", + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "../common" }, + ], + "include": ["./index.js"], +} +//// [/home/src/workspaces/solution/tsconfig.base.json] *new* +{ + "compilerOptions": { + "skipLibCheck": true, + "rootDir": "./", + "outDir": "../lib", + "allowJs": true, + "checkJs": true, + "declaration": true, + }, +} +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "./sub-project" }, + { "path": "./sub-project-2" }, + ], + "include": [], +} + +tsgo --b +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +common/nominal.js:5:1 - error TS2309: An export assignment cannot be used in a module with other exported elements. + +5 module.exports = {}; +  ~~~~~~~~~~~~~~~~~~~ + +sub-project/index.js:1:10 - error TS2305: Module '"../../lib/common/nominal"' has no exported member 'Nominal'. + +1 import { Nominal } from '../common/nominal'; +   ~~~~~~~ + +sub-project-2/index.js:1:10 - error TS18042: 'MyNominal' is a type and cannot be imported in JavaScript files. Use 'import("../sub-project/index").MyNominal' in a JSDoc type annotation. + +1 import { MyNominal } from '../sub-project/index'; +   ~~~~~~~~~ + + +Found 3 errors in 3 files. + +Errors Files + 1 common/nominal.js:5 + 1 sub-project-2/index.js:1 + 1 sub-project/index.js:1 + +//// [/home/src/workspaces/lib/common/nominal.d.ts] *new* +export type Nominal = T & { + [Symbol.species]: Name; +}; +declare const _default: {}; +export = _default; + +//// [/home/src/workspaces/lib/common/nominal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * @template T, Name + * @typedef {T & {[Symbol.species]: Name}} Nominal + */ +export = {}; +/** + * @template T, Name + * @typedef {T & {[Symbol.species]: Name}} Nominal + */ +module.exports = {}; + +//// [/home/src/workspaces/lib/common/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../solution/common/nominal.js"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19075dfba5b2d593b761ed8d8cd526f-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};","signature":"de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n","impliedNodeFormat":1}],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"semanticDiagnosticsPerFile":[[2,[{"pos":80,"end":99,"code":2309,"category":1,"message":"An export assignment cannot be used in a module with other exported elements."}]]],"latestChangedDtsFile":"./nominal.d.ts"} +//// [/home/src/workspaces/lib/common/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../solution/common/nominal.js" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../../solution/common/nominal.js" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../solution/common/nominal.js", + "version": "a19075dfba5b2d593b761ed8d8cd526f-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};", + "signature": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a19075dfba5b2d593b761ed8d8cd526f-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};", + "signature": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "allowJs": true, + "checkJs": true, + "composite": true, + "declaration": true, + "outDir": "..", + "rootDir": "../../solution", + "skipLibCheck": true + }, + "semanticDiagnosticsPerFile": [ + [ + "../../solution/common/nominal.js", + [ + { + "pos": 80, + "end": 99, + "code": 2309, + "category": 1, + "message": "An export assignment cannot be used in a module with other exported elements." + } + ] + ] + ], + "latestChangedDtsFile": "./nominal.d.ts", + "size": 1606 +} +//// [/home/src/workspaces/lib/sub-project-2/index.d.ts] *new* +declare const variable: { + key: Nominal; +}; +/** + * @return {keyof typeof variable} + */ +export declare function getVar(): keyof typeof variable; +export {}; + +//// [/home/src/workspaces/lib/sub-project-2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getVar = getVar; +const index_1 = require("../sub-project/index"); +const variable = { + key: 'value', +}; +/** + * @return {keyof typeof variable} + */ +function getVar() { + return 'key'; +} + +//// [/home/src/workspaces/lib/sub-project-2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../common/nominal.d.ts","../sub-project/index.d.ts","../../solution/sub-project-2/index.js"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n","225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n",{"version":"db2a90e082fd17d65127bda69975a727-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nexport function getVar() {\n return 'key';\n}","signature":"f2cd6630b2dfa04d1fc92179f15d1647-declare const variable: {\n key: Nominal;\n};\n/**\n * @return {keyof typeof variable}\n */\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[[4,[{"pos":9,"end":18,"code":18042,"category":1,"message":"'MyNominal' is a type and cannot be imported in JavaScript files. Use 'import(\"../sub-project/index\").MyNominal' in a JSDoc type annotation."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/lib/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../solution/sub-project-2/index.js" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../common/nominal.d.ts", + "../sub-project/index.d.ts", + "../../solution/sub-project-2/index.js" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../common/nominal.d.ts", + "version": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", + "signature": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../sub-project/index.d.ts", + "version": "225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n", + "signature": "225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../solution/sub-project-2/index.js", + "version": "db2a90e082fd17d65127bda69975a727-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nexport function getVar() {\n return 'key';\n}", + "signature": "f2cd6630b2dfa04d1fc92179f15d1647-declare const variable: {\n key: Nominal;\n};\n/**\n * @return {keyof typeof variable}\n */\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "db2a90e082fd17d65127bda69975a727-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: /** @type {MyNominal} */('value'),\n};\n\n/**\n * @return {keyof typeof variable}\n */\nexport function getVar() {\n return 'key';\n}", + "signature": "f2cd6630b2dfa04d1fc92179f15d1647-declare const variable: {\n key: Nominal;\n};\n/**\n * @return {keyof typeof variable}\n */\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../common/nominal.d.ts" + ], + [ + "../sub-project/index.d.ts" + ] + ], + "options": { + "allowJs": true, + "checkJs": true, + "composite": true, + "declaration": true, + "outDir": "..", + "rootDir": "../../solution", + "skipLibCheck": true + }, + "referencedMap": { + "../sub-project/index.d.ts": [ + "../common/nominal.d.ts" + ], + "../../solution/sub-project-2/index.js": [ + "../sub-project/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../../solution/sub-project-2/index.js", + [ + { + "pos": 9, + "end": 18, + "code": 18042, + "category": 1, + "message": "'MyNominal' is a type and cannot be imported in JavaScript files. Use 'import(\"../sub-project/index\").MyNominal' in a JSDoc type annotation." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2322 +} +//// [/home/src/workspaces/lib/sub-project/index.d.ts] *new* +import { Nominal } from '../common/nominal'; +export type MyNominal = Nominal; +/** + * @typedef {Nominal} MyNominal + */ + +//// [/home/src/workspaces/lib/sub-project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const nominal_1 = require("../common/nominal"); +/** + * @typedef {Nominal} MyNominal + */ + +//// [/home/src/workspaces/lib/sub-project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../common/nominal.d.ts","../../solution/sub-project/index.js"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n",{"version":"00b7836eaf1e026f7764b7be6efcc8f5-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */","signature":"225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":9,"end":16,"code":2305,"category":1,"message":"Module '\"../../lib/common/nominal\"' has no exported member 'Nominal'."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/lib/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../solution/sub-project/index.js" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../common/nominal.d.ts", + "../../solution/sub-project/index.js" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../common/nominal.d.ts", + "version": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", + "signature": "de751e2539eb6f12413f7067ad0a0ef5-export type Nominal = T & {\n [Symbol.species]: Name;\n};\ndeclare const _default: {};\nexport = _default;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../solution/sub-project/index.js", + "version": "00b7836eaf1e026f7764b7be6efcc8f5-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */", + "signature": "225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "00b7836eaf1e026f7764b7be6efcc8f5-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */", + "signature": "225285a996cc5c4120877a377890d79e-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n/**\n * @typedef {Nominal} MyNominal\n */ \n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../common/nominal.d.ts" + ] + ], + "options": { + "allowJs": true, + "checkJs": true, + "composite": true, + "declaration": true, + "outDir": "..", + "rootDir": "../../solution", + "skipLibCheck": true + }, + "referencedMap": { + "../../solution/sub-project/index.js": [ + "../common/nominal.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../../solution/sub-project/index.js", + [ + { + "pos": 9, + "end": 16, + "code": 2305, + "category": 1, + "message": "Module '\"../../lib/common/nominal\"' has no exported member 'Nominal'." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 1877 +} + +common/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/common/nominal.js +Signatures:: +(stored at emit) /home/src/workspaces/solution/common/nominal.js + +sub-project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/lib/common/nominal.d.ts +*refresh* /home/src/workspaces/solution/sub-project/index.js +Signatures:: +(stored at emit) /home/src/workspaces/solution/sub-project/index.js + +sub-project-2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/lib/common/nominal.d.ts +*refresh* /home/src/workspaces/lib/sub-project/index.d.ts +*refresh* /home/src/workspaces/solution/sub-project-2/index.js +Signatures:: +(stored at emit) /home/src/workspaces/solution/sub-project-2/index.js diff --git a/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js b/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js new file mode 100644 index 0000000000..f3ec772bf0 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js @@ -0,0 +1,412 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/common/index.ts] *new* +import x = require("./obj.json"); +export = x; +//// [/home/src/workspaces/solution/common/obj.json] *new* +{ + "val": 42, +} +//// [/home/src/workspaces/solution/common/tsconfig.json] *new* +{ + "extends": "../tsconfig.base.json", + "compilerOptions": { + "outDir": null, + "composite": true, + }, + "include": ["index.ts", "obj.json"], +} +//// [/home/src/workspaces/solution/sub-project-2/index.js] *new* +import { m } from '../sub-project/index'; + +const variable = { + key: m, +}; + +export function getVar() { + return variable; +} +//// [/home/src/workspaces/solution/sub-project-2/tsconfig.json] *new* +{ + "extends": "../tsconfig.base.json", + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "../sub-project" }, + ], + "include": ["./index.js"], +} +//// [/home/src/workspaces/solution/sub-project/index.js] *new* +import mod from '../common'; + +export const m = mod; +//// [/home/src/workspaces/solution/sub-project/tsconfig.json] *new* +{ + "extends": "../tsconfig.base.json", + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "../common" }, + ], + "include": ["./index.js"], +} +//// [/home/src/workspaces/solution/tsconfig.base.json] *new* +{ + "compilerOptions": { + "skipLibCheck": true, + "rootDir": "./", + "outDir": "../out", + "allowJs": true, + "checkJs": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "declaration": true, + }, +} +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "./sub-project" }, + { "path": "./sub-project-2" }, + ], + "include": [], +} + +tsgo -b +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/out/sub-project-2/index.d.ts] *new* +export declare function getVar(): { + key: { + val: number; + }; +}; + +//// [/home/src/workspaces/out/sub-project-2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getVar = getVar; +const index_1 = require("../sub-project/index"); +const variable = { + key: index_1.m, +}; +function getVar() { + return variable; +} + +//// [/home/src/workspaces/out/sub-project-2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../sub-project/index.d.ts","../../solution/sub-project-2/index.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n",{"version":"56ecb5738c72a131a1514873df723721-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}","signature":"f6a0b1edad82fddabb5c98ad5da1660d-export declare function getVar(): {\n key: {\n val: number;\n };\n};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/out/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../solution/sub-project-2/index.js" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../sub-project/index.d.ts", + "../../solution/sub-project-2/index.js" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../sub-project/index.d.ts", + "version": "b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n", + "signature": "b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../solution/sub-project-2/index.js", + "version": "56ecb5738c72a131a1514873df723721-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}", + "signature": "f6a0b1edad82fddabb5c98ad5da1660d-export declare function getVar(): {\n key: {\n val: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "56ecb5738c72a131a1514873df723721-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}", + "signature": "f6a0b1edad82fddabb5c98ad5da1660d-export declare function getVar(): {\n key: {\n val: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../sub-project/index.d.ts" + ] + ], + "options": { + "allowJs": true, + "checkJs": true, + "composite": true, + "declaration": true, + "esModuleInterop": true, + "outDir": "..", + "rootDir": "../../solution", + "skipLibCheck": true + }, + "referencedMap": { + "../../solution/sub-project-2/index.js": [ + "../sub-project/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1580 +} +//// [/home/src/workspaces/out/sub-project/index.d.ts] *new* +export declare const m: { + val: number; +}; + +//// [/home/src/workspaces/out/sub-project/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const common_1 = __importDefault(require("../common")); +exports.m = common_1.default; + +//// [/home/src/workspaces/out/sub-project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../../solution/common/obj.json","../../solution/common/index.d.ts","../../solution/sub-project/index.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}"},"641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n",{"version":"4c69d0c670e9dc788b5e107f277aa8ab-import mod from '../common';\n\nexport const m = mod;","signature":"b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../solution","skipLibCheck":true},"referencedMap":[[3,1],[4,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/out/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../solution/sub-project/index.js" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../../solution/common/obj.json", + "../../solution/common/index.d.ts", + "../../solution/sub-project/index.js" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../solution/common/obj.json", + "version": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}", + "signature": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}", + "impliedNodeFormat": "None", + "original": { + "version": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}" + } + }, + { + "fileName": "../../solution/common/index.d.ts", + "version": "641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n", + "signature": "641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../solution/sub-project/index.js", + "version": "4c69d0c670e9dc788b5e107f277aa8ab-import mod from '../common';\n\nexport const m = mod;", + "signature": "b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4c69d0c670e9dc788b5e107f277aa8ab-import mod from '../common';\n\nexport const m = mod;", + "signature": "b13b16e08eb0717669fa55818828b2cb-export declare const m: {\n val: number;\n};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../solution/common/obj.json" + ], + [ + "../../solution/common/index.d.ts" + ] + ], + "options": { + "allowJs": true, + "checkJs": true, + "composite": true, + "declaration": true, + "esModuleInterop": true, + "outDir": "..", + "rootDir": "../../solution", + "skipLibCheck": true + }, + "referencedMap": { + "../../solution/common/index.d.ts": [ + "../../solution/common/obj.json" + ], + "../../solution/sub-project/index.js": [ + "../../solution/common/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1583 +} +//// [/home/src/workspaces/solution/common/index.d.ts] *new* +import x = require("./obj.json"); +export = x; + +//// [/home/src/workspaces/solution/common/index.js] *new* +"use strict"; +const x = require("./obj.json"); +module.exports = x; + +//// [/home/src/workspaces/solution/common/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./obj.json","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}"},{"version":"6d5621da1dbc82712844ae5e706b9295-import x = require(\"./obj.json\");\nexport = x;","signature":"641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"rootDir":"..","skipLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/solution/common/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./obj.json", + "./index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./obj.json", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./obj.json", + "version": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}", + "signature": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}", + "impliedNodeFormat": "None", + "original": { + "version": "d47747c9a3b20f363d6de91e2bd8ed62-{\n \"val\": 42,\n}" + } + }, + { + "fileName": "./index.ts", + "version": "6d5621da1dbc82712844ae5e706b9295-import x = require(\"./obj.json\");\nexport = x;", + "signature": "641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6d5621da1dbc82712844ae5e706b9295-import x = require(\"./obj.json\");\nexport = x;", + "signature": "641f5162aeaa035322008b19df89c663-import x = require(\"./obj.json\");\nexport = x;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./obj.json" + ] + ], + "options": { + "allowJs": true, + "checkJs": true, + "composite": true, + "declaration": true, + "esModuleInterop": true, + "rootDir": "..", + "skipLibCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./obj.json" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1381 +} + +common/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/common/obj.json +*refresh* /home/src/workspaces/solution/common/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/common/index.ts + +sub-project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/common/obj.json +*refresh* /home/src/workspaces/solution/common/index.d.ts +*refresh* /home/src/workspaces/solution/sub-project/index.js +Signatures:: +(stored at emit) /home/src/workspaces/solution/sub-project/index.js + +sub-project-2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/out/sub-project/index.d.ts +*refresh* /home/src/workspaces/solution/sub-project-2/index.js +Signatures:: +(stored at emit) /home/src/workspaces/solution/sub-project-2/index.js diff --git a/testdata/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js b/testdata/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js new file mode 100644 index 0000000000..7ae50ab8ed --- /dev/null +++ b/testdata/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js @@ -0,0 +1,397 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/globals.d.ts] *new* +interface SymbolConstructor { + (description?: string | number): symbol; +} +declare var Symbol: SymbolConstructor; +//// [/home/src/workspaces/project/src/hkt.ts] *new* +export interface HKT { } +//// [/home/src/workspaces/project/src/main.ts] *new* +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} +const x = 10; +type A = HKT[typeof sym]; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "rootDir": "src", + "incremental": true, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/hkt.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const sym = Symbol(); +const x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true,"impliedNodeFormat":1},"25b260df8f8588de5a4313af5c0708b6-export interface HKT { }","13c368d0fdd135ce10c5200ffd5a0664-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];"],"fileIdsList":[[3]],"options":{"rootDir":"./src"},"referencedMap":[[4,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/globals.d.ts", + "./src/hkt.ts", + "./src/main.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/globals.d.ts", + "./src/hkt.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/globals.d.ts", + "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "signature": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/hkt.ts", + "version": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", + "signature": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/main.ts", + "version": "13c368d0fdd135ce10c5200ffd5a0664-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];", + "signature": "13c368d0fdd135ce10c5200ffd5a0664-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];", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./src/hkt.ts" + ] + ], + "options": { + "rootDir": "./src" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/hkt.ts" + ] + }, + "size": 1484 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/globals.d.ts +*refresh* /home/src/workspaces/project/src/hkt.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: + + +Edit [0]:: incremental-declaration-doesnt-change +//// [/home/src/workspaces/project/src/main.ts] *modified* +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} + +type A = HKT[typeof sym]; + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const sym = Symbol(); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true,"impliedNodeFormat":1},"25b260df8f8588de5a4313af5c0708b6-export interface HKT { }",{"version":"5e9e1d9d8d08565504f44a7f2722c67d-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];","signature":"2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"rootDir":"./src"},"referencedMap":[[4,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/globals.d.ts", + "./src/hkt.ts", + "./src/main.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/globals.d.ts", + "./src/hkt.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/globals.d.ts", + "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "signature": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/hkt.ts", + "version": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", + "signature": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/main.ts", + "version": "5e9e1d9d8d08565504f44a7f2722c67d-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];", + "signature": "2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5e9e1d9d8d08565504f44a7f2722c67d-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];", + "signature": "2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/hkt.ts" + ] + ], + "options": { + "rootDir": "./src" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/hkt.ts" + ] + }, + "size": 1711 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/main.ts + + +Edit [1]:: incremental-declaration-doesnt-change +//// [/home/src/workspaces/project/src/main.ts] *modified* +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} + +type A = HKT[typeof sym];const x = 10; + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const sym = Symbol(); +const x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true,"impliedNodeFormat":1},"25b260df8f8588de5a4313af5c0708b6-export interface HKT { }",{"version":"1fd9f291f4caa2615b285320a7f52aa7-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];const x = 10;","signature":"2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"rootDir":"./src"},"referencedMap":[[4,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/globals.d.ts", + "./src/hkt.ts", + "./src/main.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/globals.d.ts", + "./src/hkt.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/globals.d.ts", + "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "signature": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "800d0d5c54984ef4a563773d1a81e0d2-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/hkt.ts", + "version": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", + "signature": "25b260df8f8588de5a4313af5c0708b6-export interface HKT { }", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/main.ts", + "version": "1fd9f291f4caa2615b285320a7f52aa7-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];const x = 10;", + "signature": "2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fd9f291f4caa2615b285320a7f52aa7-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];const x = 10;", + "signature": "2dcfbe0902e223e03ed6acd6292c35ce-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/hkt.ts" + ] + ], + "options": { + "rootDir": "./src" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/hkt.ts" + ] + }, + "size": 1724 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/main.ts diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js b/testdata/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js new file mode 100644 index 0000000000..4c0233d595 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js @@ -0,0 +1,214 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a/src/index.ts] *new* + +//// [/home/src/workspaces/project/a/tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true + } +} +//// [/home/src/workspaces/project/b/package.json] *new* +{ + "name": "b", + "type": "module" +} +//// [/home/src/workspaces/project/b/src/index.ts] *new* +import pg from "pg"; +pg.foo(); +//// [/home/src/workspaces/project/b/tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true, + "module": "node16" + }, +} +//// [/home/src/workspaces/project/node_modules/@types/pg/index.d.ts] *new* +export function foo(): void; +//// [/home/src/workspaces/project/node_modules/@types/pg/package.json] *new* +{ + "name": "@types/pg", + "types": "index.d.ts" +} + +tsgo -b a b --verbose --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * a/tsconfig.json + * b/tsconfig.json + +[HH:MM:SS AM] Project 'a/tsconfig.json' is out of date because output file 'a/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'a/tsconfig.json'... + +======== Resolving type reference directive 'pg', containing file '/home/src/workspaces/project/a/__inferred type names__.ts', root directory '/home/src/workspaces/project/a/node_modules/@types,/home/src/workspaces/project/node_modules/@types,/home/src/workspaces/node_modules/@types,/home/src/node_modules/@types,/home/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/home/src/workspaces/project/a/node_modules/@types, /home/src/workspaces/project/node_modules/@types, /home/src/workspaces/node_modules/@types, /home/src/node_modules/@types, /home/node_modules/@types, /node_modules/@types'. +Directory '/home/src/workspaces/project/a/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/home/src/workspaces/project/node_modules/@types/pg/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. +File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. +======== Type reference directive 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', primary: true. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +a/src/index.ts + Matched by default include pattern '**/*' +node_modules/@types/pg/index.d.ts + Entry point for implicit type library 'pg' +[HH:MM:SS AM] Project 'b/tsconfig.json' is out of date because output file 'b/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'b/tsconfig.json'... + +======== Resolving module 'pg' from '/home/src/workspaces/project/b/src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/workspaces/project/b/src/package.json' does not exist. +Found 'package.json' at '/home/src/workspaces/project/b/package.json'. +Loading module 'pg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/workspaces/project/b/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/b/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/b/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/b/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/home/src/workspaces/project/node_modules/@types/pg/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. +File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. +======== Module name 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. ======== +======== Resolving type reference directive 'pg', containing file '/home/src/workspaces/project/b/__inferred type names__.ts', root directory '/home/src/workspaces/project/b/node_modules/@types,/home/src/workspaces/project/node_modules/@types,/home/src/workspaces/node_modules/@types,/home/src/node_modules/@types,/home/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/home/src/workspaces/project/b/node_modules/@types, /home/src/workspaces/project/node_modules/@types, /home/src/workspaces/node_modules/@types, /home/src/node_modules/@types, /home/node_modules/@types, /node_modules/@types'. +Directory '/home/src/workspaces/project/b/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/home/src/workspaces/project/node_modules/@types/pg/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. +File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. +======== Type reference directive 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', primary: true. ======== +../../tslibs/TS/Lib/lib.es2022.full.d.ts + Default library for target 'ES2022' +node_modules/@types/pg/index.d.ts + Imported via "pg" from file 'b/src/index.ts' + Entry point for implicit type library 'pg' + File is CommonJS module because 'node_modules/@types/pg/package.json' does not have field "type" +b/src/index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'b/package.json' has field "type" with value "module" +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a/src/index.js] *new* + +//// [/home/src/workspaces/project/a/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./src/index.ts"]} +//// [/home/src/workspaces/project/a/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": "./src/index.ts" + } + ], + "size": 53 +} +//// [/home/src/workspaces/project/b/src/index.js] *new* +import pg from "pg"; +pg.foo(); + +//// [/home/src/workspaces/project/b/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./src/index.ts"]} +//// [/home/src/workspaces/project/b/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": "./src/index.ts" + } + ], + "size": 53 +} + +a/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a/src/index.ts +*refresh* /home/src/workspaces/project/node_modules/@types/pg/index.d.ts +Signatures:: + +b/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /home/src/workspaces/project/node_modules/@types/pg/index.d.ts +*refresh* /home/src/workspaces/project/b/src/index.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b a b --verbose --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * a/tsconfig.json + * b/tsconfig.json + +[HH:MM:SS AM] Project 'a/tsconfig.json' is up to date because newest input 'a/src/index.ts' is older than output 'a/src/index.js' + +[HH:MM:SS AM] Project 'b/tsconfig.json' is up to date because newest input 'b/src/index.ts' is older than output 'b/src/index.js' + + diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/resolution-from-d.ts-of-referenced-project.js b/testdata/baselines/reference/tsbuild/moduleResolution/resolution-from-d.ts-of-referenced-project.js new file mode 100644 index 0000000000..b429271e8e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleResolution/resolution-from-d.ts-of-referenced-project.js @@ -0,0 +1,290 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/common.d.ts] *new* +export type OnValue = (value: number) => void +//// [/home/src/workspaces/project/consumer/index.ts] *new* +import { ValueProducerDeclaration, ValueProducerFromTs } from "@producer" +declare let v: ValueProducerDeclaration; +// n is implicitly any because onValue is actually any (despite what the tooltip says) +v.onValue = (n) => { +} +// n is implicitly number as expected +declare let v2: ValueProducerFromTs; +v2.onValue = (n) => { +} +//// [/home/src/workspaces/project/consumer/tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true, + "module": "nodenext", + "moduleResolution": "nodenext", + "paths": { + "@producer": ["../producer/index"], + }, + }, + "references": [ + { "path": "../producer" }, + ], +} +//// [/home/src/workspaces/project/producer/in-js.d.ts] *new* +import { OnValue } from "@common" +export interface ValueProducerDeclaration { + onValue: OnValue; +} +//// [/home/src/workspaces/project/producer/index.ts] *new* +export { ValueProducerDeclaration } from "./in-js" +import { OnValue } from "@common" +export interface ValueProducerFromTs { + onValue: OnValue; +} +//// [/home/src/workspaces/project/producer/tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true, + "composite": true, + "module": "nodenext", + "moduleResolution": "nodenext", + "paths": { + "@common": ["../common.d.ts"], + }, + }, +} + +tsgo --b consumer --traceResolution -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * producer/tsconfig.json + * consumer/tsconfig.json + +[HH:MM:SS AM] Project 'producer/tsconfig.json' is out of date because output file 'producer/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'producer/tsconfig.json'... + +======== Resolving module '@common' from '/home/src/workspaces/project/producer/in-js.d.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +'paths' option is specified, looking for a pattern to match module name '@common'. +Module name '@common', matched pattern '@common'. +Trying substitution '../common.d.ts', candidate module location: '../common.d.ts'. +File '/home/src/workspaces/project/common.d.ts' exists - use it as a name resolution result. +======== Module name '@common' was successfully resolved to '/home/src/workspaces/project/common.d.ts'. ======== +======== Resolving module './in-js' from '/home/src/workspaces/project/producer/index.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/home/src/workspaces/project/producer/in-js', target file types: TypeScript, JavaScript, Declaration. +File '/home/src/workspaces/project/producer/in-js.ts' does not exist. +File '/home/src/workspaces/project/producer/in-js.tsx' does not exist. +File '/home/src/workspaces/project/producer/in-js.d.ts' exists - use it as a name resolution result. +======== Module name './in-js' was successfully resolved to '/home/src/workspaces/project/producer/in-js.d.ts'. ======== +======== Resolving module '@common' from '/home/src/workspaces/project/producer/index.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +'paths' option is specified, looking for a pattern to match module name '@common'. +Module name '@common', matched pattern '@common'. +Trying substitution '../common.d.ts', candidate module location: '../common.d.ts'. +File '/home/src/workspaces/project/common.d.ts' exists - use it as a name resolution result. +======== Module name '@common' was successfully resolved to '/home/src/workspaces/project/common.d.ts'. ======== +[HH:MM:SS AM] Project 'consumer/tsconfig.json' is out of date because output file 'consumer/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'consumer/tsconfig.json'... + +======== Resolving module '@producer' from '/home/src/workspaces/project/consumer/index.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +'paths' option is specified, looking for a pattern to match module name '@producer'. +Module name '@producer', matched pattern '@producer'. +Trying substitution '../producer/index', candidate module location: '../producer/index'. +Loading module as file / folder, candidate module location '/home/src/workspaces/project/producer/index', target file types: TypeScript, JavaScript, Declaration. +File '/home/src/workspaces/project/producer/index.ts' exists - use it as a name resolution result. +======== Module name '@producer' was successfully resolved to '/home/src/workspaces/project/producer/index.ts'. ======== +======== Resolving module './in-js' from '/home/src/workspaces/project/producer/index.ts'. ======== +Using compiler options of project reference redirect '/home/src/workspaces/project/producer/tsconfig.json'. +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/home/src/workspaces/project/producer/in-js', target file types: TypeScript, JavaScript, Declaration. +File '/home/src/workspaces/project/producer/in-js.ts' does not exist. +File '/home/src/workspaces/project/producer/in-js.tsx' does not exist. +File '/home/src/workspaces/project/producer/in-js.d.ts' exists - use it as a name resolution result. +======== Module name './in-js' was successfully resolved to '/home/src/workspaces/project/producer/in-js.d.ts'. ======== +======== Resolving module '@common' from '/home/src/workspaces/project/producer/index.ts'. ======== +Using compiler options of project reference redirect '/home/src/workspaces/project/producer/tsconfig.json'. +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +'paths' option is specified, looking for a pattern to match module name '@common'. +Module name '@common', matched pattern '@common'. +Trying substitution '../common.d.ts', candidate module location: '../common.d.ts'. +File '/home/src/workspaces/project/common.d.ts' exists - use it as a name resolution result. +======== Module name '@common' was successfully resolved to '/home/src/workspaces/project/common.d.ts'. ======== +======== Resolving module '@common' from '/home/src/workspaces/project/producer/in-js.d.ts'. ======== +Using compiler options of project reference redirect '/home/src/workspaces/project/producer/tsconfig.json'. +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +'paths' option is specified, looking for a pattern to match module name '@common'. +Module name '@common', matched pattern '@common'. +Trying substitution '../common.d.ts', candidate module location: '../common.d.ts'. +File '/home/src/workspaces/project/common.d.ts' exists - use it as a name resolution result. +======== Module name '@common' was successfully resolved to '/home/src/workspaces/project/common.d.ts'. ======== +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/consumer/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// n is implicitly any because onValue is actually any (despite what the tooltip says) +v.onValue = (n) => { +}; +v2.onValue = (n) => { +}; + +//// [/home/src/workspaces/project/consumer/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./index.ts"]} +//// [/home/src/workspaces/project/consumer/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": "./index.ts" + } + ], + "size": 49 +} +//// [/home/src/workspaces/project/producer/index.d.ts] *new* +export { ValueProducerDeclaration } from "./in-js"; +import { OnValue } from "@common"; +export interface ValueProducerFromTs { + onValue: OnValue; +} + +//// [/home/src/workspaces/project/producer/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/producer/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[3,4]],"fileNames":["lib.esnext.full.d.ts","../common.d.ts","./in-js.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"3a9dc77bc99684cad72839382a1f46cb-export type OnValue = (value: number) => void","7677191ddc32f3fe5aa447395ff0553a-import { OnValue } from \"@common\"\nexport interface ValueProducerDeclaration {\n onValue: OnValue;\n}",{"version":"3bb4cb1dd0764fa7c558b11ba246518a-export { ValueProducerDeclaration } from \"./in-js\"\nimport { OnValue } from \"@common\"\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}","signature":"846f65cd8d68b44b74d0de4a41b17245-export { ValueProducerDeclaration } from \"./in-js\";\nimport { OnValue } from \"@common\";\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}\n","impliedNodeFormat":1}],"fileIdsList":[[2],[2,3]],"options":{"composite":true,"module":199,"strict":true},"referencedMap":[[3,1],[4,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/project/producer/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./in-js.d.ts", + "./index.ts" + ], + "original": [ + 3, + 4 + ] + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "../common.d.ts", + "./in-js.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../common.d.ts", + "version": "3a9dc77bc99684cad72839382a1f46cb-export type OnValue = (value: number) => void", + "signature": "3a9dc77bc99684cad72839382a1f46cb-export type OnValue = (value: number) => void", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./in-js.d.ts", + "version": "7677191ddc32f3fe5aa447395ff0553a-import { OnValue } from \"@common\"\nexport interface ValueProducerDeclaration {\n onValue: OnValue;\n}", + "signature": "7677191ddc32f3fe5aa447395ff0553a-import { OnValue } from \"@common\"\nexport interface ValueProducerDeclaration {\n onValue: OnValue;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "3bb4cb1dd0764fa7c558b11ba246518a-export { ValueProducerDeclaration } from \"./in-js\"\nimport { OnValue } from \"@common\"\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}", + "signature": "846f65cd8d68b44b74d0de4a41b17245-export { ValueProducerDeclaration } from \"./in-js\";\nimport { OnValue } from \"@common\";\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3bb4cb1dd0764fa7c558b11ba246518a-export { ValueProducerDeclaration } from \"./in-js\"\nimport { OnValue } from \"@common\"\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}", + "signature": "846f65cd8d68b44b74d0de4a41b17245-export { ValueProducerDeclaration } from \"./in-js\";\nimport { OnValue } from \"@common\";\nexport interface ValueProducerFromTs {\n onValue: OnValue;\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../common.d.ts" + ], + [ + "../common.d.ts", + "./in-js.d.ts" + ] + ], + "options": { + "composite": true, + "module": 199, + "strict": true + }, + "referencedMap": { + "./in-js.d.ts": [ + "../common.d.ts" + ], + "./index.ts": [ + "../common.d.ts", + "./in-js.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1713 +} + +producer/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/common.d.ts +*refresh* /home/src/workspaces/project/producer/in-js.d.ts +*refresh* /home/src/workspaces/project/producer/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/producer/index.ts + +consumer/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/common.d.ts +*refresh* /home/src/workspaces/project/producer/in-js.d.ts +*refresh* /home/src/workspaces/project/producer/index.d.ts +*refresh* /home/src/workspaces/project/consumer/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js new file mode 100644 index 0000000000..45b4bc5898 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js @@ -0,0 +1,251 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/node_modules/pkg2] -> /user/username/projects/myproject/packages/pkg2 *new* +//// [/user/username/projects/myproject/packages/pkg1/index.ts] *new* +import type { TheNum } from 'pkg2' +export const theNum: TheNum = 42; +//// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "build", + "preserveSymlinks": true + }, + "references": [{ "path": "../pkg2" }] +} +//// [/user/username/projects/myproject/packages/pkg2/const.ts] *new* +export type TheNum = 42; +//// [/user/username/projects/myproject/packages/pkg2/index.ts] *new* +export type { TheNum } from 'const'; +//// [/user/username/projects/myproject/packages/pkg2/package.json] *new* +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} +//// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "paths": { + "const": ["./const"] + }, + "preserveSymlinks": true, + }, +} + +tsgo -b packages/pkg1 --verbose --traceResolution +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * packages/pkg2/tsconfig.json + * packages/pkg1/tsconfig.json + +[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... + +======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'const'. +Module name 'const', matched pattern 'const'. +Trying substitution './const', candidate module location: './const'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, JavaScript, Declaration, JSON. +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'. ======== +[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... + +======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +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. +Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules/@types' 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. +'package.json' does not have a 'peerDependencies' field. +======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' with Package ID 'pkg2@1.0.0'. ======== +======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'const'. +Module name 'const', matched pattern 'const'. +Trying substitution './const', candidate module location: './const'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, JavaScript, Declaration, JSON. +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'. ======== +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.theNum = void 0; +exports.theNum = 42; + +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../index.ts"]} +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../index.ts" + ], + "original": "../index.ts" + } + ], + "size": 50 +} +//// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] *new* +export type TheNum = 42; + +//// [/user/username/projects/myproject/packages/pkg2/build/const.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] *new* +export type { TheNum } from 'const'; + +//// [/user/username/projects/myproject/packages/pkg2/build/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';","signature":"1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../const.ts", + "../index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../const.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../const.ts", + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';", + "signature": "1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';", + "signature": "1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../const.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../index.ts": [ + "../const.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1364 +} + +packages/pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/const.ts +*refresh* /user/username/projects/myproject/packages/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/packages/pkg2/const.ts +(stored at emit) /user/username/projects/myproject/packages/pkg2/index.ts + +packages/pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.ts +*refresh* /user/username/projects/myproject/node_modules/pkg2/build/index.d.ts +*refresh* /user/username/projects/myproject/packages/pkg1/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js new file mode 100644 index 0000000000..3744082d9d --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js @@ -0,0 +1,252 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/node_modules/pkg2] -> /user/username/projects/myproject/packages/pkg2 *new* +//// [/user/username/projects/myproject/packages/pkg1/index.ts] *new* +import type { TheNum } from 'pkg2' +export const theNum: TheNum = 42; +//// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "build", + "preserveSymlinks": false + }, + "references": [{ "path": "../pkg2" }] +} +//// [/user/username/projects/myproject/packages/pkg2/const.ts] *new* +export type TheNum = 42; +//// [/user/username/projects/myproject/packages/pkg2/index.ts] *new* +export type { TheNum } from 'const'; +//// [/user/username/projects/myproject/packages/pkg2/package.json] *new* +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} +//// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "paths": { + "const": ["./const"] + }, + "preserveSymlinks": false, + }, +} + +tsgo -b packages/pkg1 --verbose --traceResolution +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * packages/pkg2/tsconfig.json + * packages/pkg1/tsconfig.json + +[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... + +======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'const'. +Module name 'const', matched pattern 'const'. +Trying substitution './const', candidate module location: './const'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, JavaScript, Declaration, JSON. +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'. ======== +[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... + +======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +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. +Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules/@types' 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. +'package.json' does not have a 'peerDependencies' field. +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@1.0.0'. ======== +======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'const'. +Module name 'const', matched pattern 'const'. +Trying substitution './const', candidate module location: './const'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, JavaScript, Declaration, JSON. +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'. ======== +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.theNum = void 0; +exports.theNum = 42; + +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../index.ts"]} +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../index.ts" + ], + "original": "../index.ts" + } + ], + "size": 50 +} +//// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] *new* +export type TheNum = 42; + +//// [/user/username/projects/myproject/packages/pkg2/build/const.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] *new* +export type { TheNum } from 'const'; + +//// [/user/username/projects/myproject/packages/pkg2/build/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';","signature":"1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../const.ts", + "../index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../const.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../const.ts", + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';", + "signature": "1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0b8e978a1e274cdc446fbbcbc9e78724-export type { TheNum } from 'const';", + "signature": "1a74e021c93cb748502ffc92156e3427-export type { TheNum } from 'const';\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../const.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../index.ts": [ + "../const.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1364 +} + +packages/pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/const.ts +*refresh* /user/username/projects/myproject/packages/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/packages/pkg2/const.ts +(stored at emit) /user/username/projects/myproject/packages/pkg2/index.ts + +packages/pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/build/index.d.ts +*refresh* /user/username/projects/myproject/packages/pkg1/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/shared-resolution-should-not-report-error.js b/testdata/baselines/reference/tsbuild/moduleResolution/shared-resolution-should-not-report-error.js new file mode 100644 index 0000000000..d66533dcd3 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleResolution/shared-resolution-should-not-report-error.js @@ -0,0 +1,262 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/node_modules/a] -> /home/src/workspaces/project/packages/a *new* +//// [/home/src/workspaces/project/packages/a/index.js] *new* +export const a = 'a'; +//// [/home/src/workspaces/project/packages/a/package.json] *new* +{ + "name": "a", + "version": "0.0.0", + "type": "module", + "exports": { + ".": { + "types": "./types/index.d.ts", + "default": "./index.js" + } + } +} +//// [/home/src/workspaces/project/packages/a/test/index.js] *new* +import 'a'; +//// [/home/src/workspaces/project/packages/a/tsconfig.json] *new* +{ + "compilerOptions": { + "checkJs": true, + "composite": true, + "declaration": true, + "emitDeclarationOnly": true, + "module": "nodenext", + "outDir": "types", + }, +} +//// [/home/src/workspaces/project/packages/b/index.js] *new* +export { a } from 'a'; +//// [/home/src/workspaces/project/packages/b/package.json] *new* +{ + "name": "b", + "version": "0.0.0", + "type": "module" +} +//// [/home/src/workspaces/project/packages/b/tsconfig.json] *new* +{ +"references": [{ "path": "../a" }], + "compilerOptions": { + "checkJs": true, + "module": "nodenext", + "noEmit": true, + "noImplicitAny": true, + }, +} + +tsgo -b packages/b --verbose --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * packages/a/tsconfig.json + * packages/b/tsconfig.json + +[HH:MM:SS AM] Project 'packages/a/tsconfig.json' is out of date because output file 'packages/a/types/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/a/tsconfig.json'... + +======== Resolving module 'a' from '/home/src/workspaces/project/packages/a/test/index.js'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/workspaces/project/packages/a/test/package.json' does not exist. +Found 'package.json' at '/home/src/workspaces/project/packages/a/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './types/index.d.ts'. +File '/home/src/workspaces/project/packages/a/types/index.d.ts' does not exist. +Failed to resolve under condition 'types'. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './index.js'. +File name '/home/src/workspaces/project/packages/a/index.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/project/packages/a/index.ts' does not exist. +File '/home/src/workspaces/project/packages/a/index.tsx' does not exist. +File '/home/src/workspaces/project/packages/a/index.d.ts' does not exist. +File '/home/src/workspaces/project/packages/a/index.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'default'. +Exiting conditional exports. +======== Module name 'a' was successfully resolved to '/home/src/workspaces/project/packages/a/index.js' with Package ID 'a/index.js@0.0.0'. ======== +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +packages/a/index.js + Matched by default include pattern '**/*' + Imported via 'a' from file 'packages/a/test/index.js' with packageId 'a/index.js@0.0.0' + File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" +packages/a/test/index.js + Matched by default include pattern '**/*' + File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" +[HH:MM:SS AM] Project 'packages/b/tsconfig.json' is out of date because output file 'packages/b/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/b/tsconfig.json'... + +======== Resolving module 'a' from '/home/src/workspaces/project/packages/b/index.js'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +Found 'package.json' at '/home/src/workspaces/project/packages/b/package.json'. +Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/workspaces/project/packages/b/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/packages/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/packages/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/home/src/workspaces/project/node_modules/a/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './types/index.d.ts'. +File '/home/src/workspaces/project/node_modules/a/types/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/workspaces/project/node_modules/a/types/index.d.ts', result '/home/src/workspaces/project/packages/a/types/index.d.ts'. +======== Module name 'a' was successfully resolved to '/home/src/workspaces/project/packages/a/types/index.d.ts' with Package ID 'a/types/index.d.ts@0.0.0'. ======== +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +packages/a/types/index.d.ts + Imported via 'a' from file 'packages/b/index.js' with packageId 'a/types/index.d.ts@0.0.0' + File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" +packages/b/index.js + Matched by default include pattern '**/*' + File is ECMAScript module because 'packages/b/package.json' has field "type" with value "module" +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/packages/a/types/index.d.ts] *new* +export declare const a = "a"; + +//// [/home/src/workspaces/project/packages/a/types/test/index.d.ts] *new* +import 'a'; + +//// [/home/src/workspaces/project/packages/a/types/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.esnext.full.d.ts","../index.js","../test/index.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';","signature":"410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n","impliedNodeFormat":99},{"version":"25c2781885c8232d7ba0f67afa33aa44-import 'a';","signature":"518d564eba22abfaf340ce3ae18a4763-import 'a';\n","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"checkJs":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"module":199,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./test/index.d.ts"} +//// [/home/src/workspaces/project/packages/a/types/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../index.js", + "../test/index.js" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "../index.js", + "../test/index.js" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.js", + "version": "fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';", + "signature": "410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';", + "signature": "410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "../test/index.js", + "version": "25c2781885c8232d7ba0f67afa33aa44-import 'a';", + "signature": "518d564eba22abfaf340ce3ae18a4763-import 'a';\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "25c2781885c8232d7ba0f67afa33aa44-import 'a';", + "signature": "518d564eba22abfaf340ce3ae18a4763-import 'a';\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "../index.js" + ] + ], + "options": { + "checkJs": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "module": 199, + "outDir": "./" + }, + "referencedMap": { + "../test/index.js": [ + "../index.js" + ] + }, + "latestChangedDtsFile": "./test/index.d.ts", + "size": 1416 +} +//// [/home/src/workspaces/project/packages/b/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./index.js"]} +//// [/home/src/workspaces/project/packages/b/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.js" + ], + "original": "./index.js" + } + ], + "size": 49 +} + +packages/a/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/packages/a/index.js +*refresh* /home/src/workspaces/project/packages/a/test/index.js +Signatures:: +(stored at emit) /home/src/workspaces/project/packages/a/index.js +(stored at emit) /home/src/workspaces/project/packages/a/test/index.js + +packages/b/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/packages/a/types/index.d.ts +*refresh* /home/src/workspaces/project/packages/b/index.js +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js b/testdata/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js new file mode 100644 index 0000000000..814527f39e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js @@ -0,0 +1,236 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/packages/pkg1.tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "typeRoots": ["./typeroot1"] + }, + "files": ["./pkg1_index.ts"], +} +//// [/home/src/workspaces/project/packages/pkg1_index.ts] *new* +export const theNum: TheNum = "type1"; +//// [/home/src/workspaces/project/packages/pkg2.tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "typeRoots": ["./typeroot2"] + }, + "files": ["./pkg2_index.ts"], +} +//// [/home/src/workspaces/project/packages/pkg2_index.ts] *new* +export const theNum: TheNum2 = "type2"; +//// [/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts] *new* +declare type TheNum = "type1"; +//// [/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts] *new* +declare type TheNum2 = "type2"; + +tsgo -b packages/pkg1.tsconfig.json packages/pkg2.tsconfig.json --verbose --traceResolution +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * packages/pkg1.tsconfig.json + * packages/pkg2.tsconfig.json + +[HH:MM:SS AM] Project 'packages/pkg1.tsconfig.json' is out of date because output file 'packages/pkg1.tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg1.tsconfig.json'... + +======== Resolving type reference directive 'sometype', containing file '/home/src/workspaces/project/packages/__inferred type names__.ts', root directory '/home/src/workspaces/project/packages/typeroot1'. ======== +Resolving with primary search path '/home/src/workspaces/project/packages/typeroot1'. +File '/home/src/workspaces/project/packages/typeroot1/sometype.d.ts' does not exist. +File '/home/src/workspaces/project/packages/typeroot1/sometype/package.json' does not exist. +File '/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts', result '/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts', primary: true. ======== +[HH:MM:SS AM] Project 'packages/pkg2.tsconfig.json' is out of date because output file 'packages/pkg2.tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg2.tsconfig.json'... + +======== Resolving type reference directive 'sometype', containing file '/home/src/workspaces/project/packages/__inferred type names__.ts', root directory '/home/src/workspaces/project/packages/typeroot2'. ======== +Resolving with primary search path '/home/src/workspaces/project/packages/typeroot2'. +File '/home/src/workspaces/project/packages/typeroot2/sometype.d.ts' does not exist. +File '/home/src/workspaces/project/packages/typeroot2/sometype/package.json' does not exist. +File '/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts', result '/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts', primary: true. ======== +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/packages/pkg1.tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./pkg1_index.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f4662ef3bd793790375f811e7f7d599f-export const theNum: TheNum = \"type1\";","signature":"dea6d3f907d93004db9004d6cea5698d-export declare const theNum: TheNum;\n","impliedNodeFormat":1},{"version":"74a6031362359bba204461bbf64bca2c-declare type TheNum = \"type1\";","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./pkg1_index.d.ts"} +//// [/home/src/workspaces/project/packages/pkg1.tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg1_index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg1_index.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg1_index.ts", + "version": "f4662ef3bd793790375f811e7f7d599f-export const theNum: TheNum = \"type1\";", + "signature": "dea6d3f907d93004db9004d6cea5698d-export declare const theNum: TheNum;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f4662ef3bd793790375f811e7f7d599f-export const theNum: TheNum = \"type1\";", + "signature": "dea6d3f907d93004db9004d6cea5698d-export declare const theNum: TheNum;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./typeroot1/sometype/index.d.ts", + "version": "74a6031362359bba204461bbf64bca2c-declare type TheNum = \"type1\";", + "signature": "74a6031362359bba204461bbf64bca2c-declare type TheNum = \"type1\";", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "74a6031362359bba204461bbf64bca2c-declare type TheNum = \"type1\";", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./pkg1_index.d.ts", + "size": 1295 +} +//// [/home/src/workspaces/project/packages/pkg1_index.d.ts] *new* +export declare const theNum: TheNum; + +//// [/home/src/workspaces/project/packages/pkg1_index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.theNum = void 0; +exports.theNum = "type1"; + +//// [/home/src/workspaces/project/packages/pkg2.tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./pkg2_index.ts","./typeroot2/sometype/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5520638613ac947a47797c35d3ad9c4b-export const theNum: TheNum2 = \"type2\";","signature":"becc5ed6bddc5e1124b92e180d59b5e3-export declare const theNum: TheNum2;\n","impliedNodeFormat":1},{"version":"660a36a739fc0e581ff911c4d5604b0e-declare type TheNum2 = \"type2\";","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./pkg2_index.d.ts"} +//// [/home/src/workspaces/project/packages/pkg2.tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg2_index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg2_index.ts", + "./typeroot2/sometype/index.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg2_index.ts", + "version": "5520638613ac947a47797c35d3ad9c4b-export const theNum: TheNum2 = \"type2\";", + "signature": "becc5ed6bddc5e1124b92e180d59b5e3-export declare const theNum: TheNum2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5520638613ac947a47797c35d3ad9c4b-export const theNum: TheNum2 = \"type2\";", + "signature": "becc5ed6bddc5e1124b92e180d59b5e3-export declare const theNum: TheNum2;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./typeroot2/sometype/index.d.ts", + "version": "660a36a739fc0e581ff911c4d5604b0e-declare type TheNum2 = \"type2\";", + "signature": "660a36a739fc0e581ff911c4d5604b0e-declare type TheNum2 = \"type2\";", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "660a36a739fc0e581ff911c4d5604b0e-declare type TheNum2 = \"type2\";", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./pkg2_index.d.ts", + "size": 1298 +} +//// [/home/src/workspaces/project/packages/pkg2_index.d.ts] *new* +export declare const theNum: TheNum2; + +//// [/home/src/workspaces/project/packages/pkg2_index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.theNum = void 0; +exports.theNum = "type2"; + + +packages/pkg1.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/packages/pkg1_index.ts +*refresh* /home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/packages/pkg1_index.ts + +packages/pkg2.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/packages/pkg2_index.ts +*refresh* /home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/packages/pkg2_index.ts diff --git a/testdata/baselines/reference/tsbuild/moduleResolution/when-resolution-is-not-shared.js b/testdata/baselines/reference/tsbuild/moduleResolution/when-resolution-is-not-shared.js new file mode 100644 index 0000000000..6772e2211f --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleResolution/when-resolution-is-not-shared.js @@ -0,0 +1,274 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/node_modules/a] -> /home/src/workspaces/project/packages/a *new* +//// [/home/src/workspaces/project/packages/a/index.js] *new* +export const a = 'a'; +//// [/home/src/workspaces/project/packages/a/package.json] *new* +{ + "name": "a", + "version": "0.0.0", + "type": "module", + "exports": { + ".": { + "types": "./types/index.d.ts", + "default": "./index.js" + } + } +} +//// [/home/src/workspaces/project/packages/a/test/index.js] *new* +import 'a'; +//// [/home/src/workspaces/project/packages/a/tsconfig.json] *new* +{ + "compilerOptions": { + "checkJs": true, + "composite": true, + "declaration": true, + "emitDeclarationOnly": true, + "module": "nodenext", + "outDir": "types", + }, +} +//// [/home/src/workspaces/project/packages/b/index.js] *new* +export { a } from 'a'; +//// [/home/src/workspaces/project/packages/b/package.json] *new* +{ + "name": "b", + "version": "0.0.0", + "type": "module" +} +//// [/home/src/workspaces/project/packages/b/tsconfig.json] *new* +{ +"references": [{ "path": "../a" }], + "compilerOptions": { + "checkJs": true, + "module": "nodenext", + "noEmit": true, + "noImplicitAny": true, + }, +} + +tsgo -b packages/a --verbose --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * packages/a/tsconfig.json + +[HH:MM:SS AM] Project 'packages/a/tsconfig.json' is out of date because output file 'packages/a/types/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/a/tsconfig.json'... + +======== Resolving module 'a' from '/home/src/workspaces/project/packages/a/test/index.js'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/workspaces/project/packages/a/test/package.json' does not exist. +Found 'package.json' at '/home/src/workspaces/project/packages/a/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './types/index.d.ts'. +File '/home/src/workspaces/project/packages/a/types/index.d.ts' does not exist. +Failed to resolve under condition 'types'. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './index.js'. +File name '/home/src/workspaces/project/packages/a/index.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/project/packages/a/index.ts' does not exist. +File '/home/src/workspaces/project/packages/a/index.tsx' does not exist. +File '/home/src/workspaces/project/packages/a/index.d.ts' does not exist. +File '/home/src/workspaces/project/packages/a/index.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'default'. +Exiting conditional exports. +======== Module name 'a' was successfully resolved to '/home/src/workspaces/project/packages/a/index.js' with Package ID 'a/index.js@0.0.0'. ======== +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +packages/a/index.js + Matched by default include pattern '**/*' + Imported via 'a' from file 'packages/a/test/index.js' with packageId 'a/index.js@0.0.0' + File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" +packages/a/test/index.js + Matched by default include pattern '**/*' + File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/packages/a/types/index.d.ts] *new* +export declare const a = "a"; + +//// [/home/src/workspaces/project/packages/a/types/test/index.d.ts] *new* +import 'a'; + +//// [/home/src/workspaces/project/packages/a/types/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.esnext.full.d.ts","../index.js","../test/index.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';","signature":"410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n","impliedNodeFormat":99},{"version":"25c2781885c8232d7ba0f67afa33aa44-import 'a';","signature":"518d564eba22abfaf340ce3ae18a4763-import 'a';\n","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"checkJs":true,"composite":true,"emitDeclarationOnly":true,"declaration":true,"module":199,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./test/index.d.ts"} +//// [/home/src/workspaces/project/packages/a/types/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../index.js", + "../test/index.js" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "../index.js", + "../test/index.js" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.js", + "version": "fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';", + "signature": "410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "fb6f7bce1e97f6455fc2f6a3fc00ca67-export const a = 'a';", + "signature": "410f445844ca5e1f83239796f66520a1-export declare const a = \"a\";\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "../test/index.js", + "version": "25c2781885c8232d7ba0f67afa33aa44-import 'a';", + "signature": "518d564eba22abfaf340ce3ae18a4763-import 'a';\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "25c2781885c8232d7ba0f67afa33aa44-import 'a';", + "signature": "518d564eba22abfaf340ce3ae18a4763-import 'a';\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "../index.js" + ] + ], + "options": { + "checkJs": true, + "composite": true, + "emitDeclarationOnly": true, + "declaration": true, + "module": 199, + "outDir": "./" + }, + "referencedMap": { + "../test/index.js": [ + "../index.js" + ] + }, + "latestChangedDtsFile": "./test/index.d.ts", + "size": 1416 +} + +packages/a/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/packages/a/index.js +*refresh* /home/src/workspaces/project/packages/a/test/index.js +Signatures:: +(stored at emit) /home/src/workspaces/project/packages/a/index.js +(stored at emit) /home/src/workspaces/project/packages/a/test/index.js + + +Edit [0]:: build b + +tsgo -b packages/b --verbose --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * packages/a/tsconfig.json + * packages/b/tsconfig.json + +[HH:MM:SS AM] Project 'packages/a/tsconfig.json' is up to date because newest input 'packages/a/test/index.js' is older than output 'packages/a/types/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'packages/b/tsconfig.json' is out of date because output file 'packages/b/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/b/tsconfig.json'... + +======== Resolving module 'a' from '/home/src/workspaces/project/packages/b/index.js'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +Found 'package.json' at '/home/src/workspaces/project/packages/b/package.json'. +Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/workspaces/project/packages/b/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/packages/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/workspaces/project/packages/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/home/src/workspaces/project/node_modules/a/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './types/index.d.ts'. +File '/home/src/workspaces/project/node_modules/a/types/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/workspaces/project/node_modules/a/types/index.d.ts', result '/home/src/workspaces/project/packages/a/types/index.d.ts'. +======== Module name 'a' was successfully resolved to '/home/src/workspaces/project/packages/a/types/index.d.ts' with Package ID 'a/types/index.d.ts@0.0.0'. ======== +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +packages/a/types/index.d.ts + Imported via 'a' from file 'packages/b/index.js' with packageId 'a/types/index.d.ts@0.0.0' + File is ECMAScript module because 'packages/a/package.json' has field "type" with value "module" +packages/b/index.js + Matched by default include pattern '**/*' + File is ECMAScript module because 'packages/b/package.json' has field "type" with value "module" +//// [/home/src/workspaces/project/packages/b/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./index.js"]} +//// [/home/src/workspaces/project/packages/b/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.js" + ], + "original": "./index.js" + } + ], + "size": 49 +} + +packages/b/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/packages/a/types/index.d.ts +*refresh* /home/src/workspaces/project/packages/b/index.js +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js b/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js new file mode 100644 index 0000000000..26f491e365 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js @@ -0,0 +1,457 @@ +currentDirectory::/home/src/workspaces/packages +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/packages/src-dogs/dog.ts] *new* +import { DogConfig } from 'src-types'; +import { DOG_CONFIG } from './dogconfig.js'; + +export abstract class Dog { + + public static getCapabilities(): DogConfig { + return DOG_CONFIG; + } +} +//// [/home/src/workspaces/packages/src-dogs/dogconfig.ts] *new* +import { DogConfig } from 'src-types'; + +export const DOG_CONFIG: DogConfig = { + name: 'Default dog', +}; +//// [/home/src/workspaces/packages/src-dogs/index.ts] *new* +export * from 'src-types'; +export * from './lassie/lassiedog.js'; +//// [/home/src/workspaces/packages/src-dogs/lassie/lassieconfig.ts] *new* +import { DogConfig } from 'src-types'; + +export const LASSIE_CONFIG: DogConfig = { name: 'Lassie' }; +//// [/home/src/workspaces/packages/src-dogs/lassie/lassiedog.ts] *new* +import { Dog } from '../dog.js'; +import { LASSIE_CONFIG } from './lassieconfig.js'; + +export class LassieDog extends Dog { + protected static getDogConfig = () => LASSIE_CONFIG; +} +//// [/home/src/workspaces/packages/src-dogs/node_modules] -> /home/src/workspaces/packages *new* +//// [/home/src/workspaces/packages/src-dogs/package.json] *new* +{ + "type": "module", + "exports": "./index.js" +} +//// [/home/src/workspaces/packages/src-dogs/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "../src-types" }, + ], + "include": [ + "**/*", + ], +} +//// [/home/src/workspaces/packages/src-types/dogconfig.ts] *new* +export interface DogConfig { + name: string; +} +//// [/home/src/workspaces/packages/src-types/index.ts] *new* +export * from './dogconfig.js'; +//// [/home/src/workspaces/packages/src-types/node_modules] -> /home/src/workspaces/packages *new* +//// [/home/src/workspaces/packages/src-types/package.json] *new* +{ + "type": "module", + "exports": "./index.js" +} +//// [/home/src/workspaces/packages/src-types/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "composite": true, + }, + "include": [ + "**/*", + ], +} +//// [/home/src/workspaces/packages/tsconfig-base.json] *new* +{ + "compilerOptions": { + "declaration": true, + "module": "node16", + }, +} + +tsgo -b src-types src-dogs --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * src-types/tsconfig.json + * src-dogs/tsconfig.json + +[HH:MM:SS AM] Project 'src-types/tsconfig.json' is out of date because output file 'src-types/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'src-types/tsconfig.json'... + +[HH:MM:SS AM] Project 'src-dogs/tsconfig.json' is out of date because output file 'src-dogs/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'src-dogs/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/packages/src-dogs/dog.d.ts] *new* +import { DogConfig } from 'src-types'; +export declare abstract class Dog { + static getCapabilities(): DogConfig; +} + +//// [/home/src/workspaces/packages/src-dogs/dog.js] *new* +import { DOG_CONFIG } from './dogconfig.js'; +export class Dog { + static getCapabilities() { + return DOG_CONFIG; + } +} + +//// [/home/src/workspaces/packages/src-dogs/dogconfig.d.ts] *new* +import { DogConfig } from 'src-types'; +export declare const DOG_CONFIG: DogConfig; + +//// [/home/src/workspaces/packages/src-dogs/dogconfig.js] *new* +export const DOG_CONFIG = { + name: 'Default dog', +}; + +//// [/home/src/workspaces/packages/src-dogs/index.d.ts] *new* +export * from 'src-types'; +export * from './lassie/lassiedog.js'; + +//// [/home/src/workspaces/packages/src-dogs/index.js] *new* +export * from 'src-types'; +export * from './lassie/lassiedog.js'; + +//// [/home/src/workspaces/packages/src-dogs/lassie/lassieconfig.d.ts] *new* +import { DogConfig } from 'src-types'; +export declare const LASSIE_CONFIG: DogConfig; + +//// [/home/src/workspaces/packages/src-dogs/lassie/lassieconfig.js] *new* +export const LASSIE_CONFIG = { name: 'Lassie' }; + +//// [/home/src/workspaces/packages/src-dogs/lassie/lassiedog.d.ts] *new* +import { Dog } from '../dog.js'; +export declare class LassieDog extends Dog { + protected static getDogConfig: () => import("../index.js").DogConfig; +} + +//// [/home/src/workspaces/packages/src-dogs/lassie/lassiedog.js] *new* +import { Dog } from '../dog.js'; +import { LASSIE_CONFIG } from './lassieconfig.js'; +export class LassieDog extends Dog { + static getDogConfig = () => LASSIE_CONFIG; +} + +//// [/home/src/workspaces/packages/src-dogs/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[4,8]],"fileNames":["lib.es2022.full.d.ts","../src-types/dogconfig.d.ts","../src-types/index.d.ts","./dogconfig.ts","./dog.ts","./lassie/lassieconfig.ts","./lassie/lassiedog.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n","impliedNodeFormat":99},{"version":"3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n","impliedNodeFormat":99},{"version":"a8c9e5169f1e05ea3fd4da563dc779b7-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};","signature":"55c35bfb192d26f7ab56e9447864b637-import { DogConfig } from 'src-types';\nexport declare const DOG_CONFIG: DogConfig;\n","impliedNodeFormat":99},{"version":"4ef4eb6072aff36903b09b7e1fa75eea-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}","signature":"1130c09f22ac69e13b25f0c42f3a9379-import { DogConfig } from 'src-types';\nexport declare abstract class Dog {\n static getCapabilities(): DogConfig;\n}\n","impliedNodeFormat":99},{"version":"37fa5afea0e398a9cc485818c902b71c-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };","signature":"2ef44fffbc07bb77765462af9f6df2a2-import { DogConfig } from 'src-types';\nexport declare const LASSIE_CONFIG: DogConfig;\n","impliedNodeFormat":99},{"version":"16f2a31a47590452f19f34bb56d0345f-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}","signature":"4e9a2f5bdce32a44b15cca0af7254c50-import { Dog } from '../dog.js';\nexport declare class LassieDog extends Dog {\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\n}\n","impliedNodeFormat":99},{"version":"099983d5c3c8b20233df02ca964ad12f-export * from 'src-types';\nexport * from './lassie/lassiedog.js';","signature":"0fb03f7b5b8061b0e2cd78a4131e3df7-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n","impliedNodeFormat":99}],"fileIdsList":[[3,4],[3],[3,7],[5,6],[2]],"options":{"composite":true,"declaration":true,"module":100},"referencedMap":[[5,1],[4,2],[8,3],[6,2],[7,4],[3,5]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/packages/src-dogs/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./dogconfig.ts", + "./dog.ts", + "./lassie/lassieconfig.ts", + "./lassie/lassiedog.ts", + "./index.ts" + ], + "original": [ + 4, + 8 + ] + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "../src-types/dogconfig.d.ts", + "../src-types/index.d.ts", + "./dogconfig.ts", + "./dog.ts", + "./lassie/lassieconfig.ts", + "./lassie/lassiedog.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src-types/dogconfig.d.ts", + "version": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", + "signature": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "../src-types/index.d.ts", + "version": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", + "signature": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./dogconfig.ts", + "version": "a8c9e5169f1e05ea3fd4da563dc779b7-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};", + "signature": "55c35bfb192d26f7ab56e9447864b637-import { DogConfig } from 'src-types';\nexport declare const DOG_CONFIG: DogConfig;\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "a8c9e5169f1e05ea3fd4da563dc779b7-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};", + "signature": "55c35bfb192d26f7ab56e9447864b637-import { DogConfig } from 'src-types';\nexport declare const DOG_CONFIG: DogConfig;\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./dog.ts", + "version": "4ef4eb6072aff36903b09b7e1fa75eea-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}", + "signature": "1130c09f22ac69e13b25f0c42f3a9379-import { DogConfig } from 'src-types';\nexport declare abstract class Dog {\n static getCapabilities(): DogConfig;\n}\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "4ef4eb6072aff36903b09b7e1fa75eea-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}", + "signature": "1130c09f22ac69e13b25f0c42f3a9379-import { DogConfig } from 'src-types';\nexport declare abstract class Dog {\n static getCapabilities(): DogConfig;\n}\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./lassie/lassieconfig.ts", + "version": "37fa5afea0e398a9cc485818c902b71c-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };", + "signature": "2ef44fffbc07bb77765462af9f6df2a2-import { DogConfig } from 'src-types';\nexport declare const LASSIE_CONFIG: DogConfig;\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "37fa5afea0e398a9cc485818c902b71c-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };", + "signature": "2ef44fffbc07bb77765462af9f6df2a2-import { DogConfig } from 'src-types';\nexport declare const LASSIE_CONFIG: DogConfig;\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./lassie/lassiedog.ts", + "version": "16f2a31a47590452f19f34bb56d0345f-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}", + "signature": "4e9a2f5bdce32a44b15cca0af7254c50-import { Dog } from '../dog.js';\nexport declare class LassieDog extends Dog {\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\n}\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "16f2a31a47590452f19f34bb56d0345f-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}", + "signature": "4e9a2f5bdce32a44b15cca0af7254c50-import { Dog } from '../dog.js';\nexport declare class LassieDog extends Dog {\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\n}\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./index.ts", + "version": "099983d5c3c8b20233df02ca964ad12f-export * from 'src-types';\nexport * from './lassie/lassiedog.js';", + "signature": "0fb03f7b5b8061b0e2cd78a4131e3df7-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "099983d5c3c8b20233df02ca964ad12f-export * from 'src-types';\nexport * from './lassie/lassiedog.js';", + "signature": "0fb03f7b5b8061b0e2cd78a4131e3df7-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "../src-types/index.d.ts", + "./dogconfig.ts" + ], + [ + "../src-types/index.d.ts" + ], + [ + "../src-types/index.d.ts", + "./lassie/lassiedog.ts" + ], + [ + "./dog.ts", + "./lassie/lassieconfig.ts" + ], + [ + "../src-types/dogconfig.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 100 + }, + "referencedMap": { + "./dog.ts": [ + "../src-types/index.d.ts", + "./dogconfig.ts" + ], + "./dogconfig.ts": [ + "../src-types/index.d.ts" + ], + "./index.ts": [ + "../src-types/index.d.ts", + "./lassie/lassiedog.ts" + ], + "./lassie/lassieconfig.ts": [ + "../src-types/index.d.ts" + ], + "./lassie/lassiedog.ts": [ + "./dog.ts", + "./lassie/lassieconfig.ts" + ], + "../src-types/index.d.ts": [ + "../src-types/dogconfig.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 3218 +} +//// [/home/src/workspaces/packages/src-types/dogconfig.d.ts] *new* +export interface DogConfig { + name: string; +} + +//// [/home/src/workspaces/packages/src-types/dogconfig.js] *new* +export {}; + +//// [/home/src/workspaces/packages/src-types/index.d.ts] *new* +export * from './dogconfig.js'; + +//// [/home/src/workspaces/packages/src-types/index.js] *new* +export * from './dogconfig.js'; + +//// [/home/src/workspaces/packages/src-types/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.es2022.full.d.ts","./dogconfig.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8b224befa78d5f27814a6eb4da56079-export interface DogConfig {\n name: string;\n}","signature":"a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n","impliedNodeFormat":99},{"version":"ac3890d1bb11659994f68e147333e98e-export * from './dogconfig.js';","signature":"3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"composite":true,"declaration":true,"module":100},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/packages/src-types/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./dogconfig.ts", + "./index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./dogconfig.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./dogconfig.ts", + "version": "d8b224befa78d5f27814a6eb4da56079-export interface DogConfig {\n name: string;\n}", + "signature": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "d8b224befa78d5f27814a6eb4da56079-export interface DogConfig {\n name: string;\n}", + "signature": "a71e22ebb89c8c5bea7cef8d090ace25-export interface DogConfig {\n name: string;\n}\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./index.ts", + "version": "ac3890d1bb11659994f68e147333e98e-export * from './dogconfig.js';", + "signature": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "ac3890d1bb11659994f68e147333e98e-export * from './dogconfig.js';", + "signature": "3c21c50da3a1aea8b6fafa5aa595f160-export * from './dogconfig.js';\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "./dogconfig.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 100 + }, + "referencedMap": { + "./index.ts": [ + "./dogconfig.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1440 +} + +src-types/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /home/src/workspaces/packages/src-types/dogconfig.ts +*refresh* /home/src/workspaces/packages/src-types/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/packages/src-types/dogconfig.ts +(stored at emit) /home/src/workspaces/packages/src-types/index.ts + +src-dogs/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /home/src/workspaces/packages/src-types/dogconfig.d.ts +*refresh* /home/src/workspaces/packages/src-types/index.d.ts +*refresh* /home/src/workspaces/packages/src-dogs/dogconfig.ts +*refresh* /home/src/workspaces/packages/src-dogs/dog.ts +*refresh* /home/src/workspaces/packages/src-dogs/lassie/lassieconfig.ts +*refresh* /home/src/workspaces/packages/src-dogs/lassie/lassiedog.ts +*refresh* /home/src/workspaces/packages/src-dogs/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/packages/src-dogs/dogconfig.ts +(stored at emit) /home/src/workspaces/packages/src-dogs/dog.ts +(stored at emit) /home/src/workspaces/packages/src-dogs/lassie/lassieconfig.ts +(stored at emit) /home/src/workspaces/packages/src-dogs/lassie/lassiedog.ts +(stored at emit) /home/src/workspaces/packages/src-dogs/index.ts diff --git a/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js b/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js new file mode 100644 index 0000000000..4e8b2324c4 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js @@ -0,0 +1,387 @@ +currentDirectory::/home/src/workspaces/packages +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* +/// +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 {} +interface SymbolConstructor { + readonly species: symbol; + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/packages/solution/common/nominal.ts] *new* +export declare type Nominal = T & { + [Symbol.species]: Name; +}; +//// [/home/src/workspaces/packages/solution/common/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "include": ["nominal.ts"] +} +//// [/home/src/workspaces/packages/solution/sub-project-2/index.ts] *new* +import { MyNominal } from '../sub-project/index'; + +const variable = { + key: 'value' as MyNominal, +}; + +export function getVar(): keyof typeof variable { + return 'key'; +} +//// [/home/src/workspaces/packages/solution/sub-project-2/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { "path": "../sub-project" } + ], + "include": ["./index.ts"] +} +//// [/home/src/workspaces/packages/solution/sub-project/index.ts] *new* +import { Nominal } from '../common/nominal'; + +export type MyNominal = Nominal; +//// [/home/src/workspaces/packages/solution/sub-project/tsconfig.json] *new* +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { "path": "../common" } + ], + "include": ["./index.ts"] +} +//// [/home/src/workspaces/packages/solution/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { "path": "./sub-project" }, + { "path": "./sub-project-2" } + ], + "include": [] +} +//// [/home/src/workspaces/packages/tsconfig.base.json] *new* +{ + "compilerOptions": { + "skipLibCheck": true, + "rootDir": "./", + "outDir": "lib" + } +} +//// [/home/src/workspaces/packages/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { "path": "./solution" }, + ], + "include": [], +} + +tsgo -b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * solution/common/tsconfig.json + * solution/sub-project/tsconfig.json + * solution/sub-project-2/tsconfig.json + * solution/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'solution/common/tsconfig.json' is out of date because output file 'lib/solution/common/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'solution/common/tsconfig.json'... + +[HH:MM:SS AM] Project 'solution/sub-project/tsconfig.json' is out of date because output file 'lib/solution/sub-project/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'solution/sub-project/tsconfig.json'... + +[HH:MM:SS AM] Project 'solution/sub-project-2/tsconfig.json' is out of date because output file 'lib/solution/sub-project-2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'solution/sub-project-2/tsconfig.json'... + +//// [/home/src/workspaces/packages/lib/solution/common/nominal.d.ts] *new* +export declare type Nominal = T & { + [Symbol.species]: Name; +}; + +//// [/home/src/workspaces/packages/lib/solution/common/nominal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/packages/lib/solution/common/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../../solution/common/nominal.ts"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6da5023bc256e774f9366f88c712bfc1-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};","signature":"5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"latestChangedDtsFile":"./nominal.d.ts"} +//// [/home/src/workspaces/packages/lib/solution/common/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../solution/common/nominal.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../../../solution/common/nominal.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../solution/common/nominal.ts", + "version": "6da5023bc256e774f9366f88c712bfc1-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};", + "signature": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6da5023bc256e774f9366f88c712bfc1-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};", + "signature": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "../..", + "rootDir": "../../..", + "skipLibCheck": true + }, + "latestChangedDtsFile": "./nominal.d.ts", + "size": 1347 +} +//// [/home/src/workspaces/packages/lib/solution/sub-project-2/index.d.ts] *new* +import { MyNominal } from '../sub-project/index'; +declare const variable: { + key: MyNominal; +}; +export declare function getVar(): keyof typeof variable; +export {}; + +//// [/home/src/workspaces/packages/lib/solution/sub-project-2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getVar = getVar; +const variable = { + key: 'value', +}; +function getVar() { + return 'key'; +} + +//// [/home/src/workspaces/packages/lib/solution/sub-project-2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../common/nominal.d.ts","../sub-project/index.d.ts","../../../solution/sub-project-2/index.ts"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n",{"version":"8d7f0cd34ff9cb954b00662137820b98-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}","signature":"d3fc4bf12d5f8dfcac4dd45791e378ef-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"referencedMap":[[3,1],[4,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/packages/lib/solution/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../solution/sub-project-2/index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../common/nominal.d.ts", + "../sub-project/index.d.ts", + "../../../solution/sub-project-2/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../common/nominal.d.ts", + "version": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "signature": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../sub-project/index.d.ts", + "version": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../solution/sub-project-2/index.ts", + "version": "8d7f0cd34ff9cb954b00662137820b98-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}", + "signature": "d3fc4bf12d5f8dfcac4dd45791e378ef-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8d7f0cd34ff9cb954b00662137820b98-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}", + "signature": "d3fc4bf12d5f8dfcac4dd45791e378ef-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../common/nominal.d.ts" + ], + [ + "../sub-project/index.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "../..", + "rootDir": "../../..", + "skipLibCheck": true + }, + "referencedMap": { + "../sub-project/index.d.ts": [ + "../common/nominal.d.ts" + ], + "../../../solution/sub-project-2/index.ts": [ + "../sub-project/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1893 +} +//// [/home/src/workspaces/packages/lib/solution/sub-project/index.d.ts] *new* +import { Nominal } from '../common/nominal'; +export type MyNominal = Nominal; + +//// [/home/src/workspaces/packages/lib/solution/sub-project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/packages/lib/solution/sub-project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../common/nominal.d.ts","../../../solution/sub-project/index.ts"],"fileInfos":[{"version":"24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n",{"version":"17fb8188dac0968c390031165ecd45b6-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;","signature":"ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/packages/lib/solution/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../solution/sub-project/index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../common/nominal.d.ts", + "../../../solution/sub-project/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "24b4796cd50d1a9aabad1583878c494d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n readonly species: symbol;\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../common/nominal.d.ts", + "version": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "signature": "5e7f6e0ebb82be49de355c8db93969fe-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../solution/sub-project/index.ts", + "version": "17fb8188dac0968c390031165ecd45b6-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;", + "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "17fb8188dac0968c390031165ecd45b6-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;", + "signature": "ba931f9684d9e8eb38e02da33050dc55-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../common/nominal.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "../..", + "rootDir": "../../..", + "skipLibCheck": true + }, + "referencedMap": { + "../../../solution/sub-project/index.ts": [ + "../common/nominal.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1563 +} + +solution/common/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/packages/solution/common/nominal.ts +Signatures:: +(stored at emit) /home/src/workspaces/packages/solution/common/nominal.ts + +solution/sub-project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/packages/lib/solution/common/nominal.d.ts +*refresh* /home/src/workspaces/packages/solution/sub-project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/packages/solution/sub-project/index.ts + +solution/sub-project-2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/packages/lib/solution/common/nominal.d.ts +*refresh* /home/src/workspaces/packages/lib/solution/sub-project/index.d.ts +*refresh* /home/src/workspaces/packages/solution/sub-project-2/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/packages/solution/sub-project-2/index.ts diff --git a/testdata/baselines/reference/tsbuild/noCheck/dts-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noCheck/dts-errors-with-incremental.js new file mode 100644 index 0000000000..92ec8ba77d --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noCheck/dts-errors-with-incremental.js @@ -0,0 +1,1485 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": true + } +} + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1810 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: no change + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1307 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = class { private p = 10; }; + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1806 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [7]:: no change + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [8]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1753 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1303 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [10]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/c.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/c.ts + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = class { private p = 10; }; + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 2114 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1611 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [14]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [15]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [16]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/dts-errors.js b/testdata/baselines/reference/tsbuild/noCheck/dts-errors.js new file mode 100644 index 0000000000..9a6e45162e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noCheck/dts-errors.js @@ -0,0 +1,909 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": false + } +} + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 88 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 74 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [3]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 54 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [5]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = class { private p = 10; }; + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 88 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [8]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 68 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 74 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [10]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 54 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 85, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = class { private p = 10; }; + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 97 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +*not cached* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 83 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +*not cached* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [14]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 85, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [15]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [16]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noCheck/semantic-errors-with-incremental.js new file mode 100644 index 0000000000..3b59a18d15 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noCheck/semantic-errors-with-incremental.js @@ -0,0 +1,1283 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a: number = "hello"; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": true + } +} + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1311 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1307 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a: number = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1307 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [7]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [8]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello"; +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1398 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1303 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [10]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/c.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/c.ts + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a: number = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1615 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1611 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [14]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [15]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [16]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/semantic-errors.js b/testdata/baselines/reference/tsbuild/noCheck/semantic-errors.js new file mode 100644 index 0000000000..6f06302143 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noCheck/semantic-errors.js @@ -0,0 +1,722 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a: number = "hello"; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": false + } +} + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 74 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'a.js' + + + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [3]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 54 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [5]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a: number = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 74 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [8]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello"; +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts"],"semanticErrors":true} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 76, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 74 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [10]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 54 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 85, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a: number = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 83 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +*not cached* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +*not cached* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [14]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 85, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [15]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [16]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noCheck/syntax-errors-with-incremental.js new file mode 100644 index 0000000000..de8cd5cf35 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noCheck/syntax-errors-with-incremental.js @@ -0,0 +1,1345 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = "hello +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": true + } +} + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1318 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: no change + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1307 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1314 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [7]:: no change + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [8]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1294 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1303 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [10]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/c.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/c.ts + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1622 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1611 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [14]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [15]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [16]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noCheck/syntax-errors.js b/testdata/baselines/reference/tsbuild/noCheck/syntax-errors.js new file mode 100644 index 0000000000..fdfe1f516c --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noCheck/syntax-errors.js @@ -0,0 +1,854 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = "hello +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": false + } +} + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 88 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 74 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [3]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 54 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [5]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 88 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [8]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 68 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 74 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [10]:: No Change run with checking + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 54 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'c.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 85, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello + +tsgo -b -v --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 97 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +*not cached* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":["./a.ts","./b.ts","./c.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 83 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +*not cached* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [14]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts","./b.ts","./c.ts"],"semanticErrors":true} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + }, + { + "files": [ + "./c.ts" + ], + "original": "./c.ts" + } + ], + "size": 85, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: + + +Edit [15]:: no change + +tsgo -b -v --noCheck +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [16]:: No Change run with checking + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-composite.js b/testdata/baselines/reference/tsbuild/noEmit/changes-composite.js new file mode 100644 index 0000000000..5972225167 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/changes-composite.js @@ -0,0 +1,1661 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true } +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/class.d.ts] *new* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* +import { classC } from './class'; +export declare class indirectClass { + classC: classC; +} + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* +export declare function writeLog(s: string): void; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* +declare function someFunc(arguments: boolean, ...rest: any[]): void; + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", + "size": 2590 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/class.ts +(stored at emit) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts + + +Edit [0]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [2]:: Introduce error but still noEmit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts","emitSignatures":[[2,"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|Dts", + 2 + ], + [ + "./src/directUse.ts", + "Dts", + [ + 4 + ] + ], + [ + "./src/indirectClass.ts", + "Js|Dts", + 3 + ], + [ + "./src/indirectUse.ts", + "Dts", + [ + 5 + ] + ] + ], + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", + "emitSignatures": [ + { + "file": "./src/class.ts", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "original": [ + 2, + "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n" + ] + }, + { + "file": "./src/directUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 4, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + }, + { + "file": "./src/indirectUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 5, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + } + ], + "size": 3190 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: Fix error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", + "size": 2590 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [4]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [6]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [7]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [8]:: Introduce error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop1: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"latestChangedDtsFile":"./src/class.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./src/class.d.ts", + "size": 3093 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [9]:: No Change run with emit + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: No Change run with emit + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [13]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]],"latestChangedDtsFile":"./src/class.d.ts","emitSignatures":[[2,"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "latestChangedDtsFile": "./src/class.d.ts", + "emitSignatures": [ + { + "file": "./src/class.ts", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "original": [ + 2, + "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n" + ] + }, + { + "file": "./src/directUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 4, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + }, + { + "file": "./src/indirectUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 5, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + } + ], + "size": 2648 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [14]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/class.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/class.d.ts", + "size": 2562 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [15]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [16]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [17]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-incremental-declaration.js b/testdata/baselines/reference/tsbuild/noEmit/changes-incremental-declaration.js new file mode 100644 index 0000000000..868e102cab --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/changes-incremental-declaration.js @@ -0,0 +1,1613 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true, "declaration": true } +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/class.d.ts] *new* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* +import { classC } from './class'; +export declare class indirectClass { + classC: classC; +} + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* +export declare function writeLog(s: string): void; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* +declare function someFunc(arguments: boolean, ...rest: any[]): void; + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/class.ts +(stored at emit) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts + + +Edit [0]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [2]:: Introduce error but still noEmit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|Dts", + 2 + ], + [ + "./src/directUse.ts", + "Dts", + [ + 4 + ] + ], + [ + "./src/indirectClass.ts", + "Js|Dts", + 3 + ], + [ + "./src/indirectUse.ts", + "Dts", + [ + 5 + ] + ] + ], + "size": 2906 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: Fix error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [4]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [6]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [7]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [8]:: Introduce error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop1: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "size": 3053 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [9]:: No Change run with emit + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: No Change run with emit + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [13]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "size": 2391 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [14]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [15]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [16]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [17]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/changes-incremental.js new file mode 100644 index 0000000000..e36127a4d1 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/changes-incremental.js @@ -0,0 +1,1444 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true } +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 1737 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: + + +Edit [0]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/noChangeFileWithEmitSpecificError.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [2]:: Introduce error but still noEmit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,4,3,5]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js", + 2 + ], + [ + "./src/directUse.ts", + "Js", + 4 + ], + [ + "./src/indirectClass.ts", + "Js", + 3 + ], + [ + "./src/indirectUse.ts", + "Js", + 5 + ] + ], + "size": 2807 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(computed .d.ts) /home/src/workspaces/project/src/directUse.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: Fix error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/directUse.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2051 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [4]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [6]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [7]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [8]:: Introduce error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "size": 2582 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [9]:: No Change run with emit + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: No Change run with emit + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [13]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js", + 2 + ], + [ + "./src/indirectClass.ts", + "Js", + 3 + ] + ], + "size": 2084 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [14]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2051 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [15]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [16]:: No Change run with noEmit + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [17]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/class.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-composite.js b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-composite.js new file mode 100644 index 0000000000..62a76b588e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-composite.js @@ -0,0 +1,1127 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,17],[3,17],[5,17],[6,17],[7,17]],"emitSignatures":[2,3,4,5,6,7]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "Js|DtsEmit", + [ + 4, + 17 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "Js|DtsEmit", + [ + 5, + 17 + ] + ], + [ + "./src/noChangeFile.ts", + "Js|DtsEmit", + [ + 6, + 17 + ] + ], + [ + "./src/noChangeFileWithEmitSpecificError.ts", + "Js|DtsEmit", + [ + 7, + 17 + ] + ] + ], + "emitSignatures": [ + { + "file": "./src/class.ts", + "original": 2 + }, + { + "file": "./src/indirectClass.ts", + "original": 3 + }, + { + "file": "./src/directUse.ts", + "original": 4 + }, + { + "file": "./src/indirectUse.ts", + "original": 5 + }, + { + "file": "./src/noChangeFile.ts", + "original": 6 + }, + { + "file": "./src/noChangeFileWithEmitSpecificError.ts", + "original": 7 + } + ], + "size": 1868 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: + + +Edit [0]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.d.ts] *new* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* +import { classC } from './class'; +export declare class indirectClass { + classC: classC; +} + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* +export declare function writeLog(s: string): void; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* +declare function someFunc(arguments: boolean, ...rest: any[]): void; + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", + "size": 2590 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/class.ts +(stored at emit) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts + + +Edit [1]:: Introduce error with emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop1: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"latestChangedDtsFile":"./src/class.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./src/class.d.ts", + "size": 3093 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [2]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]],"latestChangedDtsFile":"./src/class.d.ts","emitSignatures":[[2,"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "latestChangedDtsFile": "./src/class.d.ts", + "emitSignatures": [ + { + "file": "./src/class.ts", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "original": [ + 2, + "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n" + ] + }, + { + "file": "./src/directUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 4, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + }, + { + "file": "./src/indirectUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 5, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + } + ], + "size": 2648 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/class.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/class.d.ts", + "size": 2562 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental-declaration.js b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental-declaration.js new file mode 100644 index 0000000000..d3688f6b7e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental-declaration.js @@ -0,0 +1,1077 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true, "declaration": true } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,17],[3,17],[5,17],[6,17],[7,17]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "Js|DtsEmit", + [ + 4, + 17 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "Js|DtsEmit", + [ + 5, + 17 + ] + ], + [ + "./src/noChangeFile.ts", + "Js|DtsEmit", + [ + 6, + 17 + ] + ], + [ + "./src/noChangeFileWithEmitSpecificError.ts", + "Js|DtsEmit", + [ + 7, + 17 + ] + ] + ], + "size": 1839 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: + + +Edit [0]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.d.ts] *new* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* +import { classC } from './class'; +export declare class indirectClass { + classC: classC; +} + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* +export declare function writeLog(s: string): void; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* +declare function someFunc(arguments: boolean, ...rest: any[]): void; + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/class.ts +(stored at emit) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts + + +Edit [1]:: Introduce error with emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop1: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "size": 3053 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [2]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "size": 2391 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts diff --git a/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental.js new file mode 100644 index 0000000000..66ce7033ab --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/changes-with-initial-noEmit-incremental.js @@ -0,0 +1,923 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,4,3,5,6,7]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js", + 2 + ], + [ + "./src/directUse.ts", + "Js", + 4 + ], + [ + "./src/indirectClass.ts", + "Js", + 3 + ], + [ + "./src/indirectUse.ts", + "Js", + 5 + ], + [ + "./src/noChangeFile.ts", + "Js", + 6 + ], + [ + "./src/noChangeFileWithEmitSpecificError.ts", + "Js", + 7 + ] + ], + "size": 1778 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: + + +Edit [0]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 1737 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Introduce error with emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'src/class.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "size": 2770 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(computed .d.ts) /home/src/workspaces/project/src/directUse.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [2]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js", + 2 + ], + [ + "./src/indirectClass.ts", + "Js", + 3 + ] + ], + "size": 2084 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: No Change run with emit + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2051 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js new file mode 100644 index 0000000000..2604cb333a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js @@ -0,0 +1,735 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1037 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: With declaration enabled noEmit - Should report errors + +tsgo -b -v --noEmit --declaration +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ] + ], + "size": 1368 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: With declaration and declarationMap noEmit - Should report errors + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,49]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit|DtsMap", + [ + 2, + 49 + ] + ], + [ + "./b.ts", + "Js|DtsEmit|DtsMap", + [ + 3, + 49 + ] + ] + ], + "size": 1390 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [4]:: Dts Emit with error + +tsgo -b -v --declaration +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/projects/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1753 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/projects/project/a.ts +(stored at emit) /home/src/projects/project/b.ts + + +Edit [5]:: Fix the error +//// [/home/src/projects/project/a.ts] *modified* +export const a = class { public p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1302 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: With declaration enabled noEmit + +tsgo -b -v --noEmit --declaration +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17],[3,16]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "DtsEmit", + [ + 3, + 16 + ] + ] + ], + "size": 1345 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: With declaration and declarationMap noEmit + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental.js new file mode 100644 index 0000000000..78b36fcdf6 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-incremental.js @@ -0,0 +1,633 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1019 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: With declaration enabled noEmit - Should report errors + +tsgo -b -v --noEmit --declaration +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1341 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: With declaration and declarationMap noEmit - Should report errors + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,49]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit|DtsMap", + [ + 2, + 49 + ] + ] + ], + "size": 1363 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [4]:: Dts Emit with error + +tsgo -b -v --declaration +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *new* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *new* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1578 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/projects/project/a.ts + + +Edit [5]:: Fix the error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { public p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };","signature":"659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };", + "signature": "659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };", + "signature": "659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1133 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: With declaration enabled noEmit + +tsgo -b -v --noEmit --declaration +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };","signature":"659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };", + "signature": "659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fd0a13eee55a55d7a29403dae06f20db-const a = class { public p = 10; };", + "signature": "659c028cd6db4a336891fd793cecc006-declare const a: {\n new (): {\n p: number;\n };\n};\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1169 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: With declaration and declarationMap noEmit + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js new file mode 100644 index 0000000000..dbbed51592 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js @@ -0,0 +1,1646 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/c.ts] *new* +export const c = class { private p = 10; }; +//// [/home/src/projects/project/d.ts] *new* +export const d = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"affectedFilesPendingEmit":[2,3,4,5]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + } + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ], + [ + "./c.ts", + "Js", + 4 + ], + [ + "./d.ts", + "Js", + 5 + ] + ], + "size": 1217 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +*refresh* /home/src/projects/project/c.ts +*refresh* /home/src/projects/project/d.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: With declaration enabled noEmit - Should report errors + +tsgo -b -v --noEmit --declaration +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 3 errors in 3 files. + +Errors Files + 1 a.ts:1 + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17],[4,17],[5,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ], + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./c.ts", + "Js|DtsEmit", + [ + 4, + 17 + ] + ], + [ + "./d.ts", + "Js|DtsEmit", + [ + 5, + 17 + ] + ] + ], + "size": 2084 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: With declaration and declarationMap noEmit - Should report errors + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 3 errors in 3 files. + +Errors Files + 1 a.ts:1 + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,49],[4,49],[5,49]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ], + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit|DtsMap", + [ + 2, + 49 + ] + ], + [ + "./b.ts", + "Js|DtsEmit|DtsMap", + [ + 3, + 49 + ] + ], + [ + "./c.ts", + "Js|DtsEmit|DtsMap", + [ + 4, + 49 + ] + ], + [ + "./d.ts", + "Js|DtsEmit|DtsMap", + [ + 5, + 49 + ] + ] + ], + "size": 2106 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'd.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [4]:: Dts Emit with error + +tsgo -b -v --declaration +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 3 errors in 3 files. + +Errors Files + 1 a.ts:1 + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/a.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/projects/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/c.d.ts] *new* +export declare const c: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const c = class { + p = 10; +}; +exports.c = c; + +//// [/home/src/projects/project/d.d.ts] *new* +export declare const d: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const d = class { + p = 10; +}; +exports.d = d; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ], + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "size": 3087 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/projects/project/a.ts +(stored at emit) /home/src/projects/project/b.ts +(stored at emit) /home/src/projects/project/c.ts +(stored at emit) /home/src/projects/project/d.ts + + +Edit [5]:: Fix the error +//// [/home/src/projects/project/a.ts] *modified* +export const a = class { public p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "emitDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 2663 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: With declaration enabled noEmit + +tsgo -b -v --noEmit --declaration +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 2 errors in 2 files. + +Errors Files + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,16],[4,16],[5,16]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "DtsEmit", + [ + 3, + 16 + ] + ], + [ + "./c.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./d.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "size": 2720 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: With declaration and declarationMap noEmit + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 2 errors in 2 files. + +Errors Files + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,48],[4,48],[5,48]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "emitDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit|DtsMap", + [ + 2, + 49 + ] + ], + [ + "./b.ts", + "DtsEmit|DtsMap", + [ + 3, + 48 + ] + ], + [ + "./c.ts", + "DtsEmit|DtsMap", + [ + 4, + 48 + ] + ], + [ + "./d.ts", + "DtsEmit|DtsMap", + [ + 5, + 48 + ] + ] + ], + "size": 2742 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [8]:: Fix the another +//// [/home/src/projects/project/c.ts] *modified* +export const c = class { public p = 10; }; + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 1 error in d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };","signature":"17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,48],[4,49],[5,48]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };", + "signature": "17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };", + "signature": "17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "emitDiagnosticsPerFile": [ + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit|DtsMap", + [ + 2, + 49 + ] + ], + [ + "./b.ts", + "DtsEmit|DtsMap", + [ + 3, + 48 + ] + ], + [ + "./c.ts", + "Js|DtsEmit|DtsMap", + [ + 4, + 49 + ] + ], + [ + "./d.ts", + "DtsEmit|DtsMap", + [ + 5, + 48 + ] + ] + ], + "size": 2318 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/c.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/c.ts diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes.js new file mode 100644 index 0000000000..e904433c64 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-declaration-enable-changes.js @@ -0,0 +1,346 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: With declaration enabled noEmit - Should report errors + +tsgo -b -v --noEmit --declaration +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: With declaration and declarationMap noEmit - Should report errors + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: Dts Emit with error + +tsgo -b -v --declaration +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *new* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *new* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [5]:: Fix the error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { public p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: With declaration enabled noEmit + +tsgo -b -v --noEmit --declaration +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'a.js' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [7]:: With declaration and declarationMap noEmit + +tsgo -b -v --noEmit --declaration --declarationMap +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'a.js' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..917f58c5d5 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental-as-modules.js @@ -0,0 +1,708 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ] + ], + "size": 1368 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17],[3,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ] + ], + "size": 1181 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.d.ts] *new* +export declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/projects/project/b.ts + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1795 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1759 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental.js new file mode 100644 index 0000000000..660a979a45 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-with-incremental.js @@ -0,0 +1,617 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1341 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1117 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.d.ts] *new* +declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1081 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1614 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1578 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js new file mode 100644 index 0000000000..89554d564a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js @@ -0,0 +1,525 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1069 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1393 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1362 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental.js new file mode 100644 index 0000000000..4875813312 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled-with-incremental.js @@ -0,0 +1,459 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1051 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1324 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1293 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled.js new file mode 100644 index 0000000000..d5c1bf0398 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors-without-dts-enabled.js @@ -0,0 +1,237 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'a.js' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + diff --git a/testdata/baselines/reference/tsbuild/noEmit/dts-errors.js b/testdata/baselines/reference/tsbuild/noEmit/dts-errors.js new file mode 100644 index 0000000000..8d2f2986c7 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/dts-errors.js @@ -0,0 +1,344 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": true + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.d.ts] *new* +declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..c23186cbd1 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental-as-modules.js @@ -0,0 +1,615 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a: number = "hello" +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", + "signature": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1204 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1327 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1296 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js new file mode 100644 index 0000000000..c1fa7999c7 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js @@ -0,0 +1,547 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a: number = "hello" +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1184 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1258 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1227 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/semantic-errors.js b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors.js new file mode 100644 index 0000000000..e71f806852 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/semantic-errors.js @@ -0,0 +1,310 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a: number = "hello" +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./a.ts"],"semanticErrors":true} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 67, + "semanticErrors": true +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"],"semanticErrors":true} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 67, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..317904bb9e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental-as-modules.js @@ -0,0 +1,589 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = "hello +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1101 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +*not cached* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +*not cached* /home/src/projects/project/b.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"changeFileSet":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "changeFileSet": [ + "./a.ts" + ], + "size": 1189 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts" + ], + "size": 1197 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js new file mode 100644 index 0000000000..3aa42cb522 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js @@ -0,0 +1,516 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = "hello +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1081 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"changeFileSet":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "changeFileSet": [ + "./a.ts" + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1126 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmit/syntax-errors.js b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors.js new file mode 100644 index 0000000000..29782c5915 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmit/syntax-errors.js @@ -0,0 +1,312 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = "hello +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + } +} + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: no change + +tsgo -b -v --noEmit +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'a.ts' is older than output 'a.js' + + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: Emit when error + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [7]:: no change + +tsgo -b -v --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration-with-incremental.js new file mode 100644 index 0000000000..8cd1b339a5 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration-with-incremental.js @@ -0,0 +1,387 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":53,"end":54,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":53,"end":54,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17],[4,17]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "signature": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "emitDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 53, + "end": 54, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 53, + "end": 54, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "../src/main.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "../src/other.ts", + "Js|DtsEmit", + [ + 4, + 17 + ] + ] + ], + "size": 1628 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in src/main.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1656 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts +(stored at emit) /user/username/projects/noEmitOnError/src/other.ts + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration.js b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration.js new file mode 100644 index 0000000000..838bfd3e35 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-declaration.js @@ -0,0 +1,238 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in src/main.ts:2 + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-incremental.js new file mode 100644 index 0000000000..b4048e52ec --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors-with-incremental.js @@ -0,0 +1,283 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "signature": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1289 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/other.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' + + + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1437 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors.js b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors.js new file mode 100644 index 0000000000..36b6950f8c --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/dts-errors.js @@ -0,0 +1,165 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/other.ts' is older than output 'dev-build/shared/types/db.js' + + + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration-with-incremental.js new file mode 100644 index 0000000000..d8fdb8837c --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration-with-incremental.js @@ -0,0 +1,353 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a: string = 10; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "signature": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 46, + "end": 47, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js|Dts", + 2 + ], + [ + "../src/main.ts", + "Js|Dts", + 3 + ], + [ + "../src/other.ts", + "Js|Dts", + 4 + ] + ], + "size": 1445 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1587 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts +(stored at emit) /user/username/projects/noEmitOnError/src/other.ts + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration.js b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration.js new file mode 100644 index 0000000000..934b133bfd --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-declaration.js @@ -0,0 +1,222 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a: string = 10; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"],"semanticErrors":true} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 117, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js new file mode 100644 index 0000000000..ffd63e121b --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js @@ -0,0 +1,330 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a: string = 10; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "signature": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 46, + "end": 47, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js", + 2 + ], + [ + "../src/main.ts", + "Js", + 3 + ], + [ + "../src/other.ts", + "Js", + 4 + ] + ], + "size": 1446 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1368 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js new file mode 100644 index 0000000000..f23697e646 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js @@ -0,0 +1,211 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a: string = 10; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"],"semanticErrors":true} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 117, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration-with-incremental.js new file mode 100644 index 0000000000..3b86ee7324 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration-with-incremental.js @@ -0,0 +1,359 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js|Dts", + 2 + ], + [ + "../src/main.ts", + "Js|Dts", + 3 + ], + [ + "../src/other.ts", + "Js|Dts", + 4 + ] + ], + "size": 1369 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1596 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: +(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts +(stored at emit) /user/username/projects/noEmitOnError/src/other.ts + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration.js b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration.js new file mode 100644 index 0000000000..12ddd21eda --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-declaration.js @@ -0,0 +1,228 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js new file mode 100644 index 0000000000..d2e03dd47c --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js @@ -0,0 +1,336 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js", + 2 + ], + [ + "../src/main.ts", + "Js", + 3 + ], + [ + "../src/other.ts", + "Js", + 4 + ] + ], + "size": 1370 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1377 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js new file mode 100644 index 0000000000..fd5f14f793 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js @@ -0,0 +1,217 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [2]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/main.ts' is older than output 'dev-build/shared/types/db.js' + + diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js new file mode 100644 index 0000000000..1d09ddcaa5 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js @@ -0,0 +1,135 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "dist", + "composite": true, + }, +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/dist/src/index.d.ts] *new* +export declare const x = 10; + +//// [/home/src/workspaces/project/dist/src/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"28e8748a7acd58f4f59388926e914f86-export const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/index.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1118 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/index.ts + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/tsconfig.tsbuildinfo' + + + + +Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted + +tsgo -p /home/src/workspaces/project/tsconfig.json +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js new file mode 100644 index 0000000000..148ff32fc4 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js @@ -0,0 +1,94 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "dist", + }, +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/dist/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../src/index.ts"]} +//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": "../src/index.ts" + } + ], + "size": 54 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/index.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/index.js' + + + + +Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted + +tsgo -p /home/src/workspaces/project/tsconfig.json +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/dist/index.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js new file mode 100644 index 0000000000..dd45df80af --- /dev/null +++ b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js @@ -0,0 +1,164 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "composite": true + }, +} +//// [/home/src/workspaces/project/types/type.ts] *new* +export type t = string; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/dist/index.d.ts] *new* +export declare const x = 10; + +//// [/home/src/workspaces/project/dist/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./src/index.ts","./types/type.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"28e8748a7acd58f4f59388926e914f86-export const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1},{"version":"37c1beee3ff062c5ae875b0377f00093-export type t = string;","signature":"09b8756df8837e9d9dd668b82d3aad6c-export type t = string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./dist","rootDir":"./src"},"latestChangedDtsFile":"./types/type.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts", + "./types/type.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/index.ts", + "./types/type.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/index.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./types/type.ts", + "version": "37c1beee3ff062c5ae875b0377f00093-export type t = string;", + "signature": "09b8756df8837e9d9dd668b82d3aad6c-export type t = string;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "37c1beee3ff062c5ae875b0377f00093-export type t = string;", + "signature": "09b8756df8837e9d9dd668b82d3aad6c-export type t = string;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src" + }, + "latestChangedDtsFile": "./types/type.d.ts", + "size": 1328 +} +//// [/home/src/workspaces/project/types/type.d.ts] *new* +export type t = string; + +//// [/home/src/workspaces/project/types/type.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/index.ts +*refresh* /home/src/workspaces/project/types/type.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/index.ts +(stored at emit) /home/src/workspaces/project/types/type.ts + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'types/type.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted + +tsgo -p /home/src/workspaces/project/tsconfig.json +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js new file mode 100644 index 0000000000..02a5df8acb --- /dev/null +++ b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js @@ -0,0 +1,109 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + }, +} +//// [/home/src/workspaces/project/types/type.ts] *new* +export type t = string; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/dist/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./src/index.ts","./types/type.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": "./src/index.ts" + }, + { + "files": [ + "./types/type.ts" + ], + "original": "./types/type.ts" + } + ], + "size": 71 +} +//// [/home/src/workspaces/project/types/type.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/index.ts +*refresh* /home/src/workspaces/project/types/type.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'types/type.ts' is older than output 'dist/index.js' + + + + +Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted + +tsgo -p /home/src/workspaces/project/tsconfig.json +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/dist/index.js] *rewrite with same content* +//// [/home/src/workspaces/project/types/type.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js new file mode 100644 index 0000000000..f64edf9e83 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js @@ -0,0 +1,95 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + }, +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/dist/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./src/index.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": "./src/index.ts" + } + ], + "size": 53 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/index.ts +Signatures:: + + +Edit [0]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/index.js' + + + + +Edit [1]:: Normal build without change, that does not block emit on error to show files that get emitted + +tsgo -p /home/src/workspaces/project/tsconfig.json +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/dist/index.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference-with-composite.js b/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference-with-composite.js new file mode 100644 index 0000000000..63a099b0cb --- /dev/null +++ b/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference-with-composite.js @@ -0,0 +1,276 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/index.ts] *new* +import { FOO } from "./lib/foo"; +//// [/home/src/workspaces/project/lib/foo.ts] *new* +export const FOO: string = 'THEFOOEXPORT'; +//// [/home/src/workspaces/project/lib/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "./dist" + } +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "references": [ { "path": "./lib" } ] +} + +tsgo --b +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/index.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/lib/dist/foo.d.ts] *new* +export declare const FOO: string; + +//// [/home/src/workspaces/project/lib/dist/foo.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FOO = void 0; +exports.FOO = 'THEFOOEXPORT'; + +//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';","signature":"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./foo.d.ts"} +//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../foo.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../foo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../foo.ts", + "version": "7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./foo.d.ts", + "size": 1133 +} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./lib/dist/foo.d.ts","./index.ts","./lib/foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n",{"version":"e7dbb9e054d23568235510c49ab58ce3-import { FOO } from \"./lib/foo\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts","resolvedRoot":[[2,4]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./lib/dist/foo.d.ts", + "./index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./lib/dist/foo.d.ts", + "./index.ts", + "./lib/foo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./lib/dist/foo.d.ts", + "version": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "e7dbb9e054d23568235510c49ab58ce3-import { FOO } from \"./lib/foo\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7dbb9e054d23568235510c49ab58ce3-import { FOO } from \"./lib/foo\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./lib/dist/foo.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./index.ts": [ + "./lib/dist/foo.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "resolvedRoot": [ + [ + "./lib/dist/foo.d.ts", + "./lib/foo.ts" + ] + ], + "size": 1270 +} + +lib/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/lib/foo.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/lib/foo.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/lib/dist/foo.d.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: dts doesnt change +//// [/home/src/workspaces/project/lib/foo.ts] *modified* +export const FOO: string = 'THEFOOEXPORT';const Bar = 10; + +tsgo --b +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/lib/dist/foo.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FOO = void 0; +exports.FOO = 'THEFOOEXPORT'; +const Bar = 10; + +//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;","signature":"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./foo.d.ts"} +//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../foo.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../foo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../foo.ts", + "version": "e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./foo.d.ts", + "size": 1148 +} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *mTime changed* + +lib/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/lib/foo.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/lib/foo.ts diff --git a/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference.js b/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference.js new file mode 100644 index 0000000000..76ae0088b6 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/programUpdates/when-root-is-source-from-project-reference.js @@ -0,0 +1,248 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/index.ts] *new* +import { FOO } from "./lib/foo"; +//// [/home/src/workspaces/project/lib/foo.ts] *new* +export const FOO: string = 'THEFOOEXPORT'; +//// [/home/src/workspaces/project/lib/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "./dist" + } +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "references": [ { "path": "./lib" } ] +} + +tsgo --b +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/lib/dist/foo.d.ts] *new* +export declare const FOO: string; + +//// [/home/src/workspaces/project/lib/dist/foo.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FOO = void 0; +exports.FOO = 'THEFOOEXPORT'; + +//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';","signature":"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./foo.d.ts"} +//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../foo.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../foo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../foo.ts", + "version": "7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7f94c001790f66ce6f219bcc674cfb1b-export const FOO: string = 'THEFOOEXPORT';", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./foo.d.ts", + "size": 1133 +} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./index.ts","./lib/foo.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": "./index.ts" + }, + { + "files": [ + "./lib/foo.ts" + ], + "original": "./lib/foo.ts" + } + ], + "size": 64 +} + +lib/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/lib/foo.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/lib/foo.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/lib/dist/foo.d.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: + + +Edit [0]:: dts doesnt change +//// [/home/src/workspaces/project/lib/foo.ts] *modified* +export const FOO: string = 'THEFOOEXPORT';const Bar = 10; + +tsgo --b +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/index.js] *rewrite with same content* +//// [/home/src/workspaces/project/lib/dist/foo.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FOO = void 0; +exports.FOO = 'THEFOOEXPORT'; +const Bar = 10; + +//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../foo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;","signature":"4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./foo.d.ts"} +//// [/home/src/workspaces/project/lib/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../foo.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../foo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../foo.ts", + "version": "e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e604530e5ce616e2409bd4c7aa5fd3ff-export const FOO: string = 'THEFOOEXPORT';const Bar = 10;", + "signature": "4ea8c248dd335c2208c4fdcf4812cc6f-export declare const FOO: string;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./foo.d.ts", + "size": 1148 +} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./index.ts","./lib/foo.ts","./lib/dist/foo.d.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": "./index.ts" + }, + { + "files": [ + "./lib/foo.ts" + ], + "original": "./lib/foo.ts" + }, + { + "files": [ + "./lib/dist/foo.d.ts" + ], + "original": "./lib/dist/foo.d.ts" + } + ], + "size": 86 +} + +lib/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/lib/foo.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/lib/foo.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/lib/dist/foo.d.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-23-projects-in-a-solution.js b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-23-projects-in-a-solution.js new file mode 100644 index 0000000000..623ffc3bf9 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-23-projects-in-a-solution.js @@ -0,0 +1,3254 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg0/index.ts] *new* +export const pkg0 = 0; +//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* + { + "compilerOptions": { "composite": true }, + + } +//// [/user/username/projects/myproject/pkg1/index.ts] *new* +export const pkg1 = 1; +//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg10/index.ts] *new* +export const pkg10 = 10; +//// [/user/username/projects/myproject/pkg10/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg11/index.ts] *new* +export const pkg11 = 11; +//// [/user/username/projects/myproject/pkg11/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg12/index.ts] *new* +export const pkg12 = 12; +//// [/user/username/projects/myproject/pkg12/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg13/index.ts] *new* +export const pkg13 = 13; +//// [/user/username/projects/myproject/pkg13/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg14/index.ts] *new* +export const pkg14 = 14; +//// [/user/username/projects/myproject/pkg14/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg15/index.ts] *new* +export const pkg15 = 15; +//// [/user/username/projects/myproject/pkg15/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg16/index.ts] *new* +export const pkg16 = 16; +//// [/user/username/projects/myproject/pkg16/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg17/index.ts] *new* +export const pkg17 = 17; +//// [/user/username/projects/myproject/pkg17/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg18/index.ts] *new* +export const pkg18 = 18; +//// [/user/username/projects/myproject/pkg18/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg19/index.ts] *new* +export const pkg19 = 19; +//// [/user/username/projects/myproject/pkg19/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg2/index.ts] *new* +export const pkg2 = 2; +//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg20/index.ts] *new* +export const pkg20 = 20; +//// [/user/username/projects/myproject/pkg20/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg21/index.ts] *new* +export const pkg21 = 21; +//// [/user/username/projects/myproject/pkg21/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg22/index.ts] *new* +export const pkg22 = 22; +//// [/user/username/projects/myproject/pkg22/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg3/index.ts] *new* +export const pkg3 = 3; +//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg4/index.ts] *new* +export const pkg4 = 4; +//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg5/index.ts] *new* +export const pkg5 = 5; +//// [/user/username/projects/myproject/pkg5/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg6/index.ts] *new* +export const pkg6 = 6; +//// [/user/username/projects/myproject/pkg6/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg7/index.ts] *new* +export const pkg7 = 7; +//// [/user/username/projects/myproject/pkg7/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg8/index.ts] *new* +export const pkg8 = 8; +//// [/user/username/projects/myproject/pkg8/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg9/index.ts] *new* +export const pkg9 = 9; +//// [/user/username/projects/myproject/pkg9/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [ + { "path": "./pkg0" }, + { "path": "./pkg1" }, + { "path": "./pkg2" }, + { "path": "./pkg3" }, + { "path": "./pkg4" }, + { "path": "./pkg5" }, + { "path": "./pkg6" }, + { "path": "./pkg7" }, + { "path": "./pkg8" }, + { "path": "./pkg9" }, + { "path": "./pkg10" }, + { "path": "./pkg11" }, + { "path": "./pkg12" }, + { "path": "./pkg13" }, + { "path": "./pkg14" }, + { "path": "./pkg15" }, + { "path": "./pkg16" }, + { "path": "./pkg17" }, + { "path": "./pkg18" }, + { "path": "./pkg19" }, + { "path": "./pkg20" }, + { "path": "./pkg21" }, + { "path": "./pkg22" } + ] +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * pkg8/tsconfig.json + * pkg9/tsconfig.json + * pkg10/tsconfig.json + * pkg11/tsconfig.json + * pkg12/tsconfig.json + * pkg13/tsconfig.json + * pkg14/tsconfig.json + * pkg15/tsconfig.json + * pkg16/tsconfig.json + * pkg17/tsconfig.json + * pkg18/tsconfig.json + * pkg19/tsconfig.json + * pkg20/tsconfig.json + * pkg21/tsconfig.json + * pkg22/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is out of date because output file 'pkg8/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg8/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is out of date because output file 'pkg9/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg9/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is out of date because output file 'pkg10/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg10/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is out of date because output file 'pkg11/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg11/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is out of date because output file 'pkg12/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg12/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is out of date because output file 'pkg13/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg13/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is out of date because output file 'pkg14/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg14/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is out of date because output file 'pkg15/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg15/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is out of date because output file 'pkg16/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg16/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is out of date because output file 'pkg17/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg17/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is out of date because output file 'pkg18/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg18/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is out of date because output file 'pkg19/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg19/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is out of date because output file 'pkg20/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg20/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is out of date because output file 'pkg21/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg21/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is out of date because output file 'pkg22/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg22/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* +export declare const pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* +export declare const pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg1 = void 0; +exports.pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg10/index.d.ts] *new* +export declare const pkg10 = 10; + +//// [/user/username/projects/myproject/pkg10/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg10 = void 0; +exports.pkg10 = 10; + +//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;","signature":"c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;", + "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;", + "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg11/index.d.ts] *new* +export declare const pkg11 = 11; + +//// [/user/username/projects/myproject/pkg11/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg11 = void 0; +exports.pkg11 = 11; + +//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;","signature":"adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;", + "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;", + "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg12/index.d.ts] *new* +export declare const pkg12 = 12; + +//// [/user/username/projects/myproject/pkg12/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg12 = void 0; +exports.pkg12 = 12; + +//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;","signature":"3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;", + "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;", + "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg13/index.d.ts] *new* +export declare const pkg13 = 13; + +//// [/user/username/projects/myproject/pkg13/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg13 = void 0; +exports.pkg13 = 13; + +//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;","signature":"8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;", + "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;", + "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg14/index.d.ts] *new* +export declare const pkg14 = 14; + +//// [/user/username/projects/myproject/pkg14/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg14 = void 0; +exports.pkg14 = 14; + +//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;","signature":"97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;", + "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;", + "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg15/index.d.ts] *new* +export declare const pkg15 = 15; + +//// [/user/username/projects/myproject/pkg15/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg15 = void 0; +exports.pkg15 = 15; + +//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;","signature":"58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;", + "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;", + "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg16/index.d.ts] *new* +export declare const pkg16 = 16; + +//// [/user/username/projects/myproject/pkg16/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg16 = void 0; +exports.pkg16 = 16; + +//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;","signature":"7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;", + "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;", + "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg17/index.d.ts] *new* +export declare const pkg17 = 17; + +//// [/user/username/projects/myproject/pkg17/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg17 = void 0; +exports.pkg17 = 17; + +//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;","signature":"6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;", + "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;", + "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg18/index.d.ts] *new* +export declare const pkg18 = 18; + +//// [/user/username/projects/myproject/pkg18/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg18 = void 0; +exports.pkg18 = 18; + +//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;","signature":"998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;", + "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;", + "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg19/index.d.ts] *new* +export declare const pkg19 = 19; + +//// [/user/username/projects/myproject/pkg19/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg19 = void 0; +exports.pkg19 = 19; + +//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ac602ee4cba12981e12105658930586-export const pkg19 = 19;","signature":"9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0ac602ee4cba12981e12105658930586-export const pkg19 = 19;", + "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0ac602ee4cba12981e12105658930586-export const pkg19 = 19;", + "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* +export declare const pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg2 = void 0; +exports.pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg20/index.d.ts] *new* +export declare const pkg20 = 20; + +//// [/user/username/projects/myproject/pkg20/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg20 = void 0; +exports.pkg20 = 20; + +//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;","signature":"3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;", + "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;", + "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg21/index.d.ts] *new* +export declare const pkg21 = 21; + +//// [/user/username/projects/myproject/pkg21/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg21 = void 0; +exports.pkg21 = 21; + +//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;","signature":"28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;", + "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;", + "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg22/index.d.ts] *new* +export declare const pkg22 = 22; + +//// [/user/username/projects/myproject/pkg22/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg22 = void 0; +exports.pkg22 = 22; + +//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;","signature":"4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;", + "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;", + "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* +export declare const pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg3 = void 0; +exports.pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* +export declare const pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg4 = void 0; +exports.pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg5/index.d.ts] *new* +export declare const pkg5 = 5; + +//// [/user/username/projects/myproject/pkg5/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg5 = void 0; +exports.pkg5 = 5; + +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;","signature":"77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg6/index.d.ts] *new* +export declare const pkg6 = 6; + +//// [/user/username/projects/myproject/pkg6/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg6 = void 0; +exports.pkg6 = 6; + +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;","signature":"579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg7/index.d.ts] *new* +export declare const pkg7 = 7; + +//// [/user/username/projects/myproject/pkg7/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg7 = void 0; +exports.pkg7 = 7; + +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;","signature":"5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg8/index.d.ts] *new* +export declare const pkg8 = 8; + +//// [/user/username/projects/myproject/pkg8/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg8 = void 0; +exports.pkg8 = 8; + +//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;","signature":"cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;", + "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;", + "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg9/index.d.ts] *new* +export declare const pkg9 = 9; + +//// [/user/username/projects/myproject/pkg9/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg9 = void 0; +exports.pkg9 = 9; + +//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;","signature":"9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;", + "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;", + "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,24]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg10/index.d.ts","./pkg11/index.d.ts","./pkg12/index.d.ts","./pkg13/index.d.ts","./pkg14/index.d.ts","./pkg15/index.d.ts","./pkg16/index.d.ts","./pkg17/index.d.ts","./pkg18/index.d.ts","./pkg19/index.d.ts","./pkg2/index.d.ts","./pkg20/index.d.ts","./pkg21/index.d.ts","./pkg22/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg8/index.d.ts","./pkg9/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg10/index.ts","./pkg11/index.ts","./pkg12/index.ts","./pkg13/index.ts","./pkg14/index.ts","./pkg15/index.ts","./pkg16/index.ts","./pkg17/index.ts","./pkg18/index.ts","./pkg19/index.ts","./pkg2/index.ts","./pkg20/index.ts","./pkg21/index.ts","./pkg22/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts","./pkg8/index.ts","./pkg9/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n"],"options":{"composite":true},"resolvedRoot":[[2,25],[3,26],[4,27],[5,28],[6,29],[7,30],[8,31],[9,32],[10,33],[11,34],[12,35],[13,36],[14,37],[15,38],[16,39],[17,40],[18,41],[19,42],[20,43],[21,44],[22,45],[23,46],[24,47]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg10/index.d.ts", + "./pkg11/index.d.ts", + "./pkg12/index.d.ts", + "./pkg13/index.d.ts", + "./pkg14/index.d.ts", + "./pkg15/index.d.ts", + "./pkg16/index.d.ts", + "./pkg17/index.d.ts", + "./pkg18/index.d.ts", + "./pkg19/index.d.ts", + "./pkg2/index.d.ts", + "./pkg20/index.d.ts", + "./pkg21/index.d.ts", + "./pkg22/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg8/index.d.ts", + "./pkg9/index.d.ts" + ], + "original": [ + 2, + 24 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg10/index.d.ts", + "./pkg11/index.d.ts", + "./pkg12/index.d.ts", + "./pkg13/index.d.ts", + "./pkg14/index.d.ts", + "./pkg15/index.d.ts", + "./pkg16/index.d.ts", + "./pkg17/index.d.ts", + "./pkg18/index.d.ts", + "./pkg19/index.d.ts", + "./pkg2/index.d.ts", + "./pkg20/index.d.ts", + "./pkg21/index.d.ts", + "./pkg22/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg8/index.d.ts", + "./pkg9/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg10/index.ts", + "./pkg11/index.ts", + "./pkg12/index.ts", + "./pkg13/index.ts", + "./pkg14/index.ts", + "./pkg15/index.ts", + "./pkg16/index.ts", + "./pkg17/index.ts", + "./pkg18/index.ts", + "./pkg19/index.ts", + "./pkg2/index.ts", + "./pkg20/index.ts", + "./pkg21/index.ts", + "./pkg22/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts", + "./pkg5/index.ts", + "./pkg6/index.ts", + "./pkg7/index.ts", + "./pkg8/index.ts", + "./pkg9/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg10/index.d.ts", + "version": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg11/index.d.ts", + "version": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg12/index.d.ts", + "version": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg13/index.d.ts", + "version": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg14/index.d.ts", + "version": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg15/index.d.ts", + "version": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg16/index.d.ts", + "version": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg17/index.d.ts", + "version": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg18/index.d.ts", + "version": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg19/index.d.ts", + "version": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg20/index.d.ts", + "version": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg21/index.d.ts", + "version": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg22/index.d.ts", + "version": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg5/index.d.ts", + "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg6/index.d.ts", + "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg7/index.d.ts", + "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg8/index.d.ts", + "version": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg9/index.d.ts", + "version": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg10/index.d.ts", + "./pkg10/index.ts" + ], + [ + "./pkg11/index.d.ts", + "./pkg11/index.ts" + ], + [ + "./pkg12/index.d.ts", + "./pkg12/index.ts" + ], + [ + "./pkg13/index.d.ts", + "./pkg13/index.ts" + ], + [ + "./pkg14/index.d.ts", + "./pkg14/index.ts" + ], + [ + "./pkg15/index.d.ts", + "./pkg15/index.ts" + ], + [ + "./pkg16/index.d.ts", + "./pkg16/index.ts" + ], + [ + "./pkg17/index.d.ts", + "./pkg17/index.ts" + ], + [ + "./pkg18/index.d.ts", + "./pkg18/index.ts" + ], + [ + "./pkg19/index.d.ts", + "./pkg19/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg20/index.d.ts", + "./pkg20/index.ts" + ], + [ + "./pkg21/index.d.ts", + "./pkg21/index.ts" + ], + [ + "./pkg22/index.d.ts", + "./pkg22/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ], + [ + "./pkg5/index.d.ts", + "./pkg5/index.ts" + ], + [ + "./pkg6/index.d.ts", + "./pkg6/index.ts" + ], + [ + "./pkg7/index.d.ts", + "./pkg7/index.ts" + ], + [ + "./pkg8/index.d.ts", + "./pkg8/index.ts" + ], + [ + "./pkg9/index.d.ts", + "./pkg9/index.ts" + ] + ], + "size": 3564 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg1/index.ts + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg2/index.ts + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg3/index.ts + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg4/index.ts + +pkg5/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg5/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg5/index.ts + +pkg6/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg6/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg6/index.ts + +pkg7/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg7/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg7/index.ts + +pkg8/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg8/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg8/index.ts + +pkg9/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg9/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg9/index.ts + +pkg10/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg10/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg10/index.ts + +pkg11/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg11/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg11/index.ts + +pkg12/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg12/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg12/index.ts + +pkg13/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg13/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg13/index.ts + +pkg14/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg14/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg14/index.ts + +pkg15/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg15/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg15/index.ts + +pkg16/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg16/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg16/index.ts + +pkg17/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg17/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg17/index.ts + +pkg18/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg18/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg18/index.ts + +pkg19/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg19/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg19/index.ts + +pkg20/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg20/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg20/index.ts + +pkg21/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg21/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg21/index.ts + +pkg22/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg22/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg22/index.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.d.ts +*refresh* /user/username/projects/myproject/pkg10/index.d.ts +*refresh* /user/username/projects/myproject/pkg11/index.d.ts +*refresh* /user/username/projects/myproject/pkg12/index.d.ts +*refresh* /user/username/projects/myproject/pkg13/index.d.ts +*refresh* /user/username/projects/myproject/pkg14/index.d.ts +*refresh* /user/username/projects/myproject/pkg15/index.d.ts +*refresh* /user/username/projects/myproject/pkg16/index.d.ts +*refresh* /user/username/projects/myproject/pkg17/index.d.ts +*refresh* /user/username/projects/myproject/pkg18/index.d.ts +*refresh* /user/username/projects/myproject/pkg19/index.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.d.ts +*refresh* /user/username/projects/myproject/pkg20/index.d.ts +*refresh* /user/username/projects/myproject/pkg21/index.d.ts +*refresh* /user/username/projects/myproject/pkg22/index.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.d.ts +*refresh* /user/username/projects/myproject/pkg5/index.d.ts +*refresh* /user/username/projects/myproject/pkg6/index.d.ts +*refresh* /user/username/projects/myproject/pkg7/index.d.ts +*refresh* /user/username/projects/myproject/pkg8/index.d.ts +*refresh* /user/username/projects/myproject/pkg9/index.d.ts +Signatures:: + + +Edit [0]:: dts doesn't change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * pkg8/tsconfig.json + * pkg9/tsconfig.json + * pkg10/tsconfig.json + * pkg11/tsconfig.json + * pkg12/tsconfig.json + * pkg13/tsconfig.json + * pkg14/tsconfig.json + * pkg15/tsconfig.json + * pkg16/tsconfig.json + * pkg17/tsconfig.json + * pkg18/tsconfig.json + * pkg19/tsconfig.json + * pkg20/tsconfig.json + * pkg21/tsconfig.json + * pkg22/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg8/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg9/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg10/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg11/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg12/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg13/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg14/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg15/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg16/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg17/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg18/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg19/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg20/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg21/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg22/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1121 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + + +Edit [1]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * pkg8/tsconfig.json + * pkg9/tsconfig.json + * pkg10/tsconfig.json + * pkg11/tsconfig.json + * pkg12/tsconfig.json + * pkg13/tsconfig.json + * pkg14/tsconfig.json + * pkg15/tsconfig.json + * pkg16/tsconfig.json + * pkg17/tsconfig.json + * pkg18/tsconfig.json + * pkg19/tsconfig.json + * pkg20/tsconfig.json + * pkg21/tsconfig.json + * pkg22/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date because newest input 'pkg5/index.ts' is older than output 'pkg5/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date because newest input 'pkg6/index.ts' is older than output 'pkg6/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date because newest input 'pkg7/index.ts' is older than output 'pkg7/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is up to date because newest input 'pkg8/index.ts' is older than output 'pkg8/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is up to date because newest input 'pkg9/index.ts' is older than output 'pkg9/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is up to date because newest input 'pkg10/index.ts' is older than output 'pkg10/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is up to date because newest input 'pkg11/index.ts' is older than output 'pkg11/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is up to date because newest input 'pkg12/index.ts' is older than output 'pkg12/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is up to date because newest input 'pkg13/index.ts' is older than output 'pkg13/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is up to date because newest input 'pkg14/index.ts' is older than output 'pkg14/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is up to date because newest input 'pkg15/index.ts' is older than output 'pkg15/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is up to date because newest input 'pkg16/index.ts' is older than output 'pkg16/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is up to date because newest input 'pkg17/index.ts' is older than output 'pkg17/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is up to date because newest input 'pkg18/index.ts' is older than output 'pkg18/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is up to date because newest input 'pkg19/index.ts' is older than output 'pkg19/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is up to date because newest input 'pkg20/index.ts' is older than output 'pkg20/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is up to date because newest input 'pkg21/index.ts' is older than output 'pkg21/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is up to date because newest input 'pkg22/index.ts' is older than output 'pkg22/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [2]:: dts change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * pkg8/tsconfig.json + * pkg9/tsconfig.json + * pkg10/tsconfig.json + * pkg11/tsconfig.json + * pkg12/tsconfig.json + * pkg13/tsconfig.json + * pkg14/tsconfig.json + * pkg15/tsconfig.json + * pkg16/tsconfig.json + * pkg17/tsconfig.json + * pkg18/tsconfig.json + * pkg19/tsconfig.json + * pkg20/tsconfig.json + * pkg21/tsconfig.json + * pkg22/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg8/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg8/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg9/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg9/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg10/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg10/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg11/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg11/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg12/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg12/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg13/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg13/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg14/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg14/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg15/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg15/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is out of date because output 'pkg16/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg16/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg16/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is out of date because output 'pkg17/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg17/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg17/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is out of date because output 'pkg18/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg18/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg18/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is out of date because output 'pkg19/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg19/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg19/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is out of date because output 'pkg20/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg20/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg20/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is out of date because output 'pkg21/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg21/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg21/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is out of date because output 'pkg22/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg22/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg22/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* +export declare const pkg0 = 0; +export declare const someConst = 10; + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someConst = exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; +exports.someConst = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1187 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,24]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg10/index.d.ts","./pkg11/index.d.ts","./pkg12/index.d.ts","./pkg13/index.d.ts","./pkg14/index.d.ts","./pkg15/index.d.ts","./pkg16/index.d.ts","./pkg17/index.d.ts","./pkg18/index.d.ts","./pkg19/index.d.ts","./pkg2/index.d.ts","./pkg20/index.d.ts","./pkg21/index.d.ts","./pkg22/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg8/index.d.ts","./pkg9/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg10/index.ts","./pkg11/index.ts","./pkg12/index.ts","./pkg13/index.ts","./pkg14/index.ts","./pkg15/index.ts","./pkg16/index.ts","./pkg17/index.ts","./pkg18/index.ts","./pkg19/index.ts","./pkg2/index.ts","./pkg20/index.ts","./pkg21/index.ts","./pkg22/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts","./pkg8/index.ts","./pkg9/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n"],"options":{"composite":true},"resolvedRoot":[[2,25],[3,26],[4,27],[5,28],[6,29],[7,30],[8,31],[9,32],[10,33],[11,34],[12,35],[13,36],[14,37],[15,38],[16,39],[17,40],[18,41],[19,42],[20,43],[21,44],[22,45],[23,46],[24,47]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg10/index.d.ts", + "./pkg11/index.d.ts", + "./pkg12/index.d.ts", + "./pkg13/index.d.ts", + "./pkg14/index.d.ts", + "./pkg15/index.d.ts", + "./pkg16/index.d.ts", + "./pkg17/index.d.ts", + "./pkg18/index.d.ts", + "./pkg19/index.d.ts", + "./pkg2/index.d.ts", + "./pkg20/index.d.ts", + "./pkg21/index.d.ts", + "./pkg22/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg8/index.d.ts", + "./pkg9/index.d.ts" + ], + "original": [ + 2, + 24 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg10/index.d.ts", + "./pkg11/index.d.ts", + "./pkg12/index.d.ts", + "./pkg13/index.d.ts", + "./pkg14/index.d.ts", + "./pkg15/index.d.ts", + "./pkg16/index.d.ts", + "./pkg17/index.d.ts", + "./pkg18/index.d.ts", + "./pkg19/index.d.ts", + "./pkg2/index.d.ts", + "./pkg20/index.d.ts", + "./pkg21/index.d.ts", + "./pkg22/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg8/index.d.ts", + "./pkg9/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg10/index.ts", + "./pkg11/index.ts", + "./pkg12/index.ts", + "./pkg13/index.ts", + "./pkg14/index.ts", + "./pkg15/index.ts", + "./pkg16/index.ts", + "./pkg17/index.ts", + "./pkg18/index.ts", + "./pkg19/index.ts", + "./pkg2/index.ts", + "./pkg20/index.ts", + "./pkg21/index.ts", + "./pkg22/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts", + "./pkg5/index.ts", + "./pkg6/index.ts", + "./pkg7/index.ts", + "./pkg8/index.ts", + "./pkg9/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg10/index.d.ts", + "version": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg11/index.d.ts", + "version": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg12/index.d.ts", + "version": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg13/index.d.ts", + "version": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg14/index.d.ts", + "version": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg15/index.d.ts", + "version": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg16/index.d.ts", + "version": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg17/index.d.ts", + "version": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg18/index.d.ts", + "version": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg19/index.d.ts", + "version": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg20/index.d.ts", + "version": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg21/index.d.ts", + "version": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg22/index.d.ts", + "version": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg5/index.d.ts", + "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg6/index.d.ts", + "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg7/index.d.ts", + "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg8/index.d.ts", + "version": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg9/index.d.ts", + "version": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg10/index.d.ts", + "./pkg10/index.ts" + ], + [ + "./pkg11/index.d.ts", + "./pkg11/index.ts" + ], + [ + "./pkg12/index.d.ts", + "./pkg12/index.ts" + ], + [ + "./pkg13/index.d.ts", + "./pkg13/index.ts" + ], + [ + "./pkg14/index.d.ts", + "./pkg14/index.ts" + ], + [ + "./pkg15/index.d.ts", + "./pkg15/index.ts" + ], + [ + "./pkg16/index.d.ts", + "./pkg16/index.ts" + ], + [ + "./pkg17/index.d.ts", + "./pkg17/index.ts" + ], + [ + "./pkg18/index.d.ts", + "./pkg18/index.ts" + ], + [ + "./pkg19/index.d.ts", + "./pkg19/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg20/index.d.ts", + "./pkg20/index.ts" + ], + [ + "./pkg21/index.d.ts", + "./pkg21/index.ts" + ], + [ + "./pkg22/index.d.ts", + "./pkg22/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ], + [ + "./pkg5/index.d.ts", + "./pkg5/index.ts" + ], + [ + "./pkg6/index.d.ts", + "./pkg6/index.ts" + ], + [ + "./pkg7/index.d.ts", + "./pkg7/index.ts" + ], + [ + "./pkg8/index.d.ts", + "./pkg8/index.ts" + ], + [ + "./pkg9/index.d.ts", + "./pkg9/index.ts" + ] + ], + "size": 3602 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg5/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg6/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg7/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg8/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg9/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg10/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg11/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg12/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg13/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg14/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg15/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg16/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg17/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg18/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg19/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg20/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg21/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg22/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +Signatures:: +(used version) /user/username/projects/myproject/pkg0/index.d.ts + + +Edit [3]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * pkg8/tsconfig.json + * pkg9/tsconfig.json + * pkg10/tsconfig.json + * pkg11/tsconfig.json + * pkg12/tsconfig.json + * pkg13/tsconfig.json + * pkg14/tsconfig.json + * pkg15/tsconfig.json + * pkg16/tsconfig.json + * pkg17/tsconfig.json + * pkg18/tsconfig.json + * pkg19/tsconfig.json + * pkg20/tsconfig.json + * pkg21/tsconfig.json + * pkg22/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date because newest input 'pkg5/index.ts' is older than output 'pkg5/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date because newest input 'pkg6/index.ts' is older than output 'pkg6/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date because newest input 'pkg7/index.ts' is older than output 'pkg7/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is up to date because newest input 'pkg8/index.ts' is older than output 'pkg8/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is up to date because newest input 'pkg9/index.ts' is older than output 'pkg9/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is up to date because newest input 'pkg10/index.ts' is older than output 'pkg10/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is up to date because newest input 'pkg11/index.ts' is older than output 'pkg11/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is up to date because newest input 'pkg12/index.ts' is older than output 'pkg12/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is up to date because newest input 'pkg13/index.ts' is older than output 'pkg13/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is up to date because newest input 'pkg14/index.ts' is older than output 'pkg14/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is up to date because newest input 'pkg15/index.ts' is older than output 'pkg15/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is up to date because newest input 'pkg16/index.ts' is older than output 'pkg16/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is up to date because newest input 'pkg17/index.ts' is older than output 'pkg17/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is up to date because newest input 'pkg18/index.ts' is older than output 'pkg18/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is up to date because newest input 'pkg19/index.ts' is older than output 'pkg19/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is up to date because newest input 'pkg20/index.ts' is older than output 'pkg20/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is up to date because newest input 'pkg21/index.ts' is older than output 'pkg21/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is up to date because newest input 'pkg22/index.ts' is older than output 'pkg22/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-3-projects-in-a-solution.js b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-3-projects-in-a-solution.js new file mode 100644 index 0000000000..19eaec4182 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-3-projects-in-a-solution.js @@ -0,0 +1,694 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg0/index.ts] *new* +export const pkg0 = 0; +//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* + { + "compilerOptions": { "composite": true }, + + } +//// [/user/username/projects/myproject/pkg1/index.ts] *new* +export const pkg1 = 1; +//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg2/index.ts] *new* +export const pkg2 = 2; +//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [ + { "path": "./pkg0" }, + { "path": "./pkg1" }, + { "path": "./pkg2" } + ] +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* +export declare const pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* +export declare const pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg1 = void 0; +exports.pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* +export declare const pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg2 = void 0; +exports.pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n"],"options":{"composite":true},"resolvedRoot":[[2,5],[3,6],[4,7]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ] + ], + "size": 1233 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg1/index.ts + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg2/index.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.d.ts +Signatures:: + + +Edit [0]:: dts doesn't change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1121 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + + +Edit [1]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [2]:: dts change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* +export declare const pkg0 = 0; +export declare const someConst = 10; + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someConst = exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; +exports.someConst = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1187 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n"],"options":{"composite":true},"resolvedRoot":[[2,5],[3,6],[4,7]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ] + ], + "size": 1271 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +Signatures:: +(used version) /user/username/projects/myproject/pkg0/index.d.ts + + +Edit [3]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-5-projects-in-a-solution.js b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-5-projects-in-a-solution.js new file mode 100644 index 0000000000..7e44575678 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-5-projects-in-a-solution.js @@ -0,0 +1,950 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg0/index.ts] *new* +export const pkg0 = 0; +//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* + { + "compilerOptions": { "composite": true }, + + } +//// [/user/username/projects/myproject/pkg1/index.ts] *new* +export const pkg1 = 1; +//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg2/index.ts] *new* +export const pkg2 = 2; +//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg3/index.ts] *new* +export const pkg3 = 3; +//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg4/index.ts] *new* +export const pkg4 = 4; +//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [ + { "path": "./pkg0" }, + { "path": "./pkg1" }, + { "path": "./pkg2" }, + { "path": "./pkg3" }, + { "path": "./pkg4" } + ] +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* +export declare const pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* +export declare const pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg1 = void 0; +exports.pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* +export declare const pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg2 = void 0; +exports.pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* +export declare const pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg3 = void 0; +exports.pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* +export declare const pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg4 = void 0; +exports.pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n"],"options":{"composite":true},"resolvedRoot":[[2,7],[3,8],[4,9],[5,10],[6,11]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ] + ], + "size": 1459 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg1/index.ts + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg2/index.ts + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg3/index.ts + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg4/index.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.d.ts +Signatures:: + + +Edit [0]:: dts doesn't change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1121 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + + +Edit [1]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [2]:: dts change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* +export declare const pkg0 = 0; +export declare const someConst = 10; + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someConst = exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; +exports.someConst = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1187 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n"],"options":{"composite":true},"resolvedRoot":[[2,7],[3,8],[4,9],[5,10],[6,11]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ] + ], + "size": 1497 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +Signatures:: +(used version) /user/username/projects/myproject/pkg0/index.d.ts + + +Edit [3]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-8-projects-in-a-solution.js b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-8-projects-in-a-solution.js new file mode 100644 index 0000000000..baaf20c983 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/projectsBuilding/when-there-are-8-projects-in-a-solution.js @@ -0,0 +1,1334 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg0/index.ts] *new* +export const pkg0 = 0; +//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* + { + "compilerOptions": { "composite": true }, + + } +//// [/user/username/projects/myproject/pkg1/index.ts] *new* +export const pkg1 = 1; +//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg2/index.ts] *new* +export const pkg2 = 2; +//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg3/index.ts] *new* +export const pkg3 = 3; +//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg4/index.ts] *new* +export const pkg4 = 4; +//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg5/index.ts] *new* +export const pkg5 = 5; +//// [/user/username/projects/myproject/pkg5/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg6/index.ts] *new* +export const pkg6 = 6; +//// [/user/username/projects/myproject/pkg6/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg7/index.ts] *new* +export const pkg7 = 7; +//// [/user/username/projects/myproject/pkg7/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [ + { "path": "./pkg0" }, + { "path": "./pkg1" }, + { "path": "./pkg2" }, + { "path": "./pkg3" }, + { "path": "./pkg4" }, + { "path": "./pkg5" }, + { "path": "./pkg6" }, + { "path": "./pkg7" } + ] +} + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* +export declare const pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* +export declare const pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg1 = void 0; +exports.pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* +export declare const pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg2 = void 0; +exports.pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* +export declare const pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg3 = void 0; +exports.pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* +export declare const pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg4 = void 0; +exports.pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg5/index.d.ts] *new* +export declare const pkg5 = 5; + +//// [/user/username/projects/myproject/pkg5/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg5 = void 0; +exports.pkg5 = 5; + +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;","signature":"77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg6/index.d.ts] *new* +export declare const pkg6 = 6; + +//// [/user/username/projects/myproject/pkg6/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg6 = void 0; +exports.pkg6 = 6; + +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;","signature":"579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg7/index.d.ts] *new* +export declare const pkg7 = 7; + +//// [/user/username/projects/myproject/pkg7/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg7 = void 0; +exports.pkg7 = 7; + +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;","signature":"5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,9]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n"],"options":{"composite":true},"resolvedRoot":[[2,10],[3,11],[4,12],[5,13],[6,14],[7,15],[8,16],[9,17]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts" + ], + "original": [ + 2, + 9 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts", + "./pkg5/index.ts", + "./pkg6/index.ts", + "./pkg7/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg5/index.d.ts", + "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg6/index.d.ts", + "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg7/index.d.ts", + "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ], + [ + "./pkg5/index.d.ts", + "./pkg5/index.ts" + ], + [ + "./pkg6/index.d.ts", + "./pkg6/index.ts" + ], + [ + "./pkg7/index.d.ts", + "./pkg7/index.ts" + ] + ], + "size": 1801 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg1/index.ts + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg2/index.ts + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg3/index.ts + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg4/index.ts + +pkg5/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg5/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg5/index.ts + +pkg6/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg6/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg6/index.ts + +pkg7/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg7/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg7/index.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.d.ts +*refresh* /user/username/projects/myproject/pkg5/index.d.ts +*refresh* /user/username/projects/myproject/pkg6/index.d.ts +*refresh* /user/username/projects/myproject/pkg7/index.d.ts +Signatures:: + + +Edit [0]:: dts doesn't change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1121 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + + +Edit [1]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date because newest input 'pkg5/index.ts' is older than output 'pkg5/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date because newest input 'pkg6/index.ts' is older than output 'pkg6/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date because newest input 'pkg7/index.ts' is older than output 'pkg7/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' + + + + +Edit [2]:: dts change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/tsconfig.tsbuildinfo' is older than input 'pkg0' + +[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* +export declare const pkg0 = 0; +export declare const someConst = 10; + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someConst = exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; +exports.someConst = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1187 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,9]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n"],"options":{"composite":true},"resolvedRoot":[[2,10],[3,11],[4,12],[5,13],[6,14],[7,15],[8,16],[9,17]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts" + ], + "original": [ + 2, + 9 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts", + "./pkg5/index.ts", + "./pkg6/index.ts", + "./pkg7/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg5/index.d.ts", + "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg6/index.d.ts", + "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg7/index.d.ts", + "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ], + [ + "./pkg5/index.d.ts", + "./pkg5/index.ts" + ], + [ + "./pkg6/index.d.ts", + "./pkg6/index.ts" + ], + [ + "./pkg7/index.d.ts", + "./pkg7/index.ts" + ] + ], + "size": 1839 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg5/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg6/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg7/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +Signatures:: +(used version) /user/username/projects/myproject/pkg0/index.d.ts + + +Edit [3]:: no change + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'pkg0/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date because newest input 'pkg1/index.ts' is older than output 'pkg1/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date because newest input 'pkg2/index.ts' is older than output 'pkg2/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date because newest input 'pkg3/index.ts' is older than output 'pkg3/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date because newest input 'pkg4/index.ts' is older than output 'pkg4/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date because newest input 'pkg5/index.ts' is older than output 'pkg5/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date because newest input 'pkg6/index.ts' is older than output 'pkg6/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date because newest input 'pkg7/index.ts' is older than output 'pkg7/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'pkg0/index.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js new file mode 100644 index 0000000000..ebb3b8f37a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js @@ -0,0 +1,111 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "files": [ "src/index.ts", "src/hello.json", ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/index.js +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' + Part of 'files' list in tsconfig.json +project/src/index.ts + Part of 'files' list in tsconfig.json +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../src/index.ts","../src/hello.json"]} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": "../src/index.ts" + }, + { + "files": [ + "../src/hello.json" + ], + "original": "../src/hello.json" + } + ], + "size": 74 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js new file mode 100644 index 0000000000..6aeb39923e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js @@ -0,0 +1,173 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "files": [ "src/index.ts", "src/hello.json", ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/src/index.js +TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' + Part of 'files' list in tsconfig.json +project/src/index.ts + Part of 'files' list in tsconfig.json +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/hello.json", + "../src/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/hello.json", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "../src/index.ts", + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./", + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../src/index.ts": [ + "../src/hello.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1432 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js new file mode 100644 index 0000000000..03b9663617 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js @@ -0,0 +1,256 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/main/index.ts] *new* +import { foo } from '../strings/foo.json'; +console.log(foo); +//// [/home/src/workspaces/solution/project/main/tsconfig.json] *new* +{ + "extends": "../tsconfig.json", + "include": [ + "./**/*.ts", + ], + "references": [{ + "path": "../strings/tsconfig.json", + }], +} +//// [/home/src/workspaces/solution/project/strings/foo.json] *new* +{ + "foo": "bar baz" +} +//// [/home/src/workspaces/solution/project/strings/tsconfig.json] *new* +{ + "extends": "../tsconfig.json", + "include": ["foo.json"], + "references": [], +} +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "rootDir": "./", + "composite": true, + "resolveJsonModule": true, + "strict": true, + "esModuleInterop": true, + }, + "references": [ + { "path": "./strings/tsconfig.json" }, + { "path": "./main/tsconfig.json" }, + ], + "files": [], +} + +tsgo --b project --verbose --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/strings/tsconfig.json + * project/main/tsconfig.json + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/strings/tsconfig.json' is out of date because output file 'project/strings/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/strings/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/strings/foo.json + Matched by include pattern 'foo.json' in 'project/strings/tsconfig.json' +[HH:MM:SS AM] Project 'project/main/tsconfig.json' is out of date because output file 'project/main/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/main/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/strings/foo.json + Imported via '../strings/foo.json' from file 'project/main/index.ts' +project/main/index.ts + Matched by include pattern './**/*.ts' in 'project/main/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/main/index.d.ts] *new* +export {}; + +//// [/home/src/workspaces/solution/project/main/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const foo_json_1 = require("../strings/foo.json"); +console.log(foo_json_1.foo); + +//// [/home/src/workspaces/solution/project/main/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}"},{"version":"a22713a27f380b4892020f4caa9bb85f-import { foo } from '../strings/foo.json';\nconsole.log(foo);","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/home/src/workspaces/solution/project/main/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../strings/foo.json", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../strings/foo.json", + "version": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}", + "signature": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}" + } + }, + { + "fileName": "./index.ts", + "version": "a22713a27f380b4892020f4caa9bb85f-import { foo } from '../strings/foo.json';\nconsole.log(foo);", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a22713a27f380b4892020f4caa9bb85f-import { foo } from '../strings/foo.json';\nconsole.log(foo);", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../strings/foo.json" + ] + ], + "options": { + "composite": true, + "esModuleInterop": true, + "module": 1, + "rootDir": "..", + "strict": true, + "target": 1 + }, + "referencedMap": { + "./index.ts": [ + "../strings/foo.json" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1336 +} +//// [/home/src/workspaces/solution/project/strings/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./foo.json"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}"}],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1}} +//// [/home/src/workspaces/solution/project/strings/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./foo.json" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./foo.json" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./foo.json", + "version": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}", + "signature": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "0358fbc55b36110a5af2f042a2f514aa-{\n \"foo\": \"bar baz\"\n}" + } + } + ], + "options": { + "composite": true, + "esModuleInterop": true, + "module": 1, + "rootDir": "..", + "strict": true, + "target": 1 + }, + "size": 1041 +} + +project/strings/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/strings/foo.json +Signatures:: + +project/main/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/strings/foo.json +*refresh* /home/src/workspaces/solution/project/main/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/main/index.ts + + +Edit [0]:: no change + +tsgo --b project --verbose --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/strings/tsconfig.json + * project/main/tsconfig.json + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/strings/tsconfig.json' is up to date because newest input 'project/strings/foo.json' is older than output 'project/strings/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'project/main/tsconfig.json' is up to date because newest input 'project/main/index.ts' is older than output 'project/main/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js new file mode 100644 index 0000000000..a066b6fa31 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js @@ -0,0 +1,111 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "files": [ "src/hello.json" ], "include": [ "src/**/*" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/index.js +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Part of 'files' list in tsconfig.json + Imported via "./hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../src/hello.json","../src/index.ts"]} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/hello.json" + ], + "original": "../src/hello.json" + }, + { + "files": [ + "../src/index.ts" + ], + "original": "../src/index.ts" + } + ], + "size": 74 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js new file mode 100644 index 0000000000..75c1106d57 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js @@ -0,0 +1,173 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "files": [ "src/hello.json" ], "include": [ "src/**/*" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/src/index.js +TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Part of 'files' list in tsconfig.json + Imported via "./hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/hello.json", + "../src/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/hello.json", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "../src/index.ts", + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./", + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../src/index.ts": [ + "../src/hello.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1432 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js new file mode 100644 index 0000000000..b91f4bdf71 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js @@ -0,0 +1,111 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/index.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./index.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*", "src/**/*.json" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/index.json +TSFILE: /home/src/workspaces/solution/project/dist/index.js +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/index.json + Imported via "./index.json" from file 'project/src/index.ts' + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const index_json_1 = __importDefault(require("./index.json")); +exports.default = index_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/index.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../src/index.ts","../src/index.json"]} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": "../src/index.ts" + }, + { + "files": [ + "../src/index.json" + ], + "original": "../src/index.json" + } + ], + "size": 74 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/index.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js new file mode 100644 index 0000000000..e809cb4e10 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js @@ -0,0 +1,173 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/index.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./index.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*", "src/**/*.json" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/src/index.json +TSFILE: /home/src/workspaces/solution/project/dist/src/index.js +TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/index.json + Imported via "./index.json" from file 'project/src/index.ts' + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const index_json_1 = __importDefault(require("./index.json")); +exports.default = index_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/src/index.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"fe545b3049ca1f2ad9aac3a6ebf9aebb-import hello from \"./index.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.json", + "../src/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/index.json", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/index.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "../src/index.ts", + "version": "fe545b3049ca1f2ad9aac3a6ebf9aebb-import hello from \"./index.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fe545b3049ca1f2ad9aac3a6ebf9aebb-import hello from \"./index.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/index.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./", + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../src/index.ts": [ + "../src/index.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1432 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/index.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js new file mode 100644 index 0000000000..1cec780948 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js @@ -0,0 +1,111 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*", "src/**/*.json" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/index.js +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../src/index.ts","../src/hello.json"]} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": "../src/index.ts" + }, + { + "files": [ + "../src/hello.json" + ], + "original": "../src/hello.json" + } + ], + "size": 74 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js new file mode 100644 index 0000000000..dc8239edd9 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js @@ -0,0 +1,173 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*", "src/**/*.json" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/src/index.js +TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/hello.json", + "../src/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/hello.json", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "../src/index.ts", + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./", + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../src/index.ts": [ + "../src/hello.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1432 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js new file mode 100644 index 0000000000..5bd9751d2b --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js @@ -0,0 +1,104 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/index.js +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../src/index.ts"]} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": "../src/index.ts" + } + ], + "size": 54 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js new file mode 100644 index 0000000000..ceaab60daa --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js @@ -0,0 +1,98 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "../hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "rootDir": "src", + }, + "include": [ "src/**/*" ], +} + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/index.js +TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/hello.json + Imported via "../hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("../hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./src/index.ts"]} +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": "./src/index.ts" + } + ], + "size": 53 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js new file mode 100644 index 0000000000..02cc15d857 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js @@ -0,0 +1,163 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "../hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "rootDir": "src", + }, + "include": [ "src/**/*" ], +} + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/index.js +TSFILE: /home/src/workspaces/solution/project/dist/index.d.ts +TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/hello.json + Imported via "../hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/dist/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("../hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","./hello.json","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"a4ada5a36528c3fb01d6f98af94bc507-import hello from \"../hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./dist/index.d.ts"} +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "./hello.json", + "./src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "./src/index.ts", + "version": "a4ada5a36528c3fb01d6f98af94bc507-import hello from \"../hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a4ada5a36528c3fb01d6f98af94bc507-import hello from \"../hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./dist", + "rootDir": "./src", + "skipDefaultLibCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "./hello.json" + ] + }, + "latestChangedDtsFile": "./dist/index.d.ts", + "size": 1446 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js new file mode 100644 index 0000000000..a872caddc9 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js @@ -0,0 +1,106 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "../../hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/project/src/index.js +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +hello.json + Imported via "../../hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +[HH:MM:SS AM] Updating unchanged output timestamps of project 'project/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/project/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("../../hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../src/index.ts"]} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": "../src/index.ts" + } + ], + "size": 54 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js new file mode 100644 index 0000000000..8a4dc3f779 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js @@ -0,0 +1,162 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "../../hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/src/index.js +TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +hello.json + Imported via "../../hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("../../hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../../hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"6f9721ccc194272bc2b0e0566ab15e63-import hello from \"../../hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../../hello.json", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "../src/index.ts", + "version": "6f9721ccc194272bc2b0e0566ab15e63-import hello from \"../../hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f9721ccc194272bc2b0e0566ab15e63-import hello from \"../../hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./", + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../src/index.ts": [ + "../../hello.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1431 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js new file mode 100644 index 0000000000..545fcf8cb2 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js @@ -0,0 +1,98 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/src/index.js +TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./src/index.ts"]} +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": "./src/index.ts" + } + ], + "size": 53 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js new file mode 100644 index 0000000000..29840e7834 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js @@ -0,0 +1,161 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/src/index.js +TSFILE: /home/src/workspaces/solution/project/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "./src/hello.json", + "./src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "./src/index.ts", + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "./src/hello.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1412 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only.js new file mode 100644 index 0000000000..75134d2b92 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/include-only.js @@ -0,0 +1,177 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + + }, + "include": [ "src/**/*" ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +project/src/index.ts:1:19 - error TS6307: File '/home/src/workspaces/solution/project/src/hello.json' is not listed within the file list of project '/home/src/workspaces/solution/project/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +1 import hello from "./hello.json" +   ~~~~~~~~~~~~~~ + +TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/src/index.js +TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' +project/src/index.ts + Matched by include pattern 'src/**/*' in 'project/tsconfig.json' + +Found 1 error in project/src/index.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[3],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../src/hello.json", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "../src/index.ts", + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./", + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../src/index.ts": [ + "../src/hello.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1442 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js new file mode 100644 index 0000000000..f879030840 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js @@ -0,0 +1,127 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "sourceMap": true, + }, + "files": [ "src/index.ts", "src/hello.json", ], +} + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/index.js.map +TSFILE: /home/src/workspaces/solution/project/dist/index.js +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' + Part of 'files' list in tsconfig.json +project/src/index.ts + Part of 'files' list in tsconfig.json +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; +//# sourceMappingURL=index.js.map +//// [/home/src/workspaces/solution/project/dist/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;kBACjB,oBAAK,CAAC,KAAK"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../src/index.ts","../src/hello.json"]} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/index.ts" + ], + "original": "../src/index.ts" + }, + { + "files": [ + "../src/hello.json" + ], + "original": "../src/hello.json" + } + ], + "size": 74 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is up to date because newest input 'project/src/index.ts' is older than output 'project/dist/hello.json' + + diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js new file mode 100644 index 0000000000..cf389624e5 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js @@ -0,0 +1,190 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "sourceMap": true, + }, + "files": [ "src/index.ts", "src/hello.json", ], +} + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json +TSFILE: /home/src/workspaces/solution/project/dist/src/index.js.map +TSFILE: /home/src/workspaces/solution/project/dist/src/index.js +TSFILE: /home/src/workspaces/solution/project/dist/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' + Part of 'files' list in tsconfig.json +project/src/index.ts + Part of 'files' list in tsconfig.json +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/dist/src/hello.json] *new* +{ + "hello": "world" +} + +//// [/home/src/workspaces/solution/project/dist/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/dist/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; +//# sourceMappingURL=index.js.map +//// [/home/src/workspaces/solution/project/dist/src/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;kBACjB,oBAAK,CAAC,KAAK"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/hello.json", + "../src/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/hello.json", + "../src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "../src/index.ts", + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "outDir": "./", + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "../src/index.ts": [ + "../src/hello.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1449 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts + + +Edit [0]:: no change + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is up to date because newest input 'project/src/index.ts' is older than output 'project/dist/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js new file mode 100644 index 0000000000..a6a4b93f44 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js @@ -0,0 +1,118 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": false, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + + "skipDefaultLibCheck": true, + + }, + "files": [ "src/index.ts", "src/hello.json", ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/src/index.js +TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' + Part of 'files' list in tsconfig.json +project/src/index.ts + Part of 'files' list in tsconfig.json +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./src/index.ts","./src/hello.json"]} +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.ts" + ], + "original": "./src/index.ts" + }, + { + "files": [ + "./src/hello.json" + ], + "original": "./src/hello.json" + } + ], + "size": 72 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is up to date because newest input 'project/src/index.ts' is older than output 'project/src/index.js' + + diff --git a/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js b/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js new file mode 100644 index 0000000000..01b7cb87c6 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js @@ -0,0 +1,179 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/src/hello.json] *new* +{ + "hello": "world" +} +//// [/home/src/workspaces/solution/project/src/index.ts] *new* +import hello from "./hello.json" +export default hello.hello +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* + { + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + + "skipDefaultLibCheck": true, + + }, + "files": [ "src/index.ts", "src/hello.json", ], + } + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project/tsconfig.json'... + +TSFILE: /home/src/workspaces/solution/project/src/index.js +TSFILE: /home/src/workspaces/solution/project/src/index.d.ts +TSFILE: /home/src/workspaces/solution/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +project/src/hello.json + Imported via "./hello.json" from file 'project/src/index.ts' + Part of 'files' list in tsconfig.json +project/src/index.ts + Part of 'files' list in tsconfig.json +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/src/index.d.ts] *new* +declare const _default: string; +export default _default; + +//// [/home/src/workspaces/solution/project/src/index.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const hello_json_1 = __importDefault(require("./hello.json")); +exports.default = hello_json_1.default.hello; + +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}"},{"version":"c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello","signature":"a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/index.d.ts"} +//// [/home/src/workspaces/solution/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/hello.json", + "./src/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/hello.json", + "./src/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/hello.json", + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "signature": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}", + "impliedNodeFormat": "None", + "original": { + "version": "18e7247c85a6a2e7a4ec2e284716edd8-{\n \"hello\": \"world\"\n}" + } + }, + { + "fileName": "./src/index.ts", + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c15eb6733af1bd811cd113368bb377e5-import hello from \"./hello.json\"\nexport default hello.hello", + "signature": "a44184f4ac1ed50126ac624c885b51a8-declare const _default: string;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/hello.json" + ] + ], + "options": { + "allowSyntheticDefaultImports": true, + "composite": true, + "esModuleInterop": true, + "module": 1, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "./src/hello.json" + ] + }, + "latestChangedDtsFile": "./src/index.d.ts", + "size": 1416 +} + +project/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/project/src/hello.json +*refresh* /home/src/workspaces/solution/project/src/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/project/src/index.ts + + +Edit [0]:: no change + +tsgo --b project --v --explainFiles --listEmittedFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * project/tsconfig.json + +[HH:MM:SS AM] Project 'project/tsconfig.json' is up to date because newest input 'project/src/index.ts' is older than output 'project/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js b/testdata/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js new file mode 100644 index 0000000000..dc06e690be --- /dev/null +++ b/testdata/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js @@ -0,0 +1,535 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/anotherNonConsecutive.ts] *new* +import { random } from "./random2"; +export const nonConsecutive = "hello"; +//// [/home/src/workspaces/project/asArray1.ts] *new* +import { random } from "./random1"; +export const x = "hello"; +//// [/home/src/workspaces/project/asArray2.ts] *new* +export const x = "hello"; +//// [/home/src/workspaces/project/asArray3.ts] *new* +export const x = "hello"; +//// [/home/src/workspaces/project/file1.ts] *new* +export const x = "hello"; +//// [/home/src/workspaces/project/file2.ts] *new* +export const y = "world"; +//// [/home/src/workspaces/project/nonconsecutive.ts] *new* +import { random } from "./random"; + export const nonConsecutive = "hello"; +//// [/home/src/workspaces/project/random.d.ts] *new* +export const random = "hello"; +//// [/home/src/workspaces/project/random1.d.ts] *new* +export const random = "hello"; +//// [/home/src/workspaces/project/random2.d.ts] *new* +export const random = "hello"; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "include": ["file*.ts", "nonconsecutive*.ts", "asArray*.ts", "anotherNonConsecutive.ts"], +} + +tsgo --b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/anotherNonConsecutive.d.ts] *new* +export declare const nonConsecutive = "hello"; + +//// [/home/src/workspaces/project/anotherNonConsecutive.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.nonConsecutive = void 0; +exports.nonConsecutive = "hello"; + +//// [/home/src/workspaces/project/asArray1.d.ts] *new* +export declare const x = "hello"; + +//// [/home/src/workspaces/project/asArray1.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "hello"; + +//// [/home/src/workspaces/project/asArray2.d.ts] *new* +export declare const x = "hello"; + +//// [/home/src/workspaces/project/asArray2.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "hello"; + +//// [/home/src/workspaces/project/asArray3.d.ts] *new* +export declare const x = "hello"; + +//// [/home/src/workspaces/project/asArray3.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "hello"; + +//// [/home/src/workspaces/project/file1.d.ts] *new* +export declare const x = "hello"; + +//// [/home/src/workspaces/project/file1.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "hello"; + +//// [/home/src/workspaces/project/file2.d.ts] *new* +export declare const y = "world"; + +//// [/home/src/workspaces/project/file2.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = "world"; + +//// [/home/src/workspaces/project/nonconsecutive.d.ts] *new* +export declare const nonConsecutive = "hello"; + +//// [/home/src/workspaces/project/nonconsecutive.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.nonConsecutive = void 0; +exports.nonConsecutive = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3],5,[7,9],11],"fileNames":["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":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";","signature":"ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";","signature":"ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n","impliedNodeFormat":1}],"fileIdsList":[[10],[6],[4]],"options":{"composite":true},"referencedMap":[[11,1],[7,2],[5,3]],"latestChangedDtsFile":"./anotherNonConsecutive.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./file1.ts", + "./file2.ts" + ], + "original": [ + 2, + 3 + ] + }, + { + "files": [ + "./nonconsecutive.ts" + ], + "original": 5 + }, + { + "files": [ + "./asArray1.ts", + "./asArray2.ts", + "./asArray3.ts" + ], + "original": [ + 7, + 9 + ] + }, + { + "files": [ + "./anotherNonConsecutive.ts" + ], + "original": 11 + } + ], + "fileNames": [ + "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": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file1.ts", + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file2.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./random.d.ts", + "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./nonconsecutive.ts", + "version": "805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";", + "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";", + "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./random1.d.ts", + "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./asArray1.ts", + "version": "f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./asArray2.ts", + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./asArray3.ts", + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./random2.d.ts", + "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./anotherNonConsecutive.ts", + "version": "f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";", + "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";", + "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./random2.d.ts" + ], + [ + "./random1.d.ts" + ], + [ + "./random.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./anotherNonConsecutive.ts": [ + "./random2.d.ts" + ], + "./asArray1.ts": [ + "./random1.d.ts" + ], + "./nonconsecutive.ts": [ + "./random.d.ts" + ] + }, + "latestChangedDtsFile": "./anotherNonConsecutive.d.ts", + "size": 2836 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/file1.ts +*refresh* /home/src/workspaces/project/file2.ts +*refresh* /home/src/workspaces/project/random.d.ts +*refresh* /home/src/workspaces/project/nonconsecutive.ts +*refresh* /home/src/workspaces/project/random1.d.ts +*refresh* /home/src/workspaces/project/asArray1.ts +*refresh* /home/src/workspaces/project/asArray2.ts +*refresh* /home/src/workspaces/project/asArray3.ts +*refresh* /home/src/workspaces/project/random2.d.ts +*refresh* /home/src/workspaces/project/anotherNonConsecutive.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/file1.ts +(stored at emit) /home/src/workspaces/project/file2.ts +(stored at emit) /home/src/workspaces/project/nonconsecutive.ts +(stored at emit) /home/src/workspaces/project/asArray1.ts +(stored at emit) /home/src/workspaces/project/asArray2.ts +(stored at emit) /home/src/workspaces/project/asArray3.ts +(stored at emit) /home/src/workspaces/project/anotherNonConsecutive.ts + + +Edit [0]:: delete file1 +//// [/home/src/workspaces/project/file1.d.ts] *deleted* +//// [/home/src/workspaces/project/file1.js] *deleted* +//// [/home/src/workspaces/project/file1.ts] *deleted* + +tsgo --b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that file 'file1.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2,4,[6,8],10],"fileNames":["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":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";","signature":"ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},"cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";",{"version":"f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";","signature":"ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n","impliedNodeFormat":1}],"fileIdsList":[[9],[5],[3]],"options":{"composite":true},"referencedMap":[[10,1],[6,2],[4,3]],"latestChangedDtsFile":"./anotherNonConsecutive.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./file2.ts" + ], + "original": 2 + }, + { + "files": [ + "./nonconsecutive.ts" + ], + "original": 4 + }, + { + "files": [ + "./asArray1.ts", + "./asArray2.ts", + "./asArray3.ts" + ], + "original": [ + 6, + 8 + ] + }, + { + "files": [ + "./anotherNonConsecutive.ts" + ], + "original": 10 + } + ], + "fileNames": [ + "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": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file2.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./random.d.ts", + "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./nonconsecutive.ts", + "version": "805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";", + "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "805bd15692edf65c8f946bb322e0a876-import { random } from \"./random\";\n export const nonConsecutive = \"hello\";", + "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./random1.d.ts", + "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./asArray1.ts", + "version": "f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f1ff3ce44c97592c5ef5a510c8ed269d-import { random } from \"./random1\";\nexport const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./asArray2.ts", + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./asArray3.ts", + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./random2.d.ts", + "version": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "signature": "cc6fd496b46fb211a7b922d3e31cdc4e-export const random = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./anotherNonConsecutive.ts", + "version": "f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";", + "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5ecedece6d42fea3feb8b5832aacd89-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";", + "signature": "ed1a51017d86c01f126fd5c93a77072d-export declare const nonConsecutive = \"hello\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./random2.d.ts" + ], + [ + "./random1.d.ts" + ], + [ + "./random.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./anotherNonConsecutive.ts": [ + "./random2.d.ts" + ], + "./asArray1.ts": [ + "./random1.d.ts" + ], + "./nonconsecutive.ts": [ + "./random.d.ts" + ] + }, + "latestChangedDtsFile": "./anotherNonConsecutive.d.ts", + "size": 2636 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js b/testdata/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js new file mode 100644 index 0000000000..9a30b979d9 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js @@ -0,0 +1,246 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/file1.ts] *new* +export const x = "hello"; +//// [/home/src/workspaces/project/file2.ts] *new* +import { random } from "./random"; +export const y = "world"; +//// [/home/src/workspaces/project/random.d.ts] *new* +export const random = "world"; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "include": ["file*.ts"], +} + +tsgo --b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/file1.d.ts] *new* +export declare const x = "hello"; + +//// [/home/src/workspaces/project/file1.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "hello"; + +//// [/home/src/workspaces/project/file2.d.ts] *new* +export declare const y = "world"; + +//// [/home/src/workspaces/project/file2.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = "world"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2,4],"fileNames":["lib.d.ts","./file1.ts","./random.d.ts","./file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},"c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";",{"version":"451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./file2.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./file1.ts" + ], + "original": 2 + }, + { + "files": [ + "./file2.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./file1.ts", + "./random.d.ts", + "./file2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file1.ts", + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./random.d.ts", + "version": "c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";", + "signature": "c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./file2.ts", + "version": "451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./random.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./file2.ts": [ + "./random.d.ts" + ] + }, + "latestChangedDtsFile": "./file2.d.ts", + "size": 1472 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/file1.ts +*refresh* /home/src/workspaces/project/random.d.ts +*refresh* /home/src/workspaces/project/file2.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/file1.ts +(stored at emit) /home/src/workspaces/project/file2.ts + + +Edit [0]:: delete file1 +//// [/home/src/workspaces/project/file1.d.ts] *deleted* +//// [/home/src/workspaces/project/file1.js] *deleted* +//// [/home/src/workspaces/project/file1.ts] *deleted* + +tsgo --b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that file 'file1.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","./random.d.ts","./file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";",{"version":"451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./file2.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./file2.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "./random.d.ts", + "./file2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./random.d.ts", + "version": "c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";", + "signature": "c532960cfbb52b79226b1f24e7a00dee-export const random = \"world\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./file2.ts", + "version": "451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "451897c48dcc1d64ace3fbee4cc28ab8-import { random } from \"./random\";\nexport const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./random.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./file2.ts": [ + "./random.d.ts" + ] + }, + "latestChangedDtsFile": "./file2.d.ts", + "size": 1275 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js b/testdata/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js new file mode 100644 index 0000000000..5a33c66b61 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js @@ -0,0 +1,287 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/file1.ts] *new* +export const x = "hello"; +//// [/home/src/workspaces/project/file2.ts] *new* +export const y = "world"; +//// [/home/src/workspaces/project/file3.ts] *new* +export const y = "world"; +//// [/home/src/workspaces/project/file4.ts] *new* +export const y = "world"; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "include": ["*.ts"], +} + +tsgo --b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/file1.d.ts] *new* +export declare const x = "hello"; + +//// [/home/src/workspaces/project/file1.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "hello"; + +//// [/home/src/workspaces/project/file2.d.ts] *new* +export declare const y = "world"; + +//// [/home/src/workspaces/project/file2.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = "world"; + +//// [/home/src/workspaces/project/file3.d.ts] *new* +export declare const y = "world"; + +//// [/home/src/workspaces/project/file3.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = "world"; + +//// [/home/src/workspaces/project/file4.d.ts] *new* +export declare const y = "world"; + +//// [/home/src/workspaces/project/file4.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = "world"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./file1.ts","./file2.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./file4.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./file1.ts", + "./file2.ts", + "./file3.ts", + "./file4.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./file1.ts", + "./file2.ts", + "./file3.ts", + "./file4.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file1.ts", + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file2.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file3.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file4.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./file4.d.ts", + "size": 1698 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/file1.ts +*refresh* /home/src/workspaces/project/file2.ts +*refresh* /home/src/workspaces/project/file3.ts +*refresh* /home/src/workspaces/project/file4.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/file1.ts +(stored at emit) /home/src/workspaces/project/file2.ts +(stored at emit) /home/src/workspaces/project/file3.ts +(stored at emit) /home/src/workspaces/project/file4.ts + + +Edit [0]:: delete file1 +//// [/home/src/workspaces/project/file1.d.ts] *deleted* +//// [/home/src/workspaces/project/file1.js] *deleted* +//// [/home/src/workspaces/project/file1.ts] *deleted* + +tsgo --b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that file 'file1.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./file2.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./file4.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./file2.ts", + "./file3.ts", + "./file4.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./file2.ts", + "./file3.ts", + "./file4.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file2.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file3.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file4.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./file4.d.ts", + "size": 1503 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js b/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js new file mode 100644 index 0000000000..8925e1504a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js @@ -0,0 +1,887 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/projects/server/src/server.ts] *new* +import { MyClass } from ':shared/myClass.js'; +console.log('Hello, world!'); +//// [/home/src/workspaces/solution/projects/server/tsconfig.json] *new* +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "..", + "outDir": "./dist", + "paths": { + ":shared/*": ["./src/../../shared/src/*"], + }, + }, + "include": [ "../shared/src/**/*.ts", "src/**/*.ts" ], + "references": [ + { "path": "../shared" }, + ], +} +//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *new* +export function log(str: string) { + console.log(str); +} +//// [/home/src/workspaces/solution/projects/shared/src/myClass.ts] *new* +export class MyClass { } +//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *new* +export function randomFn(str: string) { + console.log(str); +} +//// [/home/src/workspaces/solution/projects/shared/tsconfig.json] *new* +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + }, + "include": ["src/**/*.ts"], +} +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "projects/server" }, + { "path": "projects/shared" }, + ], +} + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output file 'projects/shared/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/random.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output file 'projects/server/dist/server/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/myClass.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/shared/dist/src/random.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/random.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.d.ts] *new* +export {}; + +//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log('Hello, world!'); + +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../../shared/dist/src/random.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[5,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[3,7],[4,8]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../src/server.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../src/server.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/random.d.ts", + "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/random.ts" + ] + ], + "size": 1728 +} +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *new* +export declare function log(str: string): void; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.log = log; +function log(str) { + console.log(str); +} + +//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts] *new* +export declare class MyClass { +} + +//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +class MyClass { +} +exports.MyClass = MyClass; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/random.d.ts] *new* +export declare function randomFn(str: string): void; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/random.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.randomFn = randomFn; +function randomFn(str) { + console.log(str); +} + +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}","signature":"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/random.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/random.ts", + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/random.d.ts", + "size": 1637 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/myClass.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/random.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/projects/shared/src/logging.ts +(stored at emit) /home/src/workspaces/solution/projects/shared/src/myClass.ts +(stored at emit) /home/src/workspaces/solution/projects/shared/src/random.ts + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/random.d.ts +*refresh* /home/src/workspaces/solution/projects/server/src/server.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/projects/server/src/server.ts + + +Edit [0]:: no change + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/random.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/random.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' + + + + +Edit [1]:: edit logging file +//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *modified* +export function log(str: string) { + console.log(str); +}export const x = 10; + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output 'projects/shared/dist/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/random.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output 'projects/server/dist/server/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/myClass.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/shared/dist/src/random.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/random.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../../shared/dist/src/random.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[5,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[3,7],[4,8]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../src/server.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../src/server.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/random.d.ts", + "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/random.ts" + ] + ], + "size": 1758 +} +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *modified* +export declare function log(str: string): void; +export declare const x = 10; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.log = log; +function log(str) { + console.log(str); +} +exports.x = 10; + +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/random.ts", + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/logging.d.ts", + "size": 1688 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/projects/shared/src/logging.ts + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts +Signatures:: +(used version) /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts + + +Edit [2]:: no change + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' + + + + +Edit [3]:: delete random file +//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *deleted* + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because buildinfo file 'projects/shared/dist/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because buildinfo file 'projects/server/dist/server/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/myClass.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[4,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,5],[3,6]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/myClass.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ] + ], + "size": 1591 +} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/logging.d.ts", + "size": 1432 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project.js b/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project.js new file mode 100644 index 0000000000..fba2e0b30f --- /dev/null +++ b/testdata/baselines/reference/tsbuild/roots/when-root-file-is-from-referenced-project.js @@ -0,0 +1,887 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/projects/server/src/server.ts] *new* +import { MyClass } from ':shared/myClass.js'; +console.log('Hello, world!'); +//// [/home/src/workspaces/solution/projects/server/tsconfig.json] *new* +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "..", + "outDir": "./dist", + "paths": { + ":shared/*": ["./src/../../shared/src/*"], + }, + }, + "include": [ "src/**/*.ts", "../shared/src/**/*.ts" ], + "references": [ + { "path": "../shared" }, + ], +} +//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *new* +export function log(str: string) { + console.log(str); +} +//// [/home/src/workspaces/solution/projects/shared/src/myClass.ts] *new* +export class MyClass { } +//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *new* +export function randomFn(str: string) { + console.log(str); +} +//// [/home/src/workspaces/solution/projects/shared/tsconfig.json] *new* +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + }, + "include": ["src/**/*.ts"], +} +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "projects/server" }, + { "path": "projects/shared" }, + ], +} + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output file 'projects/shared/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/random.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output file 'projects/server/dist/server/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/myClass.d.ts + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/random.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/random.ts' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.d.ts] *new* +export {}; + +//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log('Hello, world!'); + +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/random.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[4,7],[5,8]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/random.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/random.d.ts", + "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/random.ts" + ] + ], + "size": 1728 +} +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *new* +export declare function log(str: string): void; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.log = log; +function log(str) { + console.log(str); +} + +//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts] *new* +export declare class MyClass { +} + +//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +class MyClass { +} +exports.MyClass = MyClass; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/random.d.ts] *new* +export declare function randomFn(str: string): void; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/random.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.randomFn = randomFn; +function randomFn(str) { + console.log(str); +} + +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}","signature":"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/random.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/random.ts", + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/random.d.ts", + "size": 1637 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/myClass.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/random.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/projects/shared/src/logging.ts +(stored at emit) /home/src/workspaces/solution/projects/shared/src/myClass.ts +(stored at emit) /home/src/workspaces/solution/projects/shared/src/random.ts + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts +*refresh* /home/src/workspaces/solution/projects/server/src/server.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/random.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/projects/server/src/server.ts + + +Edit [0]:: no change + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/random.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/random.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' + + + + +Edit [1]:: edit logging file +//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *modified* +export function log(str: string) { + console.log(str); +}export const x = 10; + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output 'projects/shared/dist/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/random.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output 'projects/server/dist/server/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/myClass.d.ts + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/random.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/random.ts' +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/random.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[4,7],[5,8]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/random.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/random.d.ts", + "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/random.ts" + ] + ], + "size": 1758 +} +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *modified* +export declare function log(str: string): void; +export declare const x = 10; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.log = log; +function log(str) { + console.log(str); +} +exports.x = 10; + +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/random.ts", + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/logging.d.ts", + "size": 1688 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/projects/shared/src/logging.ts + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts +Signatures:: +(used version) /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts + + +Edit [2]:: no change + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' + + + + +Edit [3]:: delete random file +//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *deleted* + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because buildinfo file 'projects/shared/dist/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because buildinfo file 'projects/server/dist/server/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/myClass.d.ts + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,5],[4,6]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/logging.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ] + ], + "size": 1591 +} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/logging.d.ts", + "size": 1432 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --b projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/shared/dist/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is up to date because newest input 'projects/shared/src/logging.ts' is older than output 'projects/server/dist/server/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js b/testdata/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js new file mode 100644 index 0000000000..0516d44027 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js @@ -0,0 +1,206 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/file1.ts] *new* +export const x = "hello"; +//// [/home/src/workspaces/project/file2.ts] *new* +export const y = "world"; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "include": ["*.ts"], +} + +tsgo --b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/file1.d.ts] *new* +export declare const x = "hello"; + +//// [/home/src/workspaces/project/file1.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "hello"; + +//// [/home/src/workspaces/project/file2.d.ts] *new* +export declare const y = "world"; + +//// [/home/src/workspaces/project/file2.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = "world"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";","signature":"0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n","impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./file2.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./file1.ts", + "./file2.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./file1.ts", + "./file2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file1.ts", + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc7052ed344567798ec87f1c0f8f276c-export const x = \"hello\";", + "signature": "0c71c4d05f424f4dc52c978a9207cdf6-export declare const x = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file2.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./file2.d.ts", + "size": 1308 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/file1.ts +*refresh* /home/src/workspaces/project/file2.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/file1.ts +(stored at emit) /home/src/workspaces/project/file2.ts + + +Edit [0]:: delete file1 +//// [/home/src/workspaces/project/file1.d.ts] *deleted* +//// [/home/src/workspaces/project/file1.js] *deleted* +//// [/home/src/workspaces/project/file1.ts] *deleted* + +tsgo --b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that file 'file1.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";","signature":"64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./file2.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./file2.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./file2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file2.ts", + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "42f7437ec4aafe7a26fc38ec3ba035fe-export const y = \"world\";", + "signature": "64ca81919be0c5adb4964999189ddb2c-export declare const y = \"world\";\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./file2.d.ts", + "size": 1109 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/always-builds-under-with-force-option.js b/testdata/baselines/reference/tsbuild/sample/always-builds-under-with-force-option.js new file mode 100644 index 0000000000..d2e0c62018 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/always-builds-under-with-force-option.js @@ -0,0 +1,547 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --force +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: no change + +tsgo --b tests --force +ExitStatus:: Success +Output:: +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/anotherModule.js] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/user/username/projects/sample1/tests/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/building-project-in-not-build-order-doesnt-throw-error.js b/testdata/baselines/reference/tsbuild/sample/building-project-in-not-build-order-doesnt-throw-error.js new file mode 100644 index 0000000000..bda501271a --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/building-project-in-not-build-order-doesnt-throw-error.js @@ -0,0 +1,75 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b logic2/tsconfig.json --verbose +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * logic2/tsconfig.json + +[HH:MM:SS AM] Project 'logic2/tsconfig.json' is out of date because config file does not exist. + +error TS6053: File '/user/username/projects/sample1/logic2/tsconfig.json' not found. + +Found 1 error. + + diff --git a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-declarationDir-is-specified.js b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-declarationDir-is-specified.js new file mode 100644 index 0000000000..93e1df01d3 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-declarationDir-is-specified.js @@ -0,0 +1,494 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "declarationDir": "out/decls", + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/out/decls/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./out/decls/index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationDir": "./out/decls", + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./out/decls/index.d.ts", + "size": 1893 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/out/decls/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/out/decls/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/out/decls/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/out/decls/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/out/decls/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2048 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/out/decls/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-outDir-is-specified.js b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-outDir-is-specified.js new file mode 100644 index 0000000000..05794d55ab --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-outDir-is-specified.js @@ -0,0 +1,494 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "outDir": "outDir", + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/outDir/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/outDir/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/outDir/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../../core/index.d.ts","../../core/anotherModule.d.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../../core/index.d.ts", + "../../core/anotherModule.d.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../core/index.d.ts", + "../../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "outDir": "./", + "sourceMap": true + }, + "referencedMap": { + "../index.ts": [ + "../../core/index.d.ts", + "../../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1873 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/outDir/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/outDir/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/outDir/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/outDir/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/outDir/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/outDir/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2045 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/outDir/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js new file mode 100644 index 0000000000..a96cc2f902 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js @@ -0,0 +1,158 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts" + ], + "original": "./anotherModule.ts" + }, + { + "files": [ + "./index.ts" + ], + "original": "./index.ts" + }, + { + "files": [ + "./some_decl.d.ts" + ], + "original": "./some_decl.d.ts" + } + ], + "size": 89 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/builds-downstream-projects-even-if-upstream-projects-have-errors.js b/testdata/baselines/reference/tsbuild/sample/builds-downstream-projects-even-if-upstream-projects-have-errors.js new file mode 100644 index 0000000000..0e42fc149c --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/builds-downstream-projects-even-if-upstream-projects-have-errors.js @@ -0,0 +1,568 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.muitply(); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/user/username/projects/sample1/core/index")'. + +3 return c.muitply(); +   ~~~~~~~ + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + + +Found 1 error in logic/index.ts:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): any; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.muitply(); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;AAAA,CACtB;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"4da0a6ee7d4a662685afc8fe143c994d-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":85,"end":92,"code":2339,"category":1,"message":"Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "4da0a6ee7d4a662685afc8fe143c994d-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4da0a6ee7d4a662685afc8fe143c994d-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 85, + "end": 92, + "code": 2339, + "category": 1, + "message": "Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2070 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "07587a8dc02fb971c487c21dd8f4849b-export declare function getSecondsInDay(): any;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2035 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: no change + +tsgo --b tests --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because buildinfo file 'logic/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/user/username/projects/sample1/core/index")'. + +3 return c.muitply(); +   ~~~~~~~ + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... + + +Found 1 error in logic/index.ts:3 + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +logic/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/can-detect-when-and-what-to-rebuild.js b/testdata/baselines/reference/tsbuild/sample/can-detect-when-and-what-to-rebuild.js new file mode 100644 index 0000000000..4a8ea4fa3d --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/can-detect-when-and-what-to-rebuild.js @@ -0,0 +1,863 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: no change + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' + + + + +Edit [1]:: Only builds the leaf node project +//// [/user/username/projects/sample1/tests/index.ts] *modified* +const m = 10; + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/index.ts' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/tests/index.d.ts] *modified* +declare const m = 10; + +//// [/user/username/projects/sample1/tests/index.js] *modified* +const m = 10; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"56d1f0295f08f455bf238abf352169ad-const m = 10;","signature":"5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "56d1f0295f08f455bf238abf352169ad-const m = 10;", + "signature": "5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "56d1f0295f08f455bf238abf352169ad-const m = 10;", + "signature": "5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1153 +} + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [2]:: Detects type-only changes in upstream projects +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "WELCOME PLANET"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAyB,CAAC;AACnD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "WELCOME PLANET"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"5db513b8d1d81d749259481c8a605be6-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; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "5db513b8d1d81d749259481c8a605be6-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; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5db513b8d1d81d749259481c8a605be6-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; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1821 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + + +Edit [3]:: rebuilds when tsconfig changes +//// [/user/username/projects/sample1/tests/tsconfig.json] *modified* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, "target": "es2020", + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.json' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.es2020.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.es2020.full.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"56d1f0295f08f455bf238abf352169ad-const m = 10;","signature":"5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":7},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.es2020.full.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.es2020.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "56d1f0295f08f455bf238abf352169ad-const m = 10;", + "signature": "5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "56d1f0295f08f455bf238abf352169ad-const m = 10;", + "signature": "5371dd1e5a6ad97b9e819afc1cbf0769-declare const m = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 7 + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1176 +} + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2020.full.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /home/src/tslibs/TS/Lib/lib.es2020.full.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/cleaning-project-in-not-build-order-doesnt-throw-error.js b/testdata/baselines/reference/tsbuild/sample/cleaning-project-in-not-build-order-doesnt-throw-error.js new file mode 100644 index 0000000000..5a1bbd8d55 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/cleaning-project-in-not-build-order-doesnt-throw-error.js @@ -0,0 +1,70 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b logic2 --clean +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +error TS6053: File '/user/username/projects/sample1/logic2/tsconfig.json' not found. + +Found 1 error. + + diff --git a/testdata/baselines/reference/tsbuild/sample/does-not-write-any-files-in-a-dry-build.js b/testdata/baselines/reference/tsbuild/sample/does-not-write-any-files-in-a-dry-build.js new file mode 100644 index 0000000000..0a972aa01b --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/does-not-write-any-files-in-a-dry-build.js @@ -0,0 +1,72 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --dry +ExitStatus:: Success +Output:: +[HH:MM:SS AM] A non-dry build would build project '/user/username/projects/sample1/core/tsconfig.json' + +[HH:MM:SS AM] A non-dry build would build project '/user/username/projects/sample1/logic/tsconfig.json' + +[HH:MM:SS AM] A non-dry build would build project '/user/username/projects/sample1/tests/tsconfig.json' + + diff --git a/testdata/baselines/reference/tsbuild/sample/explainFiles.js b/testdata/baselines/reference/tsbuild/sample/explainFiles.js new file mode 100644 index 0000000000..40d59adb7e --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/explainFiles.js @@ -0,0 +1,1062 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --explainFiles --v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +core/anotherModule.ts + Matched by default include pattern '**/*' +core/index.ts + Matched by default include pattern '**/*' +core/some_decl.d.ts + Matched by default include pattern '**/*' +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +core/index.d.ts + Imported via '../core/index' from file 'logic/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.ts + Matched by default include pattern '**/*' +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +core/index.d.ts + Imported via '../core/index' from file 'tests/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.d.ts' + Imported via '../core/anotherModule' from file 'tests/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.d.ts + Imported via '../logic/index' from file 'tests/index.ts' + File is output of project reference source 'logic/index.ts' +tests/index.ts + Part of 'files' list in tsconfig.json +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } + +tsgo --b tests --explainFiles --v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +core/anotherModule.ts + Matched by default include pattern '**/*' +core/index.ts + Matched by default include pattern '**/*' +core/some_decl.d.ts + Matched by default include pattern '**/*' +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'core' + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +core/index.d.ts + Imported via '../core/index' from file 'logic/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.ts + Matched by default include pattern '**/*' +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'core' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +core/index.d.ts + Imported via '../core/index' from file 'tests/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.d.ts' + Imported via '../core/anotherModule' from file 'tests/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.d.ts + Imported via '../logic/index' from file 'tests/index.ts' + File is output of project reference source 'logic/index.ts' +tests/index.ts + Part of 'files' list in tsconfig.json +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1883 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1916 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2075 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [1]:: incremental-declaration-doesnt-change +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } +class someClass2 { } + +tsgo --b tests --explainFiles --v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +core/anotherModule.ts + Matched by default include pattern '**/*' +core/index.ts + Matched by default include pattern '**/*' +core/some_decl.d.ts + Matched by default include pattern '**/*' +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; +class someClass2 { +} + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1905 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + + +Edit [2]:: no change + +tsgo --b tests --explainFiles --v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/sample/indicates-that-it-would-skip-builds-during-a-dry-build.js b/testdata/baselines/reference/tsbuild/sample/indicates-that-it-would-skip-builds-during-a-dry-build.js new file mode 100644 index 0000000000..07231b8451 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/indicates-that-it-would-skip-builds-during-a-dry-build.js @@ -0,0 +1,508 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: --dry + +tsgo --b tests --dry +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Project '/user/username/projects/sample1/core/tsconfig.json' is up to date + +[HH:MM:SS AM] Project '/user/username/projects/sample1/logic/tsconfig.json' is up to date + +[HH:MM:SS AM] Project '/user/username/projects/sample1/tests/tsconfig.json' is up to date + + diff --git a/testdata/baselines/reference/tsbuild/sample/listEmittedFiles.js b/testdata/baselines/reference/tsbuild/sample/listEmittedFiles.js new file mode 100644 index 0000000000..f25e16ba07 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/listEmittedFiles.js @@ -0,0 +1,954 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --listEmittedFiles +ExitStatus:: Success +Output:: +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/anotherModule.d.ts.map +TSFILE: /user/username/projects/sample1/core/anotherModule.d.ts +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/index.d.ts +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/logic/index.js.map +TSFILE: /user/username/projects/sample1/logic/index.js +TSFILE: /user/username/projects/sample1/logic/index.d.ts +TSFILE: /user/username/projects/sample1/logic/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/tests/index.js +TSFILE: /user/username/projects/sample1/tests/index.d.ts +TSFILE: /user/username/projects/sample1/tests/tsconfig.tsbuildinfo +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } + +tsgo --b tests --listEmittedFiles +ExitStatus:: Success +Output:: +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/index.d.ts +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/logic/index.js.map +TSFILE: /user/username/projects/sample1/logic/index.js +TSFILE: /user/username/projects/sample1/logic/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/tests/index.js +TSFILE: /user/username/projects/sample1/tests/tsconfig.tsbuildinfo +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1883 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1916 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2075 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [1]:: incremental-declaration-doesnt-change +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } +class someClass2 { } + +tsgo --b tests --listEmittedFiles +ExitStatus:: Success +Output:: +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; +class someClass2 { +} + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1905 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + + +Edit [2]:: no change + +tsgo --b tests --listEmittedFiles +ExitStatus:: Success +Output:: + diff --git a/testdata/baselines/reference/tsbuild/sample/listFiles.js b/testdata/baselines/reference/tsbuild/sample/listFiles.js new file mode 100644 index 0000000000..8b6a194fa6 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/listFiles.js @@ -0,0 +1,958 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --listFiles +ExitStatus:: Success +Output:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.ts +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.d.ts +/user/username/projects/sample1/tests/index.ts +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } + +tsgo --b tests --listFiles +ExitStatus:: Success +Output:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.ts +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.d.ts +/user/username/projects/sample1/tests/index.ts +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1883 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1916 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2075 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [1]:: incremental-declaration-doesnt-change +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } +class someClass2 { } + +tsgo --b tests --listFiles +ExitStatus:: Success +Output:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; +class someClass2 { +} + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1905 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + + +Edit [2]:: no change + +tsgo --b tests --listFiles +ExitStatus:: Success +Output:: + diff --git a/testdata/baselines/reference/tsbuild/sample/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/testdata/baselines/reference/tsbuild/sample/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js new file mode 100644 index 0000000000..f04de74af2 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -0,0 +1,590 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: convert tsbuildInfo version to something that is say to previous version +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTsPreviousVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTsPreviousVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTsPreviousVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output for it was generated with version 'FakeTsPreviousVersion' that differs with current version 'FakeTSVersion' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTsPreviousVersion' that differs with current version 'FakeTSVersion' + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTsPreviousVersion' that differs with current version 'FakeTSVersion' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/anotherModule.js] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/user/username/projects/sample1/tests/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/rebuilds-from-start-if-force-option-is-set.js b/testdata/baselines/reference/tsbuild/sample/rebuilds-from-start-if-force-option-is-set.js new file mode 100644 index 0000000000..cd96dbdec9 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/rebuilds-from-start-if-force-option-is-set.js @@ -0,0 +1,564 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: --force build + +tsgo --b tests --verbose --force +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is being forcibly rebuilt + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is being forcibly rebuilt + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is being forcibly rebuilt + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/anotherModule.js] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/user/username/projects/sample1/tests/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/rebuilds-when-extended-config-file-changes.js b/testdata/baselines/reference/tsbuild/sample/rebuilds-when-extended-config-file-changes.js new file mode 100644 index 0000000000..eadc874d41 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/rebuilds-when-extended-config-file-changes.js @@ -0,0 +1,638 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.base.json] *new* +{ + "compilerOptions": { + "target": "es5" + } +} +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "extends": "./tsconfig.base.json", "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":1},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 1 + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2049 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: change extended file +//// [/user/username/projects/sample1/tests/tsconfig.base.json] *modified* +{ + "compilerOptions": { } +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.base.json' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +tests/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/removes-all-files-it-built.js b/testdata/baselines/reference/tsbuild/sample/removes-all-files-it-built.js new file mode 100644 index 0000000000..7d62a90c41 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/removes-all-files-it-built.js @@ -0,0 +1,524 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: removes all files it built + +tsgo --b tests --clean +ExitStatus:: Success +Output:: +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *deleted* +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *deleted* +//// [/user/username/projects/sample1/core/anotherModule.js] *deleted* +//// [/user/username/projects/sample1/core/index.d.ts] *deleted* +//// [/user/username/projects/sample1/core/index.d.ts.map] *deleted* +//// [/user/username/projects/sample1/core/index.js] *deleted* +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *deleted* +//// [/user/username/projects/sample1/logic/index.d.ts] *deleted* +//// [/user/username/projects/sample1/logic/index.js] *deleted* +//// [/user/username/projects/sample1/logic/index.js.map] *deleted* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *deleted* +//// [/user/username/projects/sample1/tests/index.d.ts] *deleted* +//// [/user/username/projects/sample1/tests/index.js] *deleted* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *deleted* + + + +Edit [1]:: no change --clean + +tsgo --b tests --clean +ExitStatus:: Success +Output:: + diff --git a/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing-with-force.js b/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing-with-force.js new file mode 100644 index 0000000000..69a3eed6d1 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing-with-force.js @@ -0,0 +1,491 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "files": ["anotherModule.ts", "index.ts", "some_decl.d.ts"], +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose --force +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is being forcibly rebuilt + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is being forcibly rebuilt + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +logic/index.ts:5:22 - error TS2307: Cannot find module '../core/anotherModule' or its corresponding type declarations. + +5 import * as mod from '../core/anotherModule'; +   ~~~~~~~~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is being forcibly rebuilt + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +tests/index.ts:7:22 - error TS2307: Cannot find module '../core/anotherModule' or its corresponding type declarations. + +7 import * as mod from '../core/anotherModule'; +   ~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 logic/index.ts:5 + 1 tests/index.ts:7 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1539 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +export declare const m: any; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../core/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-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":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":126,"end":149,"code":2307,"category":1,"message":"Cannot find module '../core/anotherModule' or its corresponding type declarations."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 126, + "end": 149, + "code": 2307, + "category": 1, + "message": "Cannot find module '../core/anotherModule' or its corresponding type declarations." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +export declare const m: any; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":144,"end":167,"code":2307,"category":1,"message":"Cannot find module '../core/anotherModule' or its corresponding type declarations."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", + "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../logic/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 144, + "end": 167, + "code": 2307, + "category": 1, + "message": "Cannot find module '../core/anotherModule' or its corresponding type declarations." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 1913 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing.js b/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing.js new file mode 100644 index 0000000000..d546837a27 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/reports-error-if-input-file-is-missing.js @@ -0,0 +1,491 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "files": ["anotherModule.ts", "index.ts", "some_decl.d.ts"], +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +logic/index.ts:5:22 - error TS2307: Cannot find module '../core/anotherModule' or its corresponding type declarations. + +5 import * as mod from '../core/anotherModule'; +   ~~~~~~~~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +tests/index.ts:7:22 - error TS2307: Cannot find module '../core/anotherModule' or its corresponding type declarations. + +7 import * as mod from '../core/anotherModule'; +   ~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 logic/index.ts:5 + 1 tests/index.ts:7 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1539 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +export declare const m: any; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../core/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-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":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":126,"end":149,"code":2307,"category":1,"message":"Cannot find module '../core/anotherModule' or its corresponding type declarations."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 126, + "end": 149, + "code": 2307, + "category": 1, + "message": "Cannot find module '../core/anotherModule' or its corresponding type declarations." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +export declare const m: any; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":144,"end":167,"code":2307,"category":1,"message":"Cannot find module '../core/anotherModule' or its corresponding type declarations."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", + "signature": "40bb9a18ac3dbfd340fea197221fa9dd-export declare function getSecondsInDay(): number;\nexport declare const m: any;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "ce0233db1f3aabecabdb072a4f4c8d1e-export declare const m: any;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../logic/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 144, + "end": 167, + "code": 2307, + "category": 1, + "message": "Cannot find module '../core/anotherModule' or its corresponding type declarations." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 1913 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/sample.js b/testdata/baselines/reference/tsbuild/sample/sample.js new file mode 100644 index 0000000000..4b7809803b --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/sample.js @@ -0,0 +1,1233 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'core' + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'core' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1883 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1916 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2075 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [1]:: incremental-declaration-doesnt-change +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } +class someClass2 { } + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; +class someClass2 { +} + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6da67e68a6a36fe29a41c2a1fe0b71b2-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nclass someClass2 { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1905 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + + +Edit [2]:: no change + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' + + + + +Edit [3]:: when logic config changes declaration dir +//// [/user/username/projects/sample1/logic/tsconfig.json] *modified* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationDir": "decls", + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/tsconfig.json' + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'logic' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/logic/decls/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./decls/index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationDir": "./decls", + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./decls/index.d.ts", + "size": 1949 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/decls/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/decls/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/decls/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/decls/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/decls/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2081 +} + +logic/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/decls/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/logic/decls/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [4]:: no change + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js b/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js new file mode 100644 index 0000000000..2a9339f273 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js @@ -0,0 +1,712 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; }multiply(); +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose --stopBuildOnErrors +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. + +3 export function multiply(a: number, b: number) { return a * b; }multiply(); +   ~~~~~~~~ + + core/index.ts:3:26 - An argument for 'a' was not provided. + 3 export function multiply(a: number, b: number) { return a * b; }multiply(); +    ~~~~~~~~~ + +[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors + +[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' was not built + +[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'logic' was not built + + +Found 1 error in core/index.ts:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +multiply(); + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":177,"end":185,"code":2554,"category":1,"message":"Expected 2 arguments, but got 0.","relatedInformation":[{"pos":138,"end":147,"code":6210,"category":3,"message":"An argument for 'a' was not provided."}]}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 177, + "end": 185, + "code": 2554, + "category": 1, + "message": "Expected 2 arguments, but got 0.", + "relatedInformation": [ + { + "pos": 138, + "end": 147, + "code": 6210, + "category": 3, + "message": "An argument for 'a' was not provided." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2078 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + + +Edit [0]:: no change + +tsgo --b tests --verbose --stopBuildOnErrors +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. + +3 export function multiply(a: number, b: number) { return a * b; }multiply(); +   ~~~~~~~~ + + core/index.ts:3:26 - An argument for 'a' was not provided. + 3 export function multiply(a: number, b: number) { return a * b; }multiply(); +    ~~~~~~~~~ + +[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors + +[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' was not built + +[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'logic' was not built + + +Found 1 error in core/index.ts:3 + + +core/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: fix error +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +tsgo --b tests --verbose --stopBuildOnErrors +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js b/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js new file mode 100644 index 0000000000..065dec9b3d --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js @@ -0,0 +1,713 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; }multiply(); +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose --stopBuildOnErrors +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. + +3 export function multiply(a: number, b: number) { return a * b; }multiply(); +   ~~~~~~~~ + + core/index.ts:3:26 - An argument for 'a' was not provided. + 3 export function multiply(a: number, b: number) { return a * b; }multiply(); +    ~~~~~~~~~ + +[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors + +[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'core' has errors + + +Found 1 error in core/index.ts:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +multiply(); + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":177,"end":185,"code":2554,"category":1,"message":"Expected 2 arguments, but got 0.","relatedInformation":[{"pos":138,"end":147,"code":6210,"category":3,"message":"An argument for 'a' was not provided."}]}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 177, + "end": 185, + "code": 2554, + "category": 1, + "message": "Expected 2 arguments, but got 0.", + "relatedInformation": [ + { + "pos": 138, + "end": 147, + "code": 6210, + "category": 3, + "message": "An argument for 'a' was not provided." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2078 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + + +Edit [0]:: no change + +tsgo --b tests --verbose --stopBuildOnErrors +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. + +3 export function multiply(a: number, b: number) { return a * b; }multiply(); +   ~~~~~~~~ + + core/index.ts:3:26 - An argument for 'a' was not provided. + 3 export function multiply(a: number, b: number) { return a * b; }multiply(); +    ~~~~~~~~~ + +[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors + +[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'core' has errors + + +Found 1 error in core/index.ts:3 + + +core/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: fix error +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +tsgo --b tests --verbose --stopBuildOnErrors +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/tsbuildinfo-has-error.js b/testdata/baselines/reference/tsbuild/sample/tsbuildinfo-has-error.js new file mode 100644 index 0000000000..4069a8e8c7 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/tsbuildinfo-has-error.js @@ -0,0 +1,120 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +Some random string + +tsgo --b -i -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "size": 915 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: + + +Edit [0]:: tsbuildinfo written has error +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +Some random string{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} + +tsgo --b -i -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/main.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/when-declaration-option-changes.js b/testdata/baselines/reference/tsbuild/sample/when-declaration-option-changes.js new file mode 100644 index 0000000000..e8f06d8b91 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/when-declaration-option-changes.js @@ -0,0 +1,297 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }",{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"skipDefaultLibCheck":true}} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "skipDefaultLibCheck": true + }, + "size": 1346 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: + + +Edit [0]:: incremental-declaration-changes +//// [/user/username/projects/sample1/core/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true,"skipDefaultLibCheck":true}} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true, + "skipDefaultLibCheck": true + }, + "size": 1741 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/when-declarationMap-changes.js b/testdata/baselines/reference/tsbuild/sample/when-declarationMap-changes.js new file mode 100644 index 0000000000..35545fdb50 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/when-declarationMap-changes.js @@ -0,0 +1,769 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Disable declarationMap +//// [/user/username/projects/sample1/core/tsconfig.json] *modified* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": false, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *modified* +export declare const World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": false, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1819 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Enable declarationMap +//// [/user/username/projects/sample1/core/tsconfig.json] *modified* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *modified* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/when-esModuleInterop-option-changes.js b/testdata/baselines/reference/tsbuild/sample/when-esModuleInterop-option-changes.js new file mode 100644 index 0000000000..58604381f2 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/when-esModuleInterop-option-changes.js @@ -0,0 +1,649 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "esModuleInterop": false, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "esModuleInterop": false, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2062 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/user/username/projects/sample1/tests/tsconfig.json] *modified* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "esModuleInterop": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date because newest input 'core/some_decl.d.ts' is older than output 'core/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.json' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "esModuleInterop": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2061 +} + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuild/sample/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/testdata/baselines/reference/tsbuild/sample/when-input-file-text-does-not-change-but-its-modified-time-changes.js new file mode 100644 index 0000000000..9f96ac80dd --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/when-input-file-text-does-not-change-but-its-modified-time-changes.js @@ -0,0 +1,540 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: upstream project changes without changing file text +//// [/user/username/projects/sample1/core/index.ts] *mTime changed* + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + diff --git a/testdata/baselines/reference/tsbuild/sample/when-logic-specifies-tsBuildInfoFile.js b/testdata/baselines/reference/tsbuild/sample/when-logic-specifies-tsBuildInfoFile.js new file mode 100644 index 0000000000..503139c150 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/when-logic-specifies-tsBuildInfoFile.js @@ -0,0 +1,513 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "ownFile.tsbuildinfo", + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/ownFile.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "tsBuildInfoFile": "./ownFile.tsbuildinfo" + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1921 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuild/sample/when-module-option-changes.js b/testdata/baselines/reference/tsbuild/sample/when-module-option-changes.js new file mode 100644 index 0000000000..0a25a6d1df --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/when-module-option-changes.js @@ -0,0 +1,319 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "module": "node18", + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.es2022.full.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }",{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"module":101}} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "module": 101 + }, + "size": 1344 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: + + +Edit [0]:: incremental-declaration-changes +//// [/user/username/projects/sample1/core/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "module": "nodenext", + }, +} + +tsgo --b core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/tsconfig.json' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.js] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.esnext.full.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"module":199}} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "module": 199 + }, + "size": 1720 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(used version) /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +(computed .d.ts) /user/username/projects/sample1/core/anotherModule.ts +(computed .d.ts) /user/username/projects/sample1/core/index.ts +(used version) /user/username/projects/sample1/core/some_decl.d.ts diff --git a/testdata/baselines/reference/tsbuild/sample/when-target-option-changes.js b/testdata/baselines/reference/tsbuild/sample/when-target-option-changes.js new file mode 100644 index 0000000000..b2100cff48 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/sample/when-target-option-changes.js @@ -0,0 +1,327 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* +/// +/// +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *new* +/// +/// +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "listFiles": true, + "listEmittedFiles": true, + "target": "esnext", + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +/home/src/tslibs/TS/Lib/lib.esnext.d.ts +/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +//// [/home/src/tslibs/TS/Lib/lib.esnext.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +export const World = "hello"; + +//// [/user/username/projects/sample1/core/index.js] *new* +export const someString = "HELLO WORLD"; +export function leftPad(s, n) { return s + n; } +export function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[3,5]],"fileNames":["lib.esnext.d.ts","lib.esnext.full.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"77c880b8984a58da26cd0cab7e052e50-/// \n/// ","19cd44ed7278957051fca663f821c916-export const World = \"hello\";","2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }",{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"target":99}} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 3, + 5 + ] + } + ], + "fileNames": [ + "lib.esnext.d.ts", + "lib.esnext.full.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "lib.esnext.full.d.ts", + "version": "77c880b8984a58da26cd0cab7e052e50-/// \n/// ", + "signature": "77c880b8984a58da26cd0cab7e052e50-/// \n/// ", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "target": 99 + }, + "size": 1471 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.d.ts +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: + + +Edit [0]:: incremental-declaration-changes +//// [/user/username/projects/sample1/core/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "listFiles": true, + "listEmittedFiles": true, + "target": "es5", + }, +} + +tsgo --b core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/tsconfig.json' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.esnext.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +//// [/user/username/projects/sample1/core/anotherModule.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[3,5]],"fileNames":["lib.d.ts","lib.esnext.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":["77c880b8984a58da26cd0cab7e052e50-/// \n/// ",{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }",{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"target":1}} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 3, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "lib.esnext.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "77c880b8984a58da26cd0cab7e052e50-/// \n/// ", + "signature": "77c880b8984a58da26cd0cab7e052e50-/// \n/// ", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "lib.esnext.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "target": 1 + }, + "size": 1458 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +Signatures:: +(used version) /home/src/tslibs/TS/Lib/lib.d.ts diff --git a/testdata/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js b/testdata/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js new file mode 100644 index 0000000000..1ae2b8dea6 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js @@ -0,0 +1,405 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export function foo() { } +//// [/home/src/workspaces/project/b.ts] *new* +export function bar() { } +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "files": [ + "a.ts" + "b.ts" + ] +} + +tsgo --b -w +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +tsconfig.json:7:9 - error TS1005: ',' expected. + +7 "b.ts" +   ~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare function foo(): void; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +function foo() { } + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare function bar(): void; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = bar; +function bar() { } + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b8af959ef8294c415b0415508643e446-export function foo() { }","signature":"7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "b8af959ef8294c415b0415508643e446-export function foo() { }", + "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b8af959ef8294c415b0415508643e446-export function foo() { }", + "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "latestChangedDtsFile": "./b.d.ts", + "size": 1345 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: reports syntax errors after change to config file +//// [/home/src/workspaces/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "composite": true, "declaration": true + }, + "files": [ + "a.ts" + "b.ts" + ] +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +tsconfig.json:7:9 - error TS1005: ',' expected. + +7 "b.ts" +   ~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: reports syntax errors after change to ts file +//// [/home/src/workspaces/project/a.ts] *modified* +export function foo() { }export function fooBar() { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +tsconfig.json:7:9 - error TS1005: ',' expected. + +7 "b.ts" +   ~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare function foo(): void; +export declare function fooBar(): void; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.fooBar = fooBar; +function foo() { } +function fooBar() { } + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }","signature":"f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", + "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", + "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "latestChangedDtsFile": "./a.d.ts", + "size": 1433 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [2]:: reports error when there is no change to tsconfig file +//// [/home/src/workspaces/project/tsconfig.json] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +tsconfig.json:7:9 - error TS1005: ',' expected. + +7 "b.ts" +   ~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [3]:: builds after fixing config file errors +//// [/home/src/workspaces/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "composite": true, "declaration": true + }, + "files": [ + "a.ts", + "b.ts" + ] +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }","signature":"f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedNodeFormat":1},{"version":"492f7ec5be310332dc7e2ef503772d24-export function bar() { }","signature":"2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", + "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12981c250647eb82bb45c5fb79732976-export function foo() { }export function fooBar() { }", + "signature": "f3ff291f5185ac75eeeb6de19fc28a01-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "492f7ec5be310332dc7e2ef503772d24-export function bar() { }", + "signature": "2f1e9992435d5724d3e1da8bdbc17eae-export declare function bar(): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./a.d.ts", + "size": 1382 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js b/testdata/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js new file mode 100644 index 0000000000..3fdefa6ac5 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js @@ -0,0 +1,908 @@ +currentDirectory::/user/username/projects/demo +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/demo/animals/animal.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} +//// [/user/username/projects/demo/animals/dog.ts] *new* +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} +//// [/user/username/projects/demo/animals/index.ts] *new* +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; +//// [/user/username/projects/demo/animals/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { "path": "../core" } + ] +} +//// [/user/username/projects/demo/core/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + }, +} +//// [/user/username/projects/demo/core/utilities.ts] *new* +import * as A from '../animals' +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} +//// [/user/username/projects/demo/tsconfig-base.json] *new* +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + }, +} +//// [/user/username/projects/demo/tsconfig.json] *new* +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals", + }, + { + "path": "./zoo", + }, + ], +} +//// [/user/username/projects/demo/zoo/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} +//// [/user/username/projects/demo/zoo/zoo.ts] *new* +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + +tsgo --b -w --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +animals/index.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/animal.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +1 import Animal from './animal'; +   ~~~~~~~~~~ + +animals/index.ts:4:32 - error TS6307: File '/user/username/projects/demo/animals/dog.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +4 import { createDog, Dog } from './dog'; +   ~~~~~~~ + +core/utilities.ts:1:13 - error TS6133: 'A' is declared but its value is never read. + +1 import * as A from '../animals' +   ~ + +core/utilities.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/index.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + The file is in the program because: + Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' + Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' + +1 import * as A from '../animals' +   ~~~~~~~~~~~~ + + animals/dog.ts:1:20 - File is included via import here. + 1 import Animal from '.'; +    ~~~ + +[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'animals/tsconfig.json'... + +[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... + +[HH:MM:SS AM] Found 4 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/demo/animals/animal.d.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + +//// [/user/username/projects/demo/animals/animal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/demo/animals/dog.d.ts] *new* +import Animal from '.'; +export interface Dog extends Animal { + woof(): void; + name: string; +} +export declare function createDog(): Dog; + +//// [/user/username/projects/demo/animals/dog.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = createDog; +const utilities_1 = require("../core/utilities"); +function createDog() { + return ({ + size: "medium", + woof: function () { + console.log(`${this.name} says "Woof"!`); + }, + name: (0, utilities_1.makeRandomName)() + }); +} + +//// [/user/username/projects/demo/animals/index.d.ts] *new* +import Animal from './animal'; +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + +//// [/user/username/projects/demo/animals/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = void 0; +const dog_1 = require("./dog"); +Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); + +//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + +//// [/user/username/projects/demo/lib/animals/animal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* +import Animal from '.'; +export interface Dog extends Animal { + woof(): void; + name: string; +} +export declare function createDog(): Dog; + +//// [/user/username/projects/demo/lib/animals/dog.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = createDog; +const utilities_1 = require("../core/utilities"); +function createDog() { + return ({ + size: "medium", + woof: function () { + console.log(`${this.name} says "Woof"!`); + }, + name: (0, utilities_1.makeRandomName)() + }); +} + +//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* +import Animal from './animal'; +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + +//// [/user/username/projects/demo/lib/animals/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = void 0; +const dog_1 = require("./dog"); +Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); + +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../animals/animal.ts", + "../../animals/index.ts" + ], + "original": [ + 2, + 3 + ] + }, + { + "files": [ + "../../animals/dog.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../animals/animal.ts", + "../../animals/index.ts", + "../core/utilities.d.ts", + "../../animals/dog.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/animal.ts", + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/index.ts", + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/utilities.d.ts", + "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../animals/dog.ts", + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../animals", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../../animals/dog.ts": [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + "../../animals/index.ts": [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + }, + "latestChangedDtsFile": "./dog.d.ts", + "size": 2794 +} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},{"version":"c71a99e072793c29cda49dd3fea04661-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"fileIdsList":[[4,5],[2,3],[4]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[[5,[{"pos":12,"end":13,"code":6133,"category":1,"message":"'A' is declared but its value is never read.","reportsUnnecessary":true}]]],"latestChangedDtsFile":"./utilities.d.ts"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../../core/utilities.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../animals/animal.ts", + "../../animals/dog.ts", + "../../animals/index.ts", + "../../core/utilities.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/animal.ts", + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/dog.ts", + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/index.ts", + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../core/utilities.ts", + "version": "c71a99e072793c29cda49dd3fea04661-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c71a99e072793c29cda49dd3fea04661-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../animals/index.ts", + "../../core/utilities.ts" + ], + [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ], + [ + "../../animals/index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../core", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../../animals/dog.ts": [ + "../../animals/index.ts", + "../../core/utilities.ts" + ], + "../../animals/index.ts": [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ], + "../../core/utilities.ts": [ + "../../animals/index.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../../core/utilities.ts", + [ + { + "pos": 12, + "end": 13, + "code": 6133, + "category": 1, + "message": "'A' is declared but its value is never read.", + "reportsUnnecessary": true + } + ] + ] + ], + "latestChangedDtsFile": "./utilities.d.ts", + "size": 3302 +} +//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* +export declare function makeRandomName(): string; +export declare function lastElementOf(arr: T[]): T | undefined; + +//// [/user/username/projects/demo/lib/core/utilities.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.makeRandomName = makeRandomName; +exports.lastElementOf = lastElementOf; +function makeRandomName() { + return "Bob!?! "; +} +function lastElementOf(arr) { + if (arr.length === 0) + return undefined; + return arr[arr.length - 1]; +} + +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../zoo/zoo.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../animals/animal.d.ts", + "../animals/dog.d.ts", + "../animals/index.d.ts", + "../../zoo/zoo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../animals/animal.d.ts", + "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/dog.d.ts", + "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/index.d.ts", + "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../zoo/zoo.ts", + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../animals/index.d.ts" + ], + [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../zoo", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ], + "../../zoo/zoo.ts": [ + "../animals/index.d.ts" + ] + }, + "latestChangedDtsFile": "./zoo.d.ts", + "size": 2104 +} +//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* +import { Dog } from '../animals/index'; +export declare function createZoo(): Array; + +//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createZoo = createZoo; +const index_1 = require("../animals/index"); +function createZoo() { + return [ + (0, index_1.createDog)() + ]; +} + + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/animals/animal.ts +*refresh* /user/username/projects/demo/animals/dog.ts +*refresh* /user/username/projects/demo/animals/index.ts +*refresh* /user/username/projects/demo/core/utilities.ts +Signatures:: +(stored at emit) /user/username/projects/demo/animals/animal.ts +(stored at emit) /user/username/projects/demo/animals/dog.ts +(stored at emit) /user/username/projects/demo/animals/index.ts +(stored at emit) /user/username/projects/demo/core/utilities.ts + +animals/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/animals/animal.ts +*refresh* /user/username/projects/demo/animals/index.ts +*refresh* /user/username/projects/demo/lib/core/utilities.d.ts +*refresh* /user/username/projects/demo/animals/dog.ts +Signatures:: +(stored at emit) /user/username/projects/demo/animals/animal.ts +(stored at emit) /user/username/projects/demo/animals/index.ts +(stored at emit) /user/username/projects/demo/animals/dog.ts + +zoo/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/lib/animals/animal.d.ts +*refresh* /user/username/projects/demo/lib/animals/dog.d.ts +*refresh* /user/username/projects/demo/lib/animals/index.d.ts +*refresh* /user/username/projects/demo/zoo/zoo.ts +Signatures:: +(stored at emit) /user/username/projects/demo/zoo/zoo.ts + + +Edit [0]:: Prepend a line +//// [/user/username/projects/demo/core/utilities.ts] *modified* + +import * as A from '../animals' +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'lib/core/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +animals/index.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/animal.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +1 import Animal from './animal'; +   ~~~~~~~~~~ + +animals/index.ts:4:32 - error TS6307: File '/user/username/projects/demo/animals/dog.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +4 import { createDog, Dog } from './dog'; +   ~~~~~~~ + +core/utilities.ts:2:13 - error TS6133: 'A' is declared but its value is never read. + +2 import * as A from '../animals' +   ~ + +core/utilities.ts:2:20 - error TS6307: File '/user/username/projects/demo/animals/index.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. + The file is in the program because: + Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' + Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' + +2 import * as A from '../animals' +   ~~~~~~~~~~~~ + + animals/dog.ts:1:20 - File is included via import here. + 1 import Animal from '.'; +    ~~~ + +[HH:MM:SS AM] Project 'animals/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'animals/tsconfig.json'... + +[HH:MM:SS AM] Found 4 errors. Watching for file changes. + +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},{"version":"c3e46c15bb789df9e21a5ca1964be7a1-\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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"fileIdsList":[[4,5],[2,3],[4]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[[5,[{"pos":13,"end":14,"code":6133,"category":1,"message":"'A' is declared but its value is never read.","reportsUnnecessary":true}]]],"latestChangedDtsFile":"./utilities.d.ts"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../../core/utilities.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../animals/animal.ts", + "../../animals/dog.ts", + "../../animals/index.ts", + "../../core/utilities.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/animal.ts", + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/dog.ts", + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/index.ts", + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../core/utilities.ts", + "version": "c3e46c15bb789df9e21a5ca1964be7a1-\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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c3e46c15bb789df9e21a5ca1964be7a1-\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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../animals/index.ts", + "../../core/utilities.ts" + ], + [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ], + [ + "../../animals/index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../core", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../../animals/dog.ts": [ + "../../animals/index.ts", + "../../core/utilities.ts" + ], + "../../animals/index.ts": [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ], + "../../core/utilities.ts": [ + "../../animals/index.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../../core/utilities.ts", + [ + { + "pos": 13, + "end": 14, + "code": 6133, + "category": 1, + "message": "'A' is declared but its value is never read.", + "reportsUnnecessary": true + } + ] + ] + ], + "latestChangedDtsFile": "./utilities.d.ts", + "size": 3304 +} +//// [/user/username/projects/demo/lib/core/utilities.js] *rewrite with same content* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/demo/core/utilities.ts +Signatures:: +(computed .d.ts) /user/username/projects/demo/core/utilities.ts diff --git a/testdata/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js b/testdata/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js new file mode 100644 index 0000000000..ea64adfac5 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js @@ -0,0 +1,578 @@ +currentDirectory::/user/username/projects/demo +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/demo/animals/animal.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} +//// [/user/username/projects/demo/animals/dog.ts] *new* +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} +//// [/user/username/projects/demo/animals/index.ts] *new* +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; +//// [/user/username/projects/demo/animals/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { "path": "../core" } + ] +} +//// [/user/username/projects/demo/core/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + }, + "references": [ + { + "path": "../zoo", + } + ] +} +//// [/user/username/projects/demo/core/utilities.ts] *new* +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} +//// [/user/username/projects/demo/tsconfig-base.json] *new* +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + }, +} +//// [/user/username/projects/demo/tsconfig.json] *new* +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals", + }, + { + "path": "./zoo", + }, + ], +} +//// [/user/username/projects/demo/zoo/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} +//// [/user/username/projects/demo/zoo/zoo.ts] *new* +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + +tsgo --b -w --verbose +ExitStatus:: ProjectReferenceCycle_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * animals/tsconfig.json + * zoo/tsconfig.json + * core/tsconfig.json + * tsconfig.json + +error TS6202: Project references may not form a circular graph. Cycle detected: /user/username/projects/demo/tsconfig.json +/user/username/projects/demo/core/tsconfig.json +/user/username/projects/demo/zoo/tsconfig.json +/user/username/projects/demo/animals/tsconfig.json +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + + + +Edit [0]:: Fix error +//// [/user/username/projects/demo/core/tsconfig.json] *modified* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + }, +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'animals/tsconfig.json'... + +[HH:MM:SS AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'zoo/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/demo/lib/animals/animal.d.ts] *new* +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + +//// [/user/username/projects/demo/lib/animals/animal.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/demo/lib/animals/dog.d.ts] *new* +import Animal from '.'; +export interface Dog extends Animal { + woof(): void; + name: string; +} +export declare function createDog(): Dog; + +//// [/user/username/projects/demo/lib/animals/dog.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = createDog; +const utilities_1 = require("../core/utilities"); +function createDog() { + return ({ + size: "medium", + woof: function () { + console.log(`${this.name} says "Woof"!`); + }, + name: (0, utilities_1.makeRandomName)() + }); +} + +//// [/user/username/projects/demo/lib/animals/index.d.ts] *new* +import Animal from './animal'; +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + +//// [/user/username/projects/demo/lib/animals/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDog = void 0; +const dog_1 = require("./dog"); +Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); + +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3],5],"fileNames":["lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}","signature":"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedNodeFormat":1},{"version":"d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };","signature":"a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedNodeFormat":1},"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"39dbb9b755eef022e56879989968e5cf-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}","signature":"4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedNodeFormat":1}],"fileIdsList":[[3,4],[2,5]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"referencedMap":[[5,1],[3,2]],"latestChangedDtsFile":"./dog.d.ts"} +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../animals/animal.ts", + "../../animals/index.ts" + ], + "original": [ + 2, + 3 + ] + }, + { + "files": [ + "../../animals/dog.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../../animals/animal.ts", + "../../animals/index.ts", + "../core/utilities.d.ts", + "../../animals/dog.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/animal.ts", + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "47f086fff365b1e8b96a6df2c4313c1a-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../animals/index.ts", + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d6a6b65b86b0330b1a1bd96b1738d5a4-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/utilities.d.ts", + "version": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../animals/dog.ts", + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "39dbb9b755eef022e56879989968e5cf-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}", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../animals", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../../animals/dog.ts": [ + "../../animals/index.ts", + "../core/utilities.d.ts" + ], + "../../animals/index.ts": [ + "../../animals/animal.ts", + "../../animals/dog.ts" + ] + }, + "latestChangedDtsFile": "./dog.d.ts", + "size": 2794 +} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"43144ca7c82db0f51f0d56a2b3e2f565-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}","signature":"096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"latestChangedDtsFile":"./utilities.d.ts"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../core/utilities.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../../core/utilities.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../core/utilities.ts", + "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "43144ca7c82db0f51f0d56a2b3e2f565-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}", + "signature": "096c311e7aecdb577f7b613fbf1716e5-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../core", + "strict": true, + "target": 1 + }, + "latestChangedDtsFile": "./utilities.d.ts", + "size": 1586 +} +//// [/user/username/projects/demo/lib/core/utilities.d.ts] *new* +export declare function makeRandomName(): string; +export declare function lastElementOf(arr: T[]): T | undefined; + +//// [/user/username/projects/demo/lib/core/utilities.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.makeRandomName = makeRandomName; +exports.lastElementOf = lastElementOf; +function makeRandomName() { + return "Bob!?! "; +} +function lastElementOf(arr) { + if (arr.length === 0) + return undefined; + return arr[arr.length - 1]; +} + +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}","signature":"f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2,3]],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"referencedMap":[[3,1],[4,2],[5,1]],"latestChangedDtsFile":"./zoo.d.ts"} +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../zoo/zoo.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../animals/animal.d.ts", + "../animals/dog.d.ts", + "../animals/index.d.ts", + "../../zoo/zoo.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../animals/animal.d.ts", + "version": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "1d76529d4652ddf9ebdfa65e748240fb-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/dog.d.ts", + "version": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "signature": "4dc4bc559452869bfd0d92b5ed5d604f-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../animals/index.d.ts", + "version": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "a3e41a5ccafc3d07a201f0603e28edcf-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../zoo/zoo.ts", + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90c7a8cea6924c55890fba84da3398f3-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}", + "signature": "f9be246631fc3123a90a7f2cf5f5a1a2-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../animals/index.d.ts" + ], + [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 1, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "./", + "rootDir": "../../zoo", + "strict": true, + "target": 1 + }, + "referencedMap": { + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" + ], + "../../zoo/zoo.ts": [ + "../animals/index.d.ts" + ] + }, + "latestChangedDtsFile": "./zoo.d.ts", + "size": 2104 +} +//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] *new* +import { Dog } from '../animals/index'; +export declare function createZoo(): Array; + +//// [/user/username/projects/demo/lib/zoo/zoo.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createZoo = createZoo; +const index_1 = require("../animals/index"); +function createZoo() { + return [ + (0, index_1.createDog)() + ]; +} + + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/core/utilities.ts +Signatures:: +(stored at emit) /user/username/projects/demo/core/utilities.ts + +animals/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/animals/animal.ts +*refresh* /user/username/projects/demo/animals/index.ts +*refresh* /user/username/projects/demo/lib/core/utilities.d.ts +*refresh* /user/username/projects/demo/animals/dog.ts +Signatures:: +(stored at emit) /user/username/projects/demo/animals/animal.ts +(stored at emit) /user/username/projects/demo/animals/index.ts +(stored at emit) /user/username/projects/demo/animals/dog.ts + +zoo/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/demo/lib/animals/animal.d.ts +*refresh* /user/username/projects/demo/lib/animals/dog.d.ts +*refresh* /user/username/projects/demo/lib/animals/index.d.ts +*refresh* /user/username/projects/demo/zoo/zoo.ts +Signatures:: +(stored at emit) /user/username/projects/demo/zoo/zoo.ts diff --git a/testdata/baselines/reference/tsbuildWatch/extends/configDir-template.js b/testdata/baselines/reference/tsbuildWatch/extends/configDir-template.js new file mode 100644 index 0000000000..930bfe52db --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/extends/configDir-template.js @@ -0,0 +1,188 @@ +currentDirectory::/home/src/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/configs/first/tsconfig.json] *new* +{ + "extends": "../second/tsconfig.json", + "include": ["${configDir}/src"], + "compilerOptions": { + "typeRoots": ["root1", "${configDir}/root2", "root3"], + "types": [], + }, +} +//// [/home/src/projects/configs/second/tsconfig.json] *new* +{ + "files": ["${configDir}/main.ts"], + "compilerOptions": { + "declarationDir": "${configDir}/decls", + "paths": { + "@myscope/*": ["${configDir}/types/*"], + }, + }, + "watchOptions": { + "excludeFiles": ["${configDir}/main.ts"], + }, +} +//// [/home/src/projects/myproject/main.ts] *new* +// some comment +export const y = 10; +import { x } from "@myscope/sometype"; +//// [/home/src/projects/myproject/tsconfig.json] *new* +{ + "extends": "../configs/first/tsconfig.json", + "compilerOptions": { + "declaration": true, + "outDir": "outDir", + "traceResolution": true, + }, +} +//// [/home/src/projects/myproject/types/sometype.ts] *new* +export const x = 10; + +tsgo --b -w --explainFiles --v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'outDir/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. +Module name '@myscope/sometype', matched pattern '@myscope/*'. +Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. +Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. +======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +types/sometype.ts + Imported via "@myscope/sometype" from file 'main.ts' +main.ts + Part of 'files' list in tsconfig.json +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/myproject/decls/main.d.ts] *new* +export declare const y = 10; + +//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *new* +export declare const x = 10; + +//// [/home/src/projects/myproject/outDir/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +// some comment +exports.y = 10; + +//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../main.ts"]} +//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../main.ts" + ], + "original": "../main.ts" + } + ], + "size": 49 +} +//// [/home/src/projects/myproject/outDir/types/sometype.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/myproject/types/sometype.ts +*refresh* /home/src/projects/myproject/main.ts +Signatures:: + + +Edit [0]:: edit extended config file +//// [/home/src/projects/configs/first/tsconfig.json] *modified* +{ + "extends": "../second/tsconfig.json", + "include": ["${configDir}/src"], + "compilerOptions": { + "typeRoots": ["${configDir}/root2"], + "types": [], + }, +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'outDir/tsconfig.tsbuildinfo' is older than input '../configs/first/tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. +Module name '@myscope/sometype', matched pattern '@myscope/*'. +Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. +Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. +======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +types/sometype.ts + Imported via "@myscope/sometype" from file 'main.ts' +main.ts + Part of 'files' list in tsconfig.json +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/myproject/decls/main.d.ts] *rewrite with same content* +//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *rewrite with same content* +//// [/home/src/projects/myproject/outDir/main.js] *rewrite with same content* +//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/myproject/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/home/src/projects/myproject/outDir/types/sometype.js] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/myproject/types/sometype.ts +*refresh* /home/src/projects/myproject/main.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/testdata/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js new file mode 100644 index 0000000000..e9cdbb7c50 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js @@ -0,0 +1,307 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/node_modules/pkg2] -> /user/username/projects/myproject/packages/pkg2 *new* +//// [/user/username/projects/myproject/packages/pkg1/index.ts] *new* +import type { TheNum } from 'pkg2' +export const theNum: TheNum = 42; +//// [/user/username/projects/myproject/packages/pkg1/package.json] *new* +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js" +} +//// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "build", + }, + "references": [{ "path": "../pkg2" }], +} +//// [/user/username/projects/myproject/packages/pkg2/const.ts] *new* +export type TheNum = 42; +//// [/user/username/projects/myproject/packages/pkg2/index.ts] *new* +export type { TheNum } from './const.js'; +//// [/user/username/projects/myproject/packages/pkg2/other.ts] *new* +export type TheStr = string; +//// [/user/username/projects/myproject/packages/pkg2/package.json] *new* +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} +//// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + }, +} + +tsgo -b packages/pkg1 --verbose -w --traceResolution +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * packages/pkg2/tsconfig.json + * packages/pkg1/tsconfig.json + +[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... + +======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file types: TypeScript, JavaScript, Declaration, JSON. +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'. ======== +[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... + +======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. +Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules/@types' 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. +'package.json' does not have a 'peerDependencies' field. +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@1.0.0'. ======== +======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file types: TypeScript, JavaScript, Declaration, JSON. +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'. ======== +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.theNum = void 0; +exports.theNum = 42; + +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../index.ts"]} +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../index.ts" + ], + "original": "../index.ts" + } + ], + "size": 50 +} +//// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] *new* +export type TheNum = 42; + +//// [/user/username/projects/myproject/packages/pkg2/build/const.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] *new* +export type { TheNum } from './const.js'; + +//// [/user/username/projects/myproject/packages/pkg2/build/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/other.d.ts] *new* +export type TheStr = string; + +//// [/user/username/projects/myproject/packages/pkg2/build/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../const.ts","../index.ts","../other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"c95c354b23966e289caeaece40bb8d0a-export type { TheNum } from './const.js';","signature":"f257912cfebb94a04c6ba4e8f754166a-export type { TheNum } from './const.js';\n","impliedNodeFormat":1},{"version":"dfadcd1940a5dc36721d3311ebd8eb8b-export type TheStr = string;","signature":"9551f60bc06319547b96535db4cb8520-export type TheStr = string;\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./other.d.ts"} +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../const.ts", + "../index.ts", + "../other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../const.ts", + "../index.ts", + "../other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../const.ts", + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "c95c354b23966e289caeaece40bb8d0a-export type { TheNum } from './const.js';", + "signature": "f257912cfebb94a04c6ba4e8f754166a-export type { TheNum } from './const.js';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c95c354b23966e289caeaece40bb8d0a-export type { TheNum } from './const.js';", + "signature": "f257912cfebb94a04c6ba4e8f754166a-export type { TheNum } from './const.js';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../other.ts", + "version": "dfadcd1940a5dc36721d3311ebd8eb8b-export type TheStr = string;", + "signature": "9551f60bc06319547b96535db4cb8520-export type TheStr = string;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dfadcd1940a5dc36721d3311ebd8eb8b-export type TheStr = string;", + "signature": "9551f60bc06319547b96535db4cb8520-export type TheStr = string;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../const.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../index.ts": [ + "../const.ts" + ] + }, + "latestChangedDtsFile": "./other.d.ts", + "size": 1564 +} + +packages/pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/const.ts +*refresh* /user/username/projects/myproject/packages/pkg2/index.ts +*refresh* /user/username/projects/myproject/packages/pkg2/other.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/packages/pkg2/const.ts +(stored at emit) /user/username/projects/myproject/packages/pkg2/index.ts +(stored at emit) /user/username/projects/myproject/packages/pkg2/other.ts + +packages/pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/build/index.d.ts +*refresh* /user/username/projects/myproject/packages/pkg1/index.ts +Signatures:: + + +Edit [0]:: reports import errors after change to package file +//// [/user/username/projects/myproject/packages/pkg2/package.json] *modified* +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/other.js" +} + + +Output:: + + + +Diff:: Package.json watch pending, so no change detected yet +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,5 +0,0 @@ +-packages/pkg1/index.ts:1:15 - error TS2305: Module '"pkg2"' has no exported member 'TheNum'. +- +-1 import type { TheNum } from 'pkg2' +-   ~~~~~~ +- + +Edit [1]:: removes those errors when a package file is changed back +//// [/user/username/projects/myproject/packages/pkg2/package.json] *modified* +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/moduleResolution/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/testdata/baselines/reference/tsbuildWatch/moduleResolution/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js new file mode 100644 index 0000000000..a5f58bb728 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/moduleResolution/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js @@ -0,0 +1,404 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/node_modules/@types/bar/index.d.ts] *new* +export const bar = 10; +//// [/user/username/projects/myproject/node_modules/@types/foo/index.d.ts] *new* +export const foo = 10; +//// [/user/username/projects/myproject/project1/index.ts] *new* +import { foo } from "file"; +//// [/user/username/projects/myproject/project1/node_modules/file/index.d.ts] *new* +export const foo = 10; +//// [/user/username/projects/myproject/project1/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "types": ["foo", "bar"] + }, + "files": ["index.ts"], +} +//// [/user/username/projects/myproject/project2/index.ts] *new* +import { foo } from "file"; +//// [/user/username/projects/myproject/project2/node_modules/file/index.d.ts] *new* +export const foo = 10; +//// [/user/username/projects/myproject/project2/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "types": ["foo"], + "module": "nodenext", + "moduleResolution": "nodenext" + }, + "files": ["index.ts"], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "files": [], + "references": [ + { "path": "./project1" }, + { "path": "./project2" }, + ], +} + +tsgo --b -w -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * project1/tsconfig.json + * project2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'project1/tsconfig.json' is out of date because output file 'project1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1/tsconfig.json'... + +[HH:MM:SS AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/project1/index.d.ts] *new* +export {}; + +//// [/user/username/projects/myproject/project1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["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":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;",{"version":"7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;","a0d503557e945e94b2464694c91a48ba-export const bar = 10;"],"fileIdsList":[[2]],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "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": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/file/index.d.ts", + "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../node_modules/@types/foo/index.d.ts", + "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../node_modules/@types/bar/index.d.ts", + "version": "a0d503557e945e94b2464694c91a48ba-export const bar = 10;", + "signature": "a0d503557e945e94b2464694c91a48ba-export const bar = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./node_modules/file/index.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./index.ts": [ + "./node_modules/file/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1417 +} +//// [/user/username/projects/myproject/project2/index.d.ts] *new* +export {}; + +//// [/user/username/projects/myproject/project2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;",{"version":"7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;"],"fileIdsList":[[2]],"options":{"composite":true,"module":199},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "./node_modules/file/index.d.ts", + "./index.ts", + "../node_modules/@types/foo/index.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/file/index.d.ts", + "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7ae42cb6eee47288e3acb472bb3aad16-import { foo } from \"file\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../node_modules/@types/foo/index.d.ts", + "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./node_modules/file/index.d.ts" + ] + ], + "options": { + "composite": true, + "module": 199 + }, + "referencedMap": { + "./index.ts": [ + "./node_modules/file/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1344 +} + +project1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/project1/node_modules/file/index.d.ts +*refresh* /user/username/projects/myproject/project1/index.ts +*refresh* /user/username/projects/myproject/node_modules/@types/foo/index.d.ts +*refresh* /user/username/projects/myproject/node_modules/@types/bar/index.d.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/project1/index.ts + +project2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /user/username/projects/myproject/project2/node_modules/file/index.d.ts +*refresh* /user/username/projects/myproject/project2/index.ts +*refresh* /user/username/projects/myproject/node_modules/@types/foo/index.d.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/project2/index.ts + + +Edit [0]:: Append text +//// [/user/username/projects/myproject/project1/index.ts] *modified* +import { foo } from "file";const bar = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1/tsconfig.json + * project2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'project1/tsconfig.json' is out of date because output 'project1/tsconfig.tsbuildinfo' is older than input 'project1/index.ts' + +[HH:MM:SS AM] Building project 'project1/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/project1/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const bar = 10; + +//// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[3],"fileNames":["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":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;",{"version":"1ab147b130b9a5309305c28d6be6beb4-import { foo } from \"file\";const bar = 10;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"bf6a9897955595825a99e7ef50878c55-export const foo = 10;","a0d503557e945e94b2464694c91a48ba-export const bar = 10;"],"fileIdsList":[[2]],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "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": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/file/index.d.ts", + "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "1ab147b130b9a5309305c28d6be6beb4-import { foo } from \"file\";const bar = 10;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1ab147b130b9a5309305c28d6be6beb4-import { foo } from \"file\";const bar = 10;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../node_modules/@types/foo/index.d.ts", + "version": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "signature": "bf6a9897955595825a99e7ef50878c55-export const foo = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../node_modules/@types/bar/index.d.ts", + "version": "a0d503557e945e94b2464694c91a48ba-export const bar = 10;", + "signature": "a0d503557e945e94b2464694c91a48ba-export const bar = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./node_modules/file/index.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./index.ts": [ + "./node_modules/file/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1432 +} + +project1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/project1/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/project1/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/testdata/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js new file mode 100644 index 0000000000..44005f7815 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js @@ -0,0 +1,501 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/node_modules/pkg2] -> /user/username/projects/myproject/packages/pkg2 *new* +//// [/user/username/projects/myproject/packages/pkg1/index.ts] *new* +import type { TheNum } from 'pkg2' +export const theNum: TheNum = 42; +//// [/user/username/projects/myproject/packages/pkg1/package.json] *new* +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} +//// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "build", + "module": "node16", + }, + "references": [{ "path": "../pkg2" }], +} +//// [/user/username/projects/myproject/packages/pkg2/const.cts] *new* +export type TheNum = 42; +//// [/user/username/projects/myproject/packages/pkg2/index.ts] *new* +export type { TheNum } from './const.cjs'; +//// [/user/username/projects/myproject/packages/pkg2/package.json] *new* +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} +//// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "module": "node16", + }, +} + +tsgo -b packages/pkg1 -w --verbose --traceResolution +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * packages/pkg2/tsconfig.json + * packages/pkg1/tsconfig.json + +[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... + +======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file types: TypeScript, JavaScript, Declaration. +File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. +File '/user/username/projects/myproject/packages/pkg2/const.cts' exists - use it as a name resolution result. +======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.cts'. ======== +[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... + +======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. +Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, 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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'. +'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. +'package.json' does not have a 'peerDependencies' field. +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@1.0.0'. ======== +======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file types: TypeScript, JavaScript, Declaration. +File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. +File '/user/username/projects/myproject/packages/pkg2/const.cts' exists - use it as a name resolution result. +======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.cts'. ======== +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *new* +export const theNum = 42; + +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../index.ts"]} +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../index.ts" + ], + "original": "../index.ts" + } + ], + "size": 50 +} +//// [/user/username/projects/myproject/packages/pkg2/build/const.cjs] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/const.d.cts] *new* +export type TheNum = 42; + +//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] *new* +export type { TheNum } from './const.cjs'; + +//// [/user/username/projects/myproject/packages/pkg2/build/index.js] *new* +export {}; + +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.es2022.full.d.ts","../const.cts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';","signature":"2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"composite":true,"module":100,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../const.cts", + "../index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "../const.cts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../const.cts", + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';", + "signature": "2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';", + "signature": "2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "../const.cts" + ] + ], + "options": { + "composite": true, + "module": 100, + "outDir": "./" + }, + "referencedMap": { + "../index.ts": [ + "../const.cts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1403 +} + +packages/pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/const.cts +*refresh* /user/username/projects/myproject/packages/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/packages/pkg2/const.cts +(stored at emit) /user/username/projects/myproject/packages/pkg2/index.ts + +packages/pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.cts +*refresh* /user/username/projects/myproject/packages/pkg2/build/index.d.ts +*refresh* /user/username/projects/myproject/packages/pkg1/index.ts +Signatures:: + + +Edit [0]:: reports import errors after change to package file +//// [/user/username/projects/myproject/packages/pkg1/package.json] *modified* +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "commonjs" +} + + +Output:: + + + +Diff:: Package.json watch pending, so no change detected yet +--- nonIncremental /user/username/projects/myproject/packages/pkg1/build/index.js ++++ incremental /user/username/projects/myproject/packages/pkg1/build/index.js +@@ -1,4 +1,1 @@ +-"use strict"; +-Object.defineProperty(exports, "__esModule", { value: true }); +-exports.theNum = void 0; +-exports.theNum = 42; ++export const theNum = 42; +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,6 +0,0 @@ +-packages/pkg1/index.ts:1:29 - error TS1541: Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute. +- To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. +- +-1 import type { TheNum } from 'pkg2' +-   ~~~~~~ +- + +Edit [1]:: removes those errors when a package file is changed back +//// [/user/username/projects/myproject/packages/pkg1/package.json] *modified* +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} + + +Output:: + + + +Edit [2]:: reports import errors after change to package file +//// [/user/username/projects/myproject/packages/pkg1/package.json] *modified* +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "commonjs" +} + + +Output:: + + + +Diff:: Package.json watch pending, so no change detected yet +--- nonIncremental /user/username/projects/myproject/packages/pkg1/build/index.js ++++ incremental /user/username/projects/myproject/packages/pkg1/build/index.js +@@ -1,4 +1,1 @@ +-"use strict"; +-Object.defineProperty(exports, "__esModule", { value: true }); +-exports.theNum = void 0; +-exports.theNum = 42; ++export const theNum = 42; +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,6 +0,0 @@ +-packages/pkg1/index.ts:1:29 - error TS1541: Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute. +- To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. +- +-1 import type { TheNum } from 'pkg2' +-   ~~~~~~ +- + +Edit [3]:: removes those errors when a package file is changed to cjs extensions +//// [/user/username/projects/myproject/packages/pkg2/index.cts] *new* +export type { TheNum } from './const.cjs'; +//// [/user/username/projects/myproject/packages/pkg2/index.ts] *deleted* +//// [/user/username/projects/myproject/packages/pkg2/package.json] *modified* +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.cjs", + "type": "module" +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * packages/pkg2/tsconfig.json + * packages/pkg1/tsconfig.json + +[HH:MM:SS AM] Project 'packages/pkg2/tsconfig.json' is out of date because output 'packages/pkg2/build/tsconfig.tsbuildinfo' is older than input 'packages/pkg2/index.cts' + +[HH:MM:SS AM] Building project 'packages/pkg2/tsconfig.json'... + +======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file types: TypeScript, JavaScript, Declaration. +File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. +File '/user/username/projects/myproject/packages/pkg2/const.cts' exists - use it as a name resolution result. +======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.cts'. ======== +[HH:MM:SS AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2/tsconfig.json' + +[HH:MM:SS AM] Building project 'packages/pkg1/tsconfig.json'... + +======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. +Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, JavaScript, 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/pkg1/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/packages/node_modules/@types' 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.cjs' that references '/user/username/projects/myproject/node_modules/pkg2/build/index.cjs'. +File name '/user/username/projects/myproject/node_modules/pkg2/build/index.cjs' has a '.cjs' extension - stripping it. +File '/user/username/projects/myproject/node_modules/pkg2/build/index.cts' does not exist. +File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.cts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.cts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.cts'. +======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.cts' with Package ID 'pkg2@1.0.0'. ======== +======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.cts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file types: TypeScript, JavaScript, Declaration. +File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. +File '/user/username/projects/myproject/packages/pkg2/const.cts' exists - use it as a name resolution result. +======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.cts'. ======== +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/packages/pkg1/build/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.theNum = void 0; +exports.theNum = 42; + +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/myproject/packages/pkg1/build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* +//// [/user/username/projects/myproject/packages/pkg2/build/index.cjs] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/myproject/packages/pkg2/build/index.d.cts] *new* +export type { TheNum } from './const.cjs'; + +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.es2022.full.d.ts","../const.cts","../index.cts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be0f939ab1143e4064a3742586332724-export type TheNum = 42;","signature":"56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n","impliedNodeFormat":1},{"version":"7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';","signature":"2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"module":100,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.cts"} +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../const.cts", + "../index.cts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "../const.cts", + "../index.cts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../const.cts", + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "be0f939ab1143e4064a3742586332724-export type TheNum = 42;", + "signature": "56e2d69d2edd1f0edd1a64ecfdf6de0d-export type TheNum = 42;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.cts", + "version": "7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';", + "signature": "2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7bb214373f4d1876e9a0040d287d1b6e-export type { TheNum } from './const.cjs';", + "signature": "2c7786a1f125eb57a4db00a4d58e384a-export type { TheNum } from './const.cjs';\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../const.cts" + ] + ], + "options": { + "composite": true, + "module": 100, + "outDir": "./" + }, + "referencedMap": { + "../index.cts": [ + "../const.cts" + ] + }, + "latestChangedDtsFile": "./index.d.cts", + "size": 1404 +} + +packages/pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/packages/pkg2/index.cts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/packages/pkg2/index.cts + +packages/pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /user/username/projects/myproject/packages/pkg2/build/const.d.cts +*refresh* /user/username/projects/myproject/packages/pkg2/build/index.d.cts +*refresh* /user/username/projects/myproject/packages/pkg1/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js new file mode 100644 index 0000000000..995b3e1d9a --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js @@ -0,0 +1,242 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/a.js] *new* + +//// [/user/username/projects/myproject/b.ts] *new* + +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { + "allowJs": true, + "noEmit": true, + }, +} + +tsgo -b -w -verbose --incremental +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.js","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"99aa06d3014798d86001c324468d497f-","99aa06d3014798d86001c324468d497f-"],"options":{"allowJs":true},"affectedFilesPendingEmit":[2,3]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.js", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.js", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.js", + "version": "99aa06d3014798d86001c324468d497f-", + "signature": "99aa06d3014798d86001c324468d497f-", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "99aa06d3014798d86001c324468d497f-", + "signature": "99aa06d3014798d86001c324468d497f-", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "allowJs": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.js", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1001 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/a.js +*refresh* /user/username/projects/myproject/b.ts +Signatures:: + + +Edit [0]:: No change +//// [/user/username/projects/myproject/a.js] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + + + +Edit [1]:: change +//// [/user/username/projects/myproject/a.js] *modified* +const x = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.js' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.js","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"99aa06d3014798d86001c324468d497f-"],"options":{"allowJs":true},"affectedFilesPendingEmit":[2,3]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.js", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.js", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.js", + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "99aa06d3014798d86001c324468d497f-", + "signature": "99aa06d3014798d86001c324468d497f-", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "allowJs": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.js", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1145 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/a.js +Signatures:: +(computed .d.ts) /user/username/projects/myproject/a.js diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js b/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js new file mode 100644 index 0000000000..f73a69593a --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js @@ -0,0 +1,135 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/a.js] *new* + +//// [/user/username/projects/myproject/b.ts] *new* + +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { + "allowJs": true, + "noEmit": true, + }, +} + +tsgo -b -w -verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./a.js","./b.ts"]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.js" + ], + "original": "./a.js" + }, + { + "files": [ + "./b.ts" + ], + "original": "./b.ts" + } + ], + "size": 54 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/a.js +*refresh* /user/username/projects/myproject/b.ts +Signatures:: + + +Edit [0]:: No change +//// [/user/username/projects/myproject/a.js] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.js' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/a.js +*refresh* /user/username/projects/myproject/b.ts +Signatures:: + + +Edit [1]:: change +//// [/user/username/projects/myproject/a.js] *modified* +const x = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.js' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/a.js +*refresh* /user/username/projects/myproject/b.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..2f795e410b --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental-as-modules.js @@ -0,0 +1,711 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ] + ], + "size": 1368 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17],[3,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ] + ], + "size": 1181 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.d.ts] *new* +export declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/projects/project/b.ts + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1795 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1759 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental.js new file mode 100644 index 0000000000..516fd9568c --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-with-incremental.js @@ -0,0 +1,620 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1341 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1117 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.d.ts] *new* +declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1081 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1614 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1578 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js new file mode 100644 index 0000000000..89195e93aa --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js @@ -0,0 +1,565 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1069 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1393 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1362 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental.js new file mode 100644 index 0000000000..48624d3c0d --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled-with-incremental.js @@ -0,0 +1,499 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1051 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1324 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1293 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled.js new file mode 100644 index 0000000000..4fa764ad36 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors-without-dts-enabled.js @@ -0,0 +1,261 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'a.js' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors.js b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors.js new file mode 100644 index 0000000000..0cbf049d6d --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/dts-errors.js @@ -0,0 +1,335 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": true + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": true + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.d.ts] *new* +declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": true + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": true + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": true + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..24ed893968 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental-as-modules.js @@ -0,0 +1,622 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a: number = "hello" +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", + "signature": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1204 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1327 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1296 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental.js new file mode 100644 index 0000000000..1fbba049e3 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors-with-incremental.js @@ -0,0 +1,554 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a: number = "hello" +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1184 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1258 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.js] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1227 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors.js b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors.js new file mode 100644 index 0000000000..aac03f9508 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/semantic-errors.js @@ -0,0 +1,305 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a: number = "hello" +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./a.ts"],"semanticErrors":true} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 67, + "semanticErrors": true +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"],"semanticErrors":true} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 67, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.js] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..737de58a96 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental-as-modules.js @@ -0,0 +1,593 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = "hello +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1101 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +*not cached* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"changeFileSet":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "changeFileSet": [ + "./a.ts" + ], + "size": 1189 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts" + ], + "size": 1197 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental.js new file mode 100644 index 0000000000..e9407f92c2 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors-with-incremental.js @@ -0,0 +1,521 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = "hello +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1081 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *mTime changed* + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"changeFileSet":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "changeFileSet": [ + "./a.ts" + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1126 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors.js b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors.js new file mode 100644 index 0000000000..dc1fb13fd7 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmit/syntax-errors.js @@ -0,0 +1,307 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = "hello +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + +tsgo -b -verbose -w +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 45 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Emit after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'a.js' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [2]:: no Emit run after fixing error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'tsconfig.json' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [3]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'a.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["./a.ts"]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": "./a.ts" + } + ], + "size": 59 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [4]:: Emit when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [5]:: no Emit run when error +//// [/home/src/projects/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + , "noEmit": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration-with-incremental.js new file mode 100644 index 0000000000..11b28b91d7 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration-with-incremental.js @@ -0,0 +1,1015 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo -b -w -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js|Dts", + 2 + ], + [ + "../src/main.ts", + "Js|Dts", + 3 + ], + [ + "../src/other.ts", + "Js|Dts", + 4 + ] + ], + "size": 1369 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix syntax errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1596 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: +(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts +(stored at emit) /user/username/projects/noEmitOnError/src/other.ts + + +Edit [2]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* + + + +Edit [3]:: semantic errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[3]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 46, + "end": 47, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../src/main.ts", + "Js|Dts", + 3 + ] + ], + "size": 1755 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [4]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Fix semantic errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1587 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [6]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* + + + +Edit [7]:: dts errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","signature":"86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":53,"end":54,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":53,"end":54,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[3,17]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "signature": "86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "signature": "86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "emitDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 53, + "end": 54, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 53, + "end": 54, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../src/main.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ] + ], + "size": 2150 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [8]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [9]:: Fix dts errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1656 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [10]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* + diff --git a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration.js b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration.js new file mode 100644 index 0000000000..9442ebc941 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-declaration.js @@ -0,0 +1,658 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo -b -w -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix syntax errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [2]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [3]:: semantic errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"],"semanticErrors":true} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 117, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [4]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [5]:: Fix semantic errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [6]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [7]:: dts errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [8]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [9]:: Fix dts errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [10]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-incremental.js b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-incremental.js new file mode 100644 index 0000000000..2e165e22e4 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError-with-incremental.js @@ -0,0 +1,892 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo -b -w -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js", + 2 + ], + [ + "../src/main.ts", + "Js", + 3 + ], + [ + "../src/other.ts", + "Js", + 4 + ] + ], + "size": 1370 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix syntax errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1377 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [2]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* + + + +Edit [3]:: semantic errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[3]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 46, + "end": 47, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../src/main.ts", + "Js", + 3 + ] + ], + "size": 1536 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [4]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Fix semantic errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1368 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [6]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* + + + +Edit [7]:: dts errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","signature":"86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "signature": "86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "signature": "86ced526ce468674cf13e9bae78ff450-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(53,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(53,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1605 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [8]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* + + + +Edit [9]:: Fix dts errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1437 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [10]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *mTime changed* + diff --git a/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError.js b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError.js new file mode 100644 index 0000000000..ebda9421cd --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/noEmitOnError/noEmitOnError.js @@ -0,0 +1,563 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo -b -w -v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'dev-build/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix syntax errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [2]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [3]:: semantic errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"],"semanticErrors":true} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 117, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [4]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [5]:: Fix semantic errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dev-build/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../shared/types/db.ts","../src/main.ts","../src/other.ts"]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts" + ], + "original": "../shared/types/db.ts" + }, + { + "files": [ + "../src/main.ts" + ], + "original": "../src/main.ts" + }, + { + "files": [ + "../src/other.ts" + ], + "original": "../src/other.ts" + } + ], + "size": 95 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [6]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [7]:: dts errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [8]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [9]:: Fix dts errors +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [10]:: No Change +//// [/user/username/projects/noEmitOnError/src/main.ts] *mTime changed* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'dev-build/tsconfig.tsbuildinfo' is older than input 'src/main.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-file-with-no-error-changes.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-file-with-no-error-changes.js new file mode 100644 index 0000000000..100bdbf0cb --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-file-with-no-error-changes.js @@ -0,0 +1,429 @@ +currentDirectory::/user/username/projects/solution +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/solution/app/fileWithError.ts] *new* + export var myClassWithError = class { + tags() { } + + }; +//// [/user/username/projects/solution/app/fileWithoutError.ts] *new* +export class myClass { } +//// [/user/username/projects/solution/app/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} + +tsgo -b -w app +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/solution/app/fileWithError.d.ts] *new* +export declare var myClassWithError: { + new (): { + tags(): void; + }; +}; + +//// [/user/username/projects/solution/app/fileWithError.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClassWithError = void 0; +var myClassWithError = class { + tags() { } +}; +exports.myClassWithError = myClassWithError; + +//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *new* +export declare class myClass { +} + +//// [/user/username/projects/solution/app/fileWithoutError.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClass = void 0; +class myClass { +} +exports.myClass = myClass; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };","signature":"767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./fileWithoutError.d.ts"} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };", + "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };", + "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./fileWithoutError.d.ts", + "size": 1460 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/solution/app/fileWithError.ts +*refresh* /user/username/projects/solution/app/fileWithoutError.ts +Signatures:: +(stored at emit) /user/username/projects/solution/app/fileWithError.ts +(stored at emit) /user/username/projects/solution/app/fileWithoutError.ts + + +Edit [0]:: Introduce error +//// [/user/username/projects/solution/app/fileWithError.ts] *modified* +export var myClassWithError = class { + tags() { } + private p = 12 +}; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export var myClassWithError = class { +   ~~~~~~~~~~~~~~~~ + + app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. + 1 export var myClassWithError = class { +    ~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/solution/app/fileWithError.d.ts] *modified* +export declare var myClassWithError: { + new (): { + tags(): void; + p: number; + }; +}; + +//// [/user/username/projects/solution/app/fileWithError.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClassWithError = void 0; +var myClassWithError = class { + tags() { } + p = 12; +}; +exports.myClassWithError = myClassWithError; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "emitDiagnosticsPerFile": [ + [ + "./fileWithError.ts", + [ + { + "pos": 11, + "end": 27, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 11, + "end": 27, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable myClassWithError." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./fileWithError.d.ts", + "emitSignatures": [ + { + "file": "./fileWithError.ts", + "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", + "original": [ + 2, + "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" + ] + } + ], + "size": 2104 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/solution/app/fileWithError.ts +Signatures:: +(computed .d.ts) /user/username/projects/solution/app/fileWithError.ts + + +Edit [1]:: Change fileWithoutError +//// [/user/username/projects/solution/app/fileWithoutError.ts] *modified* +export class myClass2 { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export var myClassWithError = class { +   ~~~~~~~~~~~~~~~~ + + app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. + 1 export var myClassWithError = class { +    ~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *modified* +export declare class myClass2 { +} + +//// [/user/username/projects/solution/app/fileWithoutError.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClass2 = void 0; +class myClass2 { +} +exports.myClass2 = myClass2; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"4494620e0f3a6379be16c2477b86b919-export class myClass2 { }","signature":"cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }", + "signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }", + "signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "emitDiagnosticsPerFile": [ + [ + "./fileWithError.ts", + [ + { + "pos": 11, + "end": 27, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 11, + "end": 27, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable myClassWithError." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./fileWithoutError.d.ts", + "emitSignatures": [ + { + "file": "./fileWithError.ts", + "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", + "original": [ + 2, + "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" + ] + } + ], + "size": 2109 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/solution/app/fileWithoutError.ts +Signatures:: +(computed .d.ts) /user/username/projects/solution/app/fileWithoutError.ts diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-fixing-errors-only-changed-file-is-emitted.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-fixing-errors-only-changed-file-is-emitted.js new file mode 100644 index 0000000000..a1c5d40a3f --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-introduceError-when-fixing-errors-only-changed-file-is-emitted.js @@ -0,0 +1,394 @@ +currentDirectory::/user/username/projects/solution +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/solution/app/fileWithError.ts] *new* + export var myClassWithError = class { + tags() { } + + }; +//// [/user/username/projects/solution/app/fileWithoutError.ts] *new* +export class myClass { } +//// [/user/username/projects/solution/app/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} + +tsgo -b -w app +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/solution/app/fileWithError.d.ts] *new* +export declare var myClassWithError: { + new (): { + tags(): void; + }; +}; + +//// [/user/username/projects/solution/app/fileWithError.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClassWithError = void 0; +var myClassWithError = class { + tags() { } +}; +exports.myClassWithError = myClassWithError; + +//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *new* +export declare class myClass { +} + +//// [/user/username/projects/solution/app/fileWithoutError.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClass = void 0; +class myClass { +} +exports.myClass = myClass; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };","signature":"767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./fileWithoutError.d.ts"} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };", + "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d4354dbd4fafaa0ad3a5b65966837613- export var myClassWithError = class {\n tags() { }\n\n };", + "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./fileWithoutError.d.ts", + "size": 1460 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/solution/app/fileWithError.ts +*refresh* /user/username/projects/solution/app/fileWithoutError.ts +Signatures:: +(stored at emit) /user/username/projects/solution/app/fileWithError.ts +(stored at emit) /user/username/projects/solution/app/fileWithoutError.ts + + +Edit [0]:: Introduce error +//// [/user/username/projects/solution/app/fileWithError.ts] *modified* +export var myClassWithError = class { + tags() { } + private p = 12 +}; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export var myClassWithError = class { +   ~~~~~~~~~~~~~~~~ + + app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. + 1 export var myClassWithError = class { +    ~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/solution/app/fileWithError.d.ts] *modified* +export declare var myClassWithError: { + new (): { + tags(): void; + p: number; + }; +}; + +//// [/user/username/projects/solution/app/fileWithError.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClassWithError = void 0; +var myClassWithError = class { + tags() { } + p = 12; +}; +exports.myClassWithError = myClassWithError; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "emitDiagnosticsPerFile": [ + [ + "./fileWithError.ts", + [ + { + "pos": 11, + "end": 27, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 11, + "end": 27, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable myClassWithError." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./fileWithError.d.ts", + "emitSignatures": [ + { + "file": "./fileWithError.ts", + "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", + "original": [ + 2, + "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" + ] + } + ], + "size": 2104 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/solution/app/fileWithError.ts +Signatures:: +(computed .d.ts) /user/username/projects/solution/app/fileWithError.ts + + +Edit [1]:: Fix error +//// [/user/username/projects/solution/app/fileWithError.ts] *modified* +export var myClassWithError = class { + tags() { } + +}; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/solution/app/fileWithError.d.ts] *modified* +export declare var myClassWithError: { + new (): { + tags(): void; + }; +}; + +//// [/user/username/projects/solution/app/fileWithError.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClassWithError = void 0; +var myClassWithError = class { + tags() { } +}; +exports.myClassWithError = myClassWithError; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};","signature":"767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./fileWithError.d.ts"} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};", + "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};", + "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./fileWithError.d.ts", + "size": 1419 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/solution/app/fileWithError.ts +Signatures:: +(computed .d.ts) /user/username/projects/solution/app/fileWithError.ts diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js new file mode 100644 index 0000000000..238dfdebf7 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js @@ -0,0 +1,328 @@ +currentDirectory::/user/username/projects/solution +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/solution/app/fileWithError.ts] *new* +export var myClassWithError = class { + tags() { } + private p = 12 +}; +//// [/user/username/projects/solution/app/fileWithoutError.ts] *new* +export class myClass { } +//// [/user/username/projects/solution/app/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} + +tsgo -b -w app +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export var myClassWithError = class { +   ~~~~~~~~~~~~~~~~ + + app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. + 1 export var myClassWithError = class { +    ~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/solution/app/fileWithError.d.ts] *new* +export declare var myClassWithError: { + new (): { + tags(): void; + p: number; + }; +}; + +//// [/user/username/projects/solution/app/fileWithError.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClassWithError = void 0; +var myClassWithError = class { + tags() { } + p = 12; +}; +exports.myClassWithError = myClassWithError; + +//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *new* +export declare class myClass { +} + +//// [/user/username/projects/solution/app/fileWithoutError.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClass = void 0; +class myClass { +} +exports.myClass = myClass; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "emitDiagnosticsPerFile": [ + [ + "./fileWithError.ts", + [ + { + "pos": 11, + "end": 27, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 11, + "end": 27, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable myClassWithError." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./fileWithoutError.d.ts", + "emitSignatures": [ + { + "file": "./fileWithError.ts", + "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", + "original": [ + 2, + "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" + ] + } + ], + "size": 2107 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/solution/app/fileWithError.ts +*refresh* /user/username/projects/solution/app/fileWithoutError.ts +Signatures:: +(stored at emit) /user/username/projects/solution/app/fileWithError.ts +(stored at emit) /user/username/projects/solution/app/fileWithoutError.ts + + +Edit [0]:: Change fileWithoutError +//// [/user/username/projects/solution/app/fileWithoutError.ts] *modified* +export class myClass2 { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export var myClassWithError = class { +   ~~~~~~~~~~~~~~~~ + + app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. + 1 export var myClassWithError = class { +    ~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *modified* +export declare class myClass2 { +} + +//// [/user/username/projects/solution/app/fileWithoutError.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClass2 = void 0; +class myClass2 { +} +exports.myClass2 = myClass2; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"4494620e0f3a6379be16c2477b86b919-export class myClass2 { }","signature":"cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }", + "signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }", + "signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "emitDiagnosticsPerFile": [ + [ + "./fileWithError.ts", + [ + { + "pos": 11, + "end": 27, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 11, + "end": 27, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable myClassWithError." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./fileWithoutError.d.ts", + "emitSignatures": [ + { + "file": "./fileWithError.ts", + "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", + "original": [ + 2, + "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" + ] + } + ], + "size": 2109 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/solution/app/fileWithoutError.ts +Signatures:: +(computed .d.ts) /user/username/projects/solution/app/fileWithoutError.ts diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-fixing-error-files-all-files-are-emitted.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-fixing-error-files-all-files-are-emitted.js new file mode 100644 index 0000000000..14e00b8d9a --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-fixing-error-files-all-files-are-emitted.js @@ -0,0 +1,293 @@ +currentDirectory::/user/username/projects/solution +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/solution/app/fileWithError.ts] *new* +export var myClassWithError = class { + tags() { } + private p = 12 +}; +//// [/user/username/projects/solution/app/fileWithoutError.ts] *new* +export class myClass { } +//// [/user/username/projects/solution/app/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} + +tsgo -b -w app +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export var myClassWithError = class { +   ~~~~~~~~~~~~~~~~ + + app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError. + 1 export var myClassWithError = class { +    ~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/solution/app/fileWithError.d.ts] *new* +export declare var myClassWithError: { + new (): { + tags(): void; + p: number; + }; +}; + +//// [/user/username/projects/solution/app/fileWithError.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClassWithError = void 0; +var myClassWithError = class { + tags() { } + p = 12; +}; +exports.myClassWithError = myClassWithError; + +//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *new* +export declare class myClass { +} + +//// [/user/username/projects/solution/app/fileWithoutError.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClass = void 0; +class myClass { +} +exports.myClass = myClass; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};","signature":"4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"message":"Add a type annotation to the variable myClassWithError."}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[[2,"b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n"]]} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};", + "signature": "4763ea6446bf27424942ef44caadabed-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n\n(11,16): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(11,16): error9027: Add a type annotation to the variable myClassWithError.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "emitDiagnosticsPerFile": [ + [ + "./fileWithError.ts", + [ + { + "pos": 11, + "end": 27, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 11, + "end": 27, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable myClassWithError." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./fileWithoutError.d.ts", + "emitSignatures": [ + { + "file": "./fileWithError.ts", + "signature": "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n", + "original": [ + 2, + "b73b369b8f252d3d9d6dcbf326b8e0e8-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n" + ] + } + ], + "size": 2107 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/solution/app/fileWithError.ts +*refresh* /user/username/projects/solution/app/fileWithoutError.ts +Signatures:: +(stored at emit) /user/username/projects/solution/app/fileWithError.ts +(stored at emit) /user/username/projects/solution/app/fileWithoutError.ts + + +Edit [0]:: Fix error +//// [/user/username/projects/solution/app/fileWithError.ts] *modified* +export var myClassWithError = class { + tags() { } + +}; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/solution/app/fileWithError.d.ts] *modified* +export declare var myClassWithError: { + new (): { + tags(): void; + }; +}; + +//// [/user/username/projects/solution/app/fileWithError.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myClassWithError = void 0; +var myClassWithError = class { + tags() { } +}; +exports.myClassWithError = myClassWithError; + +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};","signature":"767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedNodeFormat":1},{"version":"181818468a51a2348d25d30b10b6b1bb-export class myClass { }","signature":"00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./fileWithError.d.ts"} +//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./fileWithError.ts", + "./fileWithoutError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithError.ts", + "version": "4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};", + "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f90afddb8044264e464dd4c18c7b59a-export var myClassWithError = class {\n tags() { }\n \n};", + "signature": "767d370715ef9e7e7e190b09dbf6cb11-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileWithoutError.ts", + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "181818468a51a2348d25d30b10b6b1bb-export class myClass { }", + "signature": "00d3ac9a4cccbf94649ca3c19d44376a-export declare class myClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./fileWithError.d.ts", + "size": 1419 +} + +app/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/solution/app/fileWithError.ts +Signatures:: +(computed .d.ts) /user/username/projects/solution/app/fileWithError.ts diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js new file mode 100644 index 0000000000..1aad07451f --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js @@ -0,0 +1,91 @@ +currentDirectory::/user/username/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/project/main.ts] *new* +export const x = 10; +//// [/user/username/projects/project/tsconfig.json] *new* +{} +//// [/user/username/projects/project/tsconfig.tsbuildinfo] *new* +Some random string + +tsgo --b -i -w +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/project/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/user/username/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} +//// [/user/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "size": 915 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/main.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js new file mode 100644 index 0000000000..850351201a --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js @@ -0,0 +1,401 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/App/app.ts] *new* +import { createSomeObject } from "../Library/library"; +createSomeObject().message; +//// [/user/username/projects/sample1/App/tsconfig.json] *new* +{ + "references": [{ "path": "../Library" }] +} +//// [/user/username/projects/sample1/Library/library.ts] *new* +interface SomeObject +{ + message: string; +} + +export function createSomeObject(): SomeObject +{ + return { + message: "new Object" + }; +} +//// [/user/username/projects/sample1/Library/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} + +tsgo -b -w App +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/App/app.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const library_1 = require("../Library/library"); +(0, library_1.createSomeObject)().message; + +//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./app.ts"]} +//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./app.ts" + ], + "original": "./app.ts" + } + ], + "size": 47 +} +//// [/user/username/projects/sample1/Library/library.d.ts] *new* +interface SomeObject { + message: string; +} +export declare function createSomeObject(): SomeObject; +export {}; + +//// [/user/username/projects/sample1/Library/library.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createSomeObject = createSomeObject; +function createSomeObject() { + return { + message: "new Object" + }; +} + +//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./library.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./library.d.ts"} +//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./library.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./library.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./library.ts", + "version": "e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", + "signature": "4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", + "signature": "4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./library.d.ts", + "size": 1326 +} + +Library/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/Library/library.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/Library/library.ts + +App/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/Library/library.d.ts +*refresh* /user/username/projects/sample1/App/app.ts +Signatures:: + + +Edit [0]:: Introduce error +//// [/user/username/projects/sample1/Library/library.ts] *modified* +interface SomeObject +{ + message2: string; +} + +export function createSomeObject(): SomeObject +{ + return { + message2: "new Object" + }; +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +App/app.ts:2:20 - error TS2551: Property 'message' does not exist on type 'SomeObject'. Did you mean 'message2'? + +2 createSomeObject().message; +   ~~~~~~~ + + Library/library.d.ts:2:5 - 'message2' is declared here. + 2 message2: string; +    ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/sample1/App/app.js] *rewrite with same content* +//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./app.ts"],"semanticErrors":true} +//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./app.ts" + ], + "original": "./app.ts" + } + ], + "size": 69, + "semanticErrors": true +} +//// [/user/username/projects/sample1/Library/library.d.ts] *modified* +interface SomeObject { + message2: string; +} +export declare function createSomeObject(): SomeObject; +export {}; + +//// [/user/username/projects/sample1/Library/library.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createSomeObject = createSomeObject; +function createSomeObject() { + return { + message2: "new Object" + }; +} + +//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./library.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"81f8dc50fd9871a106f1c06cc8e652ac-interface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}","signature":"f8bbfda93d56bdf575656b7c6a31c95f-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./library.d.ts"} +//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./library.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./library.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./library.ts", + "version": "81f8dc50fd9871a106f1c06cc8e652ac-interface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}", + "signature": "f8bbfda93d56bdf575656b7c6a31c95f-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "81f8dc50fd9871a106f1c06cc8e652ac-interface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}", + "signature": "f8bbfda93d56bdf575656b7c6a31c95f-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./library.d.ts", + "size": 1329 +} + +Library/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/Library/library.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/Library/library.ts + +App/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/Library/library.d.ts +*refresh* /user/username/projects/sample1/App/app.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/sample1/Library/library.ts] *modified* +interface SomeObject +{ + message: string; +} + +export function createSomeObject(): SomeObject +{ + return { + message: "new Object" + }; +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/App/app.js] *rewrite with same content* +//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./app.ts"]} +//// [/user/username/projects/sample1/App/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./app.ts" + ], + "original": "./app.ts" + } + ], + "size": 47 +} +//// [/user/username/projects/sample1/Library/library.d.ts] *modified* +interface SomeObject { + message: string; +} +export declare function createSomeObject(): SomeObject; +export {}; + +//// [/user/username/projects/sample1/Library/library.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createSomeObject = createSomeObject; +function createSomeObject() { + return { + message: "new Object" + }; +} + +//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./library.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./library.d.ts"} +//// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./library.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./library.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./library.ts", + "version": "e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", + "signature": "4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e7ed447430123527643b512119fcfd4f-interface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", + "signature": "4e6561e4d0bb63e65443157d6f0b1d5d-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./library.d.ts", + "size": 1326 +} + +Library/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/Library/library.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/Library/library.ts + +App/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/Library/library.d.ts +*refresh* /user/username/projects/sample1/App/app.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js new file mode 100644 index 0000000000..26d41d3ab1 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js @@ -0,0 +1,271 @@ +currentDirectory::/user/username/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/project/alpha.tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true, + }, +} +//// [/user/username/projects/project/bravo.tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true, + }, +} +//// [/user/username/projects/project/commonFile1.ts] *new* +let x = 1 +//// [/user/username/projects/project/commonFile2.ts] *new* +let y = 1 +//// [/user/username/projects/project/other.ts] *new* +let z = 0; +//// [/user/username/projects/project/project1.tsconfig.json] *new* +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "composite": true, + }, + "files": ["commonFile1.ts", "commonFile2.ts"], +} +//// [/user/username/projects/project/project2.tsconfig.json] *new* +{ + "extends": "./bravo.tsconfig.json", + "compilerOptions": { + "composite": true, + }, + "files": ["other.ts"], +} +//// [/user/username/projects/project/tsconfig.json] *new* +{ + "references": [ + { + "path": "./project1.tsconfig.json", + }, + { + "path": "./project2.tsconfig.json", + }, + ], + "files": [], +} + +tsgo -b -w -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'project1.tsconfig.json' is out of date because output file 'project1.tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1.tsconfig.json'... + +[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output file 'project2.tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2.tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/project/commonFile1.d.ts] *new* +declare let x: number; + +//// [/user/username/projects/project/commonFile1.js] *new* +let x = 1; + +//// [/user/username/projects/project/commonFile2.d.ts] *new* +declare let y: number; + +//// [/user/username/projects/project/commonFile2.js] *new* +let y = 1; + +//// [/user/username/projects/project/other.d.ts] *new* +declare let z: number; + +//// [/user/username/projects/project/other.js] *new* +let z = 0; + +//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./commonFile1.ts","./commonFile2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1","signature":"0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06ce815ba25b02847f0b8550f82f5a25-let y = 1","signature":"114cede92fdd1b7222858083021aeba2-declare let y: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":true},"latestChangedDtsFile":"./commonFile2.d.ts"} +//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./commonFile1.ts", + "./commonFile2.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./commonFile1.ts", + "./commonFile2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./commonFile1.ts", + "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", + "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", + "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./commonFile2.ts", + "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", + "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", + "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "strict": true + }, + "latestChangedDtsFile": "./commonFile2.d.ts", + "size": 1330 +} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7148e8559d706b66aaba2a2423755c63-let z = 0;","signature":"879426698e1db06899fd57775c19b230-declare let z: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":true},"latestChangedDtsFile":"./other.d.ts"} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./other.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./other.ts", + "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", + "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", + "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "strict": true + }, + "latestChangedDtsFile": "./other.d.ts", + "size": 1119 +} + +project1.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/commonFile1.ts +*refresh* /user/username/projects/project/commonFile2.ts +Signatures:: +(stored at emit) /user/username/projects/project/commonFile1.ts +(stored at emit) /user/username/projects/project/commonFile2.ts + +project2.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/other.ts +Signatures:: +(stored at emit) /user/username/projects/project/other.ts + + +Edit [0]:: Remove project2 from base config +//// [/user/username/projects/project/tsconfig.json] *modified* +{ + "references": [ + { + "path": "./project1.tsconfig.json", + }, + ], + "files": [], +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + + diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js new file mode 100644 index 0000000000..5ff37bd8ce --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js @@ -0,0 +1,110 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/index.ts] *new* +const fn = (a: string, b: string) => b; +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { + "noUnusedParameters": true, + }, +} + +tsgo -b -w +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +index.ts:1:13 - error TS6133: 'a' is declared but its value is never read. + +1 const fn = (a: string, b: string) => b; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/index.js] *new* +const fn = (a, b) => b; + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./index.ts"],"semanticErrors":true} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": "./index.ts" + } + ], + "size": 71, + "semanticErrors": true +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/index.ts +Signatures:: + + +Edit [0]:: Change tsconfig to set noUnusedParameters to false +//// [/user/username/projects/myproject/tsconfig.json] *modified* +{ + "compilerOptions": { + "noUnusedParameters": false, + }, +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/index.js] *rewrite with same content* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./index.ts"]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": "./index.ts" + } + ], + "size": 49 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js new file mode 100644 index 0000000000..fca155d58a --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js @@ -0,0 +1,804 @@ +currentDirectory::/user/username/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/project/alpha.tsconfig.json] *new* +{} +//// [/user/username/projects/project/bravo.tsconfig.json] *new* +{ + "extends": "./alpha.tsconfig.json", +} +//// [/user/username/projects/project/commonFile1.ts] *new* +let x = 1 +//// [/user/username/projects/project/commonFile2.ts] *new* +let y = 1 +//// [/user/username/projects/project/extendsConfig1.tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, +} +//// [/user/username/projects/project/extendsConfig2.tsconfig.json] *new* +{ + "compilerOptions": { + "strictNullChecks": false, + }, +} +//// [/user/username/projects/project/extendsConfig3.tsconfig.json] *new* +{ + "compilerOptions": { + "noImplicitAny": true, + }, +} +//// [/user/username/projects/project/other.ts] *new* +let z = 0; +//// [/user/username/projects/project/other2.ts] *new* +let k = 0; +//// [/user/username/projects/project/project1.tsconfig.json] *new* +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "composite": true, + }, + "files": ["commonFile1.ts", "commonFile2.ts"], +} +//// [/user/username/projects/project/project2.tsconfig.json] *new* +{ + "extends": "./bravo.tsconfig.json", + "compilerOptions": { + "composite": true, + }, + "files": ["other.ts"], +} +//// [/user/username/projects/project/project3.tsconfig.json] *new* +{ + "extends": [ + "./extendsConfig1.tsconfig.json", + "./extendsConfig2.tsconfig.json", + "./extendsConfig3.tsconfig.json", + ], + "compilerOptions": { + "composite": false, + }, + "files": ["other2.ts"], +} + +tsgo -b -w -v project1.tsconfig.json project2.tsconfig.json project3.tsconfig.json +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * project3.tsconfig.json + +[HH:MM:SS AM] Project 'project1.tsconfig.json' is out of date because output file 'project1.tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project1.tsconfig.json'... + +[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output file 'project2.tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project2.tsconfig.json'... + +[HH:MM:SS AM] Project 'project3.tsconfig.json' is out of date because output file 'project3.tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'project3.tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/project/commonFile1.d.ts] *new* +declare let x: number; + +//// [/user/username/projects/project/commonFile1.js] *new* +let x = 1; + +//// [/user/username/projects/project/commonFile2.d.ts] *new* +declare let y: number; + +//// [/user/username/projects/project/commonFile2.js] *new* +let y = 1; + +//// [/user/username/projects/project/other.d.ts] *new* +declare let z: number; + +//// [/user/username/projects/project/other.js] *new* +let z = 0; + +//// [/user/username/projects/project/other2.js] *new* +let k = 0; + +//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./commonFile1.ts","./commonFile2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1","signature":"0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06ce815ba25b02847f0b8550f82f5a25-let y = 1","signature":"114cede92fdd1b7222858083021aeba2-declare let y: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./commonFile2.d.ts"} +//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./commonFile1.ts", + "./commonFile2.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./commonFile1.ts", + "./commonFile2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./commonFile1.ts", + "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", + "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", + "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./commonFile2.ts", + "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", + "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", + "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./commonFile2.d.ts", + "size": 1316 +} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7148e8559d706b66aaba2a2423755c63-let z = 0;","signature":"879426698e1db06899fd57775c19b230-declare let z: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./other.d.ts"} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./other.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./other.ts", + "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", + "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", + "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./other.d.ts", + "size": 1105 +} +//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["./other2.ts"]} +//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./other2.ts" + ], + "original": "./other2.ts" + } + ], + "size": 50 +} + +project1.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/commonFile1.ts +*refresh* /user/username/projects/project/commonFile2.ts +Signatures:: +(stored at emit) /user/username/projects/project/commonFile1.ts +(stored at emit) /user/username/projects/project/commonFile2.ts + +project2.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/other.ts +Signatures:: +(stored at emit) /user/username/projects/project/other.ts + +project3.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/other2.ts +Signatures:: + + +Edit [0]:: Modify alpha config +//// [/user/username/projects/project/alpha.tsconfig.json] *modified* +{ + "compilerOptions": { + "strict": true + } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * project3.tsconfig.json + +[HH:MM:SS AM] Project 'project1.tsconfig.json' is out of date because output 'project1.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' + +[HH:MM:SS AM] Building project 'project1.tsconfig.json'... + +[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' + +[HH:MM:SS AM] Building project 'project2.tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/project/commonFile1.js] *rewrite with same content* +//// [/user/username/projects/project/commonFile2.js] *rewrite with same content* +//// [/user/username/projects/project/other.js] *rewrite with same content* +//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./commonFile1.ts","./commonFile2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1","signature":"0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06ce815ba25b02847f0b8550f82f5a25-let y = 1","signature":"114cede92fdd1b7222858083021aeba2-declare let y: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":true},"latestChangedDtsFile":"./commonFile2.d.ts"} +//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./commonFile1.ts", + "./commonFile2.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./commonFile1.ts", + "./commonFile2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./commonFile1.ts", + "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", + "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", + "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./commonFile2.ts", + "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", + "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", + "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "strict": true + }, + "latestChangedDtsFile": "./commonFile2.d.ts", + "size": 1330 +} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7148e8559d706b66aaba2a2423755c63-let z = 0;","signature":"879426698e1db06899fd57775c19b230-declare let z: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":true},"latestChangedDtsFile":"./other.d.ts"} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./other.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./other.ts", + "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", + "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", + "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "strict": true + }, + "latestChangedDtsFile": "./other.d.ts", + "size": 1119 +} + +project1.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/commonFile1.ts +*refresh* /user/username/projects/project/commonFile2.ts +Signatures:: + +project2.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/other.ts +Signatures:: + + +Edit [1]:: change bravo config +//// [/user/username/projects/project/bravo.tsconfig.json] *modified* +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { "strict": false } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * project3.tsconfig.json + +[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'bravo.tsconfig.json' + +[HH:MM:SS AM] Building project 'project2.tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/project/other.js] *rewrite with same content* +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7148e8559d706b66aaba2a2423755c63-let z = 0;","signature":"879426698e1db06899fd57775c19b230-declare let z: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"strict":false},"latestChangedDtsFile":"./other.d.ts"} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./other.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./other.ts", + "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", + "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7148e8559d706b66aaba2a2423755c63-let z = 0;", + "signature": "879426698e1db06899fd57775c19b230-declare let z: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "strict": false + }, + "latestChangedDtsFile": "./other.d.ts", + "size": 1120 +} + +project2.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/other.ts +Signatures:: + + +Edit [2]:: project 2 extends alpha +//// [/user/username/projects/project/project2.tsconfig.json] *modified* +{ + "extends": "./alpha.tsconfig.json", +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * project3.tsconfig.json + +[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output 'other2.js' is older than input 'project2.tsconfig.json' + +[HH:MM:SS AM] Building project 'project2.tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/project/commonFile1.js] *rewrite with same content* +//// [/user/username/projects/project/commonFile2.js] *rewrite with same content* +//// [/user/username/projects/project/other.js] *rewrite with same content* +//// [/user/username/projects/project/other2.js] *rewrite with same content* +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["./commonFile1.ts","./commonFile2.ts","./other.ts","./other2.ts"]} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./commonFile1.ts" + ], + "original": "./commonFile1.ts" + }, + { + "files": [ + "./commonFile2.ts" + ], + "original": "./commonFile2.ts" + }, + { + "files": [ + "./other.ts" + ], + "original": "./other.ts" + }, + { + "files": [ + "./other2.ts" + ], + "original": "./other2.ts" + } + ], + "size": 101 +} + +project2.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/commonFile1.ts +*refresh* /user/username/projects/project/commonFile2.ts +*refresh* /user/username/projects/project/other.ts +*refresh* /user/username/projects/project/other2.ts +Signatures:: + + +Edit [3]:: update aplha config +//// [/user/username/projects/project/alpha.tsconfig.json] *modified* +{} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * project3.tsconfig.json + +[HH:MM:SS AM] Project 'project1.tsconfig.json' is out of date because output 'project1.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' + +[HH:MM:SS AM] Building project 'project1.tsconfig.json'... + +[HH:MM:SS AM] Project 'project2.tsconfig.json' is out of date because output 'project2.tsconfig.tsbuildinfo' is older than input 'alpha.tsconfig.json' + +[HH:MM:SS AM] Building project 'project2.tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/project/commonFile1.js] *rewrite with same content* +//// [/user/username/projects/project/commonFile2.js] *rewrite with same content* +//// [/user/username/projects/project/other.js] *rewrite with same content* +//// [/user/username/projects/project/other2.js] *rewrite with same content* +//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./commonFile1.ts","./commonFile2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1","signature":"0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06ce815ba25b02847f0b8550f82f5a25-let y = 1","signature":"114cede92fdd1b7222858083021aeba2-declare let y: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./commonFile2.d.ts"} +//// [/user/username/projects/project/project1.tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./commonFile1.ts", + "./commonFile2.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./commonFile1.ts", + "./commonFile2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./commonFile1.ts", + "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", + "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4e1a8b13d3ccc04f0aaac579ade4a50b-let x = 1", + "signature": "0e529fdc590223d6038e844fdfd212cd-declare let x: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./commonFile2.ts", + "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", + "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06ce815ba25b02847f0b8550f82f5a25-let y = 1", + "signature": "114cede92fdd1b7222858083021aeba2-declare let y: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./commonFile2.d.ts", + "size": 1316 +} +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/project/project2.tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project1.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/commonFile1.ts +*refresh* /user/username/projects/project/commonFile2.ts +Signatures:: + +project2.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/commonFile1.ts +*refresh* /user/username/projects/project/commonFile2.ts +*refresh* /user/username/projects/project/other.ts +*refresh* /user/username/projects/project/other2.ts +Signatures:: + + +Edit [4]:: Modify extendsConfigFile2 +//// [/user/username/projects/project/extendsConfig2.tsconfig.json] *modified* +{ + "compilerOptions": { "strictNullChecks": true } +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * project3.tsconfig.json + +[HH:MM:SS AM] Project 'project3.tsconfig.json' is out of date because output 'project3.tsconfig.tsbuildinfo' is older than input 'extendsConfig2.tsconfig.json' + +[HH:MM:SS AM] Building project 'project3.tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/project/other2.js] *rewrite with same content* +//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project3.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/other2.ts +Signatures:: + + +Edit [5]:: Modify project 3 +//// [/user/username/projects/project/project3.tsconfig.json] *modified* +{ + "extends": ["./extendsConfig1.tsconfig.json", "./extendsConfig2.tsconfig.json"], + "compilerOptions": { "composite": false }, + "files": ["other2.ts"], +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * project3.tsconfig.json + +[HH:MM:SS AM] Project 'project3.tsconfig.json' is out of date because output 'project3.tsconfig.tsbuildinfo' is older than input 'project3.tsconfig.json' + +[HH:MM:SS AM] Building project 'project3.tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/project/other2.js] *rewrite with same content* +//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo] *rewrite with same content* +//// [/user/username/projects/project/project3.tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +project3.tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/project/other2.ts +Signatures:: + + +Edit [6]:: Delete extendedConfigFile2 and report error +//// [/user/username/projects/project/extendsConfig2.tsconfig.json] *deleted* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * project1.tsconfig.json + * project2.tsconfig.json + * project3.tsconfig.json + +[HH:MM:SS AM] Project 'project3.tsconfig.json' is up to date because newest input 'other2.ts' is older than output 'project3.tsconfig.tsbuildinfo' + +error TS5083: Cannot read file '/user/username/projects/project/extendsConfig2.tsconfig.json'. +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + diff --git a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js new file mode 100644 index 0000000000..439e6d0f17 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js @@ -0,0 +1,3114 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg0/index.ts] *new* +export const pkg0 = 0; +//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* + { + "compilerOptions": { "composite": true }, + + } +//// [/user/username/projects/myproject/pkg1/index.ts] *new* +export const pkg1 = 1; +//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg10/index.ts] *new* +export const pkg10 = 10; +//// [/user/username/projects/myproject/pkg10/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg11/index.ts] *new* +export const pkg11 = 11; +//// [/user/username/projects/myproject/pkg11/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg12/index.ts] *new* +export const pkg12 = 12; +//// [/user/username/projects/myproject/pkg12/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg13/index.ts] *new* +export const pkg13 = 13; +//// [/user/username/projects/myproject/pkg13/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg14/index.ts] *new* +export const pkg14 = 14; +//// [/user/username/projects/myproject/pkg14/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg15/index.ts] *new* +export const pkg15 = 15; +//// [/user/username/projects/myproject/pkg15/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg16/index.ts] *new* +export const pkg16 = 16; +//// [/user/username/projects/myproject/pkg16/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg17/index.ts] *new* +export const pkg17 = 17; +//// [/user/username/projects/myproject/pkg17/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg18/index.ts] *new* +export const pkg18 = 18; +//// [/user/username/projects/myproject/pkg18/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg19/index.ts] *new* +export const pkg19 = 19; +//// [/user/username/projects/myproject/pkg19/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg2/index.ts] *new* +export const pkg2 = 2; +//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg20/index.ts] *new* +export const pkg20 = 20; +//// [/user/username/projects/myproject/pkg20/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg21/index.ts] *new* +export const pkg21 = 21; +//// [/user/username/projects/myproject/pkg21/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg22/index.ts] *new* +export const pkg22 = 22; +//// [/user/username/projects/myproject/pkg22/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg3/index.ts] *new* +export const pkg3 = 3; +//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg4/index.ts] *new* +export const pkg4 = 4; +//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg5/index.ts] *new* +export const pkg5 = 5; +//// [/user/username/projects/myproject/pkg5/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg6/index.ts] *new* +export const pkg6 = 6; +//// [/user/username/projects/myproject/pkg6/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg7/index.ts] *new* +export const pkg7 = 7; +//// [/user/username/projects/myproject/pkg7/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg8/index.ts] *new* +export const pkg8 = 8; +//// [/user/username/projects/myproject/pkg8/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg9/index.ts] *new* +export const pkg9 = 9; +//// [/user/username/projects/myproject/pkg9/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [ + { "path": "./pkg0" }, + { "path": "./pkg1" }, + { "path": "./pkg2" }, + { "path": "./pkg3" }, + { "path": "./pkg4" }, + { "path": "./pkg5" }, + { "path": "./pkg6" }, + { "path": "./pkg7" }, + { "path": "./pkg8" }, + { "path": "./pkg9" }, + { "path": "./pkg10" }, + { "path": "./pkg11" }, + { "path": "./pkg12" }, + { "path": "./pkg13" }, + { "path": "./pkg14" }, + { "path": "./pkg15" }, + { "path": "./pkg16" }, + { "path": "./pkg17" }, + { "path": "./pkg18" }, + { "path": "./pkg19" }, + { "path": "./pkg20" }, + { "path": "./pkg21" }, + { "path": "./pkg22" } + ] +} + +tsgo -b -w -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * pkg8/tsconfig.json + * pkg9/tsconfig.json + * pkg10/tsconfig.json + * pkg11/tsconfig.json + * pkg12/tsconfig.json + * pkg13/tsconfig.json + * pkg14/tsconfig.json + * pkg15/tsconfig.json + * pkg16/tsconfig.json + * pkg17/tsconfig.json + * pkg18/tsconfig.json + * pkg19/tsconfig.json + * pkg20/tsconfig.json + * pkg21/tsconfig.json + * pkg22/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is out of date because output file 'pkg8/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg8/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is out of date because output file 'pkg9/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg9/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is out of date because output file 'pkg10/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg10/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is out of date because output file 'pkg11/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg11/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is out of date because output file 'pkg12/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg12/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is out of date because output file 'pkg13/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg13/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is out of date because output file 'pkg14/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg14/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is out of date because output file 'pkg15/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg15/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is out of date because output file 'pkg16/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg16/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is out of date because output file 'pkg17/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg17/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is out of date because output file 'pkg18/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg18/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is out of date because output file 'pkg19/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg19/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is out of date because output file 'pkg20/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg20/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is out of date because output file 'pkg21/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg21/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is out of date because output file 'pkg22/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg22/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* +export declare const pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* +export declare const pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg1 = void 0; +exports.pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg10/index.d.ts] *new* +export declare const pkg10 = 10; + +//// [/user/username/projects/myproject/pkg10/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg10 = void 0; +exports.pkg10 = 10; + +//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;","signature":"c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;", + "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "016c8a45eed2876438007da9f48ee891-export const pkg10 = 10;", + "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg11/index.d.ts] *new* +export declare const pkg11 = 11; + +//// [/user/username/projects/myproject/pkg11/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg11 = void 0; +exports.pkg11 = 11; + +//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;","signature":"adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;", + "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "97a7993b90ddefaf2cb697b540c18c9b-export const pkg11 = 11;", + "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg12/index.d.ts] *new* +export declare const pkg12 = 12; + +//// [/user/username/projects/myproject/pkg12/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg12 = void 0; +exports.pkg12 = 12; + +//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;","signature":"3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;", + "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dee18118fcaf8b7bef6eff136b1a53d8-export const pkg12 = 12;", + "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg13/index.d.ts] *new* +export declare const pkg13 = 13; + +//// [/user/username/projects/myproject/pkg13/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg13 = void 0; +exports.pkg13 = 13; + +//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;","signature":"8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;", + "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "85239d050da6047af1c93bec73a746ab-export const pkg13 = 13;", + "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg14/index.d.ts] *new* +export declare const pkg14 = 14; + +//// [/user/username/projects/myproject/pkg14/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg14 = void 0; +exports.pkg14 = 14; + +//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;","signature":"97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;", + "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0f1715774fedfae24da344cfd9a82ce5-export const pkg14 = 14;", + "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg15/index.d.ts] *new* +export declare const pkg15 = 15; + +//// [/user/username/projects/myproject/pkg15/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg15 = void 0; +exports.pkg15 = 15; + +//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;","signature":"58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;", + "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2cd6d4f18355b7cf864a108a2385b8eb-export const pkg15 = 15;", + "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg16/index.d.ts] *new* +export declare const pkg16 = 16; + +//// [/user/username/projects/myproject/pkg16/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg16 = void 0; +exports.pkg16 = 16; + +//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;","signature":"7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;", + "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fb31006f9d2f58066db2d819ae7220d1-export const pkg16 = 16;", + "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg17/index.d.ts] *new* +export declare const pkg17 = 17; + +//// [/user/username/projects/myproject/pkg17/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg17 = void 0; +exports.pkg17 = 17; + +//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;","signature":"6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;", + "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0300fd99dcdaeac4ee60e77bc4e33dde-export const pkg17 = 17;", + "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg18/index.d.ts] *new* +export declare const pkg18 = 18; + +//// [/user/username/projects/myproject/pkg18/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg18 = void 0; +exports.pkg18 = 18; + +//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;","signature":"998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;", + "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "221966317664c5e3a30503d4a7a98896-export const pkg18 = 18;", + "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg19/index.d.ts] *new* +export declare const pkg19 = 19; + +//// [/user/username/projects/myproject/pkg19/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg19 = void 0; +exports.pkg19 = 19; + +//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ac602ee4cba12981e12105658930586-export const pkg19 = 19;","signature":"9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0ac602ee4cba12981e12105658930586-export const pkg19 = 19;", + "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0ac602ee4cba12981e12105658930586-export const pkg19 = 19;", + "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* +export declare const pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg2 = void 0; +exports.pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg20/index.d.ts] *new* +export declare const pkg20 = 20; + +//// [/user/username/projects/myproject/pkg20/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg20 = void 0; +exports.pkg20 = 20; + +//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;","signature":"3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;", + "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "06a377f981d40d9955b343e98f8f4583-export const pkg20 = 20;", + "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg21/index.d.ts] *new* +export declare const pkg21 = 21; + +//// [/user/username/projects/myproject/pkg21/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg21 = void 0; +exports.pkg21 = 21; + +//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;","signature":"28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;", + "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b958fcbb5ed04f95714be77b25e5a61d-export const pkg21 = 21;", + "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg22/index.d.ts] *new* +export declare const pkg22 = 22; + +//// [/user/username/projects/myproject/pkg22/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg22 = void 0; +exports.pkg22 = 22; + +//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;","signature":"4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;", + "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8ff16559c4788073ebad59d39e03d1da-export const pkg22 = 22;", + "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1103 +} +//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* +export declare const pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg3 = void 0; +exports.pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* +export declare const pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg4 = void 0; +exports.pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg5/index.d.ts] *new* +export declare const pkg5 = 5; + +//// [/user/username/projects/myproject/pkg5/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg5 = void 0; +exports.pkg5 = 5; + +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;","signature":"77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg6/index.d.ts] *new* +export declare const pkg6 = 6; + +//// [/user/username/projects/myproject/pkg6/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg6 = void 0; +exports.pkg6 = 6; + +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;","signature":"579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg7/index.d.ts] *new* +export declare const pkg7 = 7; + +//// [/user/username/projects/myproject/pkg7/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg7 = void 0; +exports.pkg7 = 7; + +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;","signature":"5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg8/index.d.ts] *new* +export declare const pkg8 = 8; + +//// [/user/username/projects/myproject/pkg8/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg8 = void 0; +exports.pkg8 = 8; + +//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;","signature":"cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;", + "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "836793eca75f55e903b30e86fd30eba4-export const pkg8 = 8;", + "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg9/index.d.ts] *new* +export declare const pkg9 = 9; + +//// [/user/username/projects/myproject/pkg9/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg9 = void 0; +exports.pkg9 = 9; + +//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;","signature":"9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;", + "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8a4ff2cf7d68e1cb7c288faaa90d6639-export const pkg9 = 9;", + "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,24]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg10/index.d.ts","./pkg11/index.d.ts","./pkg12/index.d.ts","./pkg13/index.d.ts","./pkg14/index.d.ts","./pkg15/index.d.ts","./pkg16/index.d.ts","./pkg17/index.d.ts","./pkg18/index.d.ts","./pkg19/index.d.ts","./pkg2/index.d.ts","./pkg20/index.d.ts","./pkg21/index.d.ts","./pkg22/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg8/index.d.ts","./pkg9/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg10/index.ts","./pkg11/index.ts","./pkg12/index.ts","./pkg13/index.ts","./pkg14/index.ts","./pkg15/index.ts","./pkg16/index.ts","./pkg17/index.ts","./pkg18/index.ts","./pkg19/index.ts","./pkg2/index.ts","./pkg20/index.ts","./pkg21/index.ts","./pkg22/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts","./pkg8/index.ts","./pkg9/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n"],"options":{"composite":true},"resolvedRoot":[[2,25],[3,26],[4,27],[5,28],[6,29],[7,30],[8,31],[9,32],[10,33],[11,34],[12,35],[13,36],[14,37],[15,38],[16,39],[17,40],[18,41],[19,42],[20,43],[21,44],[22,45],[23,46],[24,47]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg10/index.d.ts", + "./pkg11/index.d.ts", + "./pkg12/index.d.ts", + "./pkg13/index.d.ts", + "./pkg14/index.d.ts", + "./pkg15/index.d.ts", + "./pkg16/index.d.ts", + "./pkg17/index.d.ts", + "./pkg18/index.d.ts", + "./pkg19/index.d.ts", + "./pkg2/index.d.ts", + "./pkg20/index.d.ts", + "./pkg21/index.d.ts", + "./pkg22/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg8/index.d.ts", + "./pkg9/index.d.ts" + ], + "original": [ + 2, + 24 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg10/index.d.ts", + "./pkg11/index.d.ts", + "./pkg12/index.d.ts", + "./pkg13/index.d.ts", + "./pkg14/index.d.ts", + "./pkg15/index.d.ts", + "./pkg16/index.d.ts", + "./pkg17/index.d.ts", + "./pkg18/index.d.ts", + "./pkg19/index.d.ts", + "./pkg2/index.d.ts", + "./pkg20/index.d.ts", + "./pkg21/index.d.ts", + "./pkg22/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg8/index.d.ts", + "./pkg9/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg10/index.ts", + "./pkg11/index.ts", + "./pkg12/index.ts", + "./pkg13/index.ts", + "./pkg14/index.ts", + "./pkg15/index.ts", + "./pkg16/index.ts", + "./pkg17/index.ts", + "./pkg18/index.ts", + "./pkg19/index.ts", + "./pkg2/index.ts", + "./pkg20/index.ts", + "./pkg21/index.ts", + "./pkg22/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts", + "./pkg5/index.ts", + "./pkg6/index.ts", + "./pkg7/index.ts", + "./pkg8/index.ts", + "./pkg9/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg10/index.d.ts", + "version": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg11/index.d.ts", + "version": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg12/index.d.ts", + "version": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg13/index.d.ts", + "version": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg14/index.d.ts", + "version": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg15/index.d.ts", + "version": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg16/index.d.ts", + "version": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg17/index.d.ts", + "version": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg18/index.d.ts", + "version": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg19/index.d.ts", + "version": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg20/index.d.ts", + "version": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg21/index.d.ts", + "version": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg22/index.d.ts", + "version": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg5/index.d.ts", + "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg6/index.d.ts", + "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg7/index.d.ts", + "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg8/index.d.ts", + "version": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg9/index.d.ts", + "version": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg10/index.d.ts", + "./pkg10/index.ts" + ], + [ + "./pkg11/index.d.ts", + "./pkg11/index.ts" + ], + [ + "./pkg12/index.d.ts", + "./pkg12/index.ts" + ], + [ + "./pkg13/index.d.ts", + "./pkg13/index.ts" + ], + [ + "./pkg14/index.d.ts", + "./pkg14/index.ts" + ], + [ + "./pkg15/index.d.ts", + "./pkg15/index.ts" + ], + [ + "./pkg16/index.d.ts", + "./pkg16/index.ts" + ], + [ + "./pkg17/index.d.ts", + "./pkg17/index.ts" + ], + [ + "./pkg18/index.d.ts", + "./pkg18/index.ts" + ], + [ + "./pkg19/index.d.ts", + "./pkg19/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg20/index.d.ts", + "./pkg20/index.ts" + ], + [ + "./pkg21/index.d.ts", + "./pkg21/index.ts" + ], + [ + "./pkg22/index.d.ts", + "./pkg22/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ], + [ + "./pkg5/index.d.ts", + "./pkg5/index.ts" + ], + [ + "./pkg6/index.d.ts", + "./pkg6/index.ts" + ], + [ + "./pkg7/index.d.ts", + "./pkg7/index.ts" + ], + [ + "./pkg8/index.d.ts", + "./pkg8/index.ts" + ], + [ + "./pkg9/index.d.ts", + "./pkg9/index.ts" + ] + ], + "size": 3564 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg1/index.ts + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg2/index.ts + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg3/index.ts + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg4/index.ts + +pkg5/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg5/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg5/index.ts + +pkg6/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg6/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg6/index.ts + +pkg7/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg7/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg7/index.ts + +pkg8/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg8/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg8/index.ts + +pkg9/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg9/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg9/index.ts + +pkg10/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg10/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg10/index.ts + +pkg11/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg11/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg11/index.ts + +pkg12/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg12/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg12/index.ts + +pkg13/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg13/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg13/index.ts + +pkg14/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg14/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg14/index.ts + +pkg15/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg15/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg15/index.ts + +pkg16/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg16/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg16/index.ts + +pkg17/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg17/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg17/index.ts + +pkg18/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg18/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg18/index.ts + +pkg19/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg19/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg19/index.ts + +pkg20/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg20/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg20/index.ts + +pkg21/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg21/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg21/index.ts + +pkg22/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg22/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg22/index.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.d.ts +*refresh* /user/username/projects/myproject/pkg10/index.d.ts +*refresh* /user/username/projects/myproject/pkg11/index.d.ts +*refresh* /user/username/projects/myproject/pkg12/index.d.ts +*refresh* /user/username/projects/myproject/pkg13/index.d.ts +*refresh* /user/username/projects/myproject/pkg14/index.d.ts +*refresh* /user/username/projects/myproject/pkg15/index.d.ts +*refresh* /user/username/projects/myproject/pkg16/index.d.ts +*refresh* /user/username/projects/myproject/pkg17/index.d.ts +*refresh* /user/username/projects/myproject/pkg18/index.d.ts +*refresh* /user/username/projects/myproject/pkg19/index.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.d.ts +*refresh* /user/username/projects/myproject/pkg20/index.d.ts +*refresh* /user/username/projects/myproject/pkg21/index.d.ts +*refresh* /user/username/projects/myproject/pkg22/index.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.d.ts +*refresh* /user/username/projects/myproject/pkg5/index.d.ts +*refresh* /user/username/projects/myproject/pkg6/index.d.ts +*refresh* /user/username/projects/myproject/pkg7/index.d.ts +*refresh* /user/username/projects/myproject/pkg8/index.d.ts +*refresh* /user/username/projects/myproject/pkg9/index.d.ts +Signatures:: + + +Edit [0]:: dts doesn't change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * pkg8/tsconfig.json + * pkg9/tsconfig.json + * pkg10/tsconfig.json + * pkg11/tsconfig.json + * pkg12/tsconfig.json + * pkg13/tsconfig.json + * pkg14/tsconfig.json + * pkg15/tsconfig.json + * pkg16/tsconfig.json + * pkg17/tsconfig.json + * pkg18/tsconfig.json + * pkg19/tsconfig.json + * pkg20/tsconfig.json + * pkg21/tsconfig.json + * pkg22/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg8/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg9/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg10/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg11/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg12/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg13/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg14/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg15/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg16/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg17/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg18/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg19/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg20/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg21/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg22/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1121 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + + +Edit [1]:: no change + + +Output:: + + + +Edit [2]:: dts change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * pkg8/tsconfig.json + * pkg9/tsconfig.json + * pkg10/tsconfig.json + * pkg11/tsconfig.json + * pkg12/tsconfig.json + * pkg13/tsconfig.json + * pkg14/tsconfig.json + * pkg15/tsconfig.json + * pkg16/tsconfig.json + * pkg17/tsconfig.json + * pkg18/tsconfig.json + * pkg19/tsconfig.json + * pkg20/tsconfig.json + * pkg21/tsconfig.json + * pkg22/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg8/tsconfig.json' is out of date because output 'pkg8/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg8/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg8/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg9/tsconfig.json' is out of date because output 'pkg9/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg9/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg9/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg10/tsconfig.json' is out of date because output 'pkg10/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg10/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg10/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg11/tsconfig.json' is out of date because output 'pkg11/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg11/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg11/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg12/tsconfig.json' is out of date because output 'pkg12/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg12/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg12/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg13/tsconfig.json' is out of date because output 'pkg13/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg13/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg13/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg14/tsconfig.json' is out of date because output 'pkg14/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg14/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg14/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg15/tsconfig.json' is out of date because output 'pkg15/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg15/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg15/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg16/tsconfig.json' is out of date because output 'pkg16/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg16/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg16/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg17/tsconfig.json' is out of date because output 'pkg17/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg17/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg17/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg18/tsconfig.json' is out of date because output 'pkg18/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg18/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg18/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg19/tsconfig.json' is out of date because output 'pkg19/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg19/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg19/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg20/tsconfig.json' is out of date because output 'pkg20/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg20/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg20/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg21/tsconfig.json' is out of date because output 'pkg21/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg21/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg21/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg22/tsconfig.json' is out of date because output 'pkg22/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg22/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg22/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* +export declare const pkg0 = 0; +export declare const someConst = 10; + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someConst = exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; +exports.someConst = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1187 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,24]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg10/index.d.ts","./pkg11/index.d.ts","./pkg12/index.d.ts","./pkg13/index.d.ts","./pkg14/index.d.ts","./pkg15/index.d.ts","./pkg16/index.d.ts","./pkg17/index.d.ts","./pkg18/index.d.ts","./pkg19/index.d.ts","./pkg2/index.d.ts","./pkg20/index.d.ts","./pkg21/index.d.ts","./pkg22/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg8/index.d.ts","./pkg9/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg10/index.ts","./pkg11/index.ts","./pkg12/index.ts","./pkg13/index.ts","./pkg14/index.ts","./pkg15/index.ts","./pkg16/index.ts","./pkg17/index.ts","./pkg18/index.ts","./pkg19/index.ts","./pkg2/index.ts","./pkg20/index.ts","./pkg21/index.ts","./pkg22/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts","./pkg8/index.ts","./pkg9/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n","adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n","3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n","8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n","97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n","58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n","7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n","6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n","998826007793437a6f825871733db175-export declare const pkg18 = 18;\n","9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n","28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n","4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n","9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n"],"options":{"composite":true},"resolvedRoot":[[2,25],[3,26],[4,27],[5,28],[6,29],[7,30],[8,31],[9,32],[10,33],[11,34],[12,35],[13,36],[14,37],[15,38],[16,39],[17,40],[18,41],[19,42],[20,43],[21,44],[22,45],[23,46],[24,47]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg10/index.d.ts", + "./pkg11/index.d.ts", + "./pkg12/index.d.ts", + "./pkg13/index.d.ts", + "./pkg14/index.d.ts", + "./pkg15/index.d.ts", + "./pkg16/index.d.ts", + "./pkg17/index.d.ts", + "./pkg18/index.d.ts", + "./pkg19/index.d.ts", + "./pkg2/index.d.ts", + "./pkg20/index.d.ts", + "./pkg21/index.d.ts", + "./pkg22/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg8/index.d.ts", + "./pkg9/index.d.ts" + ], + "original": [ + 2, + 24 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg10/index.d.ts", + "./pkg11/index.d.ts", + "./pkg12/index.d.ts", + "./pkg13/index.d.ts", + "./pkg14/index.d.ts", + "./pkg15/index.d.ts", + "./pkg16/index.d.ts", + "./pkg17/index.d.ts", + "./pkg18/index.d.ts", + "./pkg19/index.d.ts", + "./pkg2/index.d.ts", + "./pkg20/index.d.ts", + "./pkg21/index.d.ts", + "./pkg22/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg8/index.d.ts", + "./pkg9/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg10/index.ts", + "./pkg11/index.ts", + "./pkg12/index.ts", + "./pkg13/index.ts", + "./pkg14/index.ts", + "./pkg15/index.ts", + "./pkg16/index.ts", + "./pkg17/index.ts", + "./pkg18/index.ts", + "./pkg19/index.ts", + "./pkg2/index.ts", + "./pkg20/index.ts", + "./pkg21/index.ts", + "./pkg22/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts", + "./pkg5/index.ts", + "./pkg6/index.ts", + "./pkg7/index.ts", + "./pkg8/index.ts", + "./pkg9/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg10/index.d.ts", + "version": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "signature": "c38d4c54a2d94e348d83dedea4131dfa-export declare const pkg10 = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg11/index.d.ts", + "version": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "signature": "adb5c96ce0681bdd05f4d4270c92975a-export declare const pkg11 = 11;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg12/index.d.ts", + "version": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "signature": "3859aeecf88540c7c6a0c8f3ee319b67-export declare const pkg12 = 12;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg13/index.d.ts", + "version": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "signature": "8edca9853ef5f33e4f5ce4d87face0a8-export declare const pkg13 = 13;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg14/index.d.ts", + "version": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "signature": "97a5fe4a98a9150de02687e29f5bac83-export declare const pkg14 = 14;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg15/index.d.ts", + "version": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "signature": "58d06577496a4bd25b043e51fcae9618-export declare const pkg15 = 15;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg16/index.d.ts", + "version": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "signature": "7433dcfe5384e34199db0c5e1947a181-export declare const pkg16 = 16;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg17/index.d.ts", + "version": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "signature": "6a13a29befa0f4ce8900ad7accc29226-export declare const pkg17 = 17;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg18/index.d.ts", + "version": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "signature": "998826007793437a6f825871733db175-export declare const pkg18 = 18;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg19/index.d.ts", + "version": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "signature": "9639f9c71b8c26fcb071d9c011db1183-export declare const pkg19 = 19;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg20/index.d.ts", + "version": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "signature": "3b044c8ad9c96eab6e9c98992efb1ac6-export declare const pkg20 = 20;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg21/index.d.ts", + "version": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "signature": "28fb4da3585f56679a9b65c31ee392c5-export declare const pkg21 = 21;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg22/index.d.ts", + "version": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "signature": "4663efb045a8de087b8acb94726a829a-export declare const pkg22 = 22;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg5/index.d.ts", + "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg6/index.d.ts", + "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg7/index.d.ts", + "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg8/index.d.ts", + "version": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "signature": "cbfb883cd1ea3b0b14d06df67b79bbf9-export declare const pkg8 = 8;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg9/index.d.ts", + "version": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "signature": "9ddf3311f78033e9343f03f63c2e8bbb-export declare const pkg9 = 9;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg10/index.d.ts", + "./pkg10/index.ts" + ], + [ + "./pkg11/index.d.ts", + "./pkg11/index.ts" + ], + [ + "./pkg12/index.d.ts", + "./pkg12/index.ts" + ], + [ + "./pkg13/index.d.ts", + "./pkg13/index.ts" + ], + [ + "./pkg14/index.d.ts", + "./pkg14/index.ts" + ], + [ + "./pkg15/index.d.ts", + "./pkg15/index.ts" + ], + [ + "./pkg16/index.d.ts", + "./pkg16/index.ts" + ], + [ + "./pkg17/index.d.ts", + "./pkg17/index.ts" + ], + [ + "./pkg18/index.d.ts", + "./pkg18/index.ts" + ], + [ + "./pkg19/index.d.ts", + "./pkg19/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg20/index.d.ts", + "./pkg20/index.ts" + ], + [ + "./pkg21/index.d.ts", + "./pkg21/index.ts" + ], + [ + "./pkg22/index.d.ts", + "./pkg22/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ], + [ + "./pkg5/index.d.ts", + "./pkg5/index.ts" + ], + [ + "./pkg6/index.d.ts", + "./pkg6/index.ts" + ], + [ + "./pkg7/index.d.ts", + "./pkg7/index.ts" + ], + [ + "./pkg8/index.d.ts", + "./pkg8/index.ts" + ], + [ + "./pkg9/index.d.ts", + "./pkg9/index.ts" + ] + ], + "size": 3602 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg5/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg6/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg7/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg8/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg9/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg10/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg11/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg12/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg13/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg14/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg15/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg16/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg17/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg18/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg19/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg20/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg21/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg22/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +Signatures:: +(used version) /user/username/projects/myproject/pkg0/index.d.ts + + +Edit [3]:: no change + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js new file mode 100644 index 0000000000..e5ed697ea6 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js @@ -0,0 +1,674 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg0/index.ts] *new* +export const pkg0 = 0; +//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* + { + "compilerOptions": { "composite": true }, + + } +//// [/user/username/projects/myproject/pkg1/index.ts] *new* +export const pkg1 = 1; +//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg2/index.ts] *new* +export const pkg2 = 2; +//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [ + { "path": "./pkg0" }, + { "path": "./pkg1" }, + { "path": "./pkg2" } + ] +} + +tsgo -b -w -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* +export declare const pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* +export declare const pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg1 = void 0; +exports.pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* +export declare const pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg2 = void 0; +exports.pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n"],"options":{"composite":true},"resolvedRoot":[[2,5],[3,6],[4,7]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ] + ], + "size": 1233 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg1/index.ts + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg2/index.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.d.ts +Signatures:: + + +Edit [0]:: dts doesn't change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1121 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + + +Edit [1]:: no change + + +Output:: + + + +Edit [2]:: dts change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* +export declare const pkg0 = 0; +export declare const someConst = 10; + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someConst = exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; +exports.someConst = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1187 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n"],"options":{"composite":true},"resolvedRoot":[[2,5],[3,6],[4,7]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ] + ], + "size": 1271 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +Signatures:: +(used version) /user/username/projects/myproject/pkg0/index.d.ts + + +Edit [3]:: no change + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js new file mode 100644 index 0000000000..edb535d021 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js @@ -0,0 +1,918 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg0/index.ts] *new* +export const pkg0 = 0; +//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* + { + "compilerOptions": { "composite": true }, + + } +//// [/user/username/projects/myproject/pkg1/index.ts] *new* +export const pkg1 = 1; +//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg2/index.ts] *new* +export const pkg2 = 2; +//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg3/index.ts] *new* +export const pkg3 = 3; +//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg4/index.ts] *new* +export const pkg4 = 4; +//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [ + { "path": "./pkg0" }, + { "path": "./pkg1" }, + { "path": "./pkg2" }, + { "path": "./pkg3" }, + { "path": "./pkg4" } + ] +} + +tsgo -b -w -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* +export declare const pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* +export declare const pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg1 = void 0; +exports.pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* +export declare const pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg2 = void 0; +exports.pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* +export declare const pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg3 = void 0; +exports.pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* +export declare const pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg4 = void 0; +exports.pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n"],"options":{"composite":true},"resolvedRoot":[[2,7],[3,8],[4,9],[5,10],[6,11]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ] + ], + "size": 1459 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg1/index.ts + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg2/index.ts + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg3/index.ts + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg4/index.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.d.ts +Signatures:: + + +Edit [0]:: dts doesn't change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1121 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + + +Edit [1]:: no change + + +Output:: + + + +Edit [2]:: dts change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* +export declare const pkg0 = 0; +export declare const someConst = 10; + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someConst = exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; +exports.someConst = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1187 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n"],"options":{"composite":true},"resolvedRoot":[[2,7],[3,8],[4,9],[5,10],[6,11]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ] + ], + "size": 1497 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +Signatures:: +(used version) /user/username/projects/myproject/pkg0/index.d.ts + + +Edit [3]:: no change + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js new file mode 100644 index 0000000000..53b176f580 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js @@ -0,0 +1,1284 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg0/index.ts] *new* +export const pkg0 = 0; +//// [/user/username/projects/myproject/pkg0/tsconfig.json] *new* + { + "compilerOptions": { "composite": true }, + + } +//// [/user/username/projects/myproject/pkg1/index.ts] *new* +export const pkg1 = 1; +//// [/user/username/projects/myproject/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg2/index.ts] *new* +export const pkg2 = 2; +//// [/user/username/projects/myproject/pkg2/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg3/index.ts] *new* +export const pkg3 = 3; +//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg4/index.ts] *new* +export const pkg4 = 4; +//// [/user/username/projects/myproject/pkg4/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg5/index.ts] *new* +export const pkg5 = 5; +//// [/user/username/projects/myproject/pkg5/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg6/index.ts] *new* +export const pkg6 = 6; +//// [/user/username/projects/myproject/pkg6/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/pkg7/index.ts] *new* +export const pkg7 = 7; +//// [/user/username/projects/myproject/pkg7/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [{ "path": "../pkg0" }], +} +//// [/user/username/projects/myproject/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "references": [ + { "path": "./pkg0" }, + { "path": "./pkg1" }, + { "path": "./pkg2" }, + { "path": "./pkg3" }, + { "path": "./pkg4" }, + { "path": "./pkg5" }, + { "path": "./pkg6" }, + { "path": "./pkg7" } + ] +} + +tsgo -b -w -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output file 'pkg0/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output file 'pkg1/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output file 'pkg2/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output file 'pkg3/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output file 'pkg4/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output file 'pkg5/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output file 'pkg6/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output file 'pkg7/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg0/index.d.ts] *new* +export declare const pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "44b96319d3533fefbaaf61cad5d90c48-export const pkg0 = 0;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg1/index.d.ts] *new* +export declare const pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg1 = void 0; +exports.pkg1 = 1; + +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;","signature":"4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dd791c6b74e4cf9af9283579215cad88-export const pkg1 = 1;", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg2/index.d.ts] *new* +export declare const pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg2 = void 0; +exports.pkg2 = 2; + +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;","signature":"adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0cf39c01e85273ecae99a05645f3b18b-export const pkg2 = 2;", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg3/index.d.ts] *new* +export declare const pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg3 = void 0; +exports.pkg3 = 3; + +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;","signature":"0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3e7c6d2a2c682228b50c62e065dd86eb-export const pkg3 = 3;", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg4/index.d.ts] *new* +export declare const pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg4 = void 0; +exports.pkg4 = 4; + +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;","signature":"7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "83c6d6f47b9957960cfb2d779ba0fcf4-export const pkg4 = 4;", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg5/index.d.ts] *new* +export declare const pkg5 = 5; + +//// [/user/username/projects/myproject/pkg5/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg5 = void 0; +exports.pkg5 = 5; + +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;","signature":"77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c2daf00ad21fc855a340358c8c204b48-export const pkg5 = 5;", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg6/index.d.ts] *new* +export declare const pkg6 = 6; + +//// [/user/username/projects/myproject/pkg6/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg6 = void 0; +exports.pkg6 = 6; + +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;","signature":"579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ca770928977c270ca6068d9ec3f4ed53-export const pkg6 = 6;", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/pkg7/index.d.ts] *new* +export declare const pkg7 = 7; + +//// [/user/username/projects/myproject/pkg7/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg7 = void 0; +exports.pkg7 = 7; + +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;","signature":"5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d445d242c6358b7d6b7a2989cd41e84a-export const pkg7 = 7;", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1099 +} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,9]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n"],"options":{"composite":true},"resolvedRoot":[[2,10],[3,11],[4,12],[5,13],[6,14],[7,15],[8,16],[9,17]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts" + ], + "original": [ + 2, + 9 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts", + "./pkg5/index.ts", + "./pkg6/index.ts", + "./pkg7/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg5/index.d.ts", + "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg6/index.d.ts", + "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg7/index.d.ts", + "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ], + [ + "./pkg5/index.d.ts", + "./pkg5/index.ts" + ], + [ + "./pkg6/index.d.ts", + "./pkg6/index.ts" + ], + [ + "./pkg7/index.d.ts", + "./pkg7/index.ts" + ] + ], + "size": 1801 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg1/index.ts + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg2/index.ts + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg3/index.ts + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg4/index.ts + +pkg5/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg5/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg5/index.ts + +pkg6/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg6/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg6/index.ts + +pkg7/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg7/index.ts +Signatures:: +(stored at emit) /user/username/projects/myproject/pkg7/index.ts + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +*refresh* /user/username/projects/myproject/pkg1/index.d.ts +*refresh* /user/username/projects/myproject/pkg2/index.d.ts +*refresh* /user/username/projects/myproject/pkg3/index.d.ts +*refresh* /user/username/projects/myproject/pkg4/index.d.ts +*refresh* /user/username/projects/myproject/pkg5/index.d.ts +*refresh* /user/username/projects/myproject/pkg6/index.d.ts +*refresh* /user/username/projects/myproject/pkg7/index.d.ts +Signatures:: + + +Edit [0]:: dts doesn't change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;","signature":"c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "87e698a84292a7346d74cb79ef9ee973-export const pkg0 = 0;const someConst2 = 10;", + "signature": "c0fd585e07a3ab6bf19209ced748ff46-export declare const pkg0 = 0;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1121 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *mTime changed* + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + + +Edit [1]:: no change + + +Output:: + + + +Edit [2]:: dts change +//// [/user/username/projects/myproject/pkg0/index.ts] *modified* +export const pkg0 = 0;const someConst2 = 10;export const someConst = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * pkg0/tsconfig.json + * pkg1/tsconfig.json + * pkg2/tsconfig.json + * pkg3/tsconfig.json + * pkg4/tsconfig.json + * pkg5/tsconfig.json + * pkg6/tsconfig.json + * pkg7/tsconfig.json + * tsconfig.json + +[HH:MM:SS AM] Project 'pkg0/tsconfig.json' is out of date because output 'pkg0/tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'pkg0/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg1/tsconfig.json' is out of date because output 'pkg1/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg1/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg2/tsconfig.json' is out of date because output 'pkg2/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg2/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg3/tsconfig.json' is out of date because output 'pkg3/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg3/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg4/tsconfig.json' is out of date because output 'pkg4/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg4/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg5/tsconfig.json' is out of date because output 'pkg5/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg5/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg6/tsconfig.json' is out of date because output 'pkg6/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg6/tsconfig.json'... + +[HH:MM:SS AM] Project 'pkg7/tsconfig.json' is out of date because output 'pkg7/index.js' is older than input 'pkg0/tsconfig.json' + +[HH:MM:SS AM] Building project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Updating unchanged output timestamps of project 'pkg7/tsconfig.json'... + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'tsconfig.tsbuildinfo' is older than input 'pkg0/index.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/myproject/pkg0/index.d.ts] *modified* +export declare const pkg0 = 0; +export declare const someConst = 10; + +//// [/user/username/projects/myproject/pkg0/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someConst = exports.pkg0 = void 0; +exports.pkg0 = 0; +const someConst2 = 10; +exports.someConst = 10; + +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "78d1f0ba95fa9081a8a366af27252e24-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1187 +} +//// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,9]],"fileNames":["lib.d.ts","./pkg0/index.d.ts","./pkg1/index.d.ts","./pkg2/index.d.ts","./pkg3/index.d.ts","./pkg4/index.d.ts","./pkg5/index.d.ts","./pkg6/index.d.ts","./pkg7/index.d.ts","./pkg0/index.ts","./pkg1/index.ts","./pkg2/index.ts","./pkg3/index.ts","./pkg4/index.ts","./pkg5/index.ts","./pkg6/index.ts","./pkg7/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n","adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n","0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n","7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n","77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n","579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n","5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n"],"options":{"composite":true},"resolvedRoot":[[2,10],[3,11],[4,12],[5,13],[6,14],[7,15],[8,16],[9,17]]} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts" + ], + "original": [ + 2, + 9 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./pkg0/index.d.ts", + "./pkg1/index.d.ts", + "./pkg2/index.d.ts", + "./pkg3/index.d.ts", + "./pkg4/index.d.ts", + "./pkg5/index.d.ts", + "./pkg6/index.d.ts", + "./pkg7/index.d.ts", + "./pkg0/index.ts", + "./pkg1/index.ts", + "./pkg2/index.ts", + "./pkg3/index.ts", + "./pkg4/index.ts", + "./pkg5/index.ts", + "./pkg6/index.ts", + "./pkg7/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./pkg0/index.d.ts", + "version": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "signature": "cfd6b1b95a6527c0a282a7e259475a73-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg1/index.d.ts", + "version": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "signature": "4591f2e8d39387573c792e55fafa8bc7-export declare const pkg1 = 1;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg2/index.d.ts", + "version": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "signature": "adada4e37046e37638a0d78040557b79-export declare const pkg2 = 2;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg3/index.d.ts", + "version": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "signature": "0cda22bbedbd7219c42c3eae52fc90b9-export declare const pkg3 = 3;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg4/index.d.ts", + "version": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "signature": "7bf24fc1c537ab4cb909f04b2d31fc04-export declare const pkg4 = 4;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg5/index.d.ts", + "version": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "signature": "77e3d5618d46b9e6699466d447b624c1-export declare const pkg5 = 5;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg6/index.d.ts", + "version": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "signature": "579e596cadd02c6d565300617fc4469f-export declare const pkg6 = 6;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./pkg7/index.d.ts", + "version": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "signature": "5b1f76dfc41dd8ff6fccda80f3eebda1-export declare const pkg7 = 7;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "composite": true + }, + "resolvedRoot": [ + [ + "./pkg0/index.d.ts", + "./pkg0/index.ts" + ], + [ + "./pkg1/index.d.ts", + "./pkg1/index.ts" + ], + [ + "./pkg2/index.d.ts", + "./pkg2/index.ts" + ], + [ + "./pkg3/index.d.ts", + "./pkg3/index.ts" + ], + [ + "./pkg4/index.d.ts", + "./pkg4/index.ts" + ], + [ + "./pkg5/index.d.ts", + "./pkg5/index.ts" + ], + [ + "./pkg6/index.d.ts", + "./pkg6/index.ts" + ], + [ + "./pkg7/index.d.ts", + "./pkg7/index.ts" + ] + ], + "size": 1839 +} + +pkg0/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/myproject/pkg0/index.ts + +pkg1/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg2/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg3/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg4/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg5/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg6/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +pkg7/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/myproject/pkg0/index.d.ts +Signatures:: +(used version) /user/username/projects/myproject/pkg0/index.d.ts + + +Edit [3]:: no change + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js b/testdata/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js new file mode 100644 index 0000000000..9cf1cf62a8 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js @@ -0,0 +1,528 @@ +currentDirectory::/user/username/projects/reexport +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/reexport/src/main/index.ts] *new* +import { Session } from "../pure"; + +export const session: Session = { + foo: 1 +}; +//// [/user/username/projects/reexport/src/main/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "../../out", + "rootDir": "../", + }, + "include": ["**/*.ts"], + "references": [{ "path": "../pure" }], +} +//// [/user/username/projects/reexport/src/pure/index.ts] *new* +export * from "./session"; +//// [/user/username/projects/reexport/src/pure/session.ts] *new* +export interface Session { + foo: number; + // bar: number; +} +//// [/user/username/projects/reexport/src/pure/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "../../out", + "rootDir": "../", + }, + "include": ["**/*.ts"], +} +//// [/user/username/projects/reexport/src/tsconfig.json] *new* +{ + "files": [], + "include": [], + "references": [{ "path": "./pure" }, { "path": "./main" }], +} + +tsgo -b -w -verbose src +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * src/pure/tsconfig.json + * src/main/tsconfig.json + * src/tsconfig.json + +[HH:MM:SS AM] Project 'src/pure/tsconfig.json' is out of date because output file 'out/pure/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'src/pure/tsconfig.json'... + +[HH:MM:SS AM] Project 'src/main/tsconfig.json' is out of date because output file 'out/main/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'src/main/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/reexport/out/main/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.session = void 0; +exports.session = { + foo: 1 +}; + +//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":["../../src/main/index.ts"]} +//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../src/main/index.ts" + ], + "original": "../../src/main/index.ts" + } + ], + "size": 62 +} +//// [/user/username/projects/reexport/out/pure/index.d.ts] *new* +export * from "./session"; + +//// [/user/username/projects/reexport/out/pure/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./session"), exports); + +//// [/user/username/projects/reexport/out/pure/session.d.ts] *new* +export interface Session { + foo: number; +} + +//// [/user/username/projects/reexport/out/pure/session.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}","signature":"90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n","impliedNodeFormat":1},{"version":"c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";","signature":"14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../src/pure/session.ts", + "../../src/pure/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../src/pure/session.ts", + "../../src/pure/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../src/pure/session.ts", + "version": "1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}", + "signature": "90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}", + "signature": "90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../src/pure/index.ts", + "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", + "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", + "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../src/pure/session.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../src" + }, + "referencedMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1463 +} + +src/pure/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/reexport/src/pure/session.ts +*refresh* /user/username/projects/reexport/src/pure/index.ts +Signatures:: +(stored at emit) /user/username/projects/reexport/src/pure/session.ts +(stored at emit) /user/username/projects/reexport/src/pure/index.ts + +src/main/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/reexport/out/pure/session.d.ts +*refresh* /user/username/projects/reexport/out/pure/index.d.ts +*refresh* /user/username/projects/reexport/src/main/index.ts +Signatures:: + + +Edit [0]:: Introduce error +//// [/user/username/projects/reexport/src/pure/session.ts] *modified* +export interface Session { + foo: number; + bar: number; +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * src/pure/tsconfig.json + * src/main/tsconfig.json + * src/tsconfig.json + +[HH:MM:SS AM] Project 'src/pure/tsconfig.json' is out of date because output 'out/pure/tsconfig.tsbuildinfo' is older than input 'src/pure/session.ts' + +[HH:MM:SS AM] Building project 'src/pure/tsconfig.json'... + +[HH:MM:SS AM] Project 'src/main/tsconfig.json' is out of date because output 'out/main/index.js' is older than input 'src/pure/tsconfig.json' + +[HH:MM:SS AM] Building project 'src/main/tsconfig.json'... + +src/main/index.ts:3:14 - error TS2741: Property 'bar' is missing in type '{ foo: number; }' but required in type 'Session'. + +3 export const session: Session = { +   ~~~~~~~ + + out/pure/session.d.ts:3:5 - 'bar' is declared here. + 3 bar: number; +    ~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/reexport/out/main/index.js] *rewrite with same content* +//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../../src/main/index.ts"],"semanticErrors":true} +//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../src/main/index.ts" + ], + "original": "../../src/main/index.ts" + } + ], + "size": 84, + "semanticErrors": true +} +//// [/user/username/projects/reexport/out/pure/index.js] *rewrite with same content* +//// [/user/username/projects/reexport/out/pure/session.d.ts] *modified* +export interface Session { + foo: number; + bar: number; +} + +//// [/user/username/projects/reexport/out/pure/session.js] *rewrite with same content* +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f993dc94313f77cb079d7ee366b10997-export interface Session {\n foo: number;\n bar: number;\n}","signature":"5daeec8bad73c67127f3b3aae951c919-export interface Session {\n foo: number;\n bar: number;\n}\n","impliedNodeFormat":1},{"version":"c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";","signature":"14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./session.d.ts"} +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../src/pure/session.ts", + "../../src/pure/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../src/pure/session.ts", + "../../src/pure/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../src/pure/session.ts", + "version": "f993dc94313f77cb079d7ee366b10997-export interface Session {\n foo: number;\n bar: number;\n}", + "signature": "5daeec8bad73c67127f3b3aae951c919-export interface Session {\n foo: number;\n bar: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f993dc94313f77cb079d7ee366b10997-export interface Session {\n foo: number;\n bar: number;\n}", + "signature": "5daeec8bad73c67127f3b3aae951c919-export interface Session {\n foo: number;\n bar: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../src/pure/index.ts", + "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", + "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", + "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../src/pure/session.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../src" + }, + "referencedMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "latestChangedDtsFile": "./session.d.ts", + "size": 1480 +} + +src/pure/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/reexport/src/pure/session.ts +*refresh* /user/username/projects/reexport/src/pure/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/reexport/src/pure/session.ts +(computed .d.ts) /user/username/projects/reexport/src/pure/index.ts + +src/main/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/reexport/out/pure/session.d.ts +*refresh* /user/username/projects/reexport/out/pure/index.d.ts +*refresh* /user/username/projects/reexport/src/main/index.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/reexport/src/pure/session.ts] *modified* +export interface Session { + foo: number; + // bar: number; +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * src/pure/tsconfig.json + * src/main/tsconfig.json + * src/tsconfig.json + +[HH:MM:SS AM] Project 'src/pure/tsconfig.json' is out of date because output 'out/pure/tsconfig.tsbuildinfo' is older than input 'src/pure/session.ts' + +[HH:MM:SS AM] Building project 'src/pure/tsconfig.json'... + +[HH:MM:SS AM] Project 'src/main/tsconfig.json' is out of date because it has errors. + +[HH:MM:SS AM] Building project 'src/main/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/reexport/out/main/index.js] *rewrite with same content* +//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":["../../src/main/index.ts"]} +//// [/user/username/projects/reexport/out/main/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../src/main/index.ts" + ], + "original": "../../src/main/index.ts" + } + ], + "size": 62 +} +//// [/user/username/projects/reexport/out/pure/index.js] *rewrite with same content* +//// [/user/username/projects/reexport/out/pure/session.d.ts] *modified* +export interface Session { + foo: number; +} + +//// [/user/username/projects/reexport/out/pure/session.js] *rewrite with same content* +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}","signature":"90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n","impliedNodeFormat":1},{"version":"c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";","signature":"14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./session.d.ts"} +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../src/pure/session.ts", + "../../src/pure/index.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../src/pure/session.ts", + "../../src/pure/index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../src/pure/session.ts", + "version": "1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}", + "signature": "90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1beb34deefa28062ed4b4b605c69e42f-export interface Session {\n foo: number;\n // bar: number;\n}", + "signature": "90b43415bdb2993dfd8c888e444ab471-export interface Session {\n foo: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../src/pure/index.ts", + "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", + "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c3b7227625b1dcb56b6fb13c17c504fe-export * from \"./session\";", + "signature": "14ab788547e1e852fa86d4bf1731e8c8-export * from \"./session\";\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../src/pure/session.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../src" + }, + "referencedMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "latestChangedDtsFile": "./session.d.ts", + "size": 1465 +} + +src/pure/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/reexport/src/pure/session.ts +*refresh* /user/username/projects/reexport/src/pure/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/reexport/src/pure/session.ts +(computed .d.ts) /user/username/projects/reexport/src/pure/index.ts + +src/main/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/reexport/out/pure/session.d.ts +*refresh* /user/username/projects/reexport/out/pure/index.d.ts +*refresh* /user/username/projects/reexport/src/main/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js b/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js new file mode 100644 index 0000000000..b3643a328a --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project-and-shared-is-first.js @@ -0,0 +1,870 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/projects/server/src/server.ts] *new* +import { MyClass } from ':shared/myClass.js'; +console.log('Hello, world!'); +//// [/home/src/workspaces/solution/projects/server/tsconfig.json] *new* +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "..", + "outDir": "./dist", + "paths": { + ":shared/*": ["./src/../../shared/src/*"], + }, + }, + "include": [ "../shared/src/**/*.ts", "src/**/*.ts" ], + "references": [ + { "path": "../shared" }, + ], +} +//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *new* +export function log(str: string) { + console.log(str); +} +//// [/home/src/workspaces/solution/projects/shared/src/myClass.ts] *new* +export class MyClass { } +//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *new* +export function randomFn(str: string) { + console.log(str); +} +//// [/home/src/workspaces/solution/projects/shared/tsconfig.json] *new* +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + }, + "include": ["src/**/*.ts"], +} +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "projects/server" }, + { "path": "projects/shared" }, + ], +} + +tsgo --b -w projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output file 'projects/shared/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/random.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output file 'projects/server/dist/server/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/myClass.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/shared/dist/src/random.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/random.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.d.ts] *new* +export {}; + +//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log('Hello, world!'); + +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../../shared/dist/src/random.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[5,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[3,7],[4,8]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../src/server.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../src/server.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/random.d.ts", + "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/random.ts" + ] + ], + "size": 1728 +} +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *new* +export declare function log(str: string): void; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.log = log; +function log(str) { + console.log(str); +} + +//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts] *new* +export declare class MyClass { +} + +//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +class MyClass { +} +exports.MyClass = MyClass; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/random.d.ts] *new* +export declare function randomFn(str: string): void; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/random.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.randomFn = randomFn; +function randomFn(str) { + console.log(str); +} + +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}","signature":"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/random.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/random.ts", + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/random.d.ts", + "size": 1637 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/myClass.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/random.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/projects/shared/src/logging.ts +(stored at emit) /home/src/workspaces/solution/projects/shared/src/myClass.ts +(stored at emit) /home/src/workspaces/solution/projects/shared/src/random.ts + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/random.d.ts +*refresh* /home/src/workspaces/solution/projects/server/src/server.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/projects/server/src/server.ts + + +Edit [0]:: no change + + +Output:: + + + +Edit [1]:: edit logging file +//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *modified* +export function log(str: string) { + console.log(str); +}export const x = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output 'projects/shared/dist/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/random.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output 'projects/server/dist/server/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/myClass.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/shared/dist/src/random.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/random.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../../shared/dist/src/random.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[5,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[3,7],[4,8]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../src/server.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../src/server.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/random.d.ts", + "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/random.ts" + ] + ], + "size": 1758 +} +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *modified* +export declare function log(str: string): void; +export declare const x = 10; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.log = log; +function log(str) { + console.log(str); +} +exports.x = 10; + +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/random.ts", + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/logging.d.ts", + "size": 1688 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/projects/shared/src/logging.ts + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts +Signatures:: +(used version) /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts + + +Edit [2]:: no change + + +Output:: + + + +Edit [3]:: delete random file +//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *deleted* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because buildinfo file 'projects/shared/dist/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because buildinfo file 'projects/server/dist/server/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/myClass.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/src/logging.ts","../../../shared/src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[4,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,5],[3,6]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/myClass.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ] + ], + "size": 1591 +} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/logging.d.ts", + "size": 1432 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project.js b/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project.js new file mode 100644 index 0000000000..48f204da2b --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/roots/when-root-file-is-from-referenced-project.js @@ -0,0 +1,870 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/projects/server/src/server.ts] *new* +import { MyClass } from ':shared/myClass.js'; +console.log('Hello, world!'); +//// [/home/src/workspaces/solution/projects/server/tsconfig.json] *new* +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "..", + "outDir": "./dist", + "paths": { + ":shared/*": ["./src/../../shared/src/*"], + }, + }, + "include": [ "src/**/*.ts", "../shared/src/**/*.ts" ], + "references": [ + { "path": "../shared" }, + ], +} +//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *new* +export function log(str: string) { + console.log(str); +} +//// [/home/src/workspaces/solution/projects/shared/src/myClass.ts] *new* +export class MyClass { } +//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *new* +export function randomFn(str: string) { + console.log(str); +} +//// [/home/src/workspaces/solution/projects/shared/tsconfig.json] *new* +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + }, + "include": ["src/**/*.ts"], +} +//// [/home/src/workspaces/solution/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "projects/server" }, + { "path": "projects/shared" }, + ], +} + +tsgo --b -w projects/server -v --traceResolution --explainFiles +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output file 'projects/shared/dist/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/random.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output file 'projects/server/dist/server/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/myClass.d.ts + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/random.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/random.ts' +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.d.ts] *new* +export {}; + +//// [/home/src/workspaces/solution/projects/server/dist/server/src/server.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log('Hello, world!'); + +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/random.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[4,7],[5,8]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/random.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/random.d.ts", + "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/random.ts" + ] + ], + "size": 1728 +} +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *new* +export declare function log(str: string): void; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.log = log; +function log(str) { + console.log(str); +} + +//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts] *new* +export declare class MyClass { +} + +//// [/home/src/workspaces/solution/projects/shared/dist/src/myClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +class MyClass { +} +exports.MyClass = MyClass; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/random.d.ts] *new* +export declare function randomFn(str: string): void; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/random.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.randomFn = randomFn; +function randomFn(str) { + console.log(str); +} + +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}","signature":"380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/random.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e8c4594410128d4531f2321647cc451d-export function log(str: string) {\n console.log(str);\n}", + "signature": "380f2d6d625cf989bc9f9bcd67ce3afe-export declare function log(str: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/random.ts", + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/random.d.ts", + "size": 1637 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/myClass.ts +*refresh* /home/src/workspaces/solution/projects/shared/src/random.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/projects/shared/src/logging.ts +(stored at emit) /home/src/workspaces/solution/projects/shared/src/myClass.ts +(stored at emit) /home/src/workspaces/solution/projects/shared/src/random.ts + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/myClass.d.ts +*refresh* /home/src/workspaces/solution/projects/server/src/server.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/random.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/projects/server/src/server.ts + + +Edit [0]:: no change + + +Output:: + + + +Edit [1]:: edit logging file +//// [/home/src/workspaces/solution/projects/shared/src/logging.ts] *modified* +export function log(str: string) { + console.log(str); +}export const x = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because output 'projects/shared/dist/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/random.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because output 'projects/server/dist/server/tsconfig.tsbuildinfo' is older than input 'projects/shared/src/logging.ts' + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/myClass.d.ts + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +projects/shared/dist/src/random.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/random.ts' +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/dist/src/random.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts","../../../shared/src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,6],[4,7],[5,8]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/random.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/logging.ts", + "../../../shared/src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../../shared/dist/src/random.d.ts", + "version": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ], + [ + "../../../shared/dist/src/random.d.ts", + "../../../shared/src/random.ts" + ] + ], + "size": 1758 +} +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts] *modified* +export declare function log(str: string): void; +export declare const x = 10; + +//// [/home/src/workspaces/solution/projects/shared/dist/src/logging.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.log = log; +function log(str) { + console.log(str); +} +exports.x = 10; + +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts","../src/random.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1},{"version":"4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}","signature":"1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts", + "../src/random.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/random.ts", + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4f1c4e78a007da37552cba1c9b98db63-export function randomFn(str: string) {\n console.log(str);\n}", + "signature": "1d6adcd8c4dee61b744fc1ff84370372-export declare function randomFn(str: string): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/logging.d.ts", + "size": 1688 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/projects/shared/src/logging.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/solution/projects/shared/src/logging.ts + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts +Signatures:: +(used version) /home/src/workspaces/solution/projects/shared/dist/src/logging.d.ts + + +Edit [2]:: no change + + +Output:: + + + +Edit [3]:: delete random file +//// [/home/src/workspaces/solution/projects/shared/src/random.ts] *deleted* + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * projects/shared/tsconfig.json + * projects/server/tsconfig.json + +[HH:MM:SS AM] Project 'projects/shared/tsconfig.json' is out of date because buildinfo file 'projects/shared/dist/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'projects/shared/tsconfig.json'... + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/src/logging.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +projects/shared/src/myClass.ts + Matched by include pattern 'src/**/*.ts' in 'projects/shared/tsconfig.json' +[HH:MM:SS AM] Project 'projects/server/tsconfig.json' is out of date because buildinfo file 'projects/server/dist/server/tsconfig.tsbuildinfo' indicates that file 'projects/shared/src/random.ts' was root file of compilation but not any more. + +[HH:MM:SS AM] Building project 'projects/server/tsconfig.json'... + +======== Resolving module ':shared/myClass.js' from '/home/src/workspaces/solution/projects/server/src/server.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name ':shared/myClass.js'. +Module name ':shared/myClass.js', matched pattern ':shared/*'. +Trying substitution './src/../../shared/src/*', candidate module location: './src/../../shared/src/myClass.js'. +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/projects/shared/src/myClass.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/home/src/workspaces/solution/projects/shared/src/myClass.js' has a '.js' extension - stripping it. +File '/home/src/workspaces/solution/projects/shared/src/myClass.ts' exists - use it as a name resolution result. +======== Module name ':shared/myClass.js' was successfully resolved to '/home/src/workspaces/solution/projects/shared/src/myClass.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +projects/shared/dist/src/myClass.d.ts + Imported via ':shared/myClass.js' from file 'projects/server/src/server.ts' + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/myClass.ts' +projects/server/src/server.ts + Matched by include pattern 'src/**/*.ts' in 'projects/server/tsconfig.json' +projects/shared/dist/src/logging.d.ts + Matched by include pattern '../shared/src/**/*.ts' in 'projects/server/tsconfig.json' + File is output of project reference source 'projects/shared/src/logging.ts' +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../../../shared/dist/src/myClass.d.ts","../../src/server.ts","../../../shared/dist/src/logging.d.ts","../../../shared/src/myClass.ts","../../../shared/src/logging.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n",{"version":"12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n"],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"..","rootDir":"../../.."},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/server.d.ts","resolvedRoot":[[2,5],[4,6]]} +//// [/home/src/workspaces/solution/projects/server/dist/server/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../../../shared/dist/src/myClass.d.ts", + "../../src/server.ts", + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/myClass.ts", + "../../../shared/src/logging.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/myClass.d.ts", + "version": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/server.ts", + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12354a7ec5afade35d10a2c1fa79eb29-import { MyClass } from ':shared/myClass.js';\nconsole.log('Hello, world!');", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../../shared/dist/src/logging.d.ts", + "version": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../../../shared/dist/src/myClass.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../.." + }, + "referencedMap": { + "../../src/server.ts": [ + "../../../shared/dist/src/myClass.d.ts" + ] + }, + "latestChangedDtsFile": "./src/server.d.ts", + "resolvedRoot": [ + [ + "../../../shared/dist/src/myClass.d.ts", + "../../../shared/src/myClass.ts" + ], + [ + "../../../shared/dist/src/logging.d.ts", + "../../../shared/src/logging.ts" + ] + ], + "size": 1591 +} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../src/logging.ts","../src/myClass.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;","signature":"5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n","impliedNodeFormat":1},{"version":"22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }","signature":"21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/logging.d.ts"} +//// [/home/src/workspaces/solution/projects/shared/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/logging.ts", + "../src/myClass.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/logging.ts", + "../src/myClass.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/logging.ts", + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "107fb48a395fd47390346ab424ebcc12-export function log(str: string) {\n console.log(str);\n}export const x = 10;", + "signature": "5178e2a779ca8b29fb07201995347a09-export declare function log(str: string): void;\nexport declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/myClass.ts", + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "22f018e389f527d25fc2ad2b2c6c9702-export class MyClass { }", + "signature": "21b0030a128ccc5aedc6fdbe3cdf12e3-export declare class MyClass {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/logging.d.ts", + "size": 1432 +} + +projects/shared/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +projects/server/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates-with-circular-references.js b/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates-with-circular-references.js new file mode 100644 index 0000000000..d84e11bb2f --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates-with-circular-references.js @@ -0,0 +1,755 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { "path": "../tests", "circular": true } + ], +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w tests +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; + +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1769 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1801 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1960 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Change to new File and build core +//// [/user/username/projects/sample1/core/newfile.ts] *new* +export const newFileConst = 30; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/newfile.d.ts] *new* +export declare const newFileConst = 30; + +//// [/user/username/projects/sample1/core/newfile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.newFileConst = void 0; +exports.newFileConst = 30; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"046181f7f382942435700923f254abbd-export const newFileConst = 30;","signature":"a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./newfile.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./newfile.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./newfile.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./newfile.ts", + "version": "046181f7f382942435700923f254abbd-export const newFileConst = 30;", + "signature": "a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "046181f7f382942435700923f254abbd-export const newFileConst = 30;", + "signature": "a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./newfile.d.ts", + "size": 1976 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/newfile.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/newfile.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tests/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Change to new File and build core +//// [/user/username/projects/sample1/core/newfile.ts] *modified* + +export class someClass2 { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/newfile.d.ts] *modified* +export declare class someClass2 { +} + +//// [/user/username/projects/sample1/core/newfile.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass2 = void 0; +class someClass2 { +} +exports.someClass2 = someClass2; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }","signature":"6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./newfile.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./newfile.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./newfile.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./newfile.ts", + "version": "be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }", + "signature": "6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }", + "signature": "6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./newfile.d.ts", + "size": 1971 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/newfile.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/newfile.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tests/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates.js new file mode 100644 index 0000000000..e292b3ce77 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -0,0 +1,768 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w tests +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Change to new File and build core +//// [/user/username/projects/sample1/core/newfile.ts] *new* +export const newFileConst = 30; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/newfile.d.ts] *new* +export declare const newFileConst = 30; +//# sourceMappingURL=newfile.d.ts.map +//// [/user/username/projects/sample1/core/newfile.d.ts.map] *new* +{"version":3,"file":"newfile.d.ts","sourceRoot":"","sources":["newfile.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAK,CAAC"} +//// [/user/username/projects/sample1/core/newfile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.newFileConst = void 0; +exports.newFileConst = 30; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"046181f7f382942435700923f254abbd-export const newFileConst = 30;","signature":"a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./newfile.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./newfile.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./newfile.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./newfile.ts", + "version": "046181f7f382942435700923f254abbd-export const newFileConst = 30;", + "signature": "a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "046181f7f382942435700923f254abbd-export const newFileConst = 30;", + "signature": "a58a2a5c0f75f5061a8fd33d410e8e87-export declare const newFileConst = 30;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./newfile.d.ts", + "size": 2025 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/newfile.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/newfile.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tests/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Change to new File and build core +//// [/user/username/projects/sample1/core/newfile.ts] *modified* + +export class someClass2 { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/newfile.d.ts] *modified* +export declare class someClass2 { +} +//# sourceMappingURL=newfile.d.ts.map +//// [/user/username/projects/sample1/core/newfile.d.ts.map] *modified* +{"version":3,"file":"newfile.d.ts","sourceRoot":"","sources":["newfile.ts"],"names":[],"mappings":"AACA,qBAAa,UAAU;CAAI"} +//// [/user/username/projects/sample1/core/newfile.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass2 = void 0; +class someClass2 { +} +exports.someClass2 = someClass2; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }","signature":"6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./newfile.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./newfile.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./newfile.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./newfile.ts", + "version": "be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }", + "signature": "6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "be01929bbca74e4343ac8d7aa9c08b55-\nexport class someClass2 { }", + "signature": "6235ba91ce253ead4599fe030935931e-export declare class someClass2 {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./newfile.d.ts", + "size": 2020 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/newfile.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/newfile.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + +tests/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message-with-circular-references.js b/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message-with-circular-references.js new file mode 100644 index 0000000000..437f589cf9 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message-with-circular-references.js @@ -0,0 +1,1414 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { "path": "../tests", "circular": true } + ], +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w tests +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; + +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1769 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1801 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1960 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Make change to core +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} + +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1834 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1838 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1997 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [1]:: Revert core file +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1769 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1801 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1960 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [2]:: Make two changes +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } +export class someClass2 { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} +export declare class someClass2 { +} + +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass2 = exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; +class someClass2 { +} +exports.someClass2 = someClass2; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }","signature":"6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }", + "signature": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }", + "signature": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1901 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1876 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2035 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message.js b/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message.js new file mode 100644 index 0000000000..11af883cbe --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/change-builds-changes-and-reports-found-errors-message.js @@ -0,0 +1,1431 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w tests +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Make change to core +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI"} +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }","signature":"f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ce98c7b232474711a6089b586825cf2a-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }", + "signature": "f678e4b80b87bcfac584b8a641b31960-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1883 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1916 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "4c69c21de8985cc5cf2addb044c738b6-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2075 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [1]:: Revert core file +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts + + +Edit [2]:: Make two changes +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +export class someClass { } +export class someClass2 { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts] *modified* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} +export declare class someClass2 { +} +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *modified* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAChE,qBAAa,SAAS;CAAI;AAC1B,qBAAa,UAAU;CAAI"} +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someClass2 = exports.someClass = exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +class someClass { +} +exports.someClass = someClass; +class someClass2 { +} +exports.someClass2 = someClass2; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }","signature":"6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }", + "signature": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3682101db2184c6bccaa98c1c1ac0791-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nexport class someClass { }\nexport class someClass2 { }", + "signature": "6b05b9011aa41b6b276b3708df078d1d-export declare const someString: 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", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1950 +} +//// [/user/username/projects/sample1/logic/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js.map] *rewrite with same content* +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1954 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", + "signature": "d4da7cae37db82b1a9affca237e15204-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2113 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/core/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/incremental-updates-in-verbose-mode.js b/testdata/baselines/reference/tsbuildWatch/sample/incremental-updates-in-verbose-mode.js new file mode 100644 index 0000000000..3c5b6ae149 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/incremental-updates-in-verbose-mode.js @@ -0,0 +1,947 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w tests --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Make non dts change +//// [/user/username/projects/sample1/logic/index.ts] *modified* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +function someFn() { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/index.ts' + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[HH:MM:SS AM] Updating output timestamps of project 'tests/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/logic/index.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +function someFn() { } +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *modified* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,SAAS,MAAM,GAAG,EAAC,CAAE"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"56bc284b087dd9cc90ffa4704740b86c-import * as 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 someFn() { }","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "56bc284b087dd9cc90ffa4704740b86c-import * as 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 someFn() { }", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "56bc284b087dd9cc90ffa4704740b86c-import * as 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 someFn() { }", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1902 +} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + + +Edit [1]:: Make dts change +//// [/user/username/projects/sample1/logic/index.ts] *modified* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +export function someFn() { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/index.ts' + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output 'tests/index.js' is older than input 'logic/tsconfig.json' + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/logic/index.d.ts] *modified* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; +export declare function someFn(): void; + +//// [/user/username/projects/sample1/logic/index.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +exports.someFn = someFn; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +function someFn() { } +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *modified* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,kBAAyB,EAAC,CAAE"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"d749596c6d4d5a27ed436fc0d564335c-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nexport function someFn() { }","signature":"2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "d749596c6d4d5a27ed436fc0d564335c-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nexport function someFn() { }", + "signature": "2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d749596c6d4d5a27ed436fc0d564335c-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nexport function someFn() { }", + "signature": "2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1950 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", + "signature": "2e576d48e524436cd9a1f5da08ccc740-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2079 +} + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/logic/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects-with-circular-references.js b/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects-with-circular-references.js new file mode 100644 index 0000000000..0690e8f202 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects-with-circular-references.js @@ -0,0 +1,606 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { "path": "../tests", "circular": true } + ], +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w tests +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; + +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1769 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1801 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1960 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Make local change to core +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +function foo() { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +function foo() { } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1789 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects.js b/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects.js new file mode 100644 index 0000000000..03ba286123 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/non-local-change-does-not-start-build-of-referencing-projects.js @@ -0,0 +1,614 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w tests +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Make local change to core +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +function foo() { } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +function foo() { } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2701734db0c9484494be1001fea37913-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nfunction foo() { }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1838 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-not-used.js b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-not-used.js new file mode 100644 index 0000000000..52aaf107d3 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-not-used.js @@ -0,0 +1,964 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo -b -w tests +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: change logic +//// [/user/username/projects/sample1/logic/index.ts] *modified* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +let y: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +7 let y: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/sample1/logic/index.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +let y = 10; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *modified* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,IAAI,CAAC,GAAW,EAAE,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":177,"end":178,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 177, + "end": 178, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2046 +} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + + +Edit [1]:: change core +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +let x: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +4 let x: string = 10; +   ~ + +logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +7 let y: string = 10; +   ~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +let x = 10; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":182,"end":183,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 182, + "end": 183, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 1985 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: fix error in logic +//// [/user/username/projects/sample1/logic/index.ts] *modified* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +4 let x: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/sample1/logic/index.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *modified* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/logic/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-passed-on-command-line.js b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-passed-on-command-line.js new file mode 100644 index 0000000000..34661be266 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-preserveWatchOutput-is-passed-on-command-line.js @@ -0,0 +1,964 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo -b -w tests --preserveWatchOutput +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: change logic +//// [/user/username/projects/sample1/logic/index.ts] *modified* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +let y: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +7 let y: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/sample1/logic/index.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +let y = 10; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *modified* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,IAAI,CAAC,GAAW,EAAE,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":177,"end":178,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 177, + "end": 178, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2046 +} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + + +Edit [1]:: change core +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +let x: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +4 let x: string = 10; +   ~ + +logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +7 let y: string = 10; +   ~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +let x = 10; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":182,"end":183,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 182, + "end": 183, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 1985 +} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *mTime changed* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: fix error in logic +//// [/user/username/projects/sample1/logic/index.ts] *modified* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +4 let x: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/sample1/logic/index.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *modified* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *mTime changed* + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/logic/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-stopBuildOnErrors-is-passed-on-command-line.js b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-stopBuildOnErrors-is-passed-on-command-line.js new file mode 100644 index 0000000000..f39b616388 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/reportErrors-when-stopBuildOnErrors-is-passed-on-command-line.js @@ -0,0 +1,841 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo -b -w tests --stopBuildOnErrors +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: change logic +//// [/user/username/projects/sample1/logic/index.ts] *modified* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +let y: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +7 let y: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/user/username/projects/sample1/logic/index.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +let y = 10; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *modified* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,IAAI,CAAC,GAAW,EAAE,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":177,"end":178,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3abed61bf6897ffa70a069303f7ee37f-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nlet y: string = 10;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 177, + "end": 178, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2046 +} + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/logic/index.ts + + +Edit [1]:: change core +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +let x: string = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +4 let x: string = 10; +   ~ + +logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +7 let y: string = 10; +   ~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +let x = 10; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":182,"end":183,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bd46ecaf1bd821bbf62f3d94c22c2a57-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\nlet x: string = 10;", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 182, + "end": 183, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 1985 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + + +Diff:: Clean build will stop on error in core and will not report error in logic +Watch build will retain previous errors from logic and report it +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -3,3 +3,8 @@ + 4 let x: string = 10; +    ~ + ++logic/index.ts:7:5 - error TS2322: Type 'number' is not assignable to type 'string'. ++ ++7 let y: string = 10; ++   ~ ++ + +Edit [2]:: fix error in logic +//// [/user/username/projects/sample1/logic/index.ts] *modified* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +core/index.ts:4:5 - error TS2322: Type 'number' is not assignable to type 'string'. + +4 let x: string = 10; +   ~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + diff --git a/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js b/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js new file mode 100644 index 0000000000..bf6b1a70c2 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js @@ -0,0 +1,350 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "outDir" + } +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/outDir/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/outDir/anotherModule.d.ts] *new* +export declare const World = "hello"; + +//// [/user/username/projects/sample1/core/outDir/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/outDir/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + +//// [/user/username/projects/sample1/core/outDir/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../anotherModule.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../anotherModule.ts", + "../index.ts", + "../some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../anotherModule.ts", + "../index.ts", + "../some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1767 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + + +Edit [0]:: no change + + +Output:: + + + +Edit [1]:: Add new file +//// [/user/username/projects/sample1/core/file3.ts] *new* +export const y = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/outDir/tsconfig.tsbuildinfo' is older than input 'core/file3.ts' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/outDir/file3.d.ts] *new* +export declare const y = 10; + +//// [/user/username/projects/sample1/core/outDir/file3.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = 10; + +//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","../anotherModule.ts","../file3.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;","signature":"7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./file3.d.ts"} +//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../anotherModule.ts", + "../file3.ts", + "../index.ts", + "../some_decl.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../anotherModule.ts", + "../file3.ts", + "../index.ts", + "../some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../file3.ts", + "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", + "signature": "7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", + "signature": "7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./file3.d.ts", + "size": 1949 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/file3.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/file3.ts + + +Edit [2]:: no change + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit.js b/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit.js new file mode 100644 index 0000000000..c7580e8511 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/should-not-trigger-recompilation-because-of-program-emit.js @@ -0,0 +1,362 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w core --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + + +Edit [0]:: no change + + +Output:: + + + +Edit [1]:: Add new file +//// [/user/username/projects/sample1/core/file3.ts] *new* +export const y = 10; + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/file3.ts' + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/file3.d.ts] *new* +export declare const y = 10; +//# sourceMappingURL=file3.d.ts.map +//// [/user/username/projects/sample1/core/file3.d.ts.map] *new* +{"version":3,"file":"file3.d.ts","sourceRoot":"","sources":["file3.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/user/username/projects/sample1/core/file3.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = 10; + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./anotherModule.ts","./file3.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;","signature":"7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./file3.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./file3.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./file3.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./file3.ts", + "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", + "signature": "7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", + "signature": "7ab1b6e8968172bdd365c972b27a69e2-export declare const y = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./file3.d.ts", + "size": 1999 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/file3.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/file3.ts + + +Edit [2]:: no change + + +Output:: + diff --git a/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js b/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js new file mode 100644 index 0000000000..30362fa24d --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js @@ -0,0 +1,676 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; }multiply(); +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose --stopBuildOnErrors --watch +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. + +3 export function multiply(a: number, b: number) { return a * b; }multiply(); +   ~~~~~~~~ + + core/index.ts:3:26 - An argument for 'a' was not provided. + 3 export function multiply(a: number, b: number) { return a * b; }multiply(); +    ~~~~~~~~~ + +[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors + +[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' was not built + +[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'logic' was not built + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +multiply(); + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":177,"end":185,"code":2554,"category":1,"message":"Expected 2 arguments, but got 0.","relatedInformation":[{"pos":138,"end":147,"code":6210,"category":3,"message":"An argument for 'a' was not provided."}]}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 177, + "end": 185, + "code": 2554, + "category": 1, + "message": "Expected 2 arguments, but got 0.", + "relatedInformation": [ + { + "pos": 138, + "end": 147, + "code": 6210, + "category": 3, + "message": "An argument for 'a' was not provided." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2078 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + + +Edit [0]:: fix error +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js b/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js new file mode 100644 index 0000000000..508c861c24 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js @@ -0,0 +1,677 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; }multiply(); +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b tests --verbose --stopBuildOnErrors --watch +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +core/index.ts:3:65 - error TS2554: Expected 2 arguments, but got 0. + +3 export function multiply(a: number, b: number) { return a * b; }multiply(); +   ~~~~~~~~ + + core/index.ts:3:26 - An argument for 'a' was not provided. + 3 export function multiply(a: number, b: number) { return a * b; }multiply(); +    ~~~~~~~~~ + +[HH:MM:SS AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'logic/tsconfig.json' because its dependency 'core' has errors + +[HH:MM:SS AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors + +[HH:MM:SS AM] Skipping build of project 'tests/tsconfig.json' because its dependency 'core' has errors + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } +multiply(); + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"semanticDiagnosticsPerFile":[[3,[{"pos":177,"end":185,"code":2554,"category":1,"message":"Expected 2 arguments, but got 0.","relatedInformation":[{"pos":138,"end":147,"code":6210,"category":3,"message":"An argument for 'a' was not provided."}]}]]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4bf9c557eaa1c988144310898522b7b5-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }multiply();", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 177, + "end": 185, + "code": 2554, + "category": 1, + "message": "Expected 2 arguments, but got 0.", + "relatedInformation": [ + { + "pos": 138, + "end": 147, + "code": 6210, + "category": 3, + "message": "An argument for 'a' was not provided." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2078 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + + +Edit [0]:: fix error +//// [/user/username/projects/sample1/core/index.ts] *modified* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json + +[HH:MM:SS AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'core/tsconfig.json'... + +[HH:MM:SS AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'logic/tsconfig.json'... + +[HH:MM:SS AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tests/tsconfig.json'... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/core/index.d.ts.map] *rewrite with same content* +//// [/user/username/projects/sample1/core/index.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/sample1/core/index.ts +Signatures:: +(computed .d.ts) /user/username/projects/sample1/core/index.ts + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsbuildWatch/sample/watches-config-files-that-are-not-present.js b/testdata/baselines/reference/tsbuildWatch/sample/watches-config-files-that-are-not-present.js new file mode 100644 index 0000000000..0a6a51a5c1 --- /dev/null +++ b/testdata/baselines/reference/tsbuildWatch/sample/watches-config-files-that-are-not-present.js @@ -0,0 +1,679 @@ +currentDirectory::/user/username/projects/sample1 +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/sample1/core/anotherModule.ts] *new* +export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] *new* +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] *new* +declare const dts: any; +//// [/user/username/projects/sample1/core/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + }, +} +//// [/user/username/projects/sample1/logic/index.ts] *new* +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] *new* +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] *new* +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" }, + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --b -w tests +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Starting compilation in watch mode... + +error TS6053: File '/user/username/projects/sample1/logic/tsconfig.json' not found. +tests/tsconfig.json:4:9 - error TS6053: File '/user/username/projects/sample1/logic' not found. + +4 { "path": "../logic" }, +   ~~~~~~~~~~~~~~~~~~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/sample1/core/anotherModule.d.ts] *new* +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] *new* +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} +//// [/user/username/projects/sample1/core/anotherModule.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = void 0; +exports.World = "hello"; + +//// [/user/username/projects/sample1/core/index.d.ts] *new* +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/user/username/projects/sample1/core/index.d.ts.map] *new* +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} +//// [/user/username/projects/sample1/core/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = void 0; +exports.leftPad = leftPad; +exports.multiply = multiply; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +function multiply(a, b) { return a * b; } + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./anotherModule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"19cd44ed7278957051fca663f821c916-export const World = \"hello\";","signature":"5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n","impliedNodeFormat":1},{"version":"2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }","signature":"da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedNodeFormat":1},{"version":"6ceab83400a6167be2fb5feab881ded0-declare const dts: any;","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./anotherModule.ts", + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "19cd44ed7278957051fca663f821c916-export const World = \"hello\";", + "signature": "5aad0de3e7b08bb6e110c7b97361b89e-export declare const World = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2753a1085d587a7d57069e1105af24ec-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }", + "signature": "da642d80443e7ccd327091080a82a43c-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./some_decl.d.ts", + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "signature": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6ceab83400a6167be2fb5feab881ded0-declare const dts: any;", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1818 +} +//// [/user/username/projects/sample1/logic/index.d.ts] *new* +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/logic/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/index.d.ts] *new* +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + +//// [/user/username/projects/sample1/tests/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +const c = __importStar(require("../core/index")); +const logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1},{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.ts", + "./index.ts" + ], + "latestChangedDtsFile": "./index.d.ts", + "size": 2352 +} + +core/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.ts +*refresh* /user/username/projects/sample1/core/index.ts +*refresh* /user/username/projects/sample1/core/some_decl.d.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/core/anotherModule.ts +(stored at emit) /user/username/projects/sample1/core/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/sample1/core/index.d.ts +*not cached* /user/username/projects/sample1/core/anotherModule.d.ts +*not cached* /user/username/projects/sample1/logic/index.ts +*not cached* /user/username/projects/sample1/tests/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts +(stored at emit) /user/username/projects/sample1/tests/index.ts + + +Edit [0]:: Write logic +//// [/user/username/projects/sample1/logic/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "skipDefaultLibCheck": true, + }, + "references": [ + { "path": "../core" }, + ], +} + + +Output:: +[HH:MM:SS AM] File change detected. Starting incremental compilation... + +[HH:MM:SS AM] Found 0 errors. Watching for file changes. + +//// [/user/username/projects/sample1/logic/index.d.ts] *rewrite with same content* +//// [/user/username/projects/sample1/logic/index.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.getSecondsInDay = getSecondsInDay; +const c = __importStar(require("../core/index")); +function getSecondsInDay() { + return c.multiply(10, 15); +} +const mod = __importStar(require("../core/anotherModule")); +exports.m = mod; +//# sourceMappingURL=index.js.map +//// [/user/username/projects/sample1/logic/index.js.map] *new* +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,0CAAsB;AACnC,2BAAkC;IAC9B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAAA,CAC7B;AACD,MAAY,GAAG,kDAA8B;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "590556060bc156a64834010df8cda255-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1879 +} +//// [/user/username/projects/sample1/tests/index.js] *rewrite with same content* +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","../core/index.d.ts","../core/anotherModule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;","signature":"4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2,3,4]],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./index.d.ts"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../core/index.d.ts", + "version": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "signature": "fc70810d80f598d415c6f21c113a400b-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../core/anotherModule.d.ts", + "version": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "5ef600f6f6585506cfe942fc161e76c5-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../logic/index.d.ts", + "version": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "signature": "487f7216384ec40e22ff7dc40c01be4b-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.ts", + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7fa4162f733e6b9e7f7d9d9410e62f61-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;", + "signature": "4b3c99afe665034856f74c660f74d6fd-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../core/anotherModule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anotherModule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anotherModule.d.ts", + "../logic/index.d.ts" + ] + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 2038 +} + +logic/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.ts +Signatures:: +(stored at emit) /user/username/projects/sample1/logic/index.ts + +tests/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/sample1/core/index.d.ts +*refresh* /user/username/projects/sample1/core/anotherModule.d.ts +*refresh* /user/username/projects/sample1/logic/index.d.ts +*refresh* /user/username/projects/sample1/tests/index.ts +Signatures:: +(used version) /user/username/projects/sample1/logic/index.d.ts +(computed .d.ts) /user/username/projects/sample1/tests/index.ts diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js index e69de29bb2..52684620e4 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js @@ -0,0 +1,40 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/first.ts] *new* +export const a = 1 +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true, + "noEmit": true + } +} + +tsgo -p /home/src/workspaces/project/tsconfig.json +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js index e69de29bb2..2a5fd6fe78 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js @@ -0,0 +1,40 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/first.ts] *new* +export const a = 1 +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true, + "noEmit": true + } +} + +tsgo -p /home/src/workspaces/project +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + diff --git a/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js b/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js index e69de29bb2..b7c372258f 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js @@ -0,0 +1,31 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: + +tsgo --moduleResolution nodenext first.ts --module nodenext --target esnext --moduleDetection auto --jsx react --newLine crlf +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + diff --git a/testdata/baselines/reference/tsc/composite/converting-to-modules.js b/testdata/baselines/reference/tsc/composite/converting-to-modules.js new file mode 100644 index 0000000000..a7d6e9c3f5 --- /dev/null +++ b/testdata/baselines/reference/tsc/composite/converting-to-modules.js @@ -0,0 +1,172 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/main.ts] *new* +const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "none", + "composite": true, + }, +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/main.d.ts] *new* +declare const x = 10; + +//// [/home/src/workspaces/project/src/main.js] *new* +const x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./src/main.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true + }, + "latestChangedDtsFile": "./src/main.d.ts", + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/main.ts + + +Edit [0]:: convert to modules +//// [/home/src/workspaces/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "module": "es2015", + "composite": true, + }, +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/main.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"module":5},"latestChangedDtsFile":"./src/main.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "module": 5 + }, + "latestChangedDtsFile": "./src/main.d.ts", + "size": 1124 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-error-on-jsx-element.js b/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-error-on-jsx-element.js new file mode 100644 index 0000000000..3dfafa66b8 --- /dev/null +++ b/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-error-on-jsx-element.js @@ -0,0 +1,162 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/node_modules/solid-js/jsx-runtime.d.ts] *new* +export namespace JSX { + type IntrinsicElements = { div: {}; }; +} +//// [/home/src/projects/project/node_modules/solid-js/package.json] *new* +{ + "name": "solid-js", + "type": "module" +} +//// [/home/src/projects/project/src/main.tsx] *new* +export default

; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "module": "Node16", + "jsx": "react-jsx", + "jsxImportSource": "solid-js", + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/main.tsx:1:16 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("solid-js/jsx-runtime")' call instead. + To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`. + +1 export default
; +   ~~~~~~ + + +Found 1 error in src/main.tsx:1 + +//// [/home/src/projects/project/src/main.d.ts] *new* +declare const _default: any; +export default _default; + +//// [/home/src/projects/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const jsx_runtime_1 = require("solid-js/jsx-runtime"); +exports.default = jsx_runtime_1.jsx("div", {}); + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.es2022.full.d.ts","./node_modules/solid-js/jsx-runtime.d.ts","./src/main.tsx"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}","impliedNodeFormat":99},{"version":"5af15af7f9b4d97300f8dcfb2bf5b7c4-export default
;","signature":"ca37c00363f904fe93e299b145186400-declare const _default: any;\nexport default _default;\n","impliedNodeFormat":1}],"options":{"composite":true,"jsx":4,"jsxImportSource":"solid-js","module":100},"semanticDiagnosticsPerFile":[[3,[{"pos":15,"end":21,"code":1479,"category":1,"message":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"solid-js/jsx-runtime\")' call instead.","messageChain":[{"pos":15,"end":21,"code":1483,"category":3,"message":"To convert this file to an ECMAScript module, create a local package.json file with `{ \"type\": \"module\" }`."}]}]]],"latestChangedDtsFile":"./src/main.d.ts"} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/main.tsx" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./node_modules/solid-js/jsx-runtime.d.ts", + "./src/main.tsx" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/solid-js/jsx-runtime.d.ts", + "version": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", + "signature": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", + "impliedNodeFormat": "ESNext", + "original": { + "version": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./src/main.tsx", + "version": "5af15af7f9b4d97300f8dcfb2bf5b7c4-export default
;", + "signature": "ca37c00363f904fe93e299b145186400-declare const _default: any;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5af15af7f9b4d97300f8dcfb2bf5b7c4-export default
;", + "signature": "ca37c00363f904fe93e299b145186400-declare const _default: any;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "jsx": 4, + "jsxImportSource": "solid-js", + "module": 100 + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/main.tsx", + [ + { + "pos": 15, + "end": 21, + "code": 1479, + "category": 1, + "message": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"solid-js/jsx-runtime\")' call instead.", + "messageChain": [ + { + "pos": 15, + "end": 21, + "code": 1483, + "category": 3, + "message": "To convert this file to an ECMAScript module, create a local package.json file with `{ \"type\": \"module\" }`." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./src/main.d.ts", + "size": 1905 +} +//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /home/src/projects/project/node_modules/solid-js/jsx-runtime.d.ts +*refresh* /home/src/projects/project/src/main.tsx +Signatures:: +(stored at emit) /home/src/projects/project/src/main.tsx diff --git a/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-no-crash-no-jsx-element.js b/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-no-crash-no-jsx-element.js new file mode 100644 index 0000000000..1b88deb5da --- /dev/null +++ b/testdata/baselines/reference/tsc/composite/synthetic-jsx-import-of-ESM-module-from-CJS-module-no-crash-no-jsx-element.js @@ -0,0 +1,129 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/node_modules/solid-js/jsx-runtime.d.ts] *new* +export namespace JSX { + type IntrinsicElements = { div: {}; }; +} +//// [/home/src/projects/project/node_modules/solid-js/package.json] *new* +{ + "name": "solid-js", + "type": "module" +} +//// [/home/src/projects/project/src/main.ts] *new* +export default 42; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "module": "Node16", + "jsx": "react-jsx", + "jsxImportSource": "solid-js", + }, +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/src/main.d.ts] *new* +declare const _default: number; +export default _default; + +//// [/home/src/projects/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = 42; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.es2022.full.d.ts","./node_modules/solid-js/jsx-runtime.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}","impliedNodeFormat":99},{"version":"666fdc0c7a7f134c8c14dc85be1ebc28-export default 42;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1}],"options":{"composite":true,"jsx":4,"jsxImportSource":"solid-js","module":100},"latestChangedDtsFile":"./src/main.d.ts"} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/main.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./node_modules/solid-js/jsx-runtime.d.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/solid-js/jsx-runtime.d.ts", + "version": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", + "signature": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", + "impliedNodeFormat": "ESNext", + "original": { + "version": "00e459cbb1596f8c4bdf988b0589433f-export namespace JSX {\n type IntrinsicElements = { div: {}; };\n}", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./src/main.ts", + "version": "666fdc0c7a7f134c8c14dc85be1ebc28-export default 42;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "666fdc0c7a7f134c8c14dc85be1ebc28-export default 42;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "jsx": 4, + "jsxImportSource": "solid-js", + "module": 100 + }, + "latestChangedDtsFile": "./src/main.d.ts", + "size": 1373 +} +//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /home/src/projects/project/node_modules/solid-js/jsx-runtime.d.ts +*refresh* /home/src/projects/project/src/main.ts +Signatures:: +(stored at emit) /home/src/projects/project/src/main.ts diff --git a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js new file mode 100644 index 0000000000..047a319921 --- /dev/null +++ b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js @@ -0,0 +1,51 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "composite": true, + "tsBuildInfoFile": "tsconfig.json.tsbuildinfo", + }, + "include": [ + "src/**/*.ts", + ], +} + +tsgo --composite false --tsBuildInfoFile null +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + + diff --git a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js new file mode 100644 index 0000000000..4c32e8b1cb --- /dev/null +++ b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js @@ -0,0 +1,51 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "composite": true, + "tsBuildInfoFile": "tsconfig.json.tsbuildinfo", + }, + "include": [ + "src/**/*.ts", + ], +} + +tsgo --composite false +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + + diff --git a/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js new file mode 100644 index 0000000000..70d9612868 --- /dev/null +++ b/testdata/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js @@ -0,0 +1,50 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "composite": true, + }, + "include": [ + "src/**/*.ts", + ], +} + +tsgo --composite false +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + + diff --git a/testdata/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js b/testdata/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js new file mode 100644 index 0000000000..285f20672a --- /dev/null +++ b/testdata/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js @@ -0,0 +1,109 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "composite": true, + }, + "include": [ + "src/**/*.ts", + ], +} + +tsgo --composite null +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/main.d.ts] *new* +export declare const x = 10; + +//// [/home/src/workspaces/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"28e8748a7acd58f4f59388926e914f86-export const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"module":1,"target":1},"latestChangedDtsFile":"./src/main.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "module": 1, + "target": 1 + }, + "latestChangedDtsFile": "./src/main.d.ts", + "size": 1123 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/main.ts diff --git a/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors-with-incremental.js b/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors-with-incremental.js new file mode 100644 index 0000000000..4cd9f7b922 --- /dev/null +++ b/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors-with-incremental.js @@ -0,0 +1,255 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/index.ts] *new* +import ky from 'ky'; +export const api = ky.extend({}); +//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new* +type KyInstance = { + extend(options: Record): KyInstance; +} +declare const ky: KyInstance; +export default ky; +//// [/home/src/workspaces/project/node_modules/ky/package.json] *new* +{ + "name": "ky", + "type": "module", + "main": "./distribution/index.js" +} +//// [/home/src/workspaces/project/package.json] *new* +{ + "type": "module" +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "composite": true, + "incremental": true, + "declaration": true, + "skipLibCheck": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --explainFiles --listEmittedFiles +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +TSFILE: /home/src/workspaces/project/index.js +TSFILE: /home/src/workspaces/project/index.d.ts +TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/index.d.ts] *new* +export declare const api: { + extend(options: Record): KyInstance; +}; + +//// [/home/src/workspaces/project/index.js] *new* +import ky from 'ky'; +export const api = ky.extend({}); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","./node_modules/ky/distribution/index.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;","impliedNodeFormat":99},{"version":"0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});","signature":"5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.","impliedNodeFormat":99}],"fileIdsList":[[2]],"options":{"composite":true,"declaration":true,"module":199,"skipLibCheck":true,"skipDefaultLibCheck":true},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":34,"end":37,"code":4023,"category":1,"message":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named."}]]],"latestChangedDtsFile":"./index.d.ts","emitSignatures":[[3,"5229c9e2248679a39697053812e5f6bb-export declare const api: {\n extend(options: Record): KyInstance;\n};\n"]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "./node_modules/ky/distribution/index.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/ky/distribution/index.d.ts", + "version": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", + "signature": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", + "impliedNodeFormat": "ESNext", + "original": { + "version": "b9b50c37c18e43d94b0dd4fb43967f10-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./index.ts", + "version": "0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});", + "signature": "5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.", + "impliedNodeFormat": "ESNext", + "original": { + "version": "0f5091e963c17913313e4969c59e6eb4-import ky from 'ky';\nexport const api = ky.extend({});", + "signature": "5816fe34b5cf354b0d0d19bc77874616-export declare const api: {\n extend(options: Record): KyInstance;\n};\n\n(34,3): error4023: Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named.", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "./node_modules/ky/distribution/index.d.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "module": 199, + "skipLibCheck": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./node_modules/ky/distribution/index.d.ts" + ] + }, + "emitDiagnosticsPerFile": [ + [ + "./index.ts", + [ + { + "pos": 34, + "end": 37, + "code": 4023, + "category": 1, + "message": "Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/node_modules/ky/distribution/index\" but cannot be named." + } + ] + ] + ], + "latestChangedDtsFile": "./index.d.ts", + "emitSignatures": [ + { + "file": "./index.ts", + "signature": "5229c9e2248679a39697053812e5f6bb-export declare const api: {\n extend(options: Record): KyInstance;\n};\n", + "original": [ + 3, + "5229c9e2248679a39697053812e5f6bb-export declare const api: {\n extend(options: Record): KyInstance;\n};\n" + ] + } + ], + "size": 2171 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: no change + +tsgo --explainFiles --listEmittedFiles +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: build -b + +tsgo -b --explainFiles --listEmittedFiles --v +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors.js b/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors.js new file mode 100644 index 0000000000..8a65be8347 --- /dev/null +++ b/testdata/baselines/reference/tsc/declarationEmit/reports-dts-generation-errors.js @@ -0,0 +1,175 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/index.ts] *new* +import ky from 'ky'; +export const api = ky.extend({}); +//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new* +type KyInstance = { + extend(options: Record): KyInstance; +} +declare const ky: KyInstance; +export default ky; +//// [/home/src/workspaces/project/node_modules/ky/package.json] *new* +{ + "name": "ky", + "type": "module", + "main": "./distribution/index.js" +} +//// [/home/src/workspaces/project/package.json] *new* +{ + "type": "module" +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "composite": false, + "incremental": false, + "declaration": true, + "skipLibCheck": true, + "skipDefaultLibCheck": true, + }, +} + +tsgo --explainFiles --listEmittedFiles +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +TSFILE: /home/src/workspaces/project/index.js +TSFILE: /home/src/workspaces/project/index.d.ts +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/index.d.ts] *new* +export declare const api: { + extend(options: Record): KyInstance; +}; + +//// [/home/src/workspaces/project/index.js] *new* +import ky from 'ky'; +export const api = ky.extend({}); + + + + +Edit [0]:: no change + +tsgo --explainFiles --listEmittedFiles +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +TSFILE: /home/src/workspaces/project/index.js +TSFILE: /home/src/workspaces/project/index.d.ts +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + +//// [/home/src/workspaces/project/index.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/index.js] *rewrite with same content* + + + +Edit [1]:: build -b + +tsgo -b --explainFiles --listEmittedFiles --v +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +TSFILE: /home/src/workspaces/project/index.js +TSFILE: /home/src/workspaces/project/index.d.ts +TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo +../../tslibs/TS/Lib/lib.esnext.full.d.ts + Default library for target 'ESNext' +node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'index.ts' + File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module" +index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Found 1 error in index.ts:2 + +//// [/home/src/workspaces/project/index.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/index.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":["./index.ts"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./index.ts" + ], + "original": "./index.ts" + } + ], + "size": 63 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: diff --git a/testdata/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js b/testdata/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js new file mode 100644 index 0000000000..75149f241c --- /dev/null +++ b/testdata/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js @@ -0,0 +1,132 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/pkg1/dist/index.d.ts] *new* +export * from './types'; +//// [/user/username/projects/myproject/pkg1/dist/types.d.ts] *new* +export declare type A = { + id: string; +}; +export declare type B = { + id: number; +}; +export declare type IdType = A | B; +export declare class MetadataAccessor { + readonly key: string; + private constructor(); + toString(): string; + static create(key: string): MetadataAccessor; +} +//// [/user/username/projects/myproject/pkg1/package.json] *new* +{ + "name": "@raymondfeng/pkg1", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} +//// [/user/username/projects/myproject/pkg2/dist/index.d.ts] *new* +export * from './types'; +//// [/user/username/projects/myproject/pkg2/dist/types.d.ts] *new* +export {MetadataAccessor} from '@raymondfeng/pkg1'; +//// [/user/username/projects/myproject/pkg2/node_modules/@raymondfeng/pkg1] -> /user/username/projects/myproject/pkg1 *new* +//// [/user/username/projects/myproject/pkg2/package.json] *new* +{ + "name": "@raymondfeng/pkg2", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} +//// [/user/username/projects/myproject/pkg3/node_modules/@raymondfeng/pkg2] -> /user/username/projects/myproject/pkg2 *new* +//// [/user/username/projects/myproject/pkg3/src/index.ts] *new* +export * from './keys'; +//// [/user/username/projects/myproject/pkg3/src/keys.ts] *new* +import {MetadataAccessor} from "@raymondfeng/pkg2"; +export const ADMIN = MetadataAccessor.create('1'); +//// [/user/username/projects/myproject/pkg3/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "target": "es5", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "declaration": true, + }, +} + +tsgo -p pkg3 --explainFiles +ExitStatus:: Success +Output:: +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +pkg1/dist/types.d.ts + Imported via './types' from file 'pkg1/dist/index.d.ts' +pkg1/dist/index.d.ts + Imported via '@raymondfeng/pkg1' from file 'pkg2/dist/types.d.ts' with packageId '@raymondfeng/pkg1@1.0.0' +pkg2/dist/types.d.ts + Imported via './types' from file 'pkg2/dist/index.d.ts' +pkg2/dist/index.d.ts + Imported via "@raymondfeng/pkg2" from file 'pkg3/src/keys.ts' with packageId '@raymondfeng/pkg2@1.0.0' +pkg3/src/keys.ts + Imported via './keys' from file 'pkg3/src/index.ts' + Matched by default include pattern '**/*' +pkg3/src/index.ts + Matched by default include pattern '**/*' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/pkg3/dist/index.d.ts] *new* +export * from './keys'; + +//// [/user/username/projects/myproject/pkg3/dist/index.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./keys"), exports); + +//// [/user/username/projects/myproject/pkg3/dist/keys.d.ts] *new* +import { MetadataAccessor } from "@raymondfeng/pkg2"; +export declare const ADMIN: MetadataAccessor; + +//// [/user/username/projects/myproject/pkg3/dist/keys.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ADMIN = void 0; +const pkg2_1 = require("@raymondfeng/pkg2"); +exports.ADMIN = pkg2_1.MetadataAccessor.create('1'); + + diff --git a/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js b/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js new file mode 100644 index 0000000000..5cfa0d4d57 --- /dev/null +++ b/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js @@ -0,0 +1,216 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/temp/yarn/data/link/plugin-two] -> /user/username/projects/myproject/plugin-two *new* +//// [/user/username/projects/myproject/plugin-one/index.ts] *new* +import pluginTwo from "plugin-two"; // include this to add reference to symlink +import { actionCreatorFactory } from "typescript-fsa"; // Include version of shared lib +const action = actionCreatorFactory("somekey"); +const featureOne = action<{ route: string }>("feature-one"); +export const actions = { featureOne }; +//// [/user/username/projects/myproject/plugin-one/node_modules/plugin-two] -> /temp/yarn/data/link/plugin-two *new* +//// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] *new* +export interface Action { + type: string; + payload: Payload; +} +export declare type ActionCreator = { + type: string; + (payload: Payload): Action; +} +export interface ActionCreatorFactory { + (type: string): ActionCreator; +} +export declare function actionCreatorFactory(prefix?: string | null): ActionCreatorFactory; +export default actionCreatorFactory; +//// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] *new* +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} +//// [/user/username/projects/myproject/plugin-one/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true, + }, +} +//// [/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts] *new* +declare const _default: { + features: { + featureOne: { + actions: { + featureOne: { + (payload: { + name: string; + order: number; + }, meta?: { + [key: string]: any; + }): import("typescript-fsa").Action<{ + name: string; + order: number; + }>; + }; + }; + path: string; + }; + }; +}; +export default _default; +//// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts] *new* +export interface Action { + type: string; + payload: Payload; +} +export declare type ActionCreator = { + type: string; + (payload: Payload): Action; +} +export interface ActionCreatorFactory { + (type: string): ActionCreator; +} +export declare function actionCreatorFactory(prefix?: string | null): ActionCreatorFactory; +export default actionCreatorFactory; +//// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json] *new* +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} +//// [/user/username/projects/myproject/plugin-two/package.json] *new* +{ + "name": "plugin-two", + "version": "0.1.3", + "main": "dist/commonjs/index.js" +} + +tsgo -p plugin-one --explainFiles +ExitStatus:: Success +Output:: +======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +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. +Loading module 'plugin-two' 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 '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json'. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.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 'dist/commonjs/index.js' that references '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.js'. +File name '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.js' has a '.js' extension - stripping it. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.tsx' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.d.ts', result '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts'. +======== Module name 'plugin-two' was successfully resolved to '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts' with Package ID 'plugin-two@0.1.3'. ======== +======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +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. +Loading module 'typescript-fsa' 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 '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.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' does not have a 'main' field. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.tsx' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +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@3.0.0-beta-2'. ======== +======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +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'. +Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/user/username/projects/myproject/plugin-two/dist/commonjs/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/plugin-two/dist/commonjs/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/plugin-two/dist/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/plugin-two/dist/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.tsx' does not exist. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.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' does not have a 'main' field. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.ts' does not exist. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.tsx' does not exist. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +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@3.0.0-beta-2'. ======== +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +plugin-two/node_modules/typescript-fsa/index.d.ts + Imported via "typescript-fsa" from file 'plugin-two/dist/commonjs/index.d.ts' with packageId 'typescript-fsa@3.0.0-beta-2' +plugin-two/dist/commonjs/index.d.ts + Imported via "plugin-two" from file 'plugin-one/index.ts' with packageId 'plugin-two@0.1.3' +plugin-one/node_modules/typescript-fsa/index.d.ts + Imported via "typescript-fsa" from file 'plugin-one/index.ts' with packageId 'typescript-fsa@3.0.0-beta-2' +plugin-one/index.ts + Matched by default include pattern '**/*' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/plugin-one/index.d.ts] *new* +export declare const actions: { + featureOne: import("typescript-fsa").ActionCreator<{ + route: string; + }>; +}; + +//// [/user/username/projects/myproject/plugin-one/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.actions = void 0; +const typescript_fsa_1 = require("typescript-fsa"); // Include version of shared lib +const action = (0, typescript_fsa_1.actionCreatorFactory)("somekey"); +const featureOne = action("feature-one"); +exports.actions = { featureOne }; + + diff --git a/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js b/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js new file mode 100644 index 0000000000..83b1575d13 --- /dev/null +++ b/testdata/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js @@ -0,0 +1,212 @@ +currentDirectory::/user/username/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/myproject/plugin-one/action.ts] *new* +import { actionCreatorFactory } from "typescript-fsa"; // Include version of shared lib +const action = actionCreatorFactory("somekey"); +const featureOne = action<{ route: string }>("feature-one"); +export const actions = { featureOne }; +//// [/user/username/projects/myproject/plugin-one/index.ts] *new* +import pluginTwo from "plugin-two"; // include this to add reference to symlink +//// [/user/username/projects/myproject/plugin-one/node_modules/plugin-two] -> /user/username/projects/myproject/plugin-two *new* +//// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] *new* +export interface Action { + type: string; + payload: Payload; +} +export declare type ActionCreator = { + type: string; + (payload: Payload): Action; +} +export interface ActionCreatorFactory { + (type: string): ActionCreator; +} +export declare function actionCreatorFactory(prefix?: string | null): ActionCreatorFactory; +export default actionCreatorFactory; +//// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] *new* +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} +//// [/user/username/projects/myproject/plugin-one/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true, + }, +} +//// [/user/username/projects/myproject/plugin-two/index.d.ts] *new* +declare const _default: { + features: { + featureOne: { + actions: { + featureOne: { + (payload: { + name: string; + order: number; + }, meta?: { + [key: string]: any; + }): import("typescript-fsa").Action<{ + name: string; + order: number; + }>; + }; + }; + path: string; + }; + }; +}; +export default _default; +//// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts] *new* +export interface Action { + type: string; + payload: Payload; +} +export declare type ActionCreator = { + type: string; + (payload: Payload): Action; +} +export interface ActionCreatorFactory { + (type: string): ActionCreator; +} +export declare function actionCreatorFactory(prefix?: string | null): ActionCreatorFactory; +export default actionCreatorFactory; +//// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json] *new* +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} + +tsgo -p plugin-one --explainFiles +ExitStatus:: Success +Output:: +======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/action.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +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. +Loading module 'typescript-fsa' 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 '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.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' does not have a 'main' field. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.tsx' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +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@3.0.0-beta-2'. ======== +======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +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. +Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.ts' does not exist. +File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.tsx' does not exist. +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'. ======== +======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-two/index.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +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. +Loading module 'typescript-fsa' 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 '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.tsx' does not exist. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.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' does not have a 'main' field. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.ts' does not exist. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.tsx' does not exist. +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +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@3.0.0-beta-2'. ======== +../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +plugin-one/node_modules/typescript-fsa/index.d.ts + Imported via "typescript-fsa" from file 'plugin-one/action.ts' with packageId 'typescript-fsa@3.0.0-beta-2' +plugin-one/action.ts + Matched by default include pattern '**/*' +plugin-two/node_modules/typescript-fsa/index.d.ts + Imported via "typescript-fsa" from file 'plugin-two/index.d.ts' with packageId 'typescript-fsa@3.0.0-beta-2' +plugin-two/index.d.ts + Imported via "plugin-two" from file 'plugin-one/index.ts' +plugin-one/index.ts + Matched by default include pattern '**/*' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/myproject/plugin-one/action.d.ts] *new* +export declare const actions: { + featureOne: import("typescript-fsa").ActionCreator<{ + route: string; + }>; +}; + +//// [/user/username/projects/myproject/plugin-one/action.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.actions = void 0; +const typescript_fsa_1 = require("typescript-fsa"); // Include version of shared lib +const action = (0, typescript_fsa_1.actionCreatorFactory)("somekey"); +const featureOne = action("feature-one"); +exports.actions = { featureOne }; + +//// [/user/username/projects/myproject/plugin-one/index.d.ts] *new* +export {}; + +//// [/user/username/projects/myproject/plugin-one/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + diff --git a/testdata/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js b/testdata/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js new file mode 100644 index 0000000000..6b382550cf --- /dev/null +++ b/testdata/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js @@ -0,0 +1,129 @@ +currentDirectory::D:/Work/pkg1 +useCaseSensitiveFileNames::false +Input:: +//// [D:/Work/pkg1/package.json] *new* +{ + "name": "ts-specifier-bug", + "version": "1.0.0", + "main": "index.js" +} +//// [D:/Work/pkg1/src/main.ts] *new* + import { PartialType } from './utils'; + + class Common {} + + export class Sub extends PartialType(Common) { + id: string; + } +//// [D:/Work/pkg1/src/utils/index.ts] *new* + import { MyType, MyReturnType } from './type-helpers'; + + export function PartialType(classRef: MyType) { + abstract class PartialClassType { + constructor() {} + } + + return PartialClassType as MyReturnType; + } +//// [D:/Work/pkg1/src/utils/type-helpers.ts] *new* + export type MyReturnType = { + new (...args: any[]): any; + }; + + export interface MyType extends Function { + new (...args: any[]): T; + } +//// [D:/Work/pkg1/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "target": "es2017", + "outDir": "./dist", + }, + "include": ["src"], +} + +tsgo -p D:\Work\pkg1 --explainFiles +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/utils/index.ts:8:27 - error TS2352: Conversion of type 'typeof PartialClassType' to type 'MyReturnType' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. + Cannot assign an abstract constructor type to a non-abstract constructor type. + +8 return PartialClassType as MyReturnType; +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +../../home/src/tslibs/TS/Lib/lib.es2017.full.d.ts + Default library for target 'ES2017' +src/utils/type-helpers.ts + Imported via './type-helpers' from file 'src/utils/index.ts' + Matched by include pattern 'src' in 'tsconfig.json' +src/utils/index.ts + Imported via './utils' from file 'src/main.ts' + Matched by include pattern 'src' in 'tsconfig.json' +src/main.ts + Matched by include pattern 'src' in 'tsconfig.json' + +Found 1 error in src/utils/index.ts:8 + +//// [D:/Work/pkg1/dist/main.d.ts] *new* +declare const Sub_base: import("./utils/type-helpers").MyReturnType; +export declare class Sub extends Sub_base { + id: string; +} +export {}; + +//// [D:/Work/pkg1/dist/main.js] *new* +import { PartialType } from './utils'; +class Common { +} +export class Sub extends PartialType(Common) { + id; +} + +//// [D:/Work/pkg1/dist/utils/index.d.ts] *new* +import { MyType, MyReturnType } from './type-helpers'; +export declare function PartialType(classRef: MyType): MyReturnType; + +//// [D:/Work/pkg1/dist/utils/index.js] *new* +export function PartialType(classRef) { + class PartialClassType { + constructor() { } + } + return PartialClassType; +} + +//// [D:/Work/pkg1/dist/utils/type-helpers.d.ts] *new* +export type MyReturnType = { + new (...args: any[]): any; +}; +export interface MyType extends Function { + new (...args: any[]): T; +} + +//// [D:/Work/pkg1/dist/utils/type-helpers.js] *new* +export {}; + +//// [D:/home/src/tslibs/TS/Lib/lib.es2017.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js b/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js new file mode 100644 index 0000000000..4808a12b3a --- /dev/null +++ b/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js @@ -0,0 +1,64 @@ +currentDirectory::/home/src/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/configs/first/tsconfig.json] *new* +{ + "extends": "../second/tsconfig.json", + "include": ["${configDir}/src"], + "compilerOptions": { + "typeRoots": ["root1", "${configDir}/root2", "root3"], + "types": [], + }, +} +//// [/home/src/projects/configs/second/tsconfig.json] *new* +{ + "files": ["${configDir}/main.ts"], + "compilerOptions": { + "declarationDir": "${configDir}/decls", + "paths": { + "@myscope/*": ["${configDir}/types/*"], + }, + }, + "watchOptions": { + "excludeFiles": ["${configDir}/main.ts"], + }, +} +//// [/home/src/projects/myproject/main.ts] *new* +// some comment +export const y = 10; +import { x } from "@myscope/sometype"; +//// [/home/src/projects/myproject/tsconfig.json] *new* +{ + "extends": "../configs/first/tsconfig.json", + "compilerOptions": { + "declaration": true, + "outDir": "outDir", + "traceResolution": true, + }, +} +//// [/home/src/projects/myproject/types/sometype.ts] *new* +export const x = 10; + +tsgo --showConfig +ExitStatus:: Success +Output:: +{ + "declaration": true, + "declarationDir": "/home/src/projects/myproject/decls", + "outDir": "/home/src/projects/myproject/outDir", + "paths": { + "@myscope/*": [ + "/home/src/projects/myproject/types/*" + ] + }, + "traceResolution": true, + "typeRoots": [ + "/home/src/projects/configs/first/root1", + "/home/src/projects/myproject/root2", + "/home/src/projects/configs/first/root3" + ], + "types": [], + "configFilePath": "/home/src/projects/myproject/tsconfig.json", + "pathsBasePath": "/home/src/projects/configs/second", + "showConfig": true +} diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js new file mode 100644 index 0000000000..09e7618c19 --- /dev/null +++ b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js @@ -0,0 +1,102 @@ +currentDirectory::/home/src/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/configs/first/tsconfig.json] *new* +{ + "extends": "../second/tsconfig.json", + "include": ["${configDir}/src"], + "compilerOptions": { + "typeRoots": ["root1", "${configDir}/root2", "root3"], + "types": [], + }, +} +//// [/home/src/projects/configs/second/tsconfig.json] *new* +{ + "files": ["${configDir}/main.ts"], + "compilerOptions": { + "declarationDir": "${configDir}/decls", + "paths": { + "@myscope/*": ["${configDir}/types/*"], + }, + }, + "watchOptions": { + "excludeFiles": ["${configDir}/main.ts"], + }, +} +//// [/home/src/projects/myproject/main.ts] *new* +// some comment +export const y = 10; +import { x } from "@myscope/sometype"; +//// [/home/src/projects/myproject/tsconfig.json] *new* +{ + "extends": "../configs/first/tsconfig.json", + "compilerOptions": { + "declaration": true, + "outDir": "outDir", + "traceResolution": true, + }, +} +//// [/home/src/projects/myproject/types/sometype.ts] *new* +export const x = 10; + +tsgo --explainFiles --outDir ${configDir}/outDir +ExitStatus:: Success +Output:: +======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. +Module name '@myscope/sometype', matched pattern '@myscope/*'. +Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. +Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. +======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +types/sometype.ts + Imported via "@myscope/sometype" from file 'main.ts' +main.ts + Part of 'files' list in tsconfig.json +//// [/home/src/projects/myproject/${configDir}/outDir/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +// some comment +exports.y = 10; + +//// [/home/src/projects/myproject/${configDir}/outDir/types/sometype.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/projects/myproject/decls/main.d.ts] *new* +export declare const y = 10; + +//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *new* +export declare const x = 10; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + diff --git a/testdata/baselines/reference/tsc/extends/configDir-template.js b/testdata/baselines/reference/tsc/extends/configDir-template.js new file mode 100644 index 0000000000..1d74d5f546 --- /dev/null +++ b/testdata/baselines/reference/tsc/extends/configDir-template.js @@ -0,0 +1,102 @@ +currentDirectory::/home/src/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/configs/first/tsconfig.json] *new* +{ + "extends": "../second/tsconfig.json", + "include": ["${configDir}/src"], + "compilerOptions": { + "typeRoots": ["root1", "${configDir}/root2", "root3"], + "types": [], + }, +} +//// [/home/src/projects/configs/second/tsconfig.json] *new* +{ + "files": ["${configDir}/main.ts"], + "compilerOptions": { + "declarationDir": "${configDir}/decls", + "paths": { + "@myscope/*": ["${configDir}/types/*"], + }, + }, + "watchOptions": { + "excludeFiles": ["${configDir}/main.ts"], + }, +} +//// [/home/src/projects/myproject/main.ts] *new* +// some comment +export const y = 10; +import { x } from "@myscope/sometype"; +//// [/home/src/projects/myproject/tsconfig.json] *new* +{ + "extends": "../configs/first/tsconfig.json", + "compilerOptions": { + "declaration": true, + "outDir": "outDir", + "traceResolution": true, + }, +} +//// [/home/src/projects/myproject/types/sometype.ts] *new* +export const x = 10; + +tsgo --explainFiles +ExitStatus:: Success +Output:: +======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. +Module name '@myscope/sometype', matched pattern '@myscope/*'. +Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. +Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. +======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +types/sometype.ts + Imported via "@myscope/sometype" from file 'main.ts' +main.ts + Part of 'files' list in tsconfig.json +//// [/home/src/projects/myproject/decls/main.d.ts] *new* +export declare const y = 10; + +//// [/home/src/projects/myproject/decls/types/sometype.d.ts] *new* +export declare const x = 10; + +//// [/home/src/projects/myproject/outDir/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +// some comment +exports.y = 10; + +//// [/home/src/projects/myproject/outDir/types/sometype.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + diff --git a/testdata/baselines/reference/tsc/extends/resolves-the-symlink-path.js b/testdata/baselines/reference/tsc/extends/resolves-the-symlink-path.js new file mode 100644 index 0000000000..05b91aca0f --- /dev/null +++ b/testdata/baselines/reference/tsc/extends/resolves-the-symlink-path.js @@ -0,0 +1,114 @@ +currentDirectory::/users/user/projects/myproject +useCaseSensitiveFileNames::true +Input:: +//// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true } +} +//// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] *new* +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} +//// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] -> /users/user/projects/myconfigs/node_modules/@something/tsconfig-node *new* +//// [/users/user/projects/myproject/src/index.ts] *new* +// some comment +export const x = 10; +//// [/users/user/projects/myproject/src/tsconfig.json] *new* +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} + +tsgo -p src --extendedDiagnostics +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/users/user/projects/myproject/src/index.d.ts] *new* +export declare const x = 10; + +//// [/users/user/projects/myproject/src/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1}],"options":{"composite":true,"removeComments":true},"latestChangedDtsFile":"./index.d.ts"} +//// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.ts", + "version": "03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "03965946b1acc2afec91a302f9646317-// some comment\nexport const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "removeComments": true + }, + "latestChangedDtsFile": "./index.d.ts", + "size": 1134 +} + +src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /users/user/projects/myproject/src/index.ts +Signatures:: +(stored at emit) /users/user/projects/myproject/src/index.ts diff --git a/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js b/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js new file mode 100644 index 0000000000..6733ef2ba7 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js @@ -0,0 +1,479 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +type ReturnType any> = T extends (...args: any) => infer R ? R : any; +type InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any; +//// [/home/src/workspaces/project/MessageablePerson.ts] *new* +const Messageable = () => { + return class MessageableClass { + public message = 'hello'; + } +}; +const wrapper = () => Messageable(); +type MessageablePerson = InstanceType>; +export default MessageablePerson; +//// [/home/src/workspaces/project/main.ts] *new* +import MessageablePerson from './MessageablePerson.js'; +function logMessage( person: MessageablePerson ) { + console.log( person.message ); +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "esnext", + "declaration": true + } +} + +tsgo --incremental +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/MessageablePerson.d.ts] *new* +declare const wrapper: () => { + new (): { + message: string; + }; +}; +type MessageablePerson = InstanceType>; +export default MessageablePerson; + +//// [/home/src/workspaces/project/MessageablePerson.js] *new* +const Messageable = () => { + return class MessageableClass { + message = 'hello'; + }; +}; +const wrapper = () => Messageable(); +export {}; + +//// [/home/src/workspaces/project/main.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/main.js] *new* +function logMessage(person) { + console.log(person.message); +} +export {}; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"module":99},"referencedMap":[[3,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./MessageablePerson.ts", + "./main.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./MessageablePerson.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", + "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./MessageablePerson.ts", + "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./MessageablePerson.ts" + ] + ], + "options": { + "declaration": true, + "module": 99 + }, + "referencedMap": { + "./main.ts": [ + "./MessageablePerson.ts" + ] + }, + "size": 2034 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/MessageablePerson.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/MessageablePerson.ts +(stored at emit) /home/src/workspaces/project/main.ts + + +Edit [0]:: no change + +tsgo --incremental +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: modify public to protected +//// [/home/src/workspaces/project/MessageablePerson.ts] *modified* +const Messageable = () => { + return class MessageableClass { + protected message = 'hello'; + } +}; +const wrapper = () => Messageable(); +type MessageablePerson = InstanceType>; +export default MessageablePerson; + +tsgo --incremental +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +MessageablePerson.ts:6:7 - error TS4094: Property 'message' of exported anonymous class type may not be private or protected. + +6 const wrapper = () => Messageable(); +   ~~~~~~~ + + MessageablePerson.ts:6:7 - Add a type annotation to the variable wrapper. + 6 const wrapper = () => Messageable(); +    ~~~~~~~ + +main.ts:3:25 - error TS2445: Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses. + +3 console.log( person.message ); +   ~~~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 MessageablePerson.ts:6 + 1 main.ts:3 + +//// [/home/src/workspaces/project/MessageablePerson.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/MessageablePerson.js] *rewrite with same content* +//// [/home/src/workspaces/project/main.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/main.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"module":99},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":131,"end":138,"code":2445,"category":1,"message":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses."}]]],"emitDiagnosticsPerFile":[[2,[{"pos":116,"end":123,"code":4094,"category":1,"message":"Property 'message' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":116,"end":123,"code":9027,"category":1,"message":"Add a type annotation to the variable wrapper."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./MessageablePerson.ts", + "./main.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./MessageablePerson.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", + "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./MessageablePerson.ts", + "version": "fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./MessageablePerson.ts" + ] + ], + "options": { + "declaration": true, + "module": 99 + }, + "referencedMap": { + "./main.ts": [ + "./MessageablePerson.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./main.ts", + [ + { + "pos": 131, + "end": 138, + "code": 2445, + "category": 1, + "message": "Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses." + } + ] + ] + ], + "emitDiagnosticsPerFile": [ + [ + "./MessageablePerson.ts", + [ + { + "pos": 116, + "end": 123, + "code": 4094, + "category": 1, + "message": "Property 'message' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 116, + "end": 123, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable wrapper." + } + ] + } + ] + ] + ], + "size": 2717 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/MessageablePerson.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/MessageablePerson.ts +(computed .d.ts) /home/src/workspaces/project/main.ts + + +Edit [2]:: no change + +tsgo --incremental +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +MessageablePerson.ts:6:7 - error TS4094: Property 'message' of exported anonymous class type may not be private or protected. + +6 const wrapper = () => Messageable(); +   ~~~~~~~ + + MessageablePerson.ts:6:7 - Add a type annotation to the variable wrapper. + 6 const wrapper = () => Messageable(); +    ~~~~~~~ + +main.ts:3:25 - error TS2445: Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses. + +3 console.log( person.message ); +   ~~~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 MessageablePerson.ts:6 + 1 main.ts:3 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: modify protected to public +//// [/home/src/workspaces/project/MessageablePerson.ts] *modified* +const Messageable = () => { + return class MessageableClass { + public message = 'hello'; + } +}; +const wrapper = () => Messageable(); +type MessageablePerson = InstanceType>; +export default MessageablePerson; + +tsgo --incremental +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/MessageablePerson.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/MessageablePerson.js] *rewrite with same content* +//// [/home/src/workspaces/project/main.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/main.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"module":99},"referencedMap":[[3,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./MessageablePerson.ts", + "./main.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./MessageablePerson.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", + "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./MessageablePerson.ts", + "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./MessageablePerson.ts" + ] + ], + "options": { + "declaration": true, + "module": 99 + }, + "referencedMap": { + "./main.ts": [ + "./MessageablePerson.ts" + ] + }, + "size": 2034 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/MessageablePerson.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/MessageablePerson.ts +(computed .d.ts) /home/src/workspaces/project/main.ts + + +Edit [4]:: no change + +tsgo --incremental +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js b/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js new file mode 100644 index 0000000000..5fb23344b4 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js @@ -0,0 +1,398 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *new* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +type ReturnType any> = T extends (...args: any) => infer R ? R : any; +type InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any; +//// [/home/src/workspaces/project/MessageablePerson.ts] *new* +const Messageable = () => { + return class MessageableClass { + public message = 'hello'; + } +}; +const wrapper = () => Messageable(); +type MessageablePerson = InstanceType>; +export default MessageablePerson; +//// [/home/src/workspaces/project/main.ts] *new* +import MessageablePerson from './MessageablePerson.js'; +function logMessage( person: MessageablePerson ) { + console.log( person.message ); +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "esnext" + } +} + +tsgo --incremental +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/MessageablePerson.js] *new* +const Messageable = () => { + return class MessageableClass { + message = 'hello'; + }; +}; +const wrapper = () => Messageable(); +export {}; + +//// [/home/src/workspaces/project/main.js] *new* +function logMessage(person) { + console.log(person.message); +} +export {}; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},"500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}"],"fileIdsList":[[2]],"options":{"module":99},"referencedMap":[[3,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./MessageablePerson.ts", + "./main.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./MessageablePerson.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", + "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./MessageablePerson.ts", + "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./main.ts", + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./MessageablePerson.ts" + ] + ], + "options": { + "module": 99 + }, + "referencedMap": { + "./main.ts": [ + "./MessageablePerson.ts" + ] + }, + "size": 1651 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/MessageablePerson.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --incremental +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: modify public to protected +//// [/home/src/workspaces/project/MessageablePerson.ts] *modified* +const Messageable = () => { + return class MessageableClass { + protected message = 'hello'; + } +}; +const wrapper = () => Messageable(); +type MessageablePerson = InstanceType>; +export default MessageablePerson; + +tsgo --incremental +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +main.ts:3:25 - error TS2445: Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses. + +3 console.log( person.message ); +   ~~~~~~~ + + +Found 1 error in main.ts:3 + +//// [/home/src/workspaces/project/MessageablePerson.js] *rewrite with same content* +//// [/home/src/workspaces/project/main.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"module":99},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":131,"end":138,"code":2445,"category":1,"message":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./MessageablePerson.ts", + "./main.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./MessageablePerson.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", + "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./MessageablePerson.ts", + "version": "fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fc3bcee26e986c769691717bfbe49525-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "eb669b96f45855935c22925689eec67c-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n\n(116,7): error4094: Property 'message' of exported anonymous class type may not be private or protected.\n(116,7): error9027: Add a type annotation to the variable wrapper.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./MessageablePerson.ts" + ] + ], + "options": { + "module": 99 + }, + "referencedMap": { + "./main.ts": [ + "./MessageablePerson.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./main.ts", + [ + { + "pos": 131, + "end": 138, + "code": 2445, + "category": 1, + "message": "Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses." + } + ] + ] + ], + "size": 2392 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/MessageablePerson.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/MessageablePerson.ts +(computed .d.ts) /home/src/workspaces/project/main.ts + + +Edit [2]:: no change + +tsgo --incremental +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +main.ts:3:25 - error TS2445: Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses. + +3 console.log( person.message ); +   ~~~~~~~ + + +Found 1 error in main.ts:3 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: modify protected to public +//// [/home/src/workspaces/project/MessageablePerson.ts] *modified* +const Messageable = () => { + return class MessageableClass { + public message = 'hello'; + } +}; +const wrapper = () => Messageable(); +type MessageablePerson = InstanceType>; +export default MessageablePerson; + +tsgo --incremental +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/MessageablePerson.js] *rewrite with same content* +//// [/home/src/workspaces/project/main.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":[{"version":"778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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,"impliedNodeFormat":1},{"version":"500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedNodeFormat":1},{"version":"f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"module":99},"referencedMap":[[3,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./MessageablePerson.ts", + "./main.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./MessageablePerson.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", + "signature": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "778b786cd1eca831889c50ded7c79c1d-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };\ntype 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, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./MessageablePerson.ts", + "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "500cfddf7f97c595e46579b9b5afc9bd-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "signature": "3847cb0c7d8f5a6eaa57e0b19ab33ea8-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f1d6119c9df9ff1b48604c0e5c5f624f-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./MessageablePerson.ts" + ] + ], + "options": { + "module": 99 + }, + "referencedMap": { + "./main.ts": [ + "./MessageablePerson.ts" + ] + }, + "size": 2015 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/MessageablePerson.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/MessageablePerson.ts +(computed .d.ts) /home/src/workspaces/project/main.ts + + +Edit [4]:: no change + +tsgo --incremental +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js b/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js new file mode 100644 index 0000000000..05c6212fe0 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js @@ -0,0 +1,343 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/class1.ts] *new* +const a: MagicNumber = 1; +console.log(a); +//// [/home/src/workspaces/project/constants.ts] *new* +export default 1; +//// [/home/src/workspaces/project/reexport.ts] *new* +export { default as ConstantNumber } from "./constants" +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} +//// [/home/src/workspaces/project/types.d.ts] *new* +type MagicNumber = typeof import('./reexport').ConstantNumber + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/class1.d.ts] *new* +declare const a = 1; + +//// [/home/src/workspaces/project/class1.js] *new* +const a = 1; +console.log(a); + +//// [/home/src/workspaces/project/constants.d.ts] *new* +declare const _default: number; +export default _default; + +//// [/home/src/workspaces/project/constants.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = 1; + +//// [/home/src/workspaces/project/reexport.d.ts] *new* +export { default as ConstantNumber } from "./constants"; + +//// [/home/src/workspaces/project/reexport.js] *new* +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConstantNumber = void 0; +const constants_1 = require("./constants"); +Object.defineProperty(exports, "ConstantNumber", { enumerable: true, get: function () { return __importDefault(constants_1).default; } }); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);","signature":"f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c93bc8f54a24dc311538894cf3d7ac17-export default 1;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1},{"version":"75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"","signature":"3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n","impliedNodeFormat":1},{"version":"d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[4]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./reexport.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./class1.ts", + "./constants.ts", + "./reexport.ts", + "./types.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./class1.ts", + "./constants.ts", + "./reexport.ts", + "./types.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./class1.ts", + "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./constants.ts", + "version": "c93bc8f54a24dc311538894cf3d7ac17-export default 1;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c93bc8f54a24dc311538894cf3d7ac17-export default 1;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./reexport.ts", + "version": "75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"", + "signature": "3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"", + "signature": "3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./types.d.ts", + "version": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", + "signature": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./constants.ts" + ], + [ + "./reexport.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./reexport.ts": [ + "./constants.ts" + ], + "./types.d.ts": [ + "./reexport.ts" + ] + }, + "latestChangedDtsFile": "./reexport.d.ts", + "size": 1831 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/class1.ts +*refresh* /home/src/workspaces/project/constants.ts +*refresh* /home/src/workspaces/project/reexport.ts +*refresh* /home/src/workspaces/project/types.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/class1.ts +(stored at emit) /home/src/workspaces/project/constants.ts +(stored at emit) /home/src/workspaces/project/reexport.ts + + +Edit [0]:: Modify imports used in global file +//// [/home/src/workspaces/project/constants.ts] *modified* +export default 2; + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/constants.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = 2; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);","signature":"f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b8fa0b3912c91197fa3ec685cbc93c70-export default 2;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1},{"version":"75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"","signature":"3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n","impliedNodeFormat":1},{"version":"d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[4]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./reexport.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./class1.ts", + "./constants.ts", + "./reexport.ts", + "./types.d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./class1.ts", + "./constants.ts", + "./reexport.ts", + "./types.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./class1.ts", + "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./constants.ts", + "version": "b8fa0b3912c91197fa3ec685cbc93c70-export default 2;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b8fa0b3912c91197fa3ec685cbc93c70-export default 2;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./reexport.ts", + "version": "75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"", + "signature": "3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "75c0647a66f2f74c4448b4b393e889d1-export { default as ConstantNumber } from \"./constants\"", + "signature": "3c986fce7f0f21b6b269681962fc7feb-export { default as ConstantNumber } from \"./constants\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./types.d.ts", + "version": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", + "signature": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d84f446b9b1fc3f56545f03793b7992c-type MagicNumber = typeof import('./reexport').ConstantNumber", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./constants.ts" + ], + [ + "./reexport.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./reexport.ts": [ + "./constants.ts" + ], + "./types.d.ts": [ + "./reexport.ts" + ] + }, + "latestChangedDtsFile": "./reexport.d.ts", + "size": 1831 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/constants.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/constants.ts + + +Diff:: Currently there is issue with d.ts emit for export default = 1 to widen in dts which is why we are not re-computing errors and results in incorrect error reporting +--- nonIncremental /home/src/workspaces/project/class1.d.ts ++++ incremental /home/src/workspaces/project/class1.d.ts +@@ -1,1 +1,1 @@ +-declare const a = 2; ++declare const a = 1; +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,8 +0,0 @@ +-class1.ts:1:7 - error TS2322: Type '1' is not assignable to type '2'. +- +-1 const a: MagicNumber = 1; +-   ~ +- +- +-Found 1 error in class1.ts:1 +- \ No newline at end of file diff --git a/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js b/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js new file mode 100644 index 0000000000..87b69c8daf --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js @@ -0,0 +1,288 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/class1.ts] *new* +const a: MagicNumber = 1; +console.log(a); +//// [/home/src/workspaces/project/constants.ts] *new* +export default 1; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} +//// [/home/src/workspaces/project/types.d.ts] *new* +type MagicNumber = typeof import('./constants').default + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/class1.d.ts] *new* +declare const a = 1; + +//// [/home/src/workspaces/project/class1.js] *new* +const a = 1; +console.log(a); + +//// [/home/src/workspaces/project/constants.d.ts] *new* +declare const _default: number; +export default _default; + +//// [/home/src/workspaces/project/constants.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = 1; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);","signature":"f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c93bc8f54a24dc311538894cf3d7ac17-export default 1;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1},{"version":"45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./constants.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./class1.ts", + "./constants.ts", + "./types.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./class1.ts", + "./constants.ts", + "./types.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./class1.ts", + "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./constants.ts", + "version": "c93bc8f54a24dc311538894cf3d7ac17-export default 1;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c93bc8f54a24dc311538894cf3d7ac17-export default 1;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./types.d.ts", + "version": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", + "signature": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./constants.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./types.d.ts": [ + "./constants.ts" + ] + }, + "latestChangedDtsFile": "./constants.d.ts", + "size": 1565 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/class1.ts +*refresh* /home/src/workspaces/project/constants.ts +*refresh* /home/src/workspaces/project/types.d.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/class1.ts +(stored at emit) /home/src/workspaces/project/constants.ts + + +Edit [0]:: Modify imports used in global file +//// [/home/src/workspaces/project/constants.ts] *modified* +export default 2; + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/constants.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = 2; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);","signature":"f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b8fa0b3912c91197fa3ec685cbc93c70-export default 2;","signature":"18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n","impliedNodeFormat":1},{"version":"45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true},"referencedMap":[[4,1]],"latestChangedDtsFile":"./constants.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./class1.ts", + "./constants.ts", + "./types.d.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./class1.ts", + "./constants.ts", + "./types.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./class1.ts", + "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "881068d51dfd24d338a5f3706ee1097f-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "f59d1a67db5f979e23689dc09b68c628-declare const a = 1;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./constants.ts", + "version": "b8fa0b3912c91197fa3ec685cbc93c70-export default 2;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b8fa0b3912c91197fa3ec685cbc93c70-export default 2;", + "signature": "18ae69a2c0b372747b9973ad9c14a1e0-declare const _default: number;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./types.d.ts", + "version": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", + "signature": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "45ee7661a81bc095b54ab4944b849fee-type MagicNumber = typeof import('./constants').default", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./constants.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./types.d.ts": [ + "./constants.ts" + ] + }, + "latestChangedDtsFile": "./constants.d.ts", + "size": 1565 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/constants.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/constants.ts + + +Diff:: Currently there is issue with d.ts emit for export default = 1 to widen in dts which is why we are not re-computing errors and results in incorrect error reporting +--- nonIncremental /home/src/workspaces/project/class1.d.ts ++++ incremental /home/src/workspaces/project/class1.d.ts +@@ -1,1 +1,1 @@ +-declare const a = 2; ++declare const a = 1; +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,8 +0,0 @@ +-class1.ts:1:7 - error TS2322: Type '1' is not assignable to type '2'. +- +-1 const a: MagicNumber = 1; +-   ~ +- +- +-Found 1 error in class1.ts:1 +- \ No newline at end of file diff --git a/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js b/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js new file mode 100644 index 0000000000..abba6fc1fe --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js @@ -0,0 +1,604 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +import {A} from "./c" +let a = A.ONE +//// [/home/src/workspaces/project/b.d.ts] *new* +export { AWorker as A } from "./worker"; +//// [/home/src/workspaces/project/c.ts] *new* +import {A} from "./b" +let b = A.ONE +export {A} +//// [/home/src/workspaces/project/worker.d.ts] *new* +export const enum AWorker { + ONE = 1 +} + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 1 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"8a851657dbab1650611535d934e0e8a0-export const enum AWorker {\n ONE = 1\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "./worker.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./worker.d.ts", + "version": "8a851657dbab1650611535d934e0e8a0-export const enum AWorker {\n ONE = 1\n}", + "signature": "8a851657dbab1650611535d934e0e8a0-export const enum AWorker {\n ONE = 1\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.d.ts", + "version": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", + "signature": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./worker.d.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./b.d.ts": [ + "./worker.d.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1321 +} +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 1 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/worker.d.ts +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [0]:: change enum value +//// [/home/src/workspaces/project/worker.d.ts] *modified* +export const enum AWorker { + ONE = 2 +} + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 2 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"85732ecf91c49f8d8fff8ae96e3c1c8b-export const enum AWorker {\n ONE = 2\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "./worker.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./worker.d.ts", + "version": "85732ecf91c49f8d8fff8ae96e3c1c8b-export const enum AWorker {\n ONE = 2\n}", + "signature": "85732ecf91c49f8d8fff8ae96e3c1c8b-export const enum AWorker {\n ONE = 2\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.d.ts", + "version": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", + "signature": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./worker.d.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./b.d.ts": [ + "./worker.d.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1321 +} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 2 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/worker.d.ts +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/worker.d.ts +(used version) /home/src/workspaces/project/b.d.ts +(used version) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts + + +Edit [1]:: change enum value again +//// [/home/src/workspaces/project/worker.d.ts] *modified* +export const enum AWorker { + ONE = 3 +} + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 3 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "./worker.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./worker.d.ts", + "version": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", + "signature": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.d.ts", + "version": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", + "signature": "e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./worker.d.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./b.d.ts": [ + "./worker.d.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1321 +} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 3 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/worker.d.ts +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/worker.d.ts +(used version) /home/src/workspaces/project/b.d.ts +(used version) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts + + +Edit [2]:: something else changes in b.d.ts +//// [/home/src/workspaces/project/b.d.ts] *modified* +export { AWorker as A } from "./worker";export const randomThing = 10; + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}","7e628d40719306e63d220f210cef8697-export { AWorker as A } from \"./worker\";export const randomThing = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},{"version":"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "./worker.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./worker.d.ts", + "version": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", + "signature": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.d.ts", + "version": "7e628d40719306e63d220f210cef8697-export { AWorker as A } from \"./worker\";export const randomThing = 10;", + "signature": "7e628d40719306e63d220f210cef8697-export { AWorker as A } from \"./worker\";export const randomThing = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./worker.d.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./b.d.ts": [ + "./worker.d.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1570 +} +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [3]:: something else changes in b.d.ts again +//// [/home/src/workspaces/project/b.d.ts] *modified* +export { AWorker as A } from "./worker";export const randomThing = 10;export const randomThing2 = 10; + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}","85de628566e341d0050fe40f7319973e-export { AWorker as A } from \"./worker\";export const randomThing = 10;export const randomThing2 = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.d.ts", + "./worker.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./worker.d.ts", + "version": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", + "signature": "c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.d.ts", + "version": "85de628566e341d0050fe40f7319973e-export { AWorker as A } from \"./worker\";export const randomThing = 10;export const randomThing2 = 10;", + "signature": "85de628566e341d0050fe40f7319973e-export { AWorker as A } from \"./worker\";export const randomThing = 10;export const randomThing2 = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./worker.d.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./b.d.ts": [ + "./worker.d.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1507 +} +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts diff --git a/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js b/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js new file mode 100644 index 0000000000..03688a899d --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js @@ -0,0 +1,556 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +import {A} from "./c" +let a = A.ONE +//// [/home/src/workspaces/project/b.d.ts] *new* +export const enum AWorker { + ONE = 1 +} +export { AWorker as A }; +//// [/home/src/workspaces/project/c.ts] *new* +import {A} from "./b" +let b = A.ONE +export {A} +//// [/home/src/workspaces/project/worker.d.ts] *new* +export const enum AWorker { + ONE = 1 +} + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 1 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ea072a4c56b3b914bbdded014050bb9b-export const enum AWorker {\n ONE = 1\n}\nexport { AWorker as A };","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "ea072a4c56b3b914bbdded014050bb9b-export const enum AWorker {\n ONE = 1\n}\nexport { AWorker as A };", + "signature": "ea072a4c56b3b914bbdded014050bb9b-export const enum AWorker {\n ONE = 1\n}\nexport { AWorker as A };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1243 +} +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 1 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [0]:: change enum value +//// [/home/src/workspaces/project/b.d.ts] *modified* +export const enum AWorker { + ONE = 2 +} +export { AWorker as A }; + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 2 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ec710e331e7d6432e994b69e21aae83c-export const enum AWorker {\n ONE = 2\n}\nexport { AWorker as A };",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},{"version":"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "ec710e331e7d6432e994b69e21aae83c-export const enum AWorker {\n ONE = 2\n}\nexport { AWorker as A };", + "signature": "ec710e331e7d6432e994b69e21aae83c-export const enum AWorker {\n ONE = 2\n}\nexport { AWorker as A };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1462 +} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 2 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [1]:: change enum value again +//// [/home/src/workspaces/project/b.d.ts] *modified* +export const enum AWorker { + ONE = 3 +} +export { AWorker as A }; + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 3 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a65f34f1792fbedf7b83c3bf4a12fc1d-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "a65f34f1792fbedf7b83c3bf4a12fc1d-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };", + "signature": "a65f34f1792fbedf7b83c3bf4a12fc1d-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1368 +} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 3 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts + + +Edit [2]:: something else changes in b.d.ts +//// [/home/src/workspaces/project/b.d.ts] *modified* +export const enum AWorker { + ONE = 3 +} +export { AWorker as A };export const randomThing = 10; + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"842b68cd3ee2dcec7d1df8517668c731-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "842b68cd3ee2dcec7d1df8517668c731-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;", + "signature": "842b68cd3ee2dcec7d1df8517668c731-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1398 +} +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts + + +Edit [3]:: something else changes in b.d.ts again +//// [/home/src/workspaces/project/b.d.ts] *modified* +export const enum AWorker { + ONE = 3 +} +export { AWorker as A };export const randomThing = 10;export const randomThing2 = 10; + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"2e80eb5c14425cedaabae48745225bc6-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;export const randomThing2 = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "2e80eb5c14425cedaabae48745225bc6-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;export const randomThing2 = 10;", + "signature": "2e80eb5c14425cedaabae48745225bc6-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };export const randomThing = 10;export const randomThing2 = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1429 +} +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts diff --git a/testdata/baselines/reference/tsc/incremental/const-enums.js b/testdata/baselines/reference/tsc/incremental/const-enums.js new file mode 100644 index 0000000000..eb13001905 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/const-enums.js @@ -0,0 +1,551 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +import {A} from "./c" +let a = A.ONE +//// [/home/src/workspaces/project/b.d.ts] *new* +export const enum A { + ONE = 1 +} +//// [/home/src/workspaces/project/c.ts] *new* +import {A} from "./b" +let b = A.ONE +export {A} +//// [/home/src/workspaces/project/worker.d.ts] *new* +export const enum AWorker { + ONE = 1 +} + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 1 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"53c5c35ee54571b647e3f723569d09cf-export const enum A {\n ONE = 1\n}","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "53c5c35ee54571b647e3f723569d09cf-export const enum A {\n ONE = 1\n}", + "signature": "53c5c35ee54571b647e3f723569d09cf-export const enum A {\n ONE = 1\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1211 +} +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 1 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [0]:: change enum value +//// [/home/src/workspaces/project/b.d.ts] *modified* +export const enum A { + ONE = 2 +} + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 2 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"d04ca273da9def3b63557363c6eae3ca-export const enum A {\n ONE = 2\n}",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},{"version":"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "d04ca273da9def3b63557363c6eae3ca-export const enum A {\n ONE = 2\n}", + "signature": "d04ca273da9def3b63557363c6eae3ca-export const enum A {\n ONE = 2\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1430 +} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 2 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [1]:: change enum value again +//// [/home/src/workspaces/project/b.d.ts] *modified* +export const enum A { + ONE = 3 +} + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 3 /* A.ONE */; + +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"097e7efa854e788c6281c17b46d9460a-export const enum A {\n ONE = 3\n}",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "097e7efa854e788c6281c17b46d9460a-export const enum A {\n ONE = 3\n}", + "signature": "097e7efa854e788c6281c17b46d9460a-export const enum A {\n ONE = 3\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1336 +} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 3 /* A.ONE */; + + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts + + +Edit [2]:: something else changes in b.d.ts +//// [/home/src/workspaces/project/b.d.ts] *modified* +export const enum A { + ONE = 3 +}export const randomThing = 10; + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"40d09f9f7c0089340619c57a80ff0ab1-export const enum A {\n ONE = 3\n}export const randomThing = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "40d09f9f7c0089340619c57a80ff0ab1-export const enum A {\n ONE = 3\n}export const randomThing = 10;", + "signature": "40d09f9f7c0089340619c57a80ff0ab1-export const enum A {\n ONE = 3\n}export const randomThing = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1366 +} +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts + + +Edit [3]:: something else changes in b.d.ts again +//// [/home/src/workspaces/project/b.d.ts] *modified* +export const enum A { + ONE = 3 +}export const randomThing = 10;export const randomThing2 = 10; + +tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ee6472d5ac80e48bb4cea44493dd5fe8-export const enum A {\n ONE = 3\n}export const randomThing = 10;export const randomThing2 = 10;",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} +//// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.d.ts", + "./b.d.ts", + "./c.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.d.ts", + "version": "ee6472d5ac80e48bb4cea44493dd5fe8-export const enum A {\n ONE = 3\n}export const randomThing = 10;export const randomThing2 = 10;", + "signature": "ee6472d5ac80e48bb4cea44493dd5fe8-export const enum A {\n ONE = 3\n}export const randomThing = 10;export const randomThing2 = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}", + "signature": "f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "signature": "f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./c.ts" + ], + [ + "./b.d.ts" + ] + ], + "options": { + "tsBuildInfoFile": "./a.tsbuildinfo" + }, + "referencedMap": { + "./a.ts": [ + "./c.ts" + ], + "./c.ts": [ + "./b.d.ts" + ] + }, + "size": 1397 +} +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/b.d.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(used version) /home/src/workspaces/project/b.d.ts +(computed .d.ts) /home/src/workspaces/project/c.ts +(used version) /home/src/workspaces/project/a.ts diff --git a/testdata/baselines/reference/tsc/incremental/generates-typerefs-correctly.js b/testdata/baselines/reference/tsc/incremental/generates-typerefs-correctly.js new file mode 100644 index 0000000000..4c07451cdf --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/generates-typerefs-correctly.js @@ -0,0 +1,433 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/box.ts] *new* +export interface Box { + unbox(): T +} +//// [/home/src/workspaces/project/src/bug.js] *new* +import * as B from "./box.js" +import * as W from "./wrap.js" + +/** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ +const wrap = source => { +throw source +} + +/** + * @returns {B.Box} + */ +const box = (n = 0) => ({ unbox: () => n }) + +export const bug = wrap({ n: box(1) }); +//// [/home/src/workspaces/project/src/wrap.ts] *new* +export type Wrap = { + [K in keyof C]: { wrapped: C[K] } +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "outDir", + "checkJs": true + }, + "include": ["src"], +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/outDir/src/box.d.ts] *new* +export interface Box { + unbox(): T; +} + +//// [/home/src/workspaces/project/outDir/src/box.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/outDir/src/bug.d.ts] *new* +import * as B from "./box.js"; +import * as W from "./wrap.js"; +export declare const bug: W.Wrap<{ + n: B.Box; +}>; + +//// [/home/src/workspaces/project/outDir/src/bug.js] *new* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bug = void 0; +const B = __importStar(require("./box.js")); +const W = __importStar(require("./wrap.js")); +/** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ +const wrap = source => { + throw source; +}; +/** + * @returns {B.Box} + */ +const box = (n = 0) => ({ unbox: () => n }); +exports.bug = wrap({ n: box(1) }); + +//// [/home/src/workspaces/project/outDir/src/wrap.d.ts] *new* +export type Wrap = { + [K in keyof C]: { + wrapped: C[K]; + }; +}; + +//// [/home/src/workspaces/project/outDir/src/wrap.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}","signature":"ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n","impliedNodeFormat":1},{"version":"1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}","signature":"78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n","impliedNodeFormat":1},{"version":"b4e9b31d9609a8709f2fc33522d84448-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) });","signature":"7c385e40e65a179131e0621fad086d2a-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"referencedMap":[[4,1]],"latestChangedDtsFile":"./src/bug.d.ts"} +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/box.ts", + "../src/wrap.ts", + "../src/bug.js" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/box.ts", + "../src/wrap.ts", + "../src/bug.js" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/box.ts", + "version": "1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}", + "signature": "ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}", + "signature": "ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/wrap.ts", + "version": "1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}", + "signature": "78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}", + "signature": "78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/bug.js", + "version": "b4e9b31d9609a8709f2fc33522d84448-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) });", + "signature": "7c385e40e65a179131e0621fad086d2a-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b4e9b31d9609a8709f2fc33522d84448-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) });", + "signature": "7c385e40e65a179131e0621fad086d2a-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/box.ts", + "../src/wrap.ts" + ] + ], + "options": { + "checkJs": true, + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../src/bug.js": [ + "../src/box.ts", + "../src/wrap.ts" + ] + }, + "latestChangedDtsFile": "./src/bug.d.ts", + "size": 2092 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/box.ts +*refresh* /home/src/workspaces/project/src/wrap.ts +*refresh* /home/src/workspaces/project/src/bug.js +Signatures:: +(stored at emit) /home/src/workspaces/project/src/box.ts +(stored at emit) /home/src/workspaces/project/src/wrap.ts +(stored at emit) /home/src/workspaces/project/src/bug.js + + +Edit [0]:: modify js file +//// [/home/src/workspaces/project/src/bug.js] *modified* +import * as B from "./box.js" +import * as W from "./wrap.js" + +/** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ +const wrap = source => { +throw source +} + +/** + * @returns {B.Box} + */ +const box = (n = 0) => ({ unbox: () => n }) + +export const bug = wrap({ n: box(1) });export const something = 1; + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/outDir/src/bug.d.ts] *modified* +import * as B from "./box.js"; +import * as W from "./wrap.js"; +export declare const bug: W.Wrap<{ + n: B.Box; +}>; +export declare const something = 1; + +//// [/home/src/workspaces/project/outDir/src/bug.js] *modified* +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.something = exports.bug = void 0; +const B = __importStar(require("./box.js")); +const W = __importStar(require("./wrap.js")); +/** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ +const wrap = source => { + throw source; +}; +/** + * @returns {B.Box} + */ +const box = (n = 0) => ({ unbox: () => n }); +exports.bug = wrap({ n: box(1) }); +exports.something = 1; + +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}","signature":"ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n","impliedNodeFormat":1},{"version":"1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}","signature":"78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n","impliedNodeFormat":1},{"version":"6eacf2e4d90c851011e8978446ec65d2-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) });export const something = 1;","signature":"d57e9c5bf62a61457d245408176c990e-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport declare const something = 1;\n","impliedNodeFormat":1}],"fileIdsList":[[2,3]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"referencedMap":[[4,1]],"latestChangedDtsFile":"./src/bug.d.ts"} +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/box.ts", + "../src/wrap.ts", + "../src/bug.js" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../src/box.ts", + "../src/wrap.ts", + "../src/bug.js" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/box.ts", + "version": "1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}", + "signature": "ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1cd060b4cfa55ea2a47d197d9f36eb29-export interface Box {\n unbox(): T\n}", + "signature": "ccd603d89ad1b8ff239d77bc32963c82-export interface Box {\n unbox(): T;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/wrap.ts", + "version": "1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}", + "signature": "78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1bc7a2cd8efebbc7d3a335f2e15093fd-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}", + "signature": "78de3c807d49489120ea1f77c5bb07aa-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/bug.js", + "version": "6eacf2e4d90c851011e8978446ec65d2-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) });export const something = 1;", + "signature": "d57e9c5bf62a61457d245408176c990e-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport declare const something = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6eacf2e4d90c851011e8978446ec65d2-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) });export const something = 1;", + "signature": "d57e9c5bf62a61457d245408176c990e-import * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\nexport declare const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport declare const something = 1;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../src/box.ts", + "../src/wrap.ts" + ] + ], + "options": { + "checkJs": true, + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../src/bug.js": [ + "../src/box.ts", + "../src/wrap.ts" + ] + }, + "latestChangedDtsFile": "./src/bug.d.ts", + "size": 2156 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/bug.js +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/bug.js diff --git a/testdata/baselines/reference/tsc/incremental/option-changes-with-composite.js b/testdata/baselines/reference/tsc/incremental/option-changes-with-composite.js new file mode 100644 index 0000000000..31813b1f3a --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/option-changes-with-composite.js @@ -0,0 +1,1569 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/project/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/project/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/project/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1762 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/d.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts +(stored at emit) /home/src/workspaces/project/c.ts +(stored at emit) /home/src/workspaces/project/d.ts + + +Edit [0]:: with sourceMap + +tsgo --sourceMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *new* +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *new* +{"version":3,"file":"b.js","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *new* +{"version":3,"file":"c.js","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *new* +{"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1779 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: should re-emit only js so they dont contain sourcemap + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; + +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1762 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: with declaration should not emit anything + +tsgo --declaration +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: with declaration and declarationMap + +tsgo --declaration --declarationMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = 10; +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/a.d.ts.map] *new* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/b.d.ts] *modified* +export declare const b = 10; +//# sourceMappingURL=b.d.ts.map +//// [/home/src/workspaces/project/b.d.ts.map] *new* +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/c.d.ts] *modified* +export declare const c = 10; +//# sourceMappingURL=c.d.ts.map +//// [/home/src/workspaces/project/c.d.ts.map] *new* +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} +//// [/home/src/workspaces/project/d.d.ts] *modified* +export declare const d = 10; +//# sourceMappingURL=d.d.ts.map +//// [/home/src/workspaces/project/d.d.ts.map] *new* +{"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1803 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: should re-emit only dts so they dont contain sourcemap + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = 10; + +//// [/home/src/workspaces/project/b.d.ts] *modified* +export declare const b = 10; + +//// [/home/src/workspaces/project/c.d.ts] *modified* +export declare const c = 10; + +//// [/home/src/workspaces/project/d.d.ts] *modified* +export declare const d = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1762 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [6]:: with emitDeclarationOnly should not emit anything + +tsgo --emitDeclarationOnly +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [8]:: local change +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = 10;const aLocal = 100; + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1763 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [9]:: with declaration should not emit anything + +tsgo --declaration +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: with inlineSourceMap + +tsgo --inlineSourceMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDIn0= +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDIn0= +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"inlineSourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "inlineSourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1786 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: with sourceMap + +tsgo --sourceMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *modified* +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,GAAG,CAAC"} +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1780 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: declarationMap enabling +//// [/home/src/workspaces/project/tsconfig.json] *modified* +{ + "compilerOptions": { + "composite": true, "declarationMap": true + } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = 10; +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; + +//// [/home/src/workspaces/project/b.d.ts] *modified* +export declare const b = 10; +//# sourceMappingURL=b.d.ts.map +//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.d.ts] *modified* +export declare const c = 10; +//# sourceMappingURL=c.d.ts.map +//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.d.ts] *modified* +export declare const d = 10; +//# sourceMappingURL=d.d.ts.map +//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1785 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [13]:: with sourceMap should not emit d.ts + +tsgo --sourceMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"composite":true,"declarationMap":true,"sourceMap":true},"referencedMap":[[4,1],[5,2]],"latestChangedDtsFile":"./d.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "composite": true, + "declarationMap": true, + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "latestChangedDtsFile": "./d.d.ts", + "size": 1802 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/option-changes-with-incremental.js b/testdata/baselines/reference/tsc/incremental/option-changes-with-incremental.js new file mode 100644 index 0000000000..428799f3d1 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/option-changes-with-incremental.js @@ -0,0 +1,1526 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = 10;const aLocal = 10; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10;const bLocal = 10; +//// [/home/src/workspaces/project/c.ts] *new* +import { a } from "./a";export const c = a; +//// [/home/src/workspaces/project/d.ts] *new* +import { b } from "./b";export const d = b; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1251 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +*refresh* /home/src/workspaces/project/c.ts +*refresh* /home/src/workspaces/project/d.ts +Signatures:: + + +Edit [0]:: with sourceMap + +tsgo --sourceMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *new* +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *new* +{"version":3,"file":"b.js","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,EAAE,CAAC"} +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *new* +{"version":3,"file":"c.js","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *new* +{"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,2BAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"options":{"sourceMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1280 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: should re-emit only js so they dont contain sourcemap + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 10; + +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;"],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1251 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: with declaration, emit Dts and should not emit js + +tsgo --declaration +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a = 10; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c = 10; + +//// [/home/src/workspaces/project/d.d.ts] *new* +export declare const d = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1730 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts +(stored at emit) /home/src/workspaces/project/c.ts +(stored at emit) /home/src/workspaces/project/d.ts + + +Edit [3]:: with declaration and declarationMap + +tsgo --declaration --declarationMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = 10; +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/a.d.ts.map] *new* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/b.d.ts] *modified* +export declare const b = 10; +//# sourceMappingURL=b.d.ts.map +//// [/home/src/workspaces/project/b.d.ts.map] *new* +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/c.d.ts] *modified* +export declare const c = 10; +//# sourceMappingURL=c.d.ts.map +//// [/home/src/workspaces/project/c.d.ts.map] *new* +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["c.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} +//// [/home/src/workspaces/project/d.d.ts] *modified* +export declare const d = 10; +//# sourceMappingURL=d.d.ts.map +//// [/home/src/workspaces/project/d.d.ts.map] *new* +{"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f850043fadb2d6b35e16ae1adaad5a5-export const a = 10;const aLocal = 10;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1752 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: local change +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = 10;const aLocal = 100; + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1700 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [6]:: with declaration and declarationMap + +tsgo --declaration --declarationMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1753 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [8]:: with inlineSourceMap + +tsgo --inlineSourceMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDIn0= +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQUEsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDIn0= +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"inlineSourceMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "inlineSourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1735 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [9]:: with sourceMap + +tsgo --sourceMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; +//# sourceMappingURL=a.js.map +//// [/home/src/workspaces/project/a.js.map] *modified* +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":";;;AAAa,QAAA,CAAC,GAAG,EAAE,CAAC;AAAA,MAAM,MAAM,GAAG,GAAG,CAAC"} +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; +//# sourceMappingURL=b.js.map +//// [/home/src/workspaces/project/b.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; +//# sourceMappingURL=c.js.map +//// [/home/src/workspaces/project/c.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; +//# sourceMappingURL=d.js.map +//// [/home/src/workspaces/project/d.js.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"sourceMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "sourceMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1729 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: emit js files + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +const aLocal = 100; + +//// [/home/src/workspaces/project/b.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; +const bLocal = 10; + +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const a_1 = require("./a"); +exports.c = a_1.a; + +//// [/home/src/workspaces/project/d.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const b_1 = require("./b"); +exports.d = b_1.b; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1700 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: with declaration and declarationMap + +tsgo --declaration --declarationMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/d.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/d.d.ts.map] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;","signature":"5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n","impliedNodeFormat":1},{"version":"bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;","signature":"6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n","impliedNodeFormat":1},{"version":"b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;","signature":"3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n","impliedNodeFormat":1}],"fileIdsList":[[2],[3]],"options":{"declaration":true,"declarationMap":true},"referencedMap":[[4,1],[5,2]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c74d6b68e2cb0ed4cb8c18e3879119d9-export const a = 10;const aLocal = 100;", + "signature": "5d46ba05302682a2bc47daa29368141f-export declare const a = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bf1b9c3562b043596607d537fbaf9814-export const b = 10;const bLocal = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28822e22fad7308e03af07d91b210c8f-import { a } from \"./a\";export const c = a;", + "signature": "6bc89426f721fe78f6ac43d3e4d9058f-export declare const c = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "b392c90ba2c0413defc12f6bbf323140-import { b } from \"./b\";export const d = b;", + "signature": "3624f737ffc30774e872b3f5a7340537-export declare const d = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./a.ts" + ], + [ + "./b.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "referencedMap": { + "./c.ts": [ + "./a.ts" + ], + "./d.ts": [ + "./b.ts" + ] + }, + "size": 1753 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: with declaration and declarationMap, should not re-emit + +tsgo --declaration --declarationMap +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash-under---strict.js b/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash-under---strict.js new file mode 100644 index 0000000000..ee5f85490e --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash-under---strict.js @@ -0,0 +1,150 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/node_modules/@types/react/index.d.ts] *new* +export {}; +declare global { + namespace JSX { + interface Element {} + interface IntrinsicElements { + div: { + propA?: boolean; + }; + } + } +} +//// [/home/src/workspaces/project/node_modules/react/jsx-runtime.js] *new* +export {} +//// [/home/src/workspaces/project/src/index.tsx] *new* +export const App = () =>
; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} + +tsgo --strict +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/index.tsx:1:26 - error TS7016: Could not find a declaration file for module 'react/jsx-runtime'. '/home/src/workspaces/project/node_modules/react/jsx-runtime.js' implicitly has an 'any' type. + +1 export const App = () =>
; +   ~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in src/index.tsx:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.App = void 0; +const jsx_runtime_1 = require("react/jsx-runtime"); +const App = () => jsx_runtime_1.jsx("div", { propA: true }); +exports.App = App; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/index.tsx","./node_modules/@types/react/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;",{"version":"a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"jsx":4,"jsxImportSource":"react","module":1,"strict":true},"semanticDiagnosticsPerFile":[[2,[{"pos":25,"end":49,"code":7016,"category":1,"message":"Could not find a declaration file for module 'react/jsx-runtime'. '/home/src/workspaces/project/node_modules/react/jsx-runtime.js' implicitly has an 'any' type."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.tsx" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./src/index.tsx", + "./node_modules/@types/react/index.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/index.tsx", + "version": "0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;", + "signature": "0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/@types/react/index.d.ts", + "version": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", + "signature": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "jsx": 4, + "jsxImportSource": "react", + "module": 1, + "strict": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/index.tsx", + [ + { + "pos": 25, + "end": 49, + "code": 7016, + "category": 1, + "message": "Could not find a declaration file for module 'react/jsx-runtime'. '/home/src/workspaces/project/node_modules/react/jsx-runtime.js' implicitly has an 'any' type." + } + ] + ] + ], + "size": 1623 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/index.tsx +*refresh* /home/src/workspaces/project/node_modules/@types/react/index.d.ts +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash.js b/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash.js new file mode 100644 index 0000000000..6346e64350 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesnt-crash.js @@ -0,0 +1,127 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/node_modules/@types/react/index.d.ts] *new* +export {}; +declare global { + namespace JSX { + interface Element {} + interface IntrinsicElements { + div: { + propA?: boolean; + }; + } + } +} +//// [/home/src/workspaces/project/node_modules/react/jsx-runtime.js] *new* +export {} +//// [/home/src/workspaces/project/src/index.tsx] *new* +export const App = () =>
; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.App = void 0; +const jsx_runtime_1 = require("react/jsx-runtime"); +const App = () => jsx_runtime_1.jsx("div", { propA: true }); +exports.App = App; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/index.tsx","./node_modules/@types/react/index.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;",{"version":"a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"jsx":4,"jsxImportSource":"react","module":1}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/index.tsx" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./src/index.tsx", + "./node_modules/@types/react/index.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/index.tsx", + "version": "0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;", + "signature": "0c3575e38f9aabc971cea9c73a211979-export const App = () =>
;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/@types/react/index.d.ts", + "version": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", + "signature": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a6afc3c631ce6ad7bc83db84287b52ea-export {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "jsx": 4, + "jsxImportSource": "react", + "module": 1 + }, + "size": 1354 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/index.tsx +*refresh* /home/src/workspaces/project/node_modules/@types/react/index.d.ts +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/serializing-composite-project.js b/testdata/baselines/reference/tsc/incremental/serializing-composite-project.js new file mode 100644 index 0000000000..41015ff3fc --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/serializing-composite-project.js @@ -0,0 +1,129 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/index.tsx] *new* +export const a = 1; +//// [/home/src/workspaces/project/other.ts] *new* +export const b = 2; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "strict": true, + "module": "esnext", + }, +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/index.d.ts] *new* +export declare const a = 1; + +//// [/home/src/workspaces/project/index.js] *new* +export const a = 1; + +//// [/home/src/workspaces/project/other.d.ts] *new* +export declare const b = 2; + +//// [/home/src/workspaces/project/other.js] *new* +export const b = 2; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./index.tsx","./other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5c8fff6e1fca35f4a292d48868d4086-export const a = 1;","signature":"67cd7ccc14045107336f34154f76a8ca-export declare const a = 1;\n","impliedNodeFormat":1},{"version":"a8da94c0a8fada72e123de05c6818d3a-export const b = 2;","signature":"e1d275f86bf4a4a1f6fd0e8d8709f902-export declare const b = 2;\n","impliedNodeFormat":1}],"options":{"composite":true,"module":99,"strict":true},"latestChangedDtsFile":"./other.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.tsx", + "./other.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./index.tsx", + "./other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.tsx", + "version": "f5c8fff6e1fca35f4a292d48868d4086-export const a = 1;", + "signature": "67cd7ccc14045107336f34154f76a8ca-export declare const a = 1;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5c8fff6e1fca35f4a292d48868d4086-export const a = 1;", + "signature": "67cd7ccc14045107336f34154f76a8ca-export declare const a = 1;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./other.ts", + "version": "a8da94c0a8fada72e123de05c6818d3a-export const b = 2;", + "signature": "e1d275f86bf4a4a1f6fd0e8d8709f902-export declare const b = 2;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a8da94c0a8fada72e123de05c6818d3a-export const b = 2;", + "signature": "e1d275f86bf4a4a1f6fd0e8d8709f902-export declare const b = 2;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "module": 99, + "strict": true + }, + "latestChangedDtsFile": "./other.d.ts", + "size": 1303 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/index.tsx +*refresh* /home/src/workspaces/project/other.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/index.tsx +(stored at emit) /home/src/workspaces/project/other.ts diff --git a/testdata/baselines/reference/tsc/incremental/serializing-error-chain.js b/testdata/baselines/reference/tsc/incremental/serializing-error-chain.js new file mode 100644 index 0000000000..3a1c2607fc --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/serializing-error-chain.js @@ -0,0 +1,216 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/index.tsx] *new* +declare namespace JSX { + interface ElementChildrenAttribute { children: {}; } + interface IntrinsicElements { div: {} } +} + +declare var React: any; + +declare function Component(props: never): any; +declare function Component(props: { children?: number }): any; +( +
+
+) +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "strict": true, + "jsx": "react", + "module": "esnext", + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +index.tsx:10:3 - error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ children: any[]; }' is not assignable to type '{ children?: number | undefined; }'. + Types of property 'children' are incompatible. + Type 'any[]' is not assignable to type 'number'. + +10 ( +   ~~~~~~~~~ + + index.tsx:9:18 - The last overload is declared here. + 9 declare function Component(props: { children?: number }): any; +    ~~~~~~~~~ + + +Found 1 error in index.tsx:10 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/index.js] *new* +(React.createElement(Component, null, + React.createElement("div", null), + React.createElement("div", null))); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./index.tsx"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8ca521424834f2ae3377cc3ccc9dd3ef-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,"impliedNodeFormat":1}],"options":{"jsx":3,"module":99,"strict":true},"semanticDiagnosticsPerFile":[[2,[{"pos":265,"end":274,"code":2769,"category":1,"message":"No overload matches this call.","messageChain":[{"pos":265,"end":274,"code":2770,"category":1,"message":"The last overload gave the following error.","messageChain":[{"pos":265,"end":274,"code":2322,"category":1,"message":"Type '{ children: any[]; }' is not assignable to type '{ children?: number | undefined; }'.","messageChain":[{"pos":265,"end":274,"code":2326,"category":1,"message":"Types of property 'children' are incompatible.","messageChain":[{"pos":265,"end":274,"code":2322,"category":1,"message":"Type 'any[]' is not assignable to type 'number'."}]}]}]}],"relatedInformation":[{"pos":217,"end":226,"code":2771,"category":1,"message":"The last overload is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.tsx" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./index.tsx" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./index.tsx", + "version": "8ca521424834f2ae3377cc3ccc9dd3ef-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": "8ca521424834f2ae3377cc3ccc9dd3ef-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, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8ca521424834f2ae3377cc3ccc9dd3ef-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, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "jsx": 3, + "module": 99, + "strict": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.tsx", + [ + { + "pos": 265, + "end": 274, + "code": 2769, + "category": 1, + "message": "No overload matches this call.", + "messageChain": [ + { + "pos": 265, + "end": 274, + "code": 2770, + "category": 1, + "message": "The last overload gave the following error.", + "messageChain": [ + { + "pos": 265, + "end": 274, + "code": 2322, + "category": 1, + "message": "Type '{ children: any[]; }' is not assignable to type '{ children?: number | undefined; }'.", + "messageChain": [ + { + "pos": 265, + "end": 274, + "code": 2326, + "category": 1, + "message": "Types of property 'children' are incompatible.", + "messageChain": [ + { + "pos": 265, + "end": 274, + "code": 2322, + "category": 1, + "message": "Type 'any[]' is not assignable to type 'number'." + } + ] + } + ] + } + ] + } + ], + "relatedInformation": [ + { + "pos": 217, + "end": 226, + "code": 2771, + "category": 1, + "message": "The last overload is declared here." + } + ] + } + ] + ] + ], + "size": 2109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/index.tsx +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +index.tsx:10:3 - error TS2769: No overload matches this call. + The last overload gave the following error. + Type '{ children: any[]; }' is not assignable to type '{ children?: number | undefined; }'. + Types of property 'children' are incompatible. + Type 'any[]' is not assignable to type 'number'. + +10 ( +   ~~~~~~~~~ + + index.tsx:9:18 - The last overload is declared here. + 9 declare function Component(props: { children?: number }): any; +    ~~~~~~~~~ + + +Found 1 error in index.tsx:10 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js b/testdata/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js new file mode 100644 index 0000000000..84b80ae36d --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js @@ -0,0 +1,106 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +Some random string + +tsgo -i +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "size": 915 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: + + +Edit [0]:: tsbuildinfo written has error +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +Some random string{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} + +tsgo -i +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/main.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content* + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/main.ts +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-file-is-deleted.js b/testdata/baselines/reference/tsc/incremental/when-file-is-deleted.js new file mode 100644 index 0000000000..6325023725 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/when-file-is-deleted.js @@ -0,0 +1,200 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/file1.ts] *new* +export class C { } +//// [/home/src/workspaces/project/file2.ts] *new* +export class D { } +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "outDir" + } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/outDir/file1.d.ts] *new* +export declare class C { +} + +//// [/home/src/workspaces/project/outDir/file1.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.C = void 0; +class C { +} +exports.C = C; + +//// [/home/src/workspaces/project/outDir/file2.d.ts] *new* +export declare class D { +} + +//// [/home/src/workspaces/project/outDir/file2.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.D = void 0; +class D { +} +exports.D = D; + +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../file1.ts","../file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }","signature":"ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n","impliedNodeFormat":1},{"version":"f7d221ab360f516a6280e3b725f4cd31-export class D { }","signature":"d80eb8b520c91b72da4146d2d8059990-export declare class D {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./file2.d.ts"} +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../file1.ts", + "../file2.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../file1.ts", + "../file2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../file1.ts", + "version": "7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }", + "signature": "ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }", + "signature": "ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../file2.ts", + "version": "f7d221ab360f516a6280e3b725f4cd31-export class D { }", + "signature": "d80eb8b520c91b72da4146d2d8059990-export declare class D {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f7d221ab360f516a6280e3b725f4cd31-export class D { }", + "signature": "d80eb8b520c91b72da4146d2d8059990-export declare class D {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./file2.d.ts", + "size": 1291 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/file1.ts +*refresh* /home/src/workspaces/project/file2.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/file1.ts +(stored at emit) /home/src/workspaces/project/file2.ts + + +Edit [0]:: delete file with imports +//// [/home/src/workspaces/project/file2.ts] *deleted* + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../file1.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }","signature":"ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./file2.d.ts"} +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../file1.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../file1.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../file1.ts", + "version": "7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }", + "signature": "ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7f6c75bbefe8ea83642a1cbd9b5f4880-export class C { }", + "signature": "ee4318f4b13094e43c50242580268f60-export declare class C {\n}\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./file2.d.ts", + "size": 1108 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js b/testdata/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js new file mode 100644 index 0000000000..ffe2a4f5a4 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js @@ -0,0 +1,921 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/anotherFileWithSameReferenes.ts] *new* +/// +/// +function anotherFileWithSameReferenes() { } +//// [/home/src/workspaces/project/src/filePresent.ts] *new* +function something() { return 10; } +//// [/home/src/workspaces/project/src/main.ts] *new* +/// +/// +function main() { } +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true }, + "include": ["src/**/*.ts"], +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/anotherFileWithSameReferenes.d.ts] *new* +declare function anotherFileWithSameReferenes(): void; + +//// [/home/src/workspaces/project/src/anotherFileWithSameReferenes.js] *new* +/// +/// +function anotherFileWithSameReferenes() { } + +//// [/home/src/workspaces/project/src/filePresent.d.ts] *new* +declare function something(): number; + +//// [/home/src/workspaces/project/src/filePresent.js] *new* +function something() { return 10; } + +//// [/home/src/workspaces/project/src/main.d.ts] *new* +declare function main(): void; + +//// [/home/src/workspaces/project/src/main.js] *new* +/// +/// +function main() { } + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/anotherFileWithSameReferenes.ts","./src/main.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4e3124823e3ef0a7f1ce70b317b1e4c8-/// \n/// \nfunction main() { }","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,5]],"options":{"composite":true},"referencedMap":[[3,1],[4,1]],"latestChangedDtsFile":"./src/main.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/filePresent.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/main.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/filePresent.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/main.ts", + "./src/fileNotFound.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/filePresent.ts", + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/anotherFileWithSameReferenes.ts", + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "4e3124823e3ef0a7f1ce70b317b1e4c8-/// \n/// \nfunction main() { }", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4e3124823e3ef0a7f1ce70b317b1e4c8-/// \n/// \nfunction main() { }", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/anotherFileWithSameReferenes.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + "./src/main.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ] + }, + "latestChangedDtsFile": "./src/main.d.ts", + "size": 1910 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/filePresent.ts +*refresh* /home/src/workspaces/project/src/anotherFileWithSameReferenes.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/filePresent.ts +(stored at emit) /home/src/workspaces/project/src/anotherFileWithSameReferenes.ts +(stored at emit) /home/src/workspaces/project/src/main.ts + + +Edit [0]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Modify main file +//// [/home/src/workspaces/project/src/main.ts] *modified* +/// +/// +function main() { }something(); + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/main.js] *modified* +/// +/// +function main() { } +something(); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/anotherFileWithSameReferenes.ts","./src/main.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9ece2abeadfdd790ae17f754892e8402-/// \n/// \nfunction main() { }something();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,5]],"options":{"composite":true},"referencedMap":[[3,1],[4,1]],"latestChangedDtsFile":"./src/main.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/filePresent.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/main.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/filePresent.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/main.ts", + "./src/fileNotFound.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/filePresent.ts", + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/anotherFileWithSameReferenes.ts", + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "9ece2abeadfdd790ae17f754892e8402-/// \n/// \nfunction main() { }something();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9ece2abeadfdd790ae17f754892e8402-/// \n/// \nfunction main() { }something();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/anotherFileWithSameReferenes.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + "./src/main.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ] + }, + "latestChangedDtsFile": "./src/main.d.ts", + "size": 1922 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/main.ts + + +Edit [2]:: Modify main file again +//// [/home/src/workspaces/project/src/main.ts] *modified* +/// +/// +function main() { }something();something(); + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/main.js] *modified* +/// +/// +function main() { } +something(); +something(); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/anotherFileWithSameReferenes.ts","./src/main.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1077a6c3f5daec777c602b0aac3793b9-/// \n/// \nfunction main() { }something();something();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,5]],"options":{"composite":true},"referencedMap":[[3,1],[4,1]],"latestChangedDtsFile":"./src/main.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/filePresent.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/main.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/filePresent.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/main.ts", + "./src/fileNotFound.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/filePresent.ts", + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/anotherFileWithSameReferenes.ts", + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "1077a6c3f5daec777c602b0aac3793b9-/// \n/// \nfunction main() { }something();something();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1077a6c3f5daec777c602b0aac3793b9-/// \n/// \nfunction main() { }something();something();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/anotherFileWithSameReferenes.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + "./src/main.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ] + }, + "latestChangedDtsFile": "./src/main.d.ts", + "size": 1934 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/main.ts + + +Edit [3]:: Add new file and update main file +//// [/home/src/workspaces/project/src/main.ts] *modified* +/// +/// +/// +function main() { }something();something();foo(); +//// [/home/src/workspaces/project/src/newFile.ts] *new* +function foo() { return 20; } + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/main.js] *modified* +/// +/// +/// +function main() { } +something(); +something(); +foo(); + +//// [/home/src/workspaces/project/src/newFile.d.ts] *new* +declare function foo(): number; + +//// [/home/src/workspaces/project/src/newFile.js] *new* +function foo() { return 20; } + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/anotherFileWithSameReferenes.ts","./src/newFile.ts","./src/main.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }","signature":"67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,6],[2,4,6]],"options":{"composite":true},"referencedMap":[[3,1],[5,2]],"latestChangedDtsFile":"./src/newFile.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/filePresent.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/filePresent.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/newFile.ts", + "./src/main.ts", + "./src/fileNotFound.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/filePresent.ts", + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/anotherFileWithSameReferenes.ts", + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/newFile.ts", + "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", + "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", + "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/anotherFileWithSameReferenes.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + "./src/main.ts": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts" + ] + }, + "latestChangedDtsFile": "./src/newFile.d.ts", + "size": 2216 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/newFile.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/newFile.ts +(computed .d.ts) /home/src/workspaces/project/src/main.ts + + +Edit [4]:: Write file that could not be resolved +//// [/home/src/workspaces/project/src/fileNotFound.ts] *new* +function something2() { return 20; } + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/anotherFileWithSameReferenes.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/fileNotFound.d.ts] *new* +declare function something2(): number; + +//// [/home/src/workspaces/project/src/fileNotFound.js] *new* +function something2() { return 20; } + +//// [/home/src/workspaces/project/src/main.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileWithSameReferenes.ts","./src/newFile.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }","signature":"6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }","signature":"67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,3],[2,3,5]],"options":{"composite":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./src/fileNotFound.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/filePresent.ts", + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/fileNotFound.ts", + "version": "d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }", + "signature": "6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }", + "signature": "6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/anotherFileWithSameReferenes.ts", + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/newFile.ts", + "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", + "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", + "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "bc6af6fddab57e87e44b7bf54d933e49-/// \n/// \n/// \nfunction main() { }something();something();foo();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/anotherFileWithSameReferenes.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + "./src/main.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" + ] + }, + "latestChangedDtsFile": "./src/fileNotFound.d.ts", + "size": 2441 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/fileNotFound.ts +*refresh* /home/src/workspaces/project/src/anotherFileWithSameReferenes.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/fileNotFound.ts +(computed .d.ts) /home/src/workspaces/project/src/anotherFileWithSameReferenes.ts +(computed .d.ts) /home/src/workspaces/project/src/main.ts + + +Edit [5]:: Modify main file +//// [/home/src/workspaces/project/src/main.ts] *modified* +/// +/// +/// +function main() { }something();something();foo();something(); + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/main.js] *modified* +/// +/// +/// +function main() { } +something(); +something(); +foo(); +something(); + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileWithSameReferenes.ts","./src/newFile.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }","signature":"427bfa05de25170a9630b13346cde60c-declare function something(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }","signature":"6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }","signature":"d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }","signature":"67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"789a4176bd8e2c5d9b0deb6839d8f298-/// \n/// \n/// \nfunction main() { }something();something();foo();something();","signature":"50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[2,3],[2,3,5]],"options":{"composite":true},"referencedMap":[[4,1],[6,2]],"latestChangedDtsFile":"./src/fileNotFound.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileWithSameReferenes.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/filePresent.ts", + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90fb0189e81698eb72c5c92453cf2ab4-function something() { return 10; }", + "signature": "427bfa05de25170a9630b13346cde60c-declare function something(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/fileNotFound.ts", + "version": "d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }", + "signature": "6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d97745dab1d2c6dc05ce702bd0c7145d-function something2() { return 20; }", + "signature": "6bc942031a42ec462dd78d556924caf0-declare function something2(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/anotherFileWithSameReferenes.ts", + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "e70a47c0753d68cebbf1d60d9abf7212-/// \n/// \nfunction anotherFileWithSameReferenes() { }", + "signature": "d30ad74c2e698ad06cc29f2ea6d12014-declare function anotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/newFile.ts", + "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", + "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cf329dc888a898a1403ba3e35c2ec68e-function foo() { return 20; }", + "signature": "67af86f8c5b618332b620488f3be2c41-declare function foo(): number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "789a4176bd8e2c5d9b0deb6839d8f298-/// \n/// \n/// \nfunction main() { }something();something();foo();something();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "789a4176bd8e2c5d9b0deb6839d8f298-/// \n/// \n/// \nfunction main() { }something();something();foo();something();", + "signature": "50f7afe296d55bfece856bfb6f7ad6c9-declare function main(): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/anotherFileWithSameReferenes.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts" + ], + "./src/main.ts": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" + ] + }, + "latestChangedDtsFile": "./src/fileNotFound.d.ts", + "size": 2453 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/main.ts diff --git a/testdata/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js b/testdata/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js new file mode 100644 index 0000000000..d4a4273007 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js @@ -0,0 +1,117 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs" + }, + "include": [ + "src/**/*.ts" + ], +} + +tsgo --incremental --tsBuildInfoFile .tsbuildinfo --explainFiles +ExitStatus:: Success +Output:: +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"],"options":{"module":1,"target":1,"tsBuildInfoFile":"./.tsbuildinfo"}} +//// [/home/src/workspaces/project/.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "module": 1, + "target": 1, + "tsBuildInfoFile": "./.tsbuildinfo" + }, + "size": 988 +} +//// [/home/src/workspaces/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --incremental --tsBuildInfoFile .tsbuildinfo --explainFiles +ExitStatus:: Success +Output:: +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js b/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js new file mode 100644 index 0000000000..acf230fde3 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js @@ -0,0 +1,105 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "outDir": "dist" + } +} + +tsgo --rootDir src +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/dist/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"],"options":{"outDir":"./dist","rootDir":"./src"}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/main.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "outDir": "./dist", + "rootDir": "./src" + }, + "size": 967 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --rootDir src +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js b/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js new file mode 100644 index 0000000000..adbad2fb31 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js @@ -0,0 +1,106 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "outDir": "dist", + "rootDir": "./" + } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/dist/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"28e8748a7acd58f4f59388926e914f86-export const x = 10;"],"options":{"outDir":"./","rootDir":".."}} +//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/main.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../src/main.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "outDir": "./", + "rootDir": ".." + }, + "size": 961 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/main.ts +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js b/testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js new file mode 100644 index 0000000000..d6a1cd1182 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js @@ -0,0 +1,141 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = 10; +//// [/home/src/workspaces/project/b.d.ts] *new* +interface NoName { + Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => { + stop: () => Promise; + }; +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "skipLibCheck": true, + "incremental": true, + } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"3a1e9965f8602302ee6ae53756eac8be-export const a = 10;",{"version":"53a40371b72faeca3dac96d61d6fb24f-interface NoName {\n Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => {\n stop: () => Promise;\n };\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"skipLibCheck":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "3a1e9965f8602302ee6ae53756eac8be-export const a = 10;", + "signature": "3a1e9965f8602302ee6ae53756eac8be-export const a = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.d.ts", + "version": "53a40371b72faeca3dac96d61d6fb24f-interface NoName {\n Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => {\n stop: () => Promise;\n };\n}", + "signature": "53a40371b72faeca3dac96d61d6fb24f-interface NoName {\n Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => {\n stop: () => Promise;\n };\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "53a40371b72faeca3dac96d61d6fb24f-interface NoName {\n Profiler: new ({ sampleInterval: number, maxBufferSize: number }) => {\n stop: () => Promise;\n };\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "skipLibCheck": true + }, + "size": 1195 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.d.ts +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: no change and tsc -b + +tsgo -b -v +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'b.d.ts' is older than output 'tsconfig.tsbuildinfo' + + diff --git a/testdata/baselines/reference/tsc/incremental/with-only-dts-files.js b/testdata/baselines/reference/tsc/incremental/with-only-dts-files.js new file mode 100644 index 0000000000..93472e2a40 --- /dev/null +++ b/testdata/baselines/reference/tsc/incremental/with-only-dts-files.js @@ -0,0 +1,169 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/another.d.ts] *new* +export const y = 10; +//// [/home/src/workspaces/project/src/main.d.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{} + +tsgo --incremental +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./src/another.d.ts","./src/main.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;","28e8748a7acd58f4f59388926e914f86-export const x = 10;"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/another.d.ts", + "./src/main.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/another.d.ts", + "./src/main.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/another.d.ts", + "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", + "signature": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/main.d.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "size": 1002 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/another.d.ts +*refresh* /home/src/workspaces/project/src/main.d.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --incremental +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: modify d.ts file +//// [/home/src/workspaces/project/src/main.d.ts] *modified* +export const x = 10;export const xy = 100; + +tsgo --incremental +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./src/another.d.ts","./src/main.d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;","111e3074fef4387af38d77ffef382bad-export const x = 10;export const xy = 100;"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/another.d.ts", + "./src/main.d.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/another.d.ts", + "./src/main.d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/another.d.ts", + "version": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", + "signature": "4e905e76b648aae5f92e8bd5418e19b3-export const y = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/main.d.ts", + "version": "111e3074fef4387af38d77ffef382bad-export const x = 10;export const xy = 100;", + "signature": "111e3074fef4387af38d77ffef382bad-export const x = 10;export const xy = 100;", + "impliedNodeFormat": "CommonJS" + } + ], + "size": 1024 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/main.d.ts +Signatures:: +(used version) /home/src/workspaces/project/src/main.d.ts diff --git a/testdata/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js b/testdata/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js new file mode 100644 index 0000000000..523b9d0031 --- /dev/null +++ b/testdata/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js @@ -0,0 +1,124 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/test.ts] *new* +export const x = 1; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{} + +tsgo --incremental --listFilesOnly +ExitStatus:: Success +Output:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/test.ts +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/test.ts +Signatures:: + + +Edit [0]:: incremental actual build + +tsgo --incremental +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/test.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 1; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./test.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"6126f134de98f678e320a9793c4fea1c-export const x = 1;"]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./test.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./test.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./test.ts", + "version": "6126f134de98f678e320a9793c4fea1c-export const x = 1;", + "signature": "6126f134de98f678e320a9793c4fea1c-export const x = 1;", + "impliedNodeFormat": "CommonJS" + } + ], + "size": 914 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/test.ts +Signatures:: + + +Edit [1]:: no change + +tsgo --incremental --listFilesOnly +ExitStatus:: Success +Output:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/test.ts + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: incremental should not build + +tsgo --incremental +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/listFilesOnly/loose-file.js b/testdata/baselines/reference/tsc/listFilesOnly/loose-file.js new file mode 100644 index 0000000000..5f21423cf8 --- /dev/null +++ b/testdata/baselines/reference/tsc/listFilesOnly/loose-file.js @@ -0,0 +1,35 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/test.ts] *new* +export const x = 1; + +tsgo test.ts --listFilesOnly +ExitStatus:: Success +Output:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/test.ts +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + diff --git a/testdata/baselines/reference/tsc/moduleResolution/alternateResult.js b/testdata/baselines/reference/tsc/moduleResolution/alternateResult.js new file mode 100644 index 0000000000..7ac02e2f44 --- /dev/null +++ b/testdata/baselines/reference/tsc/moduleResolution/alternateResult.js @@ -0,0 +1,3477 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/index.mts] *new* +import { foo } from "foo"; +import { bar } from "bar"; +import { foo2 } from "foo2"; +import { bar2 } from "bar2"; +//// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] *new* +export declare const bar: number; +//// [/home/src/projects/project/node_modules/@types/bar/package.json] *new* + { + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + + "require": "./index.d.ts" + } + } + } +//// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] *new* +export declare const bar2: number; +//// [/home/src/projects/project/node_modules/@types/bar2/package.json] *new* +{ + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } + } +} +//// [/home/src/projects/project/node_modules/bar/index.js] *new* +module.exports = { bar: 1 }; +//// [/home/src/projects/project/node_modules/bar/index.mjs] *new* +export const bar = 1; +//// [/home/src/projects/project/node_modules/bar/package.json] *new* + { + "name": "bar", + "version": "1.0.0", + "main": "index.js", + + "exports": { + ".": { + + "import": "./index.mjs", + "require": "./index.js" + } + } + } +//// [/home/src/projects/project/node_modules/bar2/index.js] *new* +module.exports = { bar2: 1 }; +//// [/home/src/projects/project/node_modules/bar2/index.mjs] *new* +export const bar2 = 1; +//// [/home/src/projects/project/node_modules/bar2/package.json] *new* + { + "name": "bar2", + "version": "1.0.0", + "main": "index.js", + + "exports": { + ".": { + + "import": "./index.mjs", + "require": "./index.js" + } + } + } +//// [/home/src/projects/project/node_modules/foo/index.d.ts] *new* +export declare const foo: number; +//// [/home/src/projects/project/node_modules/foo/index.js] *new* +module.exports = { foo: 1 }; +//// [/home/src/projects/project/node_modules/foo/index.mjs] *new* +export const foo = 1; +//// [/home/src/projects/project/node_modules/foo/package.json] *new* + { + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + + "import": "./index.mjs", + "require": "./index.js" + } + } + } +//// [/home/src/projects/project/node_modules/foo2/index.d.ts] *new* +export declare const foo2: number; +//// [/home/src/projects/project/node_modules/foo2/index.js] *new* +module.exports = { foo2: 1 }; +//// [/home/src/projects/project/node_modules/foo2/index.mjs] *new* +export const foo2 = 1; +//// [/home/src/projects/project/node_modules/foo2/package.json] *new* +{ + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } + } +} +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "node16", + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + }, + "files": ["index.mts"], +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/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'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== +index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. + +1 import { foo } from "foo"; +   ~~~~~ + +index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/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. + +2 import { bar } from "bar"; +   ~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:1 + +//// [/home/src/projects/project/index.mjs] *new* +export {}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.es2022.full.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;","da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","impliedNodeFormat":99}],"fileIdsList":[[2,3]],"options":{"module":100,"strict":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":20,"end":25,"code":7016,"category":1,"message":"Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":20,"end":25,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings."}]},{"pos":47,"end":52,"code":7016,"category":1,"message":"Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":47,"end":52,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/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."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.mts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts", + "./index.mts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/foo2/index.d.ts", + "version": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", + "signature": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/@types/bar2/index.d.ts", + "version": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", + "signature": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.mts", + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "impliedNodeFormat": "ESNext", + "original": { + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts" + ] + ], + "options": { + "module": 100, + "strict": true + }, + "referencedMap": { + "./index.mts": [ + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.mts", + [ + { + "pos": 20, + "end": 25, + "code": 7016, + "category": 1, + "message": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.", + "messageChain": [ + { + "pos": 20, + "end": 25, + "code": 6278, + "category": 3, + "message": "There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings." + } + ] + }, + { + "pos": 47, + "end": 52, + "code": 7016, + "category": 1, + "message": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.", + "messageChain": [ + { + "pos": 47, + "end": 52, + "code": 6278, + "category": 3, + "message": "There are types at '/home/src/projects/project/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." + } + ] + } + ] + ] + ], + "size": 2399 +} +//// [/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts +*refresh* /home/src/projects/project/node_modules/foo2/index.d.ts +*refresh* /home/src/projects/project/node_modules/@types/bar2/index.d.ts +*refresh* /home/src/projects/project/index.mts +Signatures:: + + +Edit [0]:: delete the alternateResult in @types +//// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] *deleted* + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/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'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/@types/bar/index.d.ts', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/@types/bar/index.d.ts' has a '.d.ts' extension - stripping it. +File '/home/src/projects/project/node_modules/@types/bar/index.ts' does not exist. +File '/home/src/projects/project/node_modules/@types/bar/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.ts' does not exist. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.tsx' does not exist. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== +index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. + +1 import { foo } from "foo"; +   ~~~~~ + +index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/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. + +2 import { bar } from "bar"; +   ~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Diff:: Currently we arent repopulating error chain so errors will be different +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -5,7 +5,7 @@ +    ~~~~~ + + index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. +- Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';` ++ There are types at '/home/src/projects/project/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. + + 2 import { bar } from "bar"; +    ~~~~~ + +Edit [1]:: delete the node10Result in package/types +//// [/home/src/projects/project/node_modules/foo/index.d.ts] *deleted* + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/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'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/foo/index.d.ts', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/foo/index.d.ts' has a '.d.ts' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.ts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/foo/index.d.ts.ts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.ts.tsx' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.ts.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/@types/bar/index.d.ts', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/@types/bar/index.d.ts' has a '.d.ts' extension - stripping it. +File '/home/src/projects/project/node_modules/@types/bar/index.ts' does not exist. +File '/home/src/projects/project/node_modules/@types/bar/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.ts' does not exist. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.tsx' does not exist. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/@types/bar/index.d.ts' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== +index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. + +1 import { foo } from "foo"; +   ~~~~~ + +index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/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. + +2 import { bar } from "bar"; +   ~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Diff:: Currently we arent repopulating error chain so errors will be different +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,11 +1,11 @@ + index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. +- Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';` ++ There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. + + 1 import { foo } from "foo"; +    ~~~~~ + + index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. +- Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';` ++ There are types at '/home/src/projects/project/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. + + 2 import { bar } from "bar"; +    ~~~~~ + +Edit [2]:: add the alternateResult in @types +//// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] *new* +export declare const bar: number; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/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'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/foo/index.d.ts', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/foo/index.d.ts' has a '.d.ts' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.ts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/foo/index.d.ts.ts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.ts.tsx' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.ts.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/foo/index.d.ts' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== +index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. + +1 import { foo } from "foo"; +   ~~~~~ + +index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/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. + +2 import { bar } from "bar"; +   ~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Diff:: Currently we arent repopulating error chain so errors will be different +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,5 +1,5 @@ + index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. +- Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';` ++ There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. + + 1 import { foo } from "foo"; +    ~~~~~ + +Edit [3]:: add the alternateResult in package/types +//// [/home/src/projects/project/node_modules/foo/index.d.ts] *new* +export declare const foo: number; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/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'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar/index.mjs', result '/home/src/projects/project/node_modules/bar/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar/index.js'. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== +index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. + +1 import { foo } from "foo"; +   ~~~~~ + +index.mts:2:21 - error TS7016: Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/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. + +2 import { bar } from "bar"; +   ~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: update package.json from @types so error is fixed +//// [/home/src/projects/project/node_modules/@types/bar/package.json] *modified* +{ + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } + } +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/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'. +File name '/home/src/projects/project/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.mjs', result '/home/src/projects/project/node_modules/foo/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo/index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== +index.mts:1:21 - error TS7016: Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings. + +1 import { foo } from "foo"; +   ~~~~~ + + +Found 1 error in index.mts:1 + +//// [/home/src/projects/project/index.mjs] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.es2022.full.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;","165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;","da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":99}],"fileIdsList":[[2,3,4]],"options":{"module":100,"strict":true},"referencedMap":[[5,1]],"semanticDiagnosticsPerFile":[[5,[{"pos":20,"end":25,"code":7016,"category":1,"message":"Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":20,"end":25,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.mts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts", + "./index.mts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/@types/bar/index.d.ts", + "version": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", + "signature": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/foo2/index.d.ts", + "version": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", + "signature": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/@types/bar2/index.d.ts", + "version": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", + "signature": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.mts", + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts" + ] + ], + "options": { + "module": 100, + "strict": true + }, + "referencedMap": { + "./index.mts": [ + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.mts", + [ + { + "pos": 20, + "end": 25, + "code": 7016, + "category": 1, + "message": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.", + "messageChain": [ + { + "pos": 20, + "end": 25, + "code": 6278, + "category": 3, + "message": "There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings." + } + ] + } + ] + ] + ], + "size": 2063 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/node_modules/@types/bar/index.d.ts +*refresh* /home/src/projects/project/index.mts +Signatures:: +(used version) /home/src/projects/project/node_modules/@types/bar/index.d.ts +(computed .d.ts) /home/src/projects/project/index.mts + + +Edit [5]:: update package.json so error is fixed +//// [/home/src/projects/project/node_modules/foo/package.json] *modified* +{ + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } + } +} + +tsgo +ExitStatus:: Success +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'. ======== +//// [/home/src/projects/project/index.mjs] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[6],"fileNames":["lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;","78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;","165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;","da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":99}],"fileIdsList":[[2,3,4,5]],"options":{"module":100,"strict":true},"referencedMap":[[6,1]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.mts" + ], + "original": 6 + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts", + "./index.mts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/foo/index.d.ts", + "version": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", + "signature": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/@types/bar/index.d.ts", + "version": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", + "signature": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/foo2/index.d.ts", + "version": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", + "signature": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/@types/bar2/index.d.ts", + "version": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", + "signature": "da9728b78f5d24b38c00844e001b4953-export declare const bar2: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.mts", + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts" + ] + ], + "options": { + "module": 100, + "strict": true + }, + "referencedMap": { + "./index.mts": [ + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts", + "./node_modules/@types/bar2/index.d.ts" + ] + }, + "size": 1637 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/node_modules/foo/index.d.ts +*refresh* /home/src/projects/project/index.mts +Signatures:: +(used version) /home/src/projects/project/node_modules/foo/index.d.ts +(computed .d.ts) /home/src/projects/project/index.mts + + +Edit [6]:: update package.json from @types so error is introduced +//// [/home/src/projects/project/node_modules/@types/bar2/package.json] *modified* + { + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + + "require": "./index.d.ts" + } + } + } + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== +index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. + +4 import { bar2 } from "bar2"; +   ~~~~~~ + + +Found 1 error in index.mts:4 + +//// [/home/src/projects/project/index.mjs] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[5],"fileNames":["lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;","78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;","165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":99}],"fileIdsList":[[2,3,4]],"options":{"module":100,"strict":true},"referencedMap":[[5,1]],"semanticDiagnosticsPerFile":[[5,[{"pos":104,"end":110,"code":7016,"category":1,"message":"Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":104,"end":110,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.mts" + ], + "original": 5 + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts", + "./index.mts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/foo/index.d.ts", + "version": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", + "signature": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/@types/bar/index.d.ts", + "version": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", + "signature": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/foo2/index.d.ts", + "version": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", + "signature": "165b91a7791663df5931f0b63ebf9ce2-export declare const foo2: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.mts", + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts" + ] + ], + "options": { + "module": 100, + "strict": true + }, + "referencedMap": { + "./index.mts": [ + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts", + "./node_modules/foo2/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.mts", + [ + { + "pos": 104, + "end": 110, + "code": 7016, + "category": 1, + "message": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.", + "messageChain": [ + { + "pos": 104, + "end": 110, + "code": 6278, + "category": 3, + "message": "There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings." + } + ] + } + ] + ] + ], + "size": 2076 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/index.mts +Signatures:: +(computed .d.ts) /home/src/projects/project/index.mts + + +Edit [7]:: update package.json so error is introduced +//// [/home/src/projects/project/node_modules/foo2/package.json] *modified* + { + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + + "import": "./index.mjs", + "require": "./index.js" + } + } + } + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== +index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. + +3 import { foo2 } from "foo2"; +   ~~~~~~ + +index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. + +4 import { bar2 } from "bar2"; +   ~~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:3 + +//// [/home/src/projects/project/index.mjs] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[4],"fileNames":["lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./index.mts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;","78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;",{"version":"eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":99}],"fileIdsList":[[2,3]],"options":{"module":100,"strict":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":75,"end":81,"code":7016,"category":1,"message":"Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":75,"end":81,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings."}]},{"pos":104,"end":110,"code":7016,"category":1,"message":"Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.","messageChain":[{"pos":104,"end":110,"code":6278,"category":3,"message":"There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./index.mts" + ], + "original": 4 + } + ], + "fileNames": [ + "lib.es2022.full.d.ts", + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts", + "./index.mts" + ], + "fileInfos": [ + { + "fileName": "lib.es2022.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./node_modules/foo/index.d.ts", + "version": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", + "signature": "2a914bfad3bba77712486af8a4cdc415-export declare const foo: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./node_modules/@types/bar/index.d.ts", + "version": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", + "signature": "78bc7ca8c840e090086811119f6d6ba9-export declare const bar: number;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./index.mts", + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "eee0814e4a127747fb836acc50eaeb5a-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 99 + } + } + ], + "fileIdsList": [ + [ + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts" + ] + ], + "options": { + "module": 100, + "strict": true + }, + "referencedMap": { + "./index.mts": [ + "./node_modules/foo/index.d.ts", + "./node_modules/@types/bar/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./index.mts", + [ + { + "pos": 75, + "end": 81, + "code": 7016, + "category": 1, + "message": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.", + "messageChain": [ + { + "pos": 75, + "end": 81, + "code": 6278, + "category": 3, + "message": "There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings." + } + ] + }, + { + "pos": 104, + "end": 110, + "code": 7016, + "category": 1, + "message": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.", + "messageChain": [ + { + "pos": 104, + "end": 110, + "code": 6278, + "category": 3, + "message": "There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings." + } + ] + } + ] + ] + ], + "size": 2467 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/index.mts +Signatures:: +(computed .d.ts) /home/src/projects/project/index.mts + + +Edit [8]:: delete the alternateResult in @types +//// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] *deleted* + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' has a '.d.ts' extension - stripping it. +File '/home/src/projects/project/node_modules/@types/bar2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/@types/bar2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.ts' does not exist. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.tsx' does not exist. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== +index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. + +3 import { foo2 } from "foo2"; +   ~~~~~~ + +index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. + +4 import { bar2 } from "bar2"; +   ~~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:3 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Diff:: Currently we arent repopulating error chain so errors will be different +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -5,7 +5,7 @@ +    ~~~~~~ + + index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. +- Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';` ++ There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. + + 4 import { bar2 } from "bar2"; +    ~~~~~~ + +Edit [9]:: delete the node10Result in package/types +//// [/home/src/projects/project/node_modules/foo2/index.d.ts] *deleted* + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/foo2/index.d.ts', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/foo2/index.d.ts' has a '.d.ts' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/foo2/index.d.ts.ts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.ts.tsx' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.ts.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' has a '.d.ts' extension - stripping it. +File '/home/src/projects/project/node_modules/@types/bar2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/@types/bar2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.ts' does not exist. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.tsx' does not exist. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== +index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. + +3 import { foo2 } from "foo2"; +   ~~~~~~ + +index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. + +4 import { bar2 } from "bar2"; +   ~~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:3 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Diff:: Currently we arent repopulating error chain so errors will be different +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,11 +1,11 @@ + index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. +- Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';` ++ There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. + + 3 import { foo2 } from "foo2"; +    ~~~~~~ + + index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. +- Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';` ++ There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. + + 4 import { bar2 } from "bar2"; +    ~~~~~~ + +Edit [10]:: add the alternateResult in @types +//// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] *new* +export declare const bar2: number; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/foo2/index.d.ts', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/foo2/index.d.ts' has a '.d.ts' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/foo2/index.d.ts.ts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.ts.tsx' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.ts.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/foo2/index.d.ts' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== +index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. + +3 import { foo2 } from "foo2"; +   ~~~~~~ + +index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. + +4 import { bar2 } from "bar2"; +   ~~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:3 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Diff:: Currently we arent repopulating error chain so errors will be different +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,5 +1,5 @@ + index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. +- Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';` ++ There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. + + 3 import { foo2 } from "foo2"; +    ~~~~~~ + +Edit [11]:: add the ndoe10Result in package/types +//// [/home/src/projects/project/node_modules/foo2/index.d.ts] *new* +export declare const foo2: number; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/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. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ======== +======== Resolving module 'bar' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'. ======== +======== Resolving module 'foo2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/foo2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/foo2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/foo2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.mjs', result '/home/src/projects/project/node_modules/foo2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/foo2/index.d.ts'. +File '/home/src/projects/project/node_modules/foo2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/foo2/index.d.ts', result '/home/src/projects/project/node_modules/foo2/index.d.ts'. +======== Module name 'foo2' was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.mjs' with Package ID 'foo2/index.mjs@1.0.0'. ======== +======== Resolving module 'bar2' from '/home/src/projects/project/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/home/src/projects/project/node_modules/bar2/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/home/src/projects/project/node_modules/bar2/index.mjs' has a '.mjs' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/home/src/projects/project/node_modules/bar2/index.mjs', result '/home/src/projects/project/node_modules/bar2/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar2' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/projects/project/node_modules/bar2/package.json' exists according to earlier cached lookups. +'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 'index.js' that references '/home/src/projects/project/node_modules/bar2/index.js'. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/home/src/projects/project/node_modules/bar2/index.js', target file types: TypeScript, Declaration. +File name '/home/src/projects/project/node_modules/bar2/index.js' has a '.js' extension - stripping it. +File '/home/src/projects/project/node_modules/bar2/index.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.tsx' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.d.ts' does not exist according to earlier cached lookups. +File '/home/src/projects/project/node_modules/bar2/index.js.ts' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.tsx' does not exist. +File '/home/src/projects/project/node_modules/bar2/index.js.d.ts' does not exist. +Directory '/home/src/projects/project/node_modules/bar2/index.js' does not exist, skipping all lookups in it. +File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +File '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', result '/home/src/projects/project/node_modules/@types/bar2/index.d.ts'. +======== Module name 'bar2' was successfully resolved to '/home/src/projects/project/node_modules/bar2/index.mjs' with Package ID 'bar2/index.mjs@1.0.0'. ======== +index.mts:3:22 - error TS7016: Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings. + +3 import { foo2 } from "foo2"; +   ~~~~~~ + +index.mts:4:22 - error TS7016: Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type. + There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings. + +4 import { bar2 } from "bar2"; +   ~~~~~~ + + +Found 2 errors in the same file, starting at: index.mts:3 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/moduleResolution/package-json-scope.js b/testdata/baselines/reference/tsc/moduleResolution/package-json-scope.js new file mode 100644 index 0000000000..d50d7c12a5 --- /dev/null +++ b/testdata/baselines/reference/tsc/moduleResolution/package-json-scope.js @@ -0,0 +1,281 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/package.json] *new* +{ + "name": "app", + "version": "1.0.0" +} +//// [/home/src/workspaces/project/src/fileA.ts] *new* +import { foo } from "./fileB.mjs"; +foo(); +//// [/home/src/workspaces/project/src/fileB.mts] *new* +export function foo() {} +//// [/home/src/workspaces/project/src/main.ts] *new* +export const x = 10; +//// [/home/src/workspaces/project/src/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "ES2016", + "composite": true, + "module": "Node16", + "traceResolution": true, + }, + "files": [ + "main.ts", + "fileA.ts", + "fileB.mts", + ], +} + +tsgo -p src --explainFiles --extendedDiagnostics +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module './fileB.mjs' from '/home/src/workspaces/project/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/home/src/workspaces/project/src/fileB.mjs', target file types: TypeScript, JavaScript, Declaration. +File name '/home/src/workspaces/project/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/home/src/workspaces/project/src/fileB.mts' exists - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/home/src/workspaces/project/src/fileB.mts'. ======== +src/fileA.ts:1:21 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./fileB.mjs")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/home/src/workspaces/project/package.json'. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../tslibs/TS/Lib/lib.es2016.full.d.ts + Default library for target 'ES2016' +src/main.ts + Part of 'files' list in tsconfig.json + File is CommonJS module because 'package.json' does not have field "type" +src/fileB.mts + Imported via "./fileB.mjs" from file 'src/fileA.ts' + Part of 'files' list in tsconfig.json +src/fileA.ts + Part of 'files' list in tsconfig.json + File is CommonJS module because 'package.json' does not have field "type" + +Found 1 error in src/fileA.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.es2016.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/fileA.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/fileA.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fileB_mjs_1 = require("./fileB.mjs"); +(0, fileB_mjs_1.foo)(); + +//// [/home/src/workspaces/project/src/fileB.d.mts] *new* +export declare function foo(): void; + +//// [/home/src/workspaces/project/src/fileB.mjs] *new* +export function foo() { } + +//// [/home/src/workspaces/project/src/main.d.ts] *new* +export declare const x = 10; + +//// [/home/src/workspaces/project/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + +//// [/home/src/workspaces/project/src/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.es2016.full.d.ts","./main.ts","./fileB.mts","./fileA.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"28e8748a7acd58f4f59388926e914f86-export const x = 10;","signature":"f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n","impliedNodeFormat":1},{"version":"d03690d860e74c03bcacf63f0dd68b93-export function foo() {}","signature":"7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n","impliedNodeFormat":99},{"version":"cc520ca096f0b81d18073ba8a9776fe3-import { foo } from \"./fileB.mjs\";\nfoo();","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3]],"options":{"composite":true,"module":100,"target":3},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":20,"end":33,"code":1479,"category":1,"message":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.","messageChain":[{"pos":20,"end":33,"code":1481,"category":3,"message":"To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/home/src/workspaces/project/package.json'."}]}]]],"latestChangedDtsFile":"./fileA.d.ts"} +//// [/home/src/workspaces/project/src/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./main.ts", + "./fileB.mts", + "./fileA.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.es2016.full.d.ts", + "./main.ts", + "./fileB.mts", + "./fileA.ts" + ], + "fileInfos": [ + { + "fileName": "lib.es2016.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./main.ts", + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "28e8748a7acd58f4f59388926e914f86-export const x = 10;", + "signature": "f9b4154a9a5944099ecf197d4519d083-export declare const x = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./fileB.mts", + "version": "d03690d860e74c03bcacf63f0dd68b93-export function foo() {}", + "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", + "impliedNodeFormat": "ESNext", + "original": { + "version": "d03690d860e74c03bcacf63f0dd68b93-export function foo() {}", + "signature": "7ffb4ea6089b1a385965a214ba412941-export declare function foo(): void;\n", + "impliedNodeFormat": 99 + } + }, + { + "fileName": "./fileA.ts", + "version": "cc520ca096f0b81d18073ba8a9776fe3-import { foo } from \"./fileB.mjs\";\nfoo();", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "cc520ca096f0b81d18073ba8a9776fe3-import { foo } from \"./fileB.mjs\";\nfoo();", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./fileB.mts" + ] + ], + "options": { + "composite": true, + "module": 100, + "target": 3 + }, + "referencedMap": { + "./fileA.ts": [ + "./fileB.mts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./fileA.ts", + [ + { + "pos": 20, + "end": 33, + "code": 1479, + "category": 1, + "message": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.", + "messageChain": [ + { + "pos": 20, + "end": 33, + "code": 1481, + "category": 3, + "message": "To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/home/src/workspaces/project/package.json'." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./fileA.d.ts", + "size": 2140 +} + +src/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.es2016.full.d.ts +*refresh* /home/src/workspaces/project/src/main.ts +*refresh* /home/src/workspaces/project/src/fileB.mts +*refresh* /home/src/workspaces/project/src/fileA.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/main.ts +(stored at emit) /home/src/workspaces/project/src/fileB.mts +(stored at emit) /home/src/workspaces/project/src/fileA.ts + + +Edit [0]:: Delete package.json +//// [/home/src/workspaces/project/package.json] *deleted* + +tsgo -p src --explainFiles --extendedDiagnostics +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +======== Resolving module './fileB.mjs' from '/home/src/workspaces/project/src/fileA.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/home/src/workspaces/project/src/fileB.mjs', target file types: TypeScript, JavaScript, Declaration. +File name '/home/src/workspaces/project/src/fileB.mjs' has a '.mjs' extension - stripping it. +File '/home/src/workspaces/project/src/fileB.mts' exists - use it as a name resolution result. +======== Module name './fileB.mjs' was successfully resolved to '/home/src/workspaces/project/src/fileB.mts'. ======== +src/fileA.ts:1:21 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./fileB.mjs")' call instead. + To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/home/src/workspaces/project/package.json'. + +1 import { foo } from "./fileB.mjs"; +   ~~~~~~~~~~~~~ + +../../tslibs/TS/Lib/lib.es2016.full.d.ts + Default library for target 'ES2016' +src/main.ts + Part of 'files' list in tsconfig.json + File is CommonJS module because 'package.json' was not found +src/fileB.mts + Imported via "./fileB.mjs" from file 'src/fileA.ts' + Part of 'files' list in tsconfig.json +src/fileA.ts + Part of 'files' list in tsconfig.json + File is CommonJS module because 'package.json' was not found + +Found 1 error in src/fileA.ts:1 + + +src/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Diff:: Currently we arent repopulating error chain so errors will be different +--- nonIncremental.output.txt ++++ incremental.output.txt +@@ -1,5 +1,5 @@ + src/fileA.ts:1:21 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("./fileB.mjs")' call instead. +- To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ "type": "module" }`. ++ To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/home/src/workspaces/project/package.json'. + + 1 import { foo } from "./fileB.mjs"; +    ~~~~~~~~~~~~~ \ No newline at end of file diff --git a/testdata/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js b/testdata/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js new file mode 100644 index 0000000000..01e668625c --- /dev/null +++ b/testdata/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js @@ -0,0 +1,308 @@ +currentDirectory::/home/src/projects/component-type-checker/packages/app +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/package.json] *new* +{ + "name": "@component-type-checker/button", + "version": "0.0.1", + "main": "./src/index.ts" +} +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts] *new* +export interface Button { + a: number; + b: number; +} +export function createButton(): Button { + return { + a: 0, + b: 1, + }; +} +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/package.json] *new* +{ + "name": "@component-type-checker/button", + "version": "0.0.2", + "main": "./src/index.ts" +} +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts] *new* +export interface Button { + a: number; + c: number; +} +export function createButton(): Button { + return { + a: 0, + c: 2, + }; +} +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button *new* +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/package.json] *new* +{ + "name": "@component-type-checker/components", + "version": "0.0.1", + "main": "./src/index.ts", + "peerDependencies": { + "@component-type-checker/button": "*" + }, + "devDependencies": { + "@component-type-checker/button": "0.0.2" + } +} +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts] *new* +export { createButton, Button } from "@component-type-checker/button"; +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button *new* +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/package.json] *new* +{ + "name": "@component-type-checker/components", + "version": "0.0.1", + "main": "./src/index.ts", + "peerDependencies": { + "@component-type-checker/button": "*" + }, + "devDependencies": { + "@component-type-checker/button": "0.0.2" + } +} +//// [/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts] *new* +export { createButton, Button } from "@component-type-checker/button"; +//// [/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button *new* +//// [/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components *new* +//// [/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk] -> /home/src/projects/component-type-checker/packages/sdk *new* +//// [/home/src/projects/component-type-checker/packages/app/package.json] *new* +{ + "name": "app", + "version": "1.0.0", + "dependencies": { + "@component-type-checker/button": "0.0.2", + "@component-type-checker/components": "0.0.1", + "@component-type-checker/sdk": "0.0.2" + } +} +//// [/home/src/projects/component-type-checker/packages/app/src/app.tsx] *new* +import { VERSION } from "@component-type-checker/sdk"; +import { Button } from "@component-type-checker/components"; +import { createButton } from "@component-type-checker/button"; +const button: Button = createButton(); +//// [/home/src/projects/component-type-checker/packages/app/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "module": "esnext", + "lib": ["ES5"], + "moduleResolution": "node", + "outDir": "dist", + }, + "include": ["src"], +} +//// [/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/button] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button *new* +//// [/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components] -> /home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components *new* +//// [/home/src/projects/component-type-checker/packages/sdk/package.json] *new* +{ + "name": "@component-type-checker/sdk1", + "version": "0.0.2", + "main": "./src/index.ts", + "dependencies": { + "@component-type-checker/components": "0.0.1", + "@component-type-checker/button": "0.0.1" + } +} +//// [/home/src/projects/component-type-checker/packages/sdk/src/index.ts] *new* +export { Button, createButton } from "@component-type-checker/components"; +export const VERSION = "0.0.2"; + +tsgo --traceResolution --explainFiles +ExitStatus:: Success +Output:: +======== Resolving module '@component-type-checker/sdk' from '/home/src/projects/component-type-checker/packages/app/src/app.tsx'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/projects/component-type-checker/packages/app/src/package.json' does not exist. +Found 'package.json' at '/home/src/projects/component-type-checker/packages/app/package.json'. +Loading module '@component-type-checker/sdk' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__sdk' +Found 'package.json' at '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk/package.json'. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk.ts' does not exist. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk.tsx' does not exist. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk.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 './src/index.ts' that references '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk/src/index.ts'. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk/src/index.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/sdk/src/index.ts', result '/home/src/projects/component-type-checker/packages/sdk/src/index.ts'. +======== Module name '@component-type-checker/sdk' was successfully resolved to '/home/src/projects/component-type-checker/packages/sdk/src/index.ts' with Package ID '@component-type-checker/sdk1@0.0.2'. ======== +======== Resolving module '@component-type-checker/components' from '/home/src/projects/component-type-checker/packages/app/src/app.tsx'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/projects/component-type-checker/packages/app/src/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/component-type-checker/packages/app/package.json' exists according to earlier cached lookups. +Loading module '@component-type-checker/components' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__components' +Found 'package.json' at '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components/package.json'. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components.ts' does not exist. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components.tsx' does not exist. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components.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 './src/index.ts' that references '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components/src/index.ts'. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components/src/index.ts' exists - use it as a name resolution result. +'package.json' has a 'peerDependencies' field. +Resolving real path for '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components'. +Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/package.json'. +Found peerDependency '@component-type-checker/button' with '0.0.2' version. +Resolving real path for '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/components/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts'. +======== Module name '@component-type-checker/components' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts' with Package ID '@component-type-checker/components@0.0.1+@component-type-checker/button@0.0.2'. ======== +======== Resolving module '@component-type-checker/button' from '/home/src/projects/component-type-checker/packages/app/src/app.tsx'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/projects/component-type-checker/packages/app/src/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/component-type-checker/packages/app/package.json' exists according to earlier cached lookups. +Loading module '@component-type-checker/button' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/packages/app/src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__button' +Found 'package.json' at '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button/package.json'. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button.ts' does not exist. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button.tsx' does not exist. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button.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 './src/index.ts' that references '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button/src/index.ts'. +File '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button/src/index.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/component-type-checker/packages/app/node_modules/@component-type-checker/button/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts'. +======== Module name '@component-type-checker/button' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts' with Package ID '@component-type-checker/button@0.0.2'. ======== +======== Resolving module '@component-type-checker/components' from '/home/src/projects/component-type-checker/packages/sdk/src/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/projects/component-type-checker/packages/sdk/src/package.json' does not exist. +Found 'package.json' at '/home/src/projects/component-type-checker/packages/sdk/package.json'. +Loading module '@component-type-checker/components' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/projects/component-type-checker/packages/sdk/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/packages/sdk/src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__components' +Found 'package.json' at '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components/package.json'. +File '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components.ts' does not exist. +File '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components.tsx' does not exist. +File '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components.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 './src/index.ts' that references '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components/src/index.ts'. +File '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components/src/index.ts' exists - use it as a name resolution result. +'package.json' has a 'peerDependencies' field. +Resolving real path for '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components'. +Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/package.json'. +Found peerDependency '@component-type-checker/button' with '0.0.1' version. +Resolving real path for '/home/src/projects/component-type-checker/packages/sdk/node_modules/@component-type-checker/components/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts'. +======== Module name '@component-type-checker/components' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts' with Package ID '@component-type-checker/components@0.0.1+@component-type-checker/button@0.0.1'. ======== +======== Resolving module '@component-type-checker/button' from '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/package.json' does not exist. +Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/package.json'. +Loading module '@component-type-checker/button' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__button' +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__button' +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__button' +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/package.json' exists according to earlier cached lookups. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button.ts' does not exist. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button.tsx' does not exist. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button.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 './src/index.ts' that references '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts'. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts'. +======== Module name '@component-type-checker/button' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts' with Package ID '@component-type-checker/button@0.0.1'. ======== +======== Resolving module '@component-type-checker/button' from '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/package.json' does not exist. +Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/package.json'. +Loading module '@component-type-checker/button' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__button' +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__button' +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'component-type-checker__button' +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/package.json' exists according to earlier cached lookups. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button.ts' does not exist. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button.tsx' does not exist. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button.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 './src/index.ts' that references '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts'. +File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts', result '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts'. +======== Module name '@component-type-checker/button' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts' with Package ID '@component-type-checker/button@0.0.2'. ======== +../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +../../node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts + Imported via "@component-type-checker/button" from file '../../node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts' with packageId '@component-type-checker/button@0.0.1' +../../node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.1/node_modules/@component-type-checker/components/src/index.ts + Imported via "@component-type-checker/components" from file '../sdk/src/index.ts' with packageId '@component-type-checker/components@0.0.1+@component-type-checker/button@0.0.1' +../sdk/src/index.ts + Imported via "@component-type-checker/sdk" from file 'src/app.tsx' with packageId '@component-type-checker/sdk1@0.0.2' +../../node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts + Imported via "@component-type-checker/button" from file '../../node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts' with packageId '@component-type-checker/button@0.0.2' + Imported via "@component-type-checker/button" from file 'src/app.tsx' with packageId '@component-type-checker/button@0.0.2' +../../node_modules/.pnpm/@component-type-checker+components@0.0.1_@component-type-checker+button@0.0.2/node_modules/@component-type-checker/components/src/index.ts + Imported via "@component-type-checker/components" from file 'src/app.tsx' with packageId '@component-type-checker/components@0.0.1+@component-type-checker/button@0.0.2' +src/app.tsx + Matched by include pattern 'src' in 'tsconfig.json' +//// [/home/src/projects/component-type-checker/packages/app/dist/app.js] *new* +import { createButton } from "@component-type-checker/button"; +const button = createButton(); + +//// [/home/src/tslibs/TS/Lib/lib.es5.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + diff --git a/testdata/baselines/reference/tsc/noCheck/dts-errors-with-incremental.js b/testdata/baselines/reference/tsc/noCheck/dts-errors-with-incremental.js new file mode 100644 index 0000000000..31b85a5cb9 --- /dev/null +++ b/testdata/baselines/reference/tsc/noCheck/dts-errors-with-incremental.js @@ -0,0 +1,1382 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": true + } +} + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1810 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: no change + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1307 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [2]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [3]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = class { private p = 10; }; + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1806 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [7]:: no change + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [8]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1753 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1303 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [10]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/c.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/c.ts + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = class { private p = 10; }; + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 2114 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1611 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [14]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [15]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [16]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noCheck/dts-errors.js b/testdata/baselines/reference/tsc/noCheck/dts-errors.js new file mode 100644 index 0000000000..e7df523f48 --- /dev/null +++ b/testdata/baselines/reference/tsc/noCheck/dts-errors.js @@ -0,0 +1,447 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": false + } +} + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + + + + +Edit [0]:: no change + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [2]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [3]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [4]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [5]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = class { private p = 10; }; + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [7]:: no change + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [8]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [10]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + + + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = class { private p = 10; }; + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [14]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [15]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [16]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noCheck/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsc/noCheck/semantic-errors-with-incremental.js new file mode 100644 index 0000000000..79f7062075 --- /dev/null +++ b/testdata/baselines/reference/tsc/noCheck/semantic-errors-with-incremental.js @@ -0,0 +1,1194 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a: number = "hello"; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": true + } +} + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1311 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1307 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [2]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [3]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a: number = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1307 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [7]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [8]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello"; +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1398 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1303 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [10]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/c.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/c.ts + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a: number = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";","signature":"03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2c3aef4914dc04eedbda88b614f5cc47-export const a: number = \"hello\";", + "signature": "03ee330dc35a9c186b6cc67781eafb11-export declare const a: number;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1615 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1611 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [14]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [15]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [16]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noCheck/semantic-errors.js b/testdata/baselines/reference/tsc/noCheck/semantic-errors.js new file mode 100644 index 0000000000..a845267123 --- /dev/null +++ b/testdata/baselines/reference/tsc/noCheck/semantic-errors.js @@ -0,0 +1,337 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a: number = "hello"; +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": false + } +} + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + + + + +Edit [0]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [2]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [3]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [4]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [5]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a: number = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [7]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [8]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello"; +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [10]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + + + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a: number = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a: number; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [14]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [15]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [16]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noCheck/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsc/noCheck/syntax-errors-with-incremental.js new file mode 100644 index 0000000000..3dea3854e6 --- /dev/null +++ b/testdata/baselines/reference/tsc/noCheck/syntax-errors-with-incremental.js @@ -0,0 +1,1242 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = "hello +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": true + } +} + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1318 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: no change + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "size": 1307 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [2]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/a.ts +*not cached* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [3]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: + + +Edit [4]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1314 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [7]:: no change + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [8]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1294 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1303 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [10]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/c.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/c.ts + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1622 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","checkPending":true,"root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[2,[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "checkPending": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + "./a.ts", + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1611 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [14]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";","signature":"330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n","impliedNodeFormat":1}],"options":{"declaration":true},"semanticDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "32c618963fbf4ae5f1475f9be91d77bb-export const c: number = \"hello\";", + "signature": "330cf13f2bbf810d913e97d0cc189ea6-export declare const c: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1589 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/a.ts +Signatures:: + + +Edit [15]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [16]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noCheck/syntax-errors.js b/testdata/baselines/reference/tsc/noCheck/syntax-errors.js new file mode 100644 index 0000000000..196a61e059 --- /dev/null +++ b/testdata/baselines/reference/tsc/noCheck/syntax-errors.js @@ -0,0 +1,392 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +export const a = "hello +//// [/home/src/workspaces/project/b.ts] *new* +export const b = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "declaration": true, + "incremental": false + } +} + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +export declare const a = "hello"; + +//// [/home/src/workspaces/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/workspaces/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + + + + +Edit [0]:: no change + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [1]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [2]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [3]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [4]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [5]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [6]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [7]:: no change + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [8]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [9]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [10]:: No Change run with checking + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* + + + +Edit [11]:: Add file with error +//// [/home/src/workspaces/project/c.ts] *new* +export const c: number = "hello"; + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *new* +export declare const c: number; + +//// [/home/src/workspaces/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +exports.c = "hello"; + + + + +Edit [12]:: Introduce error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello + +tsgo --noCheck +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [13]:: Fix `a` error with noCheck +//// [/home/src/workspaces/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [14]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [15]:: no change + +tsgo --noCheck +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + + + +Edit [16]:: No Change run with checking + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const c: number = "hello"; +   ~ + + +Found 1 error in c.ts:1 + +//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/b.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noEmit/changes-composite.js b/testdata/baselines/reference/tsc/noEmit/changes-composite.js new file mode 100644 index 0000000000..684ab7b066 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/changes-composite.js @@ -0,0 +1,1573 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/class.d.ts] *new* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* +import { classC } from './class'; +export declare class indirectClass { + classC: classC; +} + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* +export declare function writeLog(s: string): void; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* +declare function someFunc(arguments: boolean, ...rest: any[]): void; + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", + "size": 2590 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/class.ts +(stored at emit) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts + + +Edit [0]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: Introduce error but still noEmit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts","emitSignatures":[[2,"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|Dts", + 2 + ], + [ + "./src/directUse.ts", + "Dts", + [ + 4 + ] + ], + [ + "./src/indirectClass.ts", + "Js|Dts", + 3 + ], + [ + "./src/indirectUse.ts", + "Dts", + [ + 5 + ] + ] + ], + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", + "emitSignatures": [ + { + "file": "./src/class.ts", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "original": [ + 2, + "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n" + ] + }, + { + "file": "./src/directUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 4, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + }, + { + "file": "./src/indirectUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 5, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + } + ], + "size": 3190 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: Fix error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", + "size": 2590 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [4]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [6]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [8]:: Introduce error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop1: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"latestChangedDtsFile":"./src/class.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./src/class.d.ts", + "size": 3093 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [9]:: No Change run with emit + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: No Change run with emit + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [13]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]],"latestChangedDtsFile":"./src/class.d.ts","emitSignatures":[[2,"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "latestChangedDtsFile": "./src/class.d.ts", + "emitSignatures": [ + { + "file": "./src/class.ts", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "original": [ + 2, + "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n" + ] + }, + { + "file": "./src/directUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 4, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + }, + { + "file": "./src/indirectUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 5, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + } + ], + "size": 2648 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [14]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/class.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/class.d.ts", + "size": 2562 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [15]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [16]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [17]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/changes-incremental-declaration.js b/testdata/baselines/reference/tsc/noEmit/changes-incremental-declaration.js new file mode 100644 index 0000000000..5b783b64e3 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/changes-incremental-declaration.js @@ -0,0 +1,1525 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true, "declaration": true } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/class.d.ts] *new* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* +import { classC } from './class'; +export declare class indirectClass { + classC: classC; +} + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* +export declare function writeLog(s: string): void; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* +declare function someFunc(arguments: boolean, ...rest: any[]): void; + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/src/class.ts +(stored at emit) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts + + +Edit [0]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: Introduce error but still noEmit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|Dts", + 2 + ], + [ + "./src/directUse.ts", + "Dts", + [ + 4 + ] + ], + [ + "./src/indirectClass.ts", + "Js|Dts", + 3 + ], + [ + "./src/indirectUse.ts", + "Dts", + [ + 5 + ] + ] + ], + "size": 2906 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: Fix error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [4]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [6]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [8]:: Introduce error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop1: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "size": 3053 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [9]:: No Change run with emit + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: No Change run with emit + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [13]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "size": 2391 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [14]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [15]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [16]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [17]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/changes-incremental.js b/testdata/baselines/reference/tsc/noEmit/changes-incremental.js new file mode 100644 index 0000000000..e7d2f13ae7 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/changes-incremental.js @@ -0,0 +1,1356 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true } +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 1737 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: + + +Edit [0]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: Introduce error but still noEmit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"affectedFilesPendingEmit":[2,4,3,5]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js", + 2 + ], + [ + "./src/directUse.ts", + "Js", + 4 + ], + [ + "./src/indirectClass.ts", + "Js", + 3 + ], + [ + "./src/indirectUse.ts", + "Js", + 5 + ] + ], + "size": 2807 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(computed .d.ts) /home/src/workspaces/project/src/directUse.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: Fix error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/directUse.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2051 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [4]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [6]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [8]:: Introduce error and emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "size": 2582 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [9]:: No Change run with emit + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [10]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [11]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [12]:: No Change run with emit + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [13]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js", + 2 + ], + [ + "./src/indirectClass.ts", + "Js", + 3 + ] + ], + "size": 2084 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [14]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2051 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [15]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [16]:: No Change run with noEmit + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [17]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-composite.js b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-composite.js new file mode 100644 index 0000000000..36c0d08c5f --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-composite.js @@ -0,0 +1,1092 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "composite": true } +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,17],[3,17],[5,17],[6,17],[7,17]],"emitSignatures":[2,3,4,5,6,7]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "Js|DtsEmit", + [ + 4, + 17 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "Js|DtsEmit", + [ + 5, + 17 + ] + ], + [ + "./src/noChangeFile.ts", + "Js|DtsEmit", + [ + 6, + 17 + ] + ], + [ + "./src/noChangeFileWithEmitSpecificError.ts", + "Js|DtsEmit", + [ + 7, + 17 + ] + ] + ], + "emitSignatures": [ + { + "file": "./src/class.ts", + "original": 2 + }, + { + "file": "./src/indirectClass.ts", + "original": 3 + }, + { + "file": "./src/directUse.ts", + "original": 4 + }, + { + "file": "./src/indirectUse.ts", + "original": 5 + }, + { + "file": "./src/noChangeFile.ts", + "original": 6 + }, + { + "file": "./src/noChangeFileWithEmitSpecificError.ts", + "original": 7 + } + ], + "size": 1868 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: + + +Edit [0]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.d.ts] *new* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* +import { classC } from './class'; +export declare class indirectClass { + classC: classC; +} + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* +export declare function writeLog(s: string): void; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* +declare function someFunc(arguments: boolean, ...rest: any[]): void; + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", + "size": 2590 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/class.ts +(stored at emit) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts + + +Edit [1]:: Introduce error with emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop1: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]],"latestChangedDtsFile":"./src/class.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "latestChangedDtsFile": "./src/class.d.ts", + "size": 3093 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [2]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]],"latestChangedDtsFile":"./src/class.d.ts","emitSignatures":[[2,"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n"],[4,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"],[5,"abe7d9981d6018efb6b2b794f40a1607-export {};\n"]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "latestChangedDtsFile": "./src/class.d.ts", + "emitSignatures": [ + { + "file": "./src/class.ts", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "original": [ + 2, + "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n" + ] + }, + { + "file": "./src/directUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 4, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + }, + { + "file": "./src/indirectUse.ts", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "original": [ + 5, + "abe7d9981d6018efb6b2b794f40a1607-export {};\n" + ] + } + ], + "size": 2648 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"latestChangedDtsFile":"./src/class.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "latestChangedDtsFile": "./src/class.d.ts", + "size": 2562 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts diff --git a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental-declaration.js b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental-declaration.js new file mode 100644 index 0000000000..06cf8ee6c6 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental-declaration.js @@ -0,0 +1,1042 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true, "declaration": true } +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,17],[3,17],[5,17],[6,17],[7,17]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "Js|DtsEmit", + [ + 4, + 17 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "Js|DtsEmit", + [ + 5, + 17 + ] + ], + [ + "./src/noChangeFile.ts", + "Js|DtsEmit", + [ + 6, + 17 + ] + ], + [ + "./src/noChangeFileWithEmitSpecificError.ts", + "Js|DtsEmit", + [ + 7, + 17 + ] + ] + ], + "size": 1839 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: + + +Edit [0]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.d.ts] *new* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *new* +import { classC } from './class'; +export declare class indirectClass { + classC: classC; +} + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.d.ts] *new* +export declare function writeLog(s: string): void; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.d.ts] *new* +declare function someFunc(arguments: boolean, ...rest: any[]): void; + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/class.ts +(stored at emit) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFile.ts +(stored at emit) /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts + + +Edit [1]:: Introduce error with emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop1: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "size": 3053 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [2]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[[2,17],[4,16],[3,17],[5,16]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./src/directUse.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./src/indirectClass.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./src/indirectUse.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "size": 2391 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.d.ts] *modified* +export declare class classC { + prop: number; +} + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}","signature":"b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n","impliedNodeFormat":1},{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "b46de008dd76697ce12a1dca20c0bf9e-export declare function writeLog(s: string): void;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "86b693f65e0d5bed7e4ac554c2edb8ba-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "options": { + "declaration": true + }, + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2522 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/workspaces/project/src/directUse.ts +(stored at emit) /home/src/workspaces/project/src/indirectUse.ts diff --git a/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental.js b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental.js new file mode 100644 index 0000000000..30ecfe7660 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/changes-with-initial-noEmit-incremental.js @@ -0,0 +1,888 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/src/class.ts] *new* +export class classC { + prop = 1; +} +//// [/home/src/workspaces/project/src/directUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/indirectClass.ts] *new* +import { classC } from './class'; +export class indirectClass { + classC = new classC(); +} +//// [/home/src/workspaces/project/src/indirectUse.ts] *new* +import { indirectClass } from './indirectClass'; +new indirectClass().classC.prop; +//// [/home/src/workspaces/project/src/noChangeFile.ts] *new* +export function writeLog(s: string) { +} +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts] *new* +function someFunc(arguments: boolean, ...rest: any[]) { +} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { "incremental": true } +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,4,3,5,6,7]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js", + 2 + ], + [ + "./src/directUse.ts", + "Js", + 4 + ], + [ + "./src/indirectClass.ts", + "Js", + 3 + ], + [ + "./src/indirectUse.ts", + "Js", + 5 + ], + [ + "./src/noChangeFile.ts", + "Js", + 6 + ], + [ + "./src/noChangeFileWithEmitSpecificError.ts", + "Js", + 7 + ] + ], + "size": 1778 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +*refresh* /home/src/workspaces/project/src/noChangeFile.ts +*refresh* /home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.ts +Signatures:: + + +Edit [0]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/indirectClass.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.indirectClass = void 0; +const class_1 = require("./class"); +class indirectClass { + classC = new class_1.classC(); +} +exports.indirectClass = indirectClass; + +//// [/home/src/workspaces/project/src/indirectUse.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const indirectClass_1 = require("./indirectClass"); +new indirectClass_1.indirectClass().classC.prop; + +//// [/home/src/workspaces/project/src/noChangeFile.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeLog = writeLog; +function writeLog(s) { +} + +//// [/home/src/workspaces/project/src/noChangeFileWithEmitSpecificError.js] *new* +function someFunc(arguments, ...rest) { +} + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 1737 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Introduce error with emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop1 = 1; +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + +src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? + +2 new indirectClass().classC.prop; +   ~~~~ + + src/class.ts:2:5 - 'prop1' is declared here. + 2 prop1 = 1; +    ~~~~~ + + +Found 2 errors in 2 files. + +Errors Files + 1 src/directUse.ts:2 + 1 src/indirectUse.ts:2 + +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop1 = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/directUse.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/src/indirectUse.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}","signature":"e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]],[5,[{"pos":76,"end":80,"code":2551,"category":1,"message":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":2,"pos":26,"end":31,"code":2728,"category":3,"message":"'prop1' is declared here."}]}]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f5da9f4ab128bbaf87adf83ca7ae8e2d-export class classC {\n prop1 = 1;\n}", + "signature": "e36cbd492db9c71062d723d518b6277f-export declare class classC {\n prop1: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "./src/directUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ], + [ + "./src/indirectUse.ts", + [ + { + "pos": 76, + "end": 80, + "code": 2551, + "category": 1, + "message": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./src/class.ts", + "pos": 26, + "end": 31, + "code": 2728, + "category": 3, + "message": "'prop1' is declared here." + } + ] + } + ] + ] + ], + "size": 2770 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(computed .d.ts) /home/src/workspaces/project/src/directUse.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [2]:: Fix error and no emit +//// [/home/src/workspaces/project/src/class.ts] *modified* +export class classC { + prop = 1; +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "affectedFilesPendingEmit": [ + [ + "./src/class.ts", + "Js", + 2 + ], + [ + "./src/indirectClass.ts", + "Js", + 3 + ] + ], + "size": 2084 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/src/class.ts +*refresh* /home/src/workspaces/project/src/indirectClass.ts +*refresh* /home/src/workspaces/project/src/directUse.ts +*refresh* /home/src/workspaces/project/src/indirectUse.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/src/class.ts +(computed .d.ts) /home/src/workspaces/project/src/indirectClass.ts +(used version) /home/src/workspaces/project/src/directUse.ts +(used version) /home/src/workspaces/project/src/indirectUse.ts + + +Edit [3]:: No Change run with emit + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/src/class.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.classC = void 0; +class classC { + prop = 1; +} +exports.classC = classC; + +//// [/home/src/workspaces/project/src/indirectClass.js] *rewrite with same content* +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,7]],"fileNames":["lib.d.ts","./src/class.ts","./src/indirectClass.ts","./src/directUse.ts","./src/indirectUse.ts","./src/noChangeFile.ts","./src/noChangeFileWithEmitSpecificError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}","signature":"8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n","impliedNodeFormat":1},{"version":"2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedNodeFormat":1},"1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}",{"version":"f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "original": [ + 2, + 7 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./src/class.ts", + "./src/indirectClass.ts", + "./src/directUse.ts", + "./src/indirectUse.ts", + "./src/noChangeFile.ts", + "./src/noChangeFileWithEmitSpecificError.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/class.ts", + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "5106d5119e9d454b0e9d7956b0f66ab8-export class classC {\n prop = 1;\n}", + "signature": "8743eb01f3ddad300611aa9bbf6b6c0a-export declare class classC {\n prop: number;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/indirectClass.ts", + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2d32895543847620d7c9848ddd3a7306-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "signature": "4c7e50f9604f4038b2f1bafae04987bb-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./src/directUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/indirectUse.ts", + "version": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "1e7a664a983b65ba5fbd926c9dad4a26-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFile.ts", + "version": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "signature": "12f2d04905c254bde932222194cd2d1b-export function writeLog(s: string) {\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./src/noChangeFileWithEmitSpecificError.ts", + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "signature": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "f54e687ca7ac9fc3c2161967d09e9950-function someFunc(arguments: boolean, ...rest: any[]) {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "./src/indirectClass.ts" + ], + [ + "./src/class.ts" + ] + ], + "referencedMap": { + "./src/directUse.ts": [ + "./src/indirectClass.ts" + ], + "./src/indirectClass.ts": [ + "./src/class.ts" + ], + "./src/indirectUse.ts": [ + "./src/indirectClass.ts" + ] + }, + "size": 2051 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js new file mode 100644 index 0000000000..fbd4468cd3 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-declaration-enable-changes-with-multiple-files.js @@ -0,0 +1,1586 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/c.ts] *new* +export const c = class { private p = 10; }; +//// [/home/src/projects/project/d.ts] *new* +export const d = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + } +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"affectedFilesPendingEmit":[2,3,4,5]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + } + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ], + [ + "./c.ts", + "Js", + 4 + ], + [ + "./d.ts", + "Js", + 5 + ] + ], + "size": 1217 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +*refresh* /home/src/projects/project/c.ts +*refresh* /home/src/projects/project/d.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: With declaration enabled noEmit - Should report errors + +tsgo --noEmit --declaration +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 3 errors in 3 files. + +Errors Files + 1 a.ts:1 + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17],[4,17],[5,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ], + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "./c.ts", + "Js|DtsEmit", + [ + 4, + 17 + ] + ], + [ + "./d.ts", + "Js|DtsEmit", + [ + 5, + 17 + ] + ] + ], + "size": 2084 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [2]:: With declaration and declarationMap noEmit - Should report errors + +tsgo --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 3 errors in 3 files. + +Errors Files + 1 a.ts:1 + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };"],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,49],[4,49],[5,49]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ], + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit|DtsMap", + [ + 2, + 49 + ] + ], + [ + "./b.ts", + "Js|DtsEmit|DtsMap", + [ + 3, + 49 + ] + ], + [ + "./c.ts", + "Js|DtsEmit|DtsMap", + [ + 4, + 49 + ] + ], + [ + "./d.ts", + "Js|DtsEmit|DtsMap", + [ + 5, + 49 + ] + ] + ], + "size": 2106 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: Dts Emit with error + +tsgo --declaration +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 3 errors in 3 files. + +Errors Files + 1 a.ts:1 + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/a.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/home/src/projects/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/c.d.ts] *new* +export declare const c: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/c.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +const c = class { + p = 10; +}; +exports.c = c; + +//// [/home/src/projects/project/d.d.ts] *new* +export declare const d: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/d.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.d = void 0; +const d = class { + p = 10; +}; +exports.d = d; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","signature":"ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]],[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "ee8f9d3f76983159b6f8f0407d3b0dff-export declare const a: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable a.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ], + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "size": 3087 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/projects/project/a.ts +(stored at emit) /home/src/projects/project/b.ts +(stored at emit) /home/src/projects/project/c.ts +(stored at emit) /home/src/projects/project/d.ts + + +Edit [5]:: Fix the error +//// [/home/src/projects/project/a.ts] *modified* +export const a = class { public p = 10; }; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "emitDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 2663 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: With declaration enabled noEmit + +tsgo --noEmit --declaration +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 2 errors in 2 files. + +Errors Files + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,16],[4,16],[5,16]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "DtsEmit", + [ + 3, + 16 + ] + ], + [ + "./c.ts", + "DtsEmit", + [ + 4, + 16 + ] + ], + [ + "./d.ts", + "DtsEmit", + [ + 5, + 16 + ] + ] + ], + "size": 2720 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: With declaration and declarationMap noEmit + +tsgo --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const c = class { private p = 10; }; +   ~ + + c.ts:1:14 - Add a type annotation to the variable c. + 1 export const c = class { private p = 10; }; +    ~ + +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 2 errors in 2 files. + +Errors Files + 1 c.ts:1 + 1 d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };","signature":"e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[4,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable c."}]}]],[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,48],[4,48],[5,48]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6f729672e1964d12037938bd07604115-export const c = class { private p = 10; };", + "signature": "e2ca0ad93099a06094277675c8c60e6f-export declare const c: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable c.", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "emitDiagnosticsPerFile": [ + [ + "./c.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable c." + } + ] + } + ] + ], + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit|DtsMap", + [ + 2, + 49 + ] + ], + [ + "./b.ts", + "DtsEmit|DtsMap", + [ + 3, + 48 + ] + ], + [ + "./c.ts", + "DtsEmit|DtsMap", + [ + 4, + 48 + ] + ], + [ + "./d.ts", + "DtsEmit|DtsMap", + [ + 5, + 48 + ] + ] + ], + "size": 2742 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [8]:: Fix the another +//// [/home/src/projects/project/c.ts] *modified* +export const c = class { public p = 10; }; + +tsgo --noEmit --declaration --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const d = class { private p = 10; }; +   ~ + + d.ts:1:14 - Add a type annotation to the variable d. + 1 export const d = class { private p = 10; }; +    ~ + + +Found 1 error in d.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,5]],"fileNames":["lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1},{"version":"dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };","signature":"17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };","signature":"da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.","impliedNodeFormat":1}],"options":{"declaration":true,"declarationMap":true},"emitDiagnosticsPerFile":[[5,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable d."}]}]]],"affectedFilesPendingEmit":[[2,49],[3,48],[4,49],[5,48]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "original": [ + 2, + 5 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts", + "./c.ts", + "./d.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "257f0ffae056266a216e22aca9e25055-export const a = class { public p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./c.ts", + "version": "dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };", + "signature": "17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "dc7165893e9c62cfeea6f0fad1d8b57c-export const c = class { public p = 10; };", + "signature": "17c24c6640bff8629aa96eed43575ace-export declare const c: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./d.ts", + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "eee493071f513e65e5368e45a4d35584-export const d = class { private p = 10; };", + "signature": "da46c64a7214d458d5aad6924e4d69d3-export declare const d: {\n new (): {\n p: number;\n };\n};\n\n(13,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(13,1): error9027: Add a type annotation to the variable d.", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true, + "declarationMap": true + }, + "emitDiagnosticsPerFile": [ + [ + "./d.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable d." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit|DtsMap", + [ + 2, + 49 + ] + ], + [ + "./b.ts", + "DtsEmit|DtsMap", + [ + 3, + 48 + ] + ], + [ + "./c.ts", + "Js|DtsEmit|DtsMap", + [ + 4, + 49 + ] + ], + [ + "./d.ts", + "DtsEmit|DtsMap", + [ + 5, + 48 + ] + ] + ], + "size": 2318 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/c.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/c.ts diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..0813159493 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental-as-modules.js @@ -0,0 +1,655 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":13,"end":14,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 13, + "end": 14, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ] + ], + "size": 1368 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 export const a = class { private p = 10; }; +   ~ + + a.ts:1:14 - Add a type annotation to the variable a. + 1 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17],[3,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "./b.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ] + ], + "size": 1181 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.d.ts] *new* +export declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.d.ts] *new* +export declare const b = 10; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1250 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: +(stored at emit) /home/src/projects/project/b.ts + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1795 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;","signature":"eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n","impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "eaed5dafb4668e1b7c86b65b584b776a-export declare const b = 10;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1759 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental.js new file mode 100644 index 0000000000..21f7e2d3af --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/dts-errors-with-incremental.js @@ -0,0 +1,564 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1341 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1117 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.d.ts] *new* +declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "size": 1081 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ] + ], + "size": 1614 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":true},"emitDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":6,"end":7,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": true + }, + "emitDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 6, + "end": 7, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "size": 1578 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js new file mode 100644 index 0000000000..ad330475c2 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental-as-modules.js @@ -0,0 +1,482 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = class { private p = 10; }; +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "signature": "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1069 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1393 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1362 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental.js new file mode 100644 index 0000000000..e75cb2871d --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled-with-incremental.js @@ -0,0 +1,416 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1051 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1324 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };","signature":"26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "54435c7adb578d59d7e39dd2f567250e-const a = class { private p = 10; };", + "signature": "26341e8dc85f0d296deed3b6fe76a0dd-declare const a: {\n new (): {\n p: number;\n };\n};\n\n(6,1): error4094: Property 'p' of exported anonymous class type may not be private or protected.\n(6,1): error9027: Add a type annotation to the variable a.", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1293 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled.js b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled.js new file mode 100644 index 0000000000..3fad90e79f --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/dts-errors-without-dts-enabled.js @@ -0,0 +1,116 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + + + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + + + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + diff --git a/testdata/baselines/reference/tsc/noEmit/dts-errors.js b/testdata/baselines/reference/tsc/noEmit/dts-errors.js new file mode 100644 index 0000000000..c7f5c76797 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/dts-errors.js @@ -0,0 +1,186 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = class { private p = 10; }; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": true + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.d.ts] *new* +declare const a = "hello"; + +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + + + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = class { private p = 10; }; + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.d.ts] *modified* +declare const a: { + new (): { + p: number; + }; +}; + +//// [/home/src/projects/project/a.js] *modified* +const a = class { + p = 10; +}; + + + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +1 const a = class { private p = 10; }; +   ~ + + a.ts:1:7 - Add a type annotation to the variable a. + 1 const a = class { private p = 10; }; +    ~ + + +Found 1 error in a.ts:1 + + diff --git a/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..549ea01b34 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental-as-modules.js @@ -0,0 +1,562 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a: number = "hello" +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", + "signature": "a49e791c9509caf97ef39f9e765d5015-export const a: number = \"hello\"", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1204 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 export const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1327 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1296 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental.js new file mode 100644 index 0000000000..d8d37eb0bb --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/semantic-errors-with-incremental.js @@ -0,0 +1,494 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a: number = "hello" +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1184 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1258 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *rewrite with same content* +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"903d9216256112700b1325b61dcb7717-const a: number = \"hello\"","signature":"a87bf21f13058d40be607df702228523-declare const a: number;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type 'string' is not assignable to type 'number'."}]]]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "903d9216256112700b1325b61dcb7717-const a: number = \"hello\"", + "signature": "a87bf21f13058d40be607df702228523-declare const a: number;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type 'string' is not assignable to type 'number'." + } + ] + ] + ], + "size": 1227 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/semantic-errors.js b/testdata/baselines/reference/tsc/noEmit/semantic-errors.js new file mode 100644 index 0000000000..36fae3f3bb --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/semantic-errors.js @@ -0,0 +1,152 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a: number = "hello" +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + + + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a: number = "hello" + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *rewrite with same content* + + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type 'string' is not assignable to type 'number'. + +1 const a: number = "hello" +   ~ + + +Found 1 error in a.ts:1 + + diff --git a/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental-as-modules.js b/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental-as-modules.js new file mode 100644 index 0000000000..7061ddd72e --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental-as-modules.js @@ -0,0 +1,536 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +export const a = "hello +//// [/home/src/projects/project/b.ts] *new* +export const b = 10; +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello","907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "signature": "1fca32c5d452470ed9d0aa38bbe62e60-export const a = \"hello", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1101 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +*not cached* /home/src/projects/project/b.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:24 - error TS1002: Unterminated string literal. + +1 export const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +*not cached* /home/src/projects/project/b.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +export const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"affectedFilesPendingEmit":[2,3]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ], + [ + "./b.ts", + "Js", + 3 + ] + ], + "size": 1172 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +*refresh* /home/src/projects/project/b.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = "hello"; + +//// [/home/src/projects/project/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +exports.b = 10; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "270675b5bc3d695752ac89c2c3af7b2e-export const a = \"hello\";", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "size": 1139 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"changeFileSet":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "8db48ef76072c70d24f212a9f210f622-export declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "changeFileSet": [ + "./a.ts" + ], + "size": 1189 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1},"907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;"],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "signature": "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts" + ], + "size": 1197 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental.js new file mode 100644 index 0000000000..d972602abd --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/syntax-errors-with-incremental.js @@ -0,0 +1,463 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = "hello +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "./a.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1081 +} +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"affectedFilesPendingEmit":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js", + 2 + ] + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"312c97b5294d8f3919933705625e91a3-const a = \"hello\";","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false}} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "312c97b5294d8f3919933705625e91a3-const a = \"hello\";", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "size": 1082 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"changeFileSet":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "changeFileSet": [ + "./a.ts" + ], + "size": 1113 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + +//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello","signature":"64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"declaration":false},"semanticDiagnosticsPerFile":[2]} +//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "./a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d8a5f356bd133a6882ecbde29426bdcb-const a = \"hello", + "signature": "64868e4042512db835b5b3c3226ab323-declare const a = \"hello\";\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "declaration": false + }, + "semanticDiagnosticsPerFile": [ + "./a.ts" + ], + "size": 1126 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: +(computed .d.ts) /home/src/projects/project/a.ts + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/projects/project/a.ts +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmit/syntax-errors.js b/testdata/baselines/reference/tsc/noEmit/syntax-errors.js new file mode 100644 index 0000000000..af0bb3bd8b --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/syntax-errors.js @@ -0,0 +1,154 @@ +currentDirectory::/home/src/projects/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/projects/project/a.ts] *new* +const a = "hello +//// [/home/src/projects/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": false, + "declaration": false + } +} + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + + + +Edit [1]:: Fix error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello"; + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [2]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [3]:: Emit after fixing error + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/projects/project/a.js] *new* +const a = "hello"; + + + + +Edit [4]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + + + +Edit [5]:: Introduce error +//// [/home/src/projects/project/a.ts] *modified* +const a = "hello + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + + + +Edit [6]:: Emit when error + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/projects/project/a.js] *modified* +const a = "hello; + + + + +Edit [7]:: no change + +tsgo --noEmit +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:17 - error TS1002: Unterminated string literal. + +1 const a = "hello +   ~ + + +Found 1 error in a.ts:1 + + diff --git a/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js b/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js new file mode 100644 index 0000000000..30347c3a4c --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js @@ -0,0 +1,105 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/class1.ts] *new* +export class class1 {} +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "incremental": true, + "strict": true + } +} + +tsgo --noEmit +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./class1.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ee12676c27db5c4cb0594b79ca02cbb0-export class class1 {}"],"options":{"strict":true},"affectedFilesPendingEmit":[2]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./class1.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "./class1.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./class1.ts", + "version": "ee12676c27db5c4cb0594b79ca02cbb0-export class class1 {}", + "signature": "ee12676c27db5c4cb0594b79ca02cbb0-export class class1 {}", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "strict": true + }, + "affectedFilesPendingEmit": [ + [ + "./class1.ts", + "Js", + 2 + ] + ], + "size": 976 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/class1.ts +Signatures:: + + +Edit [0]:: no change + +tsgo --noEmit +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration-with-incremental.js new file mode 100644 index 0000000000..9ad5ae42c0 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration-with-incremental.js @@ -0,0 +1,364 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"emitDiagnosticsPerFile":[[3,[{"pos":53,"end":54,"code":4094,"category":1,"message":"Property 'p' of exported anonymous class type may not be private or protected.","relatedInformation":[{"pos":53,"end":54,"code":9027,"category":1,"message":"Add a type annotation to the variable a."}]}]]],"affectedFilesPendingEmit":[[2,17],[3,17],[4,17]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "signature": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "emitDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 53, + "end": 54, + "code": 4094, + "category": 1, + "message": "Property 'p' of exported anonymous class type may not be private or protected.", + "relatedInformation": [ + { + "pos": 53, + "end": 54, + "code": 9027, + "category": 1, + "message": "Add a type annotation to the variable a." + } + ] + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js|DtsEmit", + [ + 2, + 17 + ] + ], + [ + "../src/main.ts", + "Js|DtsEmit", + [ + 3, + 17 + ] + ], + [ + "../src/other.ts", + "Js|DtsEmit", + [ + 4, + 17 + ] + ] + ], + "size": 1628 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in src/main.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1656 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts +(stored at emit) /user/username/projects/noEmitOnError/src/other.ts + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration.js b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration.js new file mode 100644 index 0000000000..be55cad377 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-declaration.js @@ -0,0 +1,140 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. + +2 export const a = class { private p = 10; }; +   ~ + + src/main.ts:2:14 - Add a type annotation to the variable a. + 2 export const a = class { private p = 10; }; +    ~ + + +Found 1 error in src/main.ts:2 + + + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export declare const a: { + new (): { + p: number; + }; +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + + + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-incremental.js new file mode 100644 index 0000000000..2a7fd5a479 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors-with-incremental.js @@ -0,0 +1,265 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "signature": "6cc24027429965f7fa7493c1b9efd532-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1289 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };","signature":"1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7cd05f722edaaaf0c0efca32b04362e8-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };", + "signature": "1aa32af20adf1f5d970642bd31541eeb-export declare const a: {\n new (): {\n p: number;\n };\n};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1437 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/dts-errors.js b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors.js new file mode 100644 index 0000000000..4c1b51f4f2 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/dts-errors.js @@ -0,0 +1,104 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +export const a = class { private p = 10; }; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const a = class { + p = 10; +}; +exports.a = a; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + + + + +Edit [0]:: no change + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* + + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +export const a = class { p = 10; }; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* + + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noEmitOnError/file-deleted-before-fixing-error-with-noEmitOnError.js b/testdata/baselines/reference/tsc/noEmitOnError/file-deleted-before-fixing-error-with-noEmitOnError.js new file mode 100644 index 0000000000..68b5044997 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/file-deleted-before-fixing-error-with-noEmitOnError.js @@ -0,0 +1,220 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/file1.ts] *new* +export const x: 30 = "hello"; +//// [/home/src/workspaces/project/file2.ts] *new* +export class D { } +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "outDir", + "noEmitOnError": true, + }, +} + +tsgo -i +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +file1.ts:1:14 - error TS2322: Type '"hello"' is not assignable to type '30'. + +1 export const x: 30 = "hello"; +   ~ + + +Found 1 error in file1.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","../file1.ts","../file2.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";","f7d221ab360f516a6280e3b725f4cd31-export class D { }"],"options":{"noEmitOnError":true,"outDir":"./"},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type '\"hello\"' is not assignable to type '30'."}]]],"affectedFilesPendingEmit":[2,3]} +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../file1.ts", + "../file2.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../file1.ts", + "../file2.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../file1.ts", + "version": "15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";", + "signature": "15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../file2.ts", + "version": "f7d221ab360f516a6280e3b725f4cd31-export class D { }", + "signature": "f7d221ab360f516a6280e3b725f4cd31-export class D { }", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "noEmitOnError": true, + "outDir": "./" + }, + "semanticDiagnosticsPerFile": [ + [ + "../file1.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type '\"hello\"' is not assignable to type '30'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../file1.ts", + "Js", + 2 + ], + [ + "../file2.ts", + "Js", + 3 + ] + ], + "size": 1223 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/file1.ts +*refresh* /home/src/workspaces/project/file2.ts +Signatures:: + + +Edit [0]:: delete file without error +//// [/home/src/workspaces/project/file2.ts] *deleted* + +tsgo -i +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +file1.ts:1:14 - error TS2322: Type '"hello"' is not assignable to type '30'. + +1 export const x: 30 = "hello"; +   ~ + + +Found 1 error in file1.ts:1 + +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../file1.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";"],"options":{"noEmitOnError":true,"outDir":"./"},"semanticDiagnosticsPerFile":[[2,[{"pos":13,"end":14,"code":2322,"category":1,"message":"Type '\"hello\"' is not assignable to type '30'."}]]],"affectedFilesPendingEmit":[2]} +//// [/home/src/workspaces/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../file1.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../file1.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../file1.ts", + "version": "15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";", + "signature": "15ec141484c003c242081ba307fd0794-export const x: 30 = \"hello\";", + "impliedNodeFormat": "CommonJS" + } + ], + "options": { + "noEmitOnError": true, + "outDir": "./" + }, + "semanticDiagnosticsPerFile": [ + [ + "../file1.ts", + [ + { + "pos": 13, + "end": 14, + "code": 2322, + "category": 1, + "message": "Type '\"hello\"' is not assignable to type '30'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../file1.ts", + "Js", + 2 + ] + ], + "size": 1149 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration-with-incremental.js new file mode 100644 index 0000000000..19e0e565e2 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration-with-incremental.js @@ -0,0 +1,330 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a: string = 10; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "signature": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 46, + "end": 47, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js|Dts", + 2 + ], + [ + "../src/main.ts", + "Js|Dts", + 3 + ], + [ + "../src/other.ts", + "Js|Dts", + 4 + ] + ], + "size": 1445 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1587 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts +(stored at emit) /user/username/projects/noEmitOnError/src/other.ts + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration.js b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration.js new file mode 100644 index 0000000000..0c81e93b84 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-declaration.js @@ -0,0 +1,124 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a: string = 10; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + + + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + + + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-incremental.js new file mode 100644 index 0000000000..6720293a58 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors-with-incremental.js @@ -0,0 +1,307 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a: string = 10; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":46,"end":47,"code":2322,"category":1,"message":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "signature": "21728e732a07c83043db4a93ca54350c-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../src/main.ts", + [ + { + "pos": 46, + "end": 47, + "code": 2322, + "category": 1, + "message": "Type 'number' is not assignable to type 'string'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js", + 2 + ], + [ + "../src/main.ts", + "Js", + 3 + ], + [ + "../src/other.ts", + "Js", + 4 + ] + ], + "size": 1446 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "53d07f7c18bc0a70f0fe62e902ac491d-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1368 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /user/username/projects/noEmitOnError/src/main.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors.js b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors.js new file mode 100644 index 0000000000..7e8a424be9 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/semantic-errors.js @@ -0,0 +1,110 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a: string = 10; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. + +2 const a: string = 10; +   ~ + + +Found 1 error in src/main.ts:2 + + + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a: string = "hello"; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = "hello"; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + + + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration-with-incremental.js new file mode 100644 index 0000000000..deb1013ad3 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration-with-incremental.js @@ -0,0 +1,336 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js|Dts", + 2 + ], + [ + "../src/main.ts", + "Js|Dts", + 3 + ], + [ + "../src/other.ts", + "Js|Dts", + 4 + ] + ], + "size": 1369 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","signature":"54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n","impliedNodeFormat":1},{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "54943827690173f946e7a76cd9b9eb27-export interface A {\n name: string;\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/main.ts", + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": true, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1596 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: +(stored at emit) /user/username/projects/noEmitOnError/shared/types/db.ts +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts +(stored at emit) /user/username/projects/noEmitOnError/src/other.ts + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration.js b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration.js new file mode 100644 index 0000000000..9a6fa3efa3 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-declaration.js @@ -0,0 +1,130 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": true, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + + + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *new* +export interface A { + name: string; +} + +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *new* +export {}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + + + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.d.ts] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-incremental.js b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-incremental.js new file mode 100644 index 0000000000..99ef2044b1 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors-with-incremental.js @@ -0,0 +1,313 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": true, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}","6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;","ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "signature": "6ac30e235b3496214b9c209edec4d109-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "affectedFilesPendingEmit": [ + [ + "../shared/types/db.ts", + "Js", + 2 + ], + [ + "../src/main.ts", + "Js", + 3 + ], + [ + "../src/other.ts", + "Js", + 4 + ] + ], + "size": 1370 +} + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + + +tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /user/username/projects/noEmitOnError/shared/types/db.ts +*not cached* /user/username/projects/noEmitOnError/src/main.ts +*not cached* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,4]],"fileNames":["lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}",{"version":"7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},"ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }"],"fileIdsList":[[2]],"options":{"declaration":false,"noEmitOnError":true,"outDir":"./"},"referencedMap":[[3,1]]} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "original": [ + 2, + 4 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../shared/types/db.ts", + "../src/main.ts", + "../src/other.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../shared/types/db.ts", + "version": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "signature": "4dba75627964632af83642176cf4b611-export interface A {\n name: string;\n}", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../src/main.ts", + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7b22ad4790ccb4d687e7d84c4e640776-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/other.ts", + "version": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "signature": "ac4084c9455da7165ada8cb39f592843-console.log(\"hi\");\nexport { }", + "impliedNodeFormat": "CommonJS" + } + ], + "fileIdsList": [ + [ + "../shared/types/db.ts" + ] + ], + "options": { + "declaration": false, + "noEmitOnError": true, + "outDir": "./" + }, + "referencedMap": { + "../src/main.ts": [ + "../shared/types/db.ts" + ] + }, + "size": 1377 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /user/username/projects/noEmitOnError/shared/types/db.ts +*refresh* /user/username/projects/noEmitOnError/src/main.ts +*refresh* /user/username/projects/noEmitOnError/src/other.ts +Signatures:: +(computed .d.ts) /user/username/projects/noEmitOnError/src/main.ts + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors.js b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors.js new file mode 100644 index 0000000000..179d830561 --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/syntax-errors.js @@ -0,0 +1,116 @@ +currentDirectory::/user/username/projects/noEmitOnError +useCaseSensitiveFileNames::true +Input:: +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new* +export interface A { + name: string; +} +//// [/user/username/projects/noEmitOnError/src/main.ts] *new* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; +//// [/user/username/projects/noEmitOnError/src/other.ts] *new* +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] *new* +{ + "compilerOptions": { + "outDir": "./dev-build", + "declaration": false, + "incremental": false, + "noEmitOnError": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + + + +Edit [0]:: no change + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +src/main.ts:4:1 - error TS1005: ',' expected. + +4 ; +  ~ + + +Found 1 error in src/main.ts:4 + + + + +Edit [1]:: Fix error +//// [/user/username/projects/noEmitOnError/src/main.ts] *modified* +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +}; + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const a = { + lastName: 'sdsd' +}; + +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +console.log("hi"); + + + + +Edit [2]:: no change + +tsgo +ExitStatus:: Success +Output:: +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content* +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content* + diff --git a/testdata/baselines/reference/tsc/noEmitOnError/when-declarationMap-changes.js b/testdata/baselines/reference/tsc/noEmitOnError/when-declarationMap-changes.js new file mode 100644 index 0000000000..28ab717dad --- /dev/null +++ b/testdata/baselines/reference/tsc/noEmitOnError/when-declarationMap-changes.js @@ -0,0 +1,376 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/a.ts] *new* +const x = 10; +//// [/home/src/workspaces/project/b.ts] *new* +const y = 10; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "noEmitOnError": true, + "declaration": true, + "composite": true, + }, +} + +tsgo +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/a.d.ts] *new* +declare const x = 10; + +//// [/home/src/workspaces/project/a.js] *new* +const x = 10; + +//// [/home/src/workspaces/project/b.d.ts] *new* +declare const y = 10; + +//// [/home/src/workspaces/project/b.js] *new* +const y = 10; + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4448aee3ffd6eaf52054c6f2413c128a-const y = 10;","signature":"b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"noEmitOnError":true},"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", + "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", + "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "noEmitOnError": true + }, + "latestChangedDtsFile": "./b.d.ts", + "size": 1332 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +*refresh* /home/src/workspaces/project/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/a.ts +(stored at emit) /home/src/workspaces/project/b.ts + + +Edit [0]:: error and enable declarationMap +//// [/home/src/workspaces/project/a.ts] *modified* +const x: 20 = 10; + +tsgo --declarationMap +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +a.ts:1:7 - error TS2322: Type '10' is not assignable to type '20'. + +1 const x: 20 = 10; +   ~ + + +Found 1 error in a.ts:1 + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6792320cbdee0286d2b3e83ff1d9fcc1-const x: 20 = 10;","signature":"c4dd771ef0ee0838482d28bc7dea6269-declare const x: 20;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4448aee3ffd6eaf52054c6f2413c128a-const y = 10;","signature":"b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true},"semanticDiagnosticsPerFile":[[2,[{"pos":6,"end":7,"code":2322,"category":1,"message":"Type '10' is not assignable to type '20'."}]]],"affectedFilesPendingEmit":[2,[3,48]],"latestChangedDtsFile":"./b.d.ts","emitSignatures":[[2,["4be7af7f970696121f4f582a5d074177-declare const x = 10;\n"]],[3,[]]]} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "6792320cbdee0286d2b3e83ff1d9fcc1-const x: 20 = 10;", + "signature": "c4dd771ef0ee0838482d28bc7dea6269-declare const x: 20;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "6792320cbdee0286d2b3e83ff1d9fcc1-const x: 20 = 10;", + "signature": "c4dd771ef0ee0838482d28bc7dea6269-declare const x: 20;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", + "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", + "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "noEmitOnError": true + }, + "semanticDiagnosticsPerFile": [ + [ + "./a.ts", + [ + { + "pos": 6, + "end": 7, + "code": 2322, + "category": 1, + "message": "Type '10' is not assignable to type '20'." + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./a.ts", + "Js|Dts|DtsMap", + 2 + ], + [ + "./b.ts", + "DtsEmit|DtsMap", + [ + 3, + 48 + ] + ] + ], + "latestChangedDtsFile": "./b.d.ts", + "emitSignatures": [ + { + "file": "./a.ts", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "differsInOptions": true, + "original": [ + 2, + [ + "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n" + ] + ] + }, + { + "file": "./b.ts", + "differsOnlyInDtsMap": true, + "original": [ + 3, + [] + ] + } + ], + "size": 1620 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts + + +Edit [1]:: fix error declarationMap +//// [/home/src/workspaces/project/a.ts] *modified* +const x = 10; + +tsgo --declarationMap +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/a.d.ts] *modified* +declare const x = 10; +//# sourceMappingURL=a.d.ts.map +//// [/home/src/workspaces/project/a.d.ts.map] *new* +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/b.d.ts] *modified* +declare const y = 10; +//# sourceMappingURL=b.d.ts.map +//// [/home/src/workspaces/project/b.d.ts.map] *new* +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["b.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,CAAC,KAAK,CAAC"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4448aee3ffd6eaf52054c6f2413c128a-const y = 10;","signature":"b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true},"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "./a.ts", + "./b.ts" + ], + "original": [ + 2, + 3 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./a.ts", + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "./b.ts", + "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", + "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "4448aee3ffd6eaf52054c6f2413c128a-const y = 10;", + "signature": "b0061f8cf6b7f4ef02673fae62fc90dd-declare const y = 10;\n", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "noEmitOnError": true + }, + "latestChangedDtsFile": "./b.d.ts", + "size": 1354 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/a.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js b/testdata/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js new file mode 100644 index 0000000000..6a508b1a77 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js @@ -0,0 +1,89 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/app/src/index.ts] *new* +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 +//// [/home/src/workspaces/project/app/src/local.ts] *new* +export const local = 0; +//// [/home/src/workspaces/project/app/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "esnext", + "moduleResolution": "bundler", + "rootDir": "src", + "outDir": "dist", + }, + "include": ["src"], + "references": [ + { "path": "../lib" }, + ], +} +//// [/home/src/workspaces/project/lib/dist/a.d.ts] *new* +export declare const a = 0; +//// [/home/src/workspaces/project/lib/src/a.ts] *new* +export const a = 0; +//// [/home/src/workspaces/project/lib/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "rootDir": "src", + "outDir": "dist", + "module": "esnext", + "moduleResolution": "bundler", + }, + "include": ["src"], +} +//// [/home/src/workspaces/project/node_modules/ambiguous-package/index.d.ts] *new* +export declare const ambiguous: number; +//// [/home/src/workspaces/project/node_modules/ambiguous-package/package.json] *new* +{ + "name": "ambiguous-package" +} +//// [/home/src/workspaces/project/node_modules/esm-package/index.d.ts] *new* +export declare const esm: number; +//// [/home/src/workspaces/project/node_modules/esm-package/package.json] *new* +{ + "name": "esm-package", + "type": "module" +} + +tsgo --p app --pretty false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +app/src/index.ts(1,8): error TS2613: Module '"/home/src/workspaces/project/app/src/local"' has no default export. Did you mean to use 'import { local } from "/home/src/workspaces/project/app/src/local"' instead? +app/src/index.ts(2,8): error TS2613: Module '"/home/src/workspaces/project/node_modules/esm-package/index"' has no default export. Did you mean to use 'import { esm } from "/home/src/workspaces/project/node_modules/esm-package/index"' instead? +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/app/dist/index.js] *new* +export {}; + +//// [/home/src/workspaces/project/app/dist/local.js] *new* +export const local = 0; + + diff --git a/testdata/baselines/reference/tsc/projectReferences/default-setup-was-created-correctly.js b/testdata/baselines/reference/tsc/projectReferences/default-setup-was-created-correctly.js new file mode 100644 index 0000000000..bd3ffd157f --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/default-setup-was-created-correctly.js @@ -0,0 +1,114 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/primary/a.ts] *new* +export { }; +//// [/home/src/workspaces/project/primary/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + } +} +//// [/home/src/workspaces/project/secondary/b.ts] *new* +import * as mod_1 from "../primary/a"; +//// [/home/src/workspaces/project/secondary/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "references": [{ + "path": "../primary" + }] +} + +tsgo --p primary/tsconfig.json +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/primary/bin/a.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/primary/bin/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3145b36c4687eb0550eabb198d0c0d22-export { };","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../a.ts", + "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./a.d.ts", + "size": 1075 +} + +primary/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/primary/a.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/primary/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js b/testdata/baselines/reference/tsc/projectReferences/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js new file mode 100644 index 0000000000..39592769fa --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js @@ -0,0 +1,45 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/primary/a.ts] *new* +export { }; +//// [/home/src/workspaces/project/primary/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": false, + "outDir": "bin", + } +} +//// [/home/src/workspaces/project/reference/b.ts] *new* +import * as mod_1 from "../primary/a"; +//// [/home/src/workspaces/project/reference/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "files": [ ], + "references": [{ + "path": "../primary" + }] +} + +tsgo --p reference/tsconfig.json +ExitStatus:: Success +Output:: +//// [/home/src/workspaces/project/reference/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","fileInfos":[],"options":{"composite":true,"outDir":"./"}} +//// [/home/src/workspaces/project/reference/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "fileInfos": [], + "options": { + "composite": true, + "outDir": "./" + }, + "size": 85 +} + +reference/tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tsc/projectReferences/doesnt-infer-the-rootDir-from-source-paths.js b/testdata/baselines/reference/tsc/projectReferences/doesnt-infer-the-rootDir-from-source-paths.js new file mode 100644 index 0000000000..2f3df08970 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/doesnt-infer-the-rootDir-from-source-paths.js @@ -0,0 +1,105 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/alpha/src/a.ts] *new* +export const m: number = 3; +//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "references": [] +} + +tsgo --p alpha/tsconfig.json +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/alpha/bin/src/a.d.ts] *new* +export declare const m: number; + +//// [/home/src/workspaces/project/alpha/bin/src/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = void 0; +exports.m = 3; + +//// [/home/src/workspaces/project/alpha/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../src/a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b6cc65e84778a8f25c0bc94021b2656-export const m: number = 3;","signature":"b9eb93bd7f963b3a9524dc6c507eb73b-export declare const m: number;\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./src/a.d.ts"} +//// [/home/src/workspaces/project/alpha/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../src/a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../src/a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/a.ts", + "version": "2b6cc65e84778a8f25c0bc94021b2656-export const m: number = 3;", + "signature": "b9eb93bd7f963b3a9524dc6c507eb73b-export declare const m: number;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "2b6cc65e84778a8f25c0bc94021b2656-export const m: number = 3;", + "signature": "b9eb93bd7f963b3a9524dc6c507eb73b-export declare const m: number;\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "latestChangedDtsFile": "./src/a.d.ts", + "size": 1120 +} + +alpha/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/alpha/src/a.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/alpha/src/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-a-file-is-outside-the-rootdir.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-a-file-is-outside-the-rootdir.js new file mode 100644 index 0000000000..f2762c5778 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/errors-when-a-file-is-outside-the-rootdir.js @@ -0,0 +1,145 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/alpha/src/a.ts] *new* +import * as b from '../../beta/b' +//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "references": [] +} +//// [/home/src/workspaces/project/beta/b.ts] *new* +export { } + +tsgo --p alpha/tsconfig.json +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +alpha/src/a.ts:1:20 - error TS6307: File '/home/src/workspaces/project/beta/b.ts' is not listed within the file list of project '/home/src/workspaces/project/alpha/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +1 import * as b from '../../beta/b' +   ~~~~~~~~~~~~~~ + + +Found 1 error in alpha/src/a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/alpha/bin/src/a.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/alpha/bin/src/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/alpha/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[3],"fileNames":["lib.d.ts","../../beta/b.ts","../src/a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"c7aa180f19a42166d3166e266d7e59ec-export { }","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"48cb0b944bf6ab58a2c0fa2f1d92b81b-import * as b from '../../beta/b'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./src/a.d.ts"} +//// [/home/src/workspaces/project/alpha/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../src/a.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../../beta/b.ts", + "../src/a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../beta/b.ts", + "version": "c7aa180f19a42166d3166e266d7e59ec-export { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "c7aa180f19a42166d3166e266d7e59ec-export { }", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../src/a.ts", + "version": "48cb0b944bf6ab58a2c0fa2f1d92b81b-import * as b from '../../beta/b'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "48cb0b944bf6ab58a2c0fa2f1d92b81b-import * as b from '../../beta/b'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../beta/b.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../src/a.ts": [ + "../../beta/b.ts" + ] + }, + "latestChangedDtsFile": "./src/a.d.ts", + "size": 1321 +} +//// [/home/src/workspaces/project/beta/b.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/beta/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + +alpha/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/beta/b.ts +*refresh* /home/src/workspaces/project/alpha/src/a.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/beta/b.ts +(stored at emit) /home/src/workspaces/project/alpha/src/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-declaration-=-false.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-declaration-=-false.js new file mode 100644 index 0000000000..e69a8f2e94 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/errors-when-declaration-=-false.js @@ -0,0 +1,117 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/primary/a.ts] *new* +export { }; +//// [/home/src/workspaces/project/primary/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + "declaration": false + } +} + +tsgo --p primary/tsconfig.json +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +primary/tsconfig.json:5:9 - error TS6304: Composite projects may not disable declaration emit. + +5 "declaration": false +   ~~~~~~~~~~~~~ + + +Found 1 error in primary/tsconfig.json:5 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/primary/bin/a.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/primary/bin/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","../a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3145b36c4687eb0550eabb198d0c0d22-export { };","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"declaration":false,"outDir":"./"},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../a.ts", + "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "declaration": false, + "outDir": "./" + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../a.ts" + ], + "latestChangedDtsFile": "./a.d.ts", + "size": 1144 +} + +primary/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/primary/a.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/primary/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-file-list-is-not-exhaustive.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-file-list-is-not-exhaustive.js new file mode 100644 index 0000000000..285d5fe478 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-file-list-is-not-exhaustive.js @@ -0,0 +1,145 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/primary/a.ts] *new* +import * as b from './b' +//// [/home/src/workspaces/project/primary/b.ts] *new* +export {} +//// [/home/src/workspaces/project/primary/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "files": [ "a.ts" ] +} + +tsgo --p primary/tsconfig.json +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +primary/a.ts:1:20 - error TS6307: File '/home/src/workspaces/project/primary/b.ts' is not listed within the file list of project '/home/src/workspaces/project/primary/tsconfig.json'. Projects must list all files or use an 'include' pattern. + +1 import * as b from './b' +   ~~~~~ + + +Found 1 error in primary/a.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/primary/bin/a.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/primary/bin/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/primary/bin/b.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/primary/bin/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[3],"fileNames":["lib.d.ts","../b.ts","../a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"90c7c4de561fe02d475f60b509bcbb33-export {}","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1},{"version":"a18553e6686c657dd18ba74b9d5c69ef-import * as b from './b'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../a.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../b.ts", + "../a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../b.ts", + "version": "90c7c4de561fe02d475f60b509bcbb33-export {}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "90c7c4de561fe02d475f60b509bcbb33-export {}", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../a.ts", + "version": "a18553e6686c657dd18ba74b9d5c69ef-import * as b from './b'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a18553e6686c657dd18ba74b9d5c69ef-import * as b from './b'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../b.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../a.ts": [ + "../b.ts" + ] + }, + "latestChangedDtsFile": "./a.d.ts", + "size": 1295 +} + +primary/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/primary/b.ts +*refresh* /home/src/workspaces/project/primary/a.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/primary/b.ts +(stored at emit) /home/src/workspaces/project/primary/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-exist.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-exist.js new file mode 100644 index 0000000000..5cb1be4b61 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-exist.js @@ -0,0 +1,122 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/primary/a.ts] *new* +export { }; +//// [/home/src/workspaces/project/primary/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "references": [{ + "path": "../foo" + }] +} + +tsgo --p primary/tsconfig.json +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +primary/tsconfig.json:6:20 - error TS6053: File '/home/src/workspaces/project/foo' not found. + +6 "references": [{ +   ~ +7 "path": "../foo" +  ~~~~~~~~~~~~~~~~~~~~~~~~ +8 }] +  ~~~~~ + + +Found 1 error in primary/tsconfig.json:6 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/primary/bin/a.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/primary/bin/a.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","../a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3145b36c4687eb0550eabb198d0c0d22-export { };","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"} +//// [/home/src/workspaces/project/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../a.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../a.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../a.ts", + "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../a.ts" + ], + "latestChangedDtsFile": "./a.d.ts", + "size": 1124 +} + +primary/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/primary/a.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/primary/a.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-have-composite.js b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-have-composite.js new file mode 100644 index 0000000000..afa623062e --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/errors-when-the-referenced-project-doesnt-have-composite.js @@ -0,0 +1,126 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/primary/a.ts] *new* +export { }; +//// [/home/src/workspaces/project/primary/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": false, + "outDir": "bin", + } +} +//// [/home/src/workspaces/project/reference/b.ts] *new* +import * as mod_1 from "../primary/a"; +//// [/home/src/workspaces/project/reference/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "files": [ "b.ts" ], + "references": [ { "path": "../primary" } ] +} + +tsgo --p reference/tsconfig.json +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +reference/tsconfig.json:7:21 - error TS6306: Referenced project '/home/src/workspaces/project/primary' must have setting "composite": true. + +7 "references": [ { "path": "../primary" } ] +   ~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in reference/tsconfig.json:7 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/reference/bin/b.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/reference/bin/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/reference/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"root":[2],"fileNames":["lib.d.ts","../b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d666db15c62586dc1d15295600f7d94a-import * as mod_1 from \"../primary/a\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/project/reference/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "root": [ + { + "files": [ + "../b.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../b.ts", + "version": "d666db15c62586dc1d15295600f7d94a-import * as mod_1 from \"../primary/a\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d666db15c62586dc1d15295600f7d94a-import * as mod_1 from \"../primary/a\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "semanticDiagnosticsPerFile": [ + "lib.d.ts", + "../b.ts" + ], + "latestChangedDtsFile": "./b.d.ts", + "size": 1153 +} + +reference/tsconfig.json:: +SemanticDiagnostics:: +*not cached* /home/src/tslibs/TS/Lib/lib.d.ts +*not cached* /home/src/workspaces/project/reference/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/reference/b.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js b/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js new file mode 100644 index 0000000000..1bb030b983 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js @@ -0,0 +1,78 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/no-preserve/index.d.ts] *new* +export declare const enum F { A = 1 } +//// [/home/src/workspaces/solution/no-preserve/index.ts] *new* +export const enum E { A = 1 } +//// [/home/src/workspaces/solution/no-preserve/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "preserveConstEnums": false, + }, +} +//// [/home/src/workspaces/solution/preserve/index.d.ts] *new* +export declare const enum E { A = 1 } +//// [/home/src/workspaces/solution/preserve/index.ts] *new* +export const enum E { A = 1 } +//// [/home/src/workspaces/solution/preserve/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "preserveConstEnums": true, + }, +} +//// [/home/src/workspaces/solution/project/index.ts] *new* +import { E } from "../preserve"; +import { F } from "../no-preserve"; +E.A; +F.A; +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "preserve", + "verbatimModuleSyntax": true, + }, + "references": [ + { "path": "../preserve" }, + { "path": "../no-preserve" }, + ], +} + +tsgo --p project --pretty false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +project/index.ts(2,10): error TS2748: Cannot access ambient const enums when 'verbatimModuleSyntax' is enabled. +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/index.js] *new* +import { E } from "../preserve"; +import { F } from "../no-preserve"; +E.A; +F.A; + + diff --git a/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js b/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js new file mode 100644 index 0000000000..8175413de0 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js @@ -0,0 +1,137 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/alpha/a.ts] *new* +export const m: number = 3; +//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + } +} +//// [/home/src/workspaces/project/beta/b.ts] *new* +import { m } from '@alpha/a' +//// [/home/src/workspaces/project/beta/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + "paths": { + "@alpha/*": ["../alpha/*"], + }, + }, + "references": [ { "path": "../alpha" } ] +} + +tsgo --p beta/tsconfig.json +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +beta/b.ts:1:19 - error TS6305: Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'. + +1 import { m } from '@alpha/a' +   ~~~~~~~~~~ + + +Found 1 error in beta/b.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/beta/bin/b.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/beta/bin/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"311c3bac923f08ac35ab2246c3464fb7-import { m } from '@alpha/a'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"semanticDiagnosticsPerFile":[[2,[{"pos":18,"end":28,"code":6305,"category":1,"message":"Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'."}]]],"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../b.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../b.ts", + "version": "311c3bac923f08ac35ab2246c3464fb7-import { m } from '@alpha/a'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "311c3bac923f08ac35ab2246c3464fb7-import { m } from '@alpha/a'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "semanticDiagnosticsPerFile": [ + [ + "../b.ts", + [ + { + "pos": 18, + "end": 28, + "code": 6305, + "category": 1, + "message": "Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'." + } + ] + ] + ], + "latestChangedDtsFile": "./b.d.ts", + "size": 1325 +} + +beta/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/beta/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/beta/b.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing.js b/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing.js new file mode 100644 index 0000000000..be88f86fa1 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/issues-a-nice-error-when-the-input-file-is-missing.js @@ -0,0 +1,135 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/alpha/a.ts] *new* +export const m: number = 3; +//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "references": [] +} +//// [/home/src/workspaces/project/beta/b.ts] *new* +import { m } from '../alpha/a' +//// [/home/src/workspaces/project/beta/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "references": [ { "path": "../alpha" } ] +} + +tsgo --p beta/tsconfig.json +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +beta/b.ts:1:19 - error TS6305: Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'. + +1 import { m } from '../alpha/a' +   ~~~~~~~~~~~~ + + +Found 1 error in beta/b.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/beta/bin/b.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/beta/bin/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","../b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"options":{"composite":true,"outDir":"./"},"semanticDiagnosticsPerFile":[[2,[{"pos":18,"end":30,"code":6305,"category":1,"message":"Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'."}]]],"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../b.ts" + ], + "original": 2 + } + ], + "fileNames": [ + "lib.d.ts", + "../b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../b.ts", + "version": "fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "options": { + "composite": true, + "outDir": "./" + }, + "semanticDiagnosticsPerFile": [ + [ + "../b.ts", + [ + { + "pos": 18, + "end": 30, + "code": 6305, + "category": 1, + "message": "Output file '/home/src/workspaces/project/alpha/bin/a.d.ts' has not been built from source file '/home/src/workspaces/project/alpha/a.ts'." + } + ] + ] + ], + "latestChangedDtsFile": "./b.d.ts", + "size": 1327 +} + +beta/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/beta/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/beta/b.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/redirects-to-the-output-dts-file.js b/testdata/baselines/reference/tsc/projectReferences/redirects-to-the-output-dts-file.js new file mode 100644 index 0000000000..fad1de3193 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/redirects-to-the-output-dts-file.js @@ -0,0 +1,161 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/alpha/a.ts] *new* +export const m: number = 3; +//// [/home/src/workspaces/project/alpha/bin/a.d.ts] *new* +export { }; +//// [/home/src/workspaces/project/alpha/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + } +} +//// [/home/src/workspaces/project/beta/b.ts] *new* +import { m } from '../alpha/a' +//// [/home/src/workspaces/project/beta/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "outDir": "bin", + }, + "references": [ { "path": "../alpha" } ] +} + +tsgo --p beta/tsconfig.json --explainFiles +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +beta/b.ts:1:10 - error TS2305: Module '"../alpha/bin/a"' has no exported member 'm'. + +1 import { m } from '../alpha/a' +   ~ + +../../tslibs/TS/Lib/lib.d.ts + Default library for target 'ES5' +alpha/bin/a.d.ts + Imported via '../alpha/a' from file 'beta/b.ts' + File is output of project reference source 'alpha/a.ts' +beta/b.ts + Matched by default include pattern '**/*' + +Found 1 error in beta/b.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/beta/bin/b.d.ts] *new* +export {}; + +//// [/home/src/workspaces/project/beta/bin/b.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.d.ts","../../alpha/bin/a.d.ts","../b.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"3145b36c4687eb0550eabb198d0c0d22-export { };",{"version":"fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"outDir":"./"},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[[3,[{"pos":9,"end":10,"code":2305,"category":1,"message":"Module '\"../alpha/bin/a\"' has no exported member 'm'."}]]],"latestChangedDtsFile":"./b.d.ts"} +//// [/home/src/workspaces/project/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../b.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.d.ts", + "../../alpha/bin/a.d.ts", + "../b.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../../alpha/bin/a.d.ts", + "version": "3145b36c4687eb0550eabb198d0c0d22-export { };", + "signature": "3145b36c4687eb0550eabb198d0c0d22-export { };", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../b.ts", + "version": "fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "fcbf49879e154aae077c688a18cd60c0-import { m } from '../alpha/a'", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../../alpha/bin/a.d.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../b.ts": [ + "../../alpha/bin/a.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../b.ts", + [ + { + "pos": 9, + "end": 10, + "code": 2305, + "category": 1, + "message": "Module '\"../alpha/bin/a\"' has no exported member 'm'." + } + ] + ] + ], + "latestChangedDtsFile": "./b.d.ts", + "size": 1359 +} + +beta/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/alpha/bin/a.d.ts +*refresh* /home/src/workspaces/project/beta/b.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/beta/b.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/referencing-ambient-const-enum-from-referenced-project-with-preserveConstEnums.js b/testdata/baselines/reference/tsc/projectReferences/referencing-ambient-const-enum-from-referenced-project-with-preserveConstEnums.js new file mode 100644 index 0000000000..378f04e0d4 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/referencing-ambient-const-enum-from-referenced-project-with-preserveConstEnums.js @@ -0,0 +1,60 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/index.ts] *new* +import { E } from "../utils"; E.A; +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "compilerOptions": { + "isolatedModules": true, + }, + "references": [ + { "path": "../utils" }, + ], +} +//// [/home/src/workspaces/solution/utils/index.d.ts] *new* +export declare const enum E { A = 1 } +//// [/home/src/workspaces/solution/utils/index.ts] *new* +export const enum E { A = 1 } +//// [/home/src/workspaces/solution/utils/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "preserveConstEnums": true, + }, +} + +tsgo --p project +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("../utils"); +utils_1.E.A; + + diff --git a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences1.js b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences1.js new file mode 100644 index 0000000000..b0b402f89e --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences1.js @@ -0,0 +1,78 @@ +currentDirectory::/home/src/workspaces +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/packages/common/dist/index.d.ts] *new* +export {}; +//// [/home/src/workspaces/packages/common/package.json] *new* +{ + "name": "common", + "version": "1.0.0", + "type": "module", + "exports": { + ".": { + "source": "./src/index.ts", + "default": "./dist/index.js" + } + } +} +//// [/home/src/workspaces/packages/common/src/index.ts] *new* +export {}; +//// [/home/src/workspaces/packages/common/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "rootDir": "src", + "outDir": "dist", + "module": "nodenext" + } +} +//// [/home/src/workspaces/packages/main/package.json] *new* +{ + "type": "module" +} +//// [/home/src/workspaces/packages/main/src/index.ts] *new* +import {} from "../../common/src/index.ts"; +//// [/home/src/workspaces/packages/main/tsconfig.json] *new* +{ + "compilerOptions": { + "module": "nodenext", + "rewriteRelativeImportExtensions": true, + "rootDir": "src", + "outDir": "dist" + }, + "references": [ + { "path": "../common" } + ] +} + +tsgo -p packages/main --pretty false +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +packages/main/src/index.ts(1,16): error TS2878: This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files. +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/packages/main/dist/index.js] *new* +export {}; + + diff --git a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences2.js b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences2.js new file mode 100644 index 0000000000..8b6cb9c9d9 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences2.js @@ -0,0 +1,143 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/dist/compiler/parser.d.ts] *new* +export {}; +//// [/home/src/workspaces/solution/src/compiler/parser.ts] *new* +export {}; +//// [/home/src/workspaces/solution/src/compiler/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": {} +} +//// [/home/src/workspaces/solution/src/services/services.ts] *new* +import {} from "../compiler/parser.ts"; +//// [/home/src/workspaces/solution/src/services/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": {}, + "references": [ + { "path": "../compiler" } + ] +} +//// [/home/src/workspaces/solution/src/tsconfig-base.json] *new* +{ + "compilerOptions": { + "module": "nodenext", + "composite": true, + "rootDir": ".", + "outDir": "../dist", + "rewriteRelativeImportExtensions": true + } +} + +tsgo --p src/services --pretty false +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/dist/services/services.d.ts] *new* +export {}; + +//// [/home/src/workspaces/solution/dist/services/services.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/solution/dist/services/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","../compiler/parser.d.ts","../../src/services/services.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"e7d000b03d217d92080c065ffa5ccd5e-export {};",{"version":"a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"module":199,"outDir":"..","rewriteRelativeImportExtensions":true,"rootDir":"../../src"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./services.d.ts"} +//// [/home/src/workspaces/solution/dist/services/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../src/services/services.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "../compiler/parser.d.ts", + "../../src/services/services.ts" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../compiler/parser.d.ts", + "version": "e7d000b03d217d92080c065ffa5ccd5e-export {};", + "signature": "e7d000b03d217d92080c065ffa5ccd5e-export {};", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/services/services.ts", + "version": "a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../compiler/parser.d.ts" + ] + ], + "options": { + "composite": true, + "module": 199, + "outDir": "..", + "rewriteRelativeImportExtensions": true, + "rootDir": "../../src" + }, + "referencedMap": { + "../../src/services/services.ts": [ + "../compiler/parser.d.ts" + ] + }, + "latestChangedDtsFile": "./services.d.ts", + "size": 1337 +} + +src/services/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/solution/dist/compiler/parser.d.ts +*refresh* /home/src/workspaces/solution/src/services/services.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/src/services/services.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences3.js b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences3.js new file mode 100644 index 0000000000..c102021778 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/rewriteRelativeImportExtensionsProjectReferences3.js @@ -0,0 +1,147 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/dist/compiler/parser.d.ts] *new* +export {}; +//// [/home/src/workspaces/solution/src/compiler/parser.ts] *new* +export {}; +//// [/home/src/workspaces/solution/src/compiler/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "../../dist/compiler" + } +} +//// [/home/src/workspaces/solution/src/services/services.ts] *new* +import {} from "../compiler/parser.ts"; +//// [/home/src/workspaces/solution/src/services/tsconfig.json] *new* +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "../../dist/services" + }, + "references": [ + { "path": "../compiler" } + ] +} +//// [/home/src/workspaces/solution/src/tsconfig-base.json] *new* +{ + "compilerOptions": { + "module": "nodenext", + "composite": true, + "rewriteRelativeImportExtensions": true + } +} + +tsgo --p src/services --pretty false +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/dist/services/services.d.ts] *new* +export {}; + +//// [/home/src/workspaces/solution/dist/services/services.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +//// [/home/src/workspaces/solution/dist/services/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[3],"fileNames":["lib.esnext.full.d.ts","../compiler/parser.d.ts","../../src/services/services.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"e7d000b03d217d92080c065ffa5ccd5e-export {};",{"version":"a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[2]],"options":{"composite":true,"module":199,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../../src/services"},"referencedMap":[[3,1]],"latestChangedDtsFile":"./services.d.ts"} +//// [/home/src/workspaces/solution/dist/services/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../../src/services/services.ts" + ], + "original": 3 + } + ], + "fileNames": [ + "lib.esnext.full.d.ts", + "../compiler/parser.d.ts", + "../../src/services/services.ts" + ], + "fileInfos": [ + { + "fileName": "lib.esnext.full.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../compiler/parser.d.ts", + "version": "e7d000b03d217d92080c065ffa5ccd5e-export {};", + "signature": "e7d000b03d217d92080c065ffa5ccd5e-export {};", + "impliedNodeFormat": "CommonJS" + }, + { + "fileName": "../../src/services/services.ts", + "version": "a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "a59ae1ffa1209f5747a43f6a4028f563-import {} from \"../compiler/parser.ts\";", + "signature": "abe7d9981d6018efb6b2b794f40a1607-export {};\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../compiler/parser.d.ts" + ] + ], + "options": { + "composite": true, + "module": 199, + "outDir": "./", + "rewriteRelativeImportExtensions": true, + "rootDir": "../../src/services" + }, + "referencedMap": { + "../../src/services/services.ts": [ + "../compiler/parser.d.ts" + ] + }, + "latestChangedDtsFile": "./services.d.ts", + "size": 1346 +} + +src/services/tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts +*refresh* /home/src/workspaces/solution/dist/compiler/parser.d.ts +*refresh* /home/src/workspaces/solution/src/services/services.ts +Signatures:: +(stored at emit) /home/src/workspaces/solution/src/services/services.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js b/testdata/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js new file mode 100644 index 0000000000..b3d59be07e --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js @@ -0,0 +1,53 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "references": [ + { "path": "../utils" }, + ], +} + +tsgo --p project +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +project/tsconfig.json:3:9 - error TS6053: File '/home/src/workspaces/solution/utils' not found. + +3 { "path": "../utils" }, +   ~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project/tsconfig.json:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 10; + + diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-reference-is-not-built.js b/testdata/baselines/reference/tsc/projectReferences/when-project-reference-is-not-built.js new file mode 100644 index 0000000000..b7ebae5101 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/when-project-reference-is-not-built.js @@ -0,0 +1,59 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/index.ts] *new* +import { x } from "../utils"; +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "references": [ + { "path": "../utils" }, + ], +} +//// [/home/src/workspaces/solution/utils/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/solution/utils/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} + +tsgo --p project +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +project/index.ts:1:19 - error TS6305: Output file '/home/src/workspaces/solution/utils/index.d.ts' has not been built from source file '/home/src/workspaces/solution/utils/index.ts'. + +1 import { x } from "../utils"; +   ~~~~~~~~~~ + + +Found 1 error in project/index.ts:1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js new file mode 100644 index 0000000000..38e6f71d13 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js @@ -0,0 +1,60 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/index.ts] *new* +import { x } from "../utils"; +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "references": [ + { "path": "../utils" }, + ], +} +//// [/home/src/workspaces/solution/utils/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/solution/utils/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "noEmit": true + } +} + +tsgo --p project +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +project/tsconfig.json:3:9 - error TS6310: Referenced project '/home/src/workspaces/solution/utils' may not disable emit. + +3 { "path": "../utils" }, +   ~~~~~~~~~~~~~~~~~~~~~~ + + +Found 1 error in project/tsconfig.json:3 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite.js b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite.js new file mode 100644 index 0000000000..8d701b99f7 --- /dev/null +++ b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite.js @@ -0,0 +1,53 @@ +currentDirectory::/home/src/workspaces/solution +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/solution/project/index.ts] *new* +import { x } from "../utils"; +//// [/home/src/workspaces/solution/project/tsconfig.json] *new* +{ + "references": [ + { "path": "../utils" }, + ], +} +//// [/home/src/workspaces/solution/utils/index.d.ts] *new* +export declare const x = 10; +//// [/home/src/workspaces/solution/utils/index.ts] *new* +export const x = 10; +//// [/home/src/workspaces/solution/utils/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true + } +} + +tsgo --p project +ExitStatus:: Success +Output:: +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/solution/project/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + diff --git a/testdata/baselines/reference/tsc/typeAcquisition/parse-tsconfig-with-typeAcquisition.js b/testdata/baselines/reference/tsc/typeAcquisition/parse-tsconfig-with-typeAcquisition.js new file mode 100644 index 0000000000..0a7f765952 --- /dev/null +++ b/testdata/baselines/reference/tsc/typeAcquisition/parse-tsconfig-with-typeAcquisition.js @@ -0,0 +1,40 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "composite": true, + "noEmit": true, + }, + "typeAcquisition": { + "enable": true, + "include": ["0.d.ts", "1.d.ts"], + "exclude": ["0.js", "1.js"], + "disableFilenameBasedTypeAcquisition": true, + }, +} + +tsgo +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +error TS18003: No inputs were found in config file '/home/src/workspaces/project/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. + +Found 1 error. + +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","errors":true,"fileInfos":[],"options":{"composite":true}} +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "errors": true, + "fileInfos": [], + "options": { + "composite": true + }, + "size": 85 +} + +tsconfig.json:: +SemanticDiagnostics:: +Signatures:: diff --git a/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js b/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js new file mode 100644 index 0000000000..6a59db07d6 --- /dev/null +++ b/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js @@ -0,0 +1,149 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: + +tsgo -w --watchInterval 1000 +ExitStatus:: DiagnosticsPresent_OutputsSkipped +Output:: +Version FakeTSVersion +tsc: The TypeScript Compiler - Version FakeTSVersion + +COMMON COMMANDS + + tsc + Compiles the current project (tsconfig.json in the working directory.) + + tsc app.ts util.ts + Ignoring tsconfig.json, compiles the specified files with default compiler options. + + tsc -b + Build a composite project in the working directory. + + tsc --init + Creates a tsconfig.json with the recommended settings in the working directory. + + tsc -p ./path/to/tsconfig.json + Compiles the TypeScript project located at the specified path. + + tsc --help --all + An expanded version of this information, showing all possible compiler options + + tsc --noEmit + tsc --target esnext + Compiles the current project, with additional settings. + +COMMAND LINE FLAGS + +--help, -h +Print this message. + +--watch, -w +Watch input files. + +--all +Show all compiler options. + +--version, -v +Print the compiler's version. + +--init +Initializes a TypeScript project and creates a tsconfig.json file. + +--project, -p +Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'. + +--showConfig +Print the final configuration instead of building. + +--build, -b +Build one or more projects and their dependencies, if out of date + +COMMON COMPILER OPTIONS + +--pretty +Enable color and formatting in TypeScript's output to make compiler errors easier to read. +type: boolean +default: true + +--declaration, -d +Generate .d.ts files from TypeScript and JavaScript files in your project. +type: boolean +default: `false`, unless `composite` is set + +--declarationMap +Create sourcemaps for d.ts files. +type: boolean +default: false + +--emitDeclarationOnly +Only output d.ts files and not JavaScript files. +type: boolean +default: false + +--sourceMap +Create source map files for emitted JavaScript files. +type: boolean +default: false + +--noEmit +Disable emitting files from a compilation. +type: boolean +default: false + +--target, -t +Set the JavaScript language version for emitted JavaScript and include compatible library declarations. +one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext +default: es5 + +--module, -m +Specify what module code is generated. +one of: none, commonjs, amd, system, umd, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve +default: undefined + +--lib +Specify a set of bundled library declaration files that describe the target runtime environment. +one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext, dom, dom.iterable, dom.asynciterable, webworker, webworker.importscripts, webworker.iterable, webworker.asynciterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2016.intl, es2017.arraybuffer, es2017.date, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable/esnext.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol/esnext.symbol, es2019.intl, es2020.bigint/esnext.bigint, es2020.date, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2020.number, es2021.promise, es2021.string, es2021.weakref/esnext.weakref, es2021.intl, es2022.array, es2022.error, es2022.intl, es2022.object, es2022.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, esnext.error, esnext.sharedmemory, decorators, decorators.legacy +default: undefined + +--allowJs +Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. +type: boolean +default: false + +--checkJs +Enable error reporting in type-checked JavaScript files. +type: boolean +default: false + +--jsx +Specify what JSX code is generated. +one of: preserve, react-native, react-jsx, react-jsxdev, react +default: undefined + +--outFile +Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. + +--outDir +Specify an output folder for all emitted files. + +--removeComments +Disable emitting comments. +type: boolean +default: false + +--strict +Enable all strict type-checking options. +type: boolean +default: false + +--types +Specify type package names to be included without being referenced in a source file. + +--esModuleInterop +Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. +type: boolean +default: false + +You can learn about all of the compiler options at https://aka.ms/tsc + + diff --git a/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option.js b/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option.js new file mode 100644 index 0000000000..ee2b9ae875 --- /dev/null +++ b/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option.js @@ -0,0 +1,47 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/first.ts] *new* +export const a = 1 +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "strict": true, + "noEmit": true + } +} + +tsgo -w --watchInterval 1000 +ExitStatus:: Success +Output:: +build starting at HH:MM:SS AM +build finished in d.ddds +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +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 {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/first.ts +Signatures:: From 4bad0ec9ebe79ae8627f10048d8cc4ad12c387ac Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 27 Oct 2025 15:22:19 -0700 Subject: [PATCH 5/7] Delete tests that are covered by compiler tests --- .../moduletransforms/commonjsmodule_test.go | 1057 ----------------- .../moduletransforms/esmodule_test.go | 249 ---- 2 files changed, 1306 deletions(-) delete mode 100644 internal/transformers/moduletransforms/commonjsmodule_test.go delete mode 100644 internal/transformers/moduletransforms/esmodule_test.go diff --git a/internal/transformers/moduletransforms/commonjsmodule_test.go b/internal/transformers/moduletransforms/commonjsmodule_test.go deleted file mode 100644 index de4de7dc45..0000000000 --- a/internal/transformers/moduletransforms/commonjsmodule_test.go +++ /dev/null @@ -1,1057 +0,0 @@ -package moduletransforms_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/ast" - "github.com/microsoft/typescript-go/internal/binder" - "github.com/microsoft/typescript-go/internal/core" - "github.com/microsoft/typescript-go/internal/printer" - "github.com/microsoft/typescript-go/internal/testutil/emittestutil" - "github.com/microsoft/typescript-go/internal/testutil/parsetestutil" - "github.com/microsoft/typescript-go/internal/transformers" - "github.com/microsoft/typescript-go/internal/transformers/moduletransforms" - "github.com/microsoft/typescript-go/internal/transformers/tstransforms" -) - -func fakeGetEmitModuleFormatOfFile(file ast.HasFileName) core.ModuleKind { - return core.ModuleKindNone -} - -func TestCommonJSModuleTransformer(t *testing.T) { - t.Parallel() - data := []struct { - title string - input string - output string - other string - jsx bool - options *core.CompilerOptions - }{ - // ImportDeclaration - { - title: "ImportDeclaration#1", - input: `import "other"`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -require("other");`, - }, - { - title: "ImportDeclaration#2", - input: `import * as a from "other"`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = require("other");`, - }, - { - title: "ImportDeclaration#3", - input: `import { a } from "other"`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const other_1 = require("other");`, - }, - { - title: "ImportDeclaration#4", - input: `import a from "other"`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const other_1 = require("other");`, - }, - { - title: "ImportDeclaration#5", - input: `import a, * as b from "other"`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const other_1 = require("other"), b = other_1;`, - }, - { - title: "ImportDeclaration#6", - input: `import { a } from "other" -export { a }`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const other_1 = require("other"); -Object.defineProperty(exports, "a", { enumerable: true, get: function () { return other_1.a; } });`, - }, - { - title: "ImportDeclaration#7", - input: `import * as a from "other"`, - output: `"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -const a = __importStar(require("other"));`, - options: &core.CompilerOptions{ESModuleInterop: core.TSTrue}, - }, - { - title: "ImportDeclaration#8", - input: `import * as a from "other"`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -const a = tslib_1.__importStar(require("other"));`, - options: &core.CompilerOptions{ESModuleInterop: core.TSTrue, ImportHelpers: core.TSTrue}, - }, - - // ImportEqualsDeclaration - { - title: "ImportEqualsDeclaration#1", - input: `import a = require("other");`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const a = require("other");`, - }, - { - title: "ImportEqualsDeclaration#2", - input: `export import a = require("other");`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = require("other");`, - }, - - // ExportDeclaration - { - title: "ExportDeclaration#1", - input: `export { a } from "other";`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const other_1 = require("other"); -Object.defineProperty(exports, "a", { enumerable: true, get: function () { return other_1.a; } });`, - }, - { - title: "ExportDeclaration#2", - input: `export * as a from "other";`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = require("other");`, - }, - { - title: "ExportDeclaration#3", - input: `export * from "other";`, - output: `"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("other"), exports);`, - }, - { - title: "ExportDeclaration#4", - input: `export * as a from "other"`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const tslib_1 = require("tslib"); -exports.a = tslib_1.__importStar(require("other"));`, - options: &core.CompilerOptions{ESModuleInterop: core.TSTrue, ImportHelpers: core.TSTrue}, - }, - { - title: "ExportDeclaration#5", - input: `export * from "other"`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("other"), exports);`, - options: &core.CompilerOptions{ESModuleInterop: core.TSTrue, ImportHelpers: core.TSTrue}, - }, - - // ExportAssignment - { - title: "ExportAssignment#1", - input: `var a = 0; -export default a;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var a = 0; -exports.default = a;`, - }, - { - title: "ExportAssignment#2", - input: `var a = 0; -export = a;`, - output: `"use strict"; -var a = 0; -module.exports = a;`, - }, - - // FunctionDeclaration - { - title: "FunctionDeclaration#1", - input: `export function f() {}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = f; -function f() { }`, - }, - { - title: "FunctionDeclaration#2", - input: `export default function f() {}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = f; -function f() { }`, - }, - { - title: "FunctionDeclaration#3", - input: `export default function () {}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = default_1; -function default_1() { }`, - }, - { - title: "FunctionDeclaration#4", - input: `function f() {} -export { f };`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = f; -function f() { }`, - }, - - // ClassDeclaration - { - title: "ClassDeclaration#1", - input: `export class C {}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.C = void 0; -class C { -} -exports.C = C;`, - }, - { - title: "ClassDeclaration#2", - input: `export default class C {}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class C { -} -exports.default = C;`, - }, - { - title: "ClassDeclaration#3", - input: `export default class {}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class default_1 { -} -exports.default = default_1;`, - }, - { - title: "ClassDeclaration#4", - input: `class C {} -export { C };`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.C = void 0; -class C { -} -exports.C = C;`, - }, - - // VariableStatement - { - title: "VariableStatement#1", - input: `export var x = y;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = y;`, - }, - { - title: "VariableStatement#2", - input: `export var { x } = y;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -({ x: exports.x } = y);`, - }, - { - title: "VariableStatement#3", - input: `export var [x] = y;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -[exports.x] = y;`, - }, - { - title: "VariableStatement#4", - input: `var x; -export { x }; -x || (x = 1);`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -x || (exports.x = x = 1);`, - }, - { - title: "VariableStatement#5 (from enum)", - input: `export enum E { A }`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.E = void 0; -var E; -(function (E) { - E[E["A"] = 0] = "A"; -})(E || (exports.E = E = {}));`, - }, - - // ForStatement - { - title: "ForStatement#1", - input: `export { x }; -for (var x = 0; ; ) ;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x = 0; -exports.x = x; -for (;;) - ;`, - }, - - // ForInStatement - { - title: "ForInStatement#1", - input: `export { x }; -for (var x in {});`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -for (var x in {}) { - exports.x = x; - ; -}`, - }, - - // ForOfStatement - { - title: "ForOfStatement#1", - input: `export { x }; -for (var x of {});`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -for (var x of {}) { - exports.x = x; - ; -}`, - }, - - // DoStatement - { - title: "DoStatement#1", - input: `export { x }; -do { - var x = 0; -} while (false);`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -do { - var x = 0; - exports.x = x; -} while (false);`, - }, - - // WhileStatement - { - title: "WhileStatement#1", - input: `export { x }; -while (true) { - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -while (true) { - var x = 0; - exports.x = x; -}`, - }, - - // LabeledStatement - { - title: "LabeledStatement#1", - input: `export { x }; -label: { - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -label: { - var x = 0; - exports.x = x; -}`, - }, - - // WithStatement - { - title: "WithStatement#1", - input: `export { x }; -with ({}) { - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -with ({}) { - var x = 0; - exports.x = x; -}`, - }, - - // IfStatement - { - title: "IfStatement#1", - input: `export { x }; -if (y) { - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -if (y) { - var x = 0; - exports.x = x; -}`, - }, - { - title: "IfStatement#2", - input: `export { x }; -if (y) { -} -else { - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -if (y) { -} -else { - var x = 0; - exports.x = x; -}`, - }, - - // SwitchStatement - { - title: "SwitchStatement#1", - input: `export { x }; -switch (y) { - case 0: - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -switch (y) { - case 0: - var x = 0; - exports.x = x; -}`, - }, - { - title: "SwitchStatement#2", - input: `export { x }; -switch (y) { - default: - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -switch (y) { - default: - var x = 0; - exports.x = x; -}`, - }, - - // TryStatement - { - title: "TryStatement#1", - input: `export { x }; -try { - var x = 0; -} -catch { -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -try { - var x = 0; - exports.x = x; -} -catch { -}`, - }, - { - title: "TryStatement#2", - input: `export { x }; -try { -} -catch { - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -try { -} -catch { - var x = 0; - exports.x = x; -}`, - }, - { - title: "TryStatement#3", - input: `export { x }; -try { -} -finally { - var x = 0; -}`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -try { -} -finally { - var x = 0; - exports.x = x; -}`, - }, - - // DestructuringAssignment - { - title: "DestructuringAssignment#1", - input: `var x; -export { x }; -({ x: x } = {});`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -({ x: { set value(value) { exports.x = x = value; } }.value } = {});`, - }, - { - title: "DestructuringAssignment#2", - input: `var x; -export { x }; -({ x: x = 1 } = {});`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -({ x: { set value(value) { exports.x = x = value; } }.value = 1 } = {});`, - }, - { - title: "DestructuringAssignment#3", - input: `var x; -export { x }; -({ x } = {});`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -({ x: { set value(value) { exports.x = x = value; } }.value } = {});`, - }, - { - title: "DestructuringAssignment#4", - input: `var x; -export { x }; -({ x = 1 } = {});`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -({ x: { set value(value) { exports.x = x = value; } }.value = 1 } = {});`, - }, - { - title: "DestructuringAssignment#5", - input: `var x; -export { x }; -({ ...x } = {});`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -({ ...{ set value(value) { exports.x = x = value; } }.value } = {});`, - }, - { - title: "DestructuringAssignment#6", - input: `var x; -export { x }; -[x] = [];`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -[{ set value(value) { exports.x = x = value; } }.value] = [];`, - }, - { - title: "DestructuringAssignment#7", - input: `var x; -export { x }; -[x = 1] = [];`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -[{ set value(value) { exports.x = x = value; } }.value = 1] = [];`, - }, - { - title: "DestructuringAssignment#8", - input: `var x; -export { x }; -[...x] = [];`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -[...{ set value(value) { exports.x = x = value; } }.value] = [];`, - }, - { - title: "DestructuringAssignment#9", - input: `var x; -export { x }; -[{ x: x }] = [];`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var x; -[{ x: { set value(value) { exports.x = x = value; } }.value }] = [];`, - }, - - // AssignmentExpression - { - title: "AssignmentExpression#1", - input: `export var a; -a = 1;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 1;`, - }, - { - title: "AssignmentExpression#2", - input: `var a; -export { a }; -a = 1;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a; -exports.a = a = 1;`, - }, - { - title: "AssignmentExpression#3", - input: `var a; -export { a, a as b }; -a = 1;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.b = exports.a = void 0; -var a; -exports.b = exports.a = a = 1;`, - }, - - // PrefixUnaryExpression - { - title: "PrefixUnaryExpression#1", - input: `export var a = 0; -++a;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 0; -++exports.a;`, - }, - { - title: "PrefixUnaryExpression#2", - input: `var a = 0; -export { a } -++a;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a = 0; -exports.a = a; -exports.a = ++a;`, - }, - - // PostfixUnaryExpression - { - title: "PostfixUnaryExpression#1", - input: `export var a = 0; -a++;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 0; -exports.a++;`, - }, - { - title: "PostfixUnaryExpression#2", - input: `var a = 0; -export { a } -a++;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a = 0; -exports.a = a; -exports.a = (a++, a);`, - }, - { - title: "PostfixUnaryExpression#3", - input: `var a = 0, b; -export { a } -b = a++;`, - output: `"use strict"; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a = 0, b; -exports.a = a; -b = (exports.a = (_a = a++, a), _a);`, - }, - { - title: "PostfixUnaryExpression#4", - input: `var a = 0; -export { a } -(a++);`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a = 0; -exports.a = a; -(exports.a = (a++, a));`, - }, - { - title: "PostfixUnaryExpression#5", - input: `var a = 0; -export { a } -a++, 0;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a = 0; -exports.a = a; -exports.a = (a++, a), 0;`, - }, - { - title: "PostfixUnaryExpression#6", - input: `var a = 0, b; -export { a } -b = (a++, 0);`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a = 0, b; -exports.a = a; -b = (exports.a = (a++, a), 0);`, - }, - { - title: "PostfixUnaryExpression#7", - input: `var a = 0, b; -export { a } -b = (0, a++);`, - output: `"use strict"; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a = 0, b; -exports.a = a; -b = (0, exports.a = (_a = a++, a), _a);`, - }, - - // ShortHandPropertyAssignment - { - title: "ShorthandPropertyAssignment#1", - input: `import { a } from "other" -({ a })`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const other_1 = require("other"); -({ a: other_1.a });`, - }, - { - title: "ShorthandPropertyAssignment#2", - input: `import { a } from "other" -({ - a, -})`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const other_1 = require("other"); -({ - a: other_1.a, -});`, - }, - - // CallExpression - { - title: "CallExpression#1", - input: `import { a } from "other" -a()`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const other_1 = require("other"); -(0, other_1.a)();`, - }, - { - title: "CallExpression#2", - input: `export var a = (0, function() {}); -a()`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = (0, function () { }); -(0, exports.a)();`, - }, - { - title: "CallExpression#3", - input: `export{}; -import("./other.ts");`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -Promise.resolve().then(() => require("./other.js"));`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "CallExpression#4", - input: `export{}; -import(x);`, - output: `"use strict"; -var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { - if (typeof path === "string" && /^\.\.?\//.test(path)) { - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -Promise.resolve(` + "`" + `${__rewriteRelativeImportExtension(x)}` + "`" + `).then(s => require(s));`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "CallExpression#5", - input: `export{}; -import(x);`, - output: `"use strict"; -var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { - if (typeof path === "string" && /^\.\.?\//.test(path)) { - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -Promise.resolve(` + "`" + `${__rewriteRelativeImportExtension(x, true)}` + "`" + `).then(s => require(s));`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue, Jsx: core.JsxEmitPreserve}, - }, - { - title: "CallExpression#6", - input: `export{}; -import(x);`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -Promise.resolve(` + "`" + `${tslib_1.__rewriteRelativeImportExtension(x)}` + "`" + `).then(s => require(s));`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue, ImportHelpers: core.TSTrue}, - }, - { - title: "CallExpression#7", - input: `export {}; -a?.()`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -a?.();`, - }, - - // TaggedTemplateExpression - { - title: "TaggedTemplateExpression#1", - input: "import { a } from \"other\"\n" + - "a``", - output: "\"use strict\";\n" + - "Object.defineProperty(exports, \"__esModule\", { value: true });\n" + - "const other_1 = require(\"other\");\n" + - "(0, other_1.a) ``;", - }, - { - title: "TaggedTemplateExpression#1", - input: "export var a = (0, function() {});" + - "a``", - output: "\"use strict\";\n" + - "Object.defineProperty(exports, \"__esModule\", { value: true });\n" + - "exports.a = void 0;\n" + - "exports.a = (0, function () { });\n" + - "(0, exports.a) ``;", - }, - - // Identifier - { - title: "Identifier#1", - input: `import { a } from "other" -a;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const other_1 = require("other"); -other_1.a;`, - }, - { - title: "Identifier#2", - input: `export var a = 0; -a;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -exports.a = 0; -exports.a;`, - }, - { - title: "Identifier#3 (from enum)", - input: `export enum E { A } -E.A`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.E = void 0; -var E; -(function (E) { - E[E["A"] = 0] = "A"; -})(E || (exports.E = E = {})); -E.A;`, - }, - { - title: "Identifier#4 (preserve location)", - input: `import { a } from "other"; -x || - a`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const other_1 = require("other"); -x || - other_1.a;`, - }, - { - title: "Identifier#5 (from import specifier)", - input: `import { and } from "./_namespaces/ts.js"; -const isNotOverloadAndNotAccessor = and(isNotOverload, isNotAccessor); -`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ts_js_1 = require("./_namespaces/ts.js"); -const isNotOverloadAndNotAccessor = (0, ts_js_1.and)(isNotOverload, isNotAccessor);`, - }, - - { - title: "Identifier#6 (in template literal)", - input: `export var x = 1; -` + "`" + `${x}` + "`" + `;`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = 1; -` + "`" + `${exports.x}` + "`" + `;`, - }, - - { - title: "Other", - input: `export const a = class { - p = 10; -};`, - output: `"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -const a = class { - p = 10; -}; -exports.a = a;`, - }, - } - for _, rec := range data { - t.Run(rec.title, func(t *testing.T) { - t.Parallel() - - compilerOptions := rec.options - if compilerOptions == nil { - compilerOptions = &core.CompilerOptions{} - } - - compilerOptions.Module = core.ModuleKindCommonJS - - file := parsetestutil.ParseTypeScript(rec.input, rec.jsx) - parsetestutil.CheckDiagnostics(t, file) - binder.BindSourceFile(file) - - var other *ast.SourceFile - if len(rec.other) > 0 { - other = parsetestutil.ParseTypeScript(rec.other, rec.jsx) - parsetestutil.CheckDiagnostics(t, other) - binder.BindSourceFile(other) - } - - emitContext := printer.NewEmitContext() - resolver := binder.NewReferenceResolver(compilerOptions, binder.ReferenceResolverHooks{}) - opts := transformers.TransformOptions{CompilerOptions: compilerOptions, Context: emitContext, Resolver: resolver, GetEmitModuleFormatOfFile: fakeGetEmitModuleFormatOfFile} - file = tstransforms.NewRuntimeSyntaxTransformer(&opts).TransformSourceFile(file) - file = moduletransforms.NewCommonJSModuleTransformer(&opts).TransformSourceFile(file) - emittestutil.CheckEmit(t, emitContext, file, rec.output) - }) - } -} diff --git a/internal/transformers/moduletransforms/esmodule_test.go b/internal/transformers/moduletransforms/esmodule_test.go deleted file mode 100644 index a9be38f3c2..0000000000 --- a/internal/transformers/moduletransforms/esmodule_test.go +++ /dev/null @@ -1,249 +0,0 @@ -package moduletransforms_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/ast" - "github.com/microsoft/typescript-go/internal/binder" - "github.com/microsoft/typescript-go/internal/core" - "github.com/microsoft/typescript-go/internal/printer" - "github.com/microsoft/typescript-go/internal/testutil/emittestutil" - "github.com/microsoft/typescript-go/internal/testutil/parsetestutil" - "github.com/microsoft/typescript-go/internal/transformers" - "github.com/microsoft/typescript-go/internal/transformers/moduletransforms" - "github.com/microsoft/typescript-go/internal/transformers/tstransforms" -) - -func TestESModuleTransformer(t *testing.T) { - t.Parallel() - data := []struct { - title string - input string - output string - other string - jsx bool - options *core.CompilerOptions - }{ - // ImportDeclaration - { - title: "ImportDeclaration#1", - input: `import "other"`, - output: `import "other";`, - }, - { - title: "ImportDeclaration#2", - input: `import "./other.ts"`, - output: `import "./other.js";`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "ImportDeclaration#3", - input: `import "./other.tsx"`, - output: `import "./other.js";`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "ImportDeclaration#4", - input: `import "./other.tsx"`, - output: `import "./other.jsx";`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue, Jsx: core.JsxEmitPreserve}, - }, - - // ImportEqualsDeclaration - { - title: "ImportEqualsDeclaration#1", - input: `import x = require("other")`, - output: `export {};`, - }, - { - title: "ImportEqualsDeclaration#2", - input: `import x = require("other")`, - output: `import { createRequire as _createRequire } from "module"; -const __require = _createRequire(import.meta.url); -const x = __require("other");`, - options: &core.CompilerOptions{Module: core.ModuleKindNode16}, - }, - { - title: "ImportEqualsDeclaration#3", - input: `import x = require("./other.ts")`, - output: `import { createRequire as _createRequire } from "module"; -const __require = _createRequire(import.meta.url); -const x = __require("./other.js");`, - options: &core.CompilerOptions{Module: core.ModuleKindNode16, RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "ImportEqualsDeclaration#4", - input: `import x = require("./other.tsx")`, - output: `import { createRequire as _createRequire } from "module"; -const __require = _createRequire(import.meta.url); -const x = __require("./other.js");`, - options: &core.CompilerOptions{Module: core.ModuleKindNode16, RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "ImportEqualsDeclaration#5", - input: `import x = require("./other.tsx")`, - output: `import { createRequire as _createRequire } from "module"; -const __require = _createRequire(import.meta.url); -const x = __require("./other.jsx");`, - options: &core.CompilerOptions{Module: core.ModuleKindNode16, RewriteRelativeImportExtensions: core.TSTrue, Jsx: core.JsxEmitPreserve}, - }, - { - title: "ImportEqualsDeclaration#6", - input: `export import x = require("other")`, - output: `import { createRequire as _createRequire } from "module"; -const __require = _createRequire(import.meta.url); -const x = __require("other"); -export { x };`, - options: &core.CompilerOptions{Module: core.ModuleKindNode16}, - }, - - // ExportAssignment - { - title: "ExportAssignment#1", - input: `export = x`, - output: `export {};`, - }, - { - title: "ExportAssignment#2", - input: `export = x`, - output: `module.exports = x;`, - options: &core.CompilerOptions{Module: core.ModuleKindPreserve}, - }, - - // ExportDeclaration - { - title: "ExportDeclaration#1", - input: `export * from "other";`, - output: `export * from "other";`, - }, - { - title: "ExportDeclaration#2", - input: `export * from "./other.ts";`, - output: `export * from "./other.js";`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "ExportDeclaration#3", - input: `export * as x from "other";`, - output: `export * as x from "other";`, - options: &core.CompilerOptions{Module: core.ModuleKindESNext}, - }, - { - title: "ExportDeclaration#4", - input: `export { x } from "other";`, - output: `export { x } from "other";`, - }, - { - title: "ExportDeclaration#5", - input: `export * as x from "other";`, - output: `import * as x_1 from "other"; -export { x_1 as x };`, - }, - { - title: "ExportDeclaration#6", - input: `export * as default from "other";`, - output: `import * as default_1 from "other"; -export default default_1;`, - }, - - // CallExpression - { - title: "CallExpression#1", - input: `import("other");`, - output: `import("other");`, - }, - { - title: "CallExpression#2", - input: `import(x);`, - output: `import(x);`, - }, - { - title: "CallExpression#3", - input: `export {}; -import("./other.ts");`, - output: `export {}; -import("./other.js");`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "CallExpression#4", - input: `export {}; -import(x);`, - output: `var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { - if (typeof path === "string" && /^\.\.?\//.test(path)) { - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; -}; -export {}; -import(__rewriteRelativeImportExtension(x));`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue}, - }, - { - title: "CallExpression#5", - input: `export {}; -import(x);`, - output: `var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { - if (typeof path === "string" && /^\.\.?\//.test(path)) { - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; -}; -export {}; -import(__rewriteRelativeImportExtension(x, true));`, - options: &core.CompilerOptions{RewriteRelativeImportExtensions: core.TSTrue, Jsx: core.JsxEmitPreserve}, - }, - { - title: "CallExpression#6", - input: `export {}; -import(x);`, - output: `import { __rewriteRelativeImportExtension } from "tslib"; -export {}; -import(__rewriteRelativeImportExtension(x));`, - options: &core.CompilerOptions{Module: core.ModuleKindESNext, RewriteRelativeImportExtensions: core.TSTrue, ImportHelpers: core.TSTrue}, - }, - { - title: "CallExpression#7", - input: `export {}; -import(x); -var __rewriteRelativeImportExtension;`, - output: `import { __rewriteRelativeImportExtension as __rewriteRelativeImportExtension_1 } from "tslib"; -export {}; -import(__rewriteRelativeImportExtension_1(x)); -var __rewriteRelativeImportExtension;`, - options: &core.CompilerOptions{Module: core.ModuleKindESNext, RewriteRelativeImportExtensions: core.TSTrue, ImportHelpers: core.TSTrue}, - }, - } - for _, rec := range data { - t.Run(rec.title, func(t *testing.T) { - t.Parallel() - - compilerOptions := rec.options - if compilerOptions == nil { - compilerOptions = &core.CompilerOptions{} - } - - file := parsetestutil.ParseTypeScript(rec.input, rec.jsx) - parsetestutil.CheckDiagnostics(t, file) - binder.BindSourceFile(file) - - var other *ast.SourceFile - if len(rec.other) > 0 { - other = parsetestutil.ParseTypeScript(rec.other, rec.jsx) - parsetestutil.CheckDiagnostics(t, other) - binder.BindSourceFile(other) - } - - emitContext := printer.NewEmitContext() - resolver := binder.NewReferenceResolver(compilerOptions, binder.ReferenceResolverHooks{}) - opts := transformers.TransformOptions{CompilerOptions: compilerOptions, Context: emitContext, Resolver: resolver, GetEmitModuleFormatOfFile: fakeGetEmitModuleFormatOfFile} - file = tstransforms.NewRuntimeSyntaxTransformer(&opts).TransformSourceFile(file) - file = moduletransforms.NewESModuleTransformer(&opts).TransformSourceFile(file) - emittestutil.CheckEmit(t, emitContext, file, rec.output) - }) - } -} From d053a2f0c783f3bfd80f5f19f883ebfc6156abf7 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 27 Oct 2025 15:36:06 -0700 Subject: [PATCH 6/7] Generate --- internal/diagnostics/diagnostics_generated.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/diagnostics/diagnostics_generated.go b/internal/diagnostics/diagnostics_generated.go index c40232cb15..9c9757528d 100644 --- a/internal/diagnostics/diagnostics_generated.go +++ b/internal/diagnostics/diagnostics_generated.go @@ -2354,6 +2354,8 @@ var Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_mod var Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1 = &Message{code: 5110, category: CategoryError, key: "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", text: "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."} +var Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information = &Message{code: 5111, category: CategoryMessage, key: "Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information_5111", text: "Visit https://aka.ms/ts6 for migration information."} + var Generates_a_sourcemap_for_each_corresponding_d_ts_file = &Message{code: 6000, category: CategoryMessage, key: "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", text: "Generates a sourcemap for each corresponding '.d.ts' file."} var Concatenate_and_emit_output_to_single_file = &Message{code: 6001, category: CategoryMessage, key: "Concatenate_and_emit_output_to_single_file_6001", text: "Concatenate and emit output to single file."} @@ -3732,7 +3734,7 @@ var Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or var X_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer = &Message{code: 18061, category: CategoryError, key: "_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061", text: "'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?"} -var X_module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node = &Message{code: 69010, category: CategoryMessage, key: "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010", text: "module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"} +var X_nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler = &Message{code: 69010, category: CategoryMessage, key: "nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler_69010", text: "`nodenext` if `module` is `nodenext`; `node16` if `module` is `node16` or `node18`; otherwise, `bundler`."} var File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module = &Message{code: 80001, category: CategorySuggestion, key: "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001", text: "File is a CommonJS module; it may be converted to an ES module."} From b48ef05aa17fce3b2934633ab9a0ffaadc978327 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 27 Oct 2025 16:13:57 -0700 Subject: [PATCH 7/7] Delete unused baselines --- .../findAllRefsForModule.baseline.jsonc | 9 - .../getOccurrencesIfElseBroken.baseline.jsonc | 57 ---- .../findAllRefsForModule.baseline.jsonc | 33 --- ...findAllRefsModuleDotExports.baseline.jsonc | 3 - ...erencesForStatementKeywords.baseline.jsonc | 268 ------------------ 5 files changed, 370 deletions(-) delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/findAllRefsForModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElseBroken.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/findAllRefsModuleDotExports.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferences/referencesForStatementKeywords.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/documentHighlights/findAllRefsForModule.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/findAllRefsForModule.baseline.jsonc deleted file mode 100644 index 35e8e3f07c..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/findAllRefsForModule.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === documentHighlights === -// === /b.ts === -// import { x } from "/*HIGHLIGHTS*/[|./a|]"; - - - -// === documentHighlights === -// === /c/sub.js === -// const a = require("/*HIGHLIGHTS*/[|../a|]"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElseBroken.baseline.jsonc b/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElseBroken.baseline.jsonc deleted file mode 100644 index c1c381e16a..0000000000 --- a/testdata/baselines/reference/fourslash/documentHighlights/getOccurrencesIfElseBroken.baseline.jsonc +++ /dev/null @@ -1,57 +0,0 @@ -// === documentHighlights === -// === /getOccurrencesIfElseBroken.ts === -// /*HIGHLIGHTS*/[|if|] (true) { -// var x = 1; -// } -// [|else if|] () -// [|else if|] -// [|else|] /* whar garbl */ [|if|] (if (true) { } else { }) -// else - - - -// === documentHighlights === -// === /getOccurrencesIfElseBroken.ts === -// [|if|] (true) { -// var x = 1; -// } -// /*HIGHLIGHTS*/[|else if|] () -// [|else if|] -// [|else|] /* whar garbl */ [|if|] (if (true) { } else { }) -// else - - - -// === documentHighlights === -// === /getOccurrencesIfElseBroken.ts === -// [|if|] (true) { -// var x = 1; -// } -// [|else if|] () -// /*HIGHLIGHTS*/[|else if|] -// [|else|] /* whar garbl */ [|if|] (if (true) { } else { }) -// else - - - -// === documentHighlights === -// === /getOccurrencesIfElseBroken.ts === -// [|if|] (true) { -// var x = 1; -// } -// [|else if|] () -// [|else if|] -// /*HIGHLIGHTS*/[|else|] /* whar garbl */ [|if|] (if (true) { } else { }) -// else - - - -// === documentHighlights === -// === /getOccurrencesIfElseBroken.ts === -// [|if|] (true) { -// var x = 1; -// } -// [|else if|] () -// [|else if|] -// [|else|] /* whar garbl */ /*HIGHLIGHTS*/[|if|] (if (true) { } else { }) -// else \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForModule.baseline.jsonc deleted file mode 100644 index 9ffdfecb1a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForModule.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /b.ts === -// import { x } from "/*FIND ALL REFS*/[|./a|]"; - -// === /c/sub.js === -// const a = require("[|../a|]"); - -// === /d.ts === -// /// [||] - - - -// === findAllReferences === -// === /b.ts === -// import { x } from "[|./a|]"; - -// === /c/sub.js === -// const a = require("/*FIND ALL REFS*/[|../a|]"); - -// === /d.ts === -// /// [||] - - - -// === findAllReferences === -// === /b.ts === -// import { x } from "[|./a|]"; - -// === /c/sub.js === -// const a = require("[|../a|]"); - -// === /d.ts === -// /// [||] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsModuleDotExports.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsModuleDotExports.baseline.jsonc deleted file mode 100644 index 55f48ed43e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsModuleDotExports.baseline.jsonc +++ /dev/null @@ -1,3 +0,0 @@ -// === findAllReferences === -// === /a.js === -// /*FIND ALL REFS*/const [|b|] = require("./b"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatementKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatementKeywords.baseline.jsonc deleted file mode 100644 index ce52dab94e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatementKeywords.baseline.jsonc +++ /dev/null @@ -1,268 +0,0 @@ -// === findAllReferences === -// === /main.ts === -// // import ... = ... -// /*FIND ALL REFS*/import [|A|] = require("./a"); -// namespace N { } -// import N2 = N; -// -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// // import ... = ... -// import A = /*FIND ALL REFS*/require("[|./a|]"); -// namespace N { } -// import N2 = N; -// -// // --- (line: 6) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// /*FIND ALL REFS*/import [|N2|] = N; -// -// // import ... from ... -// import type B from "./b"; -// // --- (line: 8) skipped --- - - - -// === findAllReferences === -// === /b.ts === -// export default class [|B|] {} - -// === /main.ts === -// --- (line: 3) skipped --- -// import N2 = N; -// -// // import ... from ... -// /*FIND ALL REFS*/import type [|B|] from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /b.ts === -// export default class [|B|] {} - -// === /main.ts === -// --- (line: 3) skipped --- -// import N2 = N; -// -// // import ... from ... -// import /*FIND ALL REFS*/type [|B|] from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 3) skipped --- -// import N2 = N; -// -// // import ... from ... -// import type B /*FIND ALL REFS*/from "[|./b|]"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// // --- (line: 11) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 4) skipped --- -// -// // import ... from ... -// import type B from "./b"; -// /*FIND ALL REFS*/import type * as [|C|] from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 4) skipped --- -// -// // import ... from ... -// import type B from "./b"; -// import /*FIND ALL REFS*/type * as [|C|] from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 4) skipped --- -// -// // import ... from ... -// import type B from "./b"; -// import type * /*FIND ALL REFS*/as [|C|] from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 4) skipped --- -// -// // import ... from ... -// import type B from "./b"; -// import type * as C /*FIND ALL REFS*/from "[|./c|]"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // --- (line: 12) skipped --- - - - -// === findAllReferences === -// === /d.ts === -// export class [|D|] {} - -// === /main.ts === -// --- (line: 5) skipped --- -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// /*FIND ALL REFS*/import type { [|D|] } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// // --- (line: 13) skipped --- - - - -// === findAllReferences === -// === /d.ts === -// export class [|D|] {} - -// === /main.ts === -// --- (line: 5) skipped --- -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import /*FIND ALL REFS*/type { [|D|] } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// // --- (line: 13) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 5) skipped --- -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } /*FIND ALL REFS*/from "[|./d|]"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// // --- (line: 13) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 6) skipped --- -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// /*FIND ALL REFS*/import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// // --- (line: 14) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 6) skipped --- -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import /*FIND ALL REFS*/type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// // --- (line: 14) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 6) skipped --- -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } /*FIND ALL REFS*/from "[|./e|]"; -// -// // import "module" -// import "./f"; -// // --- (line: 14) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 6) skipped --- -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 /*FIND ALL REFS*/as [|e3|] } from "./e"; -// -// // import "module" -// import "./f"; -// // --- (line: 14) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 9) skipped --- -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// /*FIND ALL REFS*/import "[|./f|]"; -// -// // export ... from ... -// export type * from "./g"; -// // --- (line: 17) skipped --- - - - -// === findAllReferences === -// === /main.ts === -// --- (line: 12) skipped --- -// import "./f"; -// -// // export ... from ... -// /*FIND ALL REFS*/export type * from "[|./g|]"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// // --- (line: 20) skipped --- \ No newline at end of file